truncl: Move AC_LIBOBJ invocations to module description.
[pspp] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         truncl: Move AC_LIBOBJ invocations to module description.
4         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5         * modules/truncl (configure.ac): ... to here.
6
7 2011-05-21  Bruno Haible  <bruno@clisp.org>
8
9         trunc: Move AC_LIBOBJ invocations to module description.
10         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11         * modules/trunc (configure.ac): ... to here.
12
13 2011-05-21  Bruno Haible  <bruno@clisp.org>
14
15         truncf: Move AC_LIBOBJ invocations to module description.
16         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17         * modules/truncf (configure.ac): ... to here.
18
19 2011-05-21  Bruno Haible  <bruno@clisp.org>
20
21         ceill: Move AC_LIBOBJ invocations to module description.
22         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
23         * modules/ceill (configure.ac): ... to here.
24
25 2011-05-21  Bruno Haible  <bruno@clisp.org>
26
27         ceil: Move AC_LIBOBJ invocations to module description.
28         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
29         * modules/ceil (configure.ac): ... to here.
30
31 2011-05-21  Bruno Haible  <bruno@clisp.org>
32
33         ceilf: Move AC_LIBOBJ invocations to module description.
34         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
35         * modules/ceilf (configure.ac): ... to here.
36
37 2011-05-21  Bruno Haible  <bruno@clisp.org>
38
39         floorl: Respect rules for use of AC_LIBOBJ.
40         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
41         * modules/floorl (configure.ac): ... to here.
42
43 2011-05-21  Bruno Haible  <bruno@clisp.org>
44
45         floor: Respect rules for use of AC_LIBOBJ.
46         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
47         * modules/floor (configure.ac): ... to here.
48
49 2011-05-21  Bruno Haible  <bruno@clisp.org>
50
51         floorf: Move AC_LIBOBJ invocations to module description.
52         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
53         * modules/floorf (configure.ac): ... to here.
54
55 2011-05-20  Bruno Haible  <bruno@clisp.org>
56
57         sqrtl: Respect rules for use of AC_LIBOBJ.
58         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
59         * modules/sqrtl (configure.ac): ... to here.
60
61 2011-05-20  Bruno Haible  <bruno@clisp.org>
62
63         ldexpl: Respect rules for use of AC_LIBOBJ.
64         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
65         * modules/ldexpl (configure.ac): ... to here.
66
67 2011-05-20  Bruno Haible  <bruno@clisp.org>
68
69         frexpl*: Respect rules for use of AC_LIBOBJ.
70         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
71         invocation from here...
72         * modules/frexpl (configure.ac): ... to here.
73         * modules/frexpl-nolibm (configure.ac): ... and here.
74
75 2011-05-20  Bruno Haible  <bruno@clisp.org>
76
77         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
78         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
79         invocation from here...
80         * modules/frexp (configure.ac): ... to here.
81         * modules/frexp-nolibm (configure.ac): ... and here.
82
83 2011-05-20  Bruno Haible  <bruno@clisp.org>
84
85         isnan: Respect rules for use of AC_LIBOBJ.
86         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
87         invocations here.
88         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
89         REPLACE_ISNAN.
90         * modules/isnand (configure.ac): Likewise.
91         * modules/isnanl (configure.ac): Likewise.
92
93 2011-05-20  Bruno Haible  <bruno@clisp.org>
94
95         isnanl*: Respect rules for use of AC_LIBOBJ.
96         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
97         invocation from here...
98         * modules/isnanl (configure.ac): ... to here.
99         * modules/isnanl-nolibm (configure.ac): ... and here.
100
101 2011-05-20  Bruno Haible  <bruno@clisp.org>
102
103         isnand*: Move AC_LIBOBJ invocations to module description.
104         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
105         invocation from here...
106         * modules/isnand (configure.ac): ... to here.
107         * modules/isnand-nolibm (configure.ac): ... and here.
108
109 2011-05-20  Bruno Haible  <bruno@clisp.org>
110
111         isnanf*: Move AC_LIBOBJ invocations to module description.
112         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
113         invocation from here...
114         * modules/isnanf (configure.ac): ... to here.
115         * modules/isnanf-nolibm (configure.ac): ... and here.
116
117 2011-05-20  Bruno Haible  <bruno@clisp.org>
118
119         isnan*: Separate the AC_LIBOBJ invocations.
120         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
121         AC_LIBOBJ invocation.
122         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
123         here.
124         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
125         AC_LIBOBJ invocation.
126         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
127         here.
128         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
129         AC_LIBOBJ invocation.
130         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
131         here.
132         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
133
134 2011-05-08  Bruno Haible  <bruno@clisp.org>
135
136         isinf: Move AC_LIBOBJ invocations to module description.
137         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
138         * modules/isinf (configure.ac): ... to here.
139
140 2011-05-08  Bruno Haible  <bruno@clisp.org>
141
142         isfinite: Move AC_LIBOBJ invocations to module description.
143         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
144         * modules/isfinite (configure.ac): ... to here.
145
146 2011-05-08  Bruno Haible  <bruno@clisp.org>
147
148         isblank: Move AC_LIBOBJ invocations to module description.
149         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
150         here...
151         * modules/isblank (configure.ac): ... to here.
152
153 2011-05-08  Bruno Haible  <bruno@clisp.org>
154
155         isapipe: Move AC_LIBOBJ invocations to module description.
156         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
157         gl_PREREQ_ISAPIPE invocations from here...
158         * modules/isapipe (configure.ac): ... to here.
159         (Depends-on): Update condition.
160
161 2011-05-08  Bruno Haible  <bruno@clisp.org>
162
163         ioctl: Move AC_LIBOBJ invocations to module description.
164         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
165         invocations from here...
166         * modules/ioctl (configure.ac): ... to here.
167         (Depends-on): Update condition.
168
169 2011-05-08  Bruno Haible  <bruno@clisp.org>
170
171         imaxdiv: Move AC_LIBOBJ invocations to module description.
172         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
173         invocations from here...
174         * modules/imaxdiv (configure.ac): ... to here.
175
176 2011-05-08  Bruno Haible  <bruno@clisp.org>
177
178         imaxabs: Move AC_LIBOBJ invocations to module description.
179         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
180         invocations from here...
181         * modules/imaxabs (configure.ac): ... to here.
182
183 2011-05-08  Bruno Haible  <bruno@clisp.org>
184
185         getaddrinfo: Move AC_LIBOBJ invocations to module description.
186         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
187         AC_LIBOBJ invocations from here...
188         * modules/getaddrinfo (configure.ac): ... to here.
189         (Depends-on): Add conditions.
190
191 2011-05-08  Bruno Haible  <bruno@clisp.org>
192
193         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
194         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
195         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
196         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
197         (gl_PREREQ_INET_PTON): ... from here.
198         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
199         gl_PREREQ_INET_PTON here.
200         (Depends-on): Update condition.
201
202 2011-05-08  Bruno Haible  <bruno@clisp.org>
203
204         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
205         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
206         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
207         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
208         (gl_PREREQ_INET_NTOP): ... from here.
209         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
210         gl_PREREQ_INET_NTOP here.
211         (Depends-on): Update condition.
212
213 2011-05-08  Bruno Haible  <bruno@clisp.org>
214
215         iconv_open: Move AC_LIBOBJ invocations to module description.
216         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
217         AC_LIBOBJ invocations from here...
218         * modules/iconv_open (configure.ac): ... to here.
219
220 2011-05-08  Bruno Haible  <bruno@clisp.org>
221
222         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
223         If module 'iconv_open' is among the main modules and module
224         'iconv_open-utf' is among the tests dependencies, then
225         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
226         return the special iconv_t values. Therefore iconv() and iconv_close()
227         must support these special iconv_t values, already in lib, not only in
228         tests.
229         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
230         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
231         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
232         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
233         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
234         (Depends-on): Add the dependencies of iconv_open-utf.
235         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
236         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
237         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
238
239 2011-05-08  Bruno Haible  <bruno@clisp.org>
240
241         group-member: Move AC_LIBOBJ invocations to module description.
242         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
243         gl_PREREQ_GROUP_MEMBER invocations from here...
244         * modules/group-member (configure.ac): ... to here.
245
246 2011-05-08  Bruno Haible  <bruno@clisp.org>
247
248         grantpt: Move AC_LIBOBJ invocations to module description.
249         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
250         invocations from here...
251         * modules/grantpt (configure.ac): ... to here.
252
253 2011-05-08  Bruno Haible  <bruno@clisp.org>
254
255         glob: Move AC_LIBOBJ invocations to module description.
256         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
257         from here...
258         * modules/glob (configure.ac): ... to here.
259
260 2011-05-08  Bruno Haible  <bruno@clisp.org>
261
262         getusershell: Move AC_LIBOBJ invocations to module description.
263         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
264         Move AC_LIBOBJ invocation from here...
265         * modules/getusershell (configure.ac): ... to here.
266         (Depends-on): Update condition.
267
268 2011-05-08  Bruno Haible  <bruno@clisp.org>
269
270         gettimeofday: Move AC_LIBOBJ invocations to module description.
271         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
272         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
273         gl_PREREQ_GETTIMEOFDAY invocations from here...
274         * modules/gettimeofday (configure.ac): ... to here.
275
276 2011-05-08  Bruno Haible  <bruno@clisp.org>
277
278         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
279         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
280         just gl_FUNC_TZSET.
281         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
282         (gl_FUNC_TZSET_CLOBBER): Remove actions.
283         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
284         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
285
286 2011-05-08  Bruno Haible  <bruno@clisp.org>
287
288         getsubopt: Move AC_LIBOBJ invocations to module description.
289         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
290         gl_PREREQ_GETSUBOPT invocations from here...
291         * modules/getsubopt (configure.ac): ... to here.
292
293 2011-05-08  Bruno Haible  <bruno@clisp.org>
294
295         getpass-gnu: Move AC_LIBOBJ invocations to module description.
296         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
297         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
298         * modules/getpass-gnu (configure.ac): ... to here.
299
300 2011-05-08  Bruno Haible  <bruno@clisp.org>
301
302         getpass: Move AC_LIBOBJ invocations to module description.
303         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
304         gl_PREREQ_GETPASS invocations from here...
305         * modules/getpass (configure.ac): ... to here.
306
307 2011-05-08  Bruno Haible  <bruno@clisp.org>
308
309         getpagesize: Move AC_LIBOBJ invocations to module description.
310         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
311         from here...
312         * modules/getpagesize (configure.ac): ... to here.
313
314 2011-05-08  Bruno Haible  <bruno@clisp.org>
315
316         getopt: Move AC_LIBOBJ invocations to module description.
317         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
318         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
319         invocations from here...
320         * modules/getopt-gnu (configure.ac): ... to here.
321         * modules/getopt-posix (configure.ac): ... and here.
322         (Depends-on): Update condition.
323
324 2011-05-08  Bruno Haible  <bruno@clisp.org>
325
326         getopt, argp: Respect rules for use of AC_LIBOBJ.
327         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
328         (gl_REPLACE_GETOPT_ALWAYS): New macro.
329         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
330         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
331
332 2011-05-08  Bruno Haible  <bruno@clisp.org>
333
334         getlogin_r: Move AC_LIBOBJ invocations to module description.
335         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
336         gl_PREREQ_GETLOGIN_R invocations from here...
337         * modules/getlogin_r (configure.ac): ... to here.
338
339 2011-05-08  Bruno Haible  <bruno@clisp.org>
340
341         getlogin: Move AC_LIBOBJ invocations to module description.
342         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
343         here...
344         * modules/getlogin (configure.ac): ... to here.
345
346 2011-05-08  Bruno Haible  <bruno@clisp.org>
347
348         getloadavg: Move AC_LIBOBJ invocations to module description.
349         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
350         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
351         * modules/getloadavg (configure.ac): ... to here.
352
353 2011-05-08  Bruno Haible  <bruno@clisp.org>
354
355         gethrxtime: Move AC_LIBOBJ invocations to module description.
356         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
357         LIB_GETHRXTIME from here...
358         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
359         invocations from here...
360         * modules/gethrxtime (configure.ac): ... to here.
361
362 2011-05-08  Bruno Haible  <bruno@clisp.org>
363
364         gethostname: Move AC_LIBOBJ invocations to module description.
365         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
366         gl_PREREQ_GETHOSTNAME invocations from here...
367         * modules/gethostname (configure.ac): ... to here.
368
369 2011-05-08  Bruno Haible  <bruno@clisp.org>
370
371         getgroups: Move AC_LIBOBJ invocations to module description.
372         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
373         here...
374         * modules/getgroups (configure.ac): ... to here.
375
376 2011-05-08  Bruno Haible  <bruno@clisp.org>
377
378         getdtablesize: Move AC_LIBOBJ invocations to module description.
379         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
380         invocation from here...
381         * modules/getdtablesize (configure.ac): ... to here.
382
383 2011-05-08  Bruno Haible  <bruno@clisp.org>
384
385         getdomainname: Move AC_LIBOBJ invocations to module description.
386         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
387         gl_PREREQ_GETDOMAINNAME invocations from here...
388         * modules/getdomainname (configure.ac): ... to here.
389
390 2011-05-08  Bruno Haible  <bruno@clisp.org>
391
392         getline: Move AC_LIBOBJ invocations to module description.
393         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
394         invocations from here...
395         * modules/getline (configure.ac): ... to here.
396
397 2011-05-08  Bruno Haible  <bruno@clisp.org>
398
399         getline: Simplify.
400         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
401         It's already handled through the module dependency.
402
403 2011-05-08  Bruno Haible  <bruno@clisp.org>
404
405         getdelim: Move AC_LIBOBJ invocations to module description.
406         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
407         and gl_PREREQ_GETDELIM invocations from here...
408         * modules/getdelim (configure.ac): ... to here.
409         (Depends-on): Fix condition.
410
411 2011-05-08  Bruno Haible  <bruno@clisp.org>
412
413         getcwd: Move AC_LIBOBJ invocations to module description.
414         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
415         invocations from here...
416         * modules/getcwd (configure.ac): ... to here.
417
418 2011-05-08  Bruno Haible  <bruno@clisp.org>
419
420         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
421         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
422         here...
423         * modules/getcwd-lgpl (configure.ac): ... to here.
424
425 2011-05-07  Bruno Haible  <bruno@clisp.org>
426
427         crypto/gc: Move AC_LIBOBJ invocations to module description.
428         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
429         * modules/crypto/gc (configure.ac): ... to here.
430
431 2011-05-07  Bruno Haible  <bruno@clisp.org>
432
433         fwriting: Move AC_LIBOBJ invocations to module description.
434         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
435         here...
436         * modules/fwriting (configure.ac): ... to here.
437
438 2011-05-07  Bruno Haible  <bruno@clisp.org>
439
440         fwritable: Move AC_LIBOBJ invocations to module description.
441         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
442         here...
443         * modules/fwritable (configure.ac): ... to here.
444
445 2011-05-07  Bruno Haible  <bruno@clisp.org>
446
447         futimens: Move AC_LIBOBJ invocations to module description.
448         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
449         here...
450         * modules/futimens (configure.ac): ... to here.
451
452 2011-05-07  Bruno Haible  <bruno@clisp.org>
453
454         ftruncate: Move AC_LIBOBJ invocations to module description.
455         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
456         gl_PREREQ_FTRUNCATE invocations from here...
457         * modules/ftruncate (configure.ac): ... to here.
458
459 2011-05-07  Bruno Haible  <bruno@clisp.org>
460
461         fsync: Move AC_LIBOBJ invocations to module description.
462         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
463         invocations from here...
464         * modules/fsync (configure.ac): ... to here.
465
466 2011-05-07  Bruno Haible  <bruno@clisp.org>
467
468         fsusage: Move AC_LIBOBJ invocations to module description.
469         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
470         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
471         * modules/fsusage (configure.ac): ... to here.
472
473 2011-05-07  Bruno Haible  <bruno@clisp.org>
474
475         freopen: Move AC_LIBOBJ invocations to module description.
476         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
477         invocations from here...
478         * modules/freopen (configure.ac): ... to here.
479
480 2011-05-07  Bruno Haible  <bruno@clisp.org>
481
482         free: Move AC_LIBOBJ invocations to module description.
483         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
484         invocations from here...
485         * modules/free (configure.ac): ... to here.
486
487 2011-05-07  Bruno Haible  <bruno@clisp.org>
488
489         freadable: Move AC_LIBOBJ invocations to module description.
490         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
491         here...
492         * modules/freadable (configure.ac): ... to here.
493
494 2011-05-07  Bruno Haible  <bruno@clisp.org>
495
496         fpurge: Move AC_LIBOBJ invocations to module description.
497         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
498         invocations from here...
499         * modules/fpurge (configure.ac): ... to here.
500
501 2011-05-07  Bruno Haible  <bruno@clisp.org>
502
503         fpending: Move AC_LIBOBJ invocations to module description.
504         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
505         gl_FUNC_FPENDING.
506         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
507         invocations from here...
508         * modules/fpending (configure.ac): ... to here.
509
510 2011-05-07  Bruno Haible  <bruno@clisp.org>
511
512         fopen: Move AC_LIBOBJ invocations to module description.
513         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
514         invocations from here...
515         * modules/fopen (configure.ac): ... to here.
516
517 2011-05-07  Bruno Haible  <bruno@clisp.org>
518
519         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
520         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
521         gl_FUNC_FNMATCH_POSIX.
522         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
523         invocations from here...
524         * modules/fnmatch (configure.ac): ... to here.
525         * modules/fnmatch-gnu (configure.ac): ... and here.
526
527 2011-05-07  Bruno Haible  <bruno@clisp.org>
528
529         flock: Move AC_LIBOBJ invocations to module description.
530         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
531         invocations from here...
532         * modules/flock (configure.ac): ... to here.
533
534 2011-05-07  Bruno Haible  <bruno@clisp.org>
535
536         fileblocks: Move AC_LIBOBJ invocations to module description.
537         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
538         gl_PREREQ_FILEBLOCKS invocations from here...
539         * modules/fileblocks (configure.ac): ... to here.
540
541 2011-05-06  Bruno Haible  <bruno@clisp.org>
542
543         fflush: Move AC_LIBOBJ invocations to module description.
544         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
545         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
546         invocations from here...
547         * modules/fflush (configure.ac): ... to here.
548
549 2011-05-06  Bruno Haible  <bruno@clisp.org>
550
551         fdopendir: Move AC_LIBOBJ invocations to module description.
552         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
553         here...
554         * modules/fdopendir (configure.ac): ... to here.
555         (Depends-on): Improve conditions.
556
557 2011-05-06  Bruno Haible  <bruno@clisp.org>
558
559         _Exit: Move AC_LIBOBJ invocations to module description.
560         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
561         invocations from here...
562         * modules/_Exit (configure.ac): ... to here.
563
564 2011-05-21  Bruno Haible  <bruno@clisp.org>
565
566         euidaccess: Respect rules for use of AC_LIBOBJ.
567         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
569         from here...
570         * modules/euidaccess (configure.ac): ... to here.
571
572 2011-05-06  Bruno Haible  <bruno@clisp.org>
573
574         error: Move AC_LIBOBJ invocations to module description.
575         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
576         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
577         invocations from here...
578         * modules/error (configure.ac): ... to here.
579
580 2011-05-06  Bruno Haible  <bruno@clisp.org>
581
582         duplocale: Move AC_LIBOBJ invocations to module description.
583         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
584         gl_PREREQ_DUPLOCALE invocations from here...
585         * modules/duplocale (configure.ac): ... to here.
586
587 2011-05-05  Bruno Haible  <bruno@clisp.org>
588
589         dirfd: Move AC_LIBOBJ invocations to module description.
590         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
591         gl_FUNC_DIRFD.
592         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
593         here...
594         * modules/dirfd (configure.ac): ... to here.
595         (Depends-on): Fix condition.
596
597 2011-05-05  Bruno Haible  <bruno@clisp.org>
598
599         chown: Respect rules for use of AC_LIBOBJ.
600         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
601         * modules/chown (configure.ac): ... to here.
602
603 2011-05-05  Bruno Haible  <bruno@clisp.org>
604
605         chdir-long: Move AC_LIBOBJ invocations to module description.
606         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
607         gl_PREREQ_CHDIR_LONG invocations from here...
608         * modules/chdir-long (configure.ac): ... to here.
609
610 2011-05-05  Bruno Haible  <bruno@clisp.org>
611
612         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
613         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
614         from here...
615         * modules/canonicalize-lgpl (configure.ac): ... to here.
616
617 2011-05-05  Bruno Haible  <bruno@clisp.org>
618
619         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
620         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
621         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
622         REPLACE_CALLOC.
623         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
624         * modules/calloc-gnu (configure.ac): Likewise.
625
626 2011-05-05  Bruno Haible  <bruno@clisp.org>
627
628         btowc: Move AC_LIBOBJ invocations to module description.
629         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
630         invocations from here...
631         * modules/btowc (configure.ac): ... to here.
632
633 2011-05-21  Bruno Haible  <bruno@clisp.org>
634
635         atexit: Move AC_LIBOBJ invocations to module description.
636         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
637         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
638         here...
639         * modules/atexit (configure.ac): ... to here.
640
641 2011-05-05  Bruno Haible  <bruno@clisp.org>
642
643         atoll: Move AC_LIBOBJ invocations to module description.
644         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
645         invocations from here...
646         * modules/atoll (configure.ac): ... to here.
647
648 2011-05-05  Bruno Haible  <bruno@clisp.org>
649
650         argz: Move AC_LIBOBJ invocations to module description.
651         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
652         * modules/argz (configure.ac): ... to here.
653
654 2011-05-05  Bruno Haible  <bruno@clisp.org>
655
656         alphasort: Move AC_LIBOBJ invocations to module description.
657         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
658         gl_PREREQ_ALPHASORT invocations from here...
659         * modules/alphasort (configure.ac): ... to here.
660
661 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
662
663         verify: new macro verify_expr; verify_true deprecated
664         * NEWS: Mention this.
665         * doc/verify.texi (Compile-time Assertions): Document this.
666         * lib/verify.h (verify_true): Deprecate.
667         (verify_expr): New macro.
668         * tests/test-verify.c (function): Test verify_expr.
669
670 2011-06-14  Jim Meyering  <meyering@redhat.com>
671
672         init.sh: give more portable redirection-related advice in a comment
673         * tests/init.sh (stderr_fileno_): Update the advice in comments.
674         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
675         for lots of discussion.  Stefano Lattarini suggested the solution
676         of putting "9>&2" after the command.  Reported by Bruno Haible.
677
678 2011-06-13  Bruno Haible  <bruno@clisp.org>
679
680         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
681         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
682         'none'.
683
684 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
685
686         ftoastr: use strtof only if HAVE_STRTOF
687         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
689         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
690         * modules/ftoastr (configure.ac): Check for strtof.
691
692 2011-06-13  Bruno Haible  <bruno@clisp.org>
693
694         gnulib-tool: Addendum to 2011-06-08 commit.
695         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
696         and --witness-c-macro have been given, augment AM_CPPFLAGS.
697
698 2011-06-13  Bruno Haible  <bruno@clisp.org>
699
700         fseeko: Provide a non-inline replacement of fseek().
701         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
702         * modules/fseeko (Depends-on): Add fseek.
703         * modules/fseek (License): Change to LGPLv2+.
704
705 2011-06-13  Bruno Haible  <bruno@clisp.org>
706
707         ftello: Provide a non-inline replacement of ftell().
708         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
709         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
710         not have ftello() (such as on mingw).
711         * modules/ftello (Depends-on): Add ftell.
712         * modules/ftell (License): Change to LGPLv2+.
713
714 2011-05-07  Bruno Haible  <bruno@clisp.org>
715
716         ftell: Move AC_LIBOBJ invocations to module description.
717         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
718         * modules/ftell (configure.ac): ... to here.
719
720 2011-05-07  Bruno Haible  <bruno@clisp.org>
721
722         ftello: Respect rules for use of AC_LIBOBJ.
723         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
724         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
725         here...
726         * modules/ftello (configure.ac): ... to here.
727
728 2011-05-07  Bruno Haible  <bruno@clisp.org>
729
730         fseeko: Simplify.
731         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
732         (gl_FUNC_FSEEKO): Inline it here.
733
734 2011-05-07  Bruno Haible  <bruno@clisp.org>
735
736         fseek: Move AC_LIBOBJ invocations to module description.
737         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
738         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
739         * modules/fseek (configure.ac): ... to here.
740
741 2011-05-07  Bruno Haible  <bruno@clisp.org>
742
743         fseek: Respect rules for use of AC_LIBOBJ.
744         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
745         here...
746         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
747
748 2011-05-07  Bruno Haible  <bruno@clisp.org>
749
750         fseeko: Respect rules for use of AC_LIBOBJ.
751         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
752         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
753         here...
754         * modules/fseeko (configure.ac): ... to here.
755
756 2011-06-13  Bruno Haible  <bruno@clisp.org>
757
758         gnulib-tool: Allow comments in the 'Depends-on' section.
759         * doc/gnulib.texi (Module description): Mention comment syntax in the
760         Depends-on section.
761         * gnulib-tool (func_get_dependencies): Filter out comment lines.
762
763 2011-06-13  Bruno Haible  <bruno@clisp.org>
764
765         file-set.h: guard __attibute__ use, now that it's not always defined
766         * lib/file-set.h (record_file): Use __attribute__ only with compiler
767         versions that support it.  This fixes a coreutils build failure with
768         the vendor cc on HP-UX 11.31.
769
770 2011-06-12  Bruno Haible  <bruno@clisp.org>
771
772         acl: Add support for HP-UX >= 11.11 JFS ACLs.
773         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
774         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
775         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
776         (acl, aclsort): New declarations.
777         (aclv_nontrivial): New declaration.
778         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
779         (file_has_acl): Read also the second kind of HP-UX ACLs.
780         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
781         kind of HP-UX ACLs if the first kind fails.
782         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
783         second kind of HP-UX ACLs.
784         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
785         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
786         agree.
787         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
788         hpuxjfs.
789         Handle hpuxjfs.
790         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
791         hpuxjfs.
792         Handle hpuxjfs.
793         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
794         (func_test_same_acls): Use both lsacl and getacl.
795         Handle hpuxjfs.
796         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
797         (func_test_same_acls): Use both lsacl and getacl.
798         Handle hpuxjfs.
799
800 2011-06-12  Bruno Haible  <bruno@clisp.org>
801
802         acl: Complete the 2010-08-10 fix.
803         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
804         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
805         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
806         explicitly.
807         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
808         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
809
810 2011-06-12  Bruno Haible  <bruno@clisp.org>
811
812         spawn-pipe tests: Comments.
813         * tests/test-spawn-pipe-child.c (main): Update comment.
814         Reported by James Youngman <jay@gnu.org>.
815
816 2011-06-11  James Youngman  <jay@gnu.org>
817
818         New module 'stat-size'.
819         * modules/stat-size: New module.  Provides macros for accessing
820         file size information in instances of struct stat.  Depends on the
821         fileblocks module because it calls st_blocks.
822         * lib/stat-size.h: New file, adapted from coreutils' system.h.
823         * doc/gnulib.texi: Include stat-size.texi.
824         * doc/stat-size.texi: Documentation for this module.
825         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
826         * m4/fileblocks.m4: Mention that stat-size depends on the call to
827         AC_STRUCT_ST_BLOCKS.
828
829 2011-06-09  Bruno Haible  <bruno@clisp.org>
830
831         thread: Support pthreads-win32.
832         * lib/glthread/thread.h (gl_thread_self): Define differently on
833         pthreads-win32.
834         (gl_null_thread): New declaration.
835         (gl_thread_self_pointer): New macro.
836         * lib/glthread/thread.c (gl_null_thread): New constant.
837         * tests/test-lock.c: Use gl_thread_self_pointer instead of
838         gl_thread_self.
839         * tests/test-tls.c: Likewise.
840         Suggested by Paul Eggert. Reported by Eric Blake.
841
842 2011-06-09  Bruno Haible  <bruno@clisp.org>
843
844         thread: Fix confusion between NULL and 0.
845         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
846         Reported by Paul Eggert.
847
848 2011-06-09  Bruno Haible  <bruno@clisp.org>
849
850         spawn-pipe tests: Avoid test failure on HP-UX 11.
851         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
852         is closed.
853
854 2011-06-09  Bruno Haible  <bruno@clisp.org>
855
856         acl tests: Fix compilation error on HP-UX 11.
857         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
858
859 2011-06-09  Bruno Haible  <bruno@clisp.org>
860
861         rmdir: Avoid test failure on HP-UX 10.20.
862         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
863         EEXIST.
864
865 2011-06-08  Eric Blake  <eblake@redhat.com>
866
867         perror: fix test on mingw
868         * modules/perror-tests (Depends-on): Add dup2.
869
870         strerror_r-posix: fix on MacOS
871         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
872         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
873         logic bug.
874         * lib/strerror_r.c (strerror_r): Fix the bug.
875         * lib/strerror.c (strerror): Likewise.
876         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
877         problem.
878         * doc/posix-functions/strerror.texi (strerror): Likewise.
879         * doc/posix-functions/perror.texi (perror): Likewise.
880         * tests/test-strerror.c (main): Enhance test.
881         * tests/test-strerror_r.c (main): Likewise.
882
883 2011-06-08  Bruno Haible  <bruno@clisp.org>
884
885         gnulib-tool: Better isolation between different gnulib-tool invocations.
886         * gnulib-tool: New option --witness-c-macro.
887         (witness_c_macro): New variable.
888         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
889         AM_CPPFLAGS define it as a C macro.
890         (func_emit_tests_Makefile_am): Likewise.
891         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
892         read it from there.
893         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
894         m4_define, not AC_DEFUN.
895         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
896         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
897         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
898         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
899         s|...|...|, to substitute the values of the GNULIB_* module indicator
900         variables.
901         * modules/dirent (Makefile.am): Likewise.
902         * modules/fcntl-h (Makefile.am): Likewise.
903         * modules/iconv-h (Makefile.am): Likewise.
904         * modules/langinfo (Makefile.am): Likewise.
905         * modules/locale (Makefile.am): Likewise.
906         * modules/math (Makefile.am): Likewise.
907         * modules/netdb (Makefile.am): Likewise.
908         * modules/poll-h (Makefile.am): Likewise.
909         * modules/pty (Makefile.am): Likewise.
910         * modules/search (Makefile.am): Likewise.
911         * modules/signal (Makefile.am): Likewise.
912         * modules/spawn (Makefile.am): Likewise.
913         * modules/stdio (Makefile.am): Likewise.
914         * modules/stdlib (Makefile.am): Likewise.
915         * modules/string (Makefile.am): Likewise.
916         * modules/sys_ioctl (Makefile.am): Likewise.
917         * modules/sys_select (Makefile.am): Likewise.
918         * modules/sys_socket (Makefile.am): Likewise.
919         * modules/sys_stat (Makefile.am): Likewise.
920         * modules/sys_times (Makefile.am): Likewise.
921         * modules/sys_utsname (Makefile.am): Likewise.
922         * modules/sys_wait (Makefile.am): Likewise.
923         * modules/termios (Makefile.am): Likewise.
924         * modules/time (Makefile.am): Likewise.
925         * modules/unistd (Makefile.am): Likewise.
926         * modules/wchar (Makefile.am): Likewise.
927
928 2011-06-08  Eric Blake  <eblake@redhat.com>
929
930         strerror: simplify replacement
931         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
932         * modules/strerror (configure.ac): No prereqs needed here...
933         * modules/strerror-override (configure.ac): ...but this needs it.
934         (Files): Add file for needed prereq macro.
935
936 2011-06-08  Bruno Haible  <bruno@clisp.org>
937
938         strerror_r-posix: Tweaks.
939         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
940         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
941         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
942         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
943         (gl_FUNC_STRERROR_R): ... to here.
944         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
945
946 2011-06-07  Eric Blake  <eblake@redhat.com>
947
948         perror: document fixed bugs
949         * doc/posix-functions/perror.texi (perror): Document recent
950         patches.
951
952 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
953
954         stat-time: get_stat_birthtime failure is better-defined
955         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
956         return a timestamp whose tv_sec and tv_nsec values are both -1.
957         Previously, the spec said only that the tv_nsec value was negative.
958         This upward-compatible change simplifies GNU tar a bit.
959
960 2011-06-07  Eric Blake  <eblake@redhat.com>
961
962         strerror_r-posix: work around cygwin 1.7.9
963         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
964         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
965         bug without replacing strerror_r.
966         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
967         strerror_r is buggy, but without requiring strerror_r compilation.
968         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
969
970         test-perror: relax test to ignore cygwin bug
971         * tests/test-perror2.c (main): Relax test on requiring detection
972         of stream errors, and use unbuffered stream.
973         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
974         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
975         * doc/posix-functions/fputc.texi (fputc): Likewise.
976         * doc/posix-functions/fputs.texi (fputs): Likewise.
977         * doc/posix-functions/fputws.texi (fputws): Likewise.
978         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
979         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
980         * doc/posix-functions/getopt.texi (getopt): Likewise.
981         * doc/posix-functions/perror.texi (perror): Likewise.
982         * doc/posix-functions/printf.texi (printf): Likewise.
983         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
984         * doc/posix-functions/psignal.texi (psignal): Likewise.
985         * doc/posix-functions/putc.texi (putc): Likewise.
986         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
987         Likewise.
988         * doc/posix-functions/putchar.texi (putchar): Likewise.
989         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
990         Likewise.
991         * doc/posix-functions/puts.texi (puts): Likewise.
992         * doc/posix-functions/putwc.texi (putwc): Likewise.
993         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
994         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
995         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
996         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
997         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
998         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
999         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1000         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1001
1002 2011-05-22  Bruno Haible  <bruno@clisp.org>
1003
1004         strerror: Move AC_LIBOBJ invocations to module description.
1005         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1006         gl_PREREQ_STRERROR invocations from here...
1007         * modules/strerror (configure.ac): ... to here.
1008
1009 2011-05-21  Bruno Haible  <bruno@clisp.org>
1010
1011         perror: Use common idiom.
1012         * modules/perror (configure.ac): Reorder statements.
1013
1014 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1015
1016         tests: fix usage message in 'mktempd_'
1017         * tests/init.sh (mktempd_): In the usage message, use literal
1018         'mktempd_', not '$ME' (which is even undefined), as the name of
1019         the subroutine.
1020
1021 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1022
1023         tests init: new function 'fatal_', for hard errors
1024         Before this patch, the only way offered by tests/init.sh to
1025         properly signal a hard error was the `framework_failure_'
1026         function.  But the error message issued by that function,
1027         as its name would suggest, refers to a set-up failure in the
1028         testsuite, while hard errors can obviously also be due to
1029         other reasons.  The best way to fix this inconsistency is to
1030         introduce a new function with a more general error message.
1031         * tests/init.sh (fatal_): New function.
1032
1033 2011-06-06  Eric Blake  <eblake@redhat.com>
1034
1035         canonicalize-lgpl: use common idiom
1036         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1037         over newer POSIX -Rf.
1038         Reported by Bruno Haible.
1039
1040         canonicalize-lgpl: work around AIX realpath bug
1041         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1042         * doc/posix-functions/realpath.texi (realpath): Document it.
1043         Reported by Bruno Haible.
1044
1045         strerror: work around FreeBSD bug
1046         * lib/strerror.c (strerror): Special case 0.
1047         Reported by Bruno Haible.
1048
1049         strerror-override: avoid bloating errno module
1050         * modules/errno (Files, configure.ac): Move replacement strings...
1051         * modules/strerror-override: ...to new module.
1052         * modules/strerror (Depends-on): Add strerror-override.
1053         * modules/strerror_r-posix (Depends-on): Likewise.
1054         * MODULES.html.sh: Document new module.
1055         Reported by Bruno Haible.
1056
1057 2011-06-06  Bruno Haible  <bruno@clisp.org>
1058
1059         spawn-pipe tests: Rename program.
1060         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1061         * tests/test-spawn-pipe-child.c: Update comment.
1062         * tests/test-spawn-pipe.sh: Update.
1063         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1064
1065         spawn-pipe tests: Link the child program only against libc.
1066         * tests/test-spawn-pipe-child.c: New file, extracted from
1067         tests/test-spawn-pipe.c.
1068         (main): Expect only one argument.
1069         (is_open): New function, copied from tests/test-pipe.c.
1070         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1071         (child_main): Remove function.
1072         (test_pipe): Pass only one argument to the child program.
1073         (main): Remove child process code. Expect the child program's name as
1074         first argument.
1075         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1076         argument.
1077         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1078         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1079         test-spawn-pipe-child against no libraries.
1080
1081 2011-06-06  Bruno Haible  <bruno@clisp.org>
1082
1083         careadlinkat: Avoid mismatch between ssize_t and int.
1084         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1085         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1086
1087 2011-06-06  Jim Meyering  <meyering@redhat.com>
1088
1089         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1090         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1091         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1092
1093 2011-06-05  Bruno Haible  <bruno@clisp.org>
1094
1095         ansi-c++-opt: Interoperability with libtool.
1096         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1097         set the variable to "no", not to ":".
1098         * NEWS: Mention the change.
1099
1100 2011-06-05  Bruno Haible  <bruno@clisp.org>
1101
1102         acl: Fix test failure on AIX 7.
1103         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1104         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1105
1106 2011-06-05  Bruno Haible  <bruno@clisp.org>
1107
1108         pipe-filter-ii: Fix test failure on AIX and IRIX.
1109         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1110         with EAGAIN, retry with a smaller buffer size.
1111
1112 2011-06-05  Bruno Haible  <bruno@clisp.org>
1113
1114         localename: Fix link dependencies.
1115         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1116         * modules/localename-tests (Makefile.am): Link test-localename with
1117         $(LIBTHREAD).
1118
1119 2011-06-05  Bruno Haible  <bruno@clisp.org>
1120
1121         error: Avoid gcc warning.
1122         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1123
1124 2011-06-05  Bruno Haible  <bruno@clisp.org>
1125
1126         unsetenv: Avoid gcc warning.
1127         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1128
1129 2011-06-05  Bruno Haible  <bruno@clisp.org>
1130
1131         setenv: Avoid gcc warning.
1132         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1133
1134 2011-06-05  Bruno Haible  <bruno@clisp.org>
1135
1136         sys_select: Ensure memset is declared also on AIX 7.
1137         * lib/sys_select.in.h: Include <string.h> also on AIX.
1138         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1139         self-contained also on AIX 7.1.
1140
1141 2011-06-04  Jim Meyering  <meyering@redhat.com>
1142
1143         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1144         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1145         function name, "error".
1146         (_gl_translatable_diag_func_re): New configurable variable.
1147
1148 2011-06-04  Bruno Haible  <bruno@clisp.org>
1149
1150         getopt: Avoid gcc warning.
1151         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1152
1153 2011-06-04  Bruno Haible  <bruno@clisp.org>
1154
1155         strerror_r: Fix comments.
1156         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1157         commit.
1158
1159 2011-06-04  Bruno Haible  <bruno@clisp.org>
1160
1161         perror: Fix compilation error.
1162         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1163         Undefine fprintf, not sprintf.
1164         * modules/perror (Depends-on): Remove intprops, verify.
1165
1166 2011-06-04  Bruno Haible  <bruno@clisp.org>
1167
1168         setlocale: Enable replacement on Cygwin 1.5.
1169         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1170         Cygwin 1.5.x.
1171         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1172         LC_CTYPE category also exists on Cygwin 1.5.x.
1173
1174 2011-06-04  Bruno Haible  <bruno@clisp.org>
1175
1176         strerror-override: Don't disable symbol renamings.
1177         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1178         * lib/strerror-override.c: Include config.h.
1179         (strerror_override): Don't undefine.
1180
1181 2011-06-03  Bruno Haible  <bruno@clisp.org>
1182
1183         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1184         * lib/localename.h: Update copyright header.
1185         * lib/localename.c: Likewise.
1186         * lib/relocatable.h: Likewise.
1187         * lib/relocatable.c: Likewise.
1188
1189 2011-06-02  Bruno Haible  <bruno@clisp.org>
1190
1191         doc: Fix a module name.
1192         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1193
1194 2011-06-02  Bruno Haible  <bruno@clisp.org>
1195
1196         pipe2: Remove dependency on 'nonblocking' module.
1197         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1198         O_NONBLOCK is defined by gnulib.
1199         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1200         is zero.
1201         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1202         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1203         defined by gnulib.
1204         (get_nonblocking_flag): New function.
1205         (main): Test O_NONBLOCK flag only if it is nonzero.
1206         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1207
1208 2011-06-03  Jim Meyering  <meyering@redhat.com>
1209
1210         maint: three new prohibit-header-without-use rules
1211         Prohibit use of cloexec.h, posixver.h, same.h without use.
1212         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1213         (sc_prohibit_posixver_without_use): Likewise.
1214         (sc_prohibit_same_without_use): Likewise.
1215
1216 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1217
1218         allocator: 'die' routine is now given requested size
1219         * lib/allocator.h (struct allocator.die): New size arg.
1220         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1221         If the actual problem is an ssize_t limitation, not a size_t or
1222         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1223
1224 2011-06-01  Eric Blake  <eblake@redhat.com>
1225
1226         strerror: drop strerror_r dependency
1227         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1228         * lib/strerror-override.c (strerror_override): ...to new file.
1229         * lib/strerror-override.h: Add prototype.
1230         * lib/strerror-impl.h: Delete.
1231         * lib/strerror.c (strerror): New implementation.
1232         * modules/errno (Files): Add new files.
1233         (configure.ac): Compile new file as appropriate.
1234         * modules/strerror (Files): Drop unused file.
1235         (Depends-on): Drop strerror_r-posix.
1236         * MODULES.html.sh: Document strerror_r-posix.
1237         Requested by Sam Steingold.
1238
1239         perror: call strerror_r directly
1240         * modules/perror (Files): Drop strerror-impl.h.
1241         * lib/perror.c (perror): Use our own stack buffer, rather than
1242         calling a wrapper that uses static storage.
1243         * doc/posix-functions/perror.texi (perror): Document a limitation
1244         of our replacement.
1245
1246         strerror_r: fix includes for FreeBSD
1247         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1248         since we use abort on some platforms.
1249         Reported by Matthias Bolte.
1250
1251 2011-05-31  Bruno Haible  <bruno@clisp.org>
1252
1253         Fix link errors in tests: openat-die uses gettext-h.
1254         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1255         against $(LIBINTL).
1256         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1257         against $(LIBINTL).
1258         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1259         $(LIBINTL).
1260         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1261         against $(LIBINTL).
1262         * modules/linkat-tests (Makefile.am): Link test-linkat against
1263         $(LIBINTL).
1264         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1265         $(LIBINTL).
1266         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1267         against $(LIBINTL).
1268         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1269         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1270         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1271         $(LIBINTL).
1272         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1273         $(LIBINTL).
1274         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1275         $(LIBINTL).
1276         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1277
1278 2011-05-31  Bruno Haible  <bruno@clisp.org>
1279
1280         Fix link errors in tests: wait-process uses gettext-h.
1281         * modules/nonblocking-pipe-tests (Makefile.am): Set
1282         test_nonblocking_pipe_main_LDADD.
1283         * modules/nonblocking-socket-tests (Makefile.am): Link
1284         test-nonblocking-socket-main against $(LIBINTL).
1285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1286
1287 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1288
1289         assert-h: work around 'verify' incompatibility
1290         * lib/verify.h: Use @...@ directives, not ifdef.
1291         * modules/assert-h (assert.h): Implement the directives.
1292         (assert.h): Substitute the symbol-prefix more consistently.
1293
1294 2011-05-29  Jim Meyering  <meyering@redhat.com>
1295
1296         trim: remove three superfluous assignments
1297         * lib/trim.c (trim2): Remove three superfluous assignments
1298         and correct brace positioning.
1299
1300 2011-05-29  Bruno Haible  <bruno@clisp.org>
1301
1302         wctype-h: Avoid namespace pollution on Solaris 2.6.
1303         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1304         identifiers.
1305         * doc/posix-headers/wctype.texi: Mention the problem.
1306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1307
1308 2011-05-28  Jim Meyering  <meyering@redhat.com>
1309
1310         parse-datetime.y: accommodate -Wstrict-overflow
1311         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1312         placate -Wstrict-overflow.
1313
1314         trim: avoid a warning from -O2 -Wstrict-overflow
1315         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1316
1317 2011-05-29  Bruno Haible  <bruno@clisp.org>
1318
1319         gnulib-tool: Fix bug in yesterday's commit.
1320         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1321         twice.
1322
1323 2011-05-29  Bruno Haible  <bruno@clisp.org>
1324
1325         Allow multiple gnulib generated include files to be combined.
1326         * gnulib-tool (func_compute_include_guard_prefix): New function.
1327         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1328         ${gl_include_guard_prefix} references.
1329         (func_import, func_create_testdir): Invoke
1330         func_compute_include_guard_prefix.
1331         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1332         * lib/ctype.in.h: Likewise.
1333         * lib/dirent.in.h: Likewise.
1334         * lib/errno.in.h: Likewise.
1335         * lib/fcntl.in.h: Likewise.
1336         * lib/float.in.h: Likewise.
1337         * lib/getopt.in.h: Likewise.
1338         * lib/iconv.in.h: Likewise.
1339         * lib/langinfo.in.h: Likewise.
1340         * lib/locale.in.h: Likewise.
1341         * lib/math.in.h: Likewise.
1342         * lib/netdb.in.h: Likewise.
1343         * lib/netinet_in.in.h: Likewise.
1344         * lib/poll.in.h: Likewise.
1345         * lib/pthread.in.h: Likewise.
1346         * lib/pty.in.h: Likewise.
1347         * lib/sched.in.h: Likewise.
1348         * lib/se-selinux.in.h: Likewise.
1349         * lib/search.in.h: Likewise.
1350         * lib/signal.in.h: Likewise.
1351         * lib/spawn.in.h: Likewise.
1352         * lib/stdarg.in.h: Likewise.
1353         * lib/stddef.in.h: Likewise.
1354         * lib/stdint.in.h: Likewise.
1355         * lib/stdio.in.h: Likewise.
1356         * lib/stdlib.in.h: Likewise.
1357         * lib/string.in.h: Likewise.
1358         * lib/strings.in.h: Likewise.
1359         * lib/sys_file.in.h: Likewise.
1360         * lib/sys_ioctl.in.h: Likewise.
1361         * lib/sys_select.in.h: Likewise.
1362         * lib/sys_socket.in.h: Likewise.
1363         * lib/sys_stat.in.h: Likewise.
1364         * lib/sys_time.in.h: Likewise.
1365         * lib/sys_times.in.h: Likewise.
1366         * lib/sys_uio.in.h: Likewise.
1367         * lib/sys_utsname.in.h: Likewise.
1368         * lib/sys_wait.in.h: Likewise.
1369         * lib/sysexits.in.h: Likewise.
1370         * lib/termios.in.h: Likewise.
1371         * lib/time.in.h: Likewise.
1372         * lib/unistd.in.h: Likewise.
1373         * lib/wchar.in.h: Likewise.
1374         * lib/wctype.in.h: Likewise.
1375         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1376         * modules/ctype (Makefile.am): Likewise.
1377         * modules/dirent (Makefile.am): Likewise.
1378         * modules/errno (Makefile.am): Likewise.
1379         * modules/fcntl-h (Makefile.am): Likewise.
1380         * modules/float (Makefile.am): Likewise.
1381         * modules/getopt-posix (Makefile.am): Likewise.
1382         * modules/iconv-h (Makefile.am): Likewise.
1383         * modules/langinfo (Makefile.am): Likewise.
1384         * modules/locale (Makefile.am): Likewise.
1385         * modules/math (Makefile.am): Likewise.
1386         * modules/netdb (Makefile.am): Likewise.
1387         * modules/netinet_in (Makefile.am): Likewise.
1388         * modules/poll-h (Makefile.am): Likewise.
1389         * modules/pthread (Makefile.am): Likewise.
1390         * modules/pty (Makefile.am): Likewise.
1391         * modules/sched (Makefile.am): Likewise.
1392         * modules/search (Makefile.am): Likewise.
1393         * modules/selinux-h (Makefile.am): Likewise.
1394         * modules/signal (Makefile.am): Likewise.
1395         * modules/spawn (Makefile.am): Likewise.
1396         * modules/stdarg (Makefile.am): Likewise.
1397         * modules/stddef (Makefile.am): Likewise.
1398         * modules/stdint (Makefile.am): Likewise.
1399         * modules/stdio (Makefile.am): Likewise.
1400         * modules/stdlib (Makefile.am): Likewise.
1401         * modules/string (Makefile.am): Likewise.
1402         * modules/strings (Makefile.am): Likewise.
1403         * modules/sys_file (Makefile.am): Likewise.
1404         * modules/sys_ioctl (Makefile.am): Likewise.
1405         * modules/sys_select (Makefile.am): Likewise.
1406         * modules/sys_socket (Makefile.am): Likewise.
1407         * modules/sys_stat (Makefile.am): Likewise.
1408         * modules/sys_time (Makefile.am): Likewise.
1409         * modules/sys_times (Makefile.am): Likewise.
1410         * modules/sys_uio (Makefile.am): Likewise.
1411         * modules/sys_utsname (Makefile.am): Likewise.
1412         * modules/sys_wait (Makefile.am): Likewise.
1413         * modules/sysexits (Makefile.am): Likewise.
1414         * modules/termios (Makefile.am): Likewise.
1415         * modules/time (Makefile.am): Likewise.
1416         * modules/unistd (Makefile.am): Likewise.
1417         * modules/wchar (Makefile.am): Likewise.
1418         * modules/wctype-h (Makefile.am): Likewise.
1419         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1420
1421 2011-05-29  Bruno Haible  <bruno@clisp.org>
1422
1423         assert-h: Allow multiple gnulib generated replacements to coexist.
1424         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1425
1426 2011-05-29  Bruno Haible  <bruno@clisp.org>
1427
1428         argp: Allow coexistence with strerror_r-posix module.
1429         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1430         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1431         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1432         not the glibc signature.
1433
1434 2011-05-28  Bruno Haible  <bruno@clisp.org>
1435
1436         gnulib-tool: Alternative structure of testdirs, similar to --import.
1437         * gnulib-tool: New option --single-configure.
1438         (func_usage): Document it.
1439         (single_configure): New variable.
1440         (func_modules_transitive_closure_separately,
1441         func_modules_transitive_closure_separately,
1442         func_determine_use_libtests, func_modules_add_dummy_separately,
1443         func_modules_to_filelist_separately): New functions, extracted from
1444         func_import.
1445         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1446         (func_import): Use the new functions.
1447         (func_create_testdir): Set final_modules. Handle $single_configure =
1448         true case.
1449
1450 2011-05-28  Bruno Haible  <bruno@clisp.org>
1451
1452         getloadavg: Remove an unreliable safety check.
1453         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1454         getloadavg.c is in place.
1455         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1456         Reported by Sam Steingold <sds@gnu.org>.
1457
1458 2011-05-28  Bruno Haible  <bruno@clisp.org>
1459
1460         doc: Cleanup yet another file produced by texinfo.tex.
1461         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1462
1463 2011-05-28  Bruno Haible  <bruno@clisp.org>
1464
1465         Finish the conditional dependencies mechanism.
1466         * gnulib-tool: New option --no-conditional-dependencies.
1467         (func_usage): Document it. Don't mark --conditional-dependencies as
1468         experimental.
1469         (cond_dependencies): The possible values can now be true, false, empty.
1470         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1471         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1472         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1473
1474 2011-05-28  Bruno Haible  <bruno@clisp.org>
1475
1476         doc: Use a recent texinfo.tex.
1477         * doc/Makefile (tex_opts): New variable.
1478         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1479
1480 2011-05-28  Jim Meyering  <meyering@redhat.com>
1481
1482         intprops.h: adjust comment to match code change
1483         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1484         only once, it *may* have side effects.  Also fix an unrelated typo.
1485         (_GL_INT_SIGNED): Likewise.
1486
1487 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1488
1489         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1490
1491 2011-05-26  Bruno Haible  <bruno@clisp.org>
1492
1493         mbsrchr: Avoid collision with system function on Interix.
1494         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1495         Reported by Markus Duft <mduft@gentoo.org>.
1496
1497 2011-05-15  James Youngman  <jay@gnu.org>
1498
1499         getopt: for ambiguous options, enumerate the possibilities.
1500         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1501         the ambiguous options when an ambiguous prefix is given. This was
1502         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1503         glibc change was
1504         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1505
1506 2011-05-25  Eric Blake  <eblake@redhat.com>
1507
1508         getcwd: work around mingw bug
1509         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1510         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1511         Reported by Matthias Bolte.
1512
1513 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1514
1515         test-intprops: disable -Wtype-limits diagnostics
1516         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1517         diagnostics.  Otherwise, the integer overflow macros generate many
1518         diagnostics.  Reported by Jim Meyering in
1519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1520
1521         intprops: shorten, to pacify gcc -Woverlength-strings
1522         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1523         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1524         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1525         likely to run afoul of C compiler limits for string constant lengths.
1526         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1527
1528 2011-05-24  Eric Blake  <eblake@redhat.com>
1529
1530         docs: document recently fixed glibc printf bug
1531         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1532         * doc/posix-functions/printf.texi (printf): Likewise.
1533         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1534         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1535
1536         closein-tests: convert to init.sh
1537         * modules/closein-tests (Files): Add init.sh
1538         * tests/test-closein.sh Use it.
1539
1540         yesno-tests: convert to init.sh
1541         * modules/yesno-tests (Files): Add init.sh.
1542         * tests/test-yesno.sh: Use it.
1543
1544         atexit-tests: ensure reliable exit status
1545         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1546         Reported by Bruno Haible.
1547
1548 2011-05-24  Bruno Haible  <bruno@clisp.org>
1549
1550         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1551         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1552         gl_PREREQ_STRERROR_R invocations from here...
1553         * modules/strerror_r-posix (configure.ac): ... to here.
1554
1555 2011-05-24  Eric Blake  <eblake@redhat.com>
1556
1557         strerror_r: fix missing header
1558         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1559
1560         strerror_r: fix AIX test failures
1561         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1562         ERANGE failure.
1563
1564         strerror_r: fix Solaris test failures
1565         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1566         failures.
1567         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1568
1569         strerror_r: enforce POSIX recommendations
1570         * lib/strerror_r.c (safe_copy): New helper method.
1571         (strerror_r): Guarantee a non-empty string.
1572         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1573         recent POSIX rulings and to match our strerror guarantees.
1574         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1575
1576 2011-05-24  Jim Meyering  <meyering@redhat.com>
1577
1578         test-perror2.c: avoid warning about unused variable
1579         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1580
1581 2011-05-24  Eric Blake  <eblake@redhat.com>
1582
1583         perror: avoid spurious test failure on HP-UX
1584         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1585
1586         tests: fix logic bug in init.sh
1587         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1588         shell.
1589
1590 2011-05-24  Jim Meyering  <meyering@redhat.com>
1591
1592         utimensat: do not reference an out-of-scope buffer
1593         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1594         declared in an inner scope, yet "times" would be dereferenced outside
1595         the scope in which "ts" was valid.
1596         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1597         of ts[2] "out/up", so that the use of aliased "times" (via
1598         "times = ts;") does not end up referencing an out-of-scope "ts"
1599
1600         opendir-safer.c: don't clobber errno; don't close negative FD
1601         * lib/opendir-safer.c (opendir_safer):
1602         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1603         file descriptor, and more importantly, don't clobber the
1604         offending errno value with EINVAL.  Before, upon failure
1605         of dup_safer, we would pass the negative file descriptor to
1606         fdopendir, which would clobber errno.
1607
1608 2011-05-23  Bruno Haible  <bruno@clisp.org>
1609
1610         idcache: Fix module description.
1611         * modules/idcache (Include): Set to "idcache.h".
1612
1613 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1614
1615         gnulib-tool: fix portability problem with MacOS sed
1616         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1617         before the "}".  Problem reported by Leo in
1618         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1619         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1620         sed_extract_condition1, sed_extract_condition2.
1621
1622 2011-05-23  Bruno Haible  <bruno@clisp.org>
1623
1624         hash: Simplify autoconf macro.
1625         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1626
1627 2011-05-23  Bruno Haible  <bruno@clisp.org>
1628
1629         getugroups: Fix module description.
1630         * modules/getugroups (Include): Set to "getugroups.h".
1631
1632 2011-05-23  Bruno Haible  <bruno@clisp.org>
1633
1634         linkat: Simplify autoconf macro.
1635         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1636
1637 2011-05-23  Bruno Haible  <bruno@clisp.org>
1638             Eric Blake  <eblake@redhat.com>
1639
1640         linkat, renameat: Update dependencies.
1641         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1642         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1643         symlinkat.
1644
1645 2011-05-23  Jim Meyering  <meyering@redhat.com>
1646
1647         maint.mk: more tight_scope improvements
1648         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1649         (_gl_TS_headers): Define only in if-0'd block.
1650         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1651         sometimes we must *not* use it.  Adjust uses accordingly.
1652         (sc_tight_scope): Use much simpler grep-based test to determine
1653         whether we skip this rule.
1654
1655         maint.mk: generalize/improve the tight-scope rule
1656         * top/maint.mk: Emit a warning when the test is skipped.
1657         (_gl_TS_dir): Add $(srcdir)/ prefix.
1658         (_gl_TS_function_match): Simplify, rather than trying
1659         to enumerate common types.  Otherwise, it would fail to match an
1660         "extern unsigned char const *" declaration in idutils.
1661         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1662         a way to support use of that type of macro.
1663         (_gl_TS_var_match): Simplify regexp.
1664         (_gl_TS_obj_files): New configurable variable.
1665         (_gl_TS_headers): Likewise.
1666
1667 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1668
1669         verify: fix bug when gnulib <assert.h> is also included
1670         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1671         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1672         Perhaps there's a better way, but this fixes the immediate problem.
1673         Problem reported by Bruno Haible in
1674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1675
1676 2011-05-22  Bruno Haible  <bruno@clisp.org>
1677
1678         xgetcwd: Simplify autoconf macro.
1679         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1680
1681 2011-05-22  Bruno Haible  <bruno@clisp.org>
1682
1683         New module 'mktime-internal'.
1684         * modules/mktime-internal: New file.
1685         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1686         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1687         mktime_internal as a C macro if libc has __mktime_internal.
1688         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1689         conditions.
1690         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1691
1692 2011-05-22  Bruno Haible  <bruno@clisp.org>
1693
1694         timegm: Correct mktime replacement statements.
1695         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1696         defining mktime as a C macro. This completes a 2009-07-28 commit.
1697
1698 2011-05-22  Bruno Haible  <bruno@clisp.org>
1699
1700         timegm: Simplify autoconf macro.
1701         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1702
1703 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1704
1705         clock-time: change to LGPLv2+.
1706         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1707         BSD-like but we have no mark for that; this is good enough for now.
1708
1709 2011-05-21  Bruno Haible  <bruno@clisp.org>
1710
1711         strerror_r: Fix comments.
1712         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1713
1714 2011-05-21  Bruno Haible  <bruno@clisp.org>
1715
1716         relocatable-prog-wrapper: Fix possible link error.
1717         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1718         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1719         (gl_FUNC_SETENV): ... to here.
1720         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1721         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1722
1723 2011-05-21  Bruno Haible  <bruno@clisp.org>
1724
1725         relocatable-prog-wrapper: Assume strerror() exists.
1726         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1727         m4/strerror.m4.
1728         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1729         * lib/relocwrapper.c: Remove mention of strerror module.
1730         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1731         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1732         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1733         C macro.
1734
1735 2011-05-21  Bruno Haible  <bruno@clisp.org>
1736
1737         select: Simplify replacement idiom.
1738         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1739         Win32 platforms.
1740         * lib/sys_select.in.h (select): Simplify accordingly.
1741         * modules/select (Depends-on): Likewise.
1742
1743 2011-05-21  Bruno Haible  <bruno@clisp.org>
1744
1745         mkdir-p: Simplify autoconf macro.
1746         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1747         gl_FUNC_LCHOWN.
1748
1749 2011-05-21  Eric Blake  <eblake@redhat.com>
1750
1751         strerror_r: avoid clobbering strerror on cygwin
1752         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1753         fall back instead to sys_errlist.
1754         * modules/strerror (configure.ac): Add witness.
1755         * tests/test-strerror_r.c (main): Enhance test.
1756         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1757         * tests/test-perror2.c (main): Free memory before exit.
1758
1759 2011-05-21  Bruno Haible  <bruno@clisp.org>
1760
1761         mkdtemp: Use gnulib naming conventions.
1762         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1763         * modules/mkdtemp (configure.ac): Update.
1764
1765 2011-05-20  Eric Blake  <eblake@redhat.com>
1766
1767         strerror_r: avoid corrupting errno on Solaris
1768         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1769         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1770
1771         strerror_r: avoid compiler warning
1772         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1773
1774         strerror_r: simplify AIX code
1775         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1776
1777         test-perror: avoid spurious failure on FreeBSD
1778         * modules/perror-tests (Depends-on): Add strerror, now that
1779         strerror_r no longer pulls it in.
1780
1781 2011-05-20  Bruno Haible  <bruno@clisp.org>
1782
1783         strerror_r-posix: Remove unused dependencies.
1784         * modules/strerror_r-posix (Depends-on): Remove strerror.
1785         Reported by Eric Blake.
1786
1787 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1788
1789         intprops: remove assumption about A|B representation
1790         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1791         is a valid integer if both A and B are.  Although this is true for
1792         all known practical hosts, the C standard doesn't guarantee it,
1793         and the code need not assume it.  Also, this change may work around
1794         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1796
1797 2011-05-20  Eric Blake  <eblake@redhat.com>
1798
1799         perror: work around FreeBSD bug
1800         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1801         is broken.  Move AC_LIBOBJ...
1802         * modules/perror (configure.ac): Here.
1803         * doc/posix-functions/perror.texi (perror): Document this.
1804         * tests/test-perror2.c (main): Enhance test.
1805
1806         test-perror: check for strerror interactions
1807         * tests/macros.h (STREQ): Add macro.
1808         * modules/perror-tests (Files): Add second test.
1809         * tests/test-perror2.c (main): New file.
1810         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1811
1812         test-perror: rewrite to use init script
1813         * modules/perror-tests (Files): Add init.sh.
1814         * tests/test-perror.sh: Use temporary directory.
1815
1816 2011-05-20  Jim Meyering  <meyering@redhat.com>
1817
1818         maint: replace misused "a" with "an"
1819         * doc/intprops.texi: "a integer"
1820         * doc/regex.texi: "a explanation"
1821         * lib/alignof.h: "a object"
1822         * lib/argmatch.h: "a explanation"
1823         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1824         * lib/stdint.in.h: "a integer"
1825         * lib/userspec.c: "a owner"
1826         * doc/gnulib.texi: Fix "a idea", and reword.
1827
1828 2011-05-19  Jim Meyering  <meyering@redhat.com>
1829
1830         maint: correct misuse of "a" and "an"
1831         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1832         * lib/argp-help.c: "an docum...": s/an/a/
1833         * lib/argp-parse.c: "An vector": s/An/A/
1834         * lib/execute.c: "an native": s/an/a/
1835         * lib/spawn-pipe.c: Likewise.
1836         * lib/gc.h: "an Gc_rc": s/an/a/
1837         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1838         * lib/fts.c: "an stat.st_dev": s/an/a/
1839
1840 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1841
1842         intprops-tests: work around HP-UX 11.23 cc bug with constants
1843         * tests/test-intprops.c (VERIFY): New macro.
1844         (main): Use it, instead of verify, to work around the compiler bug; see
1845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1846
1847         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1848         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1849         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1850         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1851         (_GL_REMAINDER_OVERFLOW): Use it.
1852
1853         intprops-tests: revert unsigned part of previous change
1854         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1855         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1856         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1858
1859 2011-05-19  Bruno Haible  <bruno@clisp.org>
1860
1861         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1862         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1863         strerror_r() returned without filling the buffer.
1864         Reported by Eric Blake.
1865
1866 2011-05-19  Eric Blake  <eblake@redhat.com>
1867
1868         strerror_r: guarantee unchanged errno
1869         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1870         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1871         failure.
1872         * tests/test-strerror_r.c (main): Enhance test.
1873
1874 2011-05-19  Bruno Haible  <bruno@clisp.org>
1875
1876         strerror_r: Reorder #if blocks.
1877         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1878         for consistency with the previous commit.
1879
1880 2011-05-19  Bruno Haible  <bruno@clisp.org>
1881
1882         perror: Avoid clobbering the strerror buffer when possible.
1883         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1884         * lib/strerror.c: Include it.
1885         * modules/strerror (Files): Add lib/strerror-impl.h.
1886         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1887         (my_strerror): New function, defined through lib/strerror-impl.h.
1888         (perror): Use it instead of strerror.
1889         * modules/perror (Files): Add lib/strerror-impl.h.
1890         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1891
1892 2011-05-19  Eric Blake  <eblake@redhat.com>
1893
1894         strerror_r: fix on newer cygwin
1895         * lib/strerror_r.c (strerror_r): Cygwin now has
1896         __xpg_strerror_r, use it.
1897
1898 2011-05-19  Bruno Haible  <bruno@clisp.org>
1899
1900         strerror_r: Avoid clobbering the strerror buffer when possible.
1901         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1902         (sys_nerr, sys_errlist): New declarations.
1903         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1904         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1905         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1906
1907 2011-05-19  Bruno Haible  <bruno@clisp.org>
1908
1909         strerror_r: Fix test failure on mingw.
1910         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1911         EXTEND_STRERROR_R.
1912         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1913         macros from errno.in.h instead.
1914
1915 2011-05-19  Eric Blake  <eblake@redhat.com>
1916
1917         strerror: relax test for Solaris
1918         * tests/test-strerror.c (main): Permit Solaris behavior.
1919         * tests/test-strerror_r.c (main): Likewise.
1920
1921         strerror: enforce POSIX ruling on strerror(0)
1922         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1923         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1924         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1925         * doc/posix-functions/strerror.texi (strerror): Document it.
1926         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1927         * tests/test-strerror.c (main): Strengthen test.
1928         * tests/test-strerror_r.c (main): Likewise.
1929
1930 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1931
1932         intprop-tests: port to older and more-pedantic compilers
1933         * modules/intprops-tests (Files): Add tests/macros.h.
1934         * tests/test-intprops.c: Include macros.h.
1935         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1936         it's no longer documented to expand to an integer constant expression.
1937         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1938         argument is floating point, as it's no longer documented to expand
1939         to an integer constant expression in that case.
1940         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1941         compiler bugs reported by Bruno Haible.  See
1942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1943         (U0, U1): New constants, to work around the same bugs.  Also,
1944         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1945
1946         intprops: work around C compiler bugs
1947         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1948         bug in Sun C 5.11 2010/08/13 and other compilers; see
1949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1950
1951         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1952         * doc/intprops.texi (Integer Type Determination): Fix
1953         documentation for TYPE_IS_INTEGER: it returns an constant
1954         expression, not an integer constant expression.  Fix doc for
1955         TYPE_SIGNED: it returns an integer constant expression only if its
1956         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1957         hardly worth documented that way....)
1958
1959 2011-05-18  Bruno Haible  <bruno@clisp.org>
1960
1961         strerror_r: Avoid clobbering the strerror buffer when possible.
1962         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1963         Handle gnulib defined errno values here. When strerror() returns NULL
1964         or an empty string, return EINVAL.
1965         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1966         gnulib defined errno values here.
1967         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1968
1969 2011-05-18  Eric Blake  <eblake@redhat.com>
1970
1971         fnmatch: avoid compiler warning
1972         * lib/fnmatch_loop.c (FCT): Use correct type.
1973         Reported by Matthias Bolte.
1974
1975 2011-05-13  Jim Meyering  <meyering@redhat.com>
1976
1977         maint.mk: three new prohibit_<HDR>_without_use rules
1978         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1979         (sc_prohibit_stdio-safer_without_use): Likewise.
1980         (sc_prohibit_xfreopen_without_use): Likewise.
1981
1982 2011-05-17  Jim Meyering  <meyering@redhat.com>
1983
1984         announce-gen: fail if the NEWS delta is empty
1985         If there's nothing noteworthy in NEWS, then either you forgot
1986         or you shouldn't be releasing.
1987         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1988
1989 2011-05-17  Pádraig Brady <P@draigBrady.com>
1990
1991         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1992         reserved symbols starting with double underscore from the check.
1993
1994 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1995
1996         intprops: add doc
1997         * doc/intprops.texi: New file, documenting intprops.
1998         * doc/gnulib.texi (Particular Modules): Include it.
1999
2000         verify: add doc to gnulib manual and fix example
2001         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2002         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2003         (Compile-time Assertions): Fix example so it can't overflow.
2004
2005 2011-05-17  Jim Meyering  <meyering@redhat.com>
2006
2007         warnings.m4: don't usurp save_CPPFLAGS variable name
2008         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2009
2010         doc: fix typo
2011         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2012
2013 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2014             Bruno Haible  <bruno@clisp.org>
2015
2016         doc: Tweak recent change.
2017         * README (Portability guidelines): Tweak new text.
2018         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2019         Interix 6.1.
2020
2021 2011-05-16  Eric Blake  <eblake@redhat.com>
2022
2023         inttypes: avoid autoconf warning
2024         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2025         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2026
2027 2011-05-16  Sam Steingold <sds@gnu.org>
2028         and Eric Blake  <eblake@redhat.com>
2029
2030         vc-list-files: accept multiple directory operands
2031         * build-aux/vc-list-files: Iterate over all remaining operands.
2032
2033 2011-05-16  Bruno Haible  <bruno@clisp.org>
2034
2035         Fix confusion regarding deprecated modules.
2036         * modules/calloc (Status, Notice): Mark module as deprecated, not
2037         obsolete.
2038         * modules/fnmatch-posix (Status, Notice): Likewise.
2039         * modules/getdate (Status, Notice): Likewise.
2040         * modules/getopt (Status, Notice): Likewise.
2041         * modules/malloc (Status, Notice): Likewise.
2042         * modules/pipe (Status, Notice): Likewise.
2043         * modules/realloc (Status, Notice): Likewise.
2044         * modules/rename-dest-slash (Status, Notice): Likewise.
2045         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2046         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2047         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2048         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2049         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2050
2051 2011-05-16  Bruno Haible  <bruno@clisp.org>
2052
2053         doc: List the target platforms.
2054         * doc/gnulib-intro.texi (Target Platforms): New section.
2055         * doc/gnulib.texi (Introduction): Update menu.
2056         * README (Portability guidelines): Refer to the new section. Update
2057         statement about oldest supported environment. Remove rationale why
2058         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2059         unportable C89 function.
2060         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2061         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2062
2063 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2064
2065         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2066
2067 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2068
2069         intprops-tests: new module
2070         * modules/intprops-tests, tests/test-intprops.c: New files.
2071
2072         intprops: add safe, portable integer overflow checking
2073         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2074         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2075         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2076         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2077         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2078         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2079         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2080         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2081         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2082         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2083         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2084
2085 2011-05-12  James Youngman  <jay@gnu.org>
2086
2087         Add a test for glibc's Bugzilla bug #12378.
2088         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2089         doesn't allow the literal matching of a lone "[" (which is
2090         required by POSIX).
2091         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2092
2093 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2094
2095         Sync glibc change fixing Bugzilla bug #12378.
2096         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2097         beginning and fall back to matching as normal character if the
2098         string ends before the matching ']' is found.  This is what POSIX
2099         requires.
2100
2101 2011-05-13  Eric Blake  <eblake@redhat.com>
2102
2103         getcwd-lgpl: relax test for FreeBSD
2104         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2105         issue.
2106         * tests/test-getcwd-lgpl.c (main): Relax test.
2107         Reported by Matthias Bolte.
2108
2109 2011-05-11  Eric Blake  <eblake@redhat.com>
2110
2111         test-fflush: silence compiler warning
2112         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2113
2114 2011-05-11  Bruno Haible  <bruno@clisp.org>
2115
2116         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2117         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2118         * modules/canonicalize (Depends-on): Add 'nocrash'.
2119         * modules/canonicalize-lgpl (Depends-on): Likewise.
2120         * doc/posix-functions/realpath.texi: Update platforms list.
2121         Reported by Ryan Schmidt <ryandesign@macports.org>.
2122
2123 2011-05-11  Bruno Haible  <bruno@clisp.org>
2124
2125         group-member: Declare function in <unistd.h>.
2126         * lib/unistd.in.h (group_member): New declaration.
2127         * lib/group-member.h: Remove file.
2128         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2129         * tests/test-unistd-c++.cc: Check signature of group_member.
2130         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2131         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2132         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2133         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2134         HAVE_GROUP_MEMBER.
2135         * modules/group-member (Files): Remove lib/group-member.h.
2136         (Depends-on): Add unistd. Specify conditions.
2137         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2138         (Include): Change to <unistd.h>.
2139         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2140         HAVE_GROUP_MEMBER.
2141         * NEWS: Mention the change.
2142         * lib/euidaccess.c: Don't include group-member.h.
2143
2144 2011-05-11  Bruno Haible  <bruno@clisp.org>
2145
2146         group-member: Document module.
2147         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2148         module.
2149
2150 2011-05-11  Bruno Haible  <bruno@clisp.org>
2151
2152         fclose: Fix mistake earlier today.
2153         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2154
2155 2011-05-11  Eric Blake  <eblake@redhat.com>
2156
2157         fclose: preserve fflush errors
2158         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2159         Reported by Jim Meyering.
2160
2161         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2162         * build-aux/bootstrap (check_versions): When no specific version
2163         is required, merely check that the app produces an exit status
2164         that indicates its existence.
2165
2166         maint.mk: drop redundant check
2167         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2168         the same but better.
2169
2170 2011-05-11  Bruno Haible  <bruno@clisp.org>
2171
2172         fclose: Fix possible link error.
2173         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2174         unregister_shadow_fd. Improve comments.
2175         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2176         Eric Blake.
2177
2178 2011-05-11  Jim Meyering  <meyering@redhat.com>
2179
2180         maint.mk: improve "can not" detection and generalize rule name
2181         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2182         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2183         Use the same technique as in sc_prohibit_doubled_word, so that
2184         we recognize "can not" also when the words are separated by a newline.
2185         Suggested by Eric Blake.
2186         (perl_filename_lineno_text_): Define.  Factored out of...
2187         (prohibit_doubled_word_): ...here.  Use the new definition.
2188         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2189         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2190         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2191
2192 2011-05-10  Eric Blake  <eblake@redhat.com>
2193
2194         fclose: avoid double close race when possible
2195         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2196         all but WINDOWS_SOCKETS.
2197
2198 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2199
2200         openat: correct new comment
2201         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2202
2203 2011-05-10  Jim Meyering  <meyering@redhat.com>
2204
2205         openat: add comments
2206         * lib/openat-proc.c (openat_proc_name): Add comments,
2207         mostly from Eric Blake.
2208
2209 2011-05-09  Eric Blake  <eblake@redhat.com>
2210
2211         openat: reduce syscalls in first probe of /proc
2212         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2213         be a directory.  Simplify the probe for .. bugs.
2214         * modules/openat (Depends-on): Drop same-inode.
2215         Reported by Bastien ROUCARIES.
2216
2217 2011-05-09  Jim Meyering  <meyering@redhat.com>
2218
2219         maint.mk: change semantics/name of tight_scope variables
2220         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2221         Rename variables to align with semantics that make them more useful.
2222
2223         maint.mk: tweak new rule's name not to impinge
2224         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2225         (sc_tight_scope): Use new rule name rather than $@-0.
2226
2227         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2228         * top/maint.mk (sc_tight_scope): New rule.
2229         (sc_tight_scope-0): New rule, ifdef'd out.
2230         (_gl_TS_dir): Default.
2231         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2232         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2233
2234 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2235
2236         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2237         Haible <bruno@clisp.org>.
2238
2239 2011-05-08  Bruno Haible  <bruno@clisp.org>
2240
2241         Comments.
2242         * m4/isnanf.m4: Add comment.
2243         * m4/isnanl.m4: Likewise.
2244
2245 2011-05-08  Bruno Haible  <bruno@clisp.org>
2246
2247         glob: Remove obsolete macro.
2248         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2249
2250 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2251
2252         intprops: Sun C 5.11 supports __typeof__
2253         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2254         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2255         which is new.
2256         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2257
2258         intprops: switch to usual gnulib indenting and naming
2259         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2260         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2261
2262         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2263
2264 2011-05-08  Jim Meyering  <meyering@redhat.com>
2265
2266         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2267         * top/maint.mk (release-prep): Use make's --no-print-directory
2268         option when generating the announcement.  This eliminates the
2269         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2270         generated announcement template.
2271
2272 2011-05-08  Bruno Haible  <bruno@clisp.org>
2273
2274         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2275         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2276         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2277
2278 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2279
2280         ignore-value, verify: Omit include files from lib_SOURCES.
2281         * modules/ignore-value, modules/verify (Makefile.am):
2282         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2283         that leads Automake to duplicate use of am__objects_... variables
2284         in Makefile.in.  See
2285         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2286
2287 2011-05-07  Bruno Haible  <bruno@clisp.org>
2288
2289         fclose: Simplify autoconf macro.
2290         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2291         defined.
2292
2293 2011-05-07  Bruno Haible  <bruno@clisp.org>
2294
2295         canonicalize-lgpl: Fix autoconf macro ordering bug.
2296         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2297         gl_STDLIB_H_DEFAULTS.
2298
2299 2011-05-06  Eric Blake  <eblake@redhat.com>
2300
2301         maintainer-makefile: make sc_po_check easier to tune
2302         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2303         to probe for strings, such as an alternate location for gnulib.
2304
2305         fclose: guarantee behavior on seekable stdin
2306         * modules/fclose (Depends-on): Add fflush.
2307         * doc/posix-functions/fclose.texi (fclose): Document this.
2308         * tests/test-fclose.c (main): Make test for this unconditional.
2309
2310 2011-05-06  Bruno Haible  <bruno@clisp.org>
2311
2312         fflush, fpurge: Relicense under LGPLv2+.
2313         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2314         * modules/fpurge (License): Likewise.
2315         With permission from Eric Blake and Jim Meyering.
2316         Suggested by Eric Blake.
2317
2318 2011-05-06  Karl Berry  <karl@gnu.org>
2319
2320         * MODULES.html.sh (func_all_modules): remove exit.
2321
2322 2011-05-06  Jim Meyering  <meyering@redhat.com>
2323
2324         maint.mk: use info-gnu@ as the default only for a stable release
2325         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2326         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2327         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2328         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2329
2330 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2331
2332         assert-h: new module, which supports C1X-style static_assert
2333         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2334         * lib/verify.h: Revamp so that this can be copied into assert.h,
2335         while retaining the ability to use it standalone as before.
2336         Rename private identifiers so as not to encroach on the
2337         standard C namespace, since this is now used by assert.h.
2338         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2339         the old verify_true.
2340         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2341         the old verify_true.  Use _GL_VERIFY_TYPE.
2342         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2343         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2344         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2345         defined when this file is copied into the replacement assert.h.
2346         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2347         and _Static_assert is not built in.
2348         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2349         defined, and use the new macros mentioned above.
2350         * doc/posix-headers/assert.texi: Document this.
2351
2352 2011-05-05  Bruno Haible  <bruno@clisp.org>
2353
2354         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2355         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2356         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2357         gl_REPLACE_FCLOSE here.
2358         * modules/fflush (Depends-on): Remove fclose.
2359         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2360         combination with module 'fclose'.
2361
2362 2011-05-05  Bruno Haible  <bruno@clisp.org>
2363
2364         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2365         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2366         gl_FUNC_FFLUSH.
2367         (gl_FUNC_FFLUSH): Use it.
2368         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2370         gl_REPLACE_FSEEKO here.
2371
2372 2011-05-05  Bruno Haible  <bruno@clisp.org>
2373
2374         tzset: Relicense under LGPL.
2375         * modules/tzset (License): Change to LGPL.
2376         No agreement needed; it's a no-op.
2377
2378         strtoimax, strtoumax: Relicense under LGPL.
2379         * modules/strtoimax (License): Change to LGPL.
2380         * modules/strtoumax (License): Likewise.
2381         With permission from Jim Meyering, Paul Eggert:
2382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2384
2385         getgroups: Relicense under LGPL.
2386         * modules/getgroups (License): Change to LGPL.
2387         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2391
2392         nanosleep: Relicense under LGPL.
2393         * modules/nanosleep (License): Change to LGPL.
2394         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2395         Haible:
2396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2400
2401         futimens: Relicense under LGPL.
2402         * modules/futimens (License): Change to LGPL.
2403         With permission from Eric Blake:
2404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2405
2406         fflush: Relicense under LGPL.
2407         * modules/fflush (License): Change to LGPL.
2408         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2412
2413         tmpfile: Relicense under LGPL.
2414         * modules/tmpfile (License): Change to LGPL.
2415         With permission from Ben Pfaff:
2416         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2417
2418         isfinite: Relicense under LGPL.
2419         * modules/isfinite (License): Change to LGPL.
2420         With permission from Ben Pfaff, Bruno Haible:
2421         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2423
2424         acosl..tanl: Relicense under LGPL.
2425         * modules/acosl (License): Change to LGPL.
2426         * modules/asinl (License): Likewise.
2427         * modules/atanl (License): Likewise.
2428         * modules/cosl (License): Likewise.
2429         * modules/expl (License): Likewise.
2430         * modules/logl (License): Likewise.
2431         * modules/sinl (License): Likewise.
2432         * modules/sqrtl (License): Likewise.
2433         * modules/tanl (License): Likewise.
2434         Source code originally from glibc and Paolo Bonzini. Agreements:
2435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2437
2438 2011-05-05  Bruno Haible  <bruno@clisp.org>
2439
2440         signal: Define sighandler_t.
2441         * lib/signal.in.h (sighandler_t): New type.
2442         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2443         whether sighandler_t is defined.
2444         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2445         * modules/signal (Depends-on): Add extensions.
2446         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2447         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2448         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2449
2450 2011-05-05  Eric Blake  <eblake@redhat.com>
2451
2452         maint: remove useless REPLACE_*_H macros
2453         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2454         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2455         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2456         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2457         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2458         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2459         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2460         * m4/btowc.m4: Update callers.
2461         * m4/dirfd.m4: Likewise.
2462         * m4/duplocale.m4: Likewise.
2463         * m4/fchdir.m4: Likewise.
2464         * m4/fdopendir.m4: Likewise.
2465         * m4/inet_ntop.m4: Likewise.
2466         * m4/inet_pton.m4: Likewise.
2467         * m4/ioctl.m4: Likewise.
2468         * m4/mbrlen.m4: Likewise.
2469         * m4/mbrtowc.m4: Likewise.
2470         * m4/mbsinit.m4: Likewise.
2471         * m4/mbsnrtowcs.m4: Likewise.
2472         * m4/mbsrtowcs.m4: Likewise.
2473         * m4/poll.m4: Likewise.
2474         * m4/setlocale.m4: Likewise.
2475         * m4/wcrtomb.m4: Likewise.
2476         * m4/wcsnrtombs.m4: Likewise.
2477         * m4/wcsrtombs.m4: Likewise.
2478         * m4/wctob.m4: Likewise.
2479         * m4/wcwidth.m4: Likewise.
2480         * modules/posix_spawn: Likewise.
2481         * modules/posix_spawn_file_actions_addclose: Likewise.
2482         * modules/posix_spawn_file_actions_adddup2: Likewise.
2483         * modules/posix_spawn_file_actions_addopen: Likewise.
2484         * modules/posix_spawn_file_actions_destroy: Likewise.
2485         * modules/posix_spawn_file_actions_init: Likewise.
2486         * modules/posix_spawnattr_destroy: Likewise.
2487         * modules/posix_spawnattr_getflags: Likewise.
2488         * modules/posix_spawnattr_getpgroup: Likewise.
2489         * modules/posix_spawnattr_getschedparam: Likewise.
2490         * modules/posix_spawnattr_getschedpolicy: Likewise.
2491         * modules/posix_spawnattr_getsigdefault: Likewise.
2492         * modules/posix_spawnattr_getsigmask: Likewise.
2493         * modules/posix_spawnattr_init: Likewise.
2494         * modules/posix_spawnattr_setflags: Likewise.
2495         * modules/posix_spawnattr_setpgroup: Likewise.
2496         * modules/posix_spawnattr_setschedparam: Likewise.
2497         * modules/posix_spawnattr_setschedpolicy: Likewise.
2498         * modules/posix_spawnattr_setsigdefault: Likewise.
2499         * modules/posix_spawnattr_setsigmask: Likewise.
2500         * modules/posix_spawnp: Likewise.
2501
2502 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2503
2504         Add option to do-release-commit-and-tag to specify branch.
2505         * build-aux/do-release-commit-and-tag: Add --branch.
2506
2507 2011-05-03  Bruno Haible  <bruno@clisp.org>
2508
2509         Avoid unnecessary compilation units, through conditional dependencies.
2510         * modules/accept (Depends-on): Add conditions to the dependencies.
2511         * modules/acosl (Depends-on): Likewise.
2512         * modules/argz (Depends-on): Likewise.
2513         * modules/asinl (Depends-on): Likewise.
2514         * modules/atanl (Depends-on): Likewise.
2515         * modules/atoll (Depends-on): Likewise.
2516         * modules/bind (Depends-on): Likewise.
2517         * modules/btowc (Depends-on): Likewise.
2518         * modules/canonicalize-lgpl (Depends-on): Likewise.
2519         * modules/ceil (Depends-on): Likewise.
2520         * modules/ceilf (Depends-on): Likewise.
2521         * modules/ceill (Depends-on): Likewise.
2522         * modules/chdir-long (Depends-on): Likewise.
2523         * modules/chown (Depends-on): Likewise.
2524         * modules/close (Depends-on): Likewise.
2525         * modules/connect (Depends-on): Likewise.
2526         * modules/cosl (Depends-on): Likewise.
2527         * modules/dirfd (Depends-on): Likewise.
2528         * modules/dprintf (Depends-on): Likewise.
2529         * modules/dprintf-posix (Depends-on): Likewise.
2530         * modules/error (Depends-on): Likewise.
2531         * modules/euidaccess (Depends-on): Likewise.
2532         * modules/expl (Depends-on): Likewise.
2533         * modules/faccessat (Depends-on): Likewise.
2534         * modules/fchdir (Depends-on): Likewise.
2535         * modules/fclose (Depends-on): Likewise.
2536         * modules/fcntl (Depends-on): Likewise.
2537         * modules/fdopendir (Depends-on): Likewise.
2538         * modules/fflush (Depends-on): Likewise.
2539         * modules/floor (Depends-on): Likewise.
2540         * modules/floorf (Depends-on): Likewise.
2541         * modules/floorl (Depends-on): Likewise.
2542         * modules/fnmatch (Depends-on): Likewise.
2543         * modules/fopen (Depends-on): Likewise.
2544         * modules/fprintf-posix (Depends-on): Likewise.
2545         * modules/frexp (Depends-on): Likewise.
2546         * modules/frexp-nolibm (Depends-on): Likewise.
2547         * modules/frexpl (Depends-on): Likewise.
2548         * modules/frexpl-nolibm (Depends-on): Likewise.
2549         * modules/fseek (Depends-on): Likewise.
2550         * modules/fsusage (Depends-on): Likewise.
2551         * modules/ftell (Depends-on): Likewise.
2552         * modules/ftello (Depends-on): Likewise.
2553         * modules/futimens (Depends-on): Likewise.
2554         * modules/getcwd (Depends-on): Likewise.
2555         * modules/getcwd-lgpl (Depends-on): Likewise.
2556         * modules/getdelim (Depends-on): Likewise.
2557         * modules/getdomainname (Depends-on): Likewise.
2558         * modules/getgroups (Depends-on): Likewise.
2559         * modules/gethostname (Depends-on): Likewise.
2560         * modules/getline (Depends-on): Likewise.
2561         * modules/getlogin_r (Depends-on): Likewise.
2562         * modules/getopt-posix (Depends-on): Likewise.
2563         * modules/getpeername (Depends-on): Likewise.
2564         * modules/getsockname (Depends-on): Likewise.
2565         * modules/getsockopt (Depends-on): Likewise.
2566         * modules/getsubopt (Depends-on): Likewise.
2567         * modules/getusershell (Depends-on): Likewise.
2568         * modules/glob (Depends-on): Likewise.
2569         * modules/grantpt (Depends-on): Likewise.
2570         * modules/iconv_open (Depends-on): Likewise.
2571         * modules/iconv_open-utf (Depends-on): Likewise.
2572         * modules/inet_ntop (Depends-on): Likewise.
2573         * modules/inet_pton (Depends-on): Likewise.
2574         * modules/ioctl (Depends-on): Likewise.
2575         * modules/isapipe (Depends-on): Likewise.
2576         * modules/isfinite (Depends-on): Likewise.
2577         * modules/isinf (Depends-on): Likewise.
2578         * modules/lchown (Depends-on): Likewise.
2579         * modules/ldexpl (Depends-on): Likewise.
2580         * modules/link (Depends-on): Likewise.
2581         * modules/linkat (Depends-on): Likewise.
2582         * modules/listen (Depends-on): Likewise.
2583         * modules/logl (Depends-on): Likewise.
2584         * modules/lstat (Depends-on): Likewise.
2585         * modules/mbrlen (Depends-on): Likewise.
2586         * modules/mbrtowc (Depends-on): Likewise.
2587         * modules/mbsinit (Depends-on): Likewise.
2588         * modules/mbsnrtowcs (Depends-on): Likewise.
2589         * modules/mbsrtowcs (Depends-on): Likewise.
2590         * modules/mbtowc (Depends-on): Likewise.
2591         * modules/memcmp (Depends-on): Likewise.
2592         * modules/mkdir (Depends-on): Likewise.
2593         * modules/mkdtemp (Depends-on): Likewise.
2594         * modules/mkfifo (Depends-on): Likewise.
2595         * modules/mkfifoat (Depends-on): Likewise.
2596         * modules/mknod (Depends-on): Likewise.
2597         * modules/mkostemp (Depends-on): Likewise.
2598         * modules/mkostemps (Depends-on): Likewise.
2599         * modules/mkstemp (Depends-on): Likewise.
2600         * modules/mkstemps (Depends-on): Likewise.
2601         * modules/mktime (Depends-on): Likewise.
2602         * modules/nanosleep (Depends-on): Likewise.
2603         * modules/open (Depends-on): Likewise.
2604         * modules/openat (Depends-on): Likewise.
2605         * modules/perror (Depends-on): Likewise.
2606         * modules/poll (Depends-on): Likewise.
2607         * modules/popen (Depends-on): Likewise.
2608         * modules/posix_spawn (Depends-on): Likewise.
2609         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2610         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2611         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2612         * modules/posix_spawnp (Depends-on): Likewise.
2613         * modules/pread (Depends-on): Likewise.
2614         * modules/printf-posix (Depends-on): Likewise.
2615         * modules/ptsname (Depends-on): Likewise.
2616         * modules/putenv (Depends-on): Likewise.
2617         * modules/pwrite (Depends-on): Likewise.
2618         * modules/readline (Depends-on): Likewise.
2619         * modules/readlink (Depends-on): Likewise.
2620         * modules/readlinkat (Depends-on): Likewise.
2621         * modules/recv (Depends-on): Likewise.
2622         * modules/recvfrom (Depends-on): Likewise.
2623         * modules/regex (Depends-on): Likewise.
2624         * modules/remove (Depends-on): Likewise.
2625         * modules/rename (Depends-on): Likewise.
2626         * modules/renameat (Depends-on): Likewise.
2627         * modules/rmdir (Depends-on): Likewise.
2628         * modules/round (Depends-on): Likewise.
2629         * modules/roundf (Depends-on): Likewise.
2630         * modules/roundl (Depends-on): Likewise.
2631         * modules/rpmatch (Depends-on): Likewise.
2632         * modules/select (Depends-on): Likewise.
2633         * modules/send (Depends-on): Likewise.
2634         * modules/sendto (Depends-on): Likewise.
2635         * modules/setenv (Depends-on): Likewise.
2636         * modules/setlocale (Depends-on): Likewise.
2637         * modules/setsockopt (Depends-on): Likewise.
2638         * modules/shutdown (Depends-on): Likewise.
2639         * modules/sigaction (Depends-on): Likewise.
2640         * modules/signbit (Depends-on): Likewise.
2641         * modules/sigprocmask (Depends-on): Likewise.
2642         * modules/sinl (Depends-on): Likewise.
2643         * modules/sleep (Depends-on): Likewise.
2644         * modules/snprintf (Depends-on): Likewise.
2645         * modules/snprintf-posix (Depends-on): Likewise.
2646         * modules/socket (Depends-on): Likewise.
2647         * modules/sprintf-posix (Depends-on): Likewise.
2648         * modules/sqrtl (Depends-on): Likewise.
2649         * modules/stat (Depends-on): Likewise.
2650         * modules/strchrnul (Depends-on): Likewise.
2651         * modules/strdup-posix (Depends-on): Likewise.
2652         * modules/strerror (Depends-on): Likewise.
2653         * modules/strerror_r-posix (Depends-on): Likewise.
2654         * modules/strndup (Depends-on): Likewise.
2655         * modules/strnlen (Depends-on): Likewise.
2656         * modules/strptime (Depends-on): Likewise.
2657         * modules/strsep (Depends-on): Likewise.
2658         * modules/strsignal (Depends-on): Likewise.
2659         * modules/strstr-simple (Depends-on): Likewise.
2660         * modules/strtod (Depends-on): Likewise.
2661         * modules/strtoimax (Depends-on): Likewise.
2662         * modules/strtok_r (Depends-on): Likewise.
2663         * modules/strtoumax (Depends-on): Likewise.
2664         * modules/symlink (Depends-on): Likewise.
2665         * modules/symlinkat (Depends-on): Likewise.
2666         * modules/tanl (Depends-on): Likewise.
2667         * modules/tcgetsid (Depends-on): Likewise.
2668         * modules/tmpfile (Depends-on): Likewise.
2669         * modules/trunc (Depends-on): Likewise.
2670         * modules/truncf (Depends-on): Likewise.
2671         * modules/truncl (Depends-on): Likewise.
2672         * modules/uname (Depends-on): Likewise.
2673         * modules/unlink (Depends-on): Likewise.
2674         * modules/unlockpt (Depends-on): Likewise.
2675         * modules/unsetenv (Depends-on): Likewise.
2676         * modules/usleep (Depends-on): Likewise.
2677         * modules/utimensat (Depends-on): Likewise.
2678         * modules/vasprintf (Depends-on): Likewise.
2679         * modules/vdprintf (Depends-on): Likewise.
2680         * modules/vdprintf-posix (Depends-on): Likewise.
2681         * modules/vfprintf-posix (Depends-on): Likewise.
2682         * modules/vprintf-posix (Depends-on): Likewise.
2683         * modules/vsnprintf (Depends-on): Likewise.
2684         * modules/vsnprintf-posix (Depends-on): Likewise.
2685         * modules/vsprintf-posix (Depends-on): Likewise.
2686         * modules/wcrtomb (Depends-on): Likewise.
2687         * modules/wcscasecmp (Depends-on): Likewise.
2688         * modules/wcscspn (Depends-on): Likewise.
2689         * modules/wcsdup (Depends-on): Likewise.
2690         * modules/wcsncasecmp (Depends-on): Likewise.
2691         * modules/wcsnrtombs (Depends-on): Likewise.
2692         * modules/wcspbrk (Depends-on): Likewise.
2693         * modules/wcsrtombs (Depends-on): Likewise.
2694         * modules/wcsspn (Depends-on): Likewise.
2695         * modules/wcsstr (Depends-on): Likewise.
2696         * modules/wcstok (Depends-on): Likewise.
2697         * modules/wcswidth (Depends-on): Likewise.
2698         * modules/wctob (Depends-on): Likewise.
2699         * modules/wctomb (Depends-on): Likewise.
2700         * modules/wctype (Depends-on): Likewise.
2701         * modules/wcwidth (Depends-on): Likewise.
2702         * modules/write (Depends-on): Likewise.
2703
2704 2011-05-03  Bruno Haible  <bruno@clisp.org>
2705
2706         Support for conditional dependencies.
2707         * doc/gnulib.texi (Module description): Document the syntax of
2708         conditional dependencies.
2709         * gnulib-tool: New option --conditional-dependencies.
2710         (func_usage): Document it.
2711         (cond_dependencies): New variable.
2712         (func_get_automake_snippet_conditional,
2713         func_get_automake_snippet_unconditional): New functions, extracted from
2714         func_get_automake_snippet.
2715         (func_get_automake_snippet): Use them.
2716         (sed_first_32_chars): New variable.
2717         (func_module_shellfunc_name): New function.
2718         (func_module_shellvar_name): New function.
2719         (func_module_conditional_name): New function.
2720         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2721         func_cond_module_condition): New functions.
2722         (func_modules_transitive_closure): Add support for conditional
2723         dependencies.
2724         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2725         conditional automake snippet in an automake conditional.
2726         (func_emit_autoconf_snippets): Emit shell functions that contain the
2727         code for conditional modules.
2728         (func_import, func_create_testdir): Update specification.
2729
2730 2011-05-03  Eric Blake  <eblake@redhat.com>
2731
2732         test-getaddrinfo: report error information
2733         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2734
2735 2011-05-03  Jim Meyering  <meyering@redhat.com>
2736
2737         bootstrap: avoid build failure when $GZIP is set
2738         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2739         program name.  If defined at all, it is supposed to list gzip options.
2740         Reported by Alan Curry in http://debbugs.gnu.org/8609
2741
2742 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2743
2744         readme-release: new module with release instructions
2745         * modules/readme-release: New module.
2746         * top/README-release: New file, from coreutils, grep, diffutils.
2747         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2748
2749 2011-05-02  Eric Blake  <eblake@redhat.com>
2750
2751         fflush: also replace fclose when fixing fflush
2752         * modules/fflush (Depends-on): Add fclose.
2753         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2754         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2755         memstreams with no backing fd.
2756         * doc/posix-functions/fclose.texi (fclose): Document the use of
2757         fflush module to fix the bug.
2758         * tests/test-fclose.c (main): Relax test when fclose is used in
2759         isolation.
2760
2761         fclose: add some tests
2762         * modules/fclose-tests: New test module.
2763         * tests/test-fclose.c: New file.
2764         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2765
2766         fclose: reduced dependencies
2767         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2768         simpler lseek.
2769         * lib/fclose.c (rpl_fclose): Likewise.
2770         Reported by Simon Josefsson.
2771
2772         exit: drop remaining clients
2773         * modules/argmatch (Depends-on): Replace exit with stdlib.
2774         * modules/copy-file (Depends-on): Likewise.
2775         * modules/execute (Depends-on): Likewise.
2776         * modules/exitfail (Depends-on): Likewise.
2777         * modules/obstack (Depends-on): Likewise.
2778         * modules/pagealign_alloc (Depends-on): Likewise.
2779         * modules/pipe-filter-gi (Depends-on): Likewise.
2780         * modules/pipe-filter-ii (Depends-on): Likewise.
2781         * modules/savewd (Depends-on): Likewise.
2782         * modules/spawn-pipe (Depends-on): Likewise.
2783         * modules/wait-process (Depends-on): Likewise.
2784         * modules/xsetenv (Depends-on): Likewise.
2785         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2786         * modules/git-merge-changelog (Depends-on): Likewise.
2787         * modules/long-options (Depends-on): Likewise.
2788         * modules/pt_chown (Depends-on): Likewise.
2789         * modules/sysexits (Depends-on): Likewise.
2790
2791         freading: relax license from LGPLv3+ to LGPLv2+
2792         * modules/freading (License): Relax LGPL version.
2793
2794 2011-05-02  Bruno Haible  <bruno@clisp.org>
2795
2796         fchdir: Remove unused dependencies.
2797         * modules/fchdir (Depends-on): Remove include_next.
2798
2799 2011-05-02  Bruno Haible  <bruno@clisp.org>
2800
2801         gnulib-tool: Refactor.
2802         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2803         from func_emit_autoconf_snippets.
2804         (func_emit_autoconf_snippets): Use it.
2805
2806 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2807
2808         * NEWS: Document removal of 'exit'.
2809         * modules/exit: Remove file.
2810
2811 2011-05-01  Bruno Haible  <bruno@clisp.org>
2812
2813         Update DEPENDENCIES.
2814         * DEPENDENCIES (gettext): Recommend the newest release.
2815         Reported by Simon Josefsson.
2816
2817 2011-05-01  Bruno Haible  <bruno@clisp.org>
2818
2819         gnulib-tool: Reduce code duplication.
2820         * gnulib-tool (func_emit_autoconf_snippets): New function.
2821         (func_import, func_create_testdir): Use it.
2822
2823 2011-04-30  Eric Blake  <eblake@redhat.com>
2824
2825         fclose: don't fail on non-seekable input stream
2826         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2827         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2828         since fflush is allowed to fail in that case.
2829
2830 2011-04-30  Bruno Haible  <bruno@clisp.org>
2831
2832         dup3: cleanup
2833         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2834
2835 2011-04-30  Bruno Haible  <bruno@clisp.org>
2836
2837         netdb: Make it work in C++ mode.
2838         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2839         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2840         module.
2841         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2842         gl_MODULE_INDICATOR_FOR_TESTS.
2843         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2844         * modules/netdb-c++-tests: New file.
2845         * tests/test-netdb-c++.cc: New file.
2846
2847 2011-04-30  Bruno Haible  <bruno@clisp.org>
2848
2849         New modules 'vfscanf', 'vscanf'.
2850         * modules/vfscanf: New file.
2851         * modules/vscanf: New file.
2852         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2853         here.
2854         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2855         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2856
2857 2011-04-30  Bruno Haible  <bruno@clisp.org>
2858
2859         passfd: Add comments.
2860         * lib/passfd.c: Add comments about platforms.
2861
2862 2011-04-30  Bruno Haible  <bruno@clisp.org>
2863
2864         sys_uio: Make <sys/uio.h> self-contained.
2865         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2866         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2867
2868 2011-04-30  Bruno Haible  <bruno@clisp.org>
2869
2870         sys_socket: Ensure 'struct iovec' definition.
2871         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2872         <sys/socket.h>.
2873         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2874
2875 2011-04-30  Bruno Haible  <bruno@clisp.org>
2876
2877         sys_uio: Protect definition of 'struct iovec'.
2878         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2879         it as a C struct.
2880
2881 2011-04-30  Bruno Haible  <bruno@clisp.org>
2882
2883         manywarnings: fix indentation
2884         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2885
2886 2011-04-30  Pádraig Brady <P@draigBrady.com>
2887
2888         manywarnings: add -Wno-missing-field-initializers if needed.
2889         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2890         option if it's needed to allow initialization with { 0, }
2891
2892 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2893
2894         announce-gen: cosmetic improvement
2895         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2896
2897 2011-04-29  Jim Meyering  <meyering@redhat.com>
2898
2899         vc-list-files: indent with spaces, not TABs
2900         * build-aux/vc-list-files: Convert leading TABs to spaces,
2901         to match the style of most other files in gnulib.
2902
2903         announce-gen: indent with spaces, not TABs
2904         * build-aux/announce-gen: Convert all TABs to spaces, to match
2905         the style of most other files in gnulib.
2906
2907 2011-04-29  Eric Blake  <eblake@redhat.com>
2908
2909         quotearg: avoid uninitialized variable use
2910         * lib/quotearg.c (quoting_options_from_style): Initialize
2911         remaining fields, and ensure that custom styles are only used via
2912         quoting_options rather than quoting_style.
2913
2914 2011-04-29  Jim Meyering  <meyering@redhat.com>
2915
2916         maint.mk: remove unused VC-tag variable
2917         * top/maint.mk (VC-tag): Remove unused variable.
2918
2919 2011-04-29  Bruno Haible  <bruno@clisp.org>
2920
2921         netdb: fix gai_strerror replacements
2922         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2923         * modules/netdb: Substitute it.
2924
2925 2011-04-29  Jim Meyering  <meyering@redhat.com>
2926
2927         test-getcwd.c: avoid new set-but-not-used warning
2928         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2929         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2930         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2931         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2932
2933         test-hash.c: avoid a new shadowing warning
2934         * tests/test-hash.c (main): Don't shadow "dup".
2935
2936 2011-04-28  Eric Blake  <eblake@redhat.com>
2937
2938         getaddrinfo: fix gai_strerror signature
2939         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2940         and work around mingw with UNICODE defined.
2941         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2942         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2943         * modules/netdb (Makefile.am): Substitute it.
2944         * lib/netdb.in.h (gai_strerror): Declare replacement.
2945         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2946         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2947         the fix.
2948
2949         getsockopt: avoid compiler warning
2950         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2951         Reported by Matthias Bolte.
2952
2953         tests: drop unused link dependency
2954         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2955         * modules/dirent-safer-tests (Makefile.am): Likewise.
2956         * modules/fdopendir-tests (Makefile.am): Likewise.
2957         * modules/mkfifoat-tests (Makefile.am): Likewise.
2958         * modules/openat-safer-tests (Makefile.am): Likewise.
2959         * modules/openat-tests (Makefile.am): Likewise.
2960         * modules/readlinkat-tests (Makefile.am): Likewise.
2961         * modules/symlinkat-tests (Makefile.am): Likewise.
2962         * modules/linkat-tests (Makefile.am): Likewise.
2963         (Depends-on): Switch to filenamecat-lgpl.
2964         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2965         LIBINTL.
2966         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2967         * tests/test-linkat.c (main): Don't require xalloc.
2968
2969         hash, mgetgroups: drop xalloc dependency
2970         * lib/hash.c (includes): Adjust includes.
2971         * lib/mgetgroups.c (includes): Likewise.
2972         (xgetgroups): Move...
2973         * lib/xgetgroups.c: ...to new file.
2974         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2975         * modules/xgetgroups: New file, split from...
2976         * modules/mgetgroups: ...here.
2977         (Depends-on): Add xalloc-oversized.
2978         * modules/hash (Depends-on): Likewise.
2979         * modules/hash-tests (Depends-on): Drop xalloc.
2980         (test_hash_LDADD): Drop unused library.
2981         * tests/test-hash.c (main): Break xalloc dependency.
2982         (includes): Drop unused include.
2983
2984         xalloc-oversized: new module
2985         * modules/xalloc-oversized: New module.
2986         * modules/xalloc (Depends-on): Add it.
2987         * lib/xalloc.h (xalloc_oversized): Move...
2988         * lib/xalloc-oversized.h: ...into new file.
2989
2990         utimecmp: drop dependency on xmalloc
2991         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2992         due to memory pressure.
2993         * modules/utimecmp (Depends-on): Drop xalloc.
2994
2995 2011-04-27  Eric Blake  <eblake@redhat.com>
2996
2997         getcwd: fix mingw bugs
2998         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2999         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3000         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3001
3002 2011-04-27  Bruno Haible  <bruno@clisp.org>
3003
3004         mkstemps: Ensure declaration on MacOS X 10.5.
3005         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3006         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3007         MacOS X.
3008
3009 2011-04-27  Bruno Haible  <bruno@clisp.org>
3010
3011         mkstemp: More documentation.
3012         * doc/posix-functions/mkstemp.texi: Document header file problem on
3013         MacOS X.
3014
3015 2011-04-27  Bruno Haible  <bruno@clisp.org>
3016
3017         mkstemp: Tweak configure message when cross-compiling.
3018         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3019         result as a guess.
3020
3021 2011-04-27  Bruno Haible  <bruno@clisp.org>
3022
3023         clean-temp: Clarify what it does.
3024         * lib/clean-temp.h: Add more comments.
3025         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3026         module.
3027         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3028         * doc/glibc-functions/mkstemps.texi: Likewise.
3029         * doc/glibc-functions/mkostemps.texi: Likewise.
3030
3031 2011-04-27  Eric Blake  <eblake@redhat.com>
3032
3033         fchdir: avoid extra chdir and fix test
3034         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3035         getcwd-lgpl.
3036         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3037         have to be canonical.
3038         (canonicalize_file_name): Drop unused macro.
3039         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3040
3041         filenamecat-lgpl: fix licence
3042         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3043         when it was first created.
3044
3045         linkat, renameat: add missing dependency
3046         * modules/linkat (Depends-on): Require getcwd-lgpl.
3047         * modules/renameat (Depends-on): Likewise.
3048
3049         tests: reduce dependencies
3050         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3051         * tests/test-renameat.c (main): Likewise.
3052         * modules/linkat-tests (Depends-on): Relax dependency.
3053         * modules/renameat-tests (Depends-on): Likewise.
3054         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3055         dependency explicit.
3056
3057         save-cwd: reduce default dependency
3058         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3059         * lib/save-cwd.c: Update comments.
3060         * NEWS: Document the semantic change.
3061
3062         getcwd: enhance tests
3063         * tests/test-getcwd-lgpl.c: New file, taken from...
3064         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3065         repeat long path stress tests from m4 probe.
3066         * modules/getcwd-lgpl-tests: New module.
3067         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3068         * m4/getcwd-abort-bug.m4: Update comment.
3069         * m4/getcwd-path-max.m4: Likewise.
3070
3071         getcwd-lgpl: new module
3072         * modules/getcwd-lgpl: New module.
3073         * lib/getcwd-lgpl.c: New file.
3074         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3075         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3076         * modules/getcwd (configure.ac): Set C witness.
3077         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3078
3079         getcwd: tweak comments
3080         * m4/getcwd-abort-bug.m4: Fix comments.
3081         * m4/getcwd-path-max.m4: Likewise.
3082         * m4/getcwd.m4: Likewise.
3083
3084 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3085         and Eric Blake  <eblake@redhat.com>
3086
3087         mkstemp: replace if system version uses wrong permissions
3088         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3089         read/write mode bits set in file created by mkstemp.
3090         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3091
3092 2011-04-27  Eric Blake  <eblake@redhat.com>
3093
3094         passfd: avoid compiler warning
3095         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3096         Reported by Laine Stump.
3097
3098 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3099
3100         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3101         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3102
3103 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3104         and Eric Blake  <eblake@redhat.com>
3105
3106         mkstemp: mention clean-temp module
3107         * lib/mkstemp.c: Add comment.
3108         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3109
3110 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3111
3112         inttypes: also provide default values for 32-bit tests
3113         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3114         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3115
3116 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3117
3118         strtoumax: remove dependency on strtoimax
3119         This is like the strtoull change of yesterday.
3120         * modules/strtoumax (Files): Add lib/strtoimax.c.
3121         (Depends-on): Remove strtoimax and add verify.
3122
3123         inttypes-incomplete: new module
3124         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3125         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3126         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3127         of gl_INTTYPES_H.
3128         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3129         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3130         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3131         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3132         * modules/strtoumax, modules/xstrtol (Depends-on):
3133         Depend on inttypes-incomplete, not inttypes.
3134         * modules/inttypes-incomplete: New module, containing the contents
3135         of the old modules/inttypes module, except that the Files: section
3136         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3137         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3138         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3139         (Depends-on): Depend only on inttypes-incomplete.
3140         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3141
3142         inttypes: omit now-redundant strtoimax and strtoumax work
3143         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3144         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3145
3146         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3147         This supports apps that need pointers to strtoimax and strtoumax,
3148         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3149         nonexistent functions.  See
3150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3151         et seq.
3152         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3153         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3154         a macro.
3155         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3156
3157 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3158
3159         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3160
3161 2011-04-25  Bruno Haible  <bruno@clisp.org>
3162
3163         strtol, strtoul: Mark modules as obsolete.
3164         * modules/strtol (Status, Notice): New sections.
3165         * modules/strtoul (Status, Notice): New sections.
3166
3167 2011-04-25  Bruno Haible  <bruno@clisp.org>
3168
3169         strtod: Remove check for strtod, unless supporting old platforms.
3170         * modules/strtod-obsolete: New file.
3171         * m4/strtod-obsolete.m4: New file.
3172         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3173         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3174         * modules/strtod (Depends-on): Add strtod-obsolete.
3175         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3176
3177 2011-04-25  Bruno Haible  <bruno@clisp.org>
3178
3179         strcase: Make module obsolete.
3180         * modules/strcase (Status, Notice): New sections.
3181
3182 2011-04-25  Bruno Haible  <bruno@clisp.org>
3183
3184         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3185         * modules/dup2-obsolete: New file.
3186         * m4/dup2-obsolete.m4: New file.
3187         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3188         gl_FUNC_DUP2_OBSOLETE is not also defined.
3189         * modules/dup2 (Depends-on): Add dup2-obsolete.
3190         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3191
3192 2011-04-25  Bruno Haible  <bruno@clisp.org>
3193
3194         strnlen: Avoid memchr related link error on old obsolete platforms.
3195         * modules/memchr-obsolete: New file.
3196         * m4/memchr-obsolete.m4: New file.
3197         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3198         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3199         * modules/memchr (Depends-on): Add memchr-obsolete.
3200         * modules/strnlen (Depends-on): Likewise.
3201         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3202
3203 2011-04-25  Jim Meyering  <meyering@redhat.com>
3204
3205         maint.mk: makefile_at_at_check extend and clean up
3206         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3207         in addition to */Makefile.am.
3208         Exempt legitimate uses of @VAR@ notation, e.g.,
3209         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3210         Remove obsolete coreutils-specific comment.
3211         Prompted by discussion here:
3212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3213
3214 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3215
3216         strtoul: remove dependency on strtol
3217         This is so that 'configure' need not check for strtol merely because
3218         the application needs strtoul.
3219         * modules/strtoul (Files): Add lib/strtol.c.
3220         (Depends-on): Remove strtol.
3221
3222         strtoull: remove dependency on strtoul
3223         This is like the strtoll change.
3224         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3225         (Depends-on): Remove strtoul.
3226
3227         strtoll: remove dependency on strtol
3228         This is so that 'configure' need not check for strtol merely because
3229         the application needs strtoll.
3230         * modules/strtoll (Files): Add lib/strtol.c.
3231         (Depends-on): Remove strtol.
3232
3233 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3234
3235         inttypes: Move some configure check to module 'imaxdiv'.
3236         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3237         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3238         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3239
3240 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3241
3242         inttypes: Move some configure check to module 'imaxabs'.
3243         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3244         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3245         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3246
3247 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3248
3249         inttypes: Remove configure tests that are not needed since 2009-12-31.
3250         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3251         gl_cv_header_working_inttypes_h.
3252
3253 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3254
3255         * modules/strnlen (Depends-on): Remove memchr.
3256         The strnlen implementation doesn't need the memchr module's fixes; see
3257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3258
3259         strtol: remove dependency on wchar
3260         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3261         * modules/strtol (Depends-on): Remove wchar.
3262
3263 2011-04-21  Eric Blake  <eblake@redhat.com>
3264
3265         passfd: fix test regression on Linux
3266         * modules/passfd-tests (configure.ac): Correct socketpair check.
3267
3268         passfd: speed up configure and drop unused code
3269         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3270         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3271         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3272         Instead of probing at configure for unix_scm_rights_bsd44_way,
3273         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3274         check to a struct member probe.
3275         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3276         (sendfd, recvfd): Update preprocessor checks.
3277         * modules/passfd (Files): Reflect rename, and drop unused file.
3278         (Depends-on): Drop unused dependency.
3279
3280         passfd: allow compilation on mingw
3281         * modules/sys_socket (Depends-on): Add sys_uio.
3282         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3283         iovec and a minimal struct msghdr.
3284         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3285         * tests/test-sys_socket.c (main): Enhance test.
3286         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3287         guaranteed to provide what we need.
3288         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3289         * modules/passfd-tests (Depends-on): Add sys_wait.
3290         * tests/test-passfd.c (main): Skip test on mingw, for now.
3291         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3292         partial 'struct msghdr' implementation.
3293
3294         sys_uio: new module
3295         * modules/sys_uio: New module.
3296         * modules/sys_uio-tests: Likewise.
3297         * lib/sys_uio.in.h: New file.
3298         * m4/sys_uio_h.m4: Likewise.
3299         * tests/test-sys_uio.c: Likewise.
3300         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3301         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3302
3303 2011-04-20  Jim Meyering  <meyering@redhat.com>
3304
3305         useless-if-before-free: avoid false-positive
3306         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3307         disjunct so that it too requires a terminating ";".  Without that,
3308         this script would identify as useless one statement from gcc that
3309         was not:
3310           if (aligned_ptr)
3311             free (((void **) aligned_ptr) [-1]);
3312
3313 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3314
3315         doc: update users.txt.
3316         * users.txt: Add barcode.
3317
3318 2011-04-19  Bruno Haible  <bruno@clisp.org>
3319
3320         ioctl: Remove link dependency on native Windows.
3321         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3322         (gl_close_fn, gl_ioctl_fn): New types.
3323         (struct fd_hook): Renamed from struct close_hook. Change type of
3324         private_close_fn field. Add private_ioctl_fn field.
3325         (close_hook_fn): Add parameter for primary close method.
3326         (execute_close_hooks, execute_all_close_hooks): Likewise.
3327         (ioctl_hook_fn): New type.
3328         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3329         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3330         argument.
3331         (unregister_fd_hook): Renamed from unregister_close_hook.
3332         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3333         Don't include <unistd.h>.
3334         (close): Remove undef.
3335         (anchor): Update.
3336         (execute_close_hooks): Add argument for primary close method.
3337         (execute_all_close_hooks): Likewise.
3338         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3339         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3340         argument. Allow each argument to be NULL.
3341         (unregister_fd_hook): Renamed from unregister_close_hook.
3342         * lib/close.c (rpl_close): Pass 'close' function pointer to
3343         execute_all_close_hooks.
3344         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3345         (primary_ioctl): New function.
3346         (ioctl): Don't call ioctlsocket here. Instead, call
3347         execute_all_ioctl_hooks.
3348         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3349         close method.
3350         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3351         (fd_sockets_hook): Renamed from close_sockets_hook.
3352         (gl_sockets_startup, gl_sockets_cleanup): Update.
3353         * modules/fd-hook: Renamed from modules/close-hook. Update.
3354         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3355         * modules/sockets (Depends-on): Likewise.
3356         * modules/ioctl (Depends-on): Add fd-hook.
3357         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3358         GNULIB_SOCKET.
3359
3360 2011-04-19  Bruno Haible  <bruno@clisp.org>
3361
3362         Move the support of O_NONBLOCK in open() to the 'open' module.
3363         * modules/nonblocking (Depends-on): Remove 'open'.
3364         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3365         gl_cv_have_open_O_NONBLOCK.
3366         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3367         O_NONBLOCK support.
3368         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3369
3370 2011-04-17  Bruno Haible  <bruno@clisp.org>
3371
3372         pipe2: Simplify code.
3373         * lib/pipe2.c (pipe2): Reduce code duplication.
3374
3375 2011-04-17  Bruno Haible  <bruno@clisp.org>
3376
3377         nonblocking: Add comment.
3378         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3379
3380 2011-04-17  Bruno Haible  <bruno@clisp.org>
3381
3382         nonblocking: Add tests for sockets.
3383         * tests/test-nonblocking-socket.sh: New file.
3384         * tests/test-nonblocking-socket-main.c: New file.
3385         * tests/test-nonblocking-socket-child.c: New file.
3386         * tests/test-nonblocking-socket.h: New file.
3387         * tests/socket-server.h: New file.
3388         * tests/socket-client.h: New file.
3389         * modules/nonblocking-socket-tests: New file.
3390         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3391
3392 2011-04-17  Bruno Haible  <bruno@clisp.org>
3393
3394         nonblocking: Add tests for pipes.
3395         * tests/test-nonblocking-pipe.sh: New file.
3396         * tests/test-nonblocking-pipe-main.c: New file.
3397         * tests/test-nonblocking-pipe-child.c: New file.
3398         * tests/test-nonblocking-pipe.h: New file.
3399         * tests/test-nonblocking-writer.h: New file.
3400         * tests/test-nonblocking-reader.h: New file.
3401         * tests/test-nonblocking-misc.h: New file.
3402         * modules/nonblocking-pipe-tests: New file.
3403         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3404
3405 2011-04-16  Bruno Haible  <bruno@clisp.org>
3406
3407         gettext: Clarify the needed programmer actions.
3408         * modules/gettext (Notice): New field.
3409         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3410
3411 2011-04-16  Bruno Haible  <bruno@clisp.org>
3412
3413         strchrnul: Tweak last commit.
3414         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3415         bug.
3416         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3417         as in _GL_FUNCDECL_SYS.
3418         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3419         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3420
3421 2011-04-15  Eric Blake  <eblake@redhat.com>
3422
3423         strchrnul: work around cygwin bug
3424         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3425         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3427         * modules/string (Makefile.am): Substitute it.
3428         * lib/string.in.h (strchrnul): Use it.
3429
3430 2011-04-15  Bruno Haible  <bruno@clisp.org>
3431
3432         Don't require lib/stdio-write.c when only module 'stdio' is used.
3433         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3434         invocation.
3435         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3436
3437 2011-04-14  Bruno Haible  <bruno@clisp.org>
3438
3439         Support non-blocking pipe I/O in read() on native Windows.
3440         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3441         (read): New declaration.
3442         * lib/read.c: New file.
3443         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3444         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3445         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3446         vscanf): New declarations.
3447         * lib/stdio-read.c: New file.
3448         * m4/read.m4: New file.
3449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3450         REPLACE_READ.
3451         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3452         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3453         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3454         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3455         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3456         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3457         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3458         * modules/read: New file.
3459         * modules/nonblocking (Files): Add lib/stdio-read.c.
3460         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3461         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3462         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3463         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3464         * modules/pread (Depends-on): Add read.
3465         * modules/safe-read (Depends-on): Likewise.
3466         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3467         gets, scanf, vfscanf, vscanf): Verify signatures.
3468         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3469         problem with non-blocking pipes.
3470         * doc/posix-functions/fgetc.texi: Likewise.
3471         * doc/posix-functions/fgets.texi: Likewise.
3472         * doc/posix-functions/fread.texi: Likewise.
3473         * doc/posix-functions/fscanf.texi: Likewise.
3474         * doc/posix-functions/getc.texi: Likewise.
3475         * doc/posix-functions/getchar.texi: Likewise.
3476         * doc/posix-functions/gets.texi: Likewise.
3477         * doc/posix-functions/scanf.texi: Likewise.
3478         * doc/posix-functions/vfscanf.texi: Likewise.
3479         * doc/posix-functions/vscanf.texi: Likewise.
3480
3481 2011-04-14  Bruno Haible  <bruno@clisp.org>
3482
3483         Support non-blocking pipe I/O in write() on native Windows.
3484         * lib/write.c (rpl_write): Split a write request that failed merely
3485         because the byte count was larger than the pipe buffer's size.
3486         * doc/posix-functions/write.texi: Mention the problem with large byte
3487         counts.
3488
3489 2011-04-14  Bruno Haible  <bruno@clisp.org>
3490
3491         wchar: Ensure that wchar_t gets defined on uClibc.
3492         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3493         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3494
3495 2011-04-13  Bruno Haible  <bruno@clisp.org>
3496
3497         safe-write, full-read: Avoid unnecessary compilation units.
3498         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3499         (Depends-on): Remove safe-read. Add ssize_t.
3500         * modules/full-read (Files): Add lib/full-write.c.
3501         (Depends-on): Add full-write.
3502
3503 2011-04-13  Bruno Haible  <bruno@clisp.org>
3504
3505         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3506         * modules/pwrite (Depends-on): Add 'write'.
3507
3508 2011-04-13  Bruno Haible  <bruno@clisp.org>
3509
3510         Support non-blocking pipe I/O in write() on native Windows.
3511         * lib/unistd.in.h (write): Enable replacement also if
3512         GNULIB_UNISTD_H_NONBLOCKING is 1.
3513         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3514         (rpl_write): When failing to write on a non-blocking pipe, change
3515         errno from ENOSPC to EAGAIN.
3516         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3517         putchar, puts, vfprintf, vprintf): Enable replacement also if
3518         GNULIB_STDIO_H_NONBLOCKING is 1.
3519         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3520         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3521         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3522         CALL_WITH_SIGPIPE_EMULATION.
3523         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3524         * m4/nonblocking.m4: New file.
3525         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3526         for non-blocking I/O support.
3527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3528         GNULIB_UNISTD_H_NONBLOCKING.
3529         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3530         required for non-blocking I/O support.
3531         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3532         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3533         lib/stdio-write.c, m4/asm-underscore.m4.
3534         (Depends-on): Add stdio, unistd.
3535         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3536         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3537         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3538         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3539         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3540         problem with non-blocking pipes.
3541         * doc/posix-functions/fputc.texi: Likewise.
3542         * doc/posix-functions/fputs.texi: Likewise.
3543         * doc/posix-functions/fwrite.texi: Likewise.
3544         * doc/posix-functions/printf.texi: Likewise.
3545         * doc/posix-functions/putc.texi: Likewise.
3546         * doc/posix-functions/putchar.texi: Likewise.
3547         * doc/posix-functions/puts.texi: Likewise.
3548         * doc/posix-functions/vfprintf.texi: Likewise.
3549         * doc/posix-functions/vprintf.texi: Likewise.
3550         * doc/posix-functions/write.texi: Likewise.
3551
3552 2011-04-10  Jim Meyering  <meyering@redhat.com>
3553
3554         maint.mk: prohibit doubled words
3555         Detect them also when they're separated by a newline.
3556         There are 3 ways to customize it:
3557           - disable the test on a per file basis, as usual with rules using
3558             $(VC_LIST_EXCEPT)
3559           - replace the default doubled-word-selecting regexp (affects all files)
3560           - ignore a particular file-vs-doubled-word match
3561         I nearly used that last one to ignore the "is is" match in
3562         coreutils' NEWS file, since the text was "ls -is is ..."
3563         To do that, I would have added this line to cfg.mk:
3564           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3565         but it would have ignored any "is is" match in NEWS.
3566         Low probability, but still...
3567         Instead, I changed the text, slightly:
3568           -  ls -is is now consistent with ls -lis in ignoring values returned
3569           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3570         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3571         (prohibit_doubled_word_): Define.
3572         (sc_prohibit_doubled_word): New rule.
3573         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3574
3575 2011-04-10  Jim Meyering  <meyering@redhat.com>
3576
3577         maint: fix doubled-word typo in comment
3578         * m4/gethostname.m4: s/is is/it is/
3579         * m4/getdomainname.m4: Likewise.
3580
3581 2011-04-10  Jim Meyering  <meyering@redhat.com>
3582
3583         maint: remove doubled word: s/it it/it/
3584         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3585
3586 2011-04-10  Jim Meyering  <meyering@redhat.com>
3587
3588         maint.mk: remove useless semicolon and backslash
3589         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3590         semicolon and backslash.
3591
3592 2011-04-10  Bruno Haible  <bruno@clisp.org>
3593
3594         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3595         * modules/stdint-tests (Depends-on): Add wchar.
3596
3597 2011-04-10  Jim Meyering  <meyering@redhat.com>
3598
3599         maint: remove doubled words in comments, e.g., s/a a/a/
3600         * lib/strptime.c (day_of_the_week): s/the the/the/
3601         * tests/test-chown.h (test_chown): s/a a/a/
3602
3603         test-chown.h: correct a cast
3604         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3605         when the destination is a stat.st_gid.
3606
3607 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3608
3609         getaddrinfo: Fix test for sa_len member.
3610         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3611         include <sys/types.h> before <sys/socket.h>.
3612
3613 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3614
3615         maint: change "can not" to "cannot"
3616         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3617         boundaries.
3618
3619 2011-04-09  Jim Meyering  <meyering@redhat.com>
3620
3621         maint: change "a a" to "a"
3622         * tests/test-lchown.h (test_lchown): s/a a/a/
3623
3624         maint.mk: prohibit \<the the\>
3625         * top/maint.mk (sc_prohibit_the_the): New rule.
3626
3627         maint: fix "the the" in comment
3628         * lib/count-one-bits.h: s/the the/the/
3629
3630         maint: change "can not" to "cannot"
3631         But do not change the occurrences in maintain.texi or in
3632         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3633         * doc/gnulib-tool.texi: s/can not/cannot/
3634         * doc/posix-functions/accept.texi (accept): Likewise.
3635         * doc/posix-functions/socket.texi (socket): Likewise.
3636         * lib/mbrtowc.c: Likewise.
3637
3638         maint.mk: prohibit use of "can not"
3639         * top/maint.mk (sc_prohibit_can_not): New rule.
3640         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3641
3642 2011-04-09  Bruno Haible  <bruno@clisp.org>
3643
3644         careadlinkat: Guard against misuse of careadlinkatcwd.
3645         * lib/careadlinkat.c: Include <stdlib.h>.
3646         (careadlinkatcwd): Check that the fd argument is as expected.
3647
3648 2011-04-09  Bruno Haible  <bruno@clisp.org>
3649
3650         careadlinkat: Use common coding style.
3651         * lib/careadlinkat.c: Move gnulib includes after system includes.
3652
3653 2011-04-09  Bruno Haible  <bruno@clisp.org>
3654
3655         careadlinkat: Clarify specification.
3656         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3657         (careadlinkatcwd): Add comment.
3658         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3659
3660 2011-04-09  Bruno Haible  <bruno@clisp.org>
3661
3662         areadlinkat: Avoid link error on many platforms.
3663         * modules/areadlinkat (Depends-on): Add areadlink.
3664
3665 2011-04-09  Bruno Haible  <bruno@clisp.org>
3666
3667         allocator, careadlinkat: Fix double-inclusion guard.
3668         * lib/allocator.h: Fix double-inclusion guard.
3669         * lib/careadlinkat.h: Likewise.
3670
3671 2011-04-09  Bruno Haible  <bruno@clisp.org>
3672
3673         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3674         * lib/relocwrapper.c: Update dependencies hierarchy.
3675         * build-aux/install-reloc: Update list of files to be compiled.
3676         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3677         lib/allocator.[hc].
3678
3679 2011-04-08  Eric Blake  <eblake@redhat.com>
3680
3681         strftime: silence gnulib-tool warning
3682         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3683
3684 2011-04-08  Bruno Haible  <bruno@clisp.org>
3685
3686         verify: Fix syntax error with GCC 4.6 in C++ mode.
3687         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3688         (HAVE_STATIC_ASSERT): New macro.
3689         (verify_true, verify): Use 'static_assert' if it is supported and
3690         '_Static_assert' is not supported.
3691
3692 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         allocator: New module.
3695         * modules/allocator, lib/allocator.c: New files.
3696         * lib/allocator.h (stdlib_allocator): New decl.
3697         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3698         Remove.  Do not include <stdlib.h>.
3699         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3700         * modules/careadlinkat (Files): Remove lib/allocator.h.
3701         (Depends-on): Add allocator.
3702
3703         stdlib: let modules use system malloc, realloc
3704         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3705         if !_GL_USE_STDLIB_ALLOC.
3706         (malloc, realloc): Limit this change to a smaller scope.
3707
3708         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3709         (malloc, realloc): Don't #undef; no longer needed.
3710         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3711         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3712         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3713         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3714         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3715         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3716         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3717         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3718
3719         careadlinkat: rename members to avoid problem
3720         * lib/allocator.h (struct allocator): Rename members from
3721         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3722         and realloc are #define'd.  Reported by Eric Blake in
3723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3724         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3725
3726 2011-04-08  Eric Blake  <eblake@redhat.com>
3727
3728         nonblocking: reduce dependency
3729         * tests/test-nonblocking.c: Only test sockets when in use.
3730         * modules/nonblocking-tests (Depends-on): Drop socket.
3731         (Makefile.am): Link even if sockets are not present.
3732         * modules/pipe2-tests (Makefile.am): Likewise.
3733         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3734
3735         pipe2: fix O_NONBLOCK support on mingw
3736         * modules/pipe2 (Depends-on): Add nonblocking.
3737         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3738         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3739         * tests/test-nonblocking.c (main): Likewise.
3740         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3741
3742         fcntl-h: fix O_ACCMODE on cygwin
3743         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3744         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3745
3746         pipe-filter: drop O_NONBLOCK workarounds
3747         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3748         * modules/pipe-filter-ii (Depends-on): Likewise.
3749         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3750
3751         nonblocking: provide O_NONBLOCK for mingw
3752         * modules/nonblocking (Depends-on): Add open.
3753         (configure.ac): Set new witness macro.
3754         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3755         * modules/fcntl-h (Makefile.am): Substitute it.
3756         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3757         nonblocking module is in use.
3758         * lib/nonblocking.c: Adjust portability test.
3759         * lib/open.c (open): Don't let native open see gnulib flag.
3760         * tests/test-fcntl-h.c (main): Enhance test.
3761         * tests/test-open.h (test_open): Likewise.
3762         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3763
3764         careadlinkat: fix compilation error on mingw
3765         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3766         within struct allocator.
3767
3768 2011-04-06  Eric Blake  <eblake@redhat.com>
3769
3770         binary-io: relicense under LGPLv2+
3771         * modules/binary-io (License): Relax to LGPLv2+.
3772         Requested for libvirt, and required by pipe2.
3773
3774 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3775
3776         verify: use _Static_assert if available
3777         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3778         (verify_true, verify): Use it if available.  This generates better
3779         diagnostics with GCC 4.6.0 and later.
3780
3781 2011-04-05  Bruno Haible  <bruno@clisp.org>
3782
3783         Remove leftover generated .h files after config.status changed.
3784
3785         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3786         GL_GENERATE_ALLOCA_H.
3787         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3788         GL_GENERATE_ALLOCA_H evaluates to false.
3789
3790         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3791         GL_GENERATE_ARGZ_H.
3792         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3793         evaluates to false.
3794
3795         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3796         GL_GENERATE_BYTESWAP_H.
3797         * modules/byteswap (Makefile.am): Remove byteswap.h if
3798         GL_GENERATE_BYTESWAP_H evaluates to false.
3799
3800         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3801         GL_GENERATE_ERRNO_H.
3802         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3803         evaluates to false.
3804
3805         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3806         GL_GENERATE_FLOAT_H.
3807         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3808         evaluates to false.
3809
3810         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3811         GL_GENERATE_FNMATCH_H.
3812         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3813         GL_GENERATE_FNMATCH_H evaluates to false.
3814
3815         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3816         GL_GENERATE_GLOB_H.
3817         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3818         evaluates to false.
3819
3820         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3821         automake conditional GL_GENERATE_ICONV_H.
3822         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3823         evaluates to false.
3824
3825         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3826         GL_GENERATE_NETINET_IN_H.
3827         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3828         GL_GENERATE_NETINET_IN_H evaluates to false.
3829
3830         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3831         conditional GL_GENERATE_PTHREAD_H.
3832         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3833         * modules/pthread (Makefile.am): Remove pthread.h if
3834         GL_GENERATE_PTHREAD_H evaluates to false.
3835
3836         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3837         GL_GENERATE_SCHED_H.
3838         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3839         evaluates to false.
3840
3841         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3842         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3843         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3844         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3845
3846         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3847         GL_GENERATE_STDARG_H.
3848         * modules/stdarg (Makefile.am): Remove stdarg.h if
3849         GL_GENERATE_STDARG_H evaluates to false.
3850
3851         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3852         GL_GENERATE_STDBOOL_H.
3853         * modules/stdbool (Makefile.am): Remove stdbool.h if
3854         GL_GENERATE_STDBOOL_H evaluates to false.
3855
3856         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3857         conditional GL_GENERATE_STDDEF_H.
3858         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3859         * modules/stddef (Makefile.am): Remove stddef.h if
3860         GL_GENERATE_STDDEF_H evaluates to false.
3861
3862         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3863         GL_GENERATE_STDINT_H.
3864         * modules/stdint (Makefile.am): Remove stdint.h if
3865         GL_GENERATE_STDINT_H evaluates to false.
3866
3867         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3868         GL_GENERATE_SYSEXITS_H.
3869         * modules/sysexits (Makefile.am): Remove sysexits.h if
3870         GL_GENERATE_SYSEXITS_H evaluates to false.
3871
3872         Reported by Karl Berry and Ralf Wildenhues.
3873
3874 2011-04-05  Bruno Haible  <bruno@clisp.org>
3875
3876         Ensure to rebuild generated .h files when config.status has changed.
3877         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3878         config.status.
3879         * modules/ctype (Makefile.am): Likewise.
3880         * modules/dirent (Makefile.am): Likewise.
3881         * modules/errno (Makefile.am): Likewise.
3882         * modules/fcntl-h (Makefile.am): Likewise.
3883         * modules/float (Makefile.am): Likewise.
3884         * modules/getopt-posix (Makefile.am): Likewise.
3885         * modules/glob (Makefile.am): Likewise.
3886         * modules/iconv-h (Makefile.am): Likewise.
3887         * modules/inttypes (Makefile.am): Likewise.
3888         * modules/langinfo (Makefile.am): Likewise.
3889         * modules/locale (Makefile.am): Likewise.
3890         * modules/math (Makefile.am): Likewise.
3891         * modules/netdb (Makefile.am): Likewise.
3892         * modules/netinet_in (Makefile.am): Likewise.
3893         * modules/poll-h (Makefile.am): Likewise.
3894         * modules/pthread (Makefile.am): Likewise.
3895         * modules/pty (Makefile.am): Likewise.
3896         * modules/sched (Makefile.am): Likewise.
3897         * modules/search (Makefile.am): Likewise.
3898         * modules/selinux-h (Makefile.am): Likewise.
3899         * modules/signal (Makefile.am): Likewise.
3900         * modules/spawn (Makefile.am): Likewise.
3901         * modules/stdarg (Makefile.am): Likewise.
3902         * modules/stdbool (Makefile.am): Likewise.
3903         * modules/stddef (Makefile.am): Likewise.
3904         * modules/stdint (Makefile.am): Likewise.
3905         * modules/stdio (Makefile.am): Likewise.
3906         * modules/stdlib (Makefile.am): Likewise.
3907         * modules/string (Makefile.am): Likewise.
3908         * modules/strings (Makefile.am): Likewise.
3909         * modules/sys_file (Makefile.am): Likewise.
3910         * modules/sys_ioctl (Makefile.am): Likewise.
3911         * modules/sys_select (Makefile.am): Likewise.
3912         * modules/sys_socket (Makefile.am): Likewise.
3913         * modules/sys_stat (Makefile.am): Likewise.
3914         * modules/sys_time (Makefile.am): Likewise.
3915         * modules/sys_times (Makefile.am): Likewise.
3916         * modules/sys_utsname (Makefile.am): Likewise.
3917         * modules/sys_wait (Makefile.am): Likewise.
3918         * modules/sysexits (Makefile.am): Likewise.
3919         * modules/termios (Makefile.am): Likewise.
3920         * modules/time (Makefile.am): Likewise.
3921         * modules/unistd (Makefile.am): Likewise.
3922         * modules/wchar (Makefile.am): Likewise.
3923         * modules/wctype-h (Makefile.am): Likewise.
3924         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3925
3926 2011-04-05  Bruno Haible  <bruno@clisp.org>
3927
3928         pipe2: Relicense under LGPLv2+.
3929         * modules/pipe2 (License): Change to LGPLv2+.
3930         Requested by Eric Blake, for libvirt.
3931
3932 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3933
3934         bootstrap: compute gnulib_extra_files after updating build_aux
3935         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3936         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3937
3938 2011-04-05  Eric Blake  <eblake@redhat.com>
3939
3940         bootstrap: preserve git whitelist item sorting
3941         * build-aux/bootstrap (sort_patterns): New function.
3942         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3943
3944 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3945
3946         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3947         sc_space_tab check.
3948
3949 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3950
3951         areadlink, areadlinkat: rewrite in terms of careadlinkat
3952         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3953         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3954         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3955         (malloc, realloc): Remove #undefs.
3956         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3957         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3958         readlink, ssize_t, stdint, unistd.
3959         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3960         areadlink, stdint.
3961
3962         careadlinkat: new module
3963         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3964         * modules/careadlinkat: New files, written by me with
3965         a review and feedback from Ben Pfaff in
3966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3967
3968 2011-04-01  Bruno Haible  <bruno@clisp.org>
3969
3970         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3971         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3972         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3973         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3974         Reported by Bruce Korb <bruce.korb@gmail.com>.
3975
3976 2011-04-01  Bruno Haible  <bruno@clisp.org>
3977
3978         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3979         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3980         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3981         * modules/wcpcpy (Depends-on): Add extensions.
3982         * modules/wcpncpy (Depends-on): Likewise.
3983         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3984         systems.
3985         * doc/posix-functions/wcpncpy.texi: Likewise.
3986         * doc/posix-functions/wcwidth.texi: Likewise.
3987
3988 2011-03-31  Eric Blake  <eblake@redhat.com>
3989
3990         nonblocking: fix mingw test failures
3991         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3992         non-blocking flag on regular file.
3993         (get_nonblocking_flag): Set errno on invalid fd.
3994         * tests/test-nonblocking.c (main): Avoid test failure on
3995         directories if fchdir is not active.
3996         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3997
3998 2011-03-31  Bruno Haible  <bruno@clisp.org>
3999
4000         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4001         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4002         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4003         Reported by Simon Josefsson <simon@josefsson.org>.
4004
4005 2011-03-31  Bruno Haible  <bruno@clisp.org>
4006         and Eric Blake  <eblake@redhat.com>
4007
4008         nonblocking: new module
4009         * modules/nonblocking: New module.
4010         * modules/nonblocking-tests: Likewise.
4011         * lib/nonblocking.h: New file.
4012         * lib/nonblocking.c: Likewise.
4013         * tests/test-nonblocking.c: New test.
4014         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4015
4016 2011-03-30  Bruno Haible  <bruno@clisp.org>
4017
4018         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4019         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4020         instead of 'printf' format for GCC >= 4.4.
4021         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4022         (fprintf, printf, vfprintf, vprintf): Declare with
4023         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4024         the system's vfprintf() function.
4025         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4026
4027 2011-03-30  Eric Blake  <eblake@redhat.com>
4028
4029         passfd: fix scoping bug
4030         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4031         before sendmsg/recvmsg.
4032
4033         passfd: standardize coding conventions
4034         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4035         can be learned at compile time.
4036         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4037         ifdefs.
4038         (sendfd, recvfd): Follow gnulib code conventions.
4039
4040         passfd: fix incorrect sendmsg arguments
4041         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4042         incorrect msg_controllen value.
4043         * modules/passfd-tests (Depends-on): Check for alarm.
4044         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4045         Reported by Bastien ROUCARIES.
4046
4047 2011-03-30  Bruno Haible  <bruno@clisp.org>
4048
4049         c-strcasestr: Relicense under LGPLv2+.
4050         * modules/c-strcasestr (License): Change to LGPLv2+.
4051         Requested by Eric Blake, for libvirt.
4052
4053 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4054
4055         * users.txt: Add libidn2.  Fix libtasn1 link.
4056
4057 2011-03-30  Jim Meyering  <meyering@redhat.com>
4058
4059         tests: readlink* ("",... fails with EINVAL on newer kernels
4060         readlink and readlinkat have typically failed with ENOENT for
4061         the invalid, empty file name,  "".  However, with the advent
4062         of linux-2.6.39, they fail with EINVAL.
4063         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4064         when operating on the empty file name.
4065         * tests/test-readlink.h (test_readlink): Likewise.
4066
4067 2011-03-29  Bruno Haible  <bruno@clisp.org>
4068
4069         Relicense some modules under LGPLv2+, for libidn2.
4070         * modules/array-mergesort (License): Change to LGPLv2+.
4071         * modules/c-strcaseeq (License): Likewise.
4072         * modules/striconveh (License): Likewise.
4073         * modules/striconveha (License): Likewise.
4074         * modules/uniconv/base (License): Likewise.
4075         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4076         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4077         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4078         * modules/unictype/base (License): Likewise.
4079         * modules/unictype/bidiclass-of (License): Likewise.
4080         * modules/unictype/category-M (License): Likewise.
4081         * modules/unictype/category-none (License): Likewise.
4082         * modules/unictype/category-of (License): Likewise.
4083         * modules/unictype/category-test (License): Likewise.
4084         * modules/unictype/category-test-withtable (License): Likewise.
4085         * modules/unictype/combining-class (License): Likewise.
4086         * modules/unictype/joiningtype-of (License): Likewise.
4087         * modules/unictype/scripts (License): Likewise.
4088         * modules/uninorm/base (License): Likewise.
4089         * modules/uninorm/canonical-decomposition (License): Likewise.
4090         * modules/uninorm/composition (License): Likewise.
4091         * modules/uninorm/decompose-internal (License): Likewise.
4092         * modules/uninorm/decomposition-table (License): Likewise.
4093         * modules/uninorm/nfc (License): Likewise.
4094         * modules/uninorm/nfd (License): Likewise.
4095         * modules/uninorm/u32-normalize (License): Likewise.
4096         * modules/unistr/base (License): Likewise.
4097         * modules/unistr/u32-cpy (License): Likewise.
4098         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4099         * modules/unistr/u32-to-u8 (License): Likewise.
4100         * modules/unistr/u32-uctomb (License): Likewise.
4101         * modules/unistr/u8-check (License): Likewise.
4102         * modules/unistr/u8-mblen (License): Likewise.
4103         * modules/unistr/u8-mbtouc (License): Likewise.
4104         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4105         * modules/unistr/u8-mbtoucr (License): Likewise.
4106         * modules/unistr/u8-prev (License): Likewise.
4107         * modules/unistr/u8-strlen (License): Likewise.
4108         * modules/unistr/u8-to-u32 (License): Likewise.
4109         * modules/unistr/u8-uctomb (License): Likewise.
4110         * modules/unitypes (License): Likewise.
4111         Requested by Simon Josefsson.
4112
4113 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4114
4115         lib-symbol-visibility: Add a notice.
4116         * modules/lib-symbol-visibility (Notice): New field.
4117
4118 2011-03-29  Bruno Haible  <bruno@clisp.org>
4119
4120         getaddrinfo: Doc fix.
4121         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4122         section "fixed in Gnulib".
4123
4124 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4125
4126         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4127         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4128
4129 2011-03-26  Bruno Haible  <bruno@clisp.org>
4130
4131         unictype/property-byname: Reduce the number of load-time relocations.
4132         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4133         (UC_PROPERTY_INDEX_*): New enumeration values.
4134         (uc_property_byname): Convert an index from the lookup table to an
4135         uc_property_t.
4136         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4137         values.
4138
4139 2011-03-26  Bruno Haible  <bruno@clisp.org>
4140
4141         unictype/property-byname: Allow omitted word separators and aliases.
4142         * lib/unictype/pr_byname.gperf: Add property names without word
4143         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4144         for 'space'.
4145
4146 2011-03-26  Bruno Haible  <bruno@clisp.org>
4147
4148         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4149         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4150         also hyphens to space.
4151         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4152         without spaces.
4153         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4154
4155 2011-03-26  Bruno Haible  <bruno@clisp.org>
4156
4157         unictype/joiningtype-byname: Recognize long names as well.
4158         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4159         a long name.
4160         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4161         unictype/joiningtype_byname.h.
4162         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4163         * lib/unictype/joiningtype_byname.gperf: New file.
4164         * modules/unictype/joiningtype-byname (Files): Add
4165         lib/unictype/joiningtype_byname.gperf.
4166         (Depends-on): Add gperf.
4167         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4168         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4169         long names.
4170
4171         Tests for module 'unictype/joiningtype-longname'.
4172         * modules/unictype/joiningtype-longname-tests: New file.
4173         * tests/unictype/test-joiningtype_longname.c: New file.
4174
4175         New module 'unictype/joiningtype-longname'.
4176         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4177         * lib/unictype/joiningtype_longname.c: New file.
4178         * modules/unictype/joiningtype-longname: New file.
4179         * modules/unictype/joiningtype-all (Depends-on): Add
4180         unictype/joiningtype-longname.
4181
4182 2011-03-26  Bruno Haible  <bruno@clisp.org>
4183
4184         unictype/bidiclass-byname: Recognize long names as well.
4185         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4186         name.
4187         * lib/unictype/bidi_byname.c: Include <string.h>,
4188         unictype/bidi_byname.h.
4189         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4190         * lib/unictype/bidi_byname.gperf: New file.
4191         * modules/unictype/bidiclass-byname (Files): Add
4192         lib/unictype/bidi_byname.gperf.
4193         (Depends-on): Add gperf.
4194         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4195         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4196         long names.
4197
4198         Tests for module 'unictype/bidiclass-longname'.
4199         * modules/unictype/bidiclass-longname-tests: New file.
4200         * tests/unictype/test-bidi_longname.c: New file.
4201
4202         New module 'unictype/bidiclass-longname'.
4203         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4204         * lib/unictype/bidi_longname.c: New file.
4205         * modules/unictype/bidiclass-longname: New file.
4206         * modules/unictype/bidiclass-all (Depends-on): Add
4207         unictype/bidiclass-longname.
4208
4209 2011-03-26  Bruno Haible  <bruno@clisp.org>
4210
4211         unictype/bidi*: Rename modules.
4212         * modules/unictype/bidiclass-all: Renamed from
4213         modules/unictype/bidicategory-all.
4214         * modules/unictype/bidiclass-name: Renamed from
4215         modules/unictype/bidiclass-name.
4216         (Description): Update.
4217         * modules/unictype/bidiclass-name-tests: Renamed from
4218         modules/unictype/bidicategory-name-tests.
4219         * modules/unictype/bidiclass-byname: Renamed from
4220         modules/unictype/bidicategory-byname.
4221         (Description): Update.
4222         * modules/unictype/bidiclass-byname-tests: Renamed from
4223         modules/unictype/bidicategory-byname-tests.
4224         * modules/unictype/bidiclass-of: Renamed from
4225         modules/unictype/bidicategory-of.
4226         (Description): Update.
4227         * modules/unictype/bidiclass-of-tests: Renamed from
4228         modules/unictype/bidicategory-of-tests.
4229         * modules/unictype/bidiclass-test: Renamed from
4230         modules/unictype/bidicategory-test.
4231         (Description): Update.
4232         * modules/unictype/bidiclass-test-tests: Renamed from
4233         modules/unictype/bidicategory-test-tests.
4234         * modules/unictype/bidicategory-all: New file, a simple redirection.
4235         * modules/unictype/bidicategory-name: Likewise.
4236         * modules/unictype/bidicategory-byname: Likewise.
4237         * modules/unictype/bidicategory-of: Likewise.
4238         * modules/unictype/bidicategory-test: Likewise.
4239         * modules/unictype/property-bidi-* (Dependencies): Update.
4240         * lib/unictype/bidi_*.c: Update comment.
4241
4242 2011-03-26  Bruno Haible  <bruno@clisp.org>
4243
4244         unictype/bidi*: Rename functions, part 2.
4245         * modules/unictype/bidicategory-name (configure.ac): Update required
4246         libunistring version.
4247         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4248
4249 2011-03-25  Bruno Haible  <bruno@clisp.org>
4250
4251         New module 'unictype/combining-class-all'.
4252         * modules/unictype/combining-class-all: New file.
4253
4254         Tests for module 'unictype/combining-class-byname'.
4255         * modules/unictype/combining-class-byname-tests: New file.
4256         * tests/unictype/test-combiningclass_byname.c: New file.
4257
4258         New module 'unictype/combining-class-byname'.
4259         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4260         * lib/unictype/combiningclass_byname.c: New file.
4261         * lib/unictype/combiningclass_byname.gperf: New file.
4262         * modules/unictype/combining-class-byname: New file.
4263
4264         Tests for module 'unictype/combining-class-longname'.
4265         * modules/unictype/combining-class-longname-tests: New file.
4266         * tests/unictype/test-combiningclass_longname.c: New file.
4267
4268         New module 'unictype/combining-class-longname'.
4269         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4270         * lib/unictype/combiningclass_longname.c: New file.
4271         * modules/unictype/combining-class-longname: New file.
4272
4273         Tests for module 'unictype/combining-class-name'.
4274         * modules/unictype/combining-class-name-tests: New file.
4275         * tests/unictype/test-combiningclass_name.c: New file.
4276
4277         New module 'unictype/combining-class-name'.
4278         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4279         * lib/unictype/combiningclass_name.c: New file.
4280         * modules/unictype/combining-class-name: New file.
4281
4282 2011-03-25  Bruno Haible  <bruno@clisp.org>
4283
4284         unictype/combining-class: Rename source files.
4285         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4286         of unictype/combining.h.
4287         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4288         Update.
4289         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4290         * modules/unictype/combining-class (Description): Fix.
4291         (Files, Makefile.am): Update.
4292         * tests/unictype/test-combiningclass.c: Renamed from
4293         tests/unictype/test-combining.c.
4294         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4295
4296 2011-03-25  Bruno Haible  <bruno@clisp.org>
4297
4298         unictype: Update list of canonical combining classes.
4299         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4300
4301 2011-03-25  Bruno Haible  <bruno@clisp.org>
4302
4303         unictype/category-byname: Recognize long names as well.
4304         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4305         a long name.
4306         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4307         unictype/categ_byname.h.
4308         (UC_CATEGORY_INDEX_*): New enumeration values.
4309         (uc_general_category_byname): Use uc_general_category_lookup and
4310         convert from index to value.
4311         * lib/unictype/categ_byname.gperf: New file.
4312         * modules/unictype/category-byname (Files): Add
4313         lib/unictype/categ_byname.gperf.
4314         (Depends-on): Add gperf.
4315         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4316         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4317         long names.
4318
4319         Tests for module 'unictype/category-longname'.
4320         * modules/unictype/category-longname-tests: New file.
4321         * tests/unictype/test-categ_longname.c: New file.
4322
4323         New module 'unictype/category-longname'.
4324         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4325         * lib/unictype/categ_longname.c: New file.
4326         * modules/unictype/category-longname: New file.
4327         * modules/unictype/category-all (Depends-on): Add it.
4328
4329 2011-03-25  Bruno Haible  <bruno@clisp.org>
4330
4331         Tests for module 'unictype/category-LC'.
4332         * modules/unictype/category-LC-tests: New file.
4333         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4334
4335         New module 'unictype/category-LC'.
4336         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4337         (UC_CATEGORY_LC): New declaration.
4338         (UC_CASED_LETTER): New macro.
4339         * lib/gen-uni-tables.c (is_category_LC): New function.
4340         (output_categories): Also handle category LC.
4341         (UC_CATEGORY_MASK_LC): New enumeration value.
4342         (general_category_byname): Also handle category LC.
4343         * lib/unictype/categ_LC.c: New file.
4344         * lib/unictype/categ_LC.h: New file, automatically generated.
4345         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4346         category LC.
4347         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4348         * modules/unictype/category-LC: New file.
4349         * modules/unictype/category-byname (Depends-on): Add
4350         unictype/category-LC.
4351         * modules/unictype/category-all (Depends-on): Likewise.
4352
4353 2011-03-25  Eric Blake  <eblake@redhat.com>
4354
4355         xmalloc: revert yesterday's regression
4356         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4357         realloc's underlying behavior (allowing allocation of zero-size
4358         objects, especially if malloc-gnu is also in use).
4359
4360 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4361
4362         maint.mk: add missing version to VC-tag
4363         * top/maint.mk: git tag was missing actual tag name; add it.
4364
4365         valgrind: do leak checking, and exit with code 1 on error (not 0)
4366         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4367         to VALGRIND.
4368
4369 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4370
4371         posix-modules: say what it does.
4372         * posix-modules: Add a line to the --help output saying what it does.
4373
4374 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4375
4376         xmalloc: Do not leak if underlying realloc is C99 compatible.
4377         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4378         This avoids a leak on C99-based systems.  See
4379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4380
4381 2011-03-24  Eric Blake  <eblake@redhat.com>
4382
4383         realloc: document portability problem
4384         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4385         passing 0 size to realloc.
4386
4387 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4388
4389         doc: update users.txt
4390         * users.txt: Add cvsps, tmpwatch
4391
4392 2011-03-23  Matt Rice  <ratmice@gmail.com>
4393
4394         doc: update users.txt
4395         * users.txt: Add gdb.
4396
4397 2011-03-23  Jim Meyering  <meyering@redhat.com>
4398
4399         doc: update users.txt
4400         Looking through matches up to the following URL (there are still
4401         several more pages), I found several projects that use gnulib:
4402         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4403         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4404         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4405
4406 2011-03-22  Bruno Haible  <bruno@clisp.org>
4407
4408         unictype/bidi*: Rename functions.
4409         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4410         uc_bidi_class, uc_is_bidi_class): New declarations.
4411         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4412         uc_bidi_category_byname.
4413         (uc_bidi_category_byname): New function.
4414         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4415         u_bidi_category_name.
4416         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4417         (uc_bidi_category_name): New function.
4418         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4419         uc_bidi_category.
4420         (uc_bidi_category): New function.
4421         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4422         uc_is_bidi_category. Invoke uc_bidi_class.
4423         (uc_is_bidi_category): New function.
4424         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4425         instead of uc_bidi_category_byname.
4426         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4427         instead of uc_bidi_category_name.
4428         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4429         uc_bidi_category.
4430         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4431         instead of uc_is_bidi_category.
4432
4433 2011-03-21  Bruno Haible  <bruno@clisp.org>
4434
4435         New module 'unictype/joininggroup-all'.
4436         * modules/unictype/joininggroup-all: New file.
4437
4438         Tests for module 'unictype/joininggroup-of'.
4439         * modules/unictype/joininggroup-of-tests: New file.
4440         * tests/unictype/test-joininggroup_of.c: New file.
4441         * tests/unictype/test-joininggroup_of.h: New file, automatically
4442         generated by gen-uni-tables.
4443
4444         New module 'unictype/joininggroup-of'.
4445         * modules/unictype/joininggroup-of: New file.
4446         * lib/unictype/joininggroup_of.c: New file.
4447         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4448         gen-uni-tables.
4449
4450         Tests for module 'unictype/joininggroup-byname'.
4451         * modules/unictype/joininggroup-byname-tests: New file.
4452         * tests/unictype/test-joininggroup_byname.c: New file.
4453
4454         New module 'unictype/joininggroup-byname'.
4455         * modules/unictype/joininggroup-byname: New file.
4456         * lib/unictype/joininggroup_byname.c: New file.
4457         * lib/unictype/joininggroup_byname.gperf: New file.
4458
4459         Tests for module 'unictype/joininggroup-name'.
4460         * modules/unictype/joininggroup-name-tests: New file.
4461         * tests/unictype/test-joininggroup_name.c: New file.
4462
4463         New module 'unictype/joininggroup-name'.
4464         * modules/unictype/joininggroup-name: New file.
4465         * lib/unictype/joininggroup_name.c: New file.
4466         * lib/unictype/joininggroup_name.h: New file.
4467
4468         New module 'unictype/joiningtype-all'.
4469         * modules/unictype/joiningtype-all: New file.
4470
4471         Tests for module 'unictype/joiningtype-of'.
4472         * modules/unictype/joiningtype-of-tests: New file.
4473         * tests/unictype/test-joiningtype_of.c: New file.
4474         * tests/unictype/test-joiningtype_of.h: New file, automatically
4475         generated by gen-uni-tables.
4476
4477         New module 'unictype/joiningtype-of'.
4478         * modules/unictype/joiningtype-of: New file.
4479         * lib/unictype/joiningtype_of.c: New file.
4480         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4481         gen-uni-tables.
4482
4483         Tests for module 'unictype/joiningtype-byname'.
4484         * modules/unictype/joiningtype-byname-tests: New file.
4485         * tests/unictype/test-joiningtype_byname.c: New file.
4486
4487         New module 'unictype/joiningtype-byname'.
4488         * modules/unictype/joiningtype-byname: New file.
4489         * lib/unictype/joiningtype_byname.c: New file.
4490
4491         Tests for module 'unictype/joiningtype-name'.
4492         * modules/unictype/joiningtype-name-tests: New file.
4493         * tests/unictype/test-joiningtype_name.c: New file.
4494
4495         New module 'unictype/joiningtype-name'.
4496         * modules/unictype/joiningtype-name: New file.
4497         * lib/unictype/joiningtype_name.c: New file.
4498
4499         unictype: Add support for Arabic shaping properties.
4500         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4501         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4502         declarations.
4503         (UC_JOINING_GROUP_*): New enumeration values.
4504         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4505         declarations.
4506         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4507         (unicode_joining_type): New variable.
4508         (UC_JOINING_GROUP_*): New enumeration values.
4509         (unicode_joining_group): New variable.
4510         (fill_arabicshaping, joining_type_as_c_identifier,
4511         output_joining_type_test, output_joining_type,
4512         joining_group_as_c_identifier, output_joining_group_test,
4513         output_joining_group): New functions.
4514         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4515         fill_arabicshaping and output_joining_type_test, output_joining_type,
4516         output_joining_group_test, output_joining_group.
4517         Reported by Simon Josefsson.
4518
4519 2011-03-21  Jim Meyering  <meyering@redhat.com>
4520
4521         strftime: fix a bug in yesterday's change
4522         * lib/strftime.c (add): Accommodate width's initial value of -1.
4523         Otherwise, nstrftime would copy uninitialized data into
4524         the result buffer.
4525
4526 2011-03-21  Jim Meyering  <meyering@redhat.com>
4527
4528         tests: add strftime-tests module
4529         * tests/test-strftime.c: New file.
4530         * modules/strftime-tests: New module.
4531
4532 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4533
4534         strftime: don't assume a byte count fits in 'int'
4535         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4536         found this problem by static analysis, using gcc -Wstrict-overflow
4537         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4538         on an integer overflow having undefined behavior, but it turns out
4539         that the argument is a size, which might not fit in 'int' anyway,
4540
4541 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4542
4543         stdio: don't require ignore_value around fwrite
4544
4545         This patch works around libc bug 11959
4546         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4547         Without this patch, applications must often write
4548         ignore_value (fwrite (...)) even though the ignore_value is
4549         not helpful here.  It's common to write many objects, using
4550         fwrite/printf/etc., and then use ferror to detect output error.
4551
4552         I considered making this patch optional, but decided against it,
4553         because libc is obviously being inconsistent here: there is no
4554         reason libc should insist that user code must inspect fwrite
4555         return's value without also insisting that it inspect printf's,
4556         putchar's, etc.  If user code wants to have a strict style where
4557         all these functions' values are checked (so that ferror need not
4558         be checked), we could add support for that style in a new gnulib
4559         module, but in the meantime it's better to be consistent and to
4560         support common usage.
4561
4562         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4563         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4564         that we are compiling in checking mode, and if not C++, and
4565         if not already wrapping fwrite for some other reason.
4566         (fwrite): #define to rpl_fwrite if the latter is defined.
4567
4568 2011-03-20  Bruno Haible  <bruno@clisp.org>
4569
4570         verror: Fix compilation error introduced on 2011-02-13.
4571         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4572         instead of __attribute__.
4573         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4574
4575 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4576             Bruno Haible  <bruno@clisp.org>
4577
4578         socklen: do not depend on sys_socket
4579         While trying to modify Emacs to use gnulib's socklen module,
4580         I discovered a circular dependency: socklen depends on sys_socket
4581         and vice versa.  Emacs can use socklen, but it does not need
4582         sys_socket because it has its own substitute for sys/socket.h.
4583         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4584         gl_TYPE_SOCKLEN_T.
4585         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4586         gl_PREREQ_SYS_H_SOCKET.
4587         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4588         gl_PREREQ_SYS_H_SOCKET.
4589         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4590         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4591         * modules/socklen (Depends-on): Do not depend on sys_socket.
4592         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4593
4594 2011-03-20  Jim Meyering  <meyering@redhat.com>
4595
4596         maint.mk: sort file names *after* new transformation
4597         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4598         prefix would have led to an unwarranted failure in GNU parted.
4599         Sort after that transformation.
4600
4601 2011-03-19  Jim Meyering  <meyering@redhat.com>
4602
4603         maint.mk: fix po-file syntax-check rule
4604         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4605         Patch by Bruno Haible.
4606
4607 2011-03-19  Bruno Haible  <bruno@clisp.org>
4608
4609         socklen: Update comment.
4610         * m4/socklen.m4: Update comment about platforms.
4611
4612 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4613             Bruno Haible  <bruno@clisp.org>
4614
4615         inet_ntop, inet_pton: Simplify.
4616         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4617         documented to provide socklen_t and we already depend on sys_socket.
4618         * modules/inet_pton (Depends-on): Likewise.
4619         * lib/arpa_inet.in.h: Adjust comment.
4620
4621 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4622             Bruno Haible  <bruno@clisp.org>
4623
4624         netdb: Simplify.
4625         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4626         documented to provide socklen_t and we already depend on sys_socket.
4627         * lib/netdb.in.h: Adjust comment.
4628
4629 2011-03-19  Bruno Haible  <bruno@clisp.org>
4630
4631         sys_socket, netdb: Document problem with socklen_t.
4632         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4633         platforms.
4634         * doc/posix-headers/netdb.texi: Likewise.
4635
4636 2011-03-18  Eric Blake  <eblake@redhat.com>
4637
4638         maint.mk: let po check work in VPATH build
4639         * top/maint.mk (po_file): Allow cfg.mk override.
4640         (sc_po_check): Allow VPATH use.
4641         Reported by Jiri Denemark.
4642
4643 2011-03-16  Jim Meyering  <meyering@redhat.com>
4644
4645         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4646         Before, you would have had to create one .x-sc_ file per rule in order
4647         to exempt offending files.  Now, you may instead use a Make variable --
4648         usually defined in cfg.mk -- whose name identifies the affected rule.
4649         * top/maint.mk (_sc_excl): Define.
4650         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4651         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4652
4653 2011-03-13  Bruno Haible  <bruno@clisp.org>
4654
4655         ignore-value tests: Avoid warnings.
4656         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4657         empty for gcc < 3.4.
4658
4659 2011-03-13  Bruno Haible  <bruno@clisp.org>
4660
4661         passfd: Fix link error on Solaris.
4662         * modules/passfd (Description): Correct.
4663         (Depends-on): Add socketlib.
4664         (Link): New section.
4665         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4666
4667 2011-03-13  Bruno Haible  <bruno@clisp.org>
4668
4669         passfd: Fix link error on AIX 5.2.
4670         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4671
4672 2011-03-13  Bruno Haible  <bruno@clisp.org>
4673
4674         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4675         * lib/sys_socket.in.h: Include <stddef.h>.
4676         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4677         CMSG_FIRSTHDR. Remove unused variable.
4678
4679 2011-03-13  Bruno Haible  <bruno@clisp.org>
4680
4681         passfd: Fix compilation error on OpenBSD.
4682         * lib/passfd.c: Include <sys/uio.h>.
4683
4684 2011-03-13  Bruno Haible  <bruno@clisp.org>
4685
4686         passfd test: Fix warnings.
4687         * tests/test-passfd.c: Include <sys/wait.h>.
4688         (main): Fix typo.
4689
4690 2011-03-13  Bruno Haible  <bruno@clisp.org>
4691
4692         passfd module, part 4, tweaks.
4693         * tests/test-passfd.c: Reorder includes.
4694         (main): Fix perror and printf calls.
4695
4696 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4697
4698         passfd module, part 4.
4699         * modules/passfd-tests: New file.
4700         * tests/test-passfd.c: New file.
4701
4702 2011-03-13  Jim Meyering  <meyering@redhat.com>
4703
4704         Makefile: rely on GNU make; derive syntax-check rule names
4705         Rather than requiring that each sc_ rule be listed as a dependent
4706         of "check", use features of GNU make to derive the list.
4707         * Makefile (syntax-check-rules): Define.
4708         (check): Depend on the new variable, not the hard-coded list.
4709
4710 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4711             Bruno Haible  <bruno@clisp.org>
4712
4713         passfd module, part 3.
4714         * lib/passfd.h (recvfd): Add a flags argument.
4715         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4716         (recvfd): Add a flags argument.
4717         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4718         exists.
4719         * modules/passfd (Depends-on): Add cloexec.
4720         Suggested by Eric Blake.
4721
4722 2011-03-13  Bruno Haible  <bruno@clisp.org>
4723
4724         passfd module, part 2, tweaks.
4725         * modules/passfd (Files): Reorder.
4726         (Depends-on): Remove errno.
4727         (Include): Remove <sys/socket.h>, <sys/un.h>.
4728         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4729         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4730         specification header. Include <sys/socket.h> always. Don't include
4731         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4732         (sendfd): Clarify that it sets errno when it fails.
4733         (recvfd): Fix specification.
4734
4735 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4736
4737         passfd module, part 2.
4738         * modules/passfd: New file.
4739         * lib/passfd.h: New file.
4740         * lib/passfd.c: New file.
4741
4742 2011-03-12  Bruno Haible  <bruno@clisp.org>
4743
4744         wcswidth, mbswidth: Avoid integer overflow.
4745         * lib/wcswidth.c: Include <limits.h>.
4746         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4747         * lib/mbswidth.c: Include <limits.h>.
4748         (mbsnwidth): Avoid 'int' overflow.
4749         Reported by Jim Meyering.
4750
4751 2011-03-12  Bruno Haible  <bruno@clisp.org>
4752
4753         futimens, utimensat: Avoid endless recursion on Solaris 10.
4754         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4755         Solaris.
4756         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4757         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4758
4759 2011-03-11  Jim Meyering  <meyering@redhat.com>
4760
4761         maint.mk: relax a regexp to accommodate other formatting styles
4762         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4763         between "ngettext" and the following "(".
4764
4765 2011-03-11  Pádraig Brady <P@draigBrady.com>
4766
4767         maint.mk: suppress a false positive warning
4768         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4769         diagnostics are marked with ngettext.
4770
4771 2011-03-10  Eric Blake  <eblake@redhat.com>
4772
4773         wchar: add explicit dependencies, for Tru64
4774         * modules/mbmemcasecoll (Depends-on): Add wchar.
4775         * modules/mbtowc (Depends-on): Likewise.
4776         * modules/vasnprintf (Depends-on): Likewise.
4777         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4778         * modules/wctomb (Depends-on): Likewise.
4779         Reported by Peter O'Gorman.
4780
4781 2011-03-08  Bruno Haible  <bruno@clisp.org>
4782
4783         passfd module, part 1, tweaks.
4784         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4785         Improve indentation. Improve AC_MSG_CHECKING messages.
4786         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4787         gl_SOCKET_FAMILIES.
4788
4789 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4790
4791         passfd module, part 1.
4792         * m4/afunix.m4: New file.
4793         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4794         sockets.
4795
4796 2011-03-08  Bruno Haible  <bruno@clisp.org>
4797
4798         regex-quote: New API.
4799         * lib/regex-quote.h: Include <stdbool.h>.
4800         (struct regex_quote_spec): New type.
4801         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4802         New declarations.
4803         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4804         'const struct regex_quote_spec *' argument.
4805         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4806         (pcre_special): New constant.
4807         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4808         New functions.
4809         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4810         'const struct regex_quote_spec *' argument.
4811         * modules/regex-quote (Depends-on): Add stdbool.
4812         * tests/test-regex-quote.c (check): Update for new API. Add test for
4813         anchored results.
4814         * NEWS: Mention the API change.
4815         Reported by Reuben Thomas and Eric Blake.
4816
4817 2011-03-06  Bruno Haible  <bruno@clisp.org>
4818
4819         regex-quote: Fix creation of POSIX extended regular expressions.
4820         * lib/regex-quote.c (ere_special): Add grouping and alternation
4821         operators.
4822
4823 2011-03-05  Bruno Haible  <bruno@clisp.org>
4824
4825         doc: Improve doc regarding autopoint vs. gnulib.
4826         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4827         disable autopoint while running autoreconf.
4828         Suggested by Ralf Wildenhues.
4829
4830 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4831
4832         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4833         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4834
4835 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4836
4837         parse-duration: remove xalloc.h dependency
4838         * lib/parse-duration.c (parse_period): handle NULL return from
4839         strdup instead of calling xstrdup().
4840         * modules/parse-duration: remove "xalloc" dependency
4841
4842 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4843
4844         bootstrap: honor m4_base when running aclocal
4845         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4846
4847 2011-03-02  Jim Meyering  <meyering@redhat.com>
4848
4849         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4850         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4851         on request from Matt Booth.
4852
4853 2011-03-01  Eric Blake  <eblake@redhat.com>
4854
4855         test-link: work on Hurd
4856         * tests/test-link.h (test_link): Hurd rejects linking directories
4857         with EISDIR instead of the POSIX-mandated EPERM.
4858
4859 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4860
4861         stdio: simplify by moving files to printf-posix, sigpipe
4862         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4863         since this symbol is needed only if printf is replaced.
4864         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4865         Require gl_ASM_SYMBOL_PREFIX.
4866         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4867         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4868         (Depends-on): Add 'raise'.
4869         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4870         * modules/stdio (Files): Remove lib/stdio-write.c,
4871         m4/asm-underscore.m4.
4872         (Depends-on): Remove 'raise'.
4873
4874         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4875         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4876         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4877         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4878
4879 2011-02-28  Bruno Haible  <bruno@clisp.org>
4880
4881         localcharset: Assume ANSI C behaviour of free().
4882         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4883         calling free().
4884         Suggested by Simon Josefsson <simon@josefsson.org>.
4885
4886 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4887             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4888             Bruno Haible  <bruno@clisp.org>  (tiny change)
4889
4890         On Cygwin, use /proc file system instead of win32 API.
4891         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4892         Win32 file names.
4893         (DllMain): Simplify by removing Cygwin specific code.
4894         (find_shared_library_fullname): Use Linux specific implementation also
4895         for Cygwin.
4896         (get_shared_library_fullname): Update accordingly.
4897         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4898         Win32 file names.
4899         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4900         Cygwin specific code.
4901
4902 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4903             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4904
4905         Fix OpenMP flag detection for various Fortran compilers.
4906         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4907         OpenMP-conditional compilation construct, to force compile
4908         failure with missing OpenMP flag.
4909         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4910
4911 2011-02-25  Eric Blake  <eblake@redhat.com>
4912
4913         strstr: expand test coverage
4914         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4915         compilation.
4916         * tests/test-memmem.c (main): Duplicate tests.
4917         * tests/test-strcasestr.c (main): Likewise.
4918         * tests/test-c-strcasestr.c (main): Likewise.
4919
4920 2011-02-25  Jim Meyering  <meyering@redhat.com>
4921
4922         maint.mk: detect missing-NL-at-EOF, too
4923         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4924         it also detects when a file lacks a newline at EOF.
4925         (require_exactly_one_NL_at_EOF_): Renamed from
4926         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4927         since people may well have .x-sc_... file names tied to the
4928         existing name.  Suggested by Eric Blake.
4929
4930 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4931
4932         dirname: move m4/dos.m4 functionality into lib/dosname.h
4933
4934         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4935         extracts symbols from it, puts them into config.h; but it's much
4936         easier to use the symbols directly.  filename.h already does this,
4937         but it disagrees with dos.m4 in some respects.  This patch
4938         introduces a different include file dosname.h that packages up
4939         dos.m4, and then later we can work on merging filename.h and
4940         dosname.h.  Applications that need only the easy-to-configure
4941         symbols should consider including dosname.h rather than dirname.h.
4942         * NEWS: Mention incompatible changes.
4943         * m4/dos.m4: Remove.
4944         * lib/dosname.h, modules/dosname: New files.
4945         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4946         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4947         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4948         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4949         Include dosname.h, not dirname.h.
4950         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4951         Include dosname.h, for definitions of symbols like ISSLASH
4952         that used to be in config.h.
4953         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4954         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4955         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4956         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4957         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4958         * modules/rmdir (Files): Likewise.
4959         * modules/stat (Files): Likewise.
4960         * modules/unlink (Files): Likewise.
4961         * modules/dirname-lgpl (Depends-on): Add dosname.
4962         * modules/lstat (Depends-on): Likewise.
4963         * modules/openat (Depends-on): Likewise.
4964         * modules/rmdir (Depends-on): Likewise.
4965         * modules/savewd (Depends-on): Likewise.
4966         * modules/stat (Depends-on): Likewise.
4967         * modules/unlink (Depends-on): Likewise.
4968         * modules/openat (Depends-on): Remove dirname-lgpl.
4969         * modules/savewd (Depends-on): Likewise.
4970         * tests/test-dirname.c: Do not use removed symbols like
4971         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4972         the remaining symbols, e.g., ISSLASH ('\\').
4973
4974 2011-02-25  Eric Blake  <eblake@redhat.com>
4975
4976         strstr: revert patches that introduced bug and pessimization
4977         * lib/str-two-way.h: Add another reference.
4978         (two_way_short_needle, two_way_long_needle): Revert changes from
4979         2011-02-24; they pessimize search speed.
4980         (critical_factorization): Partially revert changes from
4981         2010-06-22; they violate the requirement that the left half of the
4982         needle be smaller than the period of the needle.
4983
4984 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4985
4986         filenamecat: remove unnecessary dependency on dirname-lgpl
4987         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4988         is no direct dependency, just an indirect one via filenamecat-lgpl.
4989
4990         remove: remove unnecessary use of m4/dos.m4
4991         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4992         * modules/remove (FILES): Remove m4/dos.m4.
4993
4994         * lib/openat-proc.c: Don't include dirname.h; not needed.
4995
4996         backupfile: remove unnecessary use of m4/dos.m4
4997         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4998         of its symbols are used by the backupfile code.  backupfile.c does
4999         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5000         for the rare case of programs that want all their backup file
5001         names to live within 8+3 limits, and dos.m4 doesn't address that.
5002         * modules/backupfile (Files): Remove m4/dos.m4.
5003
5004 2011-02-24  Jim Meyering  <meyering@redhat.com>
5005
5006         strstr: fix a bug whereby strstr would mistakenly return NULL
5007         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5008         in period calculation.
5009         (two_way_long_needle): Likewise.
5010         The original problem was reported by Mike Stump in
5011         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5012         Ralf Wildenhues provided the short needle and haystack.
5013         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5014         Add a more involved test to trigger the bug in two_way_long_needle.
5015
5016 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5017
5018         gnulib-tool: remove use of bold display in help screen
5019         * gnulib-tool (func_usage): Do not use bold display anymore in the
5020         help screen.  That was just meant to be a temporary emphasis for a
5021         backward-incompatible change.
5022
5023 2011-02-23  Bruno Haible  <bruno@clisp.org>
5024
5025         Fix misindentation of preprocessor directives.
5026         * lib/argp-namefrob.h: Reindent preprocessor directives.
5027         * lib/getopt_int.h (struct _getopt_data): Likewise.
5028         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5029         * lib/vasnprintf.c (decode_long_double): Likewise.
5030         * tests/test-argmatch.c: Insert blank lines, for clarity.
5031         * tests/test-exclude.c: Likewise.
5032
5033 2011-02-22  Bruno Haible  <bruno@clisp.org>
5034
5035         ioctl: Fix for MacOS X in 64-bit mode.
5036         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5037         value.
5038         Suggested by Eric Blake.
5039         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5040
5041 2011-02-22  Jim Meyering  <meyering@redhat.com>
5042
5043         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5044         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5045         in lib/.
5046
5047 2011-02-22  Eric Blake  <eblake@redhat.com>
5048
5049         maint: avoid any CDPATH issue
5050         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5051
5052         maint: adjust cpp indentation for my modules, as well
5053         * Makefile (sc_cpp_indent_check): Add my name.
5054         * lib/fbufmode.c: Filter through cppi.
5055         * lib/fpurge.c: Likewise.
5056         * lib/freadable.c: Likewise.
5057         * lib/freading.c: Likewise.
5058         * lib/fwritable.c: Likewise.
5059         * lib/fwriting.c: Likewise.
5060         * lib/sigaction.c: Likewise.
5061
5062 2011-02-22  Jim Meyering  <meyering@redhat.com>
5063
5064         maint: adjust cpp indentation to reflect nesting depth
5065         I.e., in a block of code that begins with an unnested "#if",
5066         put one space between the "#" in column 1 and following token.
5067         For example,
5068         -#include <sys/vfs.h>
5069         +# include <sys/vfs.h>
5070         Do this only in .c files that are part of a module I maintain.
5071         * lib/linkat.c: Filter through cppi.
5072         * lib/nanosleep.c: Likewise.
5073         * lib/openat.c: Likewise.
5074         * lib/openat-die.c: Likewise.
5075         * lib/dup3.c: Likewise.
5076         * lib/fchownat.c: Likewise.
5077         * lib/flock.c: Likewise.
5078         * lib/fsync.c: Likewise.
5079         * lib/fts.c: Likewise.
5080         * lib/getpass.c: Likewise.
5081         * lib/gettimeofday.c: Likewise.
5082         * lib/userspec.c: Likewise.
5083         * Makefile (sc_cpp_indent_check): New rule, to check this.
5084
5085 2011-02-22  Bruno Haible  <bruno@clisp.org>
5086
5087         New module 'wctomb'.
5088         * lib/stdlib.in.h (wctomb): New declaration.
5089         * lib/wctomb.c: New file.
5090         * lib/wctomb-impl.h: New file.
5091         * m4/wctomb.m4: New file.
5092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5093         REPLACE_WCTOMB.
5094         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5095         REPLACE_WCTOMB.
5096         * modules/wctomb: New file.
5097         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5098         * doc/posix-functions/wctomb.texi: Mention the new module.
5099         * modules/wctob (Depends-on): Add wctomb.
5100
5101 2011-02-22  Bruno Haible  <bruno@clisp.org>
5102
5103         New module 'mbtowc'.
5104         * lib/stdlib.in.h (mbtowc): New declaration.
5105         * lib/mbtowc.c: New file.
5106         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5107         * m4/mbtowc.m4: New file.
5108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5109         REPLACE_MBTOWC.
5110         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5111         REPLACE_MBTOWC.
5112         * modules/mbtowc: New file.
5113         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5114         * doc/posix-functions/mbtowc.texi: Mention the new module.
5115         * modules/btowc (Depends-on): Add mbtowc.
5116
5117 2011-02-22  Bruno Haible  <bruno@clisp.org>
5118
5119         wcrtomb: Add more tests for native Windows platforms.
5120         * tests/test-wcrtomb-w32-1.sh: New file.
5121         * tests/test-wcrtomb-w32-2.sh: New file.
5122         * tests/test-wcrtomb-w32-3.sh: New file.
5123         * tests/test-wcrtomb-w32-4.sh: New file.
5124         * tests/test-wcrtomb-w32-5.sh: New file.
5125         * tests/test-wcrtomb-w32.c: New file.
5126         * modules/wcrtomb-tests (Files): Add them.
5127         (Makefile.am): Arrange to run these tests.
5128         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5129         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5130
5131 2011-02-20  Bruno Haible  <bruno@clisp.org>
5132
5133         wcrtomb: Enhance test.
5134         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5135
5136 2011-02-20  Bruno Haible  <bruno@clisp.org>
5137
5138         mbrtowc: Tiny optimization.
5139         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5140
5141 2011-02-20  Jim Meyering  <meyering@redhat.com>
5142
5143         test-exclude.c: remove unmatched #endif
5144         * tests/test-exclude.c: Remove stray #endif, left over from
5145         the change of a week ago.
5146
5147 2011-02-19  Jim Meyering  <meyering@redhat.com>
5148
5149         git-version-gen: skip "-dirty" check when appropriate
5150         * build-aux/git-version-gen: Don't run any git commands when the
5151         version string comes from .tarball-version.  Prior to this, we
5152         would run git update-index --refresh even from a just-unpacked
5153         tarball directory, and that could affect a .git/ directory in a
5154         parent of the build directory.  Reported by Mike Frysinger.
5155
5156 2011-02-19  Bruno Haible  <bruno@clisp.org>
5157
5158         unictype/property-byname: Reduce the size of the 'data' segment.
5159         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5160
5161 2011-02-19  Bruno Haible  <bruno@clisp.org>
5162
5163         unictype/scripts: Reduce the size of the 'data' segment.
5164         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5165         '%pic'.
5166         * lib/unictype/scripts_byname.gperf: Regenerated.
5167
5168 2011-02-19  Bruno Haible  <bruno@clisp.org>
5169
5170         stdint: Update documentation.
5171         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5172
5173 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5174
5175         stdint: omit redundant check for wchar.h
5176         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5177         always tests whether wchar.h exists, so remove the now-redundant test.
5178
5179 2011-02-18  Bruno Haible  <bruno@clisp.org>
5180
5181         stdint: Cut dependency to module 'wchar'.
5182         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5183         include the necessary prerequisites.
5184         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5185         * modules/stdint (Depends-on): Remove wchar.
5186         (Makefile.am): Substitute HAVE_WCHAR_H.
5187         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5188
5189 2011-02-18  Eric Blake  <eblake@redhat.com>
5190
5191         longlong: skip, rather than fail, on cross-compilation
5192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5193         when cross-compiling; regression from 2011-02-16.
5194
5195 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5196
5197         * NEWS: Mention 2011-02-08 change to stdlib.
5198
5199 2011-02-17  Bruno Haible  <bruno@clisp.org>
5200
5201         getloadavg: Add comments about platforms.
5202         * m4/getloadavg.m4: Add comment.
5203         * lib/getloadavg.c: Likewise.
5204
5205 2011-02-17  Bruno Haible  <bruno@clisp.org>
5206
5207         getloadavg: Fix link error on Solaris 2.6.
5208         * modules/getloadavg (Link): New section.
5209         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5210         linking test-getloadavg.
5211         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5212         getloadavg.
5213
5214 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5215
5216         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5217         It was 'int', but this doesn't match the IRIX 6.5 manual.
5218         Suggested by Bruno Haible in
5219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5220
5221 2011-02-17  Bruno Haible  <bruno@clisp.org>
5222
5223         havelib: Fix comments.
5224         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5225         change.
5226
5227 2011-02-17  Bruno Haible  <bruno@clisp.org>
5228
5229         havelib: Update config.rpath.
5230         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5231
5232 2011-02-17  Bruno Haible  <bruno@clisp.org>
5233
5234         getloadavg test: Add some plausibility checks.
5235         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5236         is improbable.
5237
5238 2011-02-16  Eric Blake  <eblake@redhat.com>
5239
5240         maintainer-makefile: make syntax-check a no-op from tarballs
5241         * top/maint.mk (no-vc-detected): New rule.
5242         (local-checks-available): Use it to avoid hanging if someone tries
5243         'make syntax-check' from a tarball.  Also append to any non-syntax
5244         checks already defined in cfg.mk.
5245
5246 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5247
5248         longlong: tune, particularly for common case of c99
5249
5250         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5251         or running anything if c99, or if unsigned long long int does not
5252         work.  In either case, we know the answer without further tests.
5253         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5254         it at most once, and use its results for both long long int and
5255         unsigned long long int.  This is more likely to be efficient in
5256         the common case where the program wants to check for both long
5257         long int and unsigned long long int.
5258         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5259         since the answer is already known.
5260
5261 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5262
5263         getloadavg: set errno
5264         * lib/getloadavg.c: Set errno when returning -1.  If no other
5265         error number looks appropriate, set it to ENOSYS if the getloadavg
5266         looks like it can't possibly ever work, ENOTSUP otherwise.
5267         Suggested by Bruno Haible in
5268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5269
5270         getloadavg: trim unused parts and speed up 'configure'
5271         * NEWS: Document this.
5272         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5273         always compiled if getloadavg is absent.
5274         Move test code to ...
5275         * tests/test-getloadavg.c: New file, containing previous
5276         contents of test from lib/getloadavg.c.  It also contains
5277         suggestions by Bruno Haible in
5278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5279         * modules/getloadavg-tests: New file.
5280         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5281         Do tests in the same order as they're needed for getloadavg.c.
5282         Omit setgid-related tests that generate symbols KMEM_GROUP,
5283         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5284         Do only the tests that are needed to see whether the system has
5285         getloadavg, moving the other tests into ...
5286         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5287         NLIST_NAME_UNION; nobody should be using it.  Do not define
5288         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5289         relevant, as the user of this module shouldn't care how getloadavg
5290         is implemented.
5291
5292         getloadavg: omit unused var
5293         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5294
5295 2011-02-15  Jim Meyering  <meyering@redhat.com>
5296
5297         doc: update users.txt
5298         * users.txt: Update iwhd's URL.
5299
5300 2011-02-13  Bruno Haible  <bruno@clisp.org>
5301
5302         Consistent macro naming for macros that use GCC __attribute__.
5303         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5304         _ATTRIBUTE_NONNULL_.
5305         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5306         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5307         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5308         ATTRIBUTE_DEPRECATED.
5309         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5310         ATTRIBUTE_NORETURN.
5311         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5312         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5313         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5314         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5315         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5316         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5317         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5318         ATTRIBUTE_SENTINEL.
5319         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5320         ATTRIBUTE_RETURN_CHECK.
5321         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5322         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5323         ATTRIBUTE_NORETURN.
5324         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5325         Reported by Paul Eggert.
5326
5327 2011-02-13  Bruno Haible  <bruno@clisp.org>
5328
5329         Don't interfere with a program's definition of __attribute__.
5330         * lib/argp.h (__attribute__): Remove definition.
5331         (_GL_ATTRIBUTE_FORMAT): New macro.
5332         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5333         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5334         (_GL_ATTRIBUTE_FORMAT): New macro.
5335         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5336         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5337         GCC 3 or newer.
5338         * lib/error.h (__attribute__): Remove definition.
5339         (_GL_ATTRIBUTE_FORMAT): New macro.
5340         (error, error_at_line): Use it.
5341         * lib/hash.h (__attribute__): Remove definition.
5342         (ATTRIBUTE_WUR): Update definition. Define always.
5343         * lib/openat.h (__attribute__): Remove definition.
5344         (ATTRIBUTE_NORETURN): Update definition. Define always.
5345         * lib/sigpipe-die.h (__attribute__): Remove definition.
5346         (ATTRIBUTE_NORETURN): Update definition. Define always.
5347         * lib/vasnprintf.h (__attribute__): Remove definition.
5348         (_GL_ATTRIBUTE_FORMAT): New macro.
5349         (asnprintf, vasnprintf): Use it.
5350         * lib/xalloc.h (__attribute__): Remove definition.
5351         (ATTRIBUTE_NORETURN): Update definition. Define always.
5352         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5353         * lib/xmemdup0.h (__attribute__): Remove definition.
5354         (ATTRIBUTE_NORETURN): Update definition. Define always.
5355         * lib/xprintf.h (__attribute__): Remove definition.
5356         (_GL_ATTRIBUTE_FORMAT): New macro.
5357         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5358         * lib/xstrtol.h (__attribute__): Remove definition.
5359         (ATTRIBUTE_NORETURN): Update definition. Define always.
5360         * lib/xvasprintf.h (__attribute__): Remove definition.
5361         (_GL_ATTRIBUTE_FORMAT): New macro.
5362         (xasprintf, xvasprintf): Use it.
5363         * tests/test-argmatch.c (__attribute__): Remove definition.
5364         (ATTRIBUTE_NORETURN): Update definition. Define always.
5365         * tests/test-exclude.c (__attribute__): Remove definition.
5366         (ATTRIBUTE_NORETURN): Update definition. Define always.
5367         Reported by Paul Eggert.
5368
5369 2011-02-13  Bruno Haible  <bruno@clisp.org>
5370
5371         mbrtowc: Add more tests for native Windows platforms.
5372         * tests/test-mbrtowc-w32-1.sh: New file.
5373         * tests/test-mbrtowc-w32-2.sh: New file.
5374         * tests/test-mbrtowc-w32-3.sh: New file.
5375         * tests/test-mbrtowc-w32-4.sh: New file.
5376         * tests/test-mbrtowc-w32-5.sh: New file.
5377         * tests/test-mbrtowc-w32.c: New file.
5378         * modules/mbrtowc-tests (Files): Add them.
5379         (Makefile.am): Arrange to run these tests.
5380         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5381         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5382
5383 2011-02-13  Bruno Haible  <bruno@clisp.org>
5384
5385         mbrtowc: Work around native Windows bug.
5386         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5387         guess when no suitable locale for testing was found.
5388         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5389
5390 2011-02-13  Bruno Haible  <bruno@clisp.org>
5391
5392         mbsinit: Work around mingw bug.
5393         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5394         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5395         Windows.
5396         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5397
5398 2011-02-13  Bruno Haible  <bruno@clisp.org>
5399
5400         mbsinit: Don't crash for a NULL argument.
5401         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5402         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5403
5404 2011-02-13  Bruno Haible  <bruno@clisp.org>
5405
5406         Don't interfere with a program's definition of __attribute__.
5407         * lib/stdio.in.h (__attribute__): Remove definition.
5408         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5409         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5410         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5411         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5412         * lib/string.in.h (__attribute__): Remove definition.
5413         Reported by Paul Eggert.
5414
5415 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5416
5417         stdlib: don't get in the way of non-GCC __attribute__
5418         See thread starting at
5419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5420         Revert previous stdlib change, installing the following instead:
5421         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5422         to get in the way of a non-GCC compiler that supports __attribute__.
5423         (_GL_ATTRIBUTE_RETURN): New macro.
5424         (_Exit): Use it instead of __attribute__.
5425
5426 2011-02-12  Bruno Haible  <bruno@clisp.org>
5427
5428         quotearg test: Avoid test failure on mingw.
5429         * tests/test-quotearg.sh: Convert the locale identifier from native
5430         Windows syntax to Unix syntax.
5431
5432 2011-02-12  Bruno Haible  <bruno@clisp.org>
5433
5434         setlocale: Prefer gnulib's override over libintl's override.
5435         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5436         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5437         GNULIB_defined_setlocale is set.
5438
5439 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5440
5441         stdlib: support non-GCC __attribute__
5442
5443         Fix a serious and tricky problem encountered when attempting to
5444         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5445         5.5, but it crashed due to memory corruption on Solaris 10 with
5446         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5447         bits that are otherwise zero.  This tagging is optional inside
5448         Emacs but is preferred and is used when __attribute__ ((__aligned
5449         (8))) works, as it does with both recent-enough GCC and with Sun C
5450         5.11.  However, Sun C 5.11 is not GCC and does not #define
5451         __GNUC__ and __GNUC_MINOR__.
5452
5453         When I added the getloadavg module to Emacs, it brought in
5454         stdlib.in.h, which contained this fragment:
5455
5456            #ifndef __attribute__
5457            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5458            #  define __attribute__(Spec)   /* empty */
5459            # endif
5460            #endif
5461
5462         When files that include <stdlib.h> were compiled with Sun C 5.11,
5463         the above code disabled __attribute__ ((__aligned (8))), which
5464         caused variables to not be properly aligned, which eventually led
5465         to the pointer corruption mentioned above.  (This was a bit hard
5466         to diagnose, unfortunately.)
5467
5468         Several "#define __attribute__(X) /* empty */" code snippets need
5469         to be eradicated from Gnulib to work with non-GCC compilers that
5470         support __attribute__.  The Autoconf way to do this is to test for
5471         each kind of attribute that we want support for, and selectively
5472         enable that in source code.
5473
5474         Fix this problem just for stdlib.h, by adding a test for the
5475         __noreturn__ attribute, and change stdlib.in.h to use that test
5476         when needed.  This technique can be easily generalized to the
5477         other *.in.h files and attributes, and a similar technique can be
5478         used for *.h and *.c files.  This patch is enough to solve the
5479         problem for Emacs + getloadavg, and I thought I'd publish it for
5480         feedback before undertaking further, similar fixes in other
5481         modules.
5482
5483         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5484         because it's not needed for stdlib.h.  It merely substitutes the
5485         value directly into stdlib.h.  We may well need to #define it, or
5486         similar symbols, for other modules, but it's nice to also have an
5487         option to not #define it for applications like Emacs that do not
5488         need it.
5489
5490         * lib/stdlib.in.h (__attribute__): Do not #define.
5491         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5492         be defined only if the _Exit module is also used.
5493         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5495         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5496         platforms.
5497         * modules/_Exit (Files): Add m4/attribute.m4.
5498         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5499         * m4/attribute.m4: New file.
5500
5501 2011-02-12  Bruno Haible  <bruno@clisp.org>
5502
5503         wcsrtombs: Work around bug on native Windows.
5504         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5505         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5506         instead of len.
5507         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5508
5509 2011-02-12  Bruno Haible  <bruno@clisp.org>
5510
5511         mbsrtowcs: Work around bug on native Windows.
5512         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5513         against mingw bug.
5514         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5515
5516 2011-02-12  Bruno Haible  <bruno@clisp.org>
5517
5518         Avoid setlocale bugs in tests.
5519         * modules/btowc (Dependencies): Add setlocale.
5520         * modules/c-strcase (Dependencies): Likewise.
5521         * modules/mbmemcasecmp (Dependencies): Likewise.
5522         * modules/mbmemcasecoll (Dependencies): Likewise.
5523         * modules/mbrtowc (Dependencies): Likewise.
5524         * modules/mbscasecmp (Dependencies): Likewise.
5525         * modules/mbscasestr (Dependencies): Likewise.
5526         * modules/mbschr (Dependencies): Likewise.
5527         * modules/mbscspn (Dependencies): Likewise.
5528         * modules/mbsinit (Dependencies): Likewise.
5529         * modules/mbsncasecmp (Dependencies): Likewise.
5530         * modules/mbsnrtowcs (Dependencies): Likewise.
5531         * modules/mbspbrk (Dependencies): Likewise.
5532         * modules/mbspcasecmp (Dependencies): Likewise.
5533         * modules/mbsrchr (Dependencies): Likewise.
5534         * modules/mbsrtowcs (Dependencies): Likewise.
5535         * modules/mbsspn (Dependencies): Likewise.
5536         * modules/mbsstr (Dependencies): Likewise.
5537         * modules/nl_langinfo (Dependencies): Likewise.
5538         * modules/quotearg (Dependencies): Likewise.
5539         * modules/unicase/locale-language (Dependencies): Likewise.
5540         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5541         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5542         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5543         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5544         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5545         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5546         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5547         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5548         * modules/vasnprintf-posix (Dependencies): Likewise.
5549         * modules/wcrtomb (Dependencies): Likewise.
5550         * modules/wcsnrtombs (Dependencies): Likewise.
5551         * modules/wcsrtombs (Dependencies): Likewise.
5552
5553 2011-02-12  Bruno Haible  <bruno@clisp.org>
5554
5555         setlocale: Workaround native Windows bug.
5556         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5557         succeeds but sets LC_CTYPE to "C", report a failure.
5558         * tests/test-setlocale2.sh: New file.
5559         * tests/test-setlocale2.c: New file.
5560         * modules/setlocale-tests (Files): Add the new files.
5561         (Makefile.am): Enable test-setlocale2.sh test.
5562         * doc/posix-functions/setlocale.texi: Mention workaround.
5563
5564 2011-02-11  Bruno Haible  <bruno@clisp.org>
5565
5566         Tests for module 'setlocale'.
5567         * modules/setlocale-tests: New file.
5568         * tests/test-setlocale1.sh: New file.
5569         * tests/test-setlocale1.c: New file.
5570
5571         New module 'setlocale'.
5572         * lib/locale.in.h (setlocale): New declaration.
5573         * lib/setlocale.c: New file, based on
5574         gettext/gettext-runtime/intl/setlocale.c.
5575         * m4/setlocale.m4: New file.
5576         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5577         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5578         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5579         REPLACE_SETLOCALE.
5580         * modules/setlocale: New file.
5581         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5582         * doc/posix-functions/setlocale.texi: Mention the new module.
5583
5584 2011-02-11  Bruno Haible  <bruno@clisp.org>
5585
5586         Prepare for locale dependent tests on mingw.
5587         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5588         because it has the wrong locale encoding.
5589         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5590         French_France.1252 instead of "fr".
5591         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5592         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5593         because it has the wrong locale encoding.
5594         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5595         native Windows, try Turkish_Turkey.65001.
5596         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5597         Chinese_China.54936.
5598
5599         Prepare for locale dependent tests on mingw.
5600         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5601         differently.
5602         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5603         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5604         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5605         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5606
5607 2011-02-11  Eric Blake  <eblake@redhat.com>
5608
5609         strptime: avoid compiler warnings
5610         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5611         compiler warnings about dead code.
5612         Reported by Daniel P. Berrange.
5613
5614 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5615
5616         doc: update users.txt
5617         * users.txt: Add rcs.
5618
5619 2011-02-10  John W. Eaton  <jwe@gnu.org>
5620
5621         doc: update users.txt
5622         * users.txt: Add octave.
5623
5624 2011-02-10  Jim Meyering  <meyering@redhat.com>
5625
5626         doc: update users.txt
5627         * users.txt: Add iwhd.
5628
5629 2011-02-09  Bruno Haible  <bruno@clisp.org>
5630
5631         gnulib-tool: Make copyright notice adjustment more robust.
5632         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5633         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5634         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5635         License".
5636         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5637
5638 2011-02-06  Bruno Haible  <bruno@clisp.org>
5639
5640         New module 'towctrans'.
5641         * modules/towctrans: New file.
5642         * lib/wctype.in.h (towctrans): New declaration.
5643         * lib/towctrans.c: New file.
5644         * lib/towctrans-impl.h: New file.
5645         * m4/towctrans.m4: New file.
5646         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5647         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5648         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5649         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5650         * doc/posix-functions/towctrans.texi: Mention the new module.
5651
5652 2011-02-06  Bruno Haible  <bruno@clisp.org>
5653
5654         New module 'wctrans'.
5655         * modules/wctrans: New file.
5656         * lib/wctype.in.h (wctrans): New declaration.
5657         * lib/wctrans.c: New file.
5658         * lib/wctrans-impl.h: New file.
5659         * m4/wctrans.m4: New file.
5660         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5661         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5662         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5663         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5664         * doc/posix-functions/wctrans.texi: Mention the new module.
5665
5666 2011-02-06  Bruno Haible  <bruno@clisp.org>
5667
5668         New module 'iswctype'.
5669         * modules/iswctype: New file.
5670         * lib/wctype.in.h (iswctype): New declaration.
5671         * lib/iswctype.c: New file.
5672         * lib/iswctype-impl.h: New file.
5673         * m4/iswctype.m4: New file.
5674         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5675         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5676         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5677         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5678         * doc/posix-functions/iswctype.texi: Mention the new module and the
5679         HP-UX 11.00 problem.
5680
5681 2011-02-06  Bruno Haible  <bruno@clisp.org>
5682
5683         New module 'wctype'.
5684         * modules/wctype: Change to represent the wctype() substitute.
5685         * lib/wctype.in.h (wctype): New declaration.
5686         * lib/wctype.c: New file.
5687         * lib/wctype-impl.h: New file.
5688         * m4/wctype.m4: New file.
5689         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5690         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5691         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5692         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5693         * doc/posix-functions/wctype.texi: Mention the new module and the
5694         HP-UX 11.00 problem.
5695
5696 2011-02-06  Bruno Haible  <bruno@clisp.org>
5697
5698         wctype-h: Ensure wctype_t and wctrans_t are defined.
5699         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5700         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5701         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5702         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5703         HAVE_WCTRANS_T.
5704         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5705
5706 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5707
5708         flock: fix license typo
5709
5710         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5711         omitted.
5712
5713 2011-02-08  Bruno Haible  <bruno@clisp.org>
5714
5715         Split large sed scripts, for HP-UX sed.
5716         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5717         to avoid HP-UX limit of 99 commands, in the near future.
5718         * modules/stdlib (Makefile.am): Likewise.
5719         * modules/unistd (Makefile.am): Likewise.
5720         * modules/wchar (Makefile.am): Likewise.
5721         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5722         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5723         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5724
5725 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5726             Bruno Haible  <bruno@clisp.org>
5727
5728         stdlib: improve random_r modularization
5729         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5730         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5731         you also need the random_r module to get this material right.
5732         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5733         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5734         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5735
5736 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5737
5738         stdlib: don't depend on stdint
5739         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5740         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5741         be independent of whether stdint.h is needed.
5742         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5743         here, instead of ...
5744         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5745         struct random_data should be using the random_r module, not just
5746         the stdlib module (which wouldn't make sense: what package needs
5747         just struct random_data without also needing random_r?).
5748         * modules/stdlib (Depends-on): Remove stdint.
5749
5750         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5751         See the thread rooted at
5752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5753         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5754         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5755         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5756         __VMS)); previously it was always included (via fcntl--.h).
5757         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5758         hand; this is good enough for load averages.  Also, do not use
5759         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5760         flags directly if available and don't bother otherwise.  (Packages
5761         that need the extra reliability should use the modules that define
5762         these flags on older platforms that lack them.)
5763         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5764         fcntl-safer.
5765
5766 2011-02-08  Jim Meyering  <meyering@redhat.com>
5767
5768         di-set.h, ino-map.h: add multiple-inclusion guard
5769         Technically, the guard is required only for ino-map.h, due to its
5770         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5771         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5772         * lib/ino-map.h: Likewise.
5773
5774 2011-02-06  Bruno Haible  <bruno@clisp.org>
5775
5776         iswblank: Ensure declaration on glibc systems.
5777         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5778         * modules/iswblank (Dependencies): Add 'extensions'.
5779         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5780
5781 2011-02-06  Bruno Haible  <bruno@clisp.org>
5782
5783         New module 'iswblank'.
5784         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5785         * modules/iswblank: New file.
5786         * modules/wctype-h (Files): Remove lib/iswblank.c.
5787         (Makefile.am): Substitute GNULIB_ISWBLANK.
5788         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5789         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5790         (gl_WCTYPE_H_DEFAULTS): New macro.
5791         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5792         * modules/iswblank-tests: New file.
5793         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5794         * tests/test-wctype-h.c (main): Remove iswblank tests.
5795         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5796         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5797         of 'wctype-h'.
5798         * NEWS: Mention the change.
5799         * modules/mbchar (Depends-on): Add iswblank.
5800
5801 2011-02-08  Bruno Haible  <bruno@clisp.org>
5802
5803         di-set tests: Refactor.
5804         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5805         unnecessary includes.
5806         (ASSERT): Remove macro.
5807         (main): Make C90 compliant by avoiding variable declaration after
5808         statement.
5809         * modules/di-set-tests (Files): Add tests/macros.h.
5810
5811 2011-02-08  Bruno Haible  <bruno@clisp.org>
5812
5813         ino-map tests: Refactor.
5814         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5815         unnecessary includes.
5816         (ASSERT): Remove macro.
5817         (main): Make C90 compliant by avoiding variable declaration after
5818         statement.
5819         * modules/ino-map-tests (Files): Add tests/macros.h.
5820
5821 2011-02-08  Jim Meyering  <meyering@redhat.com>
5822
5823         di-set: add "const" to a cast
5824         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5825         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5826
5827 2011-02-06  Bruno Haible  <bruno@clisp.org>
5828
5829         Rename module 'wctype' to 'wctype-h'.
5830         * modules/wctype-h: Renamed from modules/wctype.
5831         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5832         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5833         (Files, Depends-on, Makefile.am): Update.
5834         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5835         (Files, Makefile.am): Update.
5836         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5837         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5838         * doc/posix-headers/wctype.texi: Update.
5839         * doc/posix-functions/iswalnum.texi: Update.
5840         * doc/posix-functions/iswalpha.texi: Update.
5841         * doc/posix-functions/iswblank.texi: Update.
5842         * doc/posix-functions/iswcntrl.texi: Update.
5843         * doc/posix-functions/iswdigit.texi: Update.
5844         * doc/posix-functions/iswgraph.texi: Update.
5845         * doc/posix-functions/iswlower.texi: Update.
5846         * doc/posix-functions/iswprint.texi: Update.
5847         * doc/posix-functions/iswpunct.texi: Update.
5848         * doc/posix-functions/iswspace.texi: Update.
5849         * doc/posix-functions/iswupper.texi: Update.
5850         * doc/posix-functions/iswxdigit.texi: Update.
5851         * doc/posix-functions/towlower.texi: Update.
5852         * doc/posix-functions/towupper.texi: Update.
5853         * NEWS: Mention the change.
5854         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5855         * modules/mbchar (Dependencies): Likewise.
5856         * modules/mbswidth (Dependencies): Likewise.
5857         * modules/quotearg (Dependencies): Likewise.
5858         * modules/regex (Dependencies): Likewise.
5859         * modules/wcscasecmp (Dependencies): Likewise.
5860         * modules/wcsncasecmp (Dependencies): Likewise.
5861         * modules/wcwidth (Dependencies): Likewise.
5862
5863 2011-02-06  Bruno Haible  <bruno@clisp.org>
5864
5865         New module 'wcswidth'.
5866         * modules/wcswidth: New file.
5867         * lib/wchar.in.h (wcswidth): New declaration.
5868         * lib/wcswidth.c: New file.
5869         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5870         * m4/wcswidth.m4: New file.
5871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5873         REPLACE_WCSWIDTH.
5874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5875         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5876         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5877         * doc/posix-functions/wcswidth.texi: Mention the new module.
5878
5879 2011-02-06  Bruno Haible  <bruno@clisp.org>
5880
5881         New module 'wcstok'.
5882         * modules/wcstok: New file.
5883         * lib/wchar.in.h (wcstok): New declaration.
5884         * lib/wcstok.c: New file.
5885         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5886         * m4/wcstok.m4: New file.
5887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5890         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5891         * doc/posix-functions/wcstok.texi: Mention the new module.
5892
5893 2011-02-06  Bruno Haible  <bruno@clisp.org>
5894
5895         New module 'wcsstr'.
5896         * modules/wcsstr: New file.
5897         * lib/wchar.in.h (wcsstr): New declaration.
5898         * lib/wcsstr.c: New file.
5899         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5900         * m4/wcsstr.m4: New file.
5901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5904         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5905         * doc/posix-functions/wcsstr.texi: Mention the new module.
5906
5907 2011-02-06  Bruno Haible  <bruno@clisp.org>
5908
5909         New module 'wcspbrk'.
5910         * modules/wcspbrk: New file.
5911         * lib/wchar.in.h (wcspbrk): New declaration.
5912         * lib/wcspbrk.c: New file.
5913         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5914         * m4/wcspbrk.m4: New file.
5915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5918         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5919         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5920
5921 2011-02-06  Bruno Haible  <bruno@clisp.org>
5922
5923         New module 'wcsspn'.
5924         * modules/wcsspn: New file.
5925         * lib/wchar.in.h (wcsspn): New declaration.
5926         * lib/wcsspn.c: New file.
5927         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5928         * m4/wcsspn.m4: New file.
5929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5932         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5933         * doc/posix-functions/wcsspn.texi: Mention the new module.
5934
5935 2011-02-06  Bruno Haible  <bruno@clisp.org>
5936
5937         New module 'wcscspn'.
5938         * modules/wcscspn: New file.
5939         * lib/wchar.in.h (wcscspn): New declaration.
5940         * lib/wcscspn.c: New file.
5941         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5942         * m4/wcscspn.m4: New file.
5943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5946         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5947         * doc/posix-functions/wcscspn.texi: Mention the new module.
5948
5949 2011-02-06  Bruno Haible  <bruno@clisp.org>
5950
5951         New module 'wcsrchr'.
5952         * modules/wcsrchr: New file.
5953         * lib/wchar.in.h (wcsrchr): New declaration.
5954         * lib/wcsrchr.c: New file.
5955         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5956         * m4/wcsrchr.m4: New file.
5957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5960         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5961         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5962
5963 2011-02-06  Bruno Haible  <bruno@clisp.org>
5964
5965         New module 'wcschr'.
5966         * modules/wcschr: New file.
5967         * lib/wchar.in.h (wcschr): New declaration.
5968         * lib/wcschr.c: New file.
5969         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5970         * m4/wcschr.m4: New file.
5971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5974         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5975         * doc/posix-functions/wcschr.texi: Mention the new module.
5976
5977 2011-02-06  Bruno Haible  <bruno@clisp.org>
5978
5979         New module 'wcsdup'.
5980         * modules/wcsdup: New file.
5981         * lib/wchar.in.h (wcsdup): New declaration.
5982         * lib/wcsdup.c: New file.
5983         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5984         * m4/wcsdup.m4: New file.
5985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5988         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5989         * doc/posix-functions/wcsdup.texi: Mention the new module.
5990
5991 2011-02-06  Bruno Haible  <bruno@clisp.org>
5992
5993         New module 'wcsxfrm'.
5994         * modules/wcsxfrm: New file.
5995         * lib/wchar.in.h (wcsxfrm): New declaration.
5996         * lib/wcsxfrm.c: New file.
5997         * lib/wcsxfrm-impl.h: New file.
5998         * m4/wcsxfrm.m4: New file.
5999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6002         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6003         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6004
6005 2011-02-06  Bruno Haible  <bruno@clisp.org>
6006
6007         New module 'wcscoll'.
6008         * modules/wcscoll: New file.
6009         * lib/wchar.in.h (wcscoll): New declaration.
6010         * lib/wcscoll.c: New file.
6011         * lib/wcscoll-impl.h: New file.
6012         * m4/wcscoll.m4: New file.
6013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6016         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6017         * doc/posix-functions/wcscoll.texi: Mention the new module.
6018
6019 2011-02-06  Bruno Haible  <bruno@clisp.org>
6020
6021         New module 'wcsncasecmp'.
6022         * modules/wcsncasecmp: New file.
6023         * lib/wchar.in.h (wcsncasecmp): New declaration.
6024         * lib/wcsncasecmp.c: New file.
6025         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6026         * m4/wcsncasecmp.m4: New file.
6027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6029         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6030         HAVE_WCSNCASECMP.
6031         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6032         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6033
6034 2011-02-06  Bruno Haible  <bruno@clisp.org>
6035
6036         New module 'wcscasecmp'.
6037         * modules/wcscasecmp: New file.
6038         * lib/wchar.in.h (wcscasecmp): New declaration.
6039         * lib/wcscasecmp.c: New file.
6040         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6041         * m4/wcscasecmp.m4: New file.
6042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6044         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6045         HAVE_WCSCASECMP.
6046         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6047         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6048
6049 2011-02-05  Bruno Haible  <bruno@clisp.org>
6050
6051         New module 'wcsncmp'.
6052         * modules/wcsncmp: New file.
6053         * lib/wchar.in.h (wcsncmp): New declaration.
6054         * lib/wcsncmp.c: New file.
6055         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6056         * m4/wcsncmp.m4: New file.
6057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6060         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6061         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6062
6063 2011-02-05  Bruno Haible  <bruno@clisp.org>
6064
6065         New module 'wcscmp'.
6066         * modules/wcscmp: New file.
6067         * lib/wchar.in.h (wcscmp): New declaration.
6068         * lib/wcscmp.c: New file.
6069         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6070         * m4/wcscmp.m4: New file.
6071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6074         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6075         * doc/posix-functions/wcscmp.texi: Mention the new module.
6076
6077 2011-02-05  Bruno Haible  <bruno@clisp.org>
6078
6079         New module 'wcsncat'.
6080         * modules/wcsncat: New file.
6081         * lib/wchar.in.h (wcsncat): New declaration.
6082         * lib/wcsncat.c: New file.
6083         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6084         * m4/wcsncat.m4: New file.
6085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6088         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6089         * doc/posix-functions/wcsncat.texi: Mention the new module.
6090
6091 2011-02-05  Bruno Haible  <bruno@clisp.org>
6092
6093         New module 'wcscat'.
6094         * modules/wcscat: New file.
6095         * lib/wchar.in.h (wcscat): New declaration.
6096         * lib/wcscat.c: New file.
6097         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6098         * m4/wcscat.m4: New file.
6099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6102         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6103         * doc/posix-functions/wcscat.texi: Mention the new module.
6104
6105 2011-02-05  Bruno Haible  <bruno@clisp.org>
6106
6107         New module 'wcpncpy'.
6108         * modules/wcpncpy: New file.
6109         * lib/wchar.in.h (wcpncpy): New declaration.
6110         * lib/wcpncpy.c: New file.
6111         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6112         * m4/wcpncpy.m4: New file.
6113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6115         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6116         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6117         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6118
6119 2011-02-05  Bruno Haible  <bruno@clisp.org>
6120
6121         New module 'wcsncpy'.
6122         * modules/wcsncpy: New file.
6123         * lib/wchar.in.h (wcsncpy): New declaration.
6124         * lib/wcsncpy.c: New file.
6125         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6126         * m4/wcsncpy.m4: New file.
6127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6130         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6131         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6132
6133 2011-02-05  Bruno Haible  <bruno@clisp.org>
6134
6135         New module 'wcpcpy'.
6136         * modules/wcpcpy: New file.
6137         * lib/wchar.in.h (wcpcpy): New declaration.
6138         * lib/wcpcpy.c: New file.
6139         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6140         * m4/wcpcpy.m4: New file.
6141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6143         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6144         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6145         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6146
6147 2011-02-05  Bruno Haible  <bruno@clisp.org>
6148
6149         New module 'wcscpy'.
6150         * modules/wcscpy: New file.
6151         * lib/wchar.in.h (wcscpy): New declaration.
6152         * lib/wcscpy.c: New file.
6153         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6154         * m4/wcscpy.m4: New file.
6155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6158         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6159         * doc/posix-functions/wcscpy.texi: Mention the new module.
6160
6161 2011-02-05  Bruno Haible  <bruno@clisp.org>
6162
6163         New module 'wcsnlen'.
6164         * modules/wcsnlen: New file.
6165         * lib/wchar.in.h (wcsnlen): New declaration.
6166         * lib/wcsnlen.c: New file.
6167         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6168         * m4/wcsnlen.m4: New file.
6169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6172         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6173         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6174
6175 2011-02-05  Bruno Haible  <bruno@clisp.org>
6176
6177         New module 'wcslen'.
6178         * modules/wcslen: New file.
6179         * lib/wchar.in.h (wcslen): New declaration.
6180         * lib/wcslen.c: New file.
6181         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6182         * m4/wcslen.m4: New file.
6183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6186         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6187         * doc/posix-functions/wcslen.texi: Mention the new module.
6188
6189 2011-02-05  Bruno Haible  <bruno@clisp.org>
6190
6191         New module 'wmemset'.
6192         * modules/wmemset: New file.
6193         * lib/wchar.in.h (wmemset): New declaration.
6194         * lib/wmemset.c: New file.
6195         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6196         * m4/wmemset.m4: New file.
6197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6199         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6200         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6201         * doc/posix-functions/wmemset.texi: Mention the new module.
6202
6203 2011-02-05  Bruno Haible  <bruno@clisp.org>
6204
6205         New module 'wmemmove'.
6206         * modules/wmemmove: New file.
6207         * lib/wchar.in.h (wmemmove): New declaration.
6208         * lib/wmemmove.c: New file.
6209         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6210         * m4/wmemmove.m4: New file.
6211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6213         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6214         HAVE_WMEMMOVE.
6215         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6216         * doc/posix-functions/wmemmove.texi: Mention the new module.
6217
6218 2011-02-05  Bruno Haible  <bruno@clisp.org>
6219
6220         New module 'wmemcpy'.
6221         * modules/wmemcpy: New file.
6222         * lib/wchar.in.h (wmemcpy): New declaration.
6223         * lib/wmemcpy.c: New file.
6224         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6225         * m4/wmemcpy.m4: New file.
6226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6228         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6229         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6230         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6231
6232 2011-02-05  Bruno Haible  <bruno@clisp.org>
6233
6234         New module 'wmemcmp'.
6235         * modules/wmemcmp: New file.
6236         * lib/wchar.in.h (wmemcmp): New declaration.
6237         * lib/wmemcmp.c: New file.
6238         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6239         * m4/wmemcmp.m4: New file.
6240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6242         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6243         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6244         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6245
6246 2011-02-07  Jim Meyering  <meyering@redhat.com>
6247
6248         di-set, ino-map: new modules, from coreutils
6249         * lib/di-set.c: New file.
6250         * lib/di-set.h: Likewise.
6251         * lib/ino-map.c: Likewise.
6252         * lib/ino-map.h: Likewise.
6253         * modules/di-set: Likewise.
6254         * modules/di-set-tests: Likewise.
6255         * modules/ino-map: Likewise.
6256         * modules/ino-map-tests: Likewise.
6257         * tests/test-di-set.c: Likewise.
6258         * tests/test-ino-map.c: Likewise.
6259
6260 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6261
6262         getloadavg: merge minor changes from Emacs
6263
6264         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6265         (getloadavg): Use memset, not bzero.
6266
6267         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6268         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6269         clash (bug#86).
6270
6271 2010-11-14  Bruno Haible  <bruno@clisp.org>
6272
6273         Allow multiple gnulib generated replacements to coexist.
6274         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6275         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6276         * lib/langinfo.in.h (nl_item): Likewise.
6277         * lib/math.in.h (_NaN, NAN): Likewise.
6278         * lib/netdb.in.h (struct addrinfo): Likewise.
6279         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6280         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6281         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6282         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6283         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6284         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6285         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6286         pthread_mutexattr_init, pthread_mutexattr_settype,
6287         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6288         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6289         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6290         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6291         * lib/sched.in.h (struct sched_param): Likewise.
6292         * lib/se-selinux.in.h (security_class_t, security_context_t,
6293         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6294         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6295         lsetfilecon, fsetfilecon, security_check_context,
6296         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6297         Likewise.
6298         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6299         Likewise.
6300         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6301         _gl_function_taking_int_returning_void_t, union sigval,
6302         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6303         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6304         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6305         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6306         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6307         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6308         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6309         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6310         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6311         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6312         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6313         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6314         socklen_t, rpl_fd_isset): Likewise.
6315         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6316         * lib/sys_time.in.h (struct timeval): Likewise.
6317         * lib/sys_times.in.h (struct tms): Likewise.
6318         * lib/sys_utsname.in.h (struct utsname):
6319         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6320         * lib/unistd.in.h (getpagesize): Likewise.
6321         * lib/wchar.in.h (mbstate_t): Likewise.
6322         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6323         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6324         towlower, towupper): Likewise.
6325         Reported by Sam Steingold <sds@gnu.org>.
6326
6327 2011-02-05  Eric Blake  <eblake@redhat.com>
6328
6329         unsetenv: work around Haiku issues
6330         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6331         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6332
6333 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6334
6335         libposix: avoid calling error() within libposix
6336         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6337         is defined.
6338
6339 2011-02-05  Eric Blake  <eblake@redhat.com>
6340
6341         strerror_r-posix: port to cygwin
6342         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6343         implementation.
6344         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6345         * tests/test-strerror_r.c (main): Fix test.
6346         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6347         issue.
6348
6349 2011-02-05  Bruno Haible  <bruno@clisp.org>
6350
6351         New module 'wmemchr'.
6352         * modules/wmemchr: New file.
6353         * lib/wchar.in.h (wmemchr): New declaration.
6354         * lib/wmemchr.c: New file.
6355         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6356         * m4/wmemchr.m4: New file.
6357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6359         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6360         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6361         * doc/posix-functions/wmemchr.texi: Mention the new module.
6362
6363 2011-02-04  Eric Blake  <eblake@redhat.com>
6364
6365         fdopendir: detect FreeBSD bug
6366         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6367         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6368
6369 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6370
6371         stdbool: do not define HAVE_STDBOOL_H
6372         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6373         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6374         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6375         imported from the latest Autoconf git.  It was motivated by Emacs,
6376         which uses gnulib but does not need HAVE_STDBOOL_H.
6377
6378 2011-02-04  Bruno Haible  <bruno@clisp.org>
6379
6380         wcsnrtombs: Prepare for new module wwcsnrtombs.
6381         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6382         * lib/wcsnrtombs.c: Include it.
6383         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6384
6385         wcsrtombs: Prepare for new module wwcsrtombs.
6386         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6387         * lib/wcsrtombs.c: Include it.
6388         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6389
6390         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6391         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6392         * lib/mbsnrtowcs.c: Include it.
6393         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6394
6395         mbsrtowcs: Prepare for new module mbsrtowwcs.
6396         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6397         * lib/mbsrtowcs.c: Include it.
6398         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6399
6400 2011-02-04  Bruno Haible  <bruno@clisp.org>
6401
6402         vasnprintf: Reduce use of malloc for small format strings.
6403         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6404         (arguments): Add room for the first 7 arguments.
6405         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6406         (char_directives, u8_directives, u16_directives, u32_directives): Add
6407         room for the first 7 directives.
6408         * lib/printf-parse.c: Include <string.h>.
6409         (PRINTF_PARSE): Change memory handling code so that it uses the first
6410         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6411         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6412         Reported by Pádraig Brady <P@draigbrady.com>.
6413
6414 2011-01-31  Eric Blake  <eblake@redhat.com>
6415
6416         dup2: work around Haiku bug
6417         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6418         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6419         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6420         * tests/test-dup2.c (main): Enhance test.
6421
6422 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6423
6424         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6425         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6426         declared by eglibc 2.11.2.
6427         * lib/stdio.in.h: Likewise.
6428
6429 2011-01-31  Eric Blake  <eblake@redhat.com>
6430
6431         ignore-value: add missing test dependency
6432         * tests/test-ignore-value.c: Revert previous change; stdio.h
6433         provides off_t.
6434         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6435
6436 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6437
6438         mktime: clarify long_int width checking
6439         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6440         the top level, to make it clearer that the assumption about
6441         long_int width is being checked.  See
6442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6443
6444 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6445
6446         ignore-value: Fix self-test.
6447         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6448
6449 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6450
6451         TYPE_MAXIMUM: avoid theoretically undefined behavior
6452         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6453         negative number, which the C Standard says has undefined behavior.
6454         In practice this is not a problem, but might as well do it by the book.
6455         Reported by Rich Felker and Eric Blake; see
6456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6457         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6458         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6460         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6461         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6462         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6463
6464         mktime: #undef mktime before #defining it
6465         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6466
6467         mktime: systematically normalize tm_isdst comparisons
6468         * lib/mktime.c (isdst_differ): New function.
6469         (__mktime_internal): Use it systematically for all isdst comparisons.
6470         This completes the fix for libc BZ #6723, and removes the need for
6471         normalizing tm_isdst.  See
6472         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6473         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6474
6475         mktime: fix some integer overflow issues and sidestep the rest
6476
6477         This was prompted by a bug report by Benjamin Lindner for MinGW
6478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6479         His bug is due to signed integer overflow (0 - INT_MIN), and I
6480         I scanned through mktime.c looking for other integer overflow
6481         problems, fixing all the bugs I found.
6482
6483         Although the C Standard says the resulting code is still not safe
6484         in the presence of integer overflow, in practice it should be good
6485         enough for all real-world two's-complement implementations, except
6486         for debugging environments that deliberately trap on integer
6487         overflow (e.g., gcc -ftrapv).
6488
6489         * lib/mktime.c (WRAPV): New macro.
6490         (SHR): Also check that long_int and time_t shift right in the
6491         usual way, before using the fast-but-unportable method.
6492         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6493         used.  The code already assumed two's complement, so there's
6494         no need to test for alternatives.  All uses removed.
6495         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6496         the C standard.  Problem reported by Rich Felker in
6497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6498         (twos_complement_arithmetic): Also check long_int and time_t.
6499         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6500         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6501         (__mktime_internal): Avoid integer overflow with unary subtraction
6502         in two instances where -1 - X is an adequate replacement for -X,
6503         since the calculations are approximate.
6504
6505 2011-01-29  Eric Blake  <eblake@redhat.com>
6506
6507         mktime: avoid infinite loop
6508         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6509         type; behavior is still undefined but portable to all known targets.
6510         Reported by Rich Felker.
6511
6512 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6513
6514         rename, unlink, same-inode: Relicense.
6515         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6516         * modules/unlink (License): Likewise.
6517         * modules/same-inode (License): Likewise.
6518
6519 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6520
6521         mktime: avoid problems on NetBSD 5 / i386
6522         * lib/mktime.c (long_int): New type.  This works around a problem
6523         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6524         but time_t is 64 bits, and where I expect the existing code is
6525         wrong in some cases.
6526         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6527         (ydhms_diff): Bring back the compile-time check for wide-enough
6528         year and yday.
6529
6530         mktime: fix misspelling in comment
6531         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6532         This merges all recent glibc changes of importance.
6533
6534 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6535
6536         move-if-change: cope with concurrent mv of identical file.
6537         * build-aux/move-if-change (CMPPROG): Accept environment
6538         variable as an override for `cmp'.
6539         (usage): Document CMPPROG.
6540         Adjust comparison to drop stdout.  Cope with failure of mv if
6541         the target file exists and is identical to the source, for
6542         parallel builds.
6543         Report from H.J. Lu against binutils in PR binutils/12283.
6544
6545 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6546
6547         * users.txt: Mention sharutils.
6548
6549 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6550
6551         * users.txt: Mention OATH Toolkit.
6552
6553 2011-01-27  Bruno Haible  <bruno@clisp.org>
6554
6555         Prepare for supporting FreeBSD 10.
6556         * build-aux/config.libpath: Remove handling of freebsd1*.
6557
6558 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6559
6560         Prepare for supporting FreeBSD 10.
6561         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6562         match FreeBSD 10.0.
6563
6564 2011-01-27  Bruno Haible  <bruno@clisp.org>
6565
6566         vma-iter, get-rusage-as: Add OpenBSD support.
6567         * modules/vma-iter (configure.ac): Test for mquery.
6568         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6569         * lib/vma-iter.c: Include <sys/mman.h>.
6570         (vma_iterate): Add an implementation based on mquery().
6571         * lib/resource-ext.h (get_rusage_as): Update comments.
6572         * lib/get-rusage-as.c: Likewise.
6573         * lib/get-rusage-data.c: Likewise.
6574
6575 2011-01-26  Karl Berry  <karl@gnu.org>
6576
6577         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6578         variables to make it easier to override the makeinfo program used.
6579
6580 2011-01-26  Eric Blake  <eblake@redhat.com>
6581
6582         fcntl: work around Haiku F_DUPFD bugs
6583         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6584         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6585         cloexec bit on duplication.
6586         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6587
6588 2011-01-26  Bruno Haible  <bruno@clisp.org>
6589
6590         Enable memory leak tests on AIX.
6591         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6592         * tests/test-fprintf-posix3.c (main): Likewise.
6593
6594 2011-01-26  Bruno Haible  <bruno@clisp.org>
6595
6596         Tests for module 'get-rusage-data'.
6597         * modules/get-rusage-data-tests: New file.
6598         * tests/test-get-rusage-data.c: New file.
6599
6600         New module 'get-rusage-data'.
6601         * lib/resource-ext.h (get_rusage_data): New declaration.
6602         * lib/get-rusage-data.c: New file.
6603         * modules/get-rusage-data: New file.
6604
6605 2011-01-25  Bruno Haible  <bruno@clisp.org>
6606
6607         get-rusage-as: Allow for easier testing.
6608         * lib/resource-ext.h (get_rusage_as): Add comment.
6609         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6610         (main): New function for interactive testing.
6611
6612 2011-01-25  Bruno Haible  <bruno@clisp.org>
6613
6614         vma-iter: Treat Haiku like BeOS.
6615         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6616         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6617
6618 2011-01-25  Eric Blake  <eblake@redhat.com>
6619
6620         c-stack: fix regression on cygwin when libsigsegv is present
6621         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6622
6623 2011-01-24  Bruno Haible  <bruno@clisp.org>
6624
6625         vma-iter: Avoid empty intervals.
6626         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6627         on an empty interval.
6628
6629 2011-01-24  Jim Meyering  <meyering@redhat.com>
6630
6631         u64: remove unnecessary #include
6632         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6633
6634 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6635
6636         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6637         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6638
6639 2011-01-23  Bruno Haible  <bruno@clisp.org>
6640
6641         New module 'vma-iter'.
6642         * lib/vma-iter.h: New file.
6643         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6644         * modules/vma-iter: New file.
6645         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6646         for get_rusage_as_via_iterator.
6647         (vma_iterate_callback): New function.
6648         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6649         * modules/get-rusage-as (Depends-on): Add vma-iter.
6650
6651 2011-01-23  Bruno Haible  <bruno@clisp.org>
6652
6653         uninorm: Tweak includes.
6654         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6655         Reported by Jim Meyering.
6656
6657 2011-01-23  Bruno Haible  <bruno@clisp.org>
6658
6659         get-rusage-as: Improve on NetBSD.
6660         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6661         /proc, like on FreeBSD.
6662
6663 2011-01-23  Jim Meyering  <meyering@redhat.com>
6664
6665         xreadlink.h: remove unnecessary #include
6666         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6667
6668         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6669         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6670
6671 2011-01-23  Bruno Haible  <bruno@clisp.org>
6672
6673         get-rusage-as: Fix bug.
6674         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6675         original limit when aborting the first loop.
6676
6677 2011-01-23  Bruno Haible  <bruno@clisp.org>
6678
6679         wctype: Ensure valid C syntax.
6680         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6681         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6682
6683 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6684
6685         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6687         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6688         as they are needed only for configure's test case.
6689         This removes two unnecessary symbols from config.h.
6690
6691         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6692         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6693         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6694         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6695         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6696         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6697         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6698         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6699         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6700         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6701         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6703         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6704         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6705         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6706         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6707         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6708         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6709
6710 2011-01-21  Eric Blake  <eblake@redhat.com>
6711
6712         maintainer-makefile: work with older git for submodule check
6713         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6714         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6715         Reported by Matthias Bolte.
6716
6717         bootstrap: minor portability fixes
6718         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6719         (usage): Omit leading capital and trailing . on help phrases, per
6720         GNU Coding Standards.
6721         (check_versions, top level): Prefix messages with script name.
6722
6723 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6724
6725         bootstrap: support --no-git option
6726         * build-aux/bootstrap: Add --no-git option, to be used when
6727         --gnulib-srcdir points to the exact desired checkout.
6728
6729 2011-01-21  Eric Blake  <eblake@redhat.com>
6730
6731         strerror_r-posix: work with glibc 2.13
6732         * lib/strerror_r.c (strerror_r): Fix return type.
6733
6734 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6735             Bruno Haible  <bruno@clisp.org>
6736
6737         uN_strstr: New unit tests.
6738         * modules/unistr/u8-strstr-tests: New file.
6739         * modules/unistr/u16-strstr-tests: New file.
6740         * modules/unistr/u32-strstr-tests: New file.
6741         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6742         * tests/unistr/test-u8-strstr.c: New file.
6743         * tests/unistr/test-u16-strstr.c: New file.
6744         * tests/unistr/test-u32-strstr.c: New file.
6745
6746 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6747             Bruno Haible  <bruno@clisp.org>
6748
6749         Make uN_strstr functions O(n) worst-case.
6750         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6751         16-bit and 32-bit unit cases, use the unibyte algorithm from
6752         lib/mbsstr.c.
6753         * lib/unistr/u8-strstr.c: Include <string.h>.
6754         (UNIT_IS_UINT8_T): New macro.
6755         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6756         (U_STRLEN, U_STRNLEN): New macros.
6757         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6758         (U_STRLEN, U_STRNLEN): New macros.
6759         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6760         (configure.ac): Update required libunistring version.
6761         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6762         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6763         malloca.
6764         (configure.ac): Update required libunistring version.
6765         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6766         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6767         malloca.
6768         (configure.ac): Update required libunistring version.
6769
6770 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6771             Bruno Haible  <bruno@clisp.org>
6772
6773         Prepare for faster uN_strstr functions.
6774         * lib/str-kmp.h: Support definable UNITs.
6775         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6776         needle_len argument.
6777         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6778         * lib/mbscasestr.c (mbscasestr): Likewise.
6779
6780 2011-01-21  Pádraig Brady <P@draigBrady.com>
6781
6782         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6783         * tests/test-malloca.c (main): Unset the environment variable
6784         to greatly speed up the test.
6785         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6786         * modules/malloca-tests: Depend on unsetenv.
6787
6788 2011-01-21  Pádraig Brady <P@draigBrady.com>
6789
6790         ignore-value: remove stdint dependency
6791         * lib/ignore-value.h: Remove <stdint.h>
6792         * modules/ignore-value: Remove stdint dependency.
6793
6794 2011-01-21  Jim Meyering  <meyering@redhat.com>
6795
6796         maint.mk: adjust variable name to be consistent with other gl_ vars
6797         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6798         to be lower case.
6799
6800 2011-01-20  Jim Meyering  <meyering@redhat.com>
6801
6802         maint.mk: make "check" depend on public-submodule-commit by default
6803         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6804
6805 2011-01-20  Bruno Haible  <bruno@clisp.org>
6806
6807         mbfile, mbiter: Complete change from 2008-12-21.
6808         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6809         * m4/mbiter.m4 (gl_MBITER): Likewise.
6810
6811 2011-01-20  Jim Meyering  <meyering@redhat.com>
6812
6813         init.sh: insert space between each function name and "()"
6814         * tests/init.sh: Make it a little easier to see that a function's
6815         name is "warn_", and not "warn" when looking at the first part of
6816         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6817
6818 2011-01-20  Jim Meyering  <meyering@redhat.com>
6819
6820         mountlist: clean up code formatting
6821         * lib/mountlist.c (read_file_system_list): Split a long line,
6822         correct bracing style, use NULL in place of "(struct statfs *)0",
6823         don't parenthesize return value, add spaces around "=" and after
6824         ";-in-for-stmt".
6825
6826 2011-01-14  Markus Duft <mduft@gentoo.org>
6827
6828         mountlist: add support for Interix
6829         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6830         Apply statvfs to all entries of /dev/fs.
6831         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6832         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6833
6834 2011-01-20  Jim Meyering  <meyering@redhat.com>
6835
6836         maint.mk: improve the public-submodule-commit rule
6837         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6838         to suppress printing of its commands... unless V=1.
6839         Add git submodule's --quiet option to suppress printing of e.g.,
6840         "Entering gnulib" output.
6841         "cd" into $(srcdir) before running git submodule.
6842
6843 2011-01-20  Bruno Haible  <bruno@clisp.org>
6844
6845         include_next: Fix bug introduced on 2011-01-18.
6846         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6847         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6848         ac_cv_header_... variable if the second argument is not 'check'.
6849         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6850         gl_NEXT_HEADERS_INTERNAL.
6851
6852 2011-01-20  Bruno Haible  <bruno@clisp.org>
6853
6854         Allow the user to avoid the GNULIB_TEST_* macros.
6855         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6856         Suggested by Paul Eggert.
6857
6858 2011-01-14  Jim Meyering  <meyering@redhat.com>
6859
6860         bootstrap: avoid failure when there is no .gitmodules file
6861         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6862         has been assigned to, even when its value is the empty string.
6863         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6864         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6865         Reported by John W. Eaton <jwe@gnu.org>.
6866
6867 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6868
6869         assume <ctype.h>, ..., <time.h> exist
6870         For years gnulib has been assuming the existence of the headers
6871         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6872         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6873         them, since they don't appear to be needed.
6874         * README (Portability guidelines): Document this.
6875         * lib/flock.c: Assume <fcntl.h> exists.
6876         * lib/regex_internal.h: Assume <locale.h> exists.
6877         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6878         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6879         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6880         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6881         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6882         * m4/regex.m4 (gl_REGEX): Likewise.
6883         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6884         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6885         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6886         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6887         * tests/test-argp.c: Likewise.
6888         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6889
6890         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6891         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6892         AA_APPLE_UNIVERSAL_BUILD.  See
6893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6894         * NEWS: Document this.
6895
6896 2011-01-19  Eric Blake  <eblake@redhat.com>
6897
6898         c-stack: assume stack overflow if SA_SIGINFO unsupported
6899         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6900         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6901         sigaction will work.
6902         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6903         behavior match Linux.
6904         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6905
6906         stdbool-tests: accomodate Haiku
6907         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6908
6909         binary-io: fix O_TEXT on Haiku
6910         * modules/binary-io (Depends-on): Add fcntl-h.
6911         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6912         than blindly undefining O_TEXT.
6913         Reported by Scott McCreary.
6914
6915 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6916
6917         include_next: do not check for standard headers like stddef.h
6918
6919         I found this problem when modifying Emacs to use gnulib.
6920         I noticed that it added HAVE_STDDEF_H to config.h, even though
6921         gnulib always assumes <stddef.h> exists as per README and this
6922         symbol is unnecessary.
6923         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6924         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6925         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6926         faster for headers like stddef.h that are known to exist.
6927         (gl_CHECK_NEXT_HEADERS): Use it.
6928         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6929         rather than gl_CHECK_NEXT_HEADERS.
6930         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6931         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6932
6933 2011-01-18  Eric Blake  <eblake@redhat.com>
6934
6935         ansi-c++-opt: skip C++ dependency style if C++ is unused
6936         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6937         tests when we know C++ compilation is not desired.
6938         Reported by Scott McCreary.
6939
6940 2011-01-18  Bruno Haible  <bruno@clisp.org>
6941
6942         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6943         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6944         (main): Perform test also when getrlimit and setrlimit don't exist or
6945         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6946         limiting the address space size using setrlimit, compare the address
6947         space size before and after the the test.
6948         * tests/test-dprintf-posix2.c: Likewise.
6949         * tests/test-fprintf-posix3.sh: Update skip messages.
6950         * tests/test-dprintf-posix2.sh: Likewise.
6951         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6952         * modules/dprintf-posix-tests (Depends-on): Likewise.
6953         Reported by Bruce Korb <bkorb@gnu.org> and
6954         Gary V. Vaughan <gary@gnu.org>.
6955
6956 2011-01-18  Bruno Haible  <bruno@clisp.org>
6957
6958         get-rusage-as: Improvement for Cygwin.
6959         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6960         areas that are merely reserved.
6961
6962 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6963
6964         strftime: remove dependencies on multibyte modules
6965
6966         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6967         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6968         only if __osf__ is defined, and I suspect OSF doesn't need these
6969         other modules.  If my guess is wrong, we'll need to come up with a
6970         variant of strftime that doesn't need the multibyte modules.
6971
6972         I discovered this problem when attempting modify Emacs to use the
6973         strftime module.  With the previous gnulib, this caused Emacs to
6974         need 31 new files, ranging from lib/config.charset to
6975         m4/wint_t.m4.  This was overkill and I expect would be offputting
6976         to the Emacs maintainers.  After this change, only 6 new files are
6977         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6978         stdbool.m4, and tm_gmtoff.m4.
6979
6980         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6981         Suggested by Bruno Haible in
6982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6983         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6984         and do not check for wchar.h.
6985         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6986         (Depends-on): Remove mbrlen, mbsinit, wchar.
6987
6988 2011-01-18  Bruno Haible  <bruno@clisp.org>
6989
6990         Tests for module 'get-rusage-as'.
6991         * modules/get-rusage-as-tests: New file.
6992         * tests/test-get-rusage-as.c: New file.
6993
6994         New module 'get-rusage-as'.
6995         * modules/get-rusage-as: New file.
6996         * lib/resource-ext.h: New file.
6997         * lib/get-rusage-as.c: New file.
6998
6999 2011-01-17  Eric Blake  <eblake@redhat.com>
7000
7001         sigaction: relax license from LGPLv3+ to LGPLv2+
7002         * modules/sigaction (License): Relax to LGPLv2+.
7003
7004 2011-01-14  Bruno Haible  <bruno@clisp.org>
7005
7006         filemode: Make function declarations usable in C++ mode.
7007         * lib/filemode.h: Enclose function declarations in extern "C" block.
7008         Reported by John W. Eaton <jwe@gnu.org>.
7009
7010 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7011
7012         save-cwd: no longer include "xgetcwd.h"
7013         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7014         This avoids a compilation failure in projects that use save-cwd
7015         without also using the xgetcwd module.
7016
7017 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7018
7019         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7020         This is so that a program like Emacs, which needs only dtoastr,
7021         does not have to bother with distributing and compiling ftoastr
7022         and ldtoastr.
7023         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7024         * modules/dtoastr, modules/ldtoastr: New files.
7025         * modules/ftoastr: Now works just for 'float'.
7026         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7027         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7028         dtoastr.c, ldtoastr.c.
7029
7030 2011-01-11  Jim Meyering  <meyering@redhat.com>
7031
7032         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7033         There is no need to work around the lack of the fchdir function,
7034         since gnulib can now provide a replacement when required.
7035         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7036         * modules/save-cwd (Depends-on): Add fchdir.
7037
7038 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7039
7040         openat, save-cwd: avoid xmalloc
7041
7042         This removes a direct (but undocumented) dependency of openat on
7043         xalloc, along with an indirect dependency via save-cwd.  It also
7044         removes a dependency of save-cwd on xgetcwd, and thereby
7045         indirectly on xalloc.  This change causes the openat substitute
7046         to fall back on save_cwd when memory is tight, and for save_cwd to
7047         fail instead of dying when memory is tight, but that's good enough.
7048         Problem and initial idea for fix reported by Bastien Roucaries in
7049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7050
7051         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7052         xalloc.h (for xmalloc).
7053         (openat_proc_name): Use malloc, not xmalloc.
7054         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7055         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7056
7057         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7058         This avoids heap allocation for file names whose lengths are in
7059         the range 512..1023, with the upper bound increasing to at most
7060         4031 depending on the platform's PATH_MAX.  (We do not want
7061         pathmax.h here as it might supply a non-constant PATH_MAX.)
7062         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7063         Perhaps they should be moved to malloca.h?
7064         (OPENAT_BUFFER_SIZE): Use them.
7065
7066 2011-01-10  Bruno Haible  <bruno@clisp.org>
7067
7068         doc: Update users.txt.
7069         * users.txt: Add recutils.
7070
7071 2011-01-09  Karl Berry  <karl@gnu.org>
7072
7073         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7074
7075         * doc/configmake.texi: New file.
7076         * doc/gnulib.texi: Include it.
7077         * modules/configmake: Move documentation from here.
7078
7079 2011-01-09  Bruno Haible  <bruno@clisp.org>
7080
7081         Update to Unicode 6.0.0.
7082         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7083         (get_lbp): Update for Unicode 6.0.0.
7084         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7085         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7086         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7087         U+11001, U+11038..U+11046. Remove U+06DE.
7088         (uc_width): Fix bounds of planes.
7089         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7090         lib/uniwidth/width.c.
7091         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7092         trailing whitespace removed.
7093         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7094         without comments, but with the original copyright notice.
7095         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7096         * lib/unicase/ignorable.h: Likewise.
7097         * lib/unicase/tocasefold.h: Likewise.
7098         * lib/unicase/tolower.h: Likewise.
7099         * lib/unicase/totitle.h: Likewise.
7100         * lib/unicase/toupper.h: Likewise.
7101         * lib/unictype/bidi_of.h: Likewise.
7102         * lib/unictype/blocks.h: Likewise.
7103         * lib/unictype/categ_C.h: Likewise.
7104         * lib/unictype/categ_Cn.h: Likewise.
7105         * lib/unictype/categ_L.h: Likewise.
7106         * lib/unictype/categ_Ll.h: Likewise.
7107         * lib/unictype/categ_Lm.h: Likewise.
7108         * lib/unictype/categ_Lo.h: Likewise.
7109         * lib/unictype/categ_Lu.h: Likewise.
7110         * lib/unictype/categ_M.h: Likewise.
7111         * lib/unictype/categ_Mc.h: Likewise.
7112         * lib/unictype/categ_Me.h: Likewise.
7113         * lib/unictype/categ_Mn.h: Likewise.
7114         * lib/unictype/categ_N.h: Likewise.
7115         * lib/unictype/categ_Nd.h: Likewise.
7116         * lib/unictype/categ_No.h: Likewise.
7117         * lib/unictype/categ_P.h: Likewise.
7118         * lib/unictype/categ_Po.h: Likewise.
7119         * lib/unictype/categ_S.h: Likewise.
7120         * lib/unictype/categ_Sc.h: Likewise.
7121         * lib/unictype/categ_Sk.h: Likewise.
7122         * lib/unictype/categ_Sm.h: Likewise.
7123         * lib/unictype/categ_So.h: Likewise.
7124         * lib/unictype/categ_of.h: Likewise.
7125         * lib/unictype/combining.h: Likewise.
7126         * lib/unictype/ctype_alnum.h: Likewise.
7127         * lib/unictype/ctype_alpha.h: Likewise.
7128         * lib/unictype/ctype_graph.h: Likewise.
7129         * lib/unictype/ctype_lower.h: Likewise.
7130         * lib/unictype/ctype_print.h: Likewise.
7131         * lib/unictype/ctype_punct.h: Likewise.
7132         * lib/unictype/ctype_upper.h: Likewise.
7133         * lib/unictype/decdigit.h: Likewise.
7134         * lib/unictype/digit.h: Likewise.
7135         * lib/unictype/numeric.h: Likewise.
7136         * lib/unictype/pr_alphabetic.h: Likewise.
7137         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7138         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7139         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7140         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7141         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7142         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7143         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7144         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7145         * lib/unictype/pr_case_ignorable.h: Likewise.
7146         * lib/unictype/pr_cased.h: Likewise.
7147         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7148         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7149         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7150         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7151         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7152         * lib/unictype/pr_combining.h: Likewise.
7153         * lib/unictype/pr_composite.h: Likewise.
7154         * lib/unictype/pr_currency_symbol.h: Likewise.
7155         * lib/unictype/pr_decimal_digit.h: Likewise.
7156         * lib/unictype/pr_deprecated.h: Likewise.
7157         * lib/unictype/pr_format_control.h: Likewise.
7158         * lib/unictype/pr_grapheme_base.h: Likewise.
7159         * lib/unictype/pr_grapheme_extend.h: Likewise.
7160         * lib/unictype/pr_grapheme_link.h: Likewise.
7161         * lib/unictype/pr_id_continue.h: Likewise.
7162         * lib/unictype/pr_id_start.h: Likewise.
7163         * lib/unictype/pr_ideographic.h: Likewise.
7164         * lib/unictype/pr_lowercase.h: Likewise.
7165         * lib/unictype/pr_math.h: Likewise.
7166         * lib/unictype/pr_numeric.h: Likewise.
7167         * lib/unictype/pr_other_alphabetic.h: Likewise.
7168         * lib/unictype/pr_other_id_continue.h: Likewise.
7169         * lib/unictype/pr_other_math.h: Likewise.
7170         * lib/unictype/pr_punctuation.h: Likewise.
7171         * lib/unictype/pr_sentence_terminal.h: Likewise.
7172         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7173         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7174         * lib/unictype/pr_unified_ideograph.h: Likewise.
7175         * lib/unictype/pr_uppercase.h: Likewise.
7176         * lib/unictype/pr_xid_continue.h: Likewise.
7177         * lib/unictype/pr_xid_start.h: Likewise.
7178         * lib/unictype/scripts.h: Likewise.
7179         * lib/unictype/scripts_byname.gperf: Likewise.
7180         * lib/unictype/sy_java_ident.h: Likewise.
7181         * lib/unigbrk/gbrkprop.h: Likewise.
7182         * lib/unilbrk/lbrkprop1.h: Likewise.
7183         * lib/unilbrk/lbrkprop2.h: Likewise.
7184         * lib/uninorm/decomposition-table2.h: Likewise.
7185         * lib/uniwbrk/wbrkprop.h: Likewise.
7186         * tests/unicase/test-cased.c: Likewise.
7187         * tests/unicase/test-ignorable.c: Likewise.
7188         * tests/unicase/test-uc_tolower.c: Likewise.
7189         * tests/unicase/test-uc_totitle.c: Likewise.
7190         * tests/unicase/test-uc_toupper.c: Likewise.
7191         * tests/unictype/test-categ_C.c: Likewise.
7192         * tests/unictype/test-categ_Cn.c: Likewise.
7193         * tests/unictype/test-categ_L.c: Likewise.
7194         * tests/unictype/test-categ_Ll.c: Likewise.
7195         * tests/unictype/test-categ_Lm.c: Likewise.
7196         * tests/unictype/test-categ_Lo.c: Likewise.
7197         * tests/unictype/test-categ_Lu.c: Likewise.
7198         * tests/unictype/test-categ_M.c: Likewise.
7199         * tests/unictype/test-categ_Mc.c: Likewise.
7200         * tests/unictype/test-categ_Me.c: Likewise.
7201         * tests/unictype/test-categ_Mn.c: Likewise.
7202         * tests/unictype/test-categ_N.c: Likewise.
7203         * tests/unictype/test-categ_Nd.c: Likewise.
7204         * tests/unictype/test-categ_No.c: Likewise.
7205         * tests/unictype/test-categ_P.c: Likewise.
7206         * tests/unictype/test-categ_Po.c: Likewise.
7207         * tests/unictype/test-categ_S.c: Likewise.
7208         * tests/unictype/test-categ_Sc.c: Likewise.
7209         * tests/unictype/test-categ_Sk.c: Likewise.
7210         * tests/unictype/test-categ_Sm.c: Likewise.
7211         * tests/unictype/test-categ_So.c: Likewise.
7212         * tests/unictype/test-ctype_alnum.c: Likewise.
7213         * tests/unictype/test-ctype_alpha.c: Likewise.
7214         * tests/unictype/test-ctype_graph.c: Likewise.
7215         * tests/unictype/test-ctype_lower.c: Likewise.
7216         * tests/unictype/test-ctype_print.c: Likewise.
7217         * tests/unictype/test-ctype_punct.c: Likewise.
7218         * tests/unictype/test-ctype_upper.c: Likewise.
7219         * tests/unictype/test-decdigit.h: Likewise.
7220         * tests/unictype/test-digit.h: Likewise.
7221         * tests/unictype/test-numeric.h: Likewise.
7222         * tests/unictype/test-pr_alphabetic.c: Likewise.
7223         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7224         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7225         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7226         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7227         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7228         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7229         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7230         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7231         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7232         * tests/unictype/test-pr_cased.c: Likewise.
7233         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7234         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7235         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7236         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7237         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7238         * tests/unictype/test-pr_combining.c: Likewise.
7239         * tests/unictype/test-pr_composite.c: Likewise.
7240         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7241         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7242         * tests/unictype/test-pr_deprecated.c: Likewise.
7243         * tests/unictype/test-pr_format_control.c: Likewise.
7244         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7245         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7246         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7247         * tests/unictype/test-pr_id_continue.c: Likewise.
7248         * tests/unictype/test-pr_id_start.c: Likewise.
7249         * tests/unictype/test-pr_ideographic.c: Likewise.
7250         * tests/unictype/test-pr_lowercase.c: Likewise.
7251         * tests/unictype/test-pr_math.c: Likewise.
7252         * tests/unictype/test-pr_numeric.c: Likewise.
7253         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7254         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7255         * tests/unictype/test-pr_other_math.c: Likewise.
7256         * tests/unictype/test-pr_punctuation.c: Likewise.
7257         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7258         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7259         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7260         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7261         * tests/unictype/test-pr_uppercase.c: Likewise.
7262         * tests/unictype/test-pr_xid_continue.c: Likewise.
7263         * tests/unictype/test-pr_xid_start.c: Likewise.
7264         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7265         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7266         changes.
7267         * lib/unictype/categ_Cc.h: Likewise.
7268         * lib/unictype/categ_Cf.h: Likewise.
7269         * lib/unictype/categ_Co.h: Likewise.
7270         * lib/unictype/categ_Cs.h: Likewise.
7271         * lib/unictype/categ_Lt.h: Likewise.
7272         * lib/unictype/categ_Nl.h: Likewise.
7273         * lib/unictype/categ_Pc.h: Likewise.
7274         * lib/unictype/categ_Pd.h: Likewise.
7275         * lib/unictype/categ_Pe.h: Likewise.
7276         * lib/unictype/categ_Pf.h: Likewise.
7277         * lib/unictype/categ_Pi.h: Likewise.
7278         * lib/unictype/categ_Ps.h: Likewise.
7279         * lib/unictype/categ_Z.h: Likewise.
7280         * lib/unictype/categ_Zl.h: Likewise.
7281         * lib/unictype/categ_Zp.h: Likewise.
7282         * lib/unictype/categ_Zs.h: Likewise.
7283         * lib/unictype/ctype_blank.h: Likewise.
7284         * lib/unictype/ctype_cntrl.h: Likewise.
7285         * lib/unictype/ctype_digit.h: Likewise.
7286         * lib/unictype/ctype_space.h: Likewise.
7287         * lib/unictype/ctype_xdigit.h: Likewise.
7288         * lib/unictype/mirror.h: Likewise.
7289         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7290         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7291         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7292         * lib/unictype/pr_bidi_control.h: Likewise.
7293         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7294         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7295         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7296         * lib/unictype/pr_bidi_pdf.h: Likewise.
7297         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7298         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7299         * lib/unictype/pr_dash.h: Likewise.
7300         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7301         * lib/unictype/pr_diacritic.h: Likewise.
7302         * lib/unictype/pr_extender.h: Likewise.
7303         * lib/unictype/pr_hex_digit.h: Likewise.
7304         * lib/unictype/pr_hyphen.h: Likewise.
7305         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7306         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7307         * lib/unictype/pr_ignorable_control.h: Likewise.
7308         * lib/unictype/pr_iso_control.h: Likewise.
7309         * lib/unictype/pr_join_control.h: Likewise.
7310         * lib/unictype/pr_left_of_pair.h: Likewise.
7311         * lib/unictype/pr_line_separator.h: Likewise.
7312         * lib/unictype/pr_logical_order_exception.h: Likewise.
7313         * lib/unictype/pr_non_break.h: Likewise.
7314         * lib/unictype/pr_not_a_character.h: Likewise.
7315         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7316         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7317         * lib/unictype/pr_other_id_start.h: Likewise.
7318         * lib/unictype/pr_other_lowercase.h: Likewise.
7319         * lib/unictype/pr_other_uppercase.h: Likewise.
7320         * lib/unictype/pr_paired_punctuation.h: Likewise.
7321         * lib/unictype/pr_paragraph_separator.h: Likewise.
7322         * lib/unictype/pr_pattern_syntax.h: Likewise.
7323         * lib/unictype/pr_pattern_white_space.h: Likewise.
7324         * lib/unictype/pr_private_use.h: Likewise.
7325         * lib/unictype/pr_quotation_mark.h: Likewise.
7326         * lib/unictype/pr_radical.h: Likewise.
7327         * lib/unictype/pr_soft_dotted.h: Likewise.
7328         * lib/unictype/pr_space.h: Likewise.
7329         * lib/unictype/pr_titlecase.h: Likewise.
7330         * lib/unictype/pr_variation_selector.h: Likewise.
7331         * lib/unictype/pr_white_space.h: Likewise.
7332         * lib/unictype/pr_zero_width.h: Likewise.
7333         * lib/unictype/sy_c_ident.h: Likewise.
7334         * lib/unictype/sy_c_whitespace.h: Likewise.
7335         * lib/unictype/sy_java_whitespace.h: Likewise.
7336         * lib/uninorm/composition-table.gperf: Likewise.
7337         * lib/uninorm/decomposition-table1.h: Likewise.
7338         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7339         LB8.
7340         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7341         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7342         * modules/unictype/*: Bump version number of expected libunistring
7343         version.
7344
7345 2011-01-09  Bruno Haible  <bruno@clisp.org>
7346
7347         Update to Unicode 5.2.0.
7348         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7349         trailing whitespace removed.
7350
7351 2011-01-09  Bruno Haible  <bruno@clisp.org>
7352
7353         New Unicode character properties, from Unicode 5.2.0.
7354         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7355         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7356         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7357         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7358         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7359         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7360         uc_is_property_cased, uc_is_property_case_ignorable,
7361         uc_is_property_changes_when_lowercased,
7362         uc_is_property_changes_when_uppercased,
7363         uc_is_property_changes_when_titlecased,
7364         uc_is_property_changes_when_casefolded,
7365         uc_is_property_changes_when_casemapped): New declarations.
7366         * lib/unictype/pr_byname.gperf: Add the new properties.
7367         * modules/unictype/property-byname (Depends-on): Depend on the new
7368         properties modules.
7369         * modules/unictype/property-all (Depends-on): Likewise.
7370         * MODULES.html.sh (Unicode string functions): Add
7371         unictype/property-case-ignorable, unictype/property-cased,
7372         unictype/property-changes-when-casefolded,
7373         unictype/property-changes-when-casemapped,
7374         unictype/property-changes-when-lowercased,
7375         unictype/property-changes-when-titlecased,
7376         unictype/property-changes-when-uppercased.
7377
7378         New module 'unictype/property-changes-when-casemapped'.
7379         * modules/unictype/property-changes-when-casemapped: New file.
7380         * lib/unictype/pr_changes_when_casemapped.c: New file.
7381         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7382         generated by gen-uni-tables.
7383         * modules/unictype/property-changes-when-casemapped-tests: New file.
7384         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7385         automatically generated by gen-uni-tables.
7386
7387         New module 'unictype/property-changes-when-casefolded'.
7388         * modules/unictype/property-changes-when-casefolded: New file.
7389         * lib/unictype/pr_changes_when_casefolded.c: New file.
7390         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7391         generated by gen-uni-tables.
7392         * modules/unictype/property-changes-when-casefolded-tests: New file.
7393         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7394         automatically generated by gen-uni-tables.
7395
7396         New module 'unictype/property-changes-when-titlecased'.
7397         * modules/unictype/property-changes-when-titlecased: New file.
7398         * lib/unictype/pr_changes_when_titlecased.c: New file.
7399         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7400         generated by gen-uni-tables.
7401         * modules/unictype/property-changes-when-titlecased-tests: New file.
7402         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7403         automatically generated by gen-uni-tables.
7404
7405         New module 'unictype/property-changes-when-uppercased'.
7406         * modules/unictype/property-changes-when-uppercased: New file.
7407         * lib/unictype/pr_changes_when_uppercased.c: New file.
7408         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7409         generated by gen-uni-tables.
7410         * modules/unictype/property-changes-when-uppercased-tests: New file.
7411         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7412         automatically generated by gen-uni-tables.
7413
7414         New module 'unictype/property-changes-when-lowercased'.
7415         * modules/unictype/property-changes-when-lowercased: New file.
7416         * lib/unictype/pr_changes_when_lowercased.c: New file.
7417         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7418         generated by gen-uni-tables.
7419         * modules/unictype/property-changes-when-lowercased-tests: New file.
7420         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7421         automatically generated by gen-uni-tables.
7422
7423         New module 'unictype/property-case-ignorable'.
7424         * modules/unictype/property-case-ignorable: New file.
7425         * lib/unictype/pr_case_ignorable.c: New file.
7426         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7427         by gen-uni-tables.
7428         * modules/unictype/property-case-ignorable-tests: New file.
7429         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7430         generated by gen-uni-tables.
7431
7432         New module 'unictype/property-cased'.
7433         * modules/unictype/property-cased: New file.
7434         * lib/unictype/pr_cased.c: New file.
7435         * lib/unictype/pr_cased.h: New file, automatically generated by
7436         gen-uni-tables.
7437         * modules/unictype/property-cased-tests: New file.
7438         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7439         gen-uni-tables.
7440
7441 2011-01-09  Bruno Haible  <bruno@clisp.org>
7442
7443         Update to Unicode 5.2.0.
7444         * lib/gen-uni-tables.c (output_predicate, output_category,
7445         output_combclass, output_bidi_category, output_decimal_digit_test,
7446         output_decimal_digit, output_digit_test, output_digit,
7447         output_numeric_test, output_numeric, output_mirror, output_scripts,
7448         output_scripts_byname, output_blocks, output_ident_category): Fix
7449         comment header.
7450         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7451         get_wbp.
7452         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7453         items.
7454         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7455         Changes_When_Lowercased, Changes_When_Uppercased,
7456         Changes_When_Titlecased, Changes_When_Casefolded,
7457         Changes_When_Casemapped.
7458         (is_property_alphabetic, is_property_default_ignorable_code_point):
7459         Update for Unicode 5.2.0.
7460         (is_property_cased, is_property_case_ignorable,
7461         is_property_changes_when_lowercased,
7462         is_property_changes_when_uppercased,
7463         is_property_changes_when_titlecased,
7464         is_property_changes_when_casefolded,
7465         is_property_changes_when_casemapped): New functions.
7466         (output_properties): Output also the properties cased, case_ignorable,
7467         changes_when_lowercased, changes_when_uppercased,
7468         changes_when_titlecased, changes_when_casefolded,
7469         changes_when_casemapped.
7470         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7471         Unicode TR#11 revision 17 -> 19.
7472         (LBP_CP): New enumeration value.
7473         (LBP_*): Adjust values accordingly.
7474         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7475         TR#14 revision 22 -> 24.
7476         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7477         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7478         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7479         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7480         is_WBP_MIDLETTER.
7481         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7482         the code1 and code2 of each composition rule.
7483         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7484         * lib/unicase/ignorable.h: Likewise.
7485         * lib/unicase/tocasefold.h: Likewise.
7486         * lib/unicase/tolower.h: Likewise.
7487         * lib/unicase/totitle.h: Likewise.
7488         * lib/unicase/toupper.h: Likewise.
7489         * lib/unictype/bidi_of.h: Likewise.
7490         * lib/unictype/blocks.h: Likewise.
7491         * lib/unictype/categ_C.h: Likewise.
7492         * lib/unictype/categ_Cf.h: Likewise.
7493         * lib/unictype/categ_Cn.h: Likewise.
7494         * lib/unictype/categ_L.h: Likewise.
7495         * lib/unictype/categ_Ll.h: Likewise.
7496         * lib/unictype/categ_Lm.h: Likewise.
7497         * lib/unictype/categ_Lo.h: Likewise.
7498         * lib/unictype/categ_Lu.h: Likewise.
7499         * lib/unictype/categ_M.h: Likewise.
7500         * lib/unictype/categ_Mc.h: Likewise.
7501         * lib/unictype/categ_Mn.h: Likewise.
7502         * lib/unictype/categ_N.h: Likewise.
7503         * lib/unictype/categ_Nd.h: Likewise.
7504         * lib/unictype/categ_Nl.h: Likewise.
7505         * lib/unictype/categ_No.h: Likewise.
7506         * lib/unictype/categ_P.h: Likewise.
7507         * lib/unictype/categ_Pd.h: Likewise.
7508         * lib/unictype/categ_Po.h: Likewise.
7509         * lib/unictype/categ_S.h: Likewise.
7510         * lib/unictype/categ_Sc.h: Likewise.
7511         * lib/unictype/categ_So.h: Likewise.
7512         * lib/unictype/categ_of.h: Likewise.
7513         * lib/unictype/combining.h: Likewise.
7514         * lib/unictype/ctype_alnum.h: Likewise.
7515         * lib/unictype/ctype_alpha.h: Likewise.
7516         * lib/unictype/ctype_graph.h: Likewise.
7517         * lib/unictype/ctype_lower.h: Likewise.
7518         * lib/unictype/ctype_print.h: Likewise.
7519         * lib/unictype/ctype_punct.h: Likewise.
7520         * lib/unictype/ctype_upper.h: Likewise.
7521         * lib/unictype/decdigit.h: Likewise.
7522         * lib/unictype/digit.h: Likewise.
7523         * lib/unictype/numeric.h: Likewise.
7524         * lib/unictype/pr_alphabetic.h: Likewise.
7525         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7526         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7527         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7528         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7529         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7530         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7531         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7532         * lib/unictype/pr_combining.h: Likewise.
7533         * lib/unictype/pr_composite.h: Likewise.
7534         * lib/unictype/pr_currency_symbol.h: Likewise.
7535         * lib/unictype/pr_dash.h: Likewise.
7536         * lib/unictype/pr_decimal_digit.h: Likewise.
7537         * lib/unictype/pr_deprecated.h: Likewise.
7538         * lib/unictype/pr_diacritic.h: Likewise.
7539         * lib/unictype/pr_extender.h: Likewise.
7540         * lib/unictype/pr_grapheme_base.h: Likewise.
7541         * lib/unictype/pr_grapheme_extend.h: Likewise.
7542         * lib/unictype/pr_grapheme_link.h: Likewise.
7543         * lib/unictype/pr_id_continue.h: Likewise.
7544         * lib/unictype/pr_id_start.h: Likewise.
7545         * lib/unictype/pr_ideographic.h: Likewise.
7546         * lib/unictype/pr_ignorable_control.h: Likewise.
7547         * lib/unictype/pr_logical_order_exception.h: Likewise.
7548         * lib/unictype/pr_lowercase.h: Likewise.
7549         * lib/unictype/pr_numeric.h: Likewise.
7550         * lib/unictype/pr_other_alphabetic.h: Likewise.
7551         * lib/unictype/pr_punctuation.h: Likewise.
7552         * lib/unictype/pr_sentence_terminal.h: Likewise.
7553         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7554         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7555         * lib/unictype/pr_unified_ideograph.h: Likewise.
7556         * lib/unictype/pr_uppercase.h: Likewise.
7557         * lib/unictype/pr_xid_continue.h: Likewise.
7558         * lib/unictype/pr_xid_start.h: Likewise.
7559         * lib/unictype/pr_zero_width.h: Likewise.
7560         * lib/unictype/scripts.h: Likewise.
7561         * lib/unictype/scripts_byname.gperf: Likewise.
7562         * lib/unictype/sy_java_ident.h: Likewise.
7563         * lib/unigbrk/gbrkprop.h: Likewise.
7564         * lib/unilbrk/lbrkprop1.h: Likewise.
7565         * lib/unilbrk/lbrkprop2.h: Likewise.
7566         * lib/unilbrk/lbrktables.h: Likewise.
7567         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7568         LBP_CP. Implement rule LB30.
7569         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7570         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7571         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7572         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7573         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7574         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7575         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7576         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7577         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7578         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7579         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7580         bits instead of 16 bits in the code1 and code2 of each composition
7581         rule.
7582         (uc_composition): Update for Unicode 5.2.0.
7583         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7584         * lib/uninorm/decomposition-table2.h: Likewise.
7585         * lib/uniwbrk/wbrkprop.h: Likewise.
7586         * tests/unicase/test-cased.c: Likewise.
7587         * tests/unicase/test-ignorable.c: Likewise.
7588         * tests/unicase/test-uc_tolower.c: Likewise.
7589         * tests/unicase/test-uc_totitle.c: Likewise.
7590         * tests/unicase/test-uc_toupper.c: Likewise.
7591         * tests/unictype/test-categ_C.c: Likewise.
7592         * tests/unictype/test-categ_Cf.c: Likewise.
7593         * tests/unictype/test-categ_Cn.c: Likewise.
7594         * tests/unictype/test-categ_L.c: Likewise.
7595         * tests/unictype/test-categ_Ll.c: Likewise.
7596         * tests/unictype/test-categ_Lm.c: Likewise.
7597         * tests/unictype/test-categ_Lo.c: Likewise.
7598         * tests/unictype/test-categ_Lu.c: Likewise.
7599         * tests/unictype/test-categ_M.c: Likewise.
7600         * tests/unictype/test-categ_Mc.c: Likewise.
7601         * tests/unictype/test-categ_Mn.c: Likewise.
7602         * tests/unictype/test-categ_N.c: Likewise.
7603         * tests/unictype/test-categ_Nd.c: Likewise.
7604         * tests/unictype/test-categ_Nl.c: Likewise.
7605         * tests/unictype/test-categ_No.c: Likewise.
7606         * tests/unictype/test-categ_P.c: Likewise.
7607         * tests/unictype/test-categ_Pd.c: Likewise.
7608         * tests/unictype/test-categ_Po.c: Likewise.
7609         * tests/unictype/test-categ_S.c: Likewise.
7610         * tests/unictype/test-categ_Sc.c: Likewise.
7611         * tests/unictype/test-categ_So.c: Likewise.
7612         * tests/unictype/test-ctype_alnum.c: Likewise.
7613         * tests/unictype/test-ctype_alpha.c: Likewise.
7614         * tests/unictype/test-ctype_graph.c: Likewise.
7615         * tests/unictype/test-ctype_lower.c: Likewise.
7616         * tests/unictype/test-ctype_print.c: Likewise.
7617         * tests/unictype/test-ctype_punct.c: Likewise.
7618         * tests/unictype/test-ctype_upper.c: Likewise.
7619         * tests/unictype/test-decdigit.h: Likewise.
7620         * tests/unictype/test-digit.h: Likewise.
7621         * tests/unictype/test-numeric.h: Likewise.
7622         * tests/unictype/test-pr_alphabetic.c: Likewise.
7623         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7624         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7625         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7626         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7627         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7628         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7629         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7630         * tests/unictype/test-pr_combining.c: Likewise.
7631         * tests/unictype/test-pr_composite.c: Likewise.
7632         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7633         * tests/unictype/test-pr_dash.c: Likewise.
7634         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7635         * tests/unictype/test-pr_deprecated.c: Likewise.
7636         * tests/unictype/test-pr_diacritic.c: Likewise.
7637         * tests/unictype/test-pr_extender.c: Likewise.
7638         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7639         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7640         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7641         * tests/unictype/test-pr_id_continue.c: Likewise.
7642         * tests/unictype/test-pr_id_start.c: Likewise.
7643         * tests/unictype/test-pr_ideographic.c: Likewise.
7644         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7645         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7646         * tests/unictype/test-pr_lowercase.c: Likewise.
7647         * tests/unictype/test-pr_numeric.c: Likewise.
7648         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7649         * tests/unictype/test-pr_punctuation.c: Likewise.
7650         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7651         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7652         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7653         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7654         * tests/unictype/test-pr_uppercase.c: Likewise.
7655         * tests/unictype/test-pr_xid_continue.c: Likewise.
7656         * tests/unictype/test-pr_xid_start.c: Likewise.
7657         * tests/unictype/test-pr_zero_width.c: Likewise.
7658         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7659         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7660         changed behaviour: line breaking is now disallowed between a letter
7661         or '=' and '('.
7662         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7663         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7664         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7665         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7666         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7667         lib/uniwidth/width.c.
7668         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7669         without comments, but with the original copyright notice.
7670         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7671         changes.
7672         * lib/unictype/categ_Cc.h: Likewise.
7673         * lib/unictype/categ_Co.h: Likewise.
7674         * lib/unictype/categ_Cs.h: Likewise.
7675         * lib/unictype/categ_Lt.h: Likewise.
7676         * lib/unictype/categ_Me.h: Likewise.
7677         * lib/unictype/categ_Pc.h: Likewise.
7678         * lib/unictype/categ_Pe.h: Likewise.
7679         * lib/unictype/categ_Pf.h: Likewise.
7680         * lib/unictype/categ_Pi.h: Likewise.
7681         * lib/unictype/categ_Ps.h: Likewise.
7682         * lib/unictype/categ_Sk.h: Likewise.
7683         * lib/unictype/categ_Sm.h: Likewise.
7684         * lib/unictype/categ_Z.h: Likewise.
7685         * lib/unictype/categ_Zl.h: Likewise.
7686         * lib/unictype/categ_Zp.h: Likewise.
7687         * lib/unictype/categ_Zs.h: Likewise.
7688         * lib/unictype/ctype_blank.h: Likewise.
7689         * lib/unictype/ctype_cntrl.h: Likewise.
7690         * lib/unictype/ctype_digit.h: Likewise.
7691         * lib/unictype/ctype_space.h: Likewise.
7692         * lib/unictype/ctype_xdigit.h: Likewise.
7693         * lib/unictype/mirror.h: Likewise.
7694         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7695         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7696         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7697         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7698         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7699         * lib/unictype/pr_bidi_control.h: Likewise.
7700         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7701         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7702         * lib/unictype/pr_bidi_pdf.h: Likewise.
7703         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7704         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7705         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7706         * lib/unictype/pr_format_control.h: Likewise.
7707         * lib/unictype/pr_hex_digit.h: Likewise.
7708         * lib/unictype/pr_hyphen.h: Likewise.
7709         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7710         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7711         * lib/unictype/pr_iso_control.h: Likewise.
7712         * lib/unictype/pr_join_control.h: Likewise.
7713         * lib/unictype/pr_left_of_pair.h: Likewise.
7714         * lib/unictype/pr_line_separator.h: Likewise.
7715         * lib/unictype/pr_math.h: Likewise.
7716         * lib/unictype/pr_non_break.h: Likewise.
7717         * lib/unictype/pr_not_a_character.h: Likewise.
7718         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7719         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7720         * lib/unictype/pr_other_id_continue.h: Likewise.
7721         * lib/unictype/pr_other_id_start.h: Likewise.
7722         * lib/unictype/pr_other_lowercase.h: Likewise.
7723         * lib/unictype/pr_other_math.h: Likewise.
7724         * lib/unictype/pr_other_uppercase.h: Likewise.
7725         * lib/unictype/pr_paired_punctuation.h: Likewise.
7726         * lib/unictype/pr_paragraph_separator.h: Likewise.
7727         * lib/unictype/pr_pattern_syntax.h: Likewise.
7728         * lib/unictype/pr_pattern_white_space.h: Likewise.
7729         * lib/unictype/pr_private_use.h: Likewise.
7730         * lib/unictype/pr_quotation_mark.h: Likewise.
7731         * lib/unictype/pr_radical.h: Likewise.
7732         * lib/unictype/pr_soft_dotted.h: Likewise.
7733         * lib/unictype/pr_space.h: Likewise.
7734         * lib/unictype/pr_titlecase.h: Likewise.
7735         * lib/unictype/pr_variation_selector.h: Likewise.
7736         * lib/unictype/pr_white_space.h: Likewise.
7737         * lib/unictype/sy_c_ident.h: Likewise.
7738         * lib/unictype/sy_c_whitespace.h: Likewise.
7739         * lib/unictype/sy_java_whitespace.h: Likewise.
7740         * modules/uni*/*: Bump version number of expected libunistring version.
7741         Reported by Simon Josefsson.
7742
7743 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7744
7745         useless-if-before-free: fix typo in --help and make the internal,
7746         automatic version date update process work once again.
7747         --help output contained a NUL character instead of the
7748         backslash-zero that was intended.  Also, the "must lie within
7749         the first 8 lines" line is on line 9, and hence not getting
7750         automatically updated.
7751         * build-aux/useless-if-before-free: Fix the former by adding a
7752         backslash, and the latter by condensing the three lines of what-it-does
7753         to a single line, leaving one line of slack for the future.
7754
7755 2011-01-09  Bruno Haible  <bruno@clisp.org>
7756
7757         uniwidth/width: Fix width of U+1D173..U+1D17A.
7758         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7759         symbolic_width, output_width_property_test): New functions.
7760         (main): Invoke output_nonspacing_property, output_width_property_test.
7761         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7762         U+1D173..U+1D17A.
7763         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7764         1.
7765         * modules/uniwidth/*: Bump version number of expected libunistring
7766         version.
7767         * modules/unilbrk/*: Likewise.
7768
7769 2011-01-08  Bruno Haible  <bruno@clisp.org>
7770
7771         uninorm tests: Preserve copyright of Unicode data file.
7772         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7773         Mention modifications.
7774
7775 2011-01-08  Bruno Haible  <bruno@clisp.org>
7776
7777         gen-uni-tables: Prepare for Unicode 5.2.0.
7778         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7779         (debug_output_lbp, output_lbp): Update.
7780
7781 2011-01-08  Bruno Haible  <bruno@clisp.org>
7782
7783         unilbrk: Clarify gen-uni-tables.c code.
7784         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7785         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7786         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7787
7788 2011-01-07  Bruno Haible  <bruno@clisp.org>
7789
7790         strtod: Restore errno when successfully parsing Infinity or NaN.
7791         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7792         restore the original errno.
7793
7794 2011-01-07  Bruno Haible  <bruno@clisp.org>
7795
7796         remove test: Avoid failure on HP-UX 11.
7797         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7798
7799 2011-01-07  Bruno Haible  <bruno@clisp.org>
7800
7801         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7802         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7803         error code.
7804
7805 2011-01-07  Pádraig Brady <P@draigBrady.com>
7806
7807         ignore-value: fixup comments, and add Eric Blake
7808         as an author since he rewrote the macros.
7809         * lib/ignore-value.h (ignore_value):  State that
7810         we now support aggregates.  Also specify exactly
7811         when the GCC warn_unused_result feature was added.
7812
7813 2011-01-06  Eric Blake  <eblake@redhat.com>
7814
7815         ignore-value: support aggregate types
7816         * lib/ignore-value.h (ignore_value): Provide separate gcc
7817         definition.
7818         * modules/ignore-value-tests: New test module.
7819         * tests/test-ignore-value.c: New test.
7820
7821         maint.mk: improve sc_prohibit_strcmp regex
7822         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7823         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7824         definition of STRNEQ.
7825
7826         signal: work around Haiku issue with SIGBUS
7827         * lib/siglist.h: Add comment.
7828         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7829         strsignal's favoring of SIGSEGV.
7830         * tests/test-signal.c (main): Avoid test failure.
7831         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7832         Reported by Scott McCreary.
7833
7834         maint.mk: add pre-release check to ensure submodule commits are public
7835         * top/maint.mk (public-submodule-commit): New rule.
7836         (submodule-checks): New variable.
7837         (alpha beta stable): Depend on the variable.
7838
7839 2011-01-05  Pádraig Brady <P@draigBrady.com>
7840         and Jim Meyering  <meyering@redhat.com>
7841
7842         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7843         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7844         (ATTRIBUTE_DEPRECATED): Define.
7845         (_ignore_case): New function.
7846         (ignore_value): New macro, to replace the old function.
7847         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7848         * modules/ignore-value (Depends-on): Add stdint.
7849
7850 2011-01-04  Eric Blake  <eblake@redhat.com>
7851
7852         doc: regenerate INSTALL
7853         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7854         @firstparagraphindent support, now that autoconf dropped it.
7855         (INSTALL_PRELUDE): Reinstate old macro.
7856         * doc/install.texi: Resync from autoconf.
7857         * doc/INSTALL: Reflect recent autoconf update.
7858         * doc/INSTALL.ISO: Likewise.
7859         * doc/INSTALL.UTF-8: Likewise.
7860         Reported by Karl Berry.
7861
7862 2011-01-04  Bruce Korb  <address@hidden>
7863
7864         git-version-gen: avoid a sub-shell
7865         * build-aux/git-version-gen: Redirect stderr in `...` via
7866         "exec 2>...", rather than via an added sub-shell.
7867
7868 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7869
7870         git-version-gen: use (...) rather than sh -c '...'
7871         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7872         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7873
7874 2011-01-03  Jim Meyering  <meyering@redhat.com>
7875
7876         git-version-gen: convert leading TABs to spaces
7877         * build-aux/git-version-gen: Expand leading TABs.
7878
7879         git-version-gen: handle failed "git rev-list"
7880         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7881         from git and proceeding as if it had succeeded but printed no SHA1
7882         checksums, suppress the diagnostic and handle the failure.
7883         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7884
7885         git-version-gen: include command name in one more diagnostic
7886         * build-aux/git-version-gen: When the required .tarball-version file
7887         was missing or unreadable, you might see the diagnostic from "cat",
7888         but no trace of the name of the invoking script.  Now, you still see
7889         the diagnostic from cat, but also get one from "git-version-gen: ".
7890         Inspired by a patch from Bruce Korb.
7891
7892         update-copyright: adjust test to match changed code
7893         * tests/test-update-copyright.sh: Change test's expected output
7894         to match new actual output.
7895
7896 2011-01-02  Bruno Haible  <bruno@clisp.org>
7897
7898         getlogin_r: Avoid test failure on HP-UX 11.
7899         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7900         ERANGE when the second argument is zero.
7901         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7902         portability problem.
7903
7904 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7905
7906         * build-aux/update-copyright: doc Simon's changes
7907
7908 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7909
7910         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7911         environment variable.
7912
7913 2011-01-02  Bruno Haible  <bruno@clisp.org>
7914
7915         unigbrk: Avoid gcc warnings.
7916         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7917         unused variable.
7918         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7919         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7920         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7921         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7922         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7923         Change type of first argument to 'const char *'.
7924         (main): Remove unused variable.
7925         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7926         type of first argument to 'const char *'.
7927         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7928         Likewise.
7929         (main): Change type of variable 's'.
7930         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7931         to 'int'.
7932
7933 2011-01-02  Bruno Haible  <bruno@clisp.org>
7934
7935         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7936         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7937         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7938         bug.
7939         * lib/pwrite.c: Undo 2010-12-31 patch.
7940         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7941
7942 2011-01-02  Bruno Haible  <bruno@clisp.org>
7943
7944         pread: Fix test whether it works.
7945         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7946
7947 2011-01-02  Bruno Haible  <bruno@clisp.org>
7948
7949         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7950         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7951         ends in "6". Don't require a specific month name. Try also the locale
7952         names found on HP-UX 11 and Solaris 7.
7953
7954 2011-01-02  Bruno Haible  <bruno@clisp.org>
7955
7956         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7957         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7958         C linkage.
7959         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7960
7961 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7962
7963         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7964         for consistency, since the "cluster" term is not used elsewhere.
7965         * lib/unigbrk.in.h: Update name.
7966         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7967         * lib/unigbrk/u16-grapheme-next.c: Update name.
7968         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7969         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7970         * lib/unigbrk/u32-grapheme-next.c: Update name.
7971         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7972         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7973         * lib/unigbrk/u8-grapheme-next.c: Update name.
7974         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7975         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7976         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7977         Suggested by Bruno Haible.
7978
7979 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7980
7981         Remove module 'u8-grapheme-len' as too redundant with
7982         'u8-grapheme-next'.
7983         * modules/unigbrk/u8-grapheme-len: Delete file.
7984         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7985         * lib/unigbrk.in.h: Remove prototype for deleted function.
7986         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7987         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7988
7989         Remove module 'u16-grapheme-len' as too redundant with
7990         'u16-grapheme-next'.
7991         * modules/unigbrk/u16-grapheme-len: Delete file.
7992         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7993         * lib/unigbrk.in.h: Remove prototype for deleted function.
7994         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7995         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7996
7997         Remove module 'u32-grapheme-len' as too redundant with
7998         'u32-grapheme-next'.
7999         * modules/unigbrk/u32-grapheme-len: Delete file.
8000         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8001         * lib/unigbrk.in.h: Remove prototype for deleted function.
8002         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8003         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8004
8005         Suggested by Bruno Haible.
8006
8007 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8008
8009         * unigbrk.in.h: Fix typo: "ben" => "been".
8010         Reported by Bruno Haible.
8011
8012 2011-01-01  Jim Meyering  <meyering@redhat.com>
8013
8014         maint: update almost all copyright ranges to include 2011
8015         Run the new "make update-copyright" rule.
8016
8017 2011-01-01  Jim Meyering  <meyering@redhat.com>
8018
8019         maint: update-copyright: exempt doc/INSTALL*
8020         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8021         since they are generated.  Suggested by Bruno Haible.
8022
8023 2011-01-01  Jim Meyering  <meyering@redhat.com>
8024
8025         maint: refine the update-copyright rule
8026         * Makefile (update-copyright): Also exclude any file that includes
8027         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8028         code that merely generates the comment.
8029
8030 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8031
8032         New module 'u8-grapheme-len'.
8033         * modules/unigbrk/u8-grapheme-len: New file.
8034         * modules/unigbrk/u8-grapheme-len-tests: New file.
8035         * lib/unigbrk.in.h: Add prototype for new function.
8036         * lib/unigbrk/u8-grapheme-len.c: New file.
8037         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8038
8039         New module 'u16-grapheme-len'.
8040         * modules/unigbrk/u16-grapheme-len: New file.
8041         * modules/unigbrk/u16-grapheme-len-tests: New file.
8042         * lib/unigbrk.in.h: Add prototype for new function.
8043         * lib/unigbrk/u16-grapheme-len.c: New file.
8044         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8045
8046         New module 'u32-grapheme-len'.
8047         * modules/unigbrk/u32-grapheme-len: New file.
8048         * modules/unigbrk/u32-grapheme-len-tests: New file.
8049         * lib/unigbrk.in.h: Add prototype for new function.
8050         * lib/unigbrk/u32-grapheme-len.c: New file.
8051         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8052
8053         New module 'u8-grapheme-next'.
8054         * modules/unigbrk/u8-grapheme-next: New file.
8055         * modules/unigbrk/u8-grapheme-next-tests: New file.
8056         * lib/unigbrk.in.h: Add prototype for new function.
8057         * lib/unigbrk/u8-grapheme-next.c: New file.
8058         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8059
8060         New module 'u16-grapheme-next'.
8061         * modules/unigbrk/u16-grapheme-next: New file.
8062         * modules/unigbrk/u16-grapheme-next-tests: New file.
8063         * lib/unigbrk.in.h: Add prototype for new function.
8064         * lib/unigbrk/u16-grapheme-next.c: New file.
8065         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8066
8067         New module 'u32-grapheme-next'.
8068         * modules/unigbrk/u32-grapheme-next: New file.
8069         * modules/unigbrk/u32-grapheme-next-tests: New file.
8070         * lib/unigbrk.in.h: Add prototype for new function.
8071         * lib/unigbrk/u32-grapheme-next.c: New file.
8072         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8073
8074         New module 'u8-grapheme-prev'.
8075         * modules/unigbrk/u8-grapheme-prev: New file.
8076         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8077         * lib/unigbrk.in.h: Add prototype for new function.
8078         * lib/unigbrk/u8-grapheme-prev.c: New file.
8079         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8080
8081         New module 'u16-grapheme-prev'.
8082         * modules/unigbrk/u16-grapheme-prev: New file.
8083         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8084         * lib/unigbrk.in.h: Add prototype for new function.
8085         * lib/unigbrk/u16-grapheme-prev.c: New file.
8086         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8087
8088         New module 'u32-grapheme-prev'.
8089         * modules/unigbrk/u32-grapheme-prev: New file.
8090         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8091         * lib/unigbrk.in.h: Add prototype for new function.
8092         * lib/unigbrk/u32-grapheme-prev.c: New file.
8093         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8094
8095         New module 'u8-grapheme-breaks'.
8096         * modules/unigbrk/u8-grapheme-breaks: New file.
8097         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8098         * lib/unigbrk.in.h: Add prototype for new function.
8099         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8100         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8101
8102         New module 'u16-grapheme-breaks'.
8103         * modules/unigbrk/u16-grapheme-breaks: New file.
8104         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8105         * lib/unigbrk.in.h: Add prototype for new function.
8106         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8107         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8108
8109         New module 'u32-grapheme-breaks'.
8110         * modules/unigbrk/u32-grapheme-breaks: New file.
8111         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8112         * lib/unigbrk.in.h: Add prototype for new function.
8113         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8114         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8115
8116         New module 'ulc-grapheme-breaks'.
8117         * modules/unigbrk/ulc-grapheme-breaks: New file.
8118         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8119         * m4/locale-ar.m4: New file.
8120         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8121         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8122         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8123
8124 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8125
8126         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8127         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8128         modified how this file was generated before I initially submitted
8129         the module, but failed to regenerate it.  This meant that several
8130         of the level2 entries were wrong.
8131         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8132         Remove the division-by-2 that is folded into the table now that
8133         gbrkprop.h has been regenerated properly.  Now -1 entries are
8134         handled correctly.
8135
8136         New module 'unigbrk/uc-gbrk-prop-tests'.
8137         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8138         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8139         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8140         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8141
8142 2011-01-01  Bruno Haible  <bruno@clisp.org>
8143
8144         Avoid use of hexadecimal escapes.
8145         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8146         instead of hexadecimal escapes.
8147
8148 2011-01-01  Jim Meyering  <meyering@redhat.com>
8149
8150         maint: new rule to update copyright year ranges
8151         * Makefile (update-copyright): New rule.
8152
8153         maint: indent with TABs in Makefile
8154         * Makefile: Expand leading sequences of spaces to TABs
8155
8156         version-etc: update the copyright year it reports
8157         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8158
8159 2010-12-31  Bruno Haible  <bruno@clisp.org>
8160
8161         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8162         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8163         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8164         zero.
8165
8166 2010-12-31  Bruno Haible  <bruno@clisp.org>
8167
8168         pwrite: Work around HP-UX 11.11 bug.
8169         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8170         works and set REPLACE_PWRITE if not.
8171         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8172         function.
8173         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8174
8175 2010-12-31  Bruno Haible  <bruno@clisp.org>
8176
8177         pread: Work around HP-UX 11 bugs.
8178         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8179         and set REPLACE_PREAD if not.
8180         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8181
8182 2010-12-31  Eric Blake  <eblake@redhat.com>
8183
8184         nl_langinfo: fix YESEXPR on Irix 6.5
8185         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8186         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8187         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8188         it.
8189
8190 2010-12-31  Bruno Haible  <bruno@clisp.org>
8191
8192         iconv: Document HP-UX 11 bug.
8193         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8194
8195 2010-12-31  Bruno Haible  <bruno@clisp.org>
8196
8197         ldexpl: Fix link error on HP-UX 11.
8198         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8199         LDEXPL_LIBM, using $ISNANL_LIBM.
8200
8201 2010-12-31  Eric Blake  <eblake@redhat.com>
8202
8203         ftello: avoid compilation failure with SunStudio c89
8204         * lib/ftello.c (ftello): Use lseek, not llseek.
8205
8206         tests: avoid failing coreutils tests on cygwin
8207         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8208         (create_exe_shims_): Return 0 when skipping.
8209
8210 2010-12-31  Bruno Haible  <bruno@clisp.org>
8211
8212         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8213         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8214
8215 2010-12-31  Bruno Haible  <bruno@clisp.org>
8216
8217         waitpid: Fix link error in C++ mode.
8218         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8219
8220 2010-12-31  Bruno Haible  <bruno@clisp.org>
8221
8222         isnan: Use GCC built-ins when possible.
8223         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8224         __builtin_isnan.
8225         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8226         (isnan): Define using GCC built-ins for GCC >= 4.0.
8227
8228 2010-12-31  Bruno Haible  <bruno@clisp.org>
8229
8230         isnand: Fix mistake.
8231         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8232         __builtin_isnand.
8233
8234 2010-12-31  Bruno Haible  <bruno@clisp.org>
8235
8236         open: Avoid C++ error on HP-UX 11.
8237         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8238
8239 2010-12-31  Bruno Haible  <bruno@clisp.org>
8240
8241         time_r: Add missing declarations on HP-UX 11.
8242         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8243         instead of HAVE_LOCALTIME_R.
8244         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8245         HAVE_LOCALTIME_R always.
8246         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8247         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8248         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8249         HAVE_LOCALTIME_R.
8250         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8251         * doc/posix-functions/localtime_r.texi: Likewise.
8252
8253 2010-12-29  Eric Blake  <eblake@redhat.com>
8254
8255         mountlist: tweak previous commit
8256         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8257         Reported by Paul Eggert.
8258
8259         mountlist: fix local drive detection on cygwin
8260         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8261         that works for cygwin.
8262
8263 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8264
8265         ftoastr, snprintf: ftoastr + snprintf module
8266         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8267         since the snprintf module now should be good enough here.
8268         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8269         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8270         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8271         GNULIB_SNPRINTF only for the test directory, and the latter
8272         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8273         seems to suffice by itself.
8274
8275 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8276
8277         alloca: one step towards thread-safety
8278         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8279         need for a static variable.  All callers changed.  This does not
8280         make the alloca replacement thread-safe, but it's one step.
8281
8282         tests: minor indenting change
8283         * tests/init.sh: Sync from coreutils housekeeping patch
8284         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8285         to keep lines within 80 columns.
8286
8287 2010-12-28  Jim Meyering  <meyering@redhat.com>
8288
8289         regex: don't infloop on persistent failing calloc
8290         * lib/regexec.c (build_trtable): Return failure indication upon
8291         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8292         In glibc, this was fixed for version 2.13:
8293         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8294
8295 2010-12-28  Bruno Haible  <bruno@clisp.org>
8296             Paul Eggert <eggert@cs.ucla.edu>
8297
8298         linkat: Make implementation robust against system behaviour variations.
8299         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8300         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8301         way, and to -2 if it needs a generic runtime test.
8302         * lib/linkat.c (solaris_optimized_link_immediate,
8303         solaris_optimized_link_follow): New functions.
8304         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8305         (check_same_link): Use it.
8306
8307 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8308
8309         New module 'unigbrk/base'.
8310         * modules/unigbrk/base: New file.
8311         * lib/unigbrk.in.h: New file.
8312
8313         New module 'unigbrk/uc-gbrk-prop'.
8314         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8315         * modules/unigbrk/uc-gbrk-prop: New file.
8316         * lib/unigbrk/gbrkprop.h: New file.
8317         * lib/unigbrk/uc-gbrk-prop.c: New file.
8318
8319         New module 'unigbrk/uc-is-grapheme-break'.
8320         * modules/unigbrk/uc-is-grapheme-break: New file.
8321         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8322         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8323         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8324         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8325         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8326
8327         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8328
8329 2010-12-27  Bruno Haible  <bruno@clisp.org>
8330
8331         linkat test: Avoid failure on Solaris 11 2010-11.
8332         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8333
8334 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8335
8336         utimens: work around glibc rounding bug on more platforms
8337         * lib/utimens.c (fdutimens): Work around rounding bug even if
8338         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8339         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8340
8341 2010-12-27  Bruno Haible  <bruno@clisp.org>
8342
8343         select tests: Improve comments.
8344         * tests/test-select.c (do_select): Add comments.
8345
8346 2010-12-27  Bruno Haible  <bruno@clisp.org>
8347
8348         select tests: Safer way of handling timeout.
8349         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8350         at every invocation.
8351
8352 2010-12-27  Bruno Haible  <bruno@clisp.org>
8353
8354         select tests: Use 'bool' where appropriate.
8355         * tests/test-select.c (connect_to_socket): Change argument type to
8356         'bool'.
8357
8358 2010-12-27  Bruno Haible  <bruno@clisp.org>
8359
8360         select tests: Use existing modules.
8361         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8362         (configure.ac): Don't test for unistd.h.
8363         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8364         declared in <unistd.h>.
8365
8366 2010-12-27  Bruno Haible  <bruno@clisp.org>
8367
8368         mbrtowc: Work around a Solaris 7 bug.
8369         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8370         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8371         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8372         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8373         MBRTOWC_NULL_ARG1_BUG.
8374         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8375         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8376         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8377         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8378
8379 2010-12-27  Jim Meyering  <meyering@redhat.com>
8380
8381         read-file.c: tweak syntax
8382         * lib/read-file.c (fread_file): Remove space after "*" in function
8383         definitions.
8384
8385 2010-12-27  Bruno Haible  <bruno@clisp.org>
8386
8387         times test: Avoid gcc warnings on OSF/1.
8388         * tests/test-times.c (main): Cast printf arguments from clock_t to
8389         'long int'.
8390
8391 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8392
8393         utimens: work around glibc rounding bug on older Linux kernels
8394         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8395         on Linux with a glibc whose utimes might not work, then work
8396         around a longstanding glibc bug involving rounding rather than
8397         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8399
8400 2010-12-26  Bruno Haible  <bruno@clisp.org>
8401
8402         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8403         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8404         _GL_CXXALIAS_SYS.
8405         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8406
8407 2010-12-26  Bruno Haible  <bruno@clisp.org>
8408
8409         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8410         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8411         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8412         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8413         looking for the declaration.
8414         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8415         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8416         problem.
8417         * doc/posix-functions/inet_pton.texi: Likewise.
8418
8419 2010-12-26  Bruno Haible  <bruno@clisp.org>
8420
8421         arpa_inet: Use the common idioms with C++ support.
8422         * lib/arpa_inet.in.h: Include c++defs.h.
8423         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8424         support.
8425         * modules/arpa_inet (Depends-on): Add c++defs.
8426         (Makefile.am): Substitute the contents of c++defs.h.
8427         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8428         * modules/arpa_inet-c++-tests: New file.
8429         * tests/test-arpa_inet-c++.cc: New file.
8430
8431 2010-12-25  Bruno Haible  <bruno@clisp.org>
8432
8433         Fix more C++ link errors on Solaris 8.
8434         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8435         $(LIB_EACCESS).
8436         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8437         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8438         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8439         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8440         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8441
8442 2010-12-25  Bruno Haible  <bruno@clisp.org>
8443
8444         printf-posix: Fix link error when a non-GCC compiler is used.
8445         * lib/stdio.in.h (printf): When not using GCC, override printf
8446         correctly.
8447         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8448
8449 2010-12-25  Bruno Haible  <bruno@clisp.org>
8450
8451         strerror_r-posix: Update doc.
8452         * doc/posix-functions/strerror_r.texi: Update doc about the return
8453         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8454
8455 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8456
8457         utimens: simplify the logic of the previous change
8458         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8459         This should not affect whether the test succeeds or fails.
8460
8461         utimens: configure better on hosts with NFS clock skew
8462         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8463         uses the clock of the local host.  It might use the clock of the
8464         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8465         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8466
8467 2010-12-25  Bruno Haible  <bruno@clisp.org>
8468
8469         ptsname test: Avoid failure on Solaris.
8470         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8471         open a pseudo-terminal; don't use BSD-style ptys.
8472         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8473
8474 2010-12-25  Bruno Haible  <bruno@clisp.org>
8475
8476         ptsname: Avoid ERANGE failure on some systems.
8477         * lib/ptsname.c (buffer): Increase size.
8478
8479 2010-12-25  Bruno Haible  <bruno@clisp.org>
8480
8481         rename, renameat: Avoid test failures at NFS mounted locations.
8482         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8483         so that subsequent mkdir calls succeed.
8484
8485 2010-12-25  Bruno Haible  <bruno@clisp.org>
8486
8487         iswblank: Fix C++ link error on Solaris 8.
8488         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8489         _GL_FUNCDECL_SYS.
8490
8491 2010-12-25  Bruno Haible  <bruno@clisp.org>
8492
8493         unistd: Fix C++ link error on Solaris 8.
8494         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8495
8496 2010-12-25  Bruno Haible  <bruno@clisp.org>
8497
8498         readlink doc: Mention an old glibc bug.
8499         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8500
8501 2010-12-25  Bruno Haible  <bruno@clisp.org>
8502
8503         fcntl-h: Fix for use of C++ on glibc systems.
8504         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8505         also on glibc systems in C++ mode.
8506         Reported by Gary V. Vaughan <gary@gnu.org>.
8507
8508 2010-12-25  Bruno Haible  <bruno@clisp.org>
8509
8510         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8511         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8512
8513 2010-12-25  Bruno Haible  <bruno@clisp.org>
8514
8515         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8516         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8517         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8518         test whether truncl works according to ISO C 99 with IEC 60559.
8519         * m4/truncl-ieee.m4: New file.
8520         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8521         m4/signbit.m4.
8522         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8523
8524 2010-12-25  Bruno Haible  <bruno@clisp.org>
8525
8526         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8527         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8528         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8529         test whether ceill works according to ISO C 99 with IEC 60559.
8530         * m4/ceill-ieee.m4: New file.
8531         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8532         m4/signbit.m4.
8533         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8534
8535 2010-12-25  Bruno Haible  <bruno@clisp.org>
8536
8537         Ensure all prerequisites of <wchar.h> are included.
8538         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8539         before <wchar.h>.
8540         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8541         gl_MBRLEN_NUL_RETVAL): Likewise.
8542         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8543         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8544         AC_FUNC_MBRTOWC): Likewise.
8545         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8546         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8547         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8548         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8549         Likewise.
8550         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8551         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8552         (gl_WCHAR_H): Improve comments.
8553         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8554
8555 2010-12-25  Bruno Haible  <bruno@clisp.org>
8556
8557         strtok_r: Fix C syntax error in autoconf macro.
8558         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8559         characters in test program.
8560
8561 2010-12-24  Bruno Haible  <bruno@clisp.org>
8562
8563         ceil, trunc, round: Fix gcc warnings.
8564         * lib/ceil.c (MIN): Undefine before redefining.
8565         * lib/trunc.c (MIN): Likewise.
8566         * lib/round.c (MIN): Likewise.
8567         Include <math.h> first.
8568
8569 2010-12-24  Bruno Haible  <bruno@clisp.org>
8570
8571         select tests: Avoid failures on OSF/1 5.1.
8572         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8573         failure of closing the last socket; it may fail with ECONNRESET.
8574
8575 2010-12-24  Eric Blake  <eblake@redhat.com>
8576
8577         stdint: avoid HP-UX 10.20 preprocessor bug
8578         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8579         than #if.
8580         * tests/test-floor2.c (main): Likewise.
8581         Reported by Peter O'Gorman.
8582
8583         pipe: make obsoletion transition easier
8584         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8585         * modules/pipe (Files): Include revived file.
8586         (Include): Drop reference, to mirror getdate's behavior.
8587
8588 2010-12-24  Bruno Haible  <bruno@clisp.org>
8589
8590         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8591         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8592         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8593         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8594
8595 2010-12-24  Bruno Haible  <bruno@clisp.org>
8596
8597         gethostname: Ensure declaration on NonStop Kernel.
8598         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8599         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8600
8601 2010-12-24  Bruno Haible  <bruno@clisp.org>
8602
8603         sys_select: Ensure all necessary types on NonStop Kernel.
8604         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8605         include <sys/time.h>.
8606         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8607         NonStop Kernel.
8608         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8609
8610 2010-12-24  Bruno Haible  <bruno@clisp.org>
8611
8612         sys_select: Remove unneeded include.
8613         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8614         have <sys/select.h>.
8615
8616 2010-12-24  Bruno Haible  <bruno@clisp.org>
8617
8618         gethostname: Provide a fallback for HOST_NAME_MAX.
8619         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8620         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8621         instead.
8622         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8623
8624 2010-12-24  Bruno Haible  <bruno@clisp.org>
8625
8626         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8627         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8628         (SA_RESTART): Likewise.
8629         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8630
8631 2010-12-24  Bruno Haible  <bruno@clisp.org>
8632
8633         signal: Define NSIG.
8634         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8635         * tests/test-signal.c (nsig): New variable.
8636         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8637
8638 2010-12-24  Bruno Haible  <bruno@clisp.org>
8639
8640         rename, renameat: Avoid test failures on OSF/1 5.1.
8641         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8642         alternative error codes.
8643         * tests/test-renameat.c (main): Likewise.
8644
8645 2010-12-24  Bruno Haible  <bruno@clisp.org>
8646
8647         *printf: Detect large precisions bug on Solaris 10/SPARC.
8648         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8649         by Paul Eggert.
8650         * tests/test-snprintf-posix.h (test_function): Add this test code here
8651         too.
8652         * tests/test-sprintf-posix.h (test_function): Likewise.
8653         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8654         * tests/test-vasprintf-posix.c (test_function): Likewise.
8655         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8656         around by gnulib.
8657         * doc/posix-functions/printf.texi: Likewise.
8658         * doc/posix-functions/snprintf.texi: Likewise.
8659         * doc/posix-functions/sprintf.texi: Likewise.
8660         * doc/posix-functions/vfprintf.texi: Likewise.
8661         * doc/posix-functions/vprintf.texi: Likewise.
8662         * doc/posix-functions/vsnprintf.texi: Likewise.
8663         * doc/posix-functions/vsprintf.texi: Likewise.
8664         * doc/posix-functions/dprintf.texi: Undo last commit.
8665         * doc/posix-functions/vdprintf.texi: Likewise.
8666
8667 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8668
8669         tests: port test-fdutimensat.c to Solaris 8
8670         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8671         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8672         On Solaris 8, it fails with errno == ENOSYS, because there is no
8673         futimens (so it can't use the fd), and there is no lutimens (so it
8674         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8675
8676         vsnprintf: make more consistent with snprintf; doc fixes
8677
8678         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8679         the byte count return problem was promoted from the snprintf-posix
8680         to the snprintf module.
8681         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8682         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8683         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8684         * tests/test-snprintf.c (main): Check the byte count returned.
8685         * tests/test-vsnprintf.c (main): Likewise.
8686
8687 2010-12-23  Eric Blake  <eblake@redhat.com>
8688
8689         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8690         * modules/sigpipe (License): Relax license.
8691
8692 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8693
8694         doc: document Solaris printf bug with large float precisions
8695         * doc/posix-functions/dprintf.texi (dprintf):
8696         * doc/posix-functions/fprintf.texi (fprintf):
8697         * doc/posix-functions/printf.texi (printf):
8698         * doc/posix-functions/snprintf.texi (snprintf):
8699         * doc/posix-functions/sprintf.texi (sprintf):
8700         * doc/posix-functions/vdprintf.texi (vdprintf):
8701         * doc/posix-functions/vfprintf.texi (vfprintf):
8702         * doc/posix-functions/vprintf.texi (vprintf):
8703         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8704         * doc/posix-functions/vsprintf.texi (vsprintf):
8705         Mention that these functions mishandle large floating point
8706         precisions on Solaris 10.  The same bug is also present in Solaris
8707         8, and I assume earlier.  This causes "cd gnulib-tests; make
8708         check" to fail on Solaris 8 (and I assume, later) when building
8709         the latest coreutils, in test-vasprintf-posix's call to
8710         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8711         the wide flavors (e.g., wprintf) so this patch just updates the
8712         documentation for the narrow ones.
8713
8714         test-posixtm.c: add two tests
8715         * tests/test-posixtm.c: Add two tests, to highlight the
8716         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8717         around this bug; this is merely to document it.
8718
8719 2010-12-22  Bruno Haible  <bruno@clisp.org>
8720
8721         getlogin_r: Work around portability problem on OSF/1.
8722         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8723         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8724         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8725         test for a truncated result.
8726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8727         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8728         * modules/getlogin_r (Depends-on): Add memchr.
8729         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8730
8731 2010-12-22  Bruno Haible  <bruno@clisp.org>
8732
8733         ptsname: Avoid test failure on OSF/1 5.1.
8734         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8735         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8736         (same_slave): New function.
8737         (main): Use it to compare ptsname's result with the expected file name.
8738
8739 2010-12-22  Bruno Haible  <bruno@clisp.org>
8740
8741         Port extended stdio modules to HP NonStop Kernel.
8742         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8743         macros.
8744         * lib/fbufmode.c: Update comments.
8745         * lib/fflush.c: Likewise.
8746         * lib/fpurge.c: Likewise.
8747         * lib/freadable.c: Likewise.
8748         * lib/freadahead.c: Likewise.
8749         * lib/freading.c: Likewise.
8750         * lib/freadptr.c: Likewise.
8751         * lib/freadseek.c: Likewise.
8752         * lib/fseeko.c: Likewise.
8753         * lib/fseterr.c: Likewise.
8754         * lib/fwritable.c: Likewise.
8755         * lib/fwriting.c: Likewise.
8756         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8757
8758 2010-12-22  Bruno Haible  <bruno@clisp.org>
8759
8760         ttyname_r: Work around bug on OSF/1 5.1.
8761         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8762         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8763         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8764         present.
8765         * lib/ttyname_r.c (ttyname_r): Update comments.
8766
8767 2010-12-22  Bruno Haible  <bruno@clisp.org>
8768
8769         round: Implement result sign according to IEEE 754.
8770         * lib/round.c (MIN, MINUS_ZERO): New macros.
8771         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8772         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8773         * tests/test-round-ieee.c (main): Likewise.
8774         * tests/test-roundl-ieee.c (main): Likewise.
8775
8776         trunc: Implement result sign according to IEEE 754.
8777         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8778         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8779         * tests/test-trunc2.c: Include minus-zero.h.
8780         (MINUS_ZERO): New macro.
8781         (trunc_reference): Keep in sync with lib/trunc.c.
8782         * tests/test-truncf2.c: Include minus-zero.h.
8783         (MINUS_ZERO): New macro.
8784         (truncf_reference): Keep in sync with lib/trunc.c.
8785         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8786         * tests/test-trunc-ieee.c (main): Likewise.
8787         * tests/test-truncl-ieee.c (main): Likewise.
8788
8789         ceil: Implement result sign according to IEEE 754.
8790         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8791         (FUNC): Return -0.0 for -1 < x < 0.
8792         * tests/test-ceil2.c: Include minus-zero.h.
8793         (MINUS_ZERO): New macro.
8794         (ceil_reference): Keep in sync with lib/ceil.c.
8795         * tests/test-ceilf2.c: Include minus-zero.h.
8796         (MINUS_ZERO): New macro.
8797         (ceilf_reference): Keep in sync with lib/ceil.c.
8798         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8799         * tests/test-ceil-ieee.c (main): Likewise.
8800         * tests/test-ceill-ieee.c (main): Likewise.
8801
8802         floor: Implement result sign according to IEEE 754.
8803         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8804         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8805         * tests/test-floorf2.c (floorf_reference): Likewise.
8806         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8807         * tests/test-floor-ieee.c (main): Likewise.
8808         * tests/test-floorl-ieee.c (main): Likewise.
8809
8810 2010-12-22  Bruno Haible  <bruno@clisp.org>
8811
8812         getaddrinfo: Update doc.
8813         * doc/posix-functions/gai_strerror.texi: Return type is also different
8814         on AIX and HP-UX.
8815
8816 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8817
8818         getaddrinfo, inet_ntop: Update doc for Solaris.
8819         * doc/posix-functions/gai_strerror.texi: Return type is also an
8820         issue on Solaris 9 and earlier.
8821         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8822         on Solaris 10 and earlier.
8823
8824 2010-12-21  Bruno Haible  <bruno@clisp.org>
8825
8826         New module 'roundl-ieee'.
8827         * modules/roundl-ieee: New file.
8828         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8829         test whether roundl works according to ISO C 99 with IEC 60559.
8830         * m4/roundl-ieee.m4: New file.
8831         * modules/roundl-ieee-tests: New file.
8832         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8833         * tests/test-roundl.c (main): Remove signbit tests.
8834         * modules/roundl-tests (Depends-on): Remove signbit.
8835         * doc/posix-functions/roundl.texi: Mention the new module.
8836
8837 2010-12-21  Bruno Haible  <bruno@clisp.org>
8838
8839         New module 'truncl-ieee'.
8840         * modules/truncl-ieee: New file.
8841         * modules/truncl-ieee-tests: New file.
8842         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8843         * tests/test-truncl.c (main): Remove signbit tests.
8844         * modules/truncl-tests (Depends-on): Remove signbit.
8845         * doc/posix-functions/truncl.texi: Mention the new module.
8846
8847 2010-12-21  Bruno Haible  <bruno@clisp.org>
8848
8849         New module 'ceill-ieee'.
8850         * modules/ceill-ieee: New file.
8851         * modules/ceill-ieee-tests: New file.
8852         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8853         * tests/test-ceill.c (main): Remove signbit tests.
8854         * modules/ceill-tests (Depends-on): Remove signbit.
8855         * doc/posix-functions/ceill.texi: Mention the new module.
8856
8857 2010-12-21  Bruno Haible  <bruno@clisp.org>
8858
8859         New module 'floorl-ieee'.
8860         * modules/floorl-ieee: New file.
8861         * modules/floorl-ieee-tests: New file.
8862         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8863         * tests/test-floorl.c (main): Remove signbit tests.
8864         * modules/floorl-tests (Depends-on): Remove signbit.
8865         * doc/posix-functions/floorl.texi: Mention the new module.
8866
8867 2010-12-21  Bruno Haible  <bruno@clisp.org>
8868
8869         New module 'round-ieee'.
8870         * modules/round-ieee: New file.
8871         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8872         whether round works according to ISO C 99 with IEC 60559.
8873         * m4/round-ieee.m4: New file.
8874         * modules/round-ieee-tests: New file.
8875         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8876         * tests/test-round1.c (main): Remove signbit tests.
8877         * modules/round-tests (Depends-on): Remove 'signbit'.
8878         * doc/posix-functions/round.texi: Mention the new module.
8879
8880 2010-12-21  Bruno Haible  <bruno@clisp.org>
8881
8882         New module 'trunc-ieee'.
8883         * modules/trunc-ieee: New file.
8884         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8885         whether trunc works according to ISO C 99 with IEC 60559.
8886         * m4/trunc-ieee.m4: New file.
8887         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8889         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8890         * modules/trunc-ieee-tests: New file.
8891         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8892         * tests/test-trunc1.c (main): Remove signbit tests.
8893         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8894         * doc/posix-functions/trunc.texi: Mention the new module.
8895
8896 2010-12-21  Bruno Haible  <bruno@clisp.org>
8897
8898         New module 'ceil-ieee'.
8899         * modules/ceil-ieee: New file.
8900         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8901         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8902         ISO C 99 with IEC 60559.
8903         * m4/ceil-ieee.m4: New file.
8904         * modules/ceil (Files): Add lib/ceil.c.
8905         (Depends-on): Add 'float'.
8906         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8907         * lib/math.in.h (ceil): New declaration.
8908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8909         REPLACE_CEIL.
8910         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8911         * modules/ceil-ieee-tests: New file.
8912         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8913         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8914         * doc/posix-functions/ceil.texi: Mention the new module.
8915
8916 2010-12-21  Bruno Haible  <bruno@clisp.org>
8917
8918         New module 'floor-ieee'.
8919         * modules/floor-ieee: New file.
8920         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8921         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8922         ISO C 99 with IEC 60559.
8923         * m4/floor-ieee.m4: New file.
8924         * modules/floor (Files): Add lib/floor.c.
8925         (Depends-on): Add 'float'.
8926         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8927         * lib/math.in.h (floor): New declaration.
8928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8929         REPLACE_FLOOR.
8930         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8931         * modules/floor-ieee-tests: New file.
8932         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8933         * tests/test-math-c++.cc: Check the signature of 'floor'.
8934         * doc/posix-functions/floor.texi: Mention the new module.
8935
8936 2010-12-21  Bruno Haible  <bruno@clisp.org>
8937
8938         New module 'roundf-ieee'.
8939         * modules/roundf-ieee: New file.
8940         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8941         test whether roundf works according to ISO C 99 with IEC 60559.
8942         * m4/roundf-ieee.m4: New file.
8943         * modules/roundf-ieee-tests: New file.
8944         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8945         * tests/test-roundf1.c (main): Remove signbit tests.
8946         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8947         * doc/posix-functions/roundf.texi: Mention the new module.
8948
8949 2010-12-21  Bruno Haible  <bruno@clisp.org>
8950
8951         New module 'truncf-ieee'.
8952         * modules/truncf-ieee: New file.
8953         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8954         test whether truncf works according to ISO C 99 with IEC 60559.
8955         * m4/truncf-ieee.m4: New file.
8956         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8958         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8959         * modules/truncf-ieee-tests: New file.
8960         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8961         * tests/test-truncf1.c (main): Remove signbit tests.
8962         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8963         * doc/posix-functions/truncf.texi: Mention the new module.
8964
8965 2010-12-21  Bruno Haible  <bruno@clisp.org>
8966
8967         New module 'ceilf-ieee'.
8968         * modules/ceilf-ieee: New file.
8969         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8970         test whether ceilf works according to ISO C 99 with IEC 60559.
8971         * m4/ceilf-ieee.m4: New file.
8972         * modules/ceilf-ieee-tests: New file.
8973         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8974         * tests/test-ceilf1.c (main): Remove signbit tests.
8975         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8976         * doc/posix-functions/ceilf.texi: Mention the new module.
8977
8978 2010-12-21  Bruno Haible  <bruno@clisp.org>
8979
8980         New module 'floorf-ieee'.
8981         * modules/floorf-ieee: New file.
8982         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8983         test whether floorf works according to ISO C 99 with IEC 60559.
8984         * m4/floorf-ieee.m4: New file.
8985         * modules/floorf-ieee-tests: New file.
8986         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8987         * tests/test-floorf1.c (main): Remove signbit tests.
8988         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8989         * doc/posix-functions/floorf.texi: Mention the new module.
8990
8991 2010-12-21  Bruno Haible  <bruno@clisp.org>
8992
8993         Support for minus zero in autoconf macros.
8994         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8995         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8996         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8997         * tests/minus-zero.h: Update comments.
8998
8999 2010-12-21  Bruno Haible  <bruno@clisp.org>
9000
9001         Tests for module 'ceil'.
9002         * modules/ceil-tests: New file.
9003         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9004         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9005
9006 2010-12-21  Bruno Haible  <bruno@clisp.org>
9007
9008         Tests for module 'floor'.
9009         * modules/floor-tests: New file.
9010         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9011         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9012
9013 2010-12-21  Bruno Haible  <bruno@clisp.org>
9014
9015         math: Fix indentation.
9016         * lib/math.in.h (floorf): Fix indentation.
9017
9018 2010-12-21  Bruno Haible  <bruno@clisp.org>
9019
9020         Fix cross-compilation guesses on Solaris.
9021         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9022         not match "solaris2.10".
9023         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9024         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9025         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9026
9027 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9028
9029         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9030         This fixes a problem observed with the latest coreutils snapshot
9031         that caused a test to fail on Solaris 8.  src/csplit.c's call
9032         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9033         earlier, instead of returning the number of bytes that would have
9034         been generated; this causes csplit to incorrectly report memory
9035         exhaustion.
9036         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9037         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9038         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9039         comments to match.
9040         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9041         Fix typo in matching older versions of Solaris: "solaris2.10"
9042         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9043         only for guessing while cross-compiling.
9044         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9045
9046 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9047
9048         ftoastr: fix comment again
9049         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9050         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9051         Also, simplify example a bit by using flags = 0.
9052
9053 2010-12-20  Bruno Haible  <bruno@clisp.org>
9054
9055         round*, trunc*: Update documentation regarding glibc.
9056         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9057         * doc/posix-functions/round.texi: Likewise.
9058         * doc/posix-functions/roundl.texi: Likewise.
9059         * doc/posix-functions/truncf.texi: Likewise.
9060         * doc/posix-functions/trunc.texi: Likewise.
9061         * doc/posix-functions/truncl.texi: Likewise.
9062
9063 2010-12-20  Bruno Haible  <bruno@clisp.org>
9064
9065         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9066         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9067         * doc/posix-functions/round.texi: Likewise.
9068         * doc/posix-functions/roundl.texi: Likewise.
9069
9070 2010-12-20  Bruno Haible  <bruno@clisp.org>
9071
9072         ttyname_r: Add missing declaration on HP-UX 11.
9073         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9074         HAVE_TTYNAME_R.
9075         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9076         declared. Set HAVE_TTYNAME_R always.
9077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9078         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9079         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9080         HAVE_TTYNAME_R.
9081         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9082
9083 2010-12-20  Bruno Haible  <bruno@clisp.org>
9084
9085         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9086         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9087         * doc/posix-functions/getlogin_r.texi: Likewise.
9088         * tests/test-getlogin.c: Include <errno.h>.
9089         (main): Avoid test failure on HP-UX 11.11.
9090         * tests/test-getlogin_r.c (main): Likewise.
9091
9092 2010-12-20  Bruno Haible  <bruno@clisp.org>
9093
9094         getlogin_r: Add missing declaration on HP-UX 11.
9095         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9096         declared also when it exists as a function.
9097         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9098
9099 2010-12-20  Bruno Haible  <bruno@clisp.org>
9100
9101         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9102         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9103         through wcrtomb.
9104
9105 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9106
9107         ftoastr: fix comment
9108         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9109         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9110
9111 2010-12-19  Bruno Haible  <bruno@clisp.org>
9112
9113         isnan: Ensure it is a macro.
9114         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9115         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9116         Solaris.
9117
9118 2010-12-19  Bruno Haible  <bruno@clisp.org>
9119
9120         ldexpl test: Fix link error on OSF/1 5.1.
9121         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9122
9123 2010-12-19  Bruno Haible  <bruno@clisp.org>
9124
9125         wctype: Make it work in C++ mode on OSF/1 5.1.
9126         * lib/wctype.in.h (iswblank): Declare but not define here.
9127         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9128         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9129         * modules/wctype (Files): Add lib/iswblank.c.
9130
9131 2010-12-19  Bruno Haible  <bruno@clisp.org>
9132
9133         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9134         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9135         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9136
9137 2010-12-19  Bruno Haible  <bruno@clisp.org>
9138
9139         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9140         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9141         _POSIX_PII_SOCKET.
9142         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9143         * doc/posix-functions/recvfrom.texi: Likewise.
9144         * doc/posix-functions/send.texi: Likewise.
9145         * doc/posix-functions/sendto.texi: Likewise.
9146
9147 2010-12-19  Bruno Haible  <bruno@clisp.org>
9148
9149         tcgetsid: Add missing declaration on OSF/1 5.1.
9150         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9151         HAVE_TCGETSID.
9152         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9153         Don't set HAVE_TCGETSID.
9154         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9155         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9156         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9157         HAVE_TCGETSID.
9158         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9159
9160 2010-12-19  Bruno Haible  <bruno@clisp.org>
9161
9162         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9163         * lib/stdio.in.h: During the include_next statement, let recursive
9164         includes of this file include only the system header file.
9165
9166 2010-12-19  Bruno Haible  <bruno@clisp.org>
9167
9168         iconv_open: Fix regression from 2010-12-04.
9169         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9170         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9171
9172 2010-12-19  Bruno Haible  <bruno@clisp.org>
9173
9174         stdbool test: Avoid a gcc warning.
9175         * tests/test-stdbool.c (main): Fail if e1 is false.
9176         Reported by Jim Meyering.
9177
9178 2010-12-19  Jim Meyering  <meyering@redhat.com>
9179
9180         setenv: restore to working order
9181         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9182         mistakenly removed.
9183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9184         HAVE_SETENV.
9185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9186         HAVE_SETENV.
9187
9188 2010-12-19  Bruno Haible  <bruno@clisp.org>
9189
9190         Document some different function declarations on OSF/1 5.1.
9191         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9192         * doc/posix-functions/inet_ntop.texi: Likewise.
9193         * doc/posix-functions/gethostname.texi: Likewise.
9194         * lib/unistd.in.h (gethostname): Update comment.
9195
9196 2010-12-19  Bruno Haible  <bruno@clisp.org>
9197
9198         doc: Mention vasprintf-posix module.
9199         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9200         the 'vasprintf-posix' module.
9201         * doc/glibc-functions/vasprintf.texi: Likewise.
9202
9203 2010-12-19  Bruno Haible  <bruno@clisp.org>
9204
9205         unsetenv: Add missing declaration on OSF/1 5.1.
9206         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9207         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9208         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9209         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9210         not HAVE_UNSETENV.
9211         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9212         HAVE_UNSETENV.
9213         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9214
9215 2010-12-19  Bruno Haible  <bruno@clisp.org>
9216
9217         setenv: Add missing declaration on OSF/1 5.1.
9218         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9219         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9220         declared. Don't set HAVE_SETENV.
9221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9222         not HAVE_SETENV.
9223         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9224         HAVE_SETENV.
9225         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9226
9227 2010-12-19  Bruno Haible  <bruno@clisp.org>
9228
9229         nl_langinfo tests: Avoid gcc warning.
9230         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9231
9232 2010-12-19  Bruno Haible  <bruno@clisp.org>
9233
9234         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9235         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9236         _GL_CXXALIAS_SYS.
9237
9238 2010-12-19  Bruno Haible  <bruno@clisp.org>
9239
9240         stdbool: Relax test.
9241         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9242         address to 'bool' work in static initializer, for compilers other than
9243         GCC.
9244
9245 2010-12-19  Bruno Haible  <bruno@clisp.org>
9246
9247         ftello: Add missing declaration on OSF/1 5.1.
9248         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9249         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9251         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9252         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9253
9254 2010-12-19  Bruno Haible  <bruno@clisp.org>
9255
9256         fseeko: Add missing declaration on OSF/1 5.1.
9257         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9258         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9260         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9261         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9262
9263 2010-12-19  Bruno Haible  <bruno@clisp.org>
9264
9265         fchdir: Add missing declaration on OSF/1 5.1.
9266         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9269         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9270         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9271
9272 2010-12-19  Bruno Haible  <bruno@clisp.org>
9273
9274         relocatable-prog-wrapper: Separate from relocatable-prog.
9275         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9276         uninstall-relocwrapper rule here.
9277         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9278         Reported by Ian Beckwith <ianb@erislabs.net>.
9279
9280 2010-12-19  Bruno Haible  <bruno@clisp.org>
9281
9282         unistr/u8-mbsnlen: Add missing dependency.
9283         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9284         Reported by Ian Beckwith <ianb@erislabs.net>.
9285
9286 2010-12-19  Bruno Haible  <bruno@clisp.org>
9287
9288         iconv: Make it possible again to use this module without 'iconv-h'.
9289         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9290         if it is not defined.
9291         Reported by Ian Beckwith <ianb@erislabs.net>.
9292
9293 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9294
9295         acl: port to Solaris 8 when copying from tmpfs to ufs
9296         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9297         error number.  Problem observed on Solaris 8 with latest
9298         coreutils, with "mv A B", where A is on a tmpfs file system and B
9299         is on a ufs file system.  This caused coreutils' mv/part-symlink
9300         test to fail.
9301
9302         tests: set fail=0 at start
9303         * tests/init.sh (setup_): Move fail=0 initialization here ...
9304         (mktempd_): ... from here, so that tests can rely on fail being
9305         set to 0 initially.  This fixes a problem in coreutils; see:
9306         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9307
9308 2010-12-18  Bruno Haible  <bruno@clisp.org>
9309
9310         memmem-simple: Stylistic changes.
9311         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9312         Fix preprocessor directive indentation.
9313
9314 2010-12-15  Pádraig Brady <P@draigBrady.com>
9315
9316         memmem, memmem-simple: reorganize and expand empty needle check
9317         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9318         functional checks to memmem-simple so that one has a fully functional
9319         memmem by using just this module.
9320         Restrict the performance only check to the memmem module.
9321         Also expand the empty needle check to ensure the correct
9322         pointer is returned, not just a non NULL pointer.
9323         * doc/glibc-functions/memmem.texi: Rearrange the portability
9324         documentation to correlate with the rearranged checks.
9325         Clarify exactly how the memmem and memmem-simple modules
9326         relate to each other.
9327
9328 2010-12-15  Pádraig Brady <P@draigBrady.com>
9329             Bruno Haible  <bruno@clisp.org>
9330
9331         Improve cross-compilation guesses for uClibc.
9332         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9333         that uClibc does not have the glibc bug.
9334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9335         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9336
9337 2010-12-14  Eric Blake  <eblake@redhat.com>
9338
9339         configmake: provide fallbacks for oldest supported autotools
9340         * m4/configmake.m4: New file.
9341         * modules/configmake (Files): Ship it.
9342         (configure.ac): Use it to guarantee fallbacks.
9343
9344 2010-12-13  Pádraig Brady <P@draigBrady.com>
9345
9346         read-file: Improve handling of large files
9347         * lib/read-file.c (fread_file): Minimize realloc()s
9348         for regular files, and better manage sizes around SIZE_MAX.
9349
9350 2010-12-13  Eric Blake  <eblake@redhat.com>
9351
9352         cloexec, fcntl: relax license
9353         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9354         consent from all contributors.
9355         * modules/fcntl (License): Likewise.
9356
9357 2010-12-10  Bruno Haible  <bruno@clisp.org>
9358
9359         Tests for module 'pipe-posix'.
9360         * modules/pipe-posix-tests: New file.
9361         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9362
9363 2010-12-10  Bruno Haible  <bruno@clisp.org>
9364
9365         pipe-posix: Make it work in C++ mode.
9366         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9367         (pipe): Use common idiom, not a macro definition.
9368         * lib/pipe.c: New file.
9369         * m4/pipe.m4: New file.
9370         * modules/pipe-posix (Description): Enhance.
9371         (Files): Add lib/pipe.c, m4/pipe.m4.
9372         (configure.ac): Invoke gl_FUNC_PIPE.
9373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9374         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9375         * tests/test-unistd-c++.cc: Check the signature of pipe.
9376
9377 2010-12-10  Bruno Haible  <bruno@clisp.org>
9378
9379         Rename module 'pipe' to 'spawn-pipe'.
9380         * modules/spawn-pipe: New file, renamed from modules/pipe.
9381         (Files, configure.ac, Makefile.am): Update.
9382         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9383         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9384         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9385         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9386         "spawn-pipe.h" instead of "pipe.h".
9387         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9388         to gl_SPAWN_PIPE.
9389         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9390         (Files, Makefile.am): Update.
9391         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9392         Update.
9393         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9394         Include "spawn-pipe.h" instead of "pipe.h".
9395         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9396         * lib/javacomp.c: Likewise.
9397         * lib/javaversion.c: Likewise.
9398         * lib/pipe-filter-gi.c: Likewise.
9399         * lib/pipe-filter-ii.c: Likewise.
9400         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9401         * modules/javacomp (Depends-on): Likewise.
9402         * modules/javaversion (Depends-on): Likewise.
9403         * modules/pipe-filter-gi (Depends-on): Likewise.
9404         * modules/pipe-filter-ii (Depends-on): Likewise.
9405         * MODULES.html.sh (Executing programs): Update.
9406         * NEWS: Mention the change.
9407
9408 2010-12-10  Eric Blake  <eblake@redhat.com>
9409
9410         pipe-posix: new module
9411         * modules/pipe-posix: New file.
9412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9413         (gl_UNISTD_H): Check for declaration.
9414         * modules/unistd (Makefile.am): Substitute it.
9415         * lib/unistd.in.h (pipe): Provide it for mingw.
9416         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9417         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9418
9419 2010-12-07  Bruno Haible  <bruno@clisp.org>
9420
9421         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9422         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9423         u8_strcmp_gnu.
9424         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9425
9426 2010-12-06  Bruno Haible  <bruno@clisp.org>
9427
9428         Update internal documentation.
9429         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9430
9431 2010-12-04  Bruno Haible  <bruno@clisp.org>
9432
9433         Put more information about failed tests into the test return codes.
9434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9435         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9436         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9437         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9438         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9439         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9440         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9441         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9442         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9444         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9445         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9446         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9447         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9448         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9449         returns a bit mask.
9450         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9451         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9452         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9453         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9454         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9455         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9456         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9458         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9459         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9460         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9461         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9462         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9463         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9464         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9465         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9466         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9467         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9468         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9469         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9471         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9472         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9473         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9474         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9475         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9476         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9477         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9478         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9479         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9480         gl_PRINTF_PRECISION): Likewise.
9481         * m4/regex.m4 (gl_REGEX): Likewise.
9482         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9483         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9484         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9485         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9486         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9488         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9489         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9490         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9491         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9492         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9493         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9494         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9495         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9496         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9497         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9498         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9499         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9500         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9501         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9502         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9503         enumerated value.
9504         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9505
9506 2010-12-04  Bruno Haible  <bruno@clisp.org>
9507
9508         Update for Solaris 11 2010-11.
9509         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9510         Express, released in November 2010.
9511
9512 2010-12-04  Bruno Haible  <bruno@clisp.org>
9513
9514         nproc: Relax license.
9515         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9516         and Paul Eggert.
9517         Requested by Ludovic Courtès <ludo@gnu.org>.
9518
9519 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         utimecmp: fine-grained src to nearby coarse-grained dest
9522
9523         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9524         and the source is on a file system with higher-resolution time
9525         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9526         not work, and the time stamps are close together, the algorithm to
9527         determine the exact resolution from the read-back mtime was buggy:
9528         it had a "!=" where it should have had an "==".  This bug has been
9529         in the code ever since it was introduced to gnulib.
9530         Problem reported by Dan Jacobson in
9531         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9532
9533 2010-11-30  Bruno Haible  <bruno@clisp.org>
9534
9535         strerror_r-posix: Fix autoconf test.
9536         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9537
9538 2010-11-28  Bruno Haible  <bruno@clisp.org>
9539             Paul Eggert  <eggert@cs.ucla.edu>
9540
9541         Tests for module 'getdomainname'.
9542         * modules/getdomainname-tests: New file.
9543         * tests/test-getdomainname.c: New file, based on
9544         tests/test-gethostname.c.
9545
9546 2010-11-28  Bruno Haible  <bruno@clisp.org>
9547             Paul Eggert  <eggert@cs.ucla.edu>
9548
9549         getdomainname: Use the system function when possible.
9550         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9551         (getdomainname): Replace if needed. Provide the declaration if it is
9552         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9553         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9554         (getdomainname): When the system has getdomainname, call the system
9555         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9556         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9557         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9558         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9559         the function if its second argument is of type 'int' or if it is found
9560         in libnsl.
9561         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9562         <sys/systeminfo.h> and sysinfo().
9563         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9565         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9566         HAVE_GETDOMAINNAME.
9567         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9568         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9569         * doc/glibc-functions/getdomainname.texi: Document the problems with
9570         the getdomainname declaration.
9571
9572 2010-11-28  Bruno Haible  <bruno@clisp.org>
9573
9574         sys_socket: Ensure ss_family field on AIX.
9575         * lib/sys_socket.in.h (ss_family): New macro definition.
9576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9577         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9578         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9579         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9580         * modules/sys_socket (Makefile.am): Substitute
9581         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9582         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9583
9584 2010-11-27  Bruno Haible  <bruno@clisp.org>
9585
9586         readline: Improve configure output.
9587         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9588         "checking for readline..." result understandable.
9589
9590 2010-11-27  Bruno Haible  <bruno@clisp.org>
9591
9592         *printf-posix: Detect a bug on Solaris 10/x86.
9593         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9594         for floating-point output.
9595         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9596         directive.
9597         * tests/test-snprintf-posix.h (test_function): Likewise.
9598         * tests/test-sprintf-posix.h (test_function): Likewise.
9599         * tests/test-vasprintf-posix.c (test_function): Likewise.
9600         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9601         * doc/posix-functions/printf.texi: Likewise.
9602         * doc/posix-functions/snprintf.texi: Likewise.
9603         * doc/posix-functions/sprintf.texi: Likewise.
9604         * doc/posix-functions/vfprintf.texi: Likewise.
9605         * doc/posix-functions/vprintf.texi: Likewise.
9606         * doc/posix-functions/vsnprintf.texi: Likewise.
9607         * doc/posix-functions/vsprintf.texi: Likewise.
9608         * doc/glibc-functions/obstack_printf.texi: Likewise.
9609         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9610
9611 2010-11-27  Bruno Haible  <bruno@clisp.org>
9612
9613         Fix link error when module libunistring-optional is in use.
9614         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9615         * modules/striconveha-tests (Makefile.am): Likewise.
9616
9617 2010-11-27  Bruno Haible  <bruno@clisp.org>
9618
9619         regex: Mention link dependencies.
9620         * modules/regex (Link): New section.
9621         * modules/rpmatch (Link): Likewise.
9622         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9623
9624 2010-11-27  Bruno Haible  <bruno@clisp.org>
9625
9626         ftoastr: Fix compilation error on Solaris.
9627         * lib/ftoastr.c: Include <config.h>.
9628
9629 2010-11-27  Bruno Haible  <bruno@clisp.org>
9630
9631         getloadavg: Update documentation.
9632         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9633
9634 2010-11-27  Bruno Haible  <bruno@clisp.org>
9635
9636         sys_socket: Fix test whether the functions are declared.
9637         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9638         not <sys/select.h>.
9639
9640 2010-11-27  Bruno Haible  <bruno@clisp.org>
9641
9642         getpass: Make sure to get system declaration on some platforms.
9643         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9644         gl_USE_SYSTEM_EXTENSIONS.
9645         * modules/getpass (Depends-on): Add extensions.
9646
9647 2010-11-26  Bruno Haible  <bruno@clisp.org>
9648
9649         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9650         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9651         'iconv' module is present.
9652         (ICONV_CONST): New macro.
9653         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9654         ICONV_CONST.
9655         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9656         set ICONV_CONST.
9657         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9658         here.
9659         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9660         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9661         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9662         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9663         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9664         present.
9665
9666 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9667
9668         ftoastr: comment fix
9669         * lib/ftoastr.c: "little" -> "little or no" in comment
9670
9671 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9672
9673         stdint: port to GCC 4.3 + OSX + Octave
9674         On this platform, stdint.h is buggy and defines int64_t to long
9675         long int.  The replacement defined it to long int, causing
9676         problems with C++ style name mangling.  Instead, trust the system
9677         definition if INT64_MAX is defined, and likewise for the unsigned
9678         variant.   Problem reported by Jarno Rajahalme in
9679         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9680         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9681         and don't mess with int64_t and INT64_MAX in this case.
9682         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9683
9684 2010-11-24  Bruno Haible  <bruno@clisp.org>
9685
9686         doc: Corrections regarding MacOS X 10.4 and 10.5.
9687         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9688         MacOS X.
9689         Reported by Simon Josefsson.
9690
9691 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9692
9693         Uninstall ".bin" files installed by relocwrapper.
9694         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9695         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9696         unless it is already there.
9697
9698 2010-11-21  Bruno Haible  <bruno@clisp.org>
9699
9700         Update for NetBSD 5.0.
9701         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9702         NetBSD; the test fails on NetBSD 5.0.
9703         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9704         about NetBSD.
9705
9706 2010-11-21  Bruno Haible  <bruno@clisp.org>
9707
9708         Update for HP-UX 11.23 and HP-UX 11.31.
9709         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9710         HP-UX.
9711
9712 2010-11-21  Bruno Haible  <bruno@clisp.org>
9713
9714         Update for MacOS X 10.5.
9715         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9716         MacOS X; the test fails on MacOS X 10.5.8.
9717         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9718         about MacOS X.
9719
9720 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9721
9722         bootstrap: add bootstrap_sync option.
9723         See discussion at
9724         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9725         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9726         * build-aux/bootstrap: Accept --bootstrap-sync to update
9727         bootstrap if it is not identical to the local gnulib's
9728         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9729         enable this by default.  Accept --no-bootstrap-sync to disable
9730         it.
9731
9732 2010-11-20  Bruno Haible  <bruno@clisp.org>
9733
9734         Ensure that <features.h> is included before __GLIBC__ is tested.
9735         * lib/printf-parse.h: Include <features.h>.
9736         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9737         Reported by Mike Frysinger <vapier@gentoo.org>.
9738
9739         Ensure that <features.h> is included before __GLIBC__ is tested.
9740         * lib/wchar.in.h: Include <features.h>.
9741         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9742         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9743         Reported by Mike Frysinger <vapier@gentoo.org>.
9744
9745         Ensure that <features.h> is included before __GLIBC__ is tested.
9746         * lib/arpa_inet.in.h: Include <features.h>.
9747         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9748         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9749         Reported by Mike Frysinger <vapier@gentoo.org>.
9750
9751         Ensure that <features.h> is included before __GLIBC__ is tested.
9752         * build-aux/link-warning.h: Include <features.h>.
9753         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9754         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9755         Reported by Mike Frysinger <vapier@gentoo.org>.
9756
9757         Ensure that <features.h> is included before __GLIBC__ is tested.
9758         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9759         Reported by Mike Frysinger <vapier@gentoo.org>.
9760
9761 2010-11-20  Bruno Haible  <bruno@clisp.org>
9762
9763         memmem: Fix autoconf test.
9764         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9765
9766 2010-11-20  Bruno Haible  <bruno@clisp.org>
9767
9768         Port to uClibc.
9769         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9770         * lib/fcntl.in.h: Likewise.
9771         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9772         * lib/mbrtowc.c (mbrtowc): Likewise.
9773         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9774         * lib/strerror_r.c: Likewise.
9775         * lib/unistr/u8-strnlen.c: Likewise.
9776         * lib/vasnprintf.c (decimal_point_char): Likewise.
9777         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9778         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9779         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9780         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9781         * tests/test-sigaction.c (handler, main): Likewise.
9782         * lib/freading.h: Treat uClibc like a non-glibc platform.
9783         * lib/freading.c: Likewise.
9784         * lib/gettext.h: Likewise.
9785         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9786         Likewise.
9787         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9788         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9789         * lib/propername.c (proper_name_utf8): Likewise.
9790         * lib/spawn.in.h: Likewise.
9791         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9792         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9793         mem_cd_iconveh_internal): Likewise.
9794         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9795         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9796         strstr, strcasestr): Likewise.
9797         * lib/unicodeio.c (unicode_to_mb): Likewise.
9798         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9799         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9800         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9801         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9802         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9803         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9804         * lib/unistr/u8-stpncpy.c: Likewise.
9805         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9806         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9807         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9808         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9809         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9810         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9812         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9814         Likewise.
9815         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9816         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9817         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9818         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9819         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9820         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9821         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9822         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9823         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9824         * tests/test-striconveha.c (main): Likewise.
9825         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9826         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9827         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9828         * doc/posix-functions/getline.texi: Likewise.
9829         Reported by Mike Frysinger <vapier@gentoo.org>.
9830
9831 2010-11-20  Bruno Haible  <bruno@clisp.org>
9832
9833         nproc: Fix condition.
9834         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9835         HAVE_PTHREAD_AFFINITY_NP.
9836
9837 2010-11-20  Bruno Haible  <bruno@clisp.org>
9838
9839         Fix a comment.
9840         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9841
9842 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9843
9844         ftoastr: don't assume snprintf
9845         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9846         Implement a subset of snprintf here, by using sprintf safely.
9847         * modules/ftoastr (Depends-on): Remove snprintf.
9848
9849 2010-11-19  Jim Meyering  <meyering@redhat.com>
9850
9851         test-rename.h: fix compilation failure
9852         * tests/test-rename.h (test_rename): Add omitted "}".
9853
9854 2010-11-17  Jim Meyering  <meyering@redhat.com>
9855
9856         maint.mk: add a URL discussing the no-@acronym policy
9857         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9858
9859 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9860
9861         ftoastr: depend on snprintf, improve comments
9862         * lib/ftoastr.c: Also mention Loitsch's draft.
9863         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9864         needed in the current implementation, but it might simplify
9865         speeding up the code later.
9866         * modules/ftoastr: Depend on snprintf; this improves portability.
9867         Suggested by Bruno Haible in the same email.
9868
9869         ftoastr: port to hosts lacking strtof and strtold
9870         Problem reported by Bruno Haible in
9871         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9872         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9873         environment and strtold (and presumably strtof) are not available.
9874         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9875         (configure.ac): Require gl_C99_STRTOLD.
9876
9877 2010-11-18  Bruno Haible  <bruno@clisp.org>
9878
9879         c-strtold: Avoid link error on AIX 7.
9880         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9881         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9882         (gl_C_STRTOLD): Test whether strtold_l exists.
9883         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9884
9885 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9886
9887         intprops: new macro INT_BITS_STRLEN_BOUND
9888         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9889         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9890         not exposed.  Also, it uses a slightly tighter bound than before;
9891         though this makes no practical difference, we might as well be as
9892         tight as we easily can.
9893
9894         ftoastr: new module, for lossless conversion of floats to short strings
9895         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9896         * modules/ftoastr: New files.
9897
9898 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9899
9900         bootstrap: port to Solaris sed
9901         * build-aux/bootstrap (get_version): Port to Solaris sed.
9902         See Ralf Wildenhues's note in
9903         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9904
9905 2010-11-14  Jim Meyering  <meyering@redhat.com>
9906
9907         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9908         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9909         and move definition closer to sole use.
9910
9911 2010-11-13  Jim Meyering  <meyering@redhat.com>
9912
9913         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9914         Now we require at least autoconf-2.59, which means the work-around
9915         is no longer needed.
9916         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9917         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9918         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9919         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9920         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9921
9922 2010-11-13  Bruno Haible  <bruno@clisp.org>
9923
9924         rename, renameat: Avoid test failures at NFS mounted locations.
9925         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9926         functions.
9927         (test_rename): Use assert_nonexistent.
9928         * tests/test-rename.c: Include <dirent.h>.
9929         * tests/test-renameat.c: Likewise.
9930         Reported by Gary V. Vaughan <gary@gnu.org>.
9931
9932         rename, renameat: Document Linux bug with NFS
9933         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9934         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9935         * doc/posix-functions/renameat.texi: Likewise.
9936         Suggested by Eric Blake.
9937
9938 2010-11-13  Bruno Haible  <bruno@clisp.org>
9939
9940         rename test: Add comments.
9941         * tests/test-rename.h (test_rename): Add structure and comments.
9942
9943 2010-11-13  Eric Blake  <eblake@redhat.com>
9944
9945         maintainer-makefile: cover a few more files
9946         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9947         scripts generated within C files, for libvirt.
9948
9949 2010-11-13  Bruno Haible  <bruno@clisp.org>
9950
9951         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9952         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9953         character, return the number of bytes that belong together, not always
9954         1.
9955         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9956         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9957         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9958         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9959         number of bytes of an invalid character.
9960         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9961         (main): Invoke it.
9962         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9963         results.
9964         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9965         malformed byte sequences.
9966         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9967         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9968         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9969         Reported by Ben Pfaff and Paolo Bonzini.
9970
9971 2010-11-13  Bruno Haible  <bruno@clisp.org>
9972
9973         openat: Work around glibc bug with fchownat() and empty file names.
9974         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9975         (gl_FUNC_FCHOWNAT): Invoke it.
9976         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9977         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9978         Reported by Gary V. Vaughan <gary@gnu.org>.
9979
9980 2010-11-13  Bruno Haible  <bruno@clisp.org>
9981
9982         openat: Ensure autoconf macro ordering.
9983         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9984         gl_USE_SYSTEM_EXTENSIONS.
9985         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9986
9987 2010-11-13  Bruno Haible  <bruno@clisp.org>
9988
9989         Update comments.
9990         * lib/unistr/u8-check.c: Update file name in comments.
9991         * lib/unistr/u8-mblen.c: Likewise.
9992         * lib/unistr/u8-prev.c: Likewise.
9993         * lib/unistr/u8-strmblen.c: Likewise.
9994         * lib/unistr/u8-strmbtouc.c: Likewise.
9995
9996 2010-11-13  Jim Meyering  <meyering@redhat.com>
9997
9998         tests: avoid test failure on Solaris 10 due to lack of PATH export
9999         * tests/test-update-copyright.sh: Don't forget to export PATH.
10000
10001         init.sh: ensure that IFS is defined, just in case...
10002         * tests/init.sh (setup_): Ensure that IFS is defined,
10003         so that saving and restoring it works as expected.  This
10004         appears to be useful at least for an old version of dash
10005         from a long time ago (RH 6).  See here for details:
10006         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10007
10008         maint.mk: tighten "test a == b" check
10009         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10010         test to files that contain something like #!/bin/sh.
10011         Without this, coreutils would get two false positives in
10012         the comments of C source files.
10013
10014 2010-11-12  Eric Blake  <eblake@redhat.com>
10015
10016         bootstrap: fix typo in previous attempt
10017         * build-aux/bootstrap (buildreq): Correct the grouping.
10018         Reported by Paul Eggert.
10019
10020         maintainer-makefile: prohibit test x == x
10021         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10022         Based on a report by Matthias Bolte.
10023
10024         bootstrap: allow FreeBSD gzip
10025         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10026         which has no '.' and goes to stderr.
10027         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10028         Reported by Matthias Bolte.
10029
10030         maintainer-makefile: check for i18n setup
10031         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10032         will likely work.
10033
10034 2010-11-12  Bruno Haible  <bruno@clisp.org>
10035
10036         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10037         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10038         * lib/nanosleep.c (nanosleep): Likewise.
10039
10040 2010-11-11  Bruno Haible  <bruno@clisp.org>
10041
10042         fcntl-h: Fix for use of C++ on glibc systems.
10043         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10044         also on glibc systems in C++ mode.
10045         Reported by Gary V. Vaughan <gary@gnu.org>.
10046
10047 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10048
10049         mknod: avoid false failure with dash
10050         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10051
10052 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10053
10054         unlink: Fix "is it should" typo in diagnostic.
10055         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10056         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10057
10058 2010-11-11  Bruno Haible  <bruno@clisp.org>
10059
10060         Tests for module 'strerror_r-posix'.
10061         * modules/strerror_r-posix-tests: New file.
10062         * tests/test-strerror_r.c: New file.
10063         * tests/test-string-c++.cc: Check the signature of strerror_r.
10064
10065         New module 'strerror_r-posix'.
10066         * lib/string.in.h (strerror_r): New declaration.
10067         * lib/strerror_r.c: New file.
10068         * m4/strerror_r.m4: New file.
10069         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10070         of strerror_r.
10071         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10072         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10073         * modules/strerror_r-posix: New file.
10074         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10075         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10076         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10077         portability problems.
10078
10079 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10080
10081         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10082         line is also considered for output. Quoted function name in shell
10083         command, so temporary files for functions like MyClass::operator()
10084         are removed correctly without errors.
10085
10086 2010-11-09  Bruno Haible  <bruno@clisp.org>
10087
10088         * doc/posix-functions/strerror.texi: List more failing platforms.
10089
10090         * doc/posix-functions/strerror.texi: Add a comment.
10091
10092 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10093
10094         fdopendir: fix bug on MacOS X when low on file descriptors
10095
10096         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10097         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10098         All callers changed.
10099         (fdopendir): Invoke save_cwd at the top level, not after using
10100         multiple dup() calls to use up file descriptors.  Then retry
10101         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10102         less than the maximum number of open file descriptors, because
10103         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10104         on Mac OS X 10.6.4 for tar 1.24
10105         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10106         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10107         and for tar 1.25
10108         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10109
10110 2010-11-07  Bruno Haible  <bruno@clisp.org>
10111
10112         vasnprintf: Support I flag on glibc systems.
10113         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10114         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10115         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10116         snprintf function.
10117         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10118         glibc systems.
10119         * tests/test-vasnprintf-posix3.c: New file.
10120         * modules/vasnprintf-posix-tests (Files): Add it.
10121         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10122
10123 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10124
10125         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10126         * MODULES.html.sh: For compiler warnings, use name
10127         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10128
10129 2010-11-05  Eric Blake  <eblake@redhat.com>
10130
10131         ceil, floor: avoid spurious failure with icc
10132         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10133         [denormals-as-zero] when optimizing without -mieee-fp option.
10134         * tests/test-floorf2.c (floorf_reference): Likewise.
10135         * tests/test-ceilf1.c (dummy): New function.
10136         (main): Use it to outsmart icc's optimization.
10137         * tests/test-floorf1.c (dummy, main): Likewise.
10138
10139         tests: require working signbit
10140         * modules/ceilf-tests (Depends-on): Add signbit.
10141         * modules/ceill-tests (Depends-on): Likewise.
10142         * modules/floorf-tests (Depends-on): Likewise.
10143         * modules/floorl-tests (Depends-on): Likewise.
10144         * modules/round-tests (Depends-on): Likewise.
10145         * modules/roundf-tests (Depends-on): Likewise.
10146         * modules/roundl-tests (Depends-on): Likewise.
10147         * modules/trunc-tests (Depends-on): Likewise.
10148         * modules/truncf-tests (Depends-on): Likewise.
10149         * modules/truncl-tests (Depends-on): Likewise.
10150
10151         strtod: work around icc bug
10152         * lib/strtod.c (minus_zero): Define to working value.
10153         (strtod): Use it to avoid icc bug.
10154
10155         copysign: enhance tests
10156         * modules/copysign-tests (Files): Add minus-zero.h.
10157         * tests/test-copysign.c (main): Also test zeros.
10158
10159 2010-11-04  Eric Blake  <eblake@redhat.com>
10160
10161         ceil, floor, round, trunc: enhance tests of -0
10162         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10163         * tests/test-ceill.c (main): Likewise.
10164         * tests/test-floorf1.c (main): Likewise.
10165         * tests/test-floorl.c (main): Likewise.
10166         * tests/test-round1.c (main): Likewise.
10167         * tests/test-roundf1.c (main): Likewise.
10168         * tests/test-roundl.c (main): Likewise.
10169         * tests/test-trunc1.c (main): Likewise.
10170         * tests/test-truncf1.c (main): Likewise.
10171         * tests/test-truncl.c (main): Likewise.
10172
10173 2010-11-04  Eric Blake  <eblake@redhat.com>
10174
10175         frexp, tests: work around ICC bug with -zero
10176         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10177         works with more compilers.
10178         * tests/minus-zero.h: New file.
10179         * modules/ceilf-tests (Files): Include it.
10180         * modules/ceill-tests (Files): Likewise.
10181         * modules/floorf-tests (Files): Likewise.
10182         * modules/floorl-tests (Files): Likewise.
10183         * modules/frexp-nolibm-tests (Files): Likewise.
10184         * modules/frexp-tests (Files): Likewise.
10185         * modules/frexpl-nolibm-tests (Files): Likewise.
10186         * modules/frexpl-tests (Files): Likewise.
10187         * modules/isnan-tests (Files): Likewise.
10188         * modules/isnand-nolibm-tests (Files): Likewise.
10189         * modules/isnand-tests (Files): Likewise.
10190         * modules/isnanf-nolibm-tests (Files): Likewise.
10191         * modules/isnanf-tests (Files): Likewise.
10192         * modules/isnanl-nolibm-tests (Files): Likewise.
10193         * modules/isnanl-tests (Files): Likewise.
10194         * modules/round-tests (Files): Likewise.
10195         * modules/roundf-tests (Files): Likewise.
10196         * modules/roundl-tests (Files): Likewise.
10197         * modules/ldexpl-tests (Files): Likewise.
10198         * modules/signbit-tests (Files): Likewise.
10199         * modules/snprintf-posix-tests (Files): Likewise.
10200         * modules/sprintf-posix-tests (Files): Likewise.
10201         * modules/strtod-tests (Files): Likewise.
10202         * modules/trunc-tests (Files): Likewise.
10203         * modules/truncf-tests (Files): Likewise.
10204         * modules/truncl-tests (Files): Likewise.
10205         * modules/vsnprintf-posix-tests (Files): Likewise.
10206         * modules/vsprintf-posix-tests (Files): Likewise.
10207         * modules/vasnprintf-posix-tests (Files): Likewise.
10208         * modules/vasprintf-posix-tests (Files): Likewise.
10209         * tests/test-ceilf1.c (main): Use it.
10210         * tests/test-ceill.c (main): Likewise.
10211         * tests/test-floorf1.c (main): Likewise.
10212         * tests/test-floorl.c (main): Likewise.
10213         * tests/test-frexp.c (main): Likewise.
10214         * tests/test-frexpl.c (main): Likewise.
10215         * tests/test-isnan.c (main): Likewise.
10216         * tests/test-isnand.h (main): Likewise.
10217         * tests/test-isnanf.h (main): Likewise.
10218         * tests/test-isnanl.h (main): Likewise.
10219         * tests/test-ldexpl.c (main): Likewise.
10220         * tests/test-round.c (main): Likewise.
10221         * tests/test-roundf.c (main): Likewise.
10222         * tests/test-roundl.c (main): Likewise.
10223         * tests/test-signbit.c (test_signbitf, test_signbitd)
10224         (test_signbitl): Likewise.
10225         * tests/test-snprintf-posix.h (test_function): Likewise.
10226         * tests/test-sprintf-posix.h (test_function): Likewise.
10227         * tests/test-strtod.c (main): Likewise.
10228         * tests/test-trunc1.c (main): Likewise.
10229         * tests/test-truncf1.c (main): Likewise.
10230         * tests/test-truncl.c (main): Likewise.
10231
10232         isnanl: work around icc bug
10233         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10234
10235 2010-11-03  Eric Blake  <eblake@redhat.com>
10236
10237         tests: fix compiler warnings
10238         * tests/test-getopt.h (test_getopt): Fix condition.
10239         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10240         * tests/test-pipe2.c (main): Likewise.
10241         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10242
10243         utimens: fix broken m4 test
10244         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10245
10246 2010-10-28  Bruno Haible  <bruno@clisp.org>
10247
10248         posix_spawn*, getdtablesize: Relax license.
10249         * modules/posix_spawn (License): Change to LGPLv2+.
10250         * modules/posix_spawnp (License): Likewise.
10251         * modules/posix_spawn-internal (License): Likewise.
10252         * modules/posix_spawnattr_init (License): Likewise.
10253         * modules/posix_spawnattr_getflags (License): Likewise.
10254         * modules/posix_spawnattr_setflags (License): Likewise.
10255         * modules/posix_spawnattr_getpgroup (License): Likewise.
10256         * modules/posix_spawnattr_setpgroup (License): Likewise.
10257         * modules/posix_spawnattr_getschedparam (License): Likewise.
10258         * modules/posix_spawnattr_setschedparam (License): Likewise.
10259         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10260         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10261         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10262         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10263         * modules/posix_spawnattr_getsigmask (License): Likewise.
10264         * modules/posix_spawnattr_setsigmask (License): Likewise.
10265         * modules/posix_spawnattr_destroy (License): Likewise.
10266         * modules/posix_spawn_file_actions_init (License): Likewise.
10267         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10268         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10269         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10270         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10271         * modules/getdtablesize (License): Likewise.
10272         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10273
10274 2010-10-26  Bruno Haible  <bruno@clisp.org>
10275
10276         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10277         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10278         Cygwin and mingw.
10279         Suggested by Eric Blake.
10280
10281 2010-10-26  Bruno Haible  <bruno@clisp.org>
10282
10283         stdio: Work around compilation error due to renameat() on Solaris 10.
10284         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10285         * lib/renameat.c: Don't include <unistd.h> here.
10286         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10287         Reported by Paul Eggert and Eric Blake.
10288
10289 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10290
10291         renameat: port to Solaris 10, which declares renameat in unistd.h
10292
10293         * lib/renameat.c: Include unistd.h before stdio.h, because
10294         Solaris 10 declares renameat in unistd.h.  Problem encountered
10295         when building GNU tar 1.24 on Solaris 10.
10296
10297 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10298
10299         fdopendir: fix C89 compilation
10300         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10301         compilers.
10302
10303 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10304
10305         inttostr: simplify by removing unnecessary redundancy
10306         * lib/anytostr.c: Don't include verify.h.
10307         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10308         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10309         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10310         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10311         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10312         Likewise.
10313         * modules/inttostr (Depends-on): Remove 'verify'.
10314
10315 2010-10-23  Bruno Haible  <bruno@clisp.org>
10316
10317         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10318         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10319         Reported by Eric Blake.
10320
10321 2010-10-23  Bruno Haible  <bruno@clisp.org>
10322
10323         Tests: Fix LOCALE_JA on MirBSD 10.
10324         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10325         to an UTF-8 locale.
10326         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10327         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10328         Reported by Eric Blake.
10329
10330 2010-10-21  Bruno Haible  <bruno@clisp.org>
10331
10332         nl_langinfo test: Avoid test failure on NetBSD 5.
10333         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10334         Reported by Eric Blake.
10335
10336 2010-10-21  Eric Blake  <eblake@redhat.com>
10337
10338         c-stack: work around libsigsegv 2.8 bug
10339         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10340         overflow on at least PowerPC64.
10341
10342 2010-10-17  Bruno Haible  <bruno@clisp.org>
10343
10344         userspec: Drop redundant file.
10345         * modules/userspec (Files): Remove lib/inttostr.h.
10346
10347 2010-10-17  Bruno Haible  <bruno@clisp.org>
10348
10349         nl_langinfo tests: Silence some warnings.
10350         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10351         Reported by Jim Meyering.
10352
10353 2010-10-17  Bruno Haible  <bruno@clisp.org>
10354
10355         Make use of GCC's attribute __alloc_size__.
10356         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10357         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10358         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10359         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10360         __alloc_size__.
10361         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10362         Suggested by Jim Meyering.
10363
10364 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10365
10366         bootstrap: anchor .gitignore entries.
10367         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10368         with...
10369         (insert_vc_ignore): ... this new function, which prepends `/' to
10370         all .gitignore entries before passing them to
10371         insert_sorted_if_absent.
10372
10373 2010-10-16  Bruno Haible  <bruno@clisp.org>
10374
10375         nextafter: Fix configure check.
10376         * modules/nextafter (configure.ac): Correct expected prototype.
10377
10378 2010-10-16  Bruno Haible  <bruno@clisp.org>
10379
10380         termios: Update documentation.
10381         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10382
10383 2010-10-16  Bruno Haible  <bruno@clisp.org>
10384
10385         tests: Make them compile with TinyCC.
10386         * tests/test-strstr.c (main): Remove parentheses around array
10387         initializer.
10388
10389 2010-10-15  Eric Blake  <eblake@redhat.com>
10390
10391         ignore-value: make header idempotent
10392         * lib/ignore-value.h: Add double-inclusion guards.
10393         Reported by Stefan Berger.
10394
10395 2010-10-15  Jim Meyering  <meyering@redhat.com>
10396
10397         GNUmakefile: handle "stable" target, not "major"
10398         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10399         lists in maint.mk and announce-gen.  Without this, "make stable"
10400         would fail to ensure that $(VERSION) is up to date.
10401
10402 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10403
10404         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10405         & co.
10406
10407 2010-10-14  Bruno Haible  <bruno@clisp.org>
10408
10409         vasnprintf: Don't set errno to 0.
10410         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10411         block that sets it to 0.
10412         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10413
10414 2010-10-14  Bruno Haible  <bruno@clisp.org>
10415
10416         socketlib: Fix.
10417         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10418         gl_PREREQ_SYS_H_WINSOCK2.
10419         Reported by Ian Beckwith <ianb@erislabs.net>.
10420
10421 2010-10-13  Jim Meyering  <meyering@redhat.com>
10422
10423         test-select-stdin.c: avoid warn_unused_result warnings
10424         * tests/test-select-stdin.c: Include "macros.h".
10425         ASSERT that read and fflush succeed.
10426
10427 2010-10-13  Jim Meyering  <meyering@redhat.com>
10428
10429         git-version-gen: do require git-VC'd files in cwd
10430         * build-aux/git-version-gen: Reject a git version string
10431         if there are no commits associated with the current directory.
10432         This avoids an unlikely false-positive (unrelated dir whose parent
10433         repository also contains a tag matching v*), as pointed out
10434         by Giuseppe Scrivano in
10435         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10436
10437 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10438
10439         argv-iter: omit nonconforming declaration
10440         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10441         enum arg_iter_err declaration, which doesn't conform to C99.
10442         Solaris 10 cc warns about this.
10443
10444 2010-10-13  Eric Blake  <eblake@redhat.com>
10445
10446         termios: fix compilation on mingw
10447         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10448         (gl_TERMIOS_H): Adjust it on mingw.
10449         * modules/termios (Makefile.am): Substitute new key.
10450         * lib/termios.in.h (includes): Make include_next conditional.
10451         * doc/posix-headers/termios.texi (termios.h): Update
10452         documentation.
10453         Reported by Daniel P. Berrange.
10454
10455 2010-10-13  Jim Meyering  <meyering@redhat.com>
10456
10457         git-version-gen: don't require that .git/ be in the current dir
10458         * build-aux/git-version-gen: Adjust this script so that it works
10459         when run from any working directory beneath the top-level .git/-
10460         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10461         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10462
10463         test-select: avoid warn_unused_result warnings
10464         * tests/test-select.c: Include "macros.h".
10465         ASSERT that each call to read, write, and pipe succeeds.
10466         While not technically required, also check each "close".
10467         * modules/select-tests (Files): Add tests/macros.h.
10468
10469         test-symlinkat: remove declaration of unused local
10470         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10471
10472         test-inttostr: avoid shadowing warnings
10473         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10474         and use malloc rather than the stack for the same reason as
10475         mentioned in the comment justifying the other allocation.
10476
10477 2010-10-11  Bruno Haible  <bruno@clisp.org>
10478
10479         stdlib: Allow multiple gnulib generated replacements to coexist.
10480         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10481         Reported by Sam Steingold <sds@gnu.org>.
10482
10483 2010-10-11  Jim Meyering  <meyering@redhat.com>
10484
10485         fix a documentation typo
10486         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10487
10488 2010-10-11  Eric Blake  <eblake@redhat.com>
10489
10490         futimens: work around Solaris 11 bug
10491         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10492         * tests/test-futimens.h (test_futimens): Enhance, rather than
10493         weaken test.
10494         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10495
10496 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10497
10498         Indentation.
10499         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10500         higher-level operators more to the left.
10501
10502 2010-10-11  Jim Meyering  <meyering@redhat.com>
10503
10504         test-futimens: avoid unwarranted test failure on Solaris 5.11
10505         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10506         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10507         because it tries to dereference the NULL name argument.
10508
10509 2010-10-11  Bruno Haible  <bruno@clisp.org>
10510
10511         Indentation.
10512         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10513         indentation.
10514
10515 2010-10-11  Jim Meyering  <meyering@redhat.com>
10516
10517         spawn.in.h: make indentation consistent with parentheses
10518         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10519         Make indentation consistent with parentheses.
10520
10521 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10522
10523         Fix mismatched parens in previous commit
10524         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10525         parens.
10526
10527 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10530
10531         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10532         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10533         * lib/malloca.c: Include "verify.h".
10534         (verify1): Remove, replacing with a verify call.
10535         * lib/relocwrapper.c (verify1): Likewise.
10536         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10537         Likewise.
10538         * modules/malloca (Depends-on): Add 'verify'.
10539         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10540         * modules/vasnprintf (Depends-on): Add 'verify'.
10541         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10542         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10543         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10544         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10545         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10546         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10547         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10548
10549         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10550
10551         Formerly the style was sometimes 2*X - 1, because the C standard
10552         was wrongly thought to disallow ?: in integral constant expressions.
10553         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10554         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10555         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10556         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10557         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10558         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10559         verify that time_t cannot be floating.
10560
10561 2010-10-08  Eric Blake  <eblake@redhat.com>
10562
10563         time: enforce recent POSIX ruling that time_t is integral
10564         * lib/time.in.h (__time_t_must_be_integral): Detect any
10565         problematic systems, allowing the rest of gnulib to assume POSIX.
10566
10567 2010-10-08  Jim Meyering  <meyering@redhat.com>
10568
10569         fdopendir: fix a bug on systems lacking openat and /proc support
10570         OpenBSD 4.7 is one such system.  The most noticeable effect was
10571         failure of any application making nontrivial use of fts: rm, du,
10572         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10573           ./rm: traversal failed: `a': Bad file descriptor
10574         Debugging that, you see that even though FD 6 was closed just
10575         prior to the opendir call in fd_clone_opendir, its resulting
10576         dir->dd_fd was 8, rather than the expected value of 6:
10577
10578         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10579         93                close (fd);
10580         (gdb) n
10581         94                dir = fd_clone_opendir (dupfd);
10582         (gdb) n
10583         95                saved_errno = errno;
10584         (gdb) p dir->dd_fd
10585         $11 = 8
10586
10587         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10588         The problem is that on OpenBSD, fd_clone_opendir has to resort
10589         to using the old-style save/restore CWD mechanism, due to its
10590         lack of openat/proc support, and *that* would steal the FD (6)
10591         that opendir was supposed to use.
10592
10593         The fix is to squirrel away the desired FD so that save_cwd uses a
10594         different one, and then free the dest FD right before calling opendir.
10595         That guarantees opendir will use the required file descriptor.
10596
10597         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10598
10599 2010-10-08  Bruno Haible  <bruno@clisp.org>
10600
10601         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10602         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10603
10604 2010-10-08  Bruno Haible  <bruno@clisp.org>
10605
10606         nanosleep: Make replacement POSIX compliant.
10607         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10608         is out of range.
10609         Reported by Jim Meyering.
10610
10611 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10612
10613         bootstrap: add hook for altering gnulib.mk, for Bison
10614         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10615         the Bison bootstrapping process can rewrite file names and variables
10616         in this file before later parts of 'bootstrap' use the file.
10617         Bison wants to include lib/gnulib.mk from the top-level makefile,
10618         so it needs the file names in this file to be relative to the top
10619         level, not relative to lib; plus it needs variable names to be
10620         rewritten.
10621         (slurp): Use the new function.
10622
10623         bootstrap: reformat for readability
10624         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10625
10626 2010-10-08  Eric Blake  <eblake@redhat.com>
10627
10628         docs: update cygwin progress
10629         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10630         1.7.7.
10631         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10632         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10633         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10634         * doc/posix-functions/carg.texi (carg): Likewise.
10635         * doc/posix-functions/cargf.texi (cargf): Likewise.
10636         * doc/posix-functions/casin.texi (casin): Likewise.
10637         * doc/posix-functions/casinf.texi (casinf): Likewise.
10638         * doc/posix-functions/casinh.texi (casinh): Likewise.
10639         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10640         * doc/posix-functions/catan.texi (catan): Likewise.
10641         * doc/posix-functions/catanf.texi (catanf): Likewise.
10642         * doc/posix-functions/catanh.texi (catanh): Likewise.
10643         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10644         * doc/posix-functions/ccos.texi (ccos): Likewise.
10645         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10646         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10647         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10648         * doc/posix-functions/cexp.texi (cexp): Likewise.
10649         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10650         * doc/posix-functions/cimag.texi (cimag): Likewise.
10651         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10652         * doc/posix-functions/clog.texi (clog): Likewise.
10653         * doc/posix-functions/clogf.texi (clogf): Likewise.
10654         * doc/posix-functions/conj.texi (conj): Likewise.
10655         * doc/posix-functions/conjf.texi (conjf): Likewise.
10656         * doc/posix-functions/cpow.texi (cpow): Likewise.
10657         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10658         * doc/posix-functions/cproj.texi (cproj): Likewise.
10659         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10660         * doc/posix-functions/creal.texi (creal): Likewise.
10661         * doc/posix-functions/crealf.texi (crealf): Likewise.
10662         * doc/posix-functions/csin.texi (csin): Likewise.
10663         * doc/posix-functions/csinf.texi (csinf): Likewise.
10664         * doc/posix-functions/csinh.texi (csinh): Likewise.
10665         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10666         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10667         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10668         * doc/posix-functions/ctan.texi (ctan): Likewise.
10669         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10670         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10671         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10672         * doc/posix-headers/complex.texi (complex.h): Likewise.
10673
10674 2010-10-07  Jim Meyering  <meyering@redhat.com>
10675
10676         parse-datetime: avoid compilation failure on OpenBSD 4.7
10677         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10678         This works around a compilation failure on OpenBSD 4.7:
10679         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10680
10681 2010-10-07  Eric Blake  <eblake@redhat.com>
10682
10683         docs: update cygwin progress
10684         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10685         1.7.6.
10686         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10687         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10688         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10689         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10690         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10691         Likewise.
10692         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10693         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10694         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10695         Likewise.
10696         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10697         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10698         Likewise.
10699         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10700         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10701         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10702         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10703         Likewise.
10704         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10705         Likewise.
10706         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10707
10708         docs: update parse-datetime history
10709         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10710         documentation of this function's history and alternatives.
10711
10712         cygwin: use more robust version check
10713         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10714         exclude an eventual cygwin 1.9.1.
10715         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10716         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10717         (gl_FUNC_STRCASESTR): Likewise.
10718         Reported by Bruno Haible.
10719
10720 2010-10-06  Bruno Haible  <bruno@clisp.org>
10721
10722         string, sys_select: Avoid #including large headers unless necessary.
10723         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10724         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10725         OSF/1, BeOS, Haiku.
10726         Reported by Jim Meyering.
10727
10728 2010-10-05  Eric Blake  <eblake@redhat.com>
10729
10730         memmem, strstr, strcasestr: fix bug with long periodic needle
10731         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10732         periodic needle having false positive.
10733         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10734         and cygwin 1.7.7.
10735         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10737         (gl_FUNC_STRCASESTR): Likewise.
10738         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10739         * tests/test-memmem.c (main): Expose the bug.
10740         * tests/test-strcasestr.c (main): Likewise.
10741         * tests/test-strstr.c (main): Likewise.
10742         * tests/test-c-strcasestr.c (main): Likewise.
10743         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10744         * doc/posix-functions/strstr.texi (strstr): Likewise.
10745         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10746         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10747
10748 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10749
10750         parse-datetime: do some more renaming
10751         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10752         parse_datetime, not get_date.  Mention the renaming.
10753         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10754         in comments.
10755         * m4/bison.m4: Likewise.
10756
10757 2010-10-05  Eric Blake  <eblake@redhat.com>
10758
10759         parse-datetime: better name than get_date
10760         * NEWS: Reword the deprecation notice.
10761         * modules/get_date: Rename to modules/parse-datetime.
10762         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10763         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10764         * lib/get_date.y: Rename to lib/parse-datetime.y.
10765         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10766         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10767         * doc/getdate.texi: Provide fallback wrapper.
10768         * lib/getdate.h: Move guts, and wrap...
10769         * lib/parse-datetime.h: ...new file.
10770         * lib/parse-datetime.y (get_date): Rename...
10771         (parse_datetime): ...to this.
10772         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10773         (gl_PARSE_DATETIME): ...to this.
10774         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10775         documentation.
10776         * modules/getdate (Files): Provide fallback docs and header.
10777         (Notice, Depends-on): Update references.
10778         * tests/test-parse-datetime.c: Likewise.
10779         * DEPENDENCIES: Likewise.
10780         * MODULES.html.sh (Date and time <time.h>): Likewise.
10781         * doc/parse-datetime.texi (Date input formats)
10782         (Authors of parse_datetime): Likewise.
10783         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10784         (Include): Likewise.
10785         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10786         * gnulib-tool: Likewise.
10787         * m4/bison.m4 (gl_BISON): Likewise.
10788         Suggested by Bruno Haible.
10789
10790 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10791
10792         more ports to Solaris tr, which needs [] around ranges
10793         * gnulib-tool: Solaris tr needs [] around ranges.
10794         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10795         * tests/test-pipe-filter-gi1.c (main): Likewise.
10796         * tests/test-pipe-filter-ii1.c (main): Likewise.
10797
10798 2010-10-05  Eric Blake  <eblake@redhat.com>
10799
10800         bootstrap: fix Solaris regression
10801         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10802         around ranges.
10803         Reported by Pádraig Brady.
10804
10805         bootstrap: work with pkg-config
10806         * build-aux/bootstrap (check_versions): Also transliterate - in
10807         prerequisite name.
10808         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10809         prerequisites that were already found, to avoid confusion.
10810         Reported by Justin Clift.
10811
10812         faccessat: remove unused wrappers
10813         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10814         presence of these wrappers dragged in -lgen on Solaris.
10815         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10816
10817 2010-10-05  Jim Meyering  <meyering@redhat.com>
10818
10819         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10820         * Makefile (sc_pragma_columns): New syntax-check rule.
10821
10822 2010-10-04  Bruno Haible  <bruno@clisp.org>
10823
10824         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10825         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10826         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10827         Reported by Bruce Korb and Eric Blake.
10828
10829 2010-10-04  Bruno Haible  <bruno@clisp.org>
10830
10831         threadlib: Make option --with-libpth-prefix work.
10832         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10833         use $LIBPTH, not just -lpth.
10834
10835 2010-10-04  Bruno Haible  <bruno@clisp.org>
10836
10837         Avoid line length limitation from HP NonStop system header files.
10838         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10839         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10840         * lib/ctype.in.h: Likewise.
10841         * lib/dirent.in.h: Likewise.
10842         * lib/errno.in.h: Likewise.
10843         * lib/fcntl.in.h: Likewise.
10844         * lib/float.in.h: Likewise.
10845         * lib/getopt.in.h: Likewise.
10846         * lib/iconv.in.h: Likewise.
10847         * lib/inttypes.in.h: Likewise.
10848         * lib/langinfo.in.h: Likewise.
10849         * lib/locale.in.h: Likewise.
10850         * lib/math.in.h: Likewise.
10851         * lib/netdb.in.h: Likewise.
10852         * lib/netinet_in.in.h: Likewise.
10853         * lib/poll.in.h: Likewise.
10854         * lib/pthread.in.h: Likewise.
10855         * lib/pty.in.h: Likewise.
10856         * lib/sched.in.h: Likewise.
10857         * lib/se-selinux.in.h: Likewise.
10858         * lib/search.in.h: Likewise.
10859         * lib/signal.in.h: Likewise.
10860         * lib/spawn.in.h: Likewise.
10861         * lib/stdarg.in.h: Likewise.
10862         * lib/stddef.in.h: Likewise.
10863         * lib/stdint.in.h: Likewise.
10864         * lib/stdio.in.h: Likewise.
10865         * lib/stdlib.in.h: Likewise.
10866         * lib/string.in.h: Likewise.
10867         * lib/strings.in.h: Likewise.
10868         * lib/sys_file.in.h: Likewise.
10869         * lib/sys_ioctl.in.h: Likewise.
10870         * lib/sys_select.in.h: Likewise.
10871         * lib/sys_socket.in.h: Likewise.
10872         * lib/sys_stat.in.h: Likewise.
10873         * lib/sys_time.in.h: Likewise.
10874         * lib/sys_times.in.h: Likewise.
10875         * lib/sys_utsname.in.h: Likewise.
10876         * lib/sys_wait.in.h: Likewise.
10877         * lib/sysexits.in.h: Likewise.
10878         * lib/termios.in.h: Likewise.
10879         * lib/time.in.h: Likewise.
10880         * lib/unistd.in.h: Likewise.
10881         * lib/wchar.in.h: Likewise.
10882         * lib/wctype.in.h: Likewise.
10883         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10884         * modules/ctype (Makefile.am): Likewise.
10885         * modules/dirent (Makefile.am): Likewise.
10886         * modules/errno (Makefile.am): Likewise.
10887         * modules/fcntl-h (Makefile.am): Likewise.
10888         * modules/float (Makefile.am): Likewise.
10889         * modules/getopt-posix (Makefile.am): Likewise.
10890         * modules/iconv-h (Makefile.am): Likewise.
10891         * modules/inttypes (Makefile.am): Likewise.
10892         * modules/langinfo (Makefile.am): Likewise.
10893         * modules/locale (Makefile.am): Likewise.
10894         * modules/math (Makefile.am): Likewise.
10895         * modules/netdb (Makefile.am): Likewise.
10896         * modules/netinet_in (Makefile.am): Likewise.
10897         * modules/poll-h (Makefile.am): Likewise.
10898         * modules/pthread (Makefile.am): Likewise.
10899         * modules/pty (Makefile.am): Likewise.
10900         * modules/sched (Makefile.am): Likewise.
10901         * modules/search (Makefile.am): Likewise.
10902         * modules/selinux-h (Makefile.am): Likewise.
10903         * modules/signal (Makefile.am): Likewise.
10904         * modules/spawn (Makefile.am): Likewise.
10905         * modules/stdarg (Makefile.am): Likewise.
10906         * modules/stddef (Makefile.am): Likewise.
10907         * modules/stdint (Makefile.am): Likewise.
10908         * modules/stdio (Makefile.am): Likewise.
10909         * modules/stdlib (Makefile.am): Likewise.
10910         * modules/string (Makefile.am): Likewise.
10911         * modules/strings (Makefile.am): Likewise.
10912         * modules/sys_file (Makefile.am): Likewise.
10913         * modules/sys_ioctl (Makefile.am): Likewise.
10914         * modules/sys_select (Makefile.am): Likewise.
10915         * modules/sys_socket (Makefile.am): Likewise.
10916         * modules/sys_stat (Makefile.am): Likewise.
10917         * modules/sys_time (Makefile.am): Likewise.
10918         * modules/sys_times (Makefile.am): Likewise.
10919         * modules/sys_utsname (Makefile.am): Likewise.
10920         * modules/sys_wait (Makefile.am): Likewise.
10921         * modules/sysexits (Makefile.am): Likewise.
10922         * modules/termios (Makefile.am): Likewise.
10923         * modules/time (Makefile.am): Likewise.
10924         * modules/unistd (Makefile.am): Likewise.
10925         * modules/wchar (Makefile.am): Likewise.
10926         * modules/wctype (Makefile.am): Likewise.
10927
10928 2010-10-04  Bruno Haible  <bruno@clisp.org>
10929
10930         read-file tests: Avoid a test failure on NonStop Kernel.
10931         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10932         a regular file.
10933         Reported by Joachim Schmitz <schmitz@hp.com>.
10934
10935 2010-10-03  Bruno Haible  <bruno@clisp.org>
10936
10937         gnulib-tool: Fixes for --create-testdir with --libtool.
10938         * gnulib-tool (func_get_automake_snippet): Don't augment
10939         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10940         an executable.
10941         (func_create_testdir): Handle module 'alloca' like func_import.
10942         Reported by Bruce Korb <bruce.korb@gmail.com>.
10943
10944 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10945
10946         Avoid some lines longer than 80 characters.
10947         * lib/stdint.in.h: Break long comment lines.
10948         * lib/math.in.h: Likewise.
10949         (_GL_NUM_UINT_WORDS): New macro, for readability.
10950         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10951         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10952         * lib/stdlib.in.h: Likewise.
10953         * lib/spawn.in.h: Likewise.
10954         * lib/sys_socket.in.h: Update an URL.
10955         * lib/sys_stat.in.h: Break long line.
10956
10957 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10958
10959         Improve pmccabe2html.
10960         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10961         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10962         when the sources change. Remove the line in the HTML about "Used
10963         ranges" (which implied that there might be other unused ranges),
10964         rename "Resume" to "Summary" (easier to understand for more users).
10965         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10966         styles, and some unnecessary blank lines.
10967
10968 2010-10-03  Bruno Haible  <bruno@clisp.org>
10969             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10970
10971         acl: Add support for ACLs on NonStop Kernel.
10972         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10973         Check whether the function aclsort() exists.
10974         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10975         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10976         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10977         (acl_nontrivial [HAVE_ACLSORT]: New function.
10978         (file_has_acl): Implement for NonStop Kernel.
10979         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10980         (qset_acl): Implement for NonStop Kernel.
10981         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10982         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10983         (main): Implement for NonStop Kernel.
10984         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10985         Kernel. Handle this flavor.
10986         * tests/test-set-mode-acl.sh: Likewise.
10987         * tests/test-copy-acl.sh: Likewise.
10988         * tests/test-copy-file.sh: Likewise.
10989
10990 2010-10-03  Bruno Haible  <bruno@clisp.org>
10991
10992         Info about ACLs on NonStop Kernel.
10993         * doc/acl-resources.txt: Add info about NonStop Kernel.
10994         References by Joachim Schmitz <schmitz@hp.com>.
10995
10996 2010-10-02  Bruno Haible  <bruno@clisp.org>
10997
10998         Define missing EDQUOT on NonStop Kernel.
10999         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11000         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11001         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11002         missing.
11003         * doc/posix-headers/errno.texi: Mention the NSK bug.
11004         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11005         Reported by Joachim Schmitz <schmitz@hp.com>.
11006
11007 2010-10-02  Bruno Haible  <bruno@clisp.org>
11008
11009         Update doc for POSIX:2008.
11010         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11011         Update URL of POSIX specification.
11012
11013 2010-10-02  Bruno Haible  <bruno@clisp.org>
11014
11015         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11016         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11017         from gnulib, not from Automake.
11018
11019 2010-10-02  Bruno Haible  <bruno@clisp.org>
11020
11021         New module 'system-posix'.
11022         * modules/system-posix: New file.
11023         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11024         module is present.
11025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11026         GNULIB_SYSTEM_POSIX.
11027         * modules/stdlib (Depends-on): Remove sys_wait.
11028         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11029         * doc/posix-functions/system.texi: Mention the new module.
11030         * doc/posix-headers/stdlib.texi: Likewise.
11031         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11032         define test_sys_wait_macros to a no-op.
11033         Reported by Sam Steingold <sds@gnu.org>.
11034
11035 2010-09-30  Bruno Haible  <bruno@clisp.org>
11036
11037         More renaming from 'getdate' to 'get_date'.
11038         * doc/get_date.texi: Renamed from doc/getdate.texi.
11039         * modules/get_date (Files): Update.
11040         * MODULES.html.sh (Date and time <time.h>): Update.
11041         * DEPENDENCIES: Update.
11042         * gnulib-tool: Update comment.
11043         * m4/bison.m4 (gl_BISON): Likewise.
11044         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11045
11046 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11047
11048         bootstrap: support ACLOCAL_FLAGS during aclocal
11049         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11050         can add additional -I dir for third-party .m4 files.
11051
11052 2010-09-30  Eric Blake  <eblake@redhat.com>
11053
11054         bootstrap: use glibtoolize on MacOS
11055         * build-aux/bootstrap (check_versions): Convert libtool into
11056         libtoolize.
11057         (tool search): Move libtool check earlier, and look for
11058         glibtoolize for MacOS.
11059         (gnulib_tool_options): Auto-add --libtool when appropriate.
11060         Reported by Justin Clift.
11061
11062         poll: fix typo that broke test on MacOS
11063         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11064         Reported by Justin Clift.
11065
11066         getdate: rename to get_date
11067         Note: getdate.h is not renamed, to minimize client impact.
11068         * modules/getdate: Mark obsolete.  Move old contents...
11069         * modules/get_date: ...to new module name.
11070         * modules/getdate-tests: Move...
11071         * modules/get_date-tests: ...here.
11072         * m4/getdate.m4: Move...
11073         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11074         * lib/getdate.y: Move...
11075         * lib/get_date.y: ...here.
11076         * tests/test-getdate.c: Move...
11077         * tests/test-get_date.c: ...here.
11078         * doc/posix-functions/getdate.texi (getdate): Update name.
11079         * NEWS: Mention the change.
11080
11081 2010-09-29  Bruno Haible  <bruno@clisp.org>
11082
11083         Separate the module 'waitpid' from the module 'sys_wait'.
11084         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11085         present.
11086         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11087         gl_MODULE_INDICATOR_FOR_TESTS.
11088         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11089         * modules/sys_wait (Depends-on): Remove waitpid.
11090         (Makefile.am): Substitute GNULIB_WAITPID.
11091         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11092         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11093         signature only if the 'waitpid' module is present.
11094         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11095         * NEWS: Mention the change.
11096         * modules/grantpt (Depends-on): Add waitpid.
11097         * modules/wait-process (Depends-on): Likewise.
11098
11099 2010-09-29  Bruno Haible  <bruno@clisp.org>
11100
11101         More tests for module 'sys_wait'.
11102         * modules/sys_wait-c++-tests: New file.
11103         * tests/test-sys_wait-c++.cc: New file.
11104         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11105         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11106
11107 2010-09-29  Bruno Haible  <bruno@clisp.org>
11108
11109         New module 'waitpid'.
11110         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11111         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11112         Don't include <process.h>.
11113         (waitpid): Declare only, using modern idiom.
11114         * m4/waitpid.m4: New file.
11115         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11116         * modules/waitpid: New file.
11117         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11118         (Makefile.am): Update.
11119         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11120
11121 2010-09-28  Bruno Haible  <bruno@clisp.org>
11122
11123         poll: Assume ANSI C.
11124         * lib/poll.c (poll): Use an ANSI C declaration.
11125
11126 2010-09-28  Bruno Haible  <bruno@clisp.org>
11127
11128         poll-h: Create poll.h on all platforms.
11129         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11130         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11131         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11132         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11133         (gl_REPLACE_POLL_H): Don't set POLL_H.
11134         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11135         * modules/poll-h (Depends-on): Add include_next.
11136         (Makefile.am): Create poll.h unconditionally. Substitute also
11137         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11138
11139 2010-09-28  Bruno Haible  <bruno@clisp.org>
11140
11141         Tests for module 'poll-h'.
11142         * modules/poll-h-c++-tests: New file.
11143         * tests/test-poll-h-c++.cc: New file.
11144
11145         Tests for module 'poll-h'.
11146         * modules/poll-h-tests: New file.
11147         * tests/test-poll-h.c: New file.
11148
11149 2010-09-28  Bruno Haible  <bruno@clisp.org>
11150
11151         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11152         * modules/poll-h (Depends-on): Add 'extensions'.
11153
11154 2010-09-28  Bruno Haible  <bruno@clisp.org>
11155
11156         New module 'poll-h'.
11157         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11158         (poll): Use modern idiom.
11159         * modules/poll-h: New file.
11160         * modules/poll (Files): Remove lib/poll.in.h.
11161         (Depends-on): Add poll-h.
11162         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11163         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11164         * m4/poll_h.m4: New file.
11165         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11166         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11167         and invoke gl_REPLACE_POLL_H.
11168         * lib/poll.c: Use common idiom.
11169         * tests/test-poll.c: Likewise.
11170         * doc/posix-headers/poll.texi: Mention the poll-h module.
11171         Suggested by Eric Blake.
11172
11173 2010-09-26  Bruno Haible  <bruno@clisp.org>
11174
11175         sys_wait: Implement WSTOPSIG.
11176         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11177         Reported by Simon Josefsson.
11178
11179 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11180
11181         stdlib, sys_wait: Avoid compilation error on mingw.
11182         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11183
11184 2010-09-26  Bruno Haible  <bruno@clisp.org>
11185
11186         stdlib tests: Avoid code duplication.
11187         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11188         * modules/sys_wait-tests (Files): Likewise.
11189         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11190         * tests/test-stdlib.c: Include test-sys_wait.h.
11191         (main): Invoke test_sys_wait_macros.
11192         * tests/test-sys_wait.c: Include test-sys_wait.h.
11193         (main): Invoke test_sys_wait_macros.
11194
11195 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11196
11197         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11198         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11199         sure Windows sockets are working before calling getaddrinfo.
11200         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11201         * doc/gnulib.texi (Windows sockets): Fix typo.
11202
11203 2010-09-25  Bruno Haible  <bruno@clisp.org>
11204
11205         Tests for module 'regex-quote'.
11206         * modules/regex-quote-tests: New file.
11207         * tests/test-regex-quote.c: New file.
11208
11209         New module 'regex-quote'.
11210         * lib/regex-quote.h: New file.
11211         * lib/regex-quote.c: New file.
11212         * modules/regex-quote: New file.
11213         Suggested by Reuben Thomas <rrt@sc3d.org>.
11214
11215 2010-09-24  Bruno Haible  <bruno@clisp.org>
11216
11217         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11218         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11219
11220 2010-09-23  Bruno Haible  <bruno@clisp.org>
11221
11222         setenv: Relax license.
11223         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11224         Blake.
11225         Requested by Eric Blake.
11226
11227 2010-09-22  Bruno Haible  <bruno@clisp.org>
11228
11229         termios: Relax license.
11230         * modules/termios (License): Change to LGPLv2+.
11231         Requested by Eric Blake.
11232
11233 2010-09-22  Bruno Haible  <bruno@clisp.org>
11234
11235         threadlib: Allow the package to change the default to 'no'.
11236         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11237         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11238         Reported by Paul Eggert.
11239
11240 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11241             Bruno Haible  <bruno@clisp.org>
11242
11243         Fix endless loop in mbmemcasecoll.
11244         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11245         byte.
11246         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11247
11248 2010-09-22  Bruno Haible  <bruno@clisp.org>
11249
11250         Tests for module 'memcoll'.
11251         * modules/memcoll-tests: New file.
11252         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11253
11254         memcoll, xmemcoll: Clarify size vs. length.
11255         * modules/memcoll.c (memcoll0): Clarify specification.
11256         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11257         passed to collate_error.
11258
11259 2010-09-22  Bruno Haible  <bruno@clisp.org>
11260
11261         Tests for module 'memcasecmp'.
11262         * modules/memcasecmp-tests: New file.
11263         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11264
11265 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11266
11267         * lib/pthread.in.h: Add split double-inclusion guard, and include
11268         system <pthread.h> if there is one.  Use @@-style as in other
11269         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11270         pthread.h doesn't.
11271         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11272         (pthread_mutexattr_settype, pthread_mutex_trylock):
11273         New static inline functions, if there's no system <pthread.h>.
11274         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11275         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11276         Approximate with mutexes if the system lacks spinlocks, as in
11277         MacOS.
11278         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11279         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11280         @@-style.  Check for spinlocks separately.
11281         (gl_PTHREAD_DEFAULTS): New macro.
11282         * modules/pthread: Redo to use a more typical style for in.h files.
11283
11284 2010-09-21  Eric Blake  <eblake@redhat.com>
11285
11286         net_if: enhance tests
11287         * tests/test-net_if.c (main): Move signature checks earlier.
11288         Print failures to stderr.
11289         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11290         Document the bug that we do not yet fix.
11291
11292 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11293
11294         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11295         about gnulib, not GSS.
11296
11297 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11298
11299         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11300         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11301         for Emacs.
11302         * build-aux/pmccabe2html: Make Makefile.am example code more
11303         cut-and-paste friendly.
11304
11305 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11306
11307         * tests/test-net_if.c: New file.
11308         * modules/net_if-tests: New file.
11309
11310 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11311
11312         pthread: add pthread_spin_destroy
11313         * lib/pthread.in.h (pthread_spin_destroy): New function.
11314
11315 2010-09-19  Bruno Haible  <bruno@clisp.org>
11316
11317         gnulib-tool: Fix --help output.
11318         * gnulib-tool (func_usage): Fix help message.
11319         Reported by Reuben Thomas <rrt@sc3d.org>.
11320
11321 2010-09-18  Jim Meyering  <meyering@redhat.com>
11322
11323         maint.mk: avoid unexpanded \n in two diagnostics
11324         * top/maint.mk (sc_prohibit_always_true_header_tests):
11325         Don't use a literal \n in a halt=... assignment.  It would not be
11326         expanded, and the two \n bytes would appear in the diagnostic output
11327         rather than the desired newline.  Use halt=$$(printf ... instead.
11328         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11329
11330 2010-09-18  Bruno Haible  <bruno@clisp.org>
11331
11332         netinet_in: Doc tweak.
11333         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11334         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11335
11336 2010-09-18  Jim Meyering  <meyering@redhat.com>
11337
11338         init.sh: correct an outdated comment
11339         * tests/init.sh (create_exe_shims_):  s/function/alias/
11340
11341         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11342         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11343         a file named "*.exe" is removed between the glob expansion and the
11344         processing of that oddly named file.
11345
11346 2010-09-17  Eric Blake  <eblake@redhat.com>
11347
11348         mirbsd: add some more support
11349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11350         in BSD family.
11351         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11352         devices as OpenBSD.
11353         * m4/host-os.m4 (mirbsd): Add MirBSD.
11354
11355         tests: fix unportable assumption on sys/wait.h
11356         * tests/test-sys_wait.c (main): Relax test.
11357         * tests/test-stdlib.c (main): Likewise.
11358
11359         init.sh: accomodate directory with no .exes
11360         * tests/init.sh: Accomodate directory containing only scripts.
11361
11362         tests: avoid compiler warning
11363         * tests/test-stdlib.c (main): Use the variable.
11364
11365         fdutimens, fdutimensat: update signature, again
11366         * lib/utimens.h (gl_futimens): Delete, and move signature...
11367         (fdutimens): ...here.
11368         (fdutimensat): Rearrange signature.
11369         (lutimensat): Rename variable for clarity.
11370         * lib/fdutimensat.c (fdutimensat): Update signature.
11371         * lib/utimens.c (fdutimens): Likewise.
11372         (gl_futimens): Delete.
11373         (utimens, lutimens): Update callers.
11374         * lib/futimens.c (futimens): Likewise.
11375         * tests/test-fdutimensat.c: Likewise.
11376         * tests/test-utimens.c: Likewise.
11377         * tests/test-futimens.h: Update comment.
11378         * NEWS: Mention this.
11379         Suggested by Paul Eggert.
11380
11381 2010-09-17  Bruno Haible  <bruno@clisp.org>
11382
11383         Take over the maintenance of some older macros from Autoconf.
11384         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11385         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11386         GNU Autoconf.
11387         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11388         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11389
11390 2010-09-17  Eric Blake  <eblake@redhat.com>
11391
11392         fdutimensat: drop atflag validation
11393         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11394         with valid fd, to close a race scenario where futimens is
11395         unsupported and FILE was replaced by a symlink.
11396         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11397         accordingly.
11398         Suggested by Paul Eggert.
11399
11400 2010-09-16  Bruno Haible  <bruno@clisp.org>
11401
11402         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11403         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11404
11405 2010-09-16  Bruno Haible  <bruno@clisp.org>
11406
11407         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11408         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11409         login_tty exists.
11410         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11411
11412 2010-09-16  Bruno Haible  <bruno@clisp.org>
11413
11414         login_tty: Make the replacement code work on BSD systems.
11415         * lib/login_tty.c: Include <sys/ioctl.h>.
11416         (login_tty): Use ioctl TIOCSCTTY when available.
11417         * modules/login_tty (Depends-on): Add sys_ioctl.
11418         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11419
11420 2010-09-16  Bruno Haible  <bruno@clisp.org>
11421
11422         login_tty: Stricter unit test.
11423         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11424         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11425         and tcgetsid() after login_tty.
11426         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11427
11428 2010-09-16  Bruno Haible  <bruno@clisp.org>
11429
11430         New module 'tcgetsid'.
11431         * lib/tcgetsid.c: New file.
11432         * m4/tcgetsid.m4: New file.
11433         * modules/tcgetsid: New file.
11434         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11435         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11436         GNULIB_TCGETSID, HAVE_TCGETSID.
11437         * lib/termios.in.h: Include <sys/types.h>.
11438         (tcgetsid): New declaration.
11439         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11440         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11441         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11442         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11443
11444 2010-09-16  Bruno Haible  <bruno@clisp.org>
11445
11446         Tests for module 'termios'.
11447         * modules/termios-c++-tests: New file.
11448         * modules/termios-tests: New file.
11449         * tests/test-termios-c++.cc: New file.
11450         * tests/test-termios.c: New file.
11451
11452         New module 'termios'.
11453         * modules/termios: New file.
11454         * lib/termios.in.h: New file.
11455         * m4/termios_h.m4: New file.
11456         * doc/posix-headers/termios.texi: Mention the new module.
11457
11458 2010-09-16  Eric Blake  <eblake@redhat.com>
11459
11460         fdutimensat: add an atflag parameter
11461         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11462         * lib/utimens.h (fdutimensat): Update prototype.
11463         * tests/test-fdutimensat.c: Adjust test to match.
11464         * NEWS: Document the change.
11465         Suggested by Paul Eggert.
11466
11467 2010-09-16  Bruno Haible  <bruno@clisp.org>
11468
11469         Fix typos in comments.
11470         * lib/striconveh.h: Fix typo in comment.
11471         * lib/login_tty.c (login_tty): Likewise.
11472
11473 2010-09-15  Bruno Haible  <bruno@clisp.org>
11474
11475         stdlib: clarify MirBSD WEXITSTATUS bug
11476         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11477         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11478
11479 2010-09-15  Eric Blake  <eblake@redhat.com>
11480
11481         stdlib: work around MirBSD WEXITSTATUS bug
11482         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11483         * modules/stdlib (Depends-on): Add sys_wait.
11484         * tests/test-sys_wait.c (main): Enhance test.
11485         * tests/test-stdlib.c (main): Likewise.
11486         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11487
11488         docs: mention MacOS issue with WEXITSTATUS(constant)
11489         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11490         issue.
11491         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11492
11493         strnlen: add tests
11494         * modules/strnlen-tests: New file.
11495         * tests/test-strnlen.c: Likewise.
11496
11497 2010-09-14  Bruno Haible  <bruno@clisp.org>
11498
11499         unistr/base: Avoid link errors when module 'libunistring' is also used.
11500         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11501         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11502         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11503         Declare also when HAVE_LIBUNISTRING is set.
11504         Reported by Pádraig Brady <P@draigbrady.com>.
11505
11506 2010-09-14  Eric Blake  <eblake@redhat.com>
11507
11508         test-rawmemchr: make more robust
11509         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11510         (Depends-on, configure.ac): Add needed prerequisites to use it.
11511         * modules/memchr-tests (Files, Depends-on, configure.ac):
11512         Likewise, to avoid implicit reliance on memchr module prereqs.
11513         * tests/test-memchr.c (main): Ensure proper masking.
11514         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11515         reads.
11516
11517         memchr: detect glibc Alpha bug
11518         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11519         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11520         Alpha.
11521         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11522         * tests/test-memchr.c (main): Enhance test.
11523         Reported by Nelson H. F. Beebe.
11524
11525 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11526
11527         fts, getcwd, glob: audit for dirfd returning -1
11528         * lib/fts.c (opendir): Remove #define; no longer used.
11529         (opendirat): New arg PDIR_FD.  All callers changed.
11530         (fts_build, _opendir2): Use new opendirat to avoid the need for
11531         dirfd, or for checking whether dirfd returns a negative value.
11532         Don't use opendir; always use openat followed by fdopendir.
11533         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11534         it.
11535         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11536         returns -1 here.
11537         * modules/fts (Depends-on): Remove dirfd.
11538         * modules/getcwd (Depends-on): Likewise.
11539
11540 2010-09-13  Eric Blake  <eblake@redhat.com>
11541
11542         float: fix broken MirBSD header
11543         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11544         * doc/posix-headers/float.texi (float.h): Document it.
11545
11546 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11547
11548         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11549         * lib/fts.c (opendirat): New arg extra_flags.
11550         (__opendir2): Use it to avoid following symlinks when opening
11551         a directory, if symlinks are not supposed to be followed.  See
11552         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11553
11554         fdopendir: preserve argument fd before returning
11555         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11556         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11557         (fdopendir): Use them, arranging for FD to be open to the same
11558         directory that it was when it started.  (It might be temporarily
11559         closed while fdopendir is running, so this not thread- or
11560         signal-safe.)  Be careful to do the right thing even when file
11561         descriptors are scarce and dup fails with errno == EMFILE.  See
11562         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11563
11564 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11565
11566         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11567         * NEWS: Document change.
11568         * m4/regex.m4: Disable test for regoff_t size.
11569
11570 2010-09-13  Jim Meyering  <meyering@redhat.com>
11571
11572         fts: don't operate on an invalid file descriptor after failed dup
11573         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11574         negative file descriptor.
11575
11576 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11577
11578         savedir: add streamsavedir, deprecate fdsavedir
11579         * NEWS: Mention deprecation of fdsavedir.
11580         * lib/savedir.c (streamsavedir): New extern function, whose name
11581         ends in "savedir" to be consistent with the others.  This differs
11582         from savedirstream in that it doesn't close its argument.  The
11583         next version of GNU tar will use this instead of fdsavedir, to
11584         avoid some race conditions and conserve file descriptors.
11585         (savedirstream): Reimplement as a wrapper around streamsavedir.
11586         (fdsavedir): Add a comment deprecating this function.  As far as
11587         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11588         * lib/savedir.h (streamsavedir): New decl.
11589         (fdsavedir): Add a comment deprecating this.
11590
11591 2010-09-10  Bruno Haible  <bruno@clisp.org>
11592
11593         langinfo: Fix last commit.
11594         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11595         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11597
11598 2010-09-10  Bruno Haible  <bruno@clisp.org>
11599
11600         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11601         * lib/progreloc.c (O_EXEC): Define fallback.
11602
11603 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11604
11605         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11606         * NEWS: Document recent changes to fcntl-h.
11607         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11608         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11609         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11610         Similarly for O_SEARCH; this last was already true, but not documented.
11611         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11612         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11613         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11614         Likewise.
11615         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11616         is zero, not whether it is defined.
11617         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11618         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11619         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11620
11621 2010-09-10  Bruno Haible  <bruno@clisp.org>
11622
11623         langinfo, nl_langinfo: Fix for IRIX 5.3.
11624         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11625         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11626         HAVE_LANGINFO_YESEXPR.
11627         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11628         HAVE_LANGINFO_YESEXPR.
11629         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11630         HAVE_LANGINFO_T_FMT_AMPM is 0.
11631         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11632         HAVE_LANGINFO_YESEXPR is 0.
11633         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11634         NOEXPR.
11635         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11636         * doc/posix-functions/nl_langinfo.texi: Likewise.
11637         Reported by Eric Blake.
11638
11639 2010-09-10  Bruno Haible  <bruno@clisp.org>
11640
11641         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11642         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11643         on FreeBSD 8.0 and OpenBSD 4.6.
11644         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11645         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11646         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11647         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11648         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11649         ac_includes_default.
11650         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11651
11652 2010-09-09  Eric Blake  <eblake@redhat.com>
11653
11654         strsignal: work around NetBSD bug
11655         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11656         * lib/string.in.h (includes): Likewise.
11657         * doc/posix-functions/strsignal.texi (strsignal): Document the
11658         bug.
11659         Reported by Nelson H. F. Beebe.
11660
11661         gnulib-tool: work with NetBSD /bin/sh
11662         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11663         (func_get_description, func_get_comment, func_get_status)
11664         (func_get_notice, func_get_applicability, func_get_filelist)
11665         (func_get_dependencies, func_get_autoconf_early_snippet)
11666         (func_get_autoconf_snippet, func_get_automake_snippet)
11667         (func_get_include_directive, func_get_link_directive)
11668         (func_get_license, func_get_maintainer, func_import): Avoid
11669         shell syntax errors from parsing syntax extensions.
11670
11671 2010-09-09  Bruno Haible  <bruno@clisp.org>
11672
11673         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11674         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11675         a reliable way to determine whether the 'alias' command works.
11676
11677 2010-09-08  Jim Meyering  <meyering@redhat.com>
11678
11679         init.sh: penalize a set-x-impaired shell; don't disqualify it
11680         * tests/init.sh: Too many shells corrupt application stderr when
11681         you set -x, so we can't afford to disqualify them, since at least
11682         on Irix-6.5, that would disqualify all bourne shells.
11683         Instead, use a two-pass approach.
11684         On the first pass, try to find a shell that meets the stricter
11685         condition that set -x does not corrupt stderr.
11686         If no shell meets the stricter condition, retest each candidate
11687         shell, but without that extra condition.  Finally, when
11688         VERBOSE=yes is requested and set -x might cause trouble, simply
11689         issue a warning and refrain from enabling debug output.
11690
11691 2010-09-08  Eric Blake  <eblake@redhat.com>
11692
11693         unsetenv: fix OpenBSD bug
11694         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11695         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11696         documentation.
11697         Reported by Jim Meyering.
11698
11699         strtod: work around IRIX 6.5 bug
11700         * lib/strtod.c (strtod): Reparse number on shorter string if
11701         exponent parse was invalid.
11702         * tests/test-strtod.c (main): Add check for "0x1p 2".
11703         Reported by Tom G. Christensen.
11704
11705         getopt: optimize previous patch
11706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11707         empty variable.  Speed up awk script.
11708         Reported by Paolo Bonzini.
11709
11710 2010-09-08  Jim Meyering  <meyering@redhat.com>
11711
11712         test.sh: disqualify shells for which set -x corrupts stderr
11713         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11714         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11715         appear in stderr output.  For example, this command:
11716             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11717         prints "P=1" on those two systems:
11718
11719 2010-09-08  Bruno Haible  <bruno@clisp.org>
11720
11721         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11722         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11723         commands, because some shells ignore redirections when there is an
11724         error in the command lookup.
11725         Reported by Eric Blake.
11726
11727 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11728
11729         * lib/regex.h: Fix a mention of `regex_compile' (should be
11730         `re_compile_pattern').
11731         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11732         (re_set_registers): Correct name of parameter in comment.
11733
11734         * doc/regex.texi: Add documentation for missing syntax flags.
11735         Remove commented-out documentation of defunct syntax option
11736         RE_NO_EMPTY_ALTS.
11737         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11738         Add documentation of re_set_registers.
11739         Document trick to re-use a pattern buffer by setting fastmap manually.
11740         Update documentation of struct re_pattern_buffer per public members.
11741         Uncomment documentation of equivalence class operators and
11742         collating symbol operators, since they are now implemented,
11743         Explain leftmost-longest matching in relation to alternatives.
11744         Tidy documentation of substring matching.
11745         Remove POSIX documentation, which is done better in
11746         glibc, and refer the reader there. Keep BSD API documentation, as
11747         that is not readily available elsewhere.
11748
11749 2010-09-07  Eric Blake  <eblake@redhat.com>
11750
11751         getopt: handle POSIXLY_CORRECT set but not exported
11752         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11753         export state of POSIXLY_CORRECT, due to bash set -o posix.
11754         Reported by Dustin J. Mitchell.
11755
11756 2010-09-05  Bruno Haible  <bruno@clisp.org>
11757
11758         gnulib-tool: Highlight the changed options.
11759         * gnulib-tool (func_usage): Display the --import, --add-import,
11760         --remove-import explanations in bold font.
11761
11762 2010-09-06  Karl Berry  <karl@gnu.org>
11763
11764         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11765
11766 2010-09-05  Bruno Haible  <bruno@clisp.org>
11767
11768         uniwidth/width: Update comment.
11769         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11770         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11771
11772 2010-09-05  Bruno Haible  <bruno@clisp.org>
11773
11774         isinf, isnan: Relax license.
11775         * modules/isinf (License): Change from GPL to LGPL, with consent from
11776         Ben Pfaff.
11777         * modules/isnan (License): Likewise.
11778         Requested by Ludovic Courtès.
11779
11780 2010-09-04  Bruno Haible  <bruno@clisp.org>
11781
11782         gnulib-tool: Help migration from --import to --add-import or --update.
11783         * gnulib-tool: Emit a verbose error message when --import is used
11784         without any module name.
11785
11786 2010-09-04  Bruno Haible  <bruno@clisp.org>
11787
11788         Update doc about gnulib-tool.
11789         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11790         'gnulib-tool --update' in more detail.
11791         Reported by Eric Blake.
11792
11793 2010-09-04  Bruno Haible  <bruno@clisp.org>
11794
11795         gnulib-tool: Change --import. New options --add/remove-import.
11796         * gnulib-tool: New options --add-import, --remove-import.
11797         (func_usage): Document them.
11798         (have_associative): Define always.
11799         (func_import): In import mode, don't merge the specified settings with
11800         the cached settings. Implement remove-import mode.
11801         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11802         Explain when to use them versus --import.
11803         (Simple update): Use --add-import instead of --import.
11804         * NEWS: Mention the change.
11805
11806 2010-09-04  Bruno Haible  <bruno@clisp.org>
11807
11808         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11809         separate gnulib.mk.
11810
11811 2010-09-04  Bruno Haible  <bruno@clisp.org>
11812
11813         gnulib-tool: Don't talk about CVS any more.
11814         * gnulib-tool (func_usage, func_import): Write "version control"
11815         instead of CVS.
11816
11817 2010-09-04  Jim Meyering  <meyering@redhat.com>
11818
11819         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11820         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11821         false positives (whose names may be ill-chosen) when searching
11822         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11823         would cause a false-positive.
11824
11825         avoid coreutils "make distcheck" failure
11826         Coreutils tests with an absolute build directory name that contains
11827         a space.  Not quoting this directory name caused a failure.
11828         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11829         * tests/test-vc-list-files-cvs.sh: Likewise.
11830
11831 2010-09-04  Bruno Haible  <bruno@clisp.org>
11832
11833         gnulib-tool: Avoid error when run in a package without Makefile.am.
11834         * gnulib-tool: When collecting the m4dirs in a package that does not
11835         have a Makefile.am, eliminate those directories that contain no
11836         gnulib-cache.m4. Fix expression that counts these directories.
11837
11838 2010-09-04  Bruno Haible  <bruno@clisp.org>
11839
11840         update-copyright test: Improve output when perl is missing or too old.
11841         * tests/test-update-copyright.sh: Move test of Perl version down after
11842         the test whether Perl exists. Provide an explanation relating Perl's
11843         error message to Automake's SKIP: message.
11844
11845 2010-09-04  Bruno Haible  <bruno@clisp.org>
11846
11847         Don't augment PATH in TESTS_ENVIRONMENT.
11848         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11849         set abs_aux_dir instead of augmenting PATH.
11850         * modules/vc-list-files-tests (Makefile.am): Likewise.
11851         * tests/test-update-copyright.sh: Augment PATH here.
11852         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11853         path_prepend_.
11854         * tests/test-vc-list-files-git.sh: Likewise.
11855
11856 2010-09-04  Jim Meyering  <meyering@redhat.com>
11857
11858         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11859         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11860
11861 2010-09-04  Bruno Haible  <bruno@clisp.org>
11862
11863         strdup: Fix compilation error in C++ mode.
11864         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11865         the macro.
11866
11867 2010-09-04  Bruno Haible  <bruno@clisp.org>
11868
11869         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11870         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11871         macro into a function.
11872         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11873
11874 2010-09-04  Bruno Haible  <bruno@clisp.org>
11875
11876         Set PATH_SEPARATOR the same way autoconf does.
11877         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11878         the value of PATH_SEPARATOR the same way autoconf-generated configure
11879         scripts do.
11880         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11881         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11882
11883 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11884
11885         Set PATH_SEPARATOR the same way autoconf does.
11886         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11887         the same way autoconf-generated configure scripts do.
11888         * posix-modules: Likewise.
11889
11890 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11891
11892         hash: fix safe_hasher const typo
11893         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11894         const; otherwise, there is a type error later.
11895
11896 2010-09-02  Jim Meyering  <meyering@redhat.com>
11897
11898         test-update-copyright.sh: require perl 5.8.0
11899         * tests/test-update-copyright.sh: Require 5.8.0,
11900         which Tom G. Christensen has confirmed is adequate,
11901         while 5.6.1 is not.
11902
11903 2010-09-02  Eric Blake  <eblake@redhat.com>
11904
11905         tests: init.sh improvements for re-exec'ing with zsh
11906         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11907         -vx through shell re-exec.
11908         Reported by Tom G. Christensen.
11909
11910         wctype: fix typo in previous commit
11911         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11912         Reported by Ludovic Courtès.
11913
11914 2010-09-02  Jim Meyering  <meyering@redhat.com>
11915
11916         test-update-copyright.sh: skip test if Perl is too old
11917         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11918         Reported by Tom G. Christensen.
11919
11920 2010-09-02  Bruno Haible  <bruno@clisp.org>
11921
11922         wctype: Avoid compilation error on IRIX 6.5.30.
11923         * lib/wctype.in.h (iswblank): Declare with a replacement if
11924         REPLACE_ISWBLANK is set.
11925         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11926         declared. Set REPLACE_ISWBLANK.
11927         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11928         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11929         * doc/posix-headers/wctype.texi: Likewise.
11930         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11931
11932 2010-09-01  Bruno Haible  <bruno@clisp.org>
11933
11934         New module 'socketlib'.
11935         * modules/socketlib: New file.
11936         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11937         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11938         * modules/sockets (Depends-on): Add socketlib.
11939         Suggested by Sam Steingold <sds@gnu.org>.
11940
11941 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11942
11943         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11944
11945         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11946         when one needs search access to a directory but not read access.
11947         On systems where it is available, it works in some cases where
11948         O_RDONLY does not, namely on directories that are searchable but
11949         not readable, and which need only to be searchable.  If O_SEARCH
11950         is not available, fall back to the traditional method of using
11951         O_RDONLY.
11952
11953         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11954         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11955         when opening a directory that needs only to be searchable.
11956         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11957         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11958         * lib/openat-proc.c (openat_proc_name): Likewise.
11959         * lib/openat.c (openat_needs_fchdir): Likewise.
11960         * lib/save-cwd.c (save_cwd): Likewise.
11961         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11962
11963 2010-08-28  Bruno Haible  <bruno@clisp.org>
11964
11965         New module 'host-cpu-c-abi'.
11966         * modules/host-cpu-c-abi: New file.
11967         * m4/host-cpu-c-abi.m4: New file, based on part of
11968         clisp/src/m4/general.m4.
11969         Requested by Sam Steingold <sds@gnu.org>.
11970
11971 2010-08-31  Eric Blake  <eblake@redhat.com>
11972         and Jim Meyering  <meyering@redhat.com>
11973
11974         hash: factor, and guard against misbehaving hasher function
11975         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11976         of table->hasher's return value.  Also protect against a hash value
11977         so large that adding it to table->bucket results in a NULL pointer.
11978         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11979         Use it in place of open-coded check-and-abort.
11980
11981 2010-08-30  Bruno Haible  <bruno@clisp.org>
11982
11983         hash: silence spurious clang warning
11984         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11985         Reported by Eric Blake.
11986
11987 2010-08-30  Eric Blake  <eblake@redhat.com>
11988
11989         strstr, memmem, strcasestr: avoid leaked shell message
11990         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11991         FreeBSD.
11992         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11994
11995         tests: silence clang warning
11996         * tests/test-malloca.c (do_allocation): Avoid dead store.
11997
11998 2010-08-29  Bruno Haible  <bruno@clisp.org>
11999
12000         gettext: Fix recent mistake.
12001         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12002
12003 2010-08-29  Bruno Haible  <bruno@clisp.org>
12004
12005         selinux-h: Offer a --without-selinux option.
12006         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12007         --without-selinux was specified, skip all tests and define
12008         HAVE_SELINUX_SELINUX_H to 0.
12009         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12010         set LIB_SELINUX to empty.
12011         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12012         gl_LIBSELINUX. If --without-selinux was specified, replace
12013         selinux/context.h.
12014         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12015
12016 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12017             Bruno Haible  <bruno@clisp.org>
12018
12019         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12020         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12021         of HAVE_REALLOC.
12022         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12023         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12024         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12025         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12026
12027 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12028             Bruno Haible  <bruno@clisp.org>
12029
12030         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12031         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12032         HAVE_CALLOC.
12033         * lib/xmalloc.c: Update accordingly.
12034         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12035         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12036         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12037
12038 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12039             Bruno Haible  <bruno@clisp.org>
12040
12041         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12042         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12043         HAVE_MALLOC.
12044         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12045         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12046         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12047
12048 2010-08-29  Bruno Haible  <bruno@clisp.org>
12049
12050         Update modules list.
12051         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12052         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12053         (String handling <string.h>): Add astrxfrm.
12054         (File system functions): Add readlinkat.
12055
12056 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12057
12058         Tests for module 'realloc-gnu'.
12059         * modules/realloc-gnu-tests: New file.
12060         * tests/test-realloc-gnu.c: New file.
12061
12062         Tests for module 'calloc-gnu'.
12063         * modules/calloc-gnu-tests: New file.
12064         * tests/test-calloc-gnu.c: New file.
12065
12066         Tests for module 'malloc-gnu'.
12067         * modules/malloc-gnu-tests: New file.
12068         * tests/test-malloc-gnu.c: New file.
12069
12070 2010-08-28  Bruno Haible  <bruno@clisp.org>
12071
12072         Rename module 'realloc' -> 'realloc-gnu'.
12073         * modules/realloc-gnu: New file, copied from modules/realloc.
12074         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12075         obsolete.
12076         * modules/mgetgroups (Depends-on): Update.
12077         * doc/posix-functions/realloc.texi: Update.
12078         * NEWS: Mention the change.
12079
12080         Rename module 'calloc' -> 'calloc-gnu'.
12081         * modules/calloc-gnu: New file, copied from modules/calloc.
12082         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12083         obsolete.
12084         * doc/posix-functions/calloc.texi: Update.
12085         * NEWS: Mention the change.
12086
12087         Rename module 'malloc' -> 'malloc-gnu'.
12088         * modules/malloc-gnu: New file, copied from modules/malloc.
12089         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12090         obsolete.
12091         * modules/argp (Depends-on): Update.
12092         * modules/regex (Depends-on): Update.
12093         * doc/posix-functions/malloc.texi: Update.
12094         * NEWS: Mention the change.
12095
12096 2010-08-28  Eric Blake  <eblake@redhat.com>
12097
12098         pread, pwrite: add missing dependency
12099         * modules/pread (Depends-on): Add extensions.
12100         * modules/pwrite (Depends-on): Likewise.
12101
12102 2010-08-28  Bruno Haible  <bruno@clisp.org>
12103
12104         unistr/u*-strchr: Fix tests dependencies.
12105         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12106         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12107         Reported by Ian Beckwith <ianb@erislabs.net>.
12108
12109 2010-08-28  Bruno Haible  <bruno@clisp.org>
12110
12111         read-file: Don't occupy too much unused memory.
12112         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12113
12114 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12115             Eric Blake  <eblake@redhat.com>
12116             Bruno Haible  <bruno@clisp.org>
12117
12118         read-file: Avoid memory reallocations with regular files.
12119         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12120         (fread_file): With regular files, use the remaining length as the
12121         initial buffer size.  Check against overflow.
12122         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12123         sys_stat.
12124
12125 2010-08-28  Bruno Haible  <bruno@clisp.org>
12126
12127         ftello: Relax license.
12128         * modules/ftello (License): Relax to LGPLv2+.
12129         Reported by Eric Blake.
12130
12131 2010-08-28  Bruno Haible  <bruno@clisp.org>
12132
12133         Avoid relocwrapper link errors due to gnulib replacement functions.
12134         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12135         function.
12136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12137
12138 2010-08-28  Bruno Haible  <bruno@clisp.org>
12139
12140         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12141         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12142         defined.
12143         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12144         Suggested by Eric Blake.
12145
12146 2010-08-28  Bruno Haible  <bruno@clisp.org>
12147
12148         sys_socket, netdb: Ensure socklen_t gets defined.
12149         * modules/sys_socket (Depends-on): Add socklen.
12150         * modules/netdb (Depends-on): Likewise.
12151         * modules/getaddrinfo (Depends-on): Remove socklen.
12152         * modules/getsockopt (Depends-on): Likewise.
12153         * modules/setsockopt (Depends-on): Likewise.
12154         * tests/test-sys_socket.c: Check that socklen_t is defined.
12155         * tests/test-netdb.c: Likewise.
12156         * m4/socklen.m4: Update comments.
12157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12158
12159 2010-08-27  Eric Blake  <eblake@redhat.com>
12160
12161         login_tty: add missing dependency
12162         * modules/login_tty (Depends-on): Add pty.
12163
12164 2010-08-26  Eric Blake  <eblake@redhat.com>
12165
12166         lib-symbol-versions: fix m4 quoting
12167         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12168         format for AC_LINK_IFELSE.
12169
12170         glob: fix compile test
12171         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12172
12173         btowc: fix missing file
12174         * modules/btowc (Files): Also ship locale-fr.m4.
12175
12176         lseek: fix link test
12177         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12178         AC_LINK_IFELSE.
12179
12180         include_next: silence autoconf 2.68 warning
12181         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12182         AC_COMPILE_IFELSE as special.
12183         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12184         autoconf < 2.68.
12185
12186         acl: fix compilation test
12187         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12188         AC_COMPILE_IFELSE.
12189
12190 2010-08-26  Bruno Haible  <bruno@clisp.org>
12191
12192         Modernize AC_TRY_RUN invocations.
12193         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12194         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12195         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12196         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12197         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12198         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12199         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12201         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12202         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12203         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12204         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12205         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12206         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12207         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12208         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12209         gl_MBRLEN_NUL_RETVAL): Likewise.
12210         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12211         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12212         Likewise.
12213         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12214         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12215         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12216         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12217         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12218         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12219         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12220         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12221         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12222         Likewise.
12223         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12224         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12225         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12226         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12227         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12228         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12229         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12230         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12231         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12233
12234 2010-08-26  Bruno Haible  <bruno@clisp.org>
12235
12236         Modernize AC_TRY_LINK invocations.
12237         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12238         AC_TRY_LINK.
12239         * m4/argp.m4 (gl_ARGP): Likewise.
12240         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12241         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12242         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12243         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12244         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12245         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12246         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12247         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12248         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12249         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12250         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12251         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12252         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12253         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12254         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12255         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12256         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12257         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12258         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12259         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12260         Likewise.
12261         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12262         Likewise.
12263         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12264         Likewise.
12265         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12266         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12267         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12268         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12269         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12270         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12271         * m4/servent.m4 (gl_SERVENT): Likewise.
12272         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12273         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12274         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12275         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12276         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12277         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12278         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12280         * modules/tsearch-tests (configure.ac): Likewise.
12281
12282 2010-08-26  Bruno Haible  <bruno@clisp.org>
12283
12284         Modernize AC_TRY_COMPILE invocations.
12285         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12286         AC_TRY_COMPILE.
12287         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12288         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12289         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12290         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12291         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12292         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12293         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12294         * m4/lock.m4 (gl_LOCK): Likewise.
12295         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12296         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12297         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12298         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12299         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12300         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12301         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12302         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12303         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12304         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12305         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12306         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12307         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12308         extraneous semicolon.
12309
12310 2010-08-26  Jim Meyering  <meyering@redhat.com>
12311
12312         stat-time: relax license LGPL
12313         * modules/stat-time (License): Change from GPL to LGPL,
12314         with consent from all contributors, for use in libguile.
12315         Requested by Ludovic Courtès.
12316
12317 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12318
12319         poll: return immediately on POLLHUP.
12320         * lib/poll.c (poll): Always set timeout before wait_timeout is
12321         computed.
12322
12323 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12324
12325         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12326         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12327         rmdir ("dir/.//"), unlinkat.
12328
12329 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12330
12331         stdbool: avoid spurious failure with modern xlc
12332         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12333
12334 2010-08-24  Bruno Haible  <bruno@clisp.org>
12335
12336         getloadavg: simplify code
12337         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12338         gl_have_func. Update comments.
12339
12340 2010-08-24  Eric Blake  <eblake@redhat.com>
12341
12342         getloadavg: don't define SVR4 on cygwin
12343         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12344         only define SVR4 when -lkvm is required.
12345         Reported by Yaakov Selkowitz.
12346
12347 2010-08-24  Bruno Haible  <bruno@clisp.org>
12348
12349         priv-set: fix comment
12350         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12351
12352 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12353
12354         priv-set: fix comments
12355         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12356         to match code, as suggested by David Bartley in:
12357         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12358
12359 2010-08-23  Eric Blake  <eblake@redhat.com>
12360
12361         stdbool: avoid rejecting clang
12362         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12363         * tests/test-stdbool.c: Enable more tests if using the system
12364         <stdbool.h> instead of the gnulib replacement.
12365         (main): Move xlc bug test to a runtime test for all compilers.
12366         Reported by Anders Kaseorg.
12367
12368         argz: fix shell quoting issue
12369         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12370         Reported by Charles Wilson.
12371
12372 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12373             Erik Faye-Lund <kusmabite@gmail.com>
12374
12375         poll, select: handle ERROR_BROKEN_PIPE.
12376         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12377         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12378         * lib/select.c (win32_compute_revents): Do not mark a pipe
12379         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12380
12381 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12382
12383         fts: allow compilation with C++
12384         * lib/fts_.h: Specify extern "C" linkage with C++.
12385
12386 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12387
12388         Fix gnulib-tool sed script de-commentation for AIX sed.
12389         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12390         sed.
12391
12392 2010-08-17  Eric Blake  <eblake@redhat.com>
12393
12394         test-stddef: test for (some) offsetof bugs
12395         * tests/test-stddef.c: Enhance test to ensure correct type of
12396         offsetof.
12397         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12398         that we are not fixing at this time.
12399
12400 2010-08-15  Bruno Haible  <bruno@clisp.org>
12401
12402         stpncpy: Allow stpncpy to be defined as a macro.
12403         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12404         if it's already correctly declared.
12405         * lib/string.in.h (stpncpy): Undefine before redefining.
12406         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12407
12408 2010-08-14  Bruno Haible  <bruno@clisp.org>
12409
12410         Rename module 'memxfrm' to 'amemxfrm'.
12411         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12412         (amemxfrm): Renamed from memxfrm.
12413         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12414         (amemxfrm): Renamed from memxfrm.
12415         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12416         * NEWS: Mention the change.
12417         * MODULES.html.sh (String handling <string.h>): Update.
12418         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12419         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12420         * lib/unicase/u16-casexfrm.c: Likewise.
12421         * lib/unicase/u32-casexfrm.c: Likewise.
12422         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12423         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12424         * lib/uninorm/u16-normxfrm.c: Likewise.
12425         * lib/uninorm/u32-normxfrm.c: Likewise.
12426         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12427         memxfrm.
12428         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12429         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12430         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12431         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12432         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12433         Suggested by Paul Eggert.
12434
12435 2010-08-14  Bruno Haible  <bruno@clisp.org>
12436
12437         Tests for module 'astrxfrm'.
12438         * modules/astrxfrm-tests: New file.
12439         * tests/test-astrxfrm.c: New file.
12440
12441         New module 'astrxfrm'.
12442         * lib/astrxfrm.h: New file.
12443         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12444         * modules/astrxfrm: New file.
12445
12446 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12447
12448         regex: Tweak doc.
12449         * doc/regex.texi (Overview): Don't mention regex.c.
12450         (GNU Regular Expression Compiling): Likewise.
12451         (Match-end-of-line Operator): Mention 'not_eol'.
12452
12453 2010-08-14  Brian Gough  <bjg@gnu.org>
12454             Bruno Haible  <bruno@clisp.org>
12455
12456         git-merge-changelog: add doc relating to use with bzr and hg.
12457         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12458
12459 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12460
12461         pthread: fix pthread.h creation for srcdir != builddir
12462         * modules/pthread (Makefile.am): Fix the rule to work also in a
12463         non-srcdir build.
12464
12465 2010-08-13  Karl Berry  <karl@gnu.org>
12466
12467         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12468         * doc/posix-*/*: force line break before @url of POSIX
12469         specifications.
12470         Suggested by Werner Lemberg.
12471
12472 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12473
12474         strtod: fix const diagnostic
12475         * lib/strtod.c (strtod): Don't assign const char * to char *,
12476         as this elicits a warning from GCC when warnings are enabled.
12477
12478 2010-08-10  Pádraig Brady <P@draigbrady.com>
12479         and Eric Blake  <eblake@redhat.com>
12480
12481         copy-acl: ignore ENOTSUP on HP-UX
12482         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12483         so that it is available for HP-UX.
12484         * lib/copy-acl.c (qcopy_acl): Use it.
12485         Reported by Patrick M. Callahan.
12486
12487 2010-08-10  Eric Blake  <eblake@redhat.com>
12488
12489         open, chown: relax license
12490         * modules/open (License): Change to LGPLv2+, with consent by all
12491         authors, for use in augeas.
12492         * modules/chown (License): Likewise.
12493         * modules/lchown (Likewise): Likewise.
12494         Requested by Adam Stokes.
12495
12496 2010-08-09  Karl Berry  <karl@gnu.org>
12497
12498         * build-aux/ar-lib: new file, import from Automake.
12499         * config/srclist.txt: autocheck for updates.
12500
12501 2010-08-09  Eric Blake  <eblake@redhat.com>
12502
12503         readlinkat: adjust client modules
12504         * modules/areadlinkat (Depends-on): Use readlinkat, not
12505         symlinkat.
12506         * modules/areadlinkat-with-size (Depends-on): Likewise.
12507
12508         mknod: be more vocal about danger of running tests as root
12509         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12510         root, since that is just asking for problems.
12511         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12512
12513         readlinkat: split into its own module
12514         * modules/symlinkat: Split readlinkat...
12515         * modules/readlinkat: ...into separate module.
12516         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12517         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12518         * lib/symlinkat.c (readlinkat): Move...
12519         * lib/readlinkat.c: ...into new file.
12520         * modules/symlinkat-tests: Split readlinkat test...
12521         * modules/readlinkat-tests: ...into separate module.
12522         * tests/test-symlinkat.c: Split...
12523         * tests/test-readlinkat.c: ...into new file.
12524         * NEWS: Document the split.
12525         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12526         * lib/unistd.in.h (readlinkat): Likewise.
12527         Suggested by Bruno Haible.
12528
12529 2010-08-08  Bruno Haible  <bruno@clisp.org>
12530
12531         memxfrm: Speed up.
12532         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12533         that usually only one call to strxfrm is necessary for each string
12534         part.
12535         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12536
12537 2010-08-07  Karl Berry  <karl@gnu.org>
12538
12539         * doc/posix-headers/limits.texi,
12540         * doc/posix-functions/malloc.texi,
12541         * doc/posix-functions/strsignal.texi: missing @item.
12542         * doc/ld-version-script.texi: spurious leading i.
12543         * doc/regex.texi (Interval Operators): no commas inside @var.
12544
12545 2010-08-01  Bruno Haible  <bruno@clisp.org>
12546
12547         Integrate the regex documentation.
12548         * doc/gnulib.texi: Define 'cn' index.
12549         (Regular expressions): New a chapter that includes regex.texi and
12550         regexprops-generic.texi.
12551         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12552         syntax.
12553
12554         Whitespace cleanup.
12555         * doc/regex.texi: Remove trailing spaces.
12556
12557         Add regex documentation.
12558         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12559         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12560         Written by Kathy A. Hargreaves and Karl Berry.
12561
12562 2010-08-01  Bruno Haible  <bruno@clisp.org>
12563
12564         link: Update documentation.
12565         * doc/posix-functions/link.texi: Update regarding Solaris.
12566
12567 2010-07-31  Bruno Haible  <bruno@clisp.org>
12568
12569         Update modules list.
12570         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12571         (String handling <string.h>): Add memcmp2, memxfrm.
12572         (Container data structures): Add xlist, xsublist, xoset.
12573         (Core language properties): Add alignof, unused-parameter.
12574         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12575         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12576         (Unibyte characters <ctype.h>): New section.
12577         (String handling <string.h>): New section.
12578         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12579         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12580         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12581         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12582         tan, tanh, tanl, y0, y1, yn.
12583         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12584         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12585         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12586         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12587         unlockpt, vdprintf, vdprintf-posix.
12588         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12589         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12590         xconcat-filename.
12591         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12592         getdtablesize, pipe2, pipe2-safer.
12593         (Security): New section.
12594         (Networking functions): Add accept4.
12595         (Signal handling): Add sigpipe.
12596         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12597         mbmemcasecoll.
12598         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12599         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12600         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12601         pipe-filter-ii.
12602         (Misc): Add argp-version-etc, login_tty, parse-duration.
12603
12604 2010-07-31  Bruno Haible  <bruno@clisp.org>
12605
12606         Improve doc in MODULES.html.
12607         * modules/linkat (Description): Add the word "function".
12608         * modules/mkfifo (Description): Likewise.
12609         * modules/mknod (Description): Likewise.
12610         * modules/remove (Description): Likewise.
12611         * modules/renameat (Description): Likewise.
12612         * modules/stat (Description): Likewise.
12613         * modules/symlink (Description): Likewise.
12614         * modules/unlink (Description): Likewise.
12615
12616 2010-07-31  Bruno Haible  <bruno@clisp.org>
12617
12618         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12619         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12620         option --enable/disable-c++ instead of --enable/disable-cxx.
12621         * NEWS: Mention the change.
12622
12623 2010-07-31  Bruno Haible  <bruno@clisp.org>
12624
12625         readlink, areadlink: Relax test a bit.
12626         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12627         alternative to ENOTDIR.
12628         * tests/test-areadlink.h (test_areadlink): Likewise.
12629         Reported by Rainer Tammer.
12630
12631 2010-07-31  Bruno Haible  <bruno@clisp.org>
12632
12633         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12634         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12635         character, perform the search using U_STRCHR.
12636         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12637         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12638         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12639         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12640         Suggested by Paolo Bonzini.
12641
12642 2010-07-31  Bruno Haible  <bruno@clisp.org>
12643
12644         unistr/u*-strstr: Fix dependencies.
12645         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12646         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12647         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12648
12649 2010-07-31  Bruno Haible  <bruno@clisp.org>
12650
12651         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12652         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12653         the beginning of the loop.
12654         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12655         cases in 'switch' statement.
12656
12657         unistr/u8-strchr: Fix several bugs.
12658         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12659         the string. When not found, return NULL, not a pointer near the end.
12660
12661         More tests for unistr/u8-strchr.
12662         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12663         that the function does not read past the first occurrence of the byte
12664         being searched.
12665         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12666         * tests/unistr/test-u16-strchr.c (main): New function.
12667         * tests/unistr/test-u32-strchr.c (main): New function.
12668
12669 2010-07-31  Bruno Haible  <bruno@clisp.org>
12670
12671         posix-modules: Ignore backup files of documentation files.
12672         * posix-modules: grep only through files named *.texi.
12673
12674 2010-07-31  Bruno Haible  <bruno@clisp.org>
12675
12676         symlinkat: Fix documentation.
12677         * doc/posix-functions/readlinkat.texi: Fix module name.
12678
12679 2010-07-31  Bruno Haible  <bruno@clisp.org>
12680
12681         fchownat: Replace also when chown has the trailing slash bug.
12682         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12683         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12684         introduced on 2010-04-10.
12685         Reported by Rainer Tammer.
12686
12687 2010-07-31  Bruno Haible  <bruno@clisp.org>
12688
12689         linkat: Work around AIX 7.1 bug.
12690         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12691         whether linkat handles trailing slash correctly. If not, replace linkat
12692         and define LINKAT_TRAILING_SLASH_BUG.
12693         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12694         check whether (fd1,file1) points to a directory if file1 or file2 ends
12695         in a slash. Code taken from lib/link.c.
12696         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12697         Reported by Rainer Tammer.
12698
12699 2010-07-31  Bruno Haible  <bruno@clisp.org>
12700
12701         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12702         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12703         This disables an xlc optimization that was causing wrong test results.
12704         Reported by Rainer Tammer.
12705
12706 2010-07-31  Bruno Haible  <bruno@clisp.org>
12707
12708         iconv: Work around AIX 6.1..7.1 bug.
12709         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12710         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12711         cross-compiling, guess no on all versions of AIX.
12712         Reported by Rainer Tammer.
12713
12714 2010-07-31  Bruno Haible  <bruno@clisp.org>
12715
12716         readlink: Relax test a bit.
12717         * tests/test-readlink.h (test_readlink): Allow different errno value
12718         when readlink is called with a file name that ends in / and refers to
12719         a file.
12720         Suggested by Eric Blake.
12721         Reported by Rainer Tammer.
12722
12723 2010-07-31  Bruno Haible  <bruno@clisp.org>
12724
12725         copysign: Does not require -lm on glibc systems.
12726         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12727         gl_COMMON_DOUBLE_MATHFUNC.
12728         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12729
12730 2010-07-31  Bruno Haible  <bruno@clisp.org>
12731
12732         duplocale: Work around AIX 7.1 bug.
12733         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12734         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12735         * lib/duplocale.c (rpl_duplocale): Update comment.
12736         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12737         Reported by Rainer Tammer.
12738
12739 2010-07-30  Bruno Haible  <bruno@clisp.org>
12740
12741         dirfd: Avoid link error on AIX 7.1.
12742         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12743         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12744         exist, set REPLACE_DIRFD.
12745         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12746         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12747         * doc/posix-functions/dirfd.texi: Update.
12748         Reported by Rainer Tammer.
12749
12750 2010-07-30  Eric Blake  <eblake@redhat.com>
12751
12752         strtod: next round of AIX fixes
12753         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12754         exponent.
12755         * tests/test-strtod.c (main): Enhance tests.
12756         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12757         Reported by Rainer Tammer.
12758
12759         futimens: fix configure check
12760         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12761         Reported by Bruno Haible.
12762
12763 2010-07-30  Bruno Haible  <bruno@clisp.org>
12764
12765         getline: Update regarding AIX.
12766         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12767         Reported by Rainer Tammer.
12768
12769 2010-07-30  Bruno Haible  <bruno@clisp.org>
12770
12771         wcwidth: Drop replacement on AIX 7.
12772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12773         AIX 7.
12774         Reported by Rainer Tammer.
12775
12776 2010-07-30  Bruno Haible  <bruno@clisp.org>
12777
12778         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12779         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12780         a 'char *'.
12781         Reported by Rainer Tammer.
12782
12783 2010-07-30  Bruno Haible  <bruno@clisp.org>
12784
12785         unlink: Update regarding AIX.
12786         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12787         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12788         Reported by Rainer Tammer.
12789
12790 2010-07-30  Bruno Haible  <bruno@clisp.org>
12791
12792         symlink: Update regarding AIX.
12793         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12794         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12795         Reported by Rainer Tammer.
12796
12797 2010-07-30  Bruno Haible  <bruno@clisp.org>
12798
12799         strndup: Update regarding AIX.
12800         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12801         AIX 7.
12802         Reported by Rainer Tammer.
12803
12804 2010-07-30  Bruno Haible  <bruno@clisp.org>
12805
12806         stat: Update regarding AIX.
12807         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12808         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12809         Reported by Rainer Tammer.
12810
12811 2010-07-30  Bruno Haible  <bruno@clisp.org>
12812
12813         truncl: Fix autoconf test.
12814         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12815         whether truncl works.
12816         Reported by Rainer Tammer.
12817
12818 2010-07-30  Bruno Haible  <bruno@clisp.org>
12819
12820         round: Update regarding AIX.
12821         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12822         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12823         Reported by Rainer Tammer.
12824
12825 2010-07-30  Bruno Haible  <bruno@clisp.org>
12826
12827         rename: Update regarding AIX.
12828         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12829         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12830         Reported by Rainer Tammer.
12831
12832 2010-07-30  Bruno Haible  <bruno@clisp.org>
12833
12834         printf.m4: Update regarding AIX.
12835         * m4/printf.m4: Update comments regarding AIX.
12836         Reported by Rainer Tammer.
12837
12838 2010-07-30  Bruno Haible  <bruno@clisp.org>
12839
12840         iconv: Update regarding AIX.
12841         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12842         AIX 7.
12843         Reported by Rainer Tammer.
12844
12845 2010-07-30  Bruno Haible  <bruno@clisp.org>
12846
12847         getopt: Update regarding AIX.
12848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12849         no on AIX.
12850         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12851         Reported by Rainer Tammer.
12852
12853 2010-07-30  Bruno Haible  <bruno@clisp.org>
12854
12855         ldexpl; Update regarding AIX.
12856         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12857         on AIX 7.
12858         Reported by Rainer Tammer.
12859
12860 2010-07-30  Bruno Haible  <bruno@clisp.org>
12861
12862         frexpl: Update regarding AIX.
12863         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12864         on AIX 7.
12865         Reported by Rainer Tammer.
12866
12867 2010-07-30  Bruno Haible  <bruno@clisp.org>
12868
12869         open, fopen: Update regarding AIX.
12870         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12871         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12872         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12873         * doc/posix-functions/fopen.texi: Likewise.
12874         Reported by Rainer Tammer.
12875
12876 2010-07-30  Bruno Haible  <bruno@clisp.org>
12877
12878         chown: Update doc regarding AIX.
12879         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12880         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12881         Reported by Rainer Tammer.
12882
12883 2010-07-30  Eric Blake  <eblake@redhat.com>
12884
12885         strtod: fix bug in replacement function on AIX
12886         * lib/strtod.c (strtod): Special case broken "0x" parse in
12887         underlying strtod.
12888         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12889         * doc/posix-functions/strtod.texi (strtod): Likewise.
12890         Reported by Rainer Tammer.
12891
12892 2010-07-30  Bruno Haible  <bruno@clisp.org>
12893
12894         mbrlen: Fix cross-compilation guess for AIX.
12895         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12896         guess. Leftover from 2008-12-22.
12897
12898 2010-07-30  Bruno Haible  <bruno@clisp.org>
12899
12900         mbrtowc: Fix cross-compilation guess for AIX.
12901         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12902         guess. Leftover from 2008-12-21.
12903
12904 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12905
12906         init.sh: work around trap limitation of some shells
12907         * tests/init.sh (setup_): Move exit trap outside of shell function.
12908
12909 2010-07-29  Eric Blake  <eblake@redhat.com>
12910
12911         strtod: aid debugging
12912         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12913         understanding why strtod is rejected.
12914
12915 2010-07-28  Bruno Haible  <bruno@clisp.org>
12916
12917         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12918         * lib/unistr/u8-chr.c: Include <string.h>.
12919         * tests/unistr/test-u8-chr.c: Likewise.
12920         * tests/unistr/test-u16-chr.c: Likewise.
12921         * tests/unistr/test-u32-chr.c: Likewise.
12922         * tests/unistr/test-u8-strchr.c: Likewise.
12923         * tests/unistr/test-u16-strchr.c: Likewise.
12924         * tests/unistr/test-u32-strchr.c: Likewise.
12925         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12926         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12927         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12928         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12929
12930 2010-07-28  Bruno Haible  <bruno@clisp.org>
12931
12932         Use spaces for indentation, not tabs.
12933         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12934
12935 2010-07-27  Bruno Haible  <bruno@clisp.org>
12936
12937         mbspcasecmp: Fix function specification.
12938         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12939         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12940         Reported by Eric Blake <eblake@redhat.com>.
12941
12942 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12943
12944         timespec: use cast and not conditional, as truncation isn't possible
12945         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12946         instead of a conditional.  Comment about the situation in more detail.
12947         This undoes most of the 2009-10-29 patch.
12948
12949 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12950
12951         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12952         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12953         * lib/unistr/u8-strchr.c: Likewise.
12954         * modules/unistr/u8-chr: Depend on memchr.
12955
12956         unistr/u*-strchr: add tests
12957         * modules/unistr/u8-strchr-tests: New file.
12958         * modules/unistr/u16-strchr-tests: New file.
12959         * modules/unistr/u32-strchr-tests: New file.
12960         * tests/unistr/test-strchr.h: New file.
12961         * tests/unistr/test-u8-strchr.c: New file.
12962         * tests/unistr/test-u16-strchr.c: New file.
12963         * tests/unistr/test-u32-strchr.c: New file.
12964
12965         unistr/u*-chr: test multibyte sequences more
12966         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12967         test vector.
12968         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12969         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12970         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12971
12972         unistr/u*-chr: test multibyte sequences
12973         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12974
12975         unistr/u*-chr: prepare for multibyte tests
12976         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12977         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12978         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12979         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12980         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12981         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12982
12983 2010-07-18  Bruno Haible  <bruno@clisp.org>
12984
12985         unistr/u8-strchr: Optimize non-ASCII argument case.
12986         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12987         because the first byte often matches anyway.
12988         Reported by Pádraig Brady <P@draigbrady.com>.
12989
12990 2010-07-15  Karl Berry  <karl@gnu.org>
12991
12992         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12993
12994 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12995
12996         getcwd: on Solaris, work better if ancestors are inaccessible
12997         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12998         buffer and size, try again with a large buffer.  This works better
12999         on Solaris, since its getcwd succeeds even if the path to the root
13000         is inaccessible, and this is helpful in common cases such as .zfs
13001         hidden directories.  Problem reported by J Chapman Flack in
13002         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13003         Use system getcwd if it's declared, not merely if it's partly
13004         working; use the partly-working test only to avoid needless effort
13005         if the system getcwd fails.
13006         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13007         comment that was already obsolete and is now even more obsolete.
13008         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13009         now might call strdup.
13010
13011 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13012
13013         pthread: Add enough so that coreutils/src/sort.c compiles.
13014         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13015         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13016         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13017         Include <sys/types.h>, in case it defines pthread_t.
13018         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13019         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13020         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13021         (pthread_rwlockattr_t, pthread_spinlock_t):
13022         New typedefs, if HAVE_PTHREAD_T is not defined.
13023         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13024         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13025         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13026         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13027         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13028         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13029         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13030         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13031         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13032         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13033         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13034         New macros.
13035         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13036         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13037         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13038         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13039         (pthread_spin_unlock): New dummy functions.
13040         (pthread_create): Return EAGAIN; don't set errno.
13041         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13042         require AC_C_INLINE.
13043         * modules/pthread (Depends-on): Add sched, time.
13044         (pthread.h): Use AM_V_GEN.
13045
13046 2010-07-13  Bruno Haible  <bruno@clisp.org>
13047
13048         striconveh: Don't malloc memory if the result buffer is sufficient.
13049         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13050         buffer if its size is sufficient.
13051         Reported by Ludovic Courtès <ludo@gnu.org>.
13052
13053 2010-07-13  Bruno Haible  <bruno@clisp.org>
13054
13055         strtod: Add safety check.
13056         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13057
13058 2010-07-12  Bruno Haible  <bruno@clisp.org>
13059
13060         Unify tests that set gl_cv_func_ldexpl_no_libm.
13061         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13062         gl_FUNC_LDEXPL.
13063         (gl_FUNC_LDEXPL): Invoke it.
13064         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13065
13066 2010-07-12  Bruno Haible  <bruno@clisp.org>
13067
13068         Unify tests that set gl_cv_func_ldexp_no_libm.
13069         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13070         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13071         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13072         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13073         * modules/strtod (Files): Add m4/ldexp.m4.
13074
13075 2010-07-12  Bruno Haible  <bruno@clisp.org>
13076
13077         Unify tests that set gl_cv_func_frexpl_no_libm.
13078         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13079         gl_FUNC_FREXPL_NO_LIBM.
13080         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13081         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13082
13083 2010-07-12  Bruno Haible  <bruno@clisp.org>
13084
13085         Unify tests that set gl_cv_func_frexp_no_libm.
13086         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13087         gl_FUNC_FREXP_NO_LIBM.
13088         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13089         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13090
13091 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13092
13093         memcoll: clarify sizes versus lengths, document better, and tweak perf
13094         * lib/memcoll.c (strcoll_loop, memcoll0):
13095         Improve quality of descriptive comments.  Name variables
13096         consistently as to whether they are lengths (which do not include
13097         terminating null) versus sizes (which do).
13098         * lib/xmemcoll.c (xmemcoll0): Likewise.
13099         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13100         returned when s1size == 0; this is easier to compile and saves
13101         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13102
13103 2010-07-12  Bruno Haible  <bruno@clisp.org>
13104
13105         Tests for module '_Exit'.
13106         * modules/_Exit-tests: New file.
13107         * tests/test-_Exit.sh: New file.
13108         * tests/test-_Exit.c: New file.
13109
13110         New module '_Exit'.
13111         * lib/stdlib.in.h (__attribute__): New macro.
13112         (_Exit): New declaration.
13113         * lib/_Exit.c: New file.
13114         * m4/_Exit.m4: New file.
13115         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13116         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13117         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13118         * modules/_Exit: New file.
13119         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13120         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13121
13122 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13123
13124         strtod: make it more-accurate typically, and don't require libm
13125         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13126         Include limits.h.  Don't include string.h.
13127         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13128         (locale_isspace): New function, so that no casts are needed to
13129         check whether *s is a space.
13130         (ldexp): Provide an unused dummy if not available.
13131         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13132         (strtod): Use them.  This implementation prefers to use the
13133         underlying strtod if available, falling back on our own code
13134         only to fix known bugs.  This is more likely to produce an
13135         accurate result.  Also, it avoids the use of libm functions.
13136         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13137         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13138         was absent, but it caused a test failure with coreutils.
13139         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13140         with libm.
13141         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13142         * modules/strtod-tests (Makefile.am): Likewise.
13143
13144 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13145             Bruno Haible  <bruno@clisp.org>
13146
13147         unistr/u8-strchr: Optimize ASCII argument case.
13148         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13149
13150 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13151
13152         (x)memcoll: minor tweaks
13153         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13154         is after the type that it qualifies.
13155         (memcoll0): Likewise.
13156         * lib/memcoll.h (memcoll0): Likewise.
13157         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13158         * lib/xmemcoll.h (xmemcoll0): Likewise.
13159         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13160         differs from memcoll in that the NUL byte is part of the argument.
13161         Omit the abort-checks, as performance is a real issue here.  Plus,
13162         the checks were wrong anyway (an off-by-one error).  Omit local
13163         variable 'diff', as it's a bit clearer that way.
13164         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13165         no longer needed.
13166
13167 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13168
13169         (x)memcoll: speedup when input is known to be NUL delimited
13170         * lib/memcoll.c: Include stdlib.
13171         (memcoll0): New function.
13172         (strcoll_loop): New function, refactored for use in both memcoll
13173         and memcoll0.
13174         * lib/memcoll.h (memcoll0): Add prototype.
13175         * lib/xmemcoll.c (xmemcoll0): New function.
13176         (collate_error): New function, refactored for use in both xmemcoll
13177         and xmemcoll0.
13178         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13179         * m4/memcoll.m4: add inline invocation.
13180
13181 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13182
13183         * build-aux/bootstrap: Remove any local translations
13184         from the translation project synchronization directory,
13185         so that local only translations are not distributed.
13186
13187 2010-07-04  Bruno Haible  <bruno@clisp.org>
13188
13189         fsusage: Clarify which code applies to which platforms.
13190         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13191         platform.
13192         * lib/fsusage.c (get_fs_usage): Likewise.
13193
13194 2010-07-04  Bruno Haible  <bruno@clisp.org>
13195
13196         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13197         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13198         Reported by Martin Lambers <marlam@marlam.de>.
13199
13200 2010-07-04  Jim Meyering  <meyering@redhat.com>
13201
13202         hash: once again explicitly disallow insertion of NULL
13203         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13204         inserting a NULL pointer cannot work with these functions.
13205         Add a comment with details.
13206         This reverts part of the 2010-07-01 commit, 5bef1a35
13207         "hash: extend module to deal with non-pointer keys".
13208
13209 2010-07-01  Bruno Haible  <bruno@clisp.org>
13210
13211         stdbool: Update doc.
13212         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13213         Info from Christian Weisgerber <naddy@mips.inka.de>.
13214
13215 2010-07-01  Jim Meyering  <meyering@redhat.com>
13216
13217         hash: extend module to deal with non-pointer keys
13218         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13219         but that allows insertion of non-pointer entries.
13220         Do not disallow an ENTRY value of NULL.
13221         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13222         * lib/hash.h (hash_insert0): Declare.
13223
13224 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13225
13226         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13227         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13228         not present (i.e. with autoconf 2.59 and when using gettextize, not
13229         gnulib), require AC_GNU_SOURCE instead.
13230
13231 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13232
13233         idpriv-drop: Fix tests.
13234         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13235         not to the test-idpriv-droptemp program.
13236
13237 2010-06-29  Bruno Haible  <bruno@clisp.org>
13238
13239         string: Fix syntax error with g++ 2.96.
13240         * lib/string.in.h (__pure__): Remove definition.
13241         (_GL_ATTRIBUTE_PURE): New macro.
13242         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13243         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13244         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13245
13246 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13247
13248         unitypes: Fix bug introduced on 2010-05-18.
13249         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13250
13251 2010-06-22  Eric Blake  <eblake@redhat.com>
13252
13253         memmem: slight optimization
13254         * lib/str-two-way.h (critical_factorization): Update comments.
13255         Reduce work during factorization phase.
13256         Reported by Carlos Bueno <carlos@bueno.org>.
13257
13258 2010-06-21  Bruno Haible  <bruno@clisp.org>
13259
13260         Fix HAVE_CALLOC_POSIX misnomer.
13261         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13262         !HAVE_CALLOC_POSIX.
13263         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13264         HAVE_CALLOC_POSIX.
13265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13266         instead of HAVE_CALLOC_POSIX.
13267         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13268         HAVE_CALLOC_POSIX.
13269
13270         Use modern idiom for calloc() replacement.
13271         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13272         AC_FUNC_CALLOC.
13273         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13274         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13275         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13276         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13277         (gl_REPLACE_CALLOC): New macro.
13278
13279 2010-06-21  Bruno Haible  <bruno@clisp.org>
13280
13281         Fix HAVE_REALLOC_POSIX misnomer.
13282         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13283         !HAVE_REALLOC_POSIX.
13284         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13285         HAVE_REALLOC_POSIX.
13286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13287         instead of HAVE_REALLOC_POSIX.
13288         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13289         HAVE_REALLOC_POSIX.
13290
13291         Use modern idiom for realloc() replacement.
13292         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13293         AC_FUNC_REALLOC.
13294         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13295         Autoconf's AC_FUNC_REALLOC.
13296         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13297         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13298         (gl_REPLACE_REALLOC): New macro.
13299         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13300
13301 2010-06-21  Bruno Haible  <bruno@clisp.org>
13302
13303         Fix HAVE_MALLOC_POSIX misnomer.
13304         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13305         !HAVE_MALLOC_POSIX.
13306         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13307         HAVE_MALLOC_POSIX.
13308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13309         instead of HAVE_MALLOC_POSIX.
13310         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13311         HAVE_MALLOC_POSIX.
13312
13313         Use modern idiom for malloc() replacement.
13314         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13315         AC_FUNC_MALLOC.
13316         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13317         Autoconf's AC_FUNC_MALLOC.
13318         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13319         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13320         (gl_REPLACE_MALLOC): New macro.
13321         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13322
13323 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13324
13325         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13326         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13327         This macro takes 3 arguments, not 4.
13328
13329 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13330
13331         ipv6: fix detection under mingw
13332         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13333         in6_addr.
13334
13335 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13336
13337         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13338         that strtod() works when cross-compiling to a glibc version known
13339         to work.
13340
13341 2010-06-15  Bruno Haible  <bruno@clisp.org>
13342
13343         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13344
13345 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13346
13347         select: Correct timeout.
13348         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13349
13350 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13351
13352         git-version-gen: init shell var to avoid env var influence
13353         * build-aux/git-version-gen (v): Init shell var to empty.
13354
13355 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13356
13357         priv-set: Don't assume that priv.h exists merely because getppriv does.
13358         See Jan Andersen's bug report about AIX 5L in
13359         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13360         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13361         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13362         * lib/priv-set.h: Likewise.
13363         * tests/test-priv-set.c: Likewise.
13364
13365 2010-06-13  Bruno Haible  <bruno@clisp.org>
13366
13367         relocatable: Make it easier to test whether to install wrappers.
13368         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13369         RELOCATABLE_VIA_WRAPPER.
13370
13371 2010-06-13  Bruno Haible  <bruno@clisp.org>
13372
13373         gnulib-tool: Display specified modules and dependencies differently.
13374         * gnulib-tool (func_show_module_list): New function.
13375         (func_import, func_create_testdir): Invoke it.
13376         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13377
13378 2010-06-13  Bruno Haible  <bruno@clisp.org>
13379
13380         gnulib-tool: Align code of func_import and func_create_testdir.
13381         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13382         specified_modules.
13383
13384 2010-06-12  Jim Meyering  <meyering@redhat.com>
13385
13386         test-inttostr: avoid spurious failure on Solaris 9
13387         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13388         to accept "%ju".  Reported by Bruno Haible.
13389
13390 2010-06-11  Jim Meyering  <meyering@redhat.com>
13391
13392         test-sys_socket: mark variables as used more readably
13393         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13394         as "used" explicitly via (void) statement casts.  This is more
13395         readable than using them in an artificial return expression.
13396         Suggestion from Bruno Haible.
13397
13398 2010-06-11  Bruno Haible  <bruno@clisp.org>
13399
13400         Avoid some more warnings from "gcc -Wwrite-strings".
13401         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13402         to 'const char *'.
13403         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13404         * tests/test-c-strcasestr.c (main): Likewise.
13405         * tests/test-mbscasestr1.c (main): Likewise.
13406         * tests/test-mbscasestr2.c (main): Likewise.
13407         * tests/test-memmem.c (main): Likewise.
13408         * tests/test-strstr.c (main): Likewise.
13409         * tests/test-strcasestr.c (main): Likewise.
13410
13411 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13412
13413         init.sh: change framework_failure_ to fail with status 99, not 1
13414         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13415         automake's parallel-tests rule that this is an unexpected failure,
13416         even if the test is listed in XFAIL_TESTS.
13417
13418 2010-06-11  Jim Meyering  <meyering@redhat.com>
13419
13420         test-inttostr: avoid warnings about 4-6KB literal strings
13421         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13422         Include "macros.h", for its definition of ASSERT.
13423         (CK): s/assert/ASSERT/
13424         * modules/inttostr-tests (Files): Add macros.h.
13425
13426         init.sh: don't use $ME_ or skip_ before they are defined
13427         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13428         their first uses.  Also hoist their companions: warn_, fail_,
13429         framework_failure_, $stderr_fileno.  Prompted by a patch from
13430         Stefano Lattarini.
13431
13432         test-sys_socket: avoid set-but-not-used warnings from gcc
13433         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13434         avoid warning about set-but-not-used variables.
13435
13436         test-xvasprintf: avoid 'const' discard warnings
13437         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13438         "const" when assigning from literal strings.
13439         (test_xasprintf): Add "void" in function argument list to placate
13440         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13441
13442         tests: avoid compilation warnings in argmatch and exclude tests...
13443         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13444         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13445         Since it always exits, declare with the "noreturn" attribute.
13446         * tests/test-argmatch.c: Likewise.
13447
13448         tests: avoid 'const' discard warnings in mbsstr tests
13449         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13450         * tests/test-mbsstr2.c (main): Likewise.
13451
13452         test-verify: avoid warning from gcc's -Wmissing-declarations
13453         * tests/test-verify.c (function): Declare to be static.
13454
13455         test-inttostr.c: include <string.h> for use of strcmp
13456         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13457
13458         test-linkat: avoid failed assertion on "other" architectures
13459         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13460         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13461         sparc: https://bugs.launchpad.net/bugs/591968
13462
13463 2010-06-11  Jim Meyering  <meyering@redhat.com>
13464
13465         printf.m4: avoid autoconf's "Expanded Before Required" warning
13466         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13467         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13468         autoconf warning.
13469
13470 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13471
13472         Replacement header templates are now named with ".in", not "_".
13473         * doc/gnulib-intro.texi: Correct.
13474
13475 2010-06-10  Jim Meyering  <meyering@redhat.com>
13476
13477         inttostr-tests: depend on snprintf, not snprintf-posix
13478         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13479         snprintf-posix, to avoid this aclocal failure:
13480           missing file gnulib-tests/vasnprintf.c
13481           configure.ac:45: error: expected source file, required through \
13482           AC_LIBSOURCES, not found
13483
13484 2010-06-10  Jim Meyering  <meyering@redhat.com>
13485
13486         inttostr: add a new function, inttostr, and tests
13487         The namesake function was not available.  The existence of the
13488         template file, inttostr.c makes its addition nontrivial.
13489         * lib/anytostr.c: Rename from inttostr.c.
13490         (anytostr): Rename from inttostr.
13491         * lib/inttostr.c: New file.
13492         * modules/inttostr (Files): Add anytostr.c.
13493         (Makefile.am): Set lib_SOURCES instead of ...
13494         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13495         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13496         * lib/offtostr.c: Likewise.
13497         * lib/uinttostr.c: Likewise.
13498         * lib/umaxtostr.c: Likewise.
13499         * modules/inttostr-tests: New file.
13500         * tests/test-inttostr.c: New file.  Test these functions.
13501
13502 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13503             Bruno Haible  <bruno@clisp.org>
13504
13505         Add "Extending Gnulib" chapter to manual.
13506         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13507         chapter.
13508         (Extending Gnulib): New chapter.
13509         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13510         chapter.
13511
13512 2010-06-09  Bruno Haible  <bruno@clisp.org>
13513
13514         Avoid relocwrapper link errors due to gnulib replacement functions.
13515         * lib/areadlink.c: Use the system's malloc, realloc functions.
13516         (areadlink): Set errno to ENOMEM explicitly.
13517         * modules/areadlink (Depends-on): Remove malloc-posix.
13518         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13519
13520 2010-06-09  Bruno Haible  <bruno@clisp.org>
13521
13522         Avoid relocwrapper link errors due to gnulib replacement functions.
13523         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13524         * lib/malloca.c: Likewise.
13525         * lib/relocatable.c: Likewise.
13526         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13527         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13528         * lib/setenv.c: Use the system's malloc, realloc functions.
13529         * lib/strerror.c: Use the system's sprintf function.
13530         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13531
13532 2010-06-04  Bruno Haible  <bruno@clisp.org>
13533
13534         Prefer documented low-level autoconf macro names.
13535         * m4/lib-link.m4: Use m4_translit instead of translit.
13536         * m4/environ.m4: Likewise.
13537         * m4/mathfunc.m4: Likewise.
13538         * m4/onceonly.m4: Likewise.
13539         * m4/stdint.m4: Likewise.
13540         Suggested by Eric Blake.
13541
13542 2010-06-04  Martin Lambers  <marlam@marlam.de>
13543             Bruno Haible  <bruno@clisp.org>
13544
13545         havelib: Allow library names with '+' characters.
13546         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13547         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13548
13549 2010-06-09  Bruno Haible  <bruno@clisp.org>
13550
13551         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13552         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13553         realloc failed.
13554
13555 2010-06-08  Peter Simons  <simons@cryp.to>
13556
13557         maint.mk: make the news-check rule more configurable
13558         * top/maint.mk (news-check-lines-spec): New variable.
13559         (news-check): Use "sed -n 1,10p" in place of "head".
13560
13561 2010-06-07  Jim Meyering  <meyering@redhat.com>
13562
13563         do-release-commit-and-tag: fix typo in --help
13564         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13565
13566         regex: avoid new dead-code warning with gcc-4.6.0
13567         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13568         if-block containing a while-loop.  It's been unused for at least
13569         5 years.
13570
13571 2010-06-05  Bruno Haible  <bruno@clisp.org>
13572
13573         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13574         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13575
13576 2010-06-04  Bruno Haible  <bruno@clisp.org>
13577
13578         Update to GNU gettext 0.18.1.
13579         * modules/gettext (configure.ac): Require gettext infrastructure from
13580         version 0.18.1.
13581
13582 2010-06-03  Bruno Haible  <bruno@clisp.org>
13583
13584         Don't use AC_LIBOBJ with file names in subdirectories.
13585         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13586         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13587         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13588         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13589         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13590         gl_LIBUNISTRING_LIBSOURCE.
13591         (Makefile.am): Augment lib_SOURCES here, conditionally.
13592         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13593
13594 2010-06-03  Bruno Haible  <bruno@clisp.org>
13595
13596         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13597         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13598         expansion does not end with a newline.
13599         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13600         unnecessary newline.
13601
13602 2010-06-03  Bruno Haible  <bruno@clisp.org>
13603
13604         Reduce dependencies.
13605         * tests/test-quotearg.h: New file, extracted from
13606         tests/test-quotearg.c.
13607         * tests/test-quotearg-simple.c: New file, extracted from
13608         tests/test-quotearg.c.
13609         * tests/test-quotearg.c: Don't include <ctype.h>.
13610         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13611         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13612         use_quote_double_quotes, use_quotearg_colon): Moved to
13613         tests/test-quotearg.h.
13614         (results_g, flag_results, custom_quotes, custom_results): Moved
13615         to tests/test-quotearg-simple.c.
13616         (main): Moved the part that does not depend on gettext to
13617         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13618         performed.
13619         * modules/quotearg-simple: New file.
13620         * modules/quotearg-simple-tests: New file.
13621         * modules/quotearg (Depends-on): Add quotearg-simple.
13622         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13623         (Files): Add tests/test-quotearg.h.
13624         Reported by Paolo Bonzini.
13625
13626 2010-06-03  Bruno Haible  <bruno@clisp.org>
13627
13628         Reduce dependencies.
13629         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13630
13631 2010-06-03  Bruno Haible  <bruno@clisp.org>
13632
13633         time: Undefine more broken macros.
13634         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13635         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13636         Reported by Eric Blake.
13637
13638 2010-06-03  Bruno Haible  <bruno@clisp.org>
13639
13640         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13641         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13642         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13643         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13644         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13645         Reported by Ludovic Courtès <ludo@gnu.org>.
13646
13647 2010-06-02  Eric Blake  <eblake@redhat.com>
13648
13649         time: work with mingw + pthreads-win32 library
13650         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13651         if timespec is defined only in pthread.h.
13652         * modules/time (Makefile.am): Substitute it.
13653         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13654         <pthread.h>, when needed.
13655         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13656         from the library.
13657
13658 2010-05-31  Bruno Haible  <bruno@clisp.org>
13659
13660         Avoid expanding two macros in the wrong order.
13661         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13662         gl_LIBUNISTRING if it is defined.
13663         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13664         autoconf >= 2.64.
13665         Reported by Ludovic Courtès <ludo@gnu.org>.
13666
13667 2010-05-27  Jim Meyering  <meyering@redhat.com>
13668
13669         maint.mk: also prohibit "#undef" of always-defined symbols
13670         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13671         Allow more than one space before the symbol name.
13672         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13673         the regexp uses alternation.
13674
13675 2010-05-26  Eric Blake  <eblake@redhat.com>
13676
13677         maint.mk: avoid echo -e
13678         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13679         Convert all uses of echo -* to printf.
13680         Reported by Matthias Bolte.
13681
13682 2010-05-25  Bruno Haible  <bruno@clisp.org>
13683
13684         Update to GNU gettext 0.18, part 2.
13685         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13686         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13687
13688 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13689
13690         Add missing include in test-pwrite.c.
13691         * tests/test-pwrite.c: Include string.h, for strcmp.
13692
13693 2010-05-24  Bruno Haible  <bruno@clisp.org>
13694
13695         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13696
13697 2010-05-24  Bruno Haible  <bruno@clisp.org>
13698
13699         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13700         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13701         iconveh_error argument.
13702         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13703         U_STRCONV_TO_LOCALE.
13704         * lib/unistr/u16-strcoll.c: Likewise.
13705         * lib/unistr/u32-strcoll.c: Likewise.
13706         * modules/unistr/u8-strcoll (Depends-on): Add
13707         uniconv/u8-strconv-to-enc, localcharset. Remove
13708         uniconv/u8-strconv-to-locale.
13709         (configure.ac): Bump version number.
13710         * modules/unistr/u16-strcoll (Depends-on): Add
13711         uniconv/u16-strconv-to-enc, localcharset. Remove
13712         uniconv/u16-strconv-to-locale.
13713         (configure.ac): Bump version number.
13714         * modules/unistr/u32-strcoll (Depends-on): Add
13715         uniconv/u32-strconv-to-enc, localcharset. Remove
13716         uniconv/u32-strconv-to-locale.
13717         (configure.ac): Bump version number.
13718
13719 2010-05-24  Bruno Haible  <bruno@clisp.org>
13720
13721         Avoid a test failure on NetBSD 5.0.
13722         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13723         an iconv() bug.
13724
13725 2010-05-24  Bruno Haible  <bruno@clisp.org>
13726
13727         Adjust #include directive style.
13728         * modules/regex (Includes): Recommend to write <regex.h>.
13729
13730 2010-05-24  Bruno Haible  <bruno@clisp.org>
13731
13732         regex: Don't require alloca.
13733         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13734         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13735         only inside if (0).
13736
13737 2010-05-23  Jim Meyering  <meyering@redhat.com>
13738
13739         test-renameat.c: include <sys/stat.h>
13740         * tests/test-renameat.c: Include <sys/stat.h>; required for
13741         definition of S_IS* macros.
13742
13743 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13744
13745         Update maintainer documentation for 'relocatable-prog' module.
13746         * doc/relocatable-maint.texi: Update.
13747         Comments by Bruno Haible.
13748
13749 2010-05-23  Bruno Haible  <bruno@clisp.org>
13750
13751         git-merge-changelog: Enable --split-merged-entry by default.
13752         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13753         (usage): Don't mention this option any more.
13754         Reported by Ralf Wildenhues.
13755
13756 2010-05-23  Jim Meyering  <meyering@redhat.com>
13757
13758         test-pwrite: do not leave behind a test file named "out"
13759         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13760         The trivial-looking use of init.sh is really necessary.
13761         It ensures that the temporary file, "out", is created in
13762         a temporary directory, and removed upon termination.
13763         * tests/test-pwrite.sh: Re-add file.
13764         * modules/pwrite-tests: Reference it.
13765
13766 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13767
13768         Fix output redirection buglet in init.sh.
13769         * tests/init.sh: Fix redirection of stderr.
13770
13771 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13772
13773         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13774
13775 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13776
13777         * modules/valgrind-tests: New file.
13778         * m4/valgrind-tests.m4: New file.
13779         * doc/valgrind-tests.texi: New file.
13780         * doc/gnulib.texi (Running self-tests under valgrind): New
13781         section.
13782
13783 2010-05-19  Bruno Haible  <bruno@clisp.org>
13784
13785         Clean up dead code in recent commit.
13786         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13787         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13788         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13789         Suggested by Paolo Bonzini.
13790
13791 2010-05-19  Bruno Haible  <bruno@clisp.org>
13792
13793         Avoid valgrind error reports from libunistring.
13794         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13795         * modules/libunistring (Files): Add it.
13796         * modules/libunistring-optional (Files): Likewise.
13797
13798 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13799             Bruno Haible  <bruno@clisp.org>
13800
13801         New module 'libunistring-optional'.
13802         * modules/libunistring-optional: New file.
13803         * m4/libunistring-base.m4: New file.
13804         * m4/libunistring-optional.m4: New file.
13805         * lib/unicase.in.h: Renamed from lib/unicase.h.
13806         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13807         * lib/unictype.in.h: Renamed from lib/unictype.h.
13808         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13809         * lib/uniname.in.h: Renamed from lib/uniname.h.
13810         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13811         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13812         * lib/unistr.in.h: Renamed from lib/unistr.h.
13813         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13814         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13815         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13816         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13817         gl_LIBUNISTRING. If the library was found, determine the installed
13818         version and set LIBUNISTRING_VERSION.
13819         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13820         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13821         handle a configuration option --with-included-libunistring.
13822         * modules/libunistring (Files): Add m4/absolute-header.m4.
13823         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13824         Add m4/libunistring-base.m4.
13825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13826         (Makefile.am): Build unicase.h from unicase.in.h.
13827         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13828         Add m4/libunistring-base.m4.
13829         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13830         (Makefile.am): Build uniconv.h from uniconv.in.h.
13831         * modules/unictype/base (Files): Use unictype.in.h instead of
13832         unictype.h. Add m4/libunistring-base.m4.
13833         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13834         (Makefile.am): Build unictype.h from unictype.in.h.
13835         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13836         Add m4/libunistring-base.m4.
13837         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13838         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13839         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13840         Add m4/libunistring-base.m4.
13841         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13842         (Makefile.am): Build uniname.h from uniname.in.h.
13843         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13844         Add m4/libunistring-base.m4.
13845         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13846         (Makefile.am): Build uninorm.h from uninorm.in.h.
13847         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13848         unistdio.h. Add m4/libunistring-base.m4.
13849         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13850         (Makefile.am): Build unistdio.h from unistdio.in.h.
13851         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13852         Add m4/libunistring-base.m4.
13853         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13854         (Makefile.am): Build unistr.h from unistr.in.h.
13855         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13856         Add m4/libunistring-base.m4.
13857         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13858         (Makefile.am): Build unitypes.h from unitypes.in.h.
13859         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13860         Add m4/libunistring-base.m4.
13861         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13862         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13863         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13864         uniwidth.h. Add m4/libunistring-base.m4.
13865         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13866         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13867         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13868         instead of augmenting lib_SOURCES.
13869         * modules/unicase/empty-suffix-context: Likewise.
13870         * modules/unicase/locale-language: Likewise.
13871         * modules/unicase/tolower: Likewise.
13872         * modules/unicase/totitle: Likewise.
13873         * modules/unicase/toupper: Likewise.
13874         * modules/unicase/u8-casecmp: Likewise.
13875         * modules/unicase/u8-casecoll: Likewise.
13876         * modules/unicase/u8-casefold: Likewise.
13877         * modules/unicase/u8-casexfrm: Likewise.
13878         * modules/unicase/u8-ct-casefold: Likewise.
13879         * modules/unicase/u8-ct-tolower: Likewise.
13880         * modules/unicase/u8-ct-totitle: Likewise.
13881         * modules/unicase/u8-ct-toupper: Likewise.
13882         * modules/unicase/u8-is-cased: Likewise.
13883         * modules/unicase/u8-is-casefolded: Likewise.
13884         * modules/unicase/u8-is-lowercase: Likewise.
13885         * modules/unicase/u8-is-titlecase: Likewise.
13886         * modules/unicase/u8-is-uppercase: Likewise.
13887         * modules/unicase/u8-prefix-context: Likewise.
13888         * modules/unicase/u8-suffix-context: Likewise.
13889         * modules/unicase/u8-tolower: Likewise.
13890         * modules/unicase/u8-totitle: Likewise.
13891         * modules/unicase/u8-toupper: Likewise.
13892         * modules/unicase/u16-casecmp: Likewise.
13893         * modules/unicase/u16-casecoll: Likewise.
13894         * modules/unicase/u16-casefold: Likewise.
13895         * modules/unicase/u16-casexfrm: Likewise.
13896         * modules/unicase/u16-ct-casefold: Likewise.
13897         * modules/unicase/u16-ct-tolower: Likewise.
13898         * modules/unicase/u16-ct-totitle: Likewise.
13899         * modules/unicase/u16-ct-toupper: Likewise.
13900         * modules/unicase/u16-is-cased: Likewise.
13901         * modules/unicase/u16-is-casefolded: Likewise.
13902         * modules/unicase/u16-is-lowercase: Likewise.
13903         * modules/unicase/u16-is-titlecase: Likewise.
13904         * modules/unicase/u16-is-uppercase: Likewise.
13905         * modules/unicase/u16-prefix-context: Likewise.
13906         * modules/unicase/u16-suffix-context: Likewise.
13907         * modules/unicase/u16-tolower: Likewise.
13908         * modules/unicase/u16-totitle: Likewise.
13909         * modules/unicase/u16-toupper: Likewise.
13910         * modules/unicase/u32-casecmp: Likewise.
13911         * modules/unicase/u32-casecoll: Likewise.
13912         * modules/unicase/u32-casefold: Likewise.
13913         * modules/unicase/u32-casexfrm: Likewise.
13914         * modules/unicase/u32-ct-casefold: Likewise.
13915         * modules/unicase/u32-ct-tolower: Likewise.
13916         * modules/unicase/u32-ct-totitle: Likewise.
13917         * modules/unicase/u32-ct-toupper: Likewise.
13918         * modules/unicase/u32-is-cased: Likewise.
13919         * modules/unicase/u32-is-casefolded: Likewise.
13920         * modules/unicase/u32-is-lowercase: Likewise.
13921         * modules/unicase/u32-is-titlecase: Likewise.
13922         * modules/unicase/u32-is-uppercase: Likewise.
13923         * modules/unicase/u32-prefix-context: Likewise.
13924         * modules/unicase/u32-suffix-context: Likewise.
13925         * modules/unicase/u32-tolower: Likewise.
13926         * modules/unicase/u32-totitle: Likewise.
13927         * modules/unicase/u32-toupper: Likewise.
13928         * modules/unicase/ulc-casecmp: Likewise.
13929         * modules/unicase/ulc-casecoll: Likewise.
13930         * modules/unicase/ulc-casexfrm: Likewise.
13931         * modules/uniconv/u8-conv-from-enc: Likewise.
13932         * modules/uniconv/u8-conv-to-enc: Likewise.
13933         * modules/uniconv/u8-strconv-from-enc: Likewise.
13934         * modules/uniconv/u8-strconv-from-locale: Likewise.
13935         * modules/uniconv/u8-strconv-to-enc: Likewise.
13936         * modules/uniconv/u8-strconv-to-locale: Likewise.
13937         * modules/uniconv/u16-conv-from-enc: Likewise.
13938         * modules/uniconv/u16-conv-to-enc: Likewise.
13939         * modules/uniconv/u16-strconv-from-enc: Likewise.
13940         * modules/uniconv/u16-strconv-from-locale: Likewise.
13941         * modules/uniconv/u16-strconv-to-enc: Likewise.
13942         * modules/uniconv/u16-strconv-to-locale: Likewise.
13943         * modules/uniconv/u32-conv-from-enc: Likewise.
13944         * modules/uniconv/u32-conv-to-enc: Likewise.
13945         * modules/uniconv/u32-strconv-from-enc: Likewise.
13946         * modules/uniconv/u32-strconv-from-locale: Likewise.
13947         * modules/uniconv/u32-strconv-to-enc: Likewise.
13948         * modules/uniconv/u32-strconv-to-locale: Likewise.
13949         * modules/unictype/bidicategory-byname: Likewise.
13950         * modules/unictype/bidicategory-name: Likewise.
13951         * modules/unictype/bidicategory-of: Likewise.
13952         * modules/unictype/bidicategory-test: Likewise.
13953         * modules/unictype/block-list: Likewise.
13954         * modules/unictype/block-test: Likewise.
13955         * modules/unictype/category-C: Likewise.
13956         * modules/unictype/category-Cc: Likewise.
13957         * modules/unictype/category-Cf: Likewise.
13958         * modules/unictype/category-Cn: Likewise.
13959         * modules/unictype/category-Co: Likewise.
13960         * modules/unictype/category-Cs: Likewise.
13961         * modules/unictype/category-L: Likewise.
13962         * modules/unictype/category-Ll: Likewise.
13963         * modules/unictype/category-Lm: Likewise.
13964         * modules/unictype/category-Lo: Likewise.
13965         * modules/unictype/category-Lt: Likewise.
13966         * modules/unictype/category-Lu: Likewise.
13967         * modules/unictype/category-M: Likewise.
13968         * modules/unictype/category-Mc: Likewise.
13969         * modules/unictype/category-Me: Likewise.
13970         * modules/unictype/category-Mn: Likewise.
13971         * modules/unictype/category-N: Likewise.
13972         * modules/unictype/category-Nd: Likewise.
13973         * modules/unictype/category-Nl: Likewise.
13974         * modules/unictype/category-No: Likewise.
13975         * modules/unictype/category-P: Likewise.
13976         * modules/unictype/category-Pc: Likewise.
13977         * modules/unictype/category-Pd: Likewise.
13978         * modules/unictype/category-Pe: Likewise.
13979         * modules/unictype/category-Pf: Likewise.
13980         * modules/unictype/category-Pi: Likewise.
13981         * modules/unictype/category-Po: Likewise.
13982         * modules/unictype/category-Ps: Likewise.
13983         * modules/unictype/category-S: Likewise.
13984         * modules/unictype/category-Sc: Likewise.
13985         * modules/unictype/category-Sk: Likewise.
13986         * modules/unictype/category-Sm: Likewise.
13987         * modules/unictype/category-So: Likewise.
13988         * modules/unictype/category-Z: Likewise.
13989         * modules/unictype/category-Zl: Likewise.
13990         * modules/unictype/category-Zp: Likewise.
13991         * modules/unictype/category-Zs: Likewise.
13992         * modules/unictype/category-and: Likewise.
13993         * modules/unictype/category-and-not: Likewise.
13994         * modules/unictype/category-byname: Likewise.
13995         * modules/unictype/category-name: Likewise.
13996         * modules/unictype/category-none: Likewise.
13997         * modules/unictype/category-of: Likewise.
13998         * modules/unictype/category-or: Likewise.
13999         * modules/unictype/category-test: Likewise.
14000         * modules/unictype/combining-class: Likewise.
14001         * modules/unictype/ctype-alnum: Likewise.
14002         * modules/unictype/ctype-alpha: Likewise.
14003         * modules/unictype/ctype-blank: Likewise.
14004         * modules/unictype/ctype-cntrl: Likewise.
14005         * modules/unictype/ctype-digit: Likewise.
14006         * modules/unictype/ctype-graph: Likewise.
14007         * modules/unictype/ctype-lower: Likewise.
14008         * modules/unictype/ctype-print: Likewise.
14009         * modules/unictype/ctype-punct: Likewise.
14010         * modules/unictype/ctype-space: Likewise.
14011         * modules/unictype/ctype-upper: Likewise.
14012         * modules/unictype/ctype-xdigit: Likewise.
14013         * modules/unictype/decimal-digit: Likewise.
14014         * modules/unictype/digit: Likewise.
14015         * modules/unictype/mirror: Likewise.
14016         * modules/unictype/numeric: Likewise.
14017         * modules/unictype/property-alphabetic: Likewise.
14018         * modules/unictype/property-ascii-hex-digit: Likewise.
14019         * modules/unictype/property-bidi-arabic-digit: Likewise.
14020         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14021         * modules/unictype/property-bidi-block-separator: Likewise.
14022         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14023         * modules/unictype/property-bidi-common-separator: Likewise.
14024         * modules/unictype/property-bidi-control: Likewise.
14025         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14026         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14027         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14028         * modules/unictype/property-bidi-european-digit: Likewise.
14029         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14030         * modules/unictype/property-bidi-left-to-right: Likewise.
14031         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14032         * modules/unictype/property-bidi-other-neutral: Likewise.
14033         * modules/unictype/property-bidi-pdf: Likewise.
14034         * modules/unictype/property-bidi-segment-separator: Likewise.
14035         * modules/unictype/property-bidi-whitespace: Likewise.
14036         * modules/unictype/property-byname: Likewise.
14037         * modules/unictype/property-combining: Likewise.
14038         * modules/unictype/property-composite: Likewise.
14039         * modules/unictype/property-currency-symbol: Likewise.
14040         * modules/unictype/property-dash: Likewise.
14041         * modules/unictype/property-decimal-digit: Likewise.
14042         * modules/unictype/property-default-ignorable-code-point: Likewise.
14043         * modules/unictype/property-deprecated: Likewise.
14044         * modules/unictype/property-diacritic: Likewise.
14045         * modules/unictype/property-extender: Likewise.
14046         * modules/unictype/property-format-control: Likewise.
14047         * modules/unictype/property-grapheme-base: Likewise.
14048         * modules/unictype/property-grapheme-extend: Likewise.
14049         * modules/unictype/property-grapheme-link: Likewise.
14050         * modules/unictype/property-hex-digit: Likewise.
14051         * modules/unictype/property-hyphen: Likewise.
14052         * modules/unictype/property-id-continue: Likewise.
14053         * modules/unictype/property-id-start: Likewise.
14054         * modules/unictype/property-ideographic: Likewise.
14055         * modules/unictype/property-ids-binary-operator: Likewise.
14056         * modules/unictype/property-ids-trinary-operator: Likewise.
14057         * modules/unictype/property-ignorable-control: Likewise.
14058         * modules/unictype/property-iso-control: Likewise.
14059         * modules/unictype/property-join-control: Likewise.
14060         * modules/unictype/property-left-of-pair: Likewise.
14061         * modules/unictype/property-line-separator: Likewise.
14062         * modules/unictype/property-logical-order-exception: Likewise.
14063         * modules/unictype/property-lowercase: Likewise.
14064         * modules/unictype/property-math: Likewise.
14065         * modules/unictype/property-non-break: Likewise.
14066         * modules/unictype/property-not-a-character: Likewise.
14067         * modules/unictype/property-numeric: Likewise.
14068         * modules/unictype/property-other-alphabetic: Likewise.
14069         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14070         * modules/unictype/property-other-grapheme-extend: Likewise.
14071         * modules/unictype/property-other-id-continue: Likewise.
14072         * modules/unictype/property-other-id-start: Likewise.
14073         * modules/unictype/property-other-lowercase: Likewise.
14074         * modules/unictype/property-other-math: Likewise.
14075         * modules/unictype/property-other-uppercase: Likewise.
14076         * modules/unictype/property-paired-punctuation: Likewise.
14077         * modules/unictype/property-paragraph-separator: Likewise.
14078         * modules/unictype/property-pattern-syntax: Likewise.
14079         * modules/unictype/property-pattern-white-space: Likewise.
14080         * modules/unictype/property-private-use: Likewise.
14081         * modules/unictype/property-punctuation: Likewise.
14082         * modules/unictype/property-quotation-mark: Likewise.
14083         * modules/unictype/property-radical: Likewise.
14084         * modules/unictype/property-sentence-terminal: Likewise.
14085         * modules/unictype/property-soft-dotted: Likewise.
14086         * modules/unictype/property-space: Likewise.
14087         * modules/unictype/property-terminal-punctuation: Likewise.
14088         * modules/unictype/property-test: Likewise.
14089         * modules/unictype/property-titlecase: Likewise.
14090         * modules/unictype/property-unassigned-code-value: Likewise.
14091         * modules/unictype/property-unified-ideograph: Likewise.
14092         * modules/unictype/property-uppercase: Likewise.
14093         * modules/unictype/property-variation-selector: Likewise.
14094         * modules/unictype/property-white-space: Likewise.
14095         * modules/unictype/property-xid-continue: Likewise.
14096         * modules/unictype/property-xid-start: Likewise.
14097         * modules/unictype/property-zero-width: Likewise.
14098         * modules/unictype/scripts: Likewise.
14099         * modules/unictype/syntax-c-ident: Likewise.
14100         * modules/unictype/syntax-c-whitespace: Likewise.
14101         * modules/unictype/syntax-java-ident: Likewise.
14102         * modules/unictype/syntax-java-whitespace: Likewise.
14103         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14104         * modules/unilbrk/u8-width-linebreaks: Likewise.
14105         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14106         * modules/unilbrk/u16-width-linebreaks: Likewise.
14107         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14108         * modules/unilbrk/u32-width-linebreaks: Likewise.
14109         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14110         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14111         * modules/uniname/uniname: Likewise.
14112         * modules/uninorm/canonical-decomposition: Likewise.
14113         * modules/uninorm/composition: Likewise.
14114         * modules/uninorm/decomposing-form: Likewise.
14115         * modules/uninorm/decomposition: Likewise.
14116         * modules/uninorm/filter: Likewise.
14117         * modules/uninorm/nfc: Likewise.
14118         * modules/uninorm/nfd: Likewise.
14119         * modules/uninorm/nfkc: Likewise.
14120         * modules/uninorm/nfkd: Likewise.
14121         * modules/uninorm/u8-normalize: Likewise.
14122         * modules/uninorm/u8-normcmp: Likewise.
14123         * modules/uninorm/u8-normcoll: Likewise.
14124         * modules/uninorm/u8-normxfrm: Likewise.
14125         * modules/uninorm/u16-normalize: Likewise.
14126         * modules/uninorm/u16-normcmp: Likewise.
14127         * modules/uninorm/u16-normcoll: Likewise.
14128         * modules/uninorm/u16-normxfrm: Likewise.
14129         * modules/uninorm/u32-normalize: Likewise.
14130         * modules/uninorm/u32-normcmp: Likewise.
14131         * modules/uninorm/u32-normcoll: Likewise.
14132         * modules/uninorm/u32-normxfrm: Likewise.
14133         * modules/unistdio/u8-asnprintf: Likewise.
14134         * modules/unistdio/u8-asprintf: Likewise.
14135         * modules/unistdio/u8-snprintf: Likewise.
14136         * modules/unistdio/u8-sprintf: Likewise.
14137         * modules/unistdio/u8-u8-asnprintf: Likewise.
14138         * modules/unistdio/u8-u8-asprintf: Likewise.
14139         * modules/unistdio/u8-u8-snprintf: Likewise.
14140         * modules/unistdio/u8-u8-sprintf: Likewise.
14141         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14142         * modules/unistdio/u8-u8-vasprintf: Likewise.
14143         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14144         * modules/unistdio/u8-u8-vsprintf: Likewise.
14145         * modules/unistdio/u8-vasnprintf: Likewise.
14146         * modules/unistdio/u8-vasprintf: Likewise.
14147         * modules/unistdio/u8-vsnprintf: Likewise.
14148         * modules/unistdio/u8-vsprintf: Likewise.
14149         * modules/unistdio/u16-asnprintf: Likewise.
14150         * modules/unistdio/u16-asprintf: Likewise.
14151         * modules/unistdio/u16-snprintf: Likewise.
14152         * modules/unistdio/u16-sprintf: Likewise.
14153         * modules/unistdio/u16-u16-asnprintf: Likewise.
14154         * modules/unistdio/u16-u16-asprintf: Likewise.
14155         * modules/unistdio/u16-u16-snprintf: Likewise.
14156         * modules/unistdio/u16-u16-sprintf: Likewise.
14157         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14158         * modules/unistdio/u16-u16-vasprintf: Likewise.
14159         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14160         * modules/unistdio/u16-u16-vsprintf: Likewise.
14161         * modules/unistdio/u16-vasnprintf: Likewise.
14162         * modules/unistdio/u16-vasprintf: Likewise.
14163         * modules/unistdio/u16-vsnprintf: Likewise.
14164         * modules/unistdio/u16-vsprintf: Likewise.
14165         * modules/unistdio/u32-asnprintf: Likewise.
14166         * modules/unistdio/u32-asprintf: Likewise.
14167         * modules/unistdio/u32-snprintf: Likewise.
14168         * modules/unistdio/u32-sprintf: Likewise.
14169         * modules/unistdio/u32-u32-asnprintf: Likewise.
14170         * modules/unistdio/u32-u32-asprintf: Likewise.
14171         * modules/unistdio/u32-u32-snprintf: Likewise.
14172         * modules/unistdio/u32-u32-sprintf: Likewise.
14173         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14174         * modules/unistdio/u32-u32-vasprintf: Likewise.
14175         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14176         * modules/unistdio/u32-u32-vsprintf: Likewise.
14177         * modules/unistdio/u32-vasnprintf: Likewise.
14178         * modules/unistdio/u32-vasprintf: Likewise.
14179         * modules/unistdio/u32-vsnprintf: Likewise.
14180         * modules/unistdio/u32-vsprintf: Likewise.
14181         * modules/unistdio/ulc-asnprintf: Likewise.
14182         * modules/unistdio/ulc-asprintf: Likewise.
14183         * modules/unistdio/ulc-fprintf: Likewise.
14184         * modules/unistdio/ulc-snprintf: Likewise.
14185         * modules/unistdio/ulc-sprintf: Likewise.
14186         * modules/unistdio/ulc-vasnprintf: Likewise.
14187         * modules/unistdio/ulc-vasprintf: Likewise.
14188         * modules/unistdio/ulc-vfprintf: Likewise.
14189         * modules/unistdio/ulc-vsnprintf: Likewise.
14190         * modules/unistdio/ulc-vsprintf: Likewise.
14191         * modules/unistr/u8-check: Likewise.
14192         * modules/unistr/u8-chr: Likewise.
14193         * modules/unistr/u8-cmp: Likewise.
14194         * modules/unistr/u8-cmp2: Likewise.
14195         * modules/unistr/u8-cpy: Likewise.
14196         * modules/unistr/u8-cpy-alloc: Likewise.
14197         * modules/unistr/u8-endswith: Likewise.
14198         * modules/unistr/u8-mblen: Likewise.
14199         * modules/unistr/u8-mbsnlen: Likewise.
14200         * modules/unistr/u8-mbtouc: Likewise.
14201         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14202         * modules/unistr/u8-mbtoucr: Likewise.
14203         * modules/unistr/u8-move: Likewise.
14204         * modules/unistr/u8-next: Likewise.
14205         * modules/unistr/u8-prev: Likewise.
14206         * modules/unistr/u8-set: Likewise.
14207         * modules/unistr/u8-startswith: Likewise.
14208         * modules/unistr/u8-stpcpy: Likewise.
14209         * modules/unistr/u8-stpncpy: Likewise.
14210         * modules/unistr/u8-strcat: Likewise.
14211         * modules/unistr/u8-strchr: Likewise.
14212         * modules/unistr/u8-strcmp: Likewise.
14213         * modules/unistr/u8-strcoll: Likewise.
14214         * modules/unistr/u8-strcpy: Likewise.
14215         * modules/unistr/u8-strcspn: Likewise.
14216         * modules/unistr/u8-strdup: Likewise.
14217         * modules/unistr/u8-strlen: Likewise.
14218         * modules/unistr/u8-strmblen: Likewise.
14219         * modules/unistr/u8-strmbtouc: Likewise.
14220         * modules/unistr/u8-strncat: Likewise.
14221         * modules/unistr/u8-strncmp: Likewise.
14222         * modules/unistr/u8-strncpy: Likewise.
14223         * modules/unistr/u8-strnlen: Likewise.
14224         * modules/unistr/u8-strpbrk: Likewise.
14225         * modules/unistr/u8-strrchr: Likewise.
14226         * modules/unistr/u8-strspn: Likewise.
14227         * modules/unistr/u8-strstr: Likewise.
14228         * modules/unistr/u8-strtok: Likewise.
14229         * modules/unistr/u8-to-u16: Likewise.
14230         * modules/unistr/u8-to-u32: Likewise.
14231         * modules/unistr/u8-uctomb: Likewise.
14232         * modules/unistr/u16-check: Likewise.
14233         * modules/unistr/u16-chr: Likewise.
14234         * modules/unistr/u16-cmp: Likewise.
14235         * modules/unistr/u16-cmp2: Likewise.
14236         * modules/unistr/u16-cpy: Likewise.
14237         * modules/unistr/u16-cpy-alloc: Likewise.
14238         * modules/unistr/u16-endswith: Likewise.
14239         * modules/unistr/u16-mblen: Likewise.
14240         * modules/unistr/u16-mbsnlen: Likewise.
14241         * modules/unistr/u16-mbtouc: Likewise.
14242         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14243         * modules/unistr/u16-mbtoucr: Likewise.
14244         * modules/unistr/u16-move: Likewise.
14245         * modules/unistr/u16-next: Likewise.
14246         * modules/unistr/u16-prev: Likewise.
14247         * modules/unistr/u16-set: Likewise.
14248         * modules/unistr/u16-startswith: Likewise.
14249         * modules/unistr/u16-stpcpy: Likewise.
14250         * modules/unistr/u16-stpncpy: Likewise.
14251         * modules/unistr/u16-strcat: Likewise.
14252         * modules/unistr/u16-strchr: Likewise.
14253         * modules/unistr/u16-strcmp: Likewise.
14254         * modules/unistr/u16-strcoll: Likewise.
14255         * modules/unistr/u16-strcpy: Likewise.
14256         * modules/unistr/u16-strcspn: Likewise.
14257         * modules/unistr/u16-strdup: Likewise.
14258         * modules/unistr/u16-strlen: Likewise.
14259         * modules/unistr/u16-strmblen: Likewise.
14260         * modules/unistr/u16-strmbtouc: Likewise.
14261         * modules/unistr/u16-strncat: Likewise.
14262         * modules/unistr/u16-strncmp: Likewise.
14263         * modules/unistr/u16-strncpy: Likewise.
14264         * modules/unistr/u16-strnlen: Likewise.
14265         * modules/unistr/u16-strpbrk: Likewise.
14266         * modules/unistr/u16-strrchr: Likewise.
14267         * modules/unistr/u16-strspn: Likewise.
14268         * modules/unistr/u16-strstr: Likewise.
14269         * modules/unistr/u16-strtok: Likewise.
14270         * modules/unistr/u16-to-u32: Likewise.
14271         * modules/unistr/u16-to-u8: Likewise.
14272         * modules/unistr/u16-uctomb: Likewise.
14273         * modules/unistr/u32-check: Likewise.
14274         * modules/unistr/u32-chr: Likewise.
14275         * modules/unistr/u32-cmp: Likewise.
14276         * modules/unistr/u32-cmp2: Likewise.
14277         * modules/unistr/u32-cpy: Likewise.
14278         * modules/unistr/u32-cpy-alloc: Likewise.
14279         * modules/unistr/u32-endswith: Likewise.
14280         * modules/unistr/u32-mblen: Likewise.
14281         * modules/unistr/u32-mbsnlen: Likewise.
14282         * modules/unistr/u32-mbtouc: Likewise.
14283         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14284         * modules/unistr/u32-mbtoucr: Likewise.
14285         * modules/unistr/u32-move: Likewise.
14286         * modules/unistr/u32-next: Likewise.
14287         * modules/unistr/u32-prev: Likewise.
14288         * modules/unistr/u32-set: Likewise.
14289         * modules/unistr/u32-startswith: Likewise.
14290         * modules/unistr/u32-stpcpy: Likewise.
14291         * modules/unistr/u32-stpncpy: Likewise.
14292         * modules/unistr/u32-strcat: Likewise.
14293         * modules/unistr/u32-strchr: Likewise.
14294         * modules/unistr/u32-strcmp: Likewise.
14295         * modules/unistr/u32-strcoll: Likewise.
14296         * modules/unistr/u32-strcpy: Likewise.
14297         * modules/unistr/u32-strcspn: Likewise.
14298         * modules/unistr/u32-strdup: Likewise.
14299         * modules/unistr/u32-strlen: Likewise.
14300         * modules/unistr/u32-strmblen: Likewise.
14301         * modules/unistr/u32-strmbtouc: Likewise.
14302         * modules/unistr/u32-strncat: Likewise.
14303         * modules/unistr/u32-strncmp: Likewise.
14304         * modules/unistr/u32-strncpy: Likewise.
14305         * modules/unistr/u32-strnlen: Likewise.
14306         * modules/unistr/u32-strpbrk: Likewise.
14307         * modules/unistr/u32-strrchr: Likewise.
14308         * modules/unistr/u32-strspn: Likewise.
14309         * modules/unistr/u32-strstr: Likewise.
14310         * modules/unistr/u32-strtok: Likewise.
14311         * modules/unistr/u32-to-u16: Likewise.
14312         * modules/unistr/u32-to-u8: Likewise.
14313         * modules/unistr/u32-uctomb: Likewise.
14314         * modules/uniwbrk/u8-wordbreaks: Likewise.
14315         * modules/uniwbrk/u16-wordbreaks: Likewise.
14316         * modules/uniwbrk/u32-wordbreaks: Likewise.
14317         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14318         * modules/uniwbrk/wordbreak-property: Likewise.
14319         * modules/uniwidth/u8-strwidth: Likewise.
14320         * modules/uniwidth/u8-width: Likewise.
14321         * modules/uniwidth/u16-strwidth: Likewise.
14322         * modules/uniwidth/u16-width: Likewise.
14323         * modules/uniwidth/u32-strwidth: Likewise.
14324         * modules/uniwidth/u32-width: Likewise.
14325         * modules/uniwidth/width: Likewise.
14326         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14327         with $(LIBUNISTRING).
14328         * modules/unicase/ignorable-tests: Likewise.
14329         * modules/unicase/locale-language-tests: Likewise.
14330         * modules/unicase/tolower-tests: Likewise.
14331         * modules/unicase/totitle-tests: Likewise.
14332         * modules/unicase/toupper-tests: Likewise.
14333         * modules/unicase/u8-casecmp-tests: Likewise.
14334         * modules/unicase/u8-casecoll-tests: Likewise.
14335         * modules/unicase/u8-casefold-tests: Likewise.
14336         * modules/unicase/u8-is-cased-tests: Likewise.
14337         * modules/unicase/u8-is-casefolded-tests: Likewise.
14338         * modules/unicase/u8-is-lowercase-tests: Likewise.
14339         * modules/unicase/u8-is-titlecase-tests: Likewise.
14340         * modules/unicase/u8-is-uppercase-tests: Likewise.
14341         * modules/unicase/u8-tolower-tests: Likewise.
14342         * modules/unicase/u8-totitle-tests: Likewise.
14343         * modules/unicase/u8-toupper-tests: Likewise.
14344         * modules/unicase/u16-casecmp-tests: Likewise.
14345         * modules/unicase/u16-casecoll-tests: Likewise.
14346         * modules/unicase/u16-casefold-tests: Likewise.
14347         * modules/unicase/u16-is-cased-tests: Likewise.
14348         * modules/unicase/u16-is-casefolded-tests: Likewise.
14349         * modules/unicase/u16-is-lowercase-tests: Likewise.
14350         * modules/unicase/u16-is-titlecase-tests: Likewise.
14351         * modules/unicase/u16-is-uppercase-tests: Likewise.
14352         * modules/unicase/u16-tolower-tests: Likewise.
14353         * modules/unicase/u16-totitle-tests: Likewise.
14354         * modules/unicase/u16-toupper-tests: Likewise.
14355         * modules/unicase/u32-casecmp-tests: Likewise.
14356         * modules/unicase/u32-casecoll-tests: Likewise.
14357         * modules/unicase/u32-casefold-tests: Likewise.
14358         * modules/unicase/u32-is-cased-tests: Likewise.
14359         * modules/unicase/u32-is-casefolded-tests: Likewise.
14360         * modules/unicase/u32-is-lowercase-tests: Likewise.
14361         * modules/unicase/u32-is-titlecase-tests: Likewise.
14362         * modules/unicase/u32-is-uppercase-tests: Likewise.
14363         * modules/unicase/u32-tolower-tests: Likewise.
14364         * modules/unicase/u32-totitle-tests: Likewise.
14365         * modules/unicase/u32-toupper-tests: Likewise.
14366         * modules/unicase/ulc-casecmp-tests: Likewise.
14367         * modules/unicase/ulc-casecoll-tests: Likewise.
14368         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14369         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14370         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14371         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14372         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14373         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14374         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14375         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14376         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14377         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14378         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14379         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14380         * modules/unictype/bidicategory-byname-tests: Likewise.
14381         * modules/unictype/bidicategory-name-tests: Likewise.
14382         * modules/unictype/bidicategory-of-tests: Likewise.
14383         * modules/unictype/bidicategory-test-tests: Likewise.
14384         * modules/unictype/block-list-tests: Likewise.
14385         * modules/unictype/block-of-tests: Likewise.
14386         * modules/unictype/block-test-tests: Likewise.
14387         * modules/unictype/category-C-tests: Likewise.
14388         * modules/unictype/category-Cc-tests: Likewise.
14389         * modules/unictype/category-Cf-tests: Likewise.
14390         * modules/unictype/category-Cn-tests: Likewise.
14391         * modules/unictype/category-Co-tests: Likewise.
14392         * modules/unictype/category-Cs-tests: Likewise.
14393         * modules/unictype/category-L-tests: Likewise.
14394         * modules/unictype/category-Ll-tests: Likewise.
14395         * modules/unictype/category-Lm-tests: Likewise.
14396         * modules/unictype/category-Lo-tests: Likewise.
14397         * modules/unictype/category-Lt-tests: Likewise.
14398         * modules/unictype/category-Lu-tests: Likewise.
14399         * modules/unictype/category-M-tests: Likewise.
14400         * modules/unictype/category-Mc-tests: Likewise.
14401         * modules/unictype/category-Me-tests: Likewise.
14402         * modules/unictype/category-Mn-tests: Likewise.
14403         * modules/unictype/category-N-tests: Likewise.
14404         * modules/unictype/category-Nd-tests: Likewise.
14405         * modules/unictype/category-Nl-tests: Likewise.
14406         * modules/unictype/category-No-tests: Likewise.
14407         * modules/unictype/category-P-tests: Likewise.
14408         * modules/unictype/category-Pc-tests: Likewise.
14409         * modules/unictype/category-Pd-tests: Likewise.
14410         * modules/unictype/category-Pe-tests: Likewise.
14411         * modules/unictype/category-Pf-tests: Likewise.
14412         * modules/unictype/category-Pi-tests: Likewise.
14413         * modules/unictype/category-Po-tests: Likewise.
14414         * modules/unictype/category-Ps-tests: Likewise.
14415         * modules/unictype/category-S-tests: Likewise.
14416         * modules/unictype/category-Sc-tests: Likewise.
14417         * modules/unictype/category-Sk-tests: Likewise.
14418         * modules/unictype/category-Sm-tests: Likewise.
14419         * modules/unictype/category-So-tests: Likewise.
14420         * modules/unictype/category-Z-tests: Likewise.
14421         * modules/unictype/category-Zl-tests: Likewise.
14422         * modules/unictype/category-Zp-tests: Likewise.
14423         * modules/unictype/category-Zs-tests: Likewise.
14424         * modules/unictype/category-and-not-tests: Likewise.
14425         * modules/unictype/category-and-tests: Likewise.
14426         * modules/unictype/category-byname-tests: Likewise.
14427         * modules/unictype/category-name-tests: Likewise.
14428         * modules/unictype/category-none-tests: Likewise.
14429         * modules/unictype/category-of-tests: Likewise.
14430         * modules/unictype/category-or-tests: Likewise.
14431         * modules/unictype/category-test-withtable-tests: Likewise.
14432         * modules/unictype/combining-class-tests: Likewise.
14433         * modules/unictype/ctype-alnum-tests: Likewise.
14434         * modules/unictype/ctype-alpha-tests: Likewise.
14435         * modules/unictype/ctype-blank-tests: Likewise.
14436         * modules/unictype/ctype-cntrl-tests: Likewise.
14437         * modules/unictype/ctype-digit-tests: Likewise.
14438         * modules/unictype/ctype-graph-tests: Likewise.
14439         * modules/unictype/ctype-lower-tests: Likewise.
14440         * modules/unictype/ctype-print-tests: Likewise.
14441         * modules/unictype/ctype-punct-tests: Likewise.
14442         * modules/unictype/ctype-space-tests: Likewise.
14443         * modules/unictype/ctype-upper-tests: Likewise.
14444         * modules/unictype/ctype-xdigit-tests: Likewise.
14445         * modules/unictype/decimal-digit-tests: Likewise.
14446         * modules/unictype/digit-tests: Likewise.
14447         * modules/unictype/mirror-tests: Likewise.
14448         * modules/unictype/numeric-tests: Likewise.
14449         * modules/unictype/property-alphabetic-tests: Likewise.
14450         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14451         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14452         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14453         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14454         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14455         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14456         * modules/unictype/property-bidi-control-tests: Likewise.
14457         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14458         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14459         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14460         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14461         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14462         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14463         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14464         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14465         * modules/unictype/property-bidi-pdf-tests: Likewise.
14466         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14467         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14468         * modules/unictype/property-byname-tests: Likewise.
14469         * modules/unictype/property-combining-tests: Likewise.
14470         * modules/unictype/property-composite-tests: Likewise.
14471         * modules/unictype/property-currency-symbol-tests: Likewise.
14472         * modules/unictype/property-dash-tests: Likewise.
14473         * modules/unictype/property-decimal-digit-tests: Likewise.
14474         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14475         * modules/unictype/property-deprecated-tests: Likewise.
14476         * modules/unictype/property-diacritic-tests: Likewise.
14477         * modules/unictype/property-extender-tests: Likewise.
14478         * modules/unictype/property-format-control-tests: Likewise.
14479         * modules/unictype/property-grapheme-base-tests: Likewise.
14480         * modules/unictype/property-grapheme-extend-tests: Likewise.
14481         * modules/unictype/property-grapheme-link-tests: Likewise.
14482         * modules/unictype/property-hex-digit-tests: Likewise.
14483         * modules/unictype/property-hyphen-tests: Likewise.
14484         * modules/unictype/property-id-continue-tests: Likewise.
14485         * modules/unictype/property-id-start-tests: Likewise.
14486         * modules/unictype/property-ideographic-tests: Likewise.
14487         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14488         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14489         * modules/unictype/property-ignorable-control-tests: Likewise.
14490         * modules/unictype/property-iso-control-tests: Likewise.
14491         * modules/unictype/property-join-control-tests: Likewise.
14492         * modules/unictype/property-left-of-pair-tests: Likewise.
14493         * modules/unictype/property-line-separator-tests: Likewise.
14494         * modules/unictype/property-logical-order-exception-tests: Likewise.
14495         * modules/unictype/property-lowercase-tests: Likewise.
14496         * modules/unictype/property-math-tests: Likewise.
14497         * modules/unictype/property-non-break-tests: Likewise.
14498         * modules/unictype/property-not-a-character-tests: Likewise.
14499         * modules/unictype/property-numeric-tests: Likewise.
14500         * modules/unictype/property-other-alphabetic-tests: Likewise.
14501         * modules/unictype/property-other-default-ignorable-code-point-tests:
14502         Likewise.
14503         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14504         * modules/unictype/property-other-id-continue-tests: Likewise.
14505         * modules/unictype/property-other-id-start-tests: Likewise.
14506         * modules/unictype/property-other-lowercase-tests: Likewise.
14507         * modules/unictype/property-other-math-tests: Likewise.
14508         * modules/unictype/property-other-uppercase-tests: Likewise.
14509         * modules/unictype/property-paired-punctuation-tests: Likewise.
14510         * modules/unictype/property-paragraph-separator-tests: Likewise.
14511         * modules/unictype/property-pattern-syntax-tests: Likewise.
14512         * modules/unictype/property-pattern-white-space-tests: Likewise.
14513         * modules/unictype/property-private-use-tests: Likewise.
14514         * modules/unictype/property-punctuation-tests: Likewise.
14515         * modules/unictype/property-quotation-mark-tests: Likewise.
14516         * modules/unictype/property-radical-tests: Likewise.
14517         * modules/unictype/property-sentence-terminal-tests: Likewise.
14518         * modules/unictype/property-soft-dotted-tests: Likewise.
14519         * modules/unictype/property-space-tests: Likewise.
14520         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14521         * modules/unictype/property-test-tests: Likewise.
14522         * modules/unictype/property-titlecase-tests: Likewise.
14523         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14524         * modules/unictype/property-unified-ideograph-tests: Likewise.
14525         * modules/unictype/property-uppercase-tests: Likewise.
14526         * modules/unictype/property-variation-selector-tests: Likewise.
14527         * modules/unictype/property-white-space-tests: Likewise.
14528         * modules/unictype/property-xid-continue-tests: Likewise.
14529         * modules/unictype/property-xid-start-tests: Likewise.
14530         * modules/unictype/property-zero-width-tests: Likewise.
14531         * modules/unictype/scripts-tests: Likewise.
14532         * modules/unictype/syntax-c-ident-tests: Likewise.
14533         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14534         * modules/unictype/syntax-java-ident-tests: Likewise.
14535         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14536         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14537         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14538         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14539         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14540         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14541         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14542         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14543         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14544         * modules/uniname/uniname-tests: Likewise.
14545         * modules/uninorm/canonical-decomposition-tests: Likewise.
14546         * modules/uninorm/compat-decomposition-tests: Likewise.
14547         * modules/uninorm/composition-tests: Likewise.
14548         * modules/uninorm/decomposing-form-tests: Likewise.
14549         * modules/uninorm/decomposition-tests: Likewise.
14550         * modules/uninorm/filter-tests: Likewise.
14551         * modules/uninorm/nfc-tests: Likewise.
14552         * modules/uninorm/nfd-tests: Likewise.
14553         * modules/uninorm/nfkc-tests: Likewise.
14554         * modules/uninorm/nfkd-tests: Likewise.
14555         * modules/uninorm/u8-normcmp-tests: Likewise.
14556         * modules/uninorm/u8-normcoll-tests: Likewise.
14557         * modules/uninorm/u16-normcmp-tests: Likewise.
14558         * modules/uninorm/u16-normcoll-tests: Likewise.
14559         * modules/uninorm/u32-normcmp-tests: Likewise.
14560         * modules/uninorm/u32-normcoll-tests: Likewise.
14561         * modules/unistdio/u8-asnprintf-tests: Likewise.
14562         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14563         * modules/unistdio/u8-vasprintf-tests: Likewise.
14564         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14565         * modules/unistdio/u8-vsprintf-tests: Likewise.
14566         * modules/unistdio/u16-asnprintf-tests: Likewise.
14567         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14568         * modules/unistdio/u16-vasprintf-tests: Likewise.
14569         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14570         * modules/unistdio/u16-vsprintf-tests: Likewise.
14571         * modules/unistdio/u32-asnprintf-tests: Likewise.
14572         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14573         * modules/unistdio/u32-vasprintf-tests: Likewise.
14574         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14575         * modules/unistdio/u32-vsprintf-tests: Likewise.
14576         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14577         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14578         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14579         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14580         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14581         * modules/unistr/u8-check-tests: Likewise.
14582         * modules/unistr/u8-chr-tests: Likewise.
14583         * modules/unistr/u8-cmp-tests: Likewise.
14584         * modules/unistr/u8-cmp2-tests: Likewise.
14585         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14586         * modules/unistr/u8-cpy-tests: Likewise.
14587         * modules/unistr/u8-mblen-tests: Likewise.
14588         * modules/unistr/u8-mbsnlen-tests: Likewise.
14589         * modules/unistr/u8-mbtouc-tests: Likewise.
14590         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14591         * modules/unistr/u8-mbtoucr-tests: Likewise.
14592         * modules/unistr/u8-move-tests: Likewise.
14593         * modules/unistr/u8-next-tests: Likewise.
14594         * modules/unistr/u8-prev-tests: Likewise.
14595         * modules/unistr/u8-set-tests: Likewise.
14596         * modules/unistr/u8-stpcpy-tests: Likewise.
14597         * modules/unistr/u8-stpncpy-tests: Likewise.
14598         * modules/unistr/u8-strcat-tests: Likewise.
14599         * modules/unistr/u8-strcmp-tests: Likewise.
14600         * modules/unistr/u8-strcoll-tests: Likewise.
14601         * modules/unistr/u8-strcpy-tests: Likewise.
14602         * modules/unistr/u8-strdup-tests: Likewise.
14603         * modules/unistr/u8-strlen-tests: Likewise.
14604         * modules/unistr/u8-strmblen-tests: Likewise.
14605         * modules/unistr/u8-strmbtouc-tests: Likewise.
14606         * modules/unistr/u8-strncat-tests: Likewise.
14607         * modules/unistr/u8-strncmp-tests: Likewise.
14608         * modules/unistr/u8-strncpy-tests: Likewise.
14609         * modules/unistr/u8-strnlen-tests: Likewise.
14610         * modules/unistr/u8-to-u16-tests: Likewise.
14611         * modules/unistr/u8-to-u32-tests: Likewise.
14612         * modules/unistr/u8-uctomb-tests: Likewise.
14613         * modules/unistr/u16-check-tests: Likewise.
14614         * modules/unistr/u16-chr-tests: Likewise.
14615         * modules/unistr/u16-cmp-tests: Likewise.
14616         * modules/unistr/u16-cmp2-tests: Likewise.
14617         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14618         * modules/unistr/u16-cpy-tests: Likewise.
14619         * modules/unistr/u16-mblen-tests: Likewise.
14620         * modules/unistr/u16-mbsnlen-tests: Likewise.
14621         * modules/unistr/u16-mbtouc-tests: Likewise.
14622         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14623         * modules/unistr/u16-mbtoucr-tests: Likewise.
14624         * modules/unistr/u16-move-tests: Likewise.
14625         * modules/unistr/u16-next-tests: Likewise.
14626         * modules/unistr/u16-prev-tests: Likewise.
14627         * modules/unistr/u16-set-tests: Likewise.
14628         * modules/unistr/u16-stpcpy-tests: Likewise.
14629         * modules/unistr/u16-stpncpy-tests: Likewise.
14630         * modules/unistr/u16-strcat-tests: Likewise.
14631         * modules/unistr/u16-strcmp-tests: Likewise.
14632         * modules/unistr/u16-strcoll-tests: Likewise.
14633         * modules/unistr/u16-strcpy-tests: Likewise.
14634         * modules/unistr/u16-strdup-tests: Likewise.
14635         * modules/unistr/u16-strlen-tests: Likewise.
14636         * modules/unistr/u16-strmblen-tests: Likewise.
14637         * modules/unistr/u16-strmbtouc-tests: Likewise.
14638         * modules/unistr/u16-strncat-tests: Likewise.
14639         * modules/unistr/u16-strncmp-tests: Likewise.
14640         * modules/unistr/u16-strncpy-tests: Likewise.
14641         * modules/unistr/u16-strnlen-tests: Likewise.
14642         * modules/unistr/u16-to-u32-tests: Likewise.
14643         * modules/unistr/u16-to-u8-tests: Likewise.
14644         * modules/unistr/u16-uctomb-tests: Likewise.
14645         * modules/unistr/u32-check-tests: Likewise.
14646         * modules/unistr/u32-chr-tests: Likewise.
14647         * modules/unistr/u32-cmp-tests: Likewise.
14648         * modules/unistr/u32-cmp2-tests: Likewise.
14649         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14650         * modules/unistr/u32-cpy-tests: Likewise.
14651         * modules/unistr/u32-mblen-tests: Likewise.
14652         * modules/unistr/u32-mbsnlen-tests: Likewise.
14653         * modules/unistr/u32-mbtouc-tests: Likewise.
14654         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14655         * modules/unistr/u32-mbtoucr-tests: Likewise.
14656         * modules/unistr/u32-move-tests: Likewise.
14657         * modules/unistr/u32-next-tests: Likewise.
14658         * modules/unistr/u32-prev-tests: Likewise.
14659         * modules/unistr/u32-set-tests: Likewise.
14660         * modules/unistr/u32-stpcpy-tests: Likewise.
14661         * modules/unistr/u32-stpncpy-tests: Likewise.
14662         * modules/unistr/u32-strcat-tests: Likewise.
14663         * modules/unistr/u32-strcmp-tests: Likewise.
14664         * modules/unistr/u32-strcoll-tests: Likewise.
14665         * modules/unistr/u32-strcpy-tests: Likewise.
14666         * modules/unistr/u32-strdup-tests: Likewise.
14667         * modules/unistr/u32-strlen-tests: Likewise.
14668         * modules/unistr/u32-strmblen-tests: Likewise.
14669         * modules/unistr/u32-strmbtouc-tests: Likewise.
14670         * modules/unistr/u32-strncat-tests: Likewise.
14671         * modules/unistr/u32-strncmp-tests: Likewise.
14672         * modules/unistr/u32-strncpy-tests: Likewise.
14673         * modules/unistr/u32-strnlen-tests: Likewise.
14674         * modules/unistr/u32-to-u16-tests: Likewise.
14675         * modules/unistr/u32-to-u8-tests: Likewise.
14676         * modules/unistr/u32-uctomb-tests: Likewise.
14677         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14678         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14679         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14680         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14681         * modules/uniwidth/u8-strwidth-tests: Likewise.
14682         * modules/uniwidth/u8-width-tests: Likewise.
14683         * modules/uniwidth/u16-strwidth-tests: Likewise.
14684         * modules/uniwidth/u16-width-tests: Likewise.
14685         * modules/uniwidth/u32-strwidth-tests: Likewise.
14686         * modules/uniwidth/u32-width-tests: Likewise.
14687         * modules/uniwidth/width-tests: Likewise.
14688
14689 2010-05-18  Richard Jones  <rjones@redhat.com>
14690
14691         doc: users.txt: list hivex
14692         * users.txt: Add hivex.
14693
14694 2010-05-18  Richard Jones  <rjones@redhat.com>
14695
14696         doc: users.txt: list febootstrap
14697         * users.txt: Add febootstrap.
14698
14699 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14700
14701         bootstrap: fix an error when gnulib is not used as a git submodule
14702         * build-aux/bootstrap (gnulib_path): If its length is zero then
14703         assign "gnulib" to it.
14704         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14705
14706 2010-05-16  Bruno Haible  <bruno@clisp.org>
14707
14708         Avoid autoconf warnings about AM_ICONV.
14709         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14710         2.64.
14711
14712 2010-05-16  Bruno Haible  <bruno@clisp.org>
14713
14714         absolute-header: Make the macro usable in more situations.
14715         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14716         from gl_ABSOLUTE_HEADER.
14717         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14718
14719 2010-05-16  James Youngman  <jay@gnu.org>
14720
14721         doc: update users.txt
14722         * users.txt: Add CSSC.
14723
14724 2010-05-16  Jim Meyering  <meyering@redhat.com>
14725
14726         init.sh: fix an error in the previous change; add more comments
14727         * tests/init.sh: Compare exit code in loop against 9, not 2.
14728         Patch by Bruno Haible.
14729         Make the two tests more similar by adding an empty "then" clause.
14730         Add comments.
14731
14732         init.sh: avoid unnecessary shell re-exec
14733         * tests/init.sh: Improve the re-exec-required check to first test the
14734         current shell.  If it passes the test, do not search for a shell that
14735         does pass, and do not re-exec.  This test is particularly contorted to
14736         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14737         of $(...) evokes a syntax error and causes immediate shell exit with
14738         status 2.  Bruno Haible reported that the re-exec made it impossible
14739         to single-step through any init.sh-using script.
14740
14741 2010-05-16  Bruno Haible  <bruno@clisp.org>
14742
14743         Fix collision between gnulib's and libintl's printf replacements.
14744         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14745         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14746         (printf): When using GNU C, map the __printf__ function to rpl_printf
14747         via __asm__. When not using GNU C, define rpl_printf instead of
14748         __printf__.
14749         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14750         commit.
14751         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14752         commit.
14753         * m4/asm-underscore.m4: New file.
14754         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14755         * modules/stdio (Files): Add m4/asm-underscore.m4.
14756         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14757         Reported by Ben Pfaff.
14758
14759 2010-05-16  Bruno Haible  <bruno@clisp.org>
14760
14761         verify: Avoid skipping the test on openSUSE 11.0.
14762         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14763
14764 2010-05-13  Bruno Haible  <bruno@clisp.org>
14765
14766         Avoid useless warnings from G++.
14767         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14768         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14769         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14770
14771 2010-05-11  Jim Meyering  <meyering@redhat.com>
14772
14773         maint.mk: tweak preceding change
14774         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14775         regexps tighter by anchoring at EOL, and make the new group "shy"
14776         for slightly decreased overhead.
14777
14778 2010-05-11  Eric Blake  <eblake@redhat.com>
14779
14780         maint.mk: gnulib doesn't guarantee NSIG
14781         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14782
14783 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14784
14785         test-pwrite.c: Remove unused variable declaration.
14786         * tests/test-pwrite.c (main): Remove read_buf declaration.
14787
14788         Remove useless test-pwrite.sh file.
14789         * tests/test-pwrite.sh: Delete file.
14790         * modules/pwrite-tests: Remove references.
14791         Reported by Bruno Haible.
14792
14793 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14794
14795         init.sh: fix a typo
14796         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14797
14798 2010-05-10  Jim Meyering  <meyering@redhat.com>
14799
14800         maint.mk: avoid using a temporary file in the always-defined-macros check
14801         * top/maint.mk (.re-defmac): Remove rule.
14802         (gl_trap_): Remove definition.
14803         (sc_prohibit_always-defined_macros): Rewrite not to create and
14804         depend on a temporary file.  Instead, depend on GNU grep's ability
14805         to read a list of regular expressions from stdin when given "-f -".
14806
14807 2010-05-09  Bruno Haible  <bruno@clisp.org>
14808
14809         Update to GNU gettext 0.18, part 1.
14810         * m4/gettext.m4: Update to GNU gettext 0.18.
14811         * m4/intl.m4: Likewise.
14812         * m4/po.m4: Likewise.
14813         * modules/gettext (Files): Add m4/fcntl-o.m4.
14814         (configure.ac): Require gettext infrastructure from version 0.18.
14815
14816 2010-05-09  Jim Meyering  <meyering@redhat.com>
14817
14818         init.sh: enable MALLOC_PERTURB_
14819         * tests/init.sh: Enable glibc's malloc-perturbing option.
14820
14821         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14822         With my recent change in init.sh from the two-line form:
14823             -#   : ${srcdir=.}
14824             -#   . "$srcdir/init.sh"; path_prepend_ .
14825             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14826         I noticed that using the one-line form would cause this test
14827         to fail with a false-positive, or to stop working altogether,
14828         depending on whether help-version changed or all the tests did.
14829         * top/maint.mk (_hv_regex): Remove this definition.
14830         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14831         (_hv_regex_strong): Use a stronger regex to check for conformance.
14832         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14833         Give a separate diagnostic for lack of conforming use.
14834
14835         maint.mk: prohibit definition of symbols defined by gnulib
14836         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14837         definition of symbols defined by gnulib.
14838
14839 2010-05-09  Bruno Haible  <bruno@clisp.org>
14840
14841         acl: Avoid test failure on Cygwin-hosted mingw.
14842         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14843
14844 2010-05-09  Bruno Haible  <bruno@clisp.org>
14845
14846         error: Use system's fcntl function.
14847         * lib/error.c (fcntl): Undefine.
14848
14849 2010-05-09  Jim Meyering  <meyering@redhat.com>
14850
14851         verify: adjust formatting to be more consistent
14852         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14853         argument-list '('s, and after one comma.
14854
14855 2010-05-09  Bruno Haible  <bruno@clisp.org>
14856
14857         error: More reliable output on mingw.
14858         * lib/error.c: Include <windows.h>.
14859         (is_open): New function.
14860         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14861         defined.
14862
14863 2010-05-09  Bruno Haible  <bruno@clisp.org>
14864
14865         vasnprintf: Fix syntax errors in libintl build on mingw.
14866         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14867         pad_ourselves and prec_ourselves after use.
14868
14869 2010-05-08  Bruno Haible  <bruno@clisp.org>
14870
14871         * lib/config.charset: Update comments for Cygwin 1.7.
14872         * lib/localcharset.c: Likewise.
14873
14874 2010-05-07  Jim Meyering  <meyering@redhat.com>
14875
14876         init.sh: improve comments
14877         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14878         . "${srcdir=.}/init.sh"; path_prepend_ .
14879         Add a note about path_prepend_ and the alternative of using
14880         TESTS_ENVIRONMENT.
14881
14882 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14883
14884         exclude: Unescape hashed patterns in wildcard mode.
14885         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14886         to the hash list.
14887         * tests/test-exclude8.sh: New test case.
14888         * modules/exclude-tests: Add new test.
14889
14890 2010-05-05  Eric Blake  <eblake@redhat.com>
14891
14892         verify: automate tests
14893         * modules/verify-tests: New module.
14894         * tests/test-verify.sh: New file.
14895         * tests/test-verify.c: Guard each negative test with a unique id.
14896         Also avoid warning about unused left hand of comma expressions.
14897
14898 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14899
14900         Further improvements to verify.h, suggested by Eric Blake.
14901         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14902         the GL_* versions, to avoid collision with OpenGL.
14903         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14904         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14905         than testing merely whether it's defined.
14906
14907         Modify verify.h to pacify gcc -Wredundant_decls.
14908         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14909         These use the prefix "GL_" since they're likely to be useful elsewhere.
14910         We may need to break them out into a different .h file.
14911         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14912         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14913         of verify_function__.
14914
14915 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14916
14917         Tests for module pwrite.
14918         * modules/pwrite-tests: New file.
14919         * tests/test-pwrite.sh: New file.
14920         * tests/test-pwrite.c: New file.
14921
14922         New module pwrite.
14923         * lib/unistd.in.h (pwrite): New declaration.
14924         * lib/pwrite.c: New file, from glibc with modifications.
14925         * m4/pwrite.m4: New file.
14926         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14927         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14928         REPLACE_PWRITE.
14929         * modules/pwrite: New file.
14930         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14931         REPLACE_PWRITE.
14932         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14933         * doc/posix-functions/pwrite.texi: Mention the new module.
14934
14935 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14936
14937         pread: Update documentation.
14938         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14939
14940 2010-05-04  Eric Blake  <eblake@redhat.com>
14941
14942         docs: update cygwin progress
14943         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14944         this bug.
14945         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14946         Added in cygwin 1.7.2.
14947         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14948         Likewise.
14949         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14950         Likewise.
14951         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14952         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14953         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14954         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14955         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14956         Mention nproc module.
14957         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14958         bug in cygwin 1.7.5 addition.
14959         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14960         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14961         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14962         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14963         1.7.5.
14964         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14965         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14966         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14967         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14968         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14969         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14970         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14971         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14972         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14973         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14974         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14975         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14976         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14977         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14978         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14979         Likewise.
14980         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14981         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14982         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14983         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14984         Likewise.
14985         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14986         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14987         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14988         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14989         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14990         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14991         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14992         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14993         Likewise.
14994         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14995         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14996         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14997         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14998         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14999         Likewise.
15000         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15001         Likewise.
15002         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15003         Likewise.
15004         * doc/glibc-functions/xdrrec_endofrecord.texi
15005         (xdrrec_endofrecord): Likewise.
15006         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15007         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15008         Likewise.
15009         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15010         Likewise.
15011
15012 2010-05-04  Jim Meyering  <meyering@redhat.com>
15013
15014         gendocs.sh: make its "-s FILE" option more useful
15015         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15016         $PACKAGE to reflect the probably-different basename of "FILE".
15017
15018 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15019
15020         bootstrap: don't ignore download_po_files failure
15021         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15022         failure.
15023
15024 2010-05-03  Jim Meyering  <meyering@redhat.com>
15025
15026         maint.mk: allow to pass options to gendocs.sh
15027         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15028         (gendocs_options_): New overridable variable.
15029
15030         gnu-web-doc-update: don't ignore configure or build failure
15031         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15032
15033         announce-gen: backslash-escape '@'s in --help output
15034         * build-aux/announce-gen: Fix syntax errors.
15035
15036         maint.mk, announce-gen: allow project-specific announcement mail headers
15037         * top/maint.mk (translation_project_): Define default.
15038         (announcement_Cc_, announcement_mail_headers_): Likewise.
15039         (announcement): Invoke announce-gen with new --mail-headers option.
15040         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15041
15042         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15043         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15044         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15045         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15046         line in the "err2" output file when running "make check" in verbose
15047         mode (i.e., with set -x enabled).
15048
15049 2010-05-03  Bruno Haible  <bruno@clisp.org>
15050
15051         wctob: Fix for weird platforms.
15052         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15053         argument value.
15054
15055 2010-05-03  Jim Meyering  <meyering@redhat.com>
15056
15057         maint.mk: prohibit unwarranted use of <strings.h>
15058         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15059         strings.h in a file that does not also use strcasecmp, strncasecmp,
15060         ffs or ffsll.
15061
15062         maint.mk: remove obsolete comments
15063         * top/maint.mk: Remove stale, commented-out rules.
15064
15065 2010-05-02  Bruno Haible  <bruno@clisp.org>
15066
15067         wcwidth: Declare also when it's aliased.
15068         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15069         macro.
15070
15071 2010-05-02  Bruno Haible  <bruno@clisp.org>
15072
15073         Fix regression from 2010-04-25.
15074         * gnulib-tool (func_modules_transitive_closure): Check the status of
15075         all modules, not only of the tests that are of the form foo-tests where
15076         foo is a module.
15077
15078 2010-05-02  Bruno Haible  <bruno@clisp.org>
15079
15080         wctob: Work around nasty Cygwin 1.7.2 bug.
15081         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15082         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15083
15084 2010-05-01  Bruno Haible  <bruno@clisp.org>
15085
15086         fpurge: Sharper test.
15087         * tests/test-fpurge.c (main): Add one more ftell check.
15088         * modules/fpurge-tests (Depends-on): Add ftell.
15089         Suggested by Eric Blake.
15090
15091 2010-05-01  Bruno Haible  <bruno@clisp.org>
15092
15093         ftello: Another test.
15094         * tests/test-ftello3.c: New file.
15095         * modules/ftello-tests (Files): Add it.
15096         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15097         MOSTLYCLEANFILES.
15098
15099         ftell: Another test.
15100         * tests/test-ftell3.c: New file.
15101         * modules/ftell-tests (Files): Add it.
15102         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15103         MOSTLYCLEANFILES.
15104
15105 2010-05-01  Bruno Haible  <bruno@clisp.org>
15106
15107         ftell, ftello: Work around Solaris bug.
15108         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15109         * lib/ftello.c: Include stdio-impl.h.
15110         (ftello): On Solaris, when _IOWRT is set, compute the result without
15111         looking at _IOREAD.
15112         * modules/ftello (Files): Add lib/stdio-impl.h.
15113         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15114         * doc/posix-functions/ftello.texi: Likewise.
15115         Reported by Eric Blake.
15116
15117 2010-05-01  Bruno Haible  <bruno@clisp.org>
15118
15119         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15120         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15121         the _IOWRT flag is also set.
15122
15123 2010-05-01  Bruno Haible  <bruno@clisp.org>
15124
15125         Fix doc about a HP-UX stdio bug.
15126         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15127         * doc/posix-functions/ftello.texi: Likewise.
15128
15129 2010-05-01  Bruno Haible  <bruno@clisp.org>
15130
15131         lseek test: Fix failure on Solaris.
15132         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15133         output.
15134
15135 2010-04-30  Jim Meyering  <meyering@redhat.com>
15136
15137         bootstrap: don't ignore failure to generate po*/Makevars
15138         * build-aux/bootstrap (with_gettext): Don't ignore failure
15139         to create po/Makevars or runtime-po/Makevars.
15140
15141 2010-04-29  Eric Blake  <eblake@redhat.com>
15142
15143         headers: relax license to LGPLv2+
15144         * modules/fcntl-h (License): Relax license.
15145         * modules/getopt-posix (License): Likewise.
15146         * modules/locale (License): Likewise.
15147         * modules/math (License): Likewise.
15148         * modules/pty (License): Likewise.
15149         * modules/sched (License): Likewise.
15150         * modules/search (License): Likewise.
15151         * modules/spawn (License): Likewise.
15152         * modules/stdarg (License): Likewise.
15153         * modules/sysexits (License): Likewise.
15154
15155 2010-04-29  Jim Meyering  <meyering@redhat.com>
15156
15157         inttypes: relax license to LGPLv2+
15158         * modules/inttypes (License): Relax license.
15159
15160 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15161
15162         * top/maint.mk (indent): Run twice to produce idempotent results.
15163
15164 2010-04-28  Bruno Haible  <bruno@clisp.org>
15165
15166         getdate: Generate getdate.c in the source directory.
15167         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15168         MOSTLYCLEANFILES.
15169         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15170
15171 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15172
15173         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15174         is not declared as a const *; avoid warnings in that case.
15175
15176 2010-04-28  Eric Blake  <eblake@redhat.com>
15177
15178         canonicalize-lgpl: avoid compiler warning
15179         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15180         declaration' / 'extraneous semicolon' warning with some compilers.
15181         Reported by Andreas Gruenbacher.
15182
15183 2010-04-28  Jim Meyering  <meyering@redhat.com>
15184
15185         init.sh: ensure a more reliable exit status when exiting via trap
15186         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15187         Inspired by patches from Dmitry V. Levin.
15188         Also trap on signal 3 (SIGQUIT).
15189
15190 2010-04-27  Bruno Haible  <bruno@clisp.org>
15191
15192         Update doc about utimes().
15193         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15194         'utimens' module.
15195         Reported by Andreas Gruenbacher <agruen@suse.de>.
15196
15197 2010-04-27  Eric Blake  <eblake@redhat.com>
15198
15199         full-read, full-write: relax license
15200         * modules/full-read (License): Drop to LGPLv2+.
15201         * modules/full-write (License): Likewise.
15202         * modules/safe-read (License): Likewise.
15203         * modules/safe-write (License): Likewise.
15204
15205         pthread: mention library for linking
15206         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15207
15208 2010-04-27  Jim Meyering  <meyering@redhat.com>
15209
15210         maint.mk: fix a bug introduced in last change
15211         * top/maint.mk (gl_assured_headers_): Now that all names are on
15212         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15213         is not anchored to end of word, it should be adequate.
15214
15215         maint.mk: avoid side-effect in latest syntax-check
15216         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15217         to run commands via $(shell...), and hence to incur cost only when
15218         the new rule is actually run.
15219
15220         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15221         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15222         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15223         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15224         (gl_assured_headers_, az_, AZ_): Define.
15225         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15226
15227 2010-04-26  Jim Meyering  <jim@meyering.net>
15228             Bruno Haible  <bruno@clisp.org>
15229
15230         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15231         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15232         Prompted by an exchange with Gilles Espinasse.
15233
15234 2010-04-26  Jim Meyering  <meyering@redhat.com>
15235
15236         git-version-gen: aesthetic tweak
15237         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15238         so that the command remains on a single line.
15239
15240 2010-04-26  Eric Blake  <eblake@redhat.com>
15241
15242         git-version-gen: allow use on EBCDIC hosts
15243         * build-aux/git-version-gen (dirty): Use literal rather than tying
15244         ourselves to ascii.
15245         Reported by Steve Goetze.
15246
15247 2010-04-25  Bruno Haible  <bruno@clisp.org>
15248
15249         netdb: Add support for GNULIB_POSIXCHECK.
15250         * lib/netdb.in.h: Include warn-on-use.h.
15251         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15252         functions are used when GNULIB_POSIXCHECK is defined and the
15253         getaddrinfo module is not in use.
15254         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15255         freeaddrinfo, gai_strerror, getnameinfo are declared.
15256         * modules/netdb (Depends-on): Add warn-on-use.
15257         (Makefile.am): Include warn-on-use.h in netdb.h.
15258
15259 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15260
15261         build: avoid "make check" failure without .git/ directory
15262         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15263         there is no .git/ directory.
15264
15265 2010-04-25  Bruno Haible  <bruno@clisp.org>
15266
15267         ptsname: Fix misuse of ttyname_r.
15268         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15269         of errno.
15270
15271 2010-04-25  Bruno Haible  <bruno@clisp.org>
15272
15273         ttyname_r: Make it work on Solaris 10.
15274         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15275         if the system function has the POSIX declaration. Test whether the
15276         function fails if the buffer is less than 128 bytes large.
15277         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15278         system's ttyname_r function. Provide a reasonably large buffer.
15279         * modules/ttyname_r (Depends-on): Add extensions.
15280         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15281
15282 2010-04-25  Bruno Haible  <bruno@clisp.org>
15283
15284         Use the 'extensions' module for some more functions on Solaris.
15285         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15286         module.
15287         * doc/posix-functions/ctime_r.texi: Likewise.
15288         * doc/posix-functions/getgrgid_r.texi: Likewise.
15289         * doc/posix-functions/getgrnam_r.texi: Likewise.
15290         * doc/posix-functions/getpwnam_r.texi: Likewise.
15291         * doc/posix-functions/getpwuid_r.texi: Likewise.
15292         * doc/posix-functions/readdir_r.texi: Likewise.
15293         * doc/posix-functions/sigwait.texi: Likewise.
15294         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15295         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15296
15297 2010-04-25  Bruno Haible  <bruno@clisp.org>
15298
15299         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15300         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15301         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15302         * lib/ttyname_r.c: Include <limits.h>.
15303         (ttyname_r): Define using the system's ttyname_r function, if it exists
15304         and not on Solaris.
15305         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15306         set.
15307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15308         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15309         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15310         Reported by Simon Josefsson.
15311
15312 2010-04-25  Bruno Haible  <bruno@clisp.org>
15313
15314         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15315         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15316         * doc/posix-functions/ctime_r.texi: Likewise.
15317         * doc/posix-functions/getgrgid_r.texi: Likewise.
15318         * doc/posix-functions/getgrnam_r.texi: Likewise.
15319         * doc/posix-functions/getlogin_r.texi: Likewise.
15320         * doc/posix-functions/getpwnam_r.texi: Likewise.
15321         * doc/posix-functions/getpwuid_r.texi: Likewise.
15322         * doc/posix-functions/readdir_r.texi: Likewise.
15323         * doc/posix-functions/sigwait.texi: Likewise.
15324         * doc/posix-functions/ttyname_r.texi: Likewise.
15325         Reported by Simon Josefsson.
15326
15327 2010-04-25  Bruno Haible  <bruno@clisp.org>
15328
15329         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15330         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15331         also to --create-testdir.
15332         (func_acceptable): Don't consider the status of *-tests modules here.
15333         (func_modules_transitive_closure): Consider it here, before including a
15334         test module.
15335         (func_import, func_create_testdir): Set inc_all_direct_tests,
15336         inc_all_indirect_tests.
15337         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15338         --create-testdir and --create-megatestdir.
15339
15340 2010-04-25  Bruno Haible  <bruno@clisp.org>
15341
15342         gnulib-tool: Add --without-*-tests options.
15343         * gnulib-tool (func_usage): Document the --without-*-tests options.
15344         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15345         excl_unportable_tests): New variables.
15346         Fail if they are specified with --import or --update.
15347         (func_acceptable): Respect the excl_*_tests variables.
15348         (func_import): Set the excl_*_tests variables to empty.
15349
15350 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15351             Bruno Haible  <bruno@clisp.org>
15352
15353         Work around a MacOS X 10.4 bug with openpty.
15354         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15355         * tests/test-openpty.c (main): Close the master side explicitly.
15356
15357 2010-04-25  Bruno Haible  <bruno@clisp.org>
15358
15359         strnlen: Fix a C++ test error on MacOS X and Solaris.
15360         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15361         the function is not declared.
15362         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15363         Simon Josefsson.
15364
15365 2010-04-24  Bruno Haible  <bruno@clisp.org>
15366
15367         Avoid a gcc warning.
15368         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15369         of correct type for %08lx directive.
15370         Reported by Eric Blake.
15371
15372 2010-04-24  Bruno Haible  <bruno@clisp.org>
15373
15374         vasnprintf: Correct errno value in case of out-of-memory.
15375         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15376         or sprintf. Use the errno value from SNPRINTF or sprintf.
15377         Reported by Ian Beckwith <ianb@erislabs.net>.
15378
15379 2010-04-24  Bruno Haible  <bruno@clisp.org>
15380
15381         ansi-c++-opt: Find correct compiler when cross-compiling.
15382         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15383         AC_CHECK_PROGS.
15384         Reported by Simon Josefsson.
15385
15386 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15387
15388         vc-list-files: Add support for subversion
15389         * build-aux/vc-list-files: Use "svn list" to generate the list of
15390         files controlled by subversion.
15391
15392 2010-04-23  Jim Meyering  <meyering@redhat.com>
15393
15394         vc-list-files tests: convert to use init.sh
15395         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15396         path_prepend_.
15397         Use Exit, not exit.
15398         Use skip_ rather than open coding it.
15399         Remove trap set-up and compare definitions.
15400         * tests/test-vc-list-files-git.sh: Likewise.
15401         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15402
15403 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15404
15405         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15406         backup files.
15407
15408 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15409
15410         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15411
15412 2010-04-20  Eric Blake  <eblake@redhat.com>
15413
15414         tests: be robust to ignored SIGPIPE
15415         * tests/test-select-in.sh: Consume all output.
15416         * tests/test-lseek.sh: Check correct exit status, while avoiding
15417         EPIPE.
15418
15419 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15420             Bruno Haible  <bruno@clisp.org>
15421
15422         visibility: Don't use -fvisibility if it leads to a warning.
15423         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15424         yes, don't pretend that visibility works if it leads to a warning.
15425         Reported by Mike Gran <spk121@yahoo.com>.
15426
15427 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15428
15429         * build-aux/bootstrap: Use "git -h" for testing for supported options
15430         instead of "git --help".  The short-form option only shows a summary,
15431         and doesn't layout the full man page.  Grep for the full option name
15432         in the summary, too.
15433
15434 2010-04-19  Bruno Haible  <bruno@clisp.org>
15435
15436         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15437         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15438         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15439         mention of RELOCATABLE_STRIP.
15440         Reported by Sylvain Beucler <beuc@beuc.net>.
15441
15442 2010-04-19  Bruno Haible  <bruno@clisp.org>
15443
15444         * lib/diffseq.h: Fix typo in comment.
15445         Reported by Eric Blake.
15446
15447 2010-04-19  Bruno Haible  <bruno@clisp.org>
15448
15449         ioctl: Move autoconf macro to a .m4 file.
15450         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15451         * modules/ioctl (Files): Add it.
15452         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15453         Reported by Ian Beckwith <ianb@erislabs.net>.
15454
15455 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15456             Bruno Haible  <bruno@clisp.org>
15457
15458         diffseq: Accommodate use-case with abstract arrays.
15459         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15460         is not defined.
15461         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15462         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15463
15464 2010-04-18  Bruno Haible  <bruno@clisp.org>
15465
15466         * doc/posix-headers/stdbool.texi: More precise wording.
15467
15468 2010-04-17  Jim Meyering  <meyering@redhat.com>
15469
15470         maint.mk: use gnu-style indentation in an embedded perl script
15471         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15472         Rename variable: s/two/last_two_bytes/
15473
15474 2010-04-16  Eric Blake  <eblake@redhat.com>
15475
15476         test-stdbool: skip test that fails with Solaris CC
15477         * tests/test-stdbool.c (f): Skip test that causes compilation
15478         error under buggy C++ compiler.
15479         * lib/stdbool.in.h: Document the limitation.
15480         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15481
15482         setenv: allow compilation with C++
15483         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15484         register keyword.
15485
15486         stdint: allow test to pass with C++
15487         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15488
15489         getopt: allow compilation with C++
15490         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15491         struct.
15492         * lib/getopt.c (_getopt_internal_r): Use correct type.
15493         Reported by Dagobert Michelson, via Joel E. Denny.
15494
15495 2010-04-16  Bruno Haible  <bruno@clisp.org>
15496
15497         Override netdb.h always.
15498         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15499         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15500         Reported by Ludovic Courtès <ludo@gnu.org>.
15501
15502 2010-04-15  Bruno Haible  <bruno@clisp.org>
15503
15504         openpty: Fix mistake from 2010-03-21.
15505         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15506         Reported by Simon Josefsson.
15507
15508 2010-04-15  Eric Blake  <eblake@redhat.com>
15509
15510         test-forkpty: fix expected signature
15511         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15512         Reported by Simon Josefsson.
15513
15514 2010-04-15  Jim Meyering  <meyering@redhat.com>
15515
15516         maint.mk: texinfo_suffix_re_: correct the default regexp
15517         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15518
15519         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15520         make it configurable via texinfo_suffix_re_.
15521
15522 2010-04-14  Eric Blake  <eblake@redhat.com>
15523
15524         strtok_r: relax license to LGPLv2+
15525         * modules/strtok_r (License): Relax license.
15526         Reported by Matthias Bolte.
15527
15528 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15529
15530         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15531         version 1.4.4 by default instead of requiring the libgcrypt
15532         version used during build.  This makes it possible to use the
15533         application with older but still binary compatible libgcrypt
15534         versions.
15535
15536 2010-04-13  Eric Blake  <eblake@redhat.com>
15537
15538         getopt-gnu: match recent glibc fixes and posix ruling
15539         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15540         '+' handling, when requesting extensions.
15541         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15542         'W;' handling.
15543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15544         * doc/posix-functions/getopt.texi (getopt): Document this.
15545         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15546         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15547         Likewise.
15548
15549         getopt: merge bug fixes from glibc
15550         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15551         diagnostics.  Honor '+:' correctly.  Reject ';'.
15552
15553         getopt-posix: detect MacOS bug
15554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15555         optind when missing a required argument.
15556         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15557         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15558         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15559         Likewise.
15560
15561         getopt-posix: avoid spurious failure on Solaris
15562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15563         an indicator that setting optind=1 is sufficient for reset.
15564
15565         getopt-posix: avoid spurious failure on FreeBSD
15566         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15567         in POSIX mode, since the m4 test uses it.
15568
15569         gnulib-tool: silence warning on BSD sh
15570         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15571
15572 2010-04-13  Jim Meyering  <meyering@redhat.com>
15573
15574         doc: users.txt: GNU patch now uses gnulib
15575         * users.txt: Add patch.
15576
15577 2010-04-12  Jim Meyering  <meyering@redhat.com>
15578
15579         maint.mk: generate more concise timing data for syntax-check rules
15580         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15581         " done" from each line that reports a syntax-check test duration.
15582
15583 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15584
15585         git-version-gen: use "git update-index..." rather than "git status"
15586         * build-aux/git-version-gen: Use git update-index --refresh, not
15587         "git status".  With some versions of git, "git status" would fail
15588         to update the index and result in an unwarranted "-dirty" suffix.
15589
15590 2010-04-11  Jim Meyering  <meyering@redhat.com>
15591
15592         openat: correct formatting (no semantic change)
15593         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15594         Suggested by Bruno Haible.
15595
15596 2010-04-11  Bruno Haible  <bruno@clisp.org>
15597
15598         Stricter declaration checking in testdirs.
15599         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15600         If for_tests is true, augment AM_CPPFLAGS to define
15601         GNULIB_STRICT_CHECKING.
15602         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15603         GNULIB_STRICT_CHECKING is defined, verify that the function is
15604         declared.
15605
15606 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15607             Bruno Haible  <bruno@clisp.org>
15608
15609         libunistring: Improve configure output.
15610         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15611         Don't say "consider installing GNU libunistring" when checking again
15612         with libiconv.
15613
15614 2010-04-11  Bruno Haible  <bruno@clisp.org>
15615
15616         libunistring: Correct value of $LTLIBUNISTRING.
15617         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15618         correct the value of $LTLIBUNISTRING.
15619
15620 2010-04-11  Bruno Haible  <bruno@clisp.org>
15621
15622         havelib: Add static libraries to LIBS in the right order.
15623         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15624         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15625
15626 2010-04-11  Bruno Haible  <bruno@clisp.org>
15627
15628         libunistring: Detect libunistring also when it depends on libiconv.
15629         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15630         the second AC_LIB_HAVE_LINKFLAGS invocation.
15631
15632 2010-04-11  James Youngman  <jay@gnu.org>
15633
15634         close-stream: declare local scalars to be "const"
15635         * lib/close-stream.c (close_stream): Make boolean variables const
15636         to document the fact that we set but do not change them.
15637
15638 2010-04-11  Bruno Haible  <bruno@clisp.org>
15639
15640         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15641
15642 2010-04-11  Jim Meyering  <meyering@redhat.com>
15643
15644         maint.mk: don't include dist-check.mk
15645         * top/maint.mk: Remove bogus include directive.
15646
15647         maint.mk: improve empty-line-at-EOF check
15648         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15649         solution, rather than tail+Perl-based one.  The latter would read
15650         a few kilobytes from the end of each file, and did not handle empty
15651         files properly.
15652
15653         maint.mk: print the elapsed time for each syntax-check rule
15654         * top/maint.mk (sc_m_rules_): Save start time in a file.
15655         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15656         (local-check): Interpose the .z rules
15657
15658 2010-04-11  Jim Meyering  <meyering@redhat.com>
15659
15660         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15661         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15662         empty file with one that ends in an empty line.
15663
15664 2010-04-10  Bruno Haible  <bruno@clisp.org>
15665
15666         mkdir: Make it work on mingw64.
15667         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15668         * lib/mkdir.c: Update comment.
15669         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15670
15671 2010-04-10  Bruno Haible  <bruno@clisp.org>
15672
15673         Don't override improved macro from newer autoconf.
15674         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15675         autoconf >= 2.62.
15676         Reported by Joel E. Denny <jdenny@clemson.edu>.
15677
15678 2010-04-10  Jim Meyering  <meyering@redhat.com>
15679
15680         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15681         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15682
15683         maint.mk: correct a diagnostic
15684         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15685         in diagnostic; now use $prohibit.
15686
15687 2010-04-10  Bruno Haible  <address@hidden>
15688
15689         fchownat: Fix a C++ test error on Solaris 8.
15690         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15691         the function does not exist.
15692
15693 2010-04-10  Bruno Haible  <bruno@clisp.org>
15694
15695         vasnprintf: Add more tests.
15696         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15697         (test_function): Test converting an invalid wide string.
15698
15699         vasnprintf: Correct handling of unconvertible wide string arguments.
15700         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15701         VASNPRINTF.
15702         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15703         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15704         smaller than the expected maximum need for the directive. Set errno to
15705         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15706         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15708         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15709         * modules/vasnprintf (Files): Add m4/printf.m4.
15710         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15711
15712 2010-04-10  Bruno Haible  <bruno@clisp.org>
15713
15714         vasnprintf: Fix crash in %ls directive.
15715         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15716         string is passed as argument to %ls, with no precision and no width.
15717         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15718
15719 2010-04-10  Bruno Haible  <bruno@clisp.org>
15720
15721         vasnprintf: Fix multiple test failures on mingw.
15722         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15723         _snprintf, or snwprintf, not _snwprintf.
15724
15725 2010-04-10  Bruno Haible  <bruno@clisp.org>
15726
15727         write: Fix a C++ test error on mingw.
15728         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15729
15730 2010-04-10  Bruno Haible  <bruno@clisp.org>
15731
15732         vasnprintf test: Reduce code duplication.
15733         * tests/test-vasnprintf.c (test_function): New function, extracted from
15734         test_vasnprintf.
15735         (test_vasnprintf, test_asnprintf): Invoke it.
15736
15737 2010-04-10  Bruno Haible  <bruno@clisp.org>
15738
15739         strnlen: Fix warning in C++ mode on MacOS X.
15740         * lib/string.in.h (strnlen): Use the modern idiom.
15741         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15742         defining strnlen as a macro already in <config.h>.
15743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15744         REPLACE_STRNLEN.
15745         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15746         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15747
15748 2010-04-08  James Youngman  <jay@gnu.org>
15749
15750         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15751         the example.
15752
15753 2010-04-09  Jim Meyering  <meyering@redhat.com>
15754
15755         maint.mk: print better diagnostic when there is no $(_hv_file)
15756         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15757         announce that when $(_hv_file) (aka help-version) does not exist.
15758
15759         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15760         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15761         not try to interpret its random input bytes.  Jarno Rajahalme reported
15762         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15763         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15764         (mktempd_): Likewise, just in case.
15765
15766         ftruncate: add two years to projected module removal date: 2012
15767         * m4/ftruncate.m4: Adjust comments.
15768
15769         ftruncate: mark module as obsolete; even MinGW provides it, now
15770         * modules/ftruncate (Status): Obsolete.
15771         (Notice): Say that.
15772         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15773         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15774
15775 2010-04-08  Bruno Haible  <bruno@clisp.org>
15776
15777         Fix side effects from tests-related modules.
15778         * modules/dprintf-posix (Comment): New section.
15779         * modules/fprintf-posix (Comment): Likewise.
15780         * modules/obstack-printf-posix (Comment): Likewise.
15781         * modules/printf-posix (Comment): Likewise.
15782         * modules/snprintf-posix (Comment): Likewise.
15783         * modules/sprintf-posix (Comment): Likewise.
15784         * modules/vasnprintf-posix (Comment): Likewise.
15785         * modules/vasprintf-posix (Comment): Likewise.
15786         * modules/vdprintf-posix (Comment): Likewise.
15787         * modules/vfprintf-posix (Comment): Likewise.
15788         * modules/vprintf-posix (Comment): Likewise.
15789         * modules/vsnprintf-posix (Comment): Likewise.
15790         * modules/vsprintf-posix (Comment): Likewise.
15791         * modules/xprintf-posix (Comment): Likewise.
15792         * modules/xvasprintf-posix (Comment): Likewise.
15793         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15794         * modules/floorf-tests (Depends-on): Likewise.
15795         * modules/round-tests (Depends-on): Likewise.
15796         * modules/roundf-tests (Depends-on): Likewise.
15797         * modules/trunc-tests (Depends-on): Likewise.
15798         * modules/truncf-tests (Depends-on): Likewise.
15799         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15800         'fprintf-posix' module is not present.
15801         * tests/test-floorf2.c (check): Likewise.
15802         * tests/test-trunc2.c (check): Likewise.
15803         * tests/test-truncf2.c (check): Likewise.
15804         * tests/test-round2.c (equal): Likewise.
15805         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15806
15807 2010-04-07  Karl Berry  <karl@gnu.org>
15808
15809         * config/srclist.txt,
15810         * config/srclistvars.sh,
15811         * config/srclist-update: doc fixes.
15812
15813 2010-04-07  Jim Meyering  <meyering@redhat.com>
15814
15815         maint.mk: add a PATH crosschecking syntax-check rule
15816         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15817         Useful if you use a test like the one in help-version (coreutils,
15818         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15819         printed by prog --version.
15820
15821 2010-04-06  Bruno Haible  <bruno@clisp.org>
15822
15823         Fix link error on mingw.
15824         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15825         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15826
15827 2010-04-06  Bruno Haible  <bruno@clisp.org>
15828
15829         Assume rmdir exists.
15830         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15831
15832 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15833
15834         doc: update users.txt
15835         * users.txt: Add gcal.
15836
15837 2010-04-06  Jim Meyering  <meyering@redhat.com>
15838
15839         init.sh: simply unset TMPDIR rather than risking env -i
15840         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15841         although it probably works fine on all Unix-based systems, some
15842         systems (Cygwin?) cannot tolerate a totally cleared environment.
15843         Suggestion from Eric Blake.
15844
15845 2010-04-06  Jim Meyering  <meyering@redhat.com>
15846
15847         init.sh: portability fix: use env's POSIX-specified -i option not -u
15848         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15849         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15850
15851 2010-04-05  Bruno Haible  <bruno@clisp.org>
15852
15853         btowc: Work around Cygwin 1.7.2 bug.
15854         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15855         does not map NUL to 0.
15856         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15857
15858 2010-04-05  Bruno Haible  <bruno@clisp.org>
15859
15860         Make the multithread modules work on Cygwin 1.7.2.
15861         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15862         imported symbols can be declared weak, so that it returns "no" on
15863         Cygwin 1.7.2.
15864
15865 2010-04-05  Bruno Haible  <bruno@clisp.org>
15866
15867         Use the module 'strncat'.
15868         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15869
15870         Tests for module 'strncat'.
15871         * modules/strncat-tests: New file.
15872         * tests/test-strncat.c: New file.
15873
15874         New module 'strncat'.
15875         * lib/string.in.h (strncat): New declaration.
15876         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15877         * m4/strncat.m4: New file, based on m4/memchr.m4.
15878         * modules/strncat: New file.
15879         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15880         is declared.
15881         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15882         REPLACE_STRNCAT.
15883         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15884         REPLACE_STRNCAT.
15885         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15886         module.
15887         * tests/test-string-c++.cc: Check signature of strncat.
15888
15889 2010-04-05  Jim Meyering  <meyering@redhat.com>
15890
15891         xstrtoumax-tests: convert to use init.sh
15892         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15893         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15894         Use Exit, not exit.
15895         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15896
15897         xstrtoimax-tests: convert to use init.sh
15898         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15899         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15900         Use Exit, not exit.
15901         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15902
15903 2010-04-05  Bruno Haible  <bruno@clisp.org>
15904
15905         sys_socket: Avoid #define replacements in C++ mode.
15906         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15907         warning to the function if possible, rather than #defining the symbol
15908         to a dysfunctional alias.
15909
15910 2010-04-05  Bruno Haible  <bruno@clisp.org>
15911
15912         fseeko: Fix C++ test error on mingw.
15913         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15914         gl_FUNC_FSEEKO.
15915         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15916         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15917         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15918         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15919
15920 2010-04-05  Bruno Haible  <bruno@clisp.org>
15921
15922         duplocale: Improve test output.
15923         * tests/test-duplocale.c (main): Print reason for skipped test.
15924
15925 2010-04-05  Bruno Haible  <bruno@clisp.org>
15926
15927         Assume rmdir exists.
15928         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15929         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15930
15931 2010-04-05  Bruno Haible  <bruno@clisp.org>
15932
15933         Fix link error on Solaris 8 with cc.
15934         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15935
15936 2010-04-05  Bruno Haible  <bruno@clisp.org>
15937
15938         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15939         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15940
15941 2010-04-05  Bruno Haible  <bruno@clisp.org>
15942
15943         vasprintf: Update documentation.
15944         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15945
15946 2010-04-05  Bruno Haible  <bruno@clisp.org>
15947
15948         ptsname: Improve test.
15949         * tests/test-ptsname.c (main): Also try the various master names of BSD
15950         systems.
15951
15952 2010-04-05  Bruno Haible  <bruno@clisp.org>
15953
15954         memchr: Avoid a possible C++ test error.
15955         * lib/string.in.h (memchr): Provide declaration if function is missing.
15956         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15957         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15959         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15960
15961 2010-04-05  Bruno Haible  <bruno@clisp.org>
15962
15963         strtok_r: Improve idiom.
15964         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15965         AC_LIBOBJ is used.
15966
15967 2010-04-05  Bruno Haible  <bruno@clisp.org>
15968
15969         strdup: Improve idiom.
15970         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15971         AC_LIBOBJ is used.
15972         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15973         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15974         when AC_LIBOBJ is used.
15975
15976 2010-04-05  Bruno Haible  <bruno@clisp.org>
15977
15978         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15979         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15980         don't set REPLACE_MBSINIT to 1.
15981         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15982         don't set REPLACE_MBRTOWC to 1.
15983         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15984         exist, don't set REPLACE_MBSRTOWCS to 1.
15985         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15986         exist, don't set REPLACE_MBSNRTOWCS to 1.
15987         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15988         don't set REPLACE_WCRTOMB to 1.
15989         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15990         exist, don't set REPLACE_WCSRTOMBS to 1.
15991         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15992         exist, don't set REPLACE_WCSNRTOMBS to 1.
15993
15994 2010-04-05  Bruno Haible  <bruno@clisp.org>
15995
15996         ldexpl: Improve idiom.
15997         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15998         make sure to set HAVE_DECL_LDEXPL to 0.
15999
16000 2010-04-05  Jim Meyering  <meyering@redhat.com>
16001
16002         xstrtol-tests: convert to use init.sh
16003         * modules/xstrtol-tests (Files): Add tests/init.sh.
16004         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16005         Use Exit, not exit.
16006         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16007
16008         atexit-tests: convert to use init.sh
16009         * modules/atexit-tests (Files): Add tests/init.sh.
16010         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16011         Use Exit, not exit.
16012         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16013
16014         init.sh: fix typo
16015         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16016
16017         init.sh: make it easier for a test script to write to the tty, ...
16018         when using automake's parallel-tests mode.
16019         * tests/init.sh (stderr_fileno_): Define overridable variable.
16020         (warn_): New function, to use it.
16021         (fail_, skip_, framework_failure_): Use warn_.
16022
16023 2010-04-04  Bruno Haible  <bruno@clisp.org>
16024
16025         btowc: Avoid warning.
16026         * lib/btowc.c: Include <stdlib.h>.
16027         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16028
16029 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16030             Bruno Haible  <bruno@clisp.org>
16031
16032         wchar: Port to NetBSD 1.5.
16033         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16034         * lib/wctype.in.h (WEOF): Likewise.
16035
16036 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16037             Bruno Haible  <bruno@clisp.org>
16038
16039         Port extended stdio to NetBSD 1.5.
16040         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16041         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16042         older.
16043
16044 2010-04-04  Bruno Haible  <bruno@clisp.org>
16045
16046         string: Remove unused substitution.
16047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16048         HAVE_DECL_STRERROR.
16049         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16050
16051 2010-04-04  Bruno Haible  <bruno@clisp.org>
16052
16053         strtod: Avoid a possible C++ test error.
16054         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16055         set REPLACE_STRTOD.
16056
16057 2010-04-04  Bruno Haible  <bruno@clisp.org>
16058
16059         strerror: Update documentation.
16060         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16061
16062 2010-04-04  Bruno Haible  <bruno@clisp.org>
16063
16064         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16065         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16066         _GL_CXXALIAS_SYS_CAST.
16067
16068 2010-04-04  Bruno Haible  <bruno@clisp.org>
16069
16070         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16071         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16072         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16073         REPLACE_FREXPL to 1.
16074         * doc/posix-functions/frexpl.texi: Update documentation.
16075
16076 2010-04-04  Bruno Haible  <bruno@clisp.org>
16077
16078         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16079         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16080
16081 2010-04-04  Bruno Haible  <bruno@clisp.org>
16082
16083         Implement nanosleep for native Windows.
16084         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16085
16086 2010-04-04  Bruno Haible  <bruno@clisp.org>
16087
16088         math: Fix some C++ test errors on Solaris 8.
16089         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16090
16091 2010-04-04  Bruno Haible  <bruno@clisp.org>
16092
16093         math: Fix some C++ test errors on Cygwin.
16094         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16095         truncl): Provide declaration if the system does not have it.
16096         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16097         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16098         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16099         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16100         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16101         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16102         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16103         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16104         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16105         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16106         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16107         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16108         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16109         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16110         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16111         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16113         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16114         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16115         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16116         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16117         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16118
16119 2010-04-04  Bruno Haible  <bruno@clisp.org>
16120
16121         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16122         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16123         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16124         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16125         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16126         * m4/isinf.m4 (gl_ISINF): Likewise.
16127         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16128
16129 2010-04-04  Bruno Haible  <bruno@clisp.org>
16130
16131         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16132         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16133
16134 2010-04-04  Bruno Haible  <bruno@clisp.org>
16135
16136         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16137         * modules/tmpfile (configure.ac): Update.
16138
16139         tmpfile: Fix C++ test error on mingw.
16140         * lib/stdio.in.h (tmpfile): New declaration.
16141         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16142         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16143         * modules/tmpfile (Depends-on): Add stdio.
16144         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16145         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16146         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16147         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16148         REPLACE_TMPFILE.
16149         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16150
16151 2010-04-04  Bruno Haible  <bruno@clisp.org>
16152
16153         ioctl: Fix C++ test error on mingw.
16154         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16155         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16156         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16157
16158 2010-04-03  Bruno Haible  <bruno@clisp.org>
16159
16160         wcwidth: Fix C++ test error on mingw.
16161         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16162         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16163         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16164
16165 2010-04-03  Bruno Haible  <bruno@clisp.org>
16166
16167         nanosleep: Fix C++ test error on mingw.
16168         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16169         * lib/time.in.h (nanosleep): Use modern idiom.
16170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16171         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16172         REPLACE_NANOSLEEP to 1.
16173         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16174         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16175
16176 2010-04-03  Bruno Haible  <bruno@clisp.org>
16177
16178         strptime: Fix C++ test error on mingw.
16179         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16180         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16181         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16182         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16183         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16184         not REPLACE_STRPTIME.
16185         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16186         REPLACE_STRPTIME.
16187
16188 2010-04-03  Bruno Haible  <bruno@clisp.org>
16189
16190         timegm: Fix C++ test error on mingw.
16191         * lib/time.in.h (timegm): Use modern idiom.
16192         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16193         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16194         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16195         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16196
16197 2010-04-03  Bruno Haible  <bruno@clisp.org>
16198
16199         timegm: Assume declaration if function exists.
16200         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16201         if it exists. Don't clobber ac_cv_func_timegm.
16202
16203 2010-04-03  Bruno Haible  <bruno@clisp.org>
16204
16205         time_r: Fix C++ test error on mingw.
16206         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16207         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16208         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16209         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16210         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16211
16212 2010-04-03  Bruno Haible  <bruno@clisp.org>
16213
16214         time_r: Minor updates.
16215         * modules/time_r (Description): Mention the provided functions.
16216         * lib/time_r.c: Don't include <string.h>.
16217         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16218         * doc/posix-functions/localtime_r.texi: Likewise.
16219
16220 2010-04-03  Bruno Haible  <bruno@clisp.org>
16221
16222         time: Fix regression introduced on 2010-03-08.
16223         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16224         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16225
16226 2010-04-03  Jim Meyering  <meyering@redhat.com>
16227
16228         maint.mk: don't silently disable project-specific syntax-check rules
16229         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16230         that they need to convert their project-specific syntax-check rules
16231         to use the new _sc_search_regexp.
16232
16233 2010-04-03  Bruno Haible  <bruno@clisp.org>
16234
16235         fchdir: Fix regression introduced on 2010-03-08.
16236         * lib/unistd.in.h (fchdir): Fix declaration.
16237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16239         REPLACE_FCHDIR.
16240         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16241         REPLACE_FCHDIR.
16242
16243 2010-04-03  Bruno Haible  <bruno@clisp.org>
16244
16245         getpagesize: Fix C++ test error on mingw.
16246         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16247         system does not declare the function.
16248         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16249         declared.
16250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16251         HAVE_DECL_GETPAGESIZE.
16252         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16253
16254 2010-04-03  Bruno Haible  <bruno@clisp.org>
16255
16256         stdio: Make C++ tests work on mingw.
16257         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16258         does not declare the function.
16259
16260 2010-04-03  Bruno Haible  <bruno@clisp.org>
16261
16262         ftello: Fix C++ test error on mingw.
16263         * lib/stdio.in.h (ftello): Use modern idiom.
16264         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16265         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16266         is missing and that it needs to be replaced.
16267         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16269         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16270
16271 2010-04-03  Bruno Haible  <bruno@clisp.org>
16272
16273         fseeko: Fix C++ test error on mingw.
16274         * lib/stdio.in.h (fseeko): Use modern idiom.
16275         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16277         is missing and that it needs to be replaced.
16278         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16280         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16281
16282 2010-04-03  Bruno Haible  <bruno@clisp.org>
16283
16284         mkstemp: Fix C++ test error on mingw.
16285         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16286         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16287         function is missing and that it needs to be replaced.
16288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16289         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16290
16291 2010-04-03  Bruno Haible  <bruno@clisp.org>
16292
16293         stpncpy: Fix C++ test error on mingw.
16294         * lib/string.in.h (stpncpy): Use modern idiom.
16295         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16296         function is missing and that it needs to be replaced.
16297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16298         REPLACE_STPNCPY.
16299         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16300
16301 2010-04-03  Bruno Haible  <bruno@clisp.org>
16302
16303         sys_stat: Fix C++ test error on mingw.
16304         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16305         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16306
16307 2010-04-03  Bruno Haible  <bruno@clisp.org>
16308
16309         pty: Update doc.
16310         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16311
16312 2010-04-03  Bruno Haible  <bruno@clisp.org>
16313
16314         unistd: Fix C++ test error on mingw.
16315         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16316
16317 2010-04-03  Bruno Haible  <bruno@clisp.org>
16318
16319         Update doc regarding mingw.
16320         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16321         * doc/glibc-functions/login_tty.texi: Likewise.
16322         * doc/glibc-functions/forkpty.texi: Likewise.
16323
16324 2010-04-03  Bruno Haible  <bruno@clisp.org>
16325
16326         stdlib: Avoid compilation failure of c-strtold on mingw.
16327         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16328
16329 2010-04-03  Bruno Haible  <bruno@clisp.org>
16330
16331         locale: Make C++ tests work on Cygwin and mingw.
16332         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16333         cannot provide the function.
16334         Reported by Simon Josefsson.
16335
16336 2010-04-03  Bruno Haible  <bruno@clisp.org>
16337
16338         localename: Port to MacOS X 10.6.
16339         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16340         memory layout of the locales in MacOS X 10.6 as well.
16341         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16342
16343 2010-04-02  Bruno Haible  <bruno@clisp.org>
16344
16345         gnulib-tool: Ensure that long-running tests are executed last.
16346         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16347         running tests after the one for the other tests.
16348
16349 2010-04-02  Bruno Haible  <bruno@clisp.org>
16350
16351         gnulib-tool: Ensure the tests in the main directory are executed first.
16352         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16353         start with the current directory.
16354
16355 2010-04-02  Bruno Haible  <bruno@clisp.org>
16356
16357         Tests for module 'havelib', moved here from GNU gettext.
16358         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16359         modifications.
16360         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16361         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16362         with modifications.
16363         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16364         modifications.
16365         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16366         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16367         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16368         with modifications.
16369         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16370         with modifications.
16371         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16372         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16373         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16374         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16375         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16376         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16377         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16378         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16379         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16380         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16381         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16382         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16383         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16384         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16385         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16386         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16387         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16388         with modifications.
16389         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16390         with modifications.
16391         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16392         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16393         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16394         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16395         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16396         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16397         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16398         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16399         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16400         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16401         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16402         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16403         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16404         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16405         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16406         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16407         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16408         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16409         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16410         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16411         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16412         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16413         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16414         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16415         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16416         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16417         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16418         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16419         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16420         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16421         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16422         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16423         * tests/havelib/rpathx/rpathx.c: New file, from
16424         gettext/autoconf-lib-link.
16425         * tests/havelib/rpathx/Makefile.am: New file, from
16426         gettext/autoconf-lib-link.
16427         * tests/havelib/rpathx/configure.ac: New file, from
16428         gettext/autoconf-lib-link with modifications.
16429         * tests/havelib/rpathy/rpathy.c: New file, from
16430         gettext/autoconf-lib-link.
16431         * tests/havelib/rpathy/Makefile.am: New file, from
16432         gettext/autoconf-lib-link.
16433         * tests/havelib/rpathy/configure.ac: New file, from
16434         gettext/autoconf-lib-link with modifications.
16435         * tests/havelib/rpathz/rpathz.c: New file, from
16436         gettext/autoconf-lib-link.
16437         * tests/havelib/rpathz/Makefile.am: New file, from
16438         gettext/autoconf-lib-link.
16439         * tests/havelib/rpathz/configure.ac: New file, from
16440         gettext/autoconf-lib-link with modifications.
16441         * tests/havelib/rpathlx/usex.c: New file, from
16442         gettext/autoconf-lib-link.
16443         * tests/havelib/rpathlx/Makefile.am: New file, from
16444         gettext/autoconf-lib-link.
16445         * tests/havelib/rpathlx/configure.ac: New file, from
16446         gettext/autoconf-lib-link with modifications.
16447         * tests/havelib/rpathly/usey.c: New file, from
16448         gettext/autoconf-lib-link.
16449         * tests/havelib/rpathly/Makefile.am: New file, from
16450         gettext/autoconf-lib-link.
16451         * tests/havelib/rpathly/configure.ac: New file, from
16452         gettext/autoconf-lib-link with modifications.
16453         * tests/havelib/rpathlz/usez.c: New file, from
16454         gettext/autoconf-lib-link.
16455         * tests/havelib/rpathlz/Makefile.am: New file, from
16456         gettext/autoconf-lib-link.
16457         * tests/havelib/rpathlz/configure.ac: New file, from
16458         gettext/autoconf-lib-link with modifications.
16459         * tests/havelib/rpathlyx/usey.c: New file, from
16460         gettext/autoconf-lib-link.
16461         * tests/havelib/rpathlyx/Makefile.am: New file, from
16462         gettext/autoconf-lib-link.
16463         * tests/havelib/rpathlyx/configure.ac: New file, from
16464         gettext/autoconf-lib-link with modifications.
16465         * tests/havelib/rpathlzyx/usez.c: New file, from
16466         gettext/autoconf-lib-link.
16467         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16468         gettext/autoconf-lib-link.
16469         * tests/havelib/rpathlzyx/configure.ac: New file, from
16470         gettext/autoconf-lib-link with modifications.
16471         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16472         with modifications.
16473
16474 2010-04-02  Bruno Haible  <bruno@clisp.org>
16475
16476         gnulib-tool: Create distributed built sources also for the tests.
16477         * gnulib-tool (func_create_testdir): Also generate distributed built
16478         sources in the tests directory.
16479
16480 2010-04-02  Bruno Haible  <bruno@clisp.org>
16481
16482         gnulib-tool: Obey user's environment variables.
16483         * gnulib-tool (func_create_testdir): When creating built sources,
16484         respect the environment variables for autoconf, automake, etc. given by
16485         the user.
16486
16487 2010-04-02  Bruno Haible  <bruno@clisp.org>
16488
16489         gnulib-tool: Provide the value of --m4-base to modules.
16490         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16491         of gl_m4_base.
16492
16493 2010-04-02  Eric Blake  <eblake@redhat.com>
16494
16495         maint.mk: fix some fallout
16496         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16497         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16498
16499 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16500
16501         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16502         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16503         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16504         (sc_cast_of_x_alloc_return_value): Likewise.
16505         (sc_cast_of_alloca_return_value): Likewise.
16506         (sc_space_tab): Likewise.
16507         (sc_prohibit_atoi_atof): Likewise.
16508         (sc_prohibit_magic_number_exit): Likewise.
16509         (sc_error_exit_success): Likewise.
16510         (sc_file_system): Likewise.
16511         (sc_prohibit_have_config_h): Likewise.
16512         (sc_require_config_h): Likewise.
16513         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16514         (sc_obsolete_symbols): Likewise.
16515         (sc_changelog): Likewise.
16516         (sc_program_name): Likewise.
16517         (sc_the_the): Likewise.
16518         (sc_trailing_blank): Likewise.
16519         (sc_two_space_separator_in_usage): Likewise.
16520         (sc_useless_cpp_parens): Likewise.
16521         (sc_GPL_version): Likewise.
16522         (sc_GFDL_version): Likewise.
16523         (sc_texinfo_acronym): Likewise.
16524         (sc_prohibit_cvs_keyword): Likewise.
16525         (sc_prohibit_stat_st_blocks): Likewise.
16526         (sc_prohibit_S_IS_definition): Likewise.
16527         (sc_redundant_const): Likewise.
16528         (sc_makefile_TAB_only_indentation): Likewise.
16529         (sc_m4_quote_check): Likewise.
16530         (sc_makefile_path_separator_check): Likewise.
16531         (sc_copyright_check): Likewise.
16532         (sc_Wundef_boolean): Likewise.
16533         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16534
16535         maint.mk: match 0 or more whitespace-before-function-call '('
16536         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16537         that have zero or two-and-more spaces between the function name
16538         and the open parenthesis.
16539         (sc_error_message_warn_fatal): Likewise.
16540         (sc_error_message_uppercase): Likewise.
16541         (sc_error_message_period): Likewise.
16542
16543 2010-03-31  Eric Blake  <eblake@redhat.com>
16544
16545         maint.mk: check for [ as well as test
16546         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16547         Based on a libvirt report by Matthias Bolte.
16548
16549         gnumakefile: don't squelch _version output
16550         * top/GNUmakefile (_version): Create one-shot dependency rather
16551         than using $(shell) when version must be regenerated.
16552         (_autoreconf): Run verbosely, by default.
16553
16554         sys_time: avoid compiler warnings
16555         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16556         unconditional, fixing regression from 2010-03-29.
16557         Reported by Simon Josefsson.
16558
16559 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16560
16561         maint.mk: s/_header_without_use/_sc_header_without_use/
16562         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16563         (sc_prohibit_assert_without_use): Use the new name.
16564         (sc_prohibit_close_stream_without_use): Likewise.
16565         (sc_prohibit_getopt_without_use): Likewise.
16566         (sc_prohibit_quotearg_without_use): Likewise.
16567         (sc_prohibit_quote_without_use): Likewise.
16568         (sc_prohibit_long_options_without_use): Likewise.
16569         (sc_prohibit_inttostr_without_use): Likewise.
16570         (sc_prohibit_ignore_value_without_use): Likewise.
16571         (sc_prohibit_error_without_use): Likewise.
16572         (sc_prohibit_xalloc_without_use): Likewise.
16573         (sc_prohibit_hash_without_use): Likewise.
16574         (sc_prohibit_hash_pjw_without_use): Likewise.
16575         (sc_prohibit_safe_read_without_use): Likewise.
16576         (sc_prohibit_argmatch_without_use): Likewise.
16577         (sc_prohibit_canonicalize_without_use): Likewise.
16578         (sc_prohibit_root_dev_ino_without_use): Likewise.
16579         (sc_prohibit_openat_without_use): Likewise.
16580         (sc_prohibit_c_ctype_without_use): Likewise.
16581         (sc_prohibit_signal_without_use): Likewise.
16582         (sc_prohibit_intprops_without_use): Likewise.
16583
16584 2010-03-30  Eric Blake  <eblake@redhat.com>
16585
16586         maint: improve module indicators
16587         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16588         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16589         columns, and avoid extra macro expansion.
16590
16591         fdopendir: work around FreeBSD bug
16592         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16593         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16594         * modules/dirent (Makefile.am): Substitute it.
16595         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16596         declaration.
16597         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16598         fix.
16599         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16600
16601 2010-03-29  Bruno Haible  <bruno@clisp.org>
16602
16603         Emit #pragma system_header after the inclusion guard, not before.
16604         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16605         guard that spans the entire file, not before. This enables an
16606         optimization in GCC's preprocessor.
16607         * lib/ctype.in.h: Likewise.
16608         * lib/dirent.in.h: Likewise.
16609         * lib/errno.in.h: Likewise.
16610         * lib/float.in.h: Likewise.
16611         * lib/getopt.in.h: Likewise.
16612         * lib/iconv.in.h: Likewise.
16613         * lib/langinfo.in.h: Likewise.
16614         * lib/locale.in.h: Likewise.
16615         * lib/math.in.h: Likewise.
16616         * lib/netdb.in.h: Likewise.
16617         * lib/netinet_in.in.h: Likewise.
16618         * lib/pty.in.h: Likewise.
16619         * lib/sched.in.h: Likewise.
16620         * lib/se-selinux.in.h: Likewise.
16621         * lib/search.in.h: Likewise.
16622         * lib/spawn.in.h: Likewise.
16623         * lib/stdarg.in.h: Likewise.
16624         * lib/stdint.in.h: Likewise.
16625         * lib/string.in.h: Likewise.
16626         * lib/strings.in.h: Likewise.
16627         * lib/sys_file.in.h: Likewise.
16628         * lib/sys_ioctl.in.h: Likewise.
16629         * lib/sys_time.in.h: Likewise.
16630         * lib/sys_times.in.h: Likewise.
16631         * lib/sys_utsname.in.h: Likewise.
16632         * lib/sys_wait.in.h: Likewise.
16633         * lib/sysexits.in.h: Likewise.
16634         * lib/wctype.in.h: Likewise.
16635
16636 2010-03-28  James Youngman  <jay@gnu.org>
16637
16638         save-cwd: don't leak a file descriptor when the caller execs.
16639         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16640         saved file descriptor.
16641         * modules/save-cwd (Depends-on): Depend on cloexec.
16642
16643 2010-03-29  Bruno Haible  <bruno@clisp.org>
16644
16645         Remove vestiges of fts-lgpl module.
16646         * lib/fts_.h: Assume GNULIB_FTS is 1.
16647         * lib/fts.c: Likewise.
16648         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16649
16650 2010-03-28  Bruno Haible  <bruno@clisp.org>
16651
16652         Fix definition of tests witness macro.
16653         * gnulib-tool (func_import): Fix definition of witness macro.
16654
16655 2010-03-28  Bruno Haible  <bruno@clisp.org>
16656
16657         Fix ioctl's protoype on glibc systems.
16658         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16659         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16660         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16661         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16662         signature. If not, arrange to replace the ioctl function.
16663         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16664         REPLACE_IOCTL.
16665         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16666         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16667         Reported by Ludovic Courtès <ludo@gnu.org>.
16668
16669 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16670
16671         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16672         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16673         made it so grep -r --include=GLOB* ... did not work.
16674
16675 2010-03-26  Jim Meyering  <meyering@redhat.com>
16676             Eric Blake  <eblake@redhat.com>
16677
16678         maint.mk: prohibit use of test's -o and -a operators
16679         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16680
16681 2010-03-28  Bruno Haible  <bruno@clisp.org>
16682
16683         Remove unused GNULIB_XYZ macro definitions.
16684         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16685         invocation.
16686
16687 2010-03-28  Bruno Haible  <bruno@clisp.org>
16688
16689         Mark privileged tests modules.
16690         * modules/idpriv-drop-tests (Status): New section.
16691         * modules/idpriv-droptemp-tests (Status): New section.
16692
16693 2010-03-28  Bruno Haible  <bruno@clisp.org>
16694
16695         Split C++ tests into separate tests modules.
16696         * modules/dirent-c++-tests: New file, extracted from
16697         modules/dirent-tests.
16698         * modules/dirent-tests: Depend on it.
16699         * modules/fcntl-h-c++-tests: New file, extracted from
16700         modules/fcntl-h-tests.
16701         * modules/fcntl-h-tests: Depend on it.
16702         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16703         * modules/glob-tests: Depend on it.
16704         * modules/iconv-h-c++-tests: New file, extracted from
16705         modules/iconv-h-tests.
16706         * modules/iconv-h-tests: Depend on it.
16707         * modules/langinfo-c++-tests: New file, extracted from
16708         modules/langinfo-tests.
16709         * modules/langinfo-tests: Depend on it.
16710         * modules/locale-c++-tests: New file, extracted from
16711         modules/locale-tests.
16712         * modules/locale-tests: Depend on it.
16713         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16714         * modules/math-tests: Depend on it.
16715         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16716         * modules/pty-tests: Depend on it.
16717         * modules/search-c++-tests: New file, extracted from
16718         modules/search-tests.
16719         * modules/search-tests: Depend on it.
16720         * modules/signal-c++-tests: New file, extracted from
16721         modules/signal-tests.
16722         * modules/signal-tests: Depend on it.
16723         * modules/spawn-c++-tests: New file, extracted from
16724         modules/spawn-tests.
16725         * modules/spawn-tests: Depend on it.
16726         * modules/stdio-c++-tests: New file, extracted from
16727         modules/stdio-tests.
16728         * modules/stdio-tests: Depend on it.
16729         * modules/stdlib-c++-tests: New file, extracted from
16730         modules/stdlib-tests.
16731         * modules/stdlib-tests: Depend on it.
16732         * modules/string-c++-tests: New file, extracted from
16733         modules/string-tests.
16734         * modules/string-tests: Depend on it.
16735         * modules/sys_ioctl-c++-tests: New file, extracted from
16736         modules/sys_ioctl-tests.
16737         * modules/sys_ioctl-tests: Depend on it.
16738         * modules/sys_select-c++-tests: New file, extracted from
16739         modules/sys_select-tests.
16740         * modules/sys_select-tests: Depend on it.
16741         * modules/sys_socket-c++-tests: New file, extracted from
16742         modules/sys_socket-tests.
16743         * modules/sys_socket-tests: Depend on it.
16744         * modules/sys_stat-c++-tests: New file, extracted from
16745         modules/sys_stat-tests.
16746         * modules/sys_stat-tests: Depend on it.
16747         * modules/sys_time-c++-tests: New file, extracted from
16748         modules/sys_time-tests.
16749         * modules/sys_time-tests: Depend on it.
16750         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16751         * modules/time-tests: Depend on it.
16752         * modules/unistd-c++-tests: New file, extracted from
16753         modules/unistd-tests.
16754         * modules/unistd-tests: Depend on it.
16755         * modules/wchar-c++-tests: New file, extracted from
16756         modules/wchar-tests.
16757         * modules/wchar-tests: Depend on it.
16758         * modules/wctype-c++-tests: New file, extracted from
16759         modules/wctype-tests.
16760         * modules/wctype-tests: Depend on it.
16761         Reported by Simon Josefsson.
16762
16763 2010-03-28  Bruno Haible  <bruno@clisp.org>
16764
16765         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16766         * gnulib-tool (func_exists_module): New function, extracted from
16767         func_verify_module.
16768         (func_verify_module): Use it.
16769         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16770         'foo' only if 'foo' exists.
16771         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16772         module.
16773
16774 2010-03-28  Bruno Haible  <bruno@clisp.org>
16775
16776         gnulib-tool: Add support for special categories of tests.
16777         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16778         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16779         (func_usage): Document them.
16780         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16781         inc_unportable_tests, inc_all_tests): New variables.
16782         (func_acceptable): Consider these variables.
16783         (func_modules_transitive_closure): Make it work when the 'Status' field
16784         consists of multiple words.
16785         (func_import): Store and restore the values of inc_cxx_tests,
16786         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16787         inc_all_tests in gnulib-comp.m4.
16788         (func_create_testdir): Set inc_all_tests to true.
16789         * doc/gnulib.texi (Extra tests modules): New section.
16790         Suggested by Jim Meyering.
16791
16792 2010-03-28  Bruno Haible  <bruno@clisp.org>
16793
16794         ansi-c++-opt: Allow turning off the C++ build by default.
16795         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16796         gl_CXX_CHOICE_DEFAULT_NO is defined.
16797         Requested by Eric Blake.
16798
16799 2010-03-28  Bruno Haible  <bruno@clisp.org>
16800
16801         unistd: Avoid #define replacements in C++ mode.
16802         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16803         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16804         setsockopt, shutdown, select): In C++, attach a warning to the function
16805         if possible, rather than #defining the symbol to a dysfunctional alias.
16806         Reported by John W. Eaton <jwe@gnu.org>.
16807
16808 2010-03-28  Bruno Haible  <bruno@clisp.org>
16809
16810         Fix link errors on mingw.
16811         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16812         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16813         $(LIBSOCKET).
16814         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16815         $(LIBSOCKET).
16816
16817 2010-03-28  Bruno Haible  <bruno@clisp.org>
16818             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16819
16820         lib-ignore: Determine different options for different compilers.
16821         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16822         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16823         Add comments.
16824         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16825         * NEWS: Mention the change.
16826
16827 2010-03-27  Bruno Haible  <bruno@clisp.org>
16828
16829         Remove unused GNULIB_XYZ macro definitions.
16830         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16831         * modules/fseek (configure.ac): Likewise.
16832         * modules/ioctl (configure.ac): Likewise.
16833         * modules/open (configure.ac): Likewise.
16834         * modules/stdlib-safer (configure.ac): Likewise.
16835
16836 2010-03-27  Bruno Haible  <bruno@clisp.org>
16837
16838         Add a remark about certain modules.
16839         * modules/malloc (Comment): New section.
16840         * modules/realloc (Comment): Likewise.
16841         * modules/sigpipe (Comment): Likewise.
16842
16843 2010-03-27  Bruno Haible  <bruno@clisp.org>
16844
16845         Resolve conflict between the two kinds of module indicators.
16846         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16847         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16848         * modules/canonicalize (configure.ac): Invoke
16849         gl_MODULE_INDICATOR_FOR_TESTS.
16850         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16851         GNULIB_XYZ.
16852         * tests/test-dirent-c++.cc: Likewise.
16853         * tests/test-dirent-safer.c: Likewise.
16854         * tests/test-dup2.c: Likewise.
16855         * tests/test-fchdir.c: Likewise.
16856         * tests/test-fcntl-h-c++.cc: Likewise.
16857         * tests/test-getopt.c: Likewise.
16858         * tests/test-getopt.h: Likewise.
16859         * tests/test-langinfo-c++.cc: Likewise.
16860         * tests/test-locale-c++.cc: Likewise.
16861         * tests/test-math-c++.cc: Likewise.
16862         * tests/test-pty-c++.cc: Likewise.
16863         * tests/test-search-c++.cc: Likewise.
16864         * tests/test-signal-c++.cc: Likewise.
16865         * tests/test-spawn-c++.cc: Likewise.
16866         * tests/test-stdio-c++.cc: Likewise.
16867         * tests/test-stdlib-c++.cc: Likewise.
16868         * tests/test-string-c++.cc: Likewise.
16869         * tests/test-sys_ioctl-c++.cc: Likewise.
16870         * tests/test-sys_select-c++.cc: Likewise.
16871         * tests/test-sys_socket-c++.cc: Likewise.
16872         * tests/test-sys_stat-c++.cc: Likewise.
16873         * tests/test-sys_time-c++.cc: Likewise.
16874         * tests/test-time-c++.cc: Likewise.
16875         * tests/test-unistd-c++.cc: Likewise.
16876         * tests/test-wchar-c++.cc: Likewise.
16877         * tests/uninorm/test-u8-nfc.c: Likewise.
16878         * tests/uninorm/test-u8-nfd.c: Likewise.
16879         * tests/uninorm/test-u8-nfkc.c: Likewise.
16880         * tests/uninorm/test-u8-nfkd.c: Likewise.
16881         * tests/uninorm/test-u16-nfc.c: Likewise.
16882         * tests/uninorm/test-u16-nfd.c: Likewise.
16883         * tests/uninorm/test-u16-nfkc.c: Likewise.
16884         * tests/uninorm/test-u16-nfkd.c: Likewise.
16885         * tests/uninorm/test-u32-nfc.c: Likewise.
16886         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16887         * tests/uninorm/test-u32-nfd.c: Likewise.
16888         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16889         * tests/uninorm/test-u32-nfkc.c: Likewise.
16890         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16891         * tests/uninorm/test-u32-nfkd.c: Likewise.
16892         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16893         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16894
16895 2010-03-27  Bruno Haible  <bruno@clisp.org>
16896
16897         Distinguish two kinds of module indicators.
16898         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16899         gl_MODULE_INDICATOR.
16900         (gl_MODULE_INDICATOR): New macro.
16901         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16902         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16903         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16904         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16905         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16906         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16907         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16908         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16909         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16910         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16911         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16912         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16914         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16915         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16916         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16917         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16918         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16919         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16920         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16921         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16922         * modules/cloexec (configure.ac): Likewise.
16923         * modules/getopt-gnu (configure.ac): Likewise.
16924         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16925         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16926         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16927         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16928
16929 2010-03-27  Bruno Haible  <bruno@clisp.org>
16930
16931         New module description field 'Comment'.
16932         * gnulib-tool: New option --extract-comment.
16933         (func_usage): Document it.
16934         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16935         (func_get_comment): New function.
16936         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16937
16938 2010-03-27  Bruno Haible  <bruno@clisp.org>
16939
16940         Addendum to 2010-02-07 commit.
16941         * gnulib-tool (func_usage): Document --extract-applicability option.
16942
16943 2010-03-27  Bruno Haible  <bruno@clisp.org>
16944
16945         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16946         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16947         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16948         rather than link errors.
16949
16950 2010-03-27  Bruno Haible  <bruno@clisp.org>
16951
16952         Avoid side effects from tests-related modules on the compilation of lib.
16953         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16954         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16955         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16956         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16957         macro.
16958         (func_import): Define a witness macro. Assign it a value that depends
16959         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16960         tests-related modules.
16961         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16962         Reported by Jim Meyering.
16963
16964 2010-03-27  Bruno Haible  <bruno@clisp.org>
16965
16966         Factorize common .m4 code.
16967         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16968         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16969         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16970         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16971         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16972         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16973         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16974         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16975         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16976         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16977         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16978         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16979         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16980         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16981         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16982         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16983         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16984         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16986         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16987         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16988         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16989         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16990         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16991         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16992         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16993         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16994         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16995         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16996         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16997         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16998         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16999
17000 2010-03-27  Bruno Haible  <bruno@clisp.org>
17001
17002         Fix a compilation error on Cygwin with g++ >= 4.3.
17003         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17004         if it is undefined or if we alias it to chmod.
17005         (lstat): Don't warn about the use of this function if it is undefined
17006         or if we alias it to stat.
17007         Reported by Simon Josefsson.
17008
17009 2010-03-27  Bruno Haible  <bruno@clisp.org>
17010
17011         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17012         * modules/getlogin (configure.ac): Update.
17013
17014         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17015         * modules/getlogin_r (configure.ac): Update.
17016
17017         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17018         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17019         * modules/inet_ntop (configure.ac): Update.
17020
17021         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17022         * modules/inet_pton (configure.ac): Update.
17023
17024         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17025         * modules/mbslen (configure.ac): Update.
17026
17027         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17028         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17029         * modules/forkpty (configure.ac): Update.
17030         * modules/openpty (configure.ac): Update.
17031
17032 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17033
17034         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17035         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17036
17037 2010-03-25  Eric Blake  <eblake@redhat.com>
17038
17039         maint: use pragma consistently across replacement headers
17040         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17041         * lib/dirent.in.h (system_header): Likewise.
17042         * lib/errno.in.h (system_header): Likewise.
17043         * lib/float.in.h (system_header): Likewise.
17044         * lib/getopt.in.h (system_header): Likewise.
17045         * lib/iconv.in.h (system_header): Likewise.
17046         * lib/inttypes.in.h (system_header): Likewise.
17047         * lib/langinfo.in.h (system_header): Likewise.
17048         * lib/locale.in.h (system_header): Likewise.
17049         * lib/math.in.h (system_header): Likewise.
17050         * lib/netdb.in.h (system_header): Likewise.
17051         * lib/netinet_in.in.h (system_header): Likewise.
17052         * lib/pty.in.h (system_header): Likewise.
17053         * lib/sched.in.h (system_header): Likewise.
17054         * lib/se-selinux.in.h (system_header): Likewise.
17055         * lib/search.in.h (system_header): Likewise.
17056         * lib/spawn.in.h (system_header): Likewise.
17057         * lib/stdarg.in.h (system_header): Likewise.
17058         * lib/stdint.in.h (system_header): Likewise.
17059         * lib/string.in.h (system_header): Likewise.
17060         * lib/strings.in.h (system_header): Likewise.
17061         * lib/sys_file.in.h (system_header): Likewise.
17062         * lib/sys_ioctl.in.h (system_header): Likewise.
17063         * lib/sys_socket.in.h (system_header): Likewise.
17064         * lib/sys_times.in.h (system_header): Likewise.
17065         * lib/sys_utsname.in.h (system_header): Likewise.
17066         * lib/sys_wait.in.h (system_header): Likewise.
17067         * lib/sysexits.in.h (system_header): Likewise.
17068         * lib/unistd.in.h (system_header): Likewise.
17069         * lib/wctype.in.h (system_header): Likewise.
17070
17071         arpa/inet: fix mingw compilation warning
17072         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17073         Reported by Matthew Bolte.
17074
17075 2010-03-25  Bruno Haible  <bruno@clisp.org>
17076
17077         Avoid collision between gnulib wrapper and libintl wrapper.
17078         * lib/printf.c (printf): Don't define if a printf wrapper is already
17079         defined in intl/printf.c.
17080         Reported by Michel Boaventura <michel@michelboaventura.com>.
17081
17082 2010-03-25  Bruno Haible  <bruno@clisp.org>
17083
17084         Use ANSI C.
17085         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17086
17087 2010-03-25  Bruno Haible  <bruno@clisp.org>
17088
17089         Minor formatting changes.
17090         * lib/acosl.c: Insert space before function argument list.
17091         * lib/argz.c: Likewise.
17092         * lib/asinl.c: Likewise.
17093         * lib/expl.c: Likewise.
17094         * lib/gen-uni-tables.c: Likewise.
17095         * lib/gettext.h: Likewise.
17096         * lib/glthread/lock.h: Likewise.
17097         * lib/tanl.c: Likewise.
17098         * lib/uniname/uniname.c: Likewise.
17099         * tests/test-idpriv-drop.c: Likewise.
17100         * tests/test-idpriv-droptemp.c: Likewise.
17101         * tests/test-lock.c: Likewise.
17102         * tests/test-tls.c: Likewise.
17103         * lib/argp-help.c: Insert space before function-like macro argument
17104         list.
17105         * lib/memcmp.c: Likewise.
17106         * tests/test-base64.c: Likewise.
17107         * lib/localename.c: Insert space before sizeof's argument list.
17108         * lib/safe-alloc.h: Likewise.
17109         * lib/file-set.h: Insert space before macro argument list.
17110         * tests/test-argp.c: Likewise.
17111         * lib/argp-namefrob.h: Insert space before function parameter list.
17112         * lib/getaddrinfo.c: Likewise.
17113         * lib/netdb.in.h: Likewise.
17114         * lib/parse-duration.h: Likewise.
17115         * lib/parse-duration.c: Likewise.
17116         * lib/poll.c: Likewise.
17117         * lib/select.c: Likewise.
17118         * lib/trim.h: Likewise.
17119         * tests/test-usleep.c: Likewise.
17120         * lib/ldexpl.c: Insert space before function parameter list and before
17121         function argument list.
17122         * lib/logl.c: Likewise.
17123         * lib/sqrtl.c: Likewise.
17124         * lib/trim.c: Likewise.
17125         * lib/cosl.c: Use GNU style indentation. Insert space before function
17126         argument list.
17127         * lib/sinl.c: Likewise.
17128         * lib/tsearch.c: Insert space after 'for'.
17129         Reported by Jim Meyering.
17130
17131 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17132
17133         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17134         config header before grepping, as it's not present before
17135         autoreconf/configure are run.  Reported by Simon Josefsson.
17136
17137 2010-03-23  Bruno Haible  <bruno@clisp.org>
17138
17139         pt_chown: Make it work with automake < 1.11.
17140         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17141         Reported by Simon Josefsson.
17142
17143 2010-03-23  Bruno Haible  <bruno@clisp.org>
17144
17145         pt_chown: Don't depend on GPLed modules.
17146         * lib/pt_chown.c: Don't include idpriv.h.
17147         (main): Don't drop privileges.
17148         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17149         Reported by Simon Josefsson.
17150
17151 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17152
17153         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17154         suggestions from karl@freefriends.org (Karl Berry).
17155
17156 2010-03-22  Eric Blake  <eblake@redhat.com>
17157
17158         gethostname: further tweaks
17159         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17160         are overriding gethostname.
17161         Suggested by Bruno Haible.
17162
17163 2010-03-21  Bruno Haible  <bruno@clisp.org>
17164
17165         Fix comments.
17166         * lib/forkpty.c (rpl_forkpty): Fix comment.
17167         * lib/openpty.c (rpl_openpty): Likewise.
17168         Reported by Eric Blake.
17169
17170 2010-03-22  Eric Blake  <eblake@redhat.com>
17171
17172         gethostname: fix build on mingw
17173         * lib/unistd.in.h (includes): Work around fact that mingw
17174         <winsock2.h> re-includes <unistd.h>, by avoiding any
17175         redeclarations if we are being included by <winsock2.h>.
17176         Reported by Matthias Bolte.
17177
17178 2010-03-21  Bruno Haible  <bruno@clisp.org>
17179
17180         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17181         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17182         modifications.
17183         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17184         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17185         provide the replacement.
17186         * modules/forkpty (Depends-on): Add openpty, login_tty.
17187         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17188         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17189         * doc/glibc-functions/forkpty.texi: More supported platforms.
17190         * config/srclist.txt: Add forkpty.c (commented).
17191
17192 2010-03-21  Bruno Haible  <bruno@clisp.org>
17193
17194         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17195         (Makefile.am): Verify that PTY_LIB is defined.
17196
17197         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17198
17199 2010-03-21  Bruno Haible  <bruno@clisp.org>
17200
17201         Tests for module 'login_tty'.
17202         * modules/login_tty-tests: New file.
17203         * tests/test-login_tty.c: New file.
17204
17205         New module 'login_tty'.
17206         * lib/login_tty.c: New file.
17207         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17208         * modules/login_tty: New file.
17209         * doc/glibc-functions/login_tty.texi: Mention the new module.
17210
17211 2010-03-21  Bruno Haible  <bruno@clisp.org>
17212
17213         login_tty: Documentation.
17214         * doc/glibc-functions/login_tty.texi: New file.
17215         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17216
17217 2010-03-21  Bruno Haible  <bruno@clisp.org>
17218
17219         pty: Consistent macro naming.
17220         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17221         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17222         * modules/pty (configure.ac): Update.
17223
17224 2010-03-21  Bruno Haible  <bruno@clisp.org>
17225
17226         Tests for openpty: Make stricter.
17227         * tests/test-openpty.c (main): Add test of canonical processing and
17228         erase.
17229         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17230
17231         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17232         * lib/openpty.c (openpty): New replacement function.
17233         * lib/pty.in.h: Include <termios.h>.
17234         (openpty): Update declaration. Add comments.
17235         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17236         is not declared, arrange to provide the replacement. Check for _getpty
17237         and posix_openpt.
17238         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17239         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17240         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17241         * modules/pty-tests (test_pty_c___LDADD): New variable.
17242         * doc/glibc-functions/openpty.texi: More supported platforms.
17243
17244 2010-03-21  Bruno Haible  <bruno@clisp.org>
17245
17246         setenv: Tweaks.
17247         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17248         the test program.
17249         * doc/posix-functions/setenv.texi: Update platforms list.
17250
17251 2010-03-21  Bruno Haible  <bruno@clisp.org>
17252
17253         New module 'unlockpt'.
17254         * lib/unlockpt.c: New file, from glibc with modifications.
17255         * m4/unlockpt.m4: New file.
17256         * modules/unlockpt: New file.
17257         * lib/stdlib.in.h (unlockpt): New declaration.
17258         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17259         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17260         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17261         HAVE_UNLOCKPT.
17262         * doc/posix-functions/unlockpt.texi: Mention the new module.
17263         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17264         * config/srclist.txt: Add unlockpt.c (commented).
17265
17266 2010-03-21  Jim Meyering  <meyering@redhat.com>
17267
17268         maint.mk: prohibit inclusion of "intprops.h" without use
17269         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17270
17271 2010-03-21  Bruno Haible  <bruno@clisp.org>
17272
17273         New module 'grantpt'.
17274         * lib/grantpt.c: New file, from glibc with modifications.
17275         * m4/grantpt.m4: New file.
17276         * modules/grantpt: New file.
17277         * lib/stdlib.in.h (grantpt): New declaration.
17278         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17279         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17280         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17281         HAVE_GRANTPT.
17282         * doc/posix-functions/grantpt.texi: Mention the new module.
17283         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17284         * config/srclist.txt: Add grantpt.c (commented).
17285
17286 2010-03-21  Bruno Haible  <bruno@clisp.org>
17287
17288         New module 'pt_chown'.
17289         * lib/pt_chown.c: New file, from glibc with modifications.
17290         * lib/pty-private.h: New file, from glibc with modifications.
17291         * modules/pt_chown: New file.
17292         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17293
17294 2010-03-21  Bruno Haible  <bruno@clisp.org>
17295
17296         Tests for module 'ptsname'.
17297         * modules/ptsname-tests: New file.
17298         * tests/test-ptsname.c: New file.
17299
17300         New module 'ptsname'.
17301         * lib/ptsname.c: New file, from glibc with modifications.
17302         * m4/ptsname.m4: New file.
17303         * modules/ptsname: New file.
17304         * lib/stdlib.in.h (ptsname): New declaration.
17305         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17306         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17307         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17308         HAVE_PTSNAME.
17309         * doc/posix-functions/ptsname.texi: Mention the new module.
17310         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17311         * config/srclist.txt: Add ptsname.c (commented).
17312
17313 2010-03-21  Bruno Haible  <bruno@clisp.org>
17314
17315         Tests for module 'ttyname_r'.
17316         * modules/ttyname_r-tests: New file.
17317         * tests/test-ttyname_r.c: New file.
17318
17319         New module 'ttyname_r'.
17320         * lib/ttyname_r.c: New file.
17321         * m4/ttyname_r.m4: New file.
17322         * modules/ttyname_r: New file.
17323         * lib/unistd.in.h (ttyname_r): New declaration.
17324         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17325         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17326         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17327         HAVE_TTYNAME_R.
17328         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17329         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17330
17331 2010-03-20  Bruno Haible  <bruno@clisp.org>
17332
17333         signal: Undefine macro definitions in C++ mode.
17334         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17335         sigfillset): Undefine macro definitions from the system header in C++
17336         mode.
17337         Reported by John W. Eaton <jwe@gnu.org>.
17338
17339 2010-03-20  Bruno Haible  <bruno@clisp.org>
17340
17341         Ensure no #include statements inside extern "C" { ... }.
17342         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17343         contain #include statements.
17344         * lib/time.in.h: Likewise.
17345
17346 2010-03-20  Bruno Haible  <bruno@clisp.org>
17347
17348         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17349         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17350         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17351         Reported by John W. Eaton <jwe@gnu.org>.
17352
17353 2010-03-20  Bruno Haible  <bruno@clisp.org>
17354
17355         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17356         Reported by Jim Meyering.
17357
17358 2010-03-20  Bruno Haible  <bruno@clisp.org>
17359
17360         pipe: Set errno upon failure.
17361         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17362         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17363         errno value in error message.
17364
17365 2010-03-20  Bruno Haible  <bruno@clisp.org>
17366             Jim Meyering  <meyering@redhat.com>
17367
17368         lchown: Avoid "unused variable" warning.
17369         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17370
17371 2010-03-20  Bruno Haible  <bruno@clisp.org>
17372
17373         Work around unlink() bug on MacOS X 10.5.6.
17374         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17375         attempting to unlink a parent directory.
17376         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17377         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17378         activate for the replacement function.
17379         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17380
17381 2010-03-20  Bruno Haible  <bruno@clisp.org>
17382
17383         Fix link errors on Solaris 8.
17384         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17385         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17386
17387 2010-03-19  Jim Meyering  <meyering@redhat.com>
17388
17389         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17390         The _LIBC implementation of build_range_exp correctly honors the
17391         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17392         However, the non-_LIBC implementation would ignore that syntax-bit
17393         flag and return REG_ERANGE unconditionally.
17394         This change makes it honor that flag.
17395         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17396         Make two pointer parameters "const".
17397         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17398         (parse_bracket_exp): Update caller.
17399
17400         regex.m4: correct the reversed range endpoint ([b-a]) test
17401         * m4/regex.m4: When requiring that [b-a] evoke failure,
17402         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17403         test pass once again for x86-based systems.
17404
17405 2010-03-19  Bruno Haible  <bruno@clisp.org>
17406
17407         scandir: Fix link error on Solaris 8.
17408         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17409         macros.
17410
17411 2010-03-19  Bruno Haible  <bruno@clisp.org>
17412
17413         getusershell: Fix documentation.
17414         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17415         module.
17416         * doc/glibc-functions/setusershell.texi: Likewise.
17417
17418         getusershell: Provide declaration, missing on Solaris 9.
17419         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17420         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17421         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17422         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17424         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17425         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17426         HAVE_GETUSERSHELL.
17427         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17428
17429 2010-03-19  Bruno Haible  <bruno@clisp.org>
17430
17431         wctype: Provide iswblank function.
17432         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17433         exists and is fine.
17434         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17435         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17436         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17437         * doc/posix-functions/iswblank.texi: Update.
17438
17439 2010-03-19  Bruno Haible  <bruno@clisp.org>
17440
17441         Tests of module 'pty' in C++ mode.
17442         * modules/pty-tests: New file.
17443         * tests/test-pty-c++.cc: New file.
17444         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17445
17446 2010-03-19  Eric Blake  <eblake@redhat.com>
17447
17448         logb: fix documentation
17449         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17450         1.5 declaration bug.
17451
17452         forkpty, openpty: prefer glibc's const-safe prototype
17453         * lib/forkpty.c (rpl_forkpty): New file.
17454         * lib/openpty.c (rpl_openpty): Likewise.
17455         * modules/forkpty (Files): Distribute it.
17456         * modules/openpty (Files): Likewise.
17457         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17458         check...
17459         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17460         replacement for for non-const BSD signature.
17461         * modules/pty (Makefile.am): Substitute witnesses.
17462         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17463         * tests/test-forkpty.c: Update signature check.
17464         * tests/test-openpty.c: Likewise.
17465         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17466         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17467
17468         forkpty, openpty: split functions into new modules
17469         * modules/pty (Makefile.am): Substitute new witnesses.
17470         (Libraries): Move library detection...
17471         * modules/forkpty: ...into new module.
17472         * modules/openpty: Another new module.
17473         * modules/pty-tests: Rename and split...
17474         * modules/forkpty-tests: ...to this...
17475         * modules/openpty-tests: ...and this.
17476         * tests/test-pty.c: Rename and split...
17477         * tests/test-forkpty.c: ...to this...
17478         * tests/test-openpty.c: ...and this.
17479         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17480         (gl_PTY): Split library searching...
17481         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17482         (gl_FORKPTY, gl_OPENPTY): New macros.
17483         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17484         * NEWS: Mention the split.
17485         * MODULES.html.sh (Misc): Document the modules.
17486         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17487         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17488
17489         pty: improve replacement header
17490         * lib/pty.in.h: New file.
17491         * modules/pty (Files): Ship it.
17492         (Makefile.am): Always build replacement.
17493         * m4/pty.m4: Rename...
17494         * m4/pty_h.m4: ...to this.
17495         (gl_PTY): Modernize setting of witness macros; update check of
17496         forkpty to take proper advantage of cache.
17497         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17498
17499         getopt: avoid compiler warning
17500         * lib/getopt.c (attribute_hidden): Remove unused macro.
17501
17502 2010-03-18  Bruno Haible  <bruno@clisp.org>
17503
17504         Fix link errors on Solaris 8.
17505         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17506         * modules/search-tests (test_search_c___LDADD): Likewise.
17507         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17508         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17509         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17510         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17511         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17512         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17513         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17514
17515 2010-03-18  Bruno Haible  <bruno@clisp.org>
17516
17517         Fix bug introduced on 2010-03-14.
17518         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17519         (gl_SPAWN_H): Require it.
17520         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17521         Reported by Simon Josefsson.
17522
17523 2010-03-18  Bruno Haible  <bruno@clisp.org>
17524
17525         Fix typo introduced on 2009-12-31.
17526         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17527         posix_spawn_file_actions_adddup2.
17528
17529 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17530         and Eric Blake  <eblake@redhat.com>
17531
17532         test-vc-list-files-git: make more robust
17533         * tests/test-vc-list-files-git.sh: Unset problematic environment
17534         variables.  Chain commands together.
17535
17536 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17537
17538         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17539         `AC_CHECK_DECL' invocation.
17540
17541 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17542
17543         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17544         appears before executable statements. Suggested by Petr Sumbera
17545         <Petr.Sumbera@Sun.COM>.
17546
17547 2010-03-14  Bruno Haible  <bruno@clisp.org>
17548
17549         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17550         portability problems. Instead use a simpler test.
17551         (main): Check that invalid arguments are rejected only on Linux.
17552
17553 2010-03-14  Bruno Haible  <bruno@clisp.org>
17554
17555         Fix bug introduced on 2009-12-31.
17556         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17557         gl_PREREQ_SYS_H_WINSOCK2 always.
17558         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17559         SYS_SOCKET_H variable.
17560         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17561         Update comments.
17562         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17563         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17564         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17565         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17566         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17567
17568 2010-03-14  Bruno Haible  <bruno@clisp.org>
17569
17570         Fix values returned by sinl, cosl.
17571         * lib/trigl.h: Add specification comments.
17572         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17573         that combines the values from the precomputed table with the values of
17574         the Chebyshev polynomials.
17575
17576 2010-03-14  Bruno Haible  <bruno@clisp.org>
17577
17578         Fix compilation error when modules 'posix_spawn[p]' are not used.
17579         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17580         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17581
17582 2010-03-14  Bruno Haible  <bruno@clisp.org>
17583
17584         Fix compilation error on mingw when module 'time_r' is not used.
17585         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17586         is 1.
17587         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17588         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17589         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17590         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17591
17592 2010-03-14  Bruno Haible  <bruno@clisp.org>
17593
17594         Fix compilation error with Sun C.
17595         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17596         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17597         instead of GCC specific ULONG_LONG_MAX.
17598         * lib/xstrtoll.c: Likewise.
17599         * lib/xstrtoull.c: Likewise.
17600
17601 2010-03-13  Bruno Haible  <bruno@clisp.org>
17602
17603         Allow the user to disable C++ code and tests.
17604         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17605         (gl_PROG_ANSI_CXX): Require it.
17606
17607 2010-03-13  Bruno Haible  <bruno@clisp.org>
17608
17609         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17610         cases.
17611
17612 2010-03-13  Bruno Haible  <bruno@clisp.org>
17613
17614         Test that gnulib does not break the standard C++ headers.
17615         * tests/test-locale-c++2.cc: New file.
17616         * modules/locale-tests (Files): Add it.
17617         (Makefile.am): Compile it for test-locale-c++.
17618         * tests/test-math-c++2.cc: New file.
17619         * modules/math-tests (Files): Add it.
17620         (Makefile.am): Compile it for test-math-c++.
17621         * tests/test-signal-c++2.cc: New file.
17622         * modules/signal-tests (Files): Add it.
17623         (Makefile.am): Compile it for test-signal-c++.
17624         * tests/test-stdio-c++2.cc: New file.
17625         * modules/stdio-tests (Files): Add it.
17626         (Makefile.am): Compile it for test-stdio-c++.
17627         * tests/test-stdlib-c++2.cc: New file.
17628         * modules/stdlib-tests (Files): Add it.
17629         (Makefile.am): Compile it for test-stdlib-c++.
17630         * tests/test-string-c++2.cc: New file.
17631         * modules/string-tests (Files): Add it.
17632         (Makefile.am): Compile it for test-string-c++.
17633         * tests/test-time-c++2.cc: New file.
17634         * modules/time-tests (Files): Add it.
17635         (Makefile.am): Compile it for test-time-c++.
17636         Reported by John W. Eaton <jwe@gnu.org>.
17637
17638 2010-03-13  Bruno Haible  <bruno@clisp.org>
17639
17640         * gnulib-tool (func_usage): Clarify which options are available for
17641         --create-testdir and --create-megatestdir.
17642
17643 2010-03-13  Bruno Haible  <bruno@clisp.org>
17644
17645         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17646         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17647         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17648         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17649         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17650         when appropriate.
17651         Reported by Jim Meyering.
17652
17653 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17654
17655         * gnulib-tool (func_import): Explain origin of code.
17656
17657 2010-03-12  Bruno Haible  <bruno@clisp.org>
17658
17659         Fix problem with automake's definition of CXXLINK.
17660         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17661         Reported by Simon Josefsson and Ludovic Courtès.
17662
17663 2010-03-12  Bruno Haible  <bruno@clisp.org>
17664
17665         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17666         stable releases.
17667
17668 2010-03-11  Bruno Haible  <bruno@clisp.org>
17669
17670         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17671         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17672         whether the system provides one variant or multiple variants of the
17673         function.
17674         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17675         C++ compilers.
17676         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17677         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17678         Reported by Jim Meyering.
17679
17680 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17681
17682         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17683
17684 2010-03-08  Bruno Haible  <bruno@clisp.org>
17685
17686         gnulib-tool: Add support for --libtool in --create-testdir.
17687         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17688         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17689
17690 2010-03-08  Eric Blake  <eblake@redhat.com>
17691
17692         gnulib-tool.texi: mention possibility of git submodule
17693         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17694         submodules.
17695         * doc/.gitignore: Ignore another generated file.
17696
17697 2010-03-08  Karl Berry  <karl@gnu.org>
17698
17699         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17700         of committing gnulib files while skipping others.
17701
17702 2010-03-07  Bruno Haible  <bruno@clisp.org>
17703
17704         Tests of module 'wctype' in C++ mode.
17705         * tests/test-wctype-c++.cc: New file.
17706         * modules/wctype-tests (Files): Add it and tests/signature.h.
17707         (Depends-on): Add ansi-c++-opt.
17708         (Makefile.am): Arrange to compile and run test-wctype-c++.
17709
17710         Tests of module 'wchar' in C++ mode.
17711         * tests/test-wchar-c++.cc: New file.
17712         * modules/wchar-tests (Files): Add it and tests/signature.h.
17713         (Depends-on): Add ansi-c++-opt.
17714         (Makefile.am): Arrange to compile and run test-wchar-c++.
17715         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17716         gl_MODULE_INDICATOR.
17717
17718         Tests of module 'unistd' in C++ mode.
17719         * tests/test-unistd-c++.cc: New file.
17720         * modules/unistd-tests (Files): Add it and tests/signature.h.
17721         (Depends-on): Add ansi-c++-opt.
17722         (Makefile.am): Arrange to compile and run test-unistd-c++.
17723         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17724         gl_MODULE_INDICATOR.
17725
17726         Tests of module 'time' in C++ mode.
17727         * tests/test-time-c++.cc: New file.
17728         * modules/time-tests (Files): Add it and tests/signature.h.
17729         (Depends-on): Add ansi-c++-opt.
17730         (Makefile.am): Arrange to compile and run test-time-c++.
17731         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17732
17733         Tests of module 'sys_time' in C++ mode.
17734         * tests/test-sys_time-c++.cc: New file.
17735         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17736         (Depends-on): Add ansi-c++-opt.
17737         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17738         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17739         gl_MODULE_INDICATOR.
17740
17741         Tests of module 'sys_stat' in C++ mode.
17742         * tests/test-sys_stat-c++.cc: New file.
17743         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17744         (Depends-on): Add ansi-c++-opt.
17745         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17746         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17747         gl_MODULE_INDICATOR.
17748
17749         Tests of module 'sys_socket' in C++ mode.
17750         * tests/test-sys_socket-c++.cc: New file.
17751         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17752         (Depends-on): Add ansi-c++-opt.
17753         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17754         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17755         gl_MODULE_INDICATOR.
17756
17757         Tests of module 'sys_select' in C++ mode.
17758         * tests/test-sys_select-c++.cc: New file.
17759         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17760         (Depends-on): Add ansi-c++-opt.
17761         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17762         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17763         gl_MODULE_INDICATOR.
17764
17765         Tests of module 'sys_ioctl' in C++ mode.
17766         * tests/test-sys_ioctl-c++.cc: New file.
17767         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17768         (Depends-on): Add ansi-c++-opt.
17769         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17770         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17771         gl_MODULE_INDICATOR.
17772
17773         Tests of module 'string' in C++ mode.
17774         * tests/test-string-c++.cc: New file.
17775         * modules/string-tests (Files): Add it and tests/signature.h.
17776         (Depends-on): Add ansi-c++-opt.
17777         (Makefile.am): Arrange to compile and run test-string-c++.
17778         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17779         gl_MODULE_INDICATOR.
17780
17781         Tests of module 'stdlib' in C++ mode.
17782         * tests/test-stdlib-c++.cc: New file.
17783         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17784         (Depends-on): Add ansi-c++-opt.
17785         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17786         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17787         gl_MODULE_INDICATOR.
17788
17789         Tests of module 'stdio' in C++ mode.
17790         * tests/test-stdio-c++.cc: New file.
17791         * modules/stdio-tests (Files): Add it and tests/signature.h.
17792         (Depends-on): Add ansi-c++-opt.
17793         (Makefile.am): Arrange to compile and run test-stdio-c++.
17794         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17795         gl_MODULE_INDICATOR.
17796
17797         Tests of module 'spawn' in C++ mode.
17798         * tests/test-spawn-c++.cc: New file.
17799         * modules/spawn-tests (Files): Add it and tests/signature.h.
17800         (Depends-on): Add ansi-c++-opt.
17801         (Makefile.am): Arrange to compile and run test-spawn-c++.
17802         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17803         gl_MODULE_INDICATOR.
17804
17805         Tests of module 'signal' in C++ mode.
17806         * tests/test-signal-c++.cc: New file.
17807         * modules/signal-tests (Files): Add it and tests/signature.h.
17808         (Depends-on): Add ansi-c++-opt.
17809         (Makefile.am): Arrange to compile and run test-signal-c++.
17810         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17811         gl_MODULE_INDICATOR.
17812
17813         Tests of module 'search' in C++ mode.
17814         * tests/test-search-c++.cc: New file.
17815         * modules/search-tests (Files): Add it and tests/signature.h.
17816         (Depends-on): Add ansi-c++-opt.
17817         (Makefile.am): Arrange to compile and run test-search-c++.
17818         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17819         gl_MODULE_INDICATOR.
17820
17821         Tests of module 'math' in C++ mode.
17822         * tests/test-math-c++.cc: New file.
17823         * modules/math-tests (Files): Add it and tests/signature.h.
17824         (Depends-on): Add ansi-c++-opt.
17825         (Makefile.am): Arrange to compile and run test-math-c++.
17826         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17827
17828         Tests of module 'locale' in C++ mode.
17829         * tests/test-locale-c++.cc: New file.
17830         * modules/locale-tests (Files): Add it and tests/signature.h.
17831         (Depends-on): Add ansi-c++-opt.
17832         (Makefile.am): Arrange to compile and run test-locale-c++.
17833         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17834         gl_MODULE_INDICATOR.
17835
17836         Tests of module 'langinfo' in C++ mode.
17837         * tests/test-langinfo-c++.cc: New file.
17838         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17839         (Depends-on): Add ansi-c++-opt.
17840         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17841         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17842         gl_MODULE_INDICATOR.
17843
17844         Tests of module 'iconv-h' in C++ mode.
17845         * tests/test-iconv-h-c++.cc: New file.
17846         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17847         (Depends-on): Add ansi-c++-opt.
17848         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17849
17850         Tests of module 'glob' in C++ mode.
17851         * tests/test-glob-c++.cc: New file.
17852         * modules/glob-tests (Files): Add it.
17853         (Depends-on): Add ansi-c++-opt.
17854         (Makefile.am): Arrange to compile and run test-glob-c++.
17855
17856         Tests of module 'fcntl-h' in C++ mode.
17857         * tests/test-fcntl-h-c++.cc: New file.
17858         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17859         (Depends-on): Add ansi-c++-opt.
17860         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17861         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17862         gl_MODULE_INDICATOR.
17863
17864         Tests of module 'dirent' in C++ mode.
17865         * tests/test-dirent-c++.cc: New file.
17866         * modules/dirent-tests (Files): Add it and tests/signature.h.
17867         (Depends-on): Add ansi-c++-opt.
17868         (Makefile.am): Arrange to compile and run test-dirent-c++.
17869         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17870         gl_MODULE_INDICATOR.
17871
17872         New module 'ansi-c++-opt'.
17873         * modules/ansi-c++-opt: New file.
17874         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17875
17876         Document C++ namespace mode.
17877         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17878
17879         wctype: Avoid #define replacements in C++ mode.
17880         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17881         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17882         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17883         In C++, define a namespaced alias symbol.
17884         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17885         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17886         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17887         rule.
17888
17889         wchar: Avoid #define replacements in C++ mode.
17890         * lib/wchar.in.h: Include c++defs.h.
17891         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17892         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17893         symbol.
17894         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17895         * modules/wchar (Depends-on): Add c++defs.
17896         (Makefile.am): Update wchar.h rule.
17897
17898         unistd: Avoid #define replacements in C++ mode.
17899         * lib/unistd.in.h: Include c++defs.h.
17900         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17901         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17902         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17903         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17904         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17905         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17906         symbol.
17907         (environ): Update.
17908         * modules/unistd (Depends-on): Add c++defs.
17909         (Makefile.am): Update unistd.h rule.
17910
17911         time: Avoid #define replacements in C++ mode.
17912         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17913         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17914         define a namespaced alias symbol.
17915         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17916         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17917         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17918         * modules/time (Depends-on): Add c++defs, warn-on-use.
17919         (Makefile.am): Update time.h rule.
17920         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17921         * modules/nanosleep (configure.ac): Likewise.
17922         * modules/strptime (configure.ac): Likewise.
17923         * modules/timegm (configure.ac): Likewise.
17924
17925         sys_time: Avoid #define replacements in C++ mode.
17926         * lib/sys_time.in.h: Include c++defs.h.
17927         (gettimeofday): In C++, define a namespaced alias symbol.
17928         * modules/sys_time (Depends-on): Add c++defs.
17929         (Makefile.am): Update sys/time.h rule.
17930
17931         sys_stat: Avoid #define replacements in C++ mode.
17932         * lib/sys_stat.in.h: Include c++defs.h.
17933         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17934         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17935         namespaced alias symbol.
17936         In C++, define a namespaced alias symbol.
17937         * modules/sys_stat (Depends-on): Add c++defs.
17938         (Makefile.am): Update sys/stat.h rule.
17939
17940         sys_socket: Avoid #define replacements in C++ mode.
17941         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17942         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17943         definitions also when the system has a <sys/socket.h>.
17944         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17945         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17946         In C++, define a namespaced alias symbol.
17947         * modules/sys_socket (Depends-on): Add c++defs.
17948         (Makefile.am): Update sys/socket.h rule.
17949
17950         sys_select: Avoid #define replacements in C++ mode.
17951         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17952         definitions also when the system has a <sys/select.h>.
17953         (select): In C++, define a namespaced alias symbol.
17954         * modules/sys_select (Depends-on): Add c++defs.
17955         (Makefile.am): Update sys/select.h rule.
17956
17957         sys_ioctl: Avoid #define replacements in C++ mode.
17958         * lib/sys_ioctl.in.h: Include c++defs.h.
17959         (ioctl): In C++, define a namespaced alias symbol.
17960         * modules/sys_ioctl (Depends-on): Add c++defs.
17961         (Makefile.am): Update sys/ioctl.h rule.
17962
17963         string: Avoid #define replacements in C++ mode.
17964         * lib/string.in.h: Include c++defs.h.
17965         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17966         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17967         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17968         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17969         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17970         * modules/string (Depends-on): Add c++defs.
17971         (Makefile.am): Update string.h rule.
17972
17973         stdlib: Avoid #define replacements in C++ mode.
17974         * lib/stdlib.in.h: Include c++defs.h.
17975         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17976         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17977         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17978         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17979         symbol.
17980         * modules/stdlib (Depends-on): Add c++defs.
17981         (Makefile.am): Update stdlib.h rule.
17982
17983         stdio: Avoid #define replacements in C++ mode.
17984         * lib/stdio.in.h: Include c++defs.h.
17985         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17986         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17987         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17988         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17989         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17990         namespaced alias symbol.
17991         * modules/stdio (Depends-on): Add c++defs.
17992         (Makefile.am): Update stdio.h rule.
17993
17994         spawn: Avoid #define replacements in C++ mode.
17995         * lib/spawn.in.h: Include c++defs.h.
17996         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17997         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17998         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17999         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18000         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18001         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18002         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18003         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18004         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18005         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18006         In C++, define a namespaced alias symbol.
18007         * modules/spawn (Depends-on): Add c++defs.
18008         (Makefile.am): Update spawn.h rule.
18009
18010         signal: Avoid #define replacements in C++ mode.
18011         * lib/signal.in.h: Include c++defs.h.
18012         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18013         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18014         namespaced alias symbol.
18015         * modules/signal (Depends-on): Add c++defs.
18016         (Makefile.am): Update signal.h rule.
18017
18018         search: Avoid #define replacements in C++ mode.
18019         * lib/search.in.h: Include c++defs.h.
18020         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18021         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18022         symbol.
18023         * modules/search (Depends-on): Add c++defs.
18024         (Makefile.am): Update search.h rule.
18025
18026         math: Avoid #define replacements in C++ mode.
18027         * lib/math.in.h: Include c++defs.h.
18028         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18029         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18030         trunc, truncl): In C++, define a namespaced alias symbol.
18031         * modules/math (Depends-on): Add c++defs.
18032         (Makefile.am): Update math.h rule.
18033
18034         locale: Avoid #define replacements in C++ mode.
18035         * lib/locale.in.h: Include c++defs.h.
18036         (duplocale): In C++, define a namespaced alias symbol.
18037         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18038         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18039         * modules/locale (Depends-on): Add c++defs.
18040         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18041
18042         langinfo: Avoid #define replacements in C++ mode.
18043         * lib/langinfo.in.h: Include c++defs.h.
18044         (nl_langinfo): In C++, define a namespaced alias symbol.
18045         * modules/langinfo (Depends-on): Add c++defs.
18046         (Makefile.am): Update langinfo.h rule.
18047
18048         iconv-h: Avoid #define replacements in C++ mode.
18049         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18050         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18051         symbol.
18052         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18053         whenever iconv is present.
18054         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18055         (Makefile.am): Update iconv.h rule.
18056
18057         glob: Avoid #define replacements in C++ mode.
18058         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18059         (_gl_glob_errfunc_fn): New type.
18060         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18061         symbol.
18062         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18063         (Makefile.am): Update glob.h rule.
18064
18065         fcntl-h: Avoid #define replacements in C++ mode.
18066         * lib/fcntl.in.h: Include c++defs.h.
18067         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18068         * modules/fcntl-h (Depends-on): Add c++defs.
18069         (Makefile.am): Update fcntl.h rule.
18070
18071         dirent: Avoid #define replacements in C++ mode.
18072         * lib/dirent.in.h: Include c++defs.h.
18073         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18074         namespaced alias symbol.
18075         (dirfd): Update declaration.
18076         * modules/dirent (Depends-on): Add c++defs.
18077         (Makefile.am): Update dirent.h rule.
18078
18079         ctype: Make it usable in C++ code.
18080         * lib/ctype.in.h: Include c++defs.h.
18081         (isblank): Declare as extern "C".
18082         * modules/ctype (Depends-on): Add c++defs.
18083         (Makefile.am): Update ctype.h rule.
18084
18085         New module 'c++defs'.
18086         * modules/c++defs: New file.
18087         * build-aux/c++defs.h: New file.
18088         Reported by John W. Eaton <jwe@gnu.org>.
18089
18090 2010-03-07  Bruno Haible  <bruno@clisp.org>
18091
18092         logb: Provide missing declaration for Cygwin.
18093         * lib/math.in.h (logb): New declaration.
18094         * m4/logb.m4: New file.
18095         * modules/logb (Files): Add m4/logb.m4.
18096         (Depends-on): Add math.
18097         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18098         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18100         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18101         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18102
18103 2010-03-07  Bruno Haible  <bruno@clisp.org>
18104
18105         Fix test-cond link error.
18106         * tests/test-cond.c: Include <stdio.h>.
18107
18108 2010-03-07  Bruno Haible  <bruno@clisp.org>
18109
18110         Fix test-dirent-safer link error.
18111         * modules/dirent-safer-tests (Makefile.am): Define
18112         test_dirent_safer_LDADD.
18113
18114 2010-03-07  Bruno Haible  <bruno@clisp.org>
18115
18116         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18117         among default module list.
18118
18119 2010-03-07  Bruno Haible  <bruno@clisp.org>
18120
18121         Fix link error on platforms with GNU libiconv.
18122         * modules/unistr/u8-strcoll-tests (Makefile): Define
18123         test_u8_strcoll_LDADD.
18124         * modules/unistr/u16-strcoll-tests (Makefile): Define
18125         test_u16_strcoll_LDADD.
18126         * modules/unistr/u32-strcoll-tests (Makefile): Define
18127         test_u32_strcoll_LDADD.
18128
18129 2010-03-07  Bruno Haible  <bruno@clisp.org>
18130
18131         Use POSIX declarations for socket functions.
18132         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18133         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18134         rpl_sendto): Change declaration to match POSIX.
18135         * lib/connect.c (rpl_connect): Likewise.
18136         * lib/accept.c (rpl_accept): Likewise.
18137         * lib/bind.c (rpl_bind): Likewise.
18138         * lib/getpeername.c (rpl_getpeername): Likewise.
18139         * lib/getsockname.c (rpl_getsockname): Likewise.
18140         * lib/recv.c (rpl_recv): Likewise.
18141         * lib/send.c (rpl_send): Likewise.
18142         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18143         * lib/sendto.c (rpl_sendto): Likewise.
18144
18145 2010-03-06  Bruno Haible  <bruno@clisp.org>
18146
18147         Clarify access, euidaccess, faccessat.
18148         * doc/posix-functions/faccessat.texi: Mention security problem under
18149         "Other problems", not "Portability problems".
18150         * doc/posix-functions/access.texi: Likewise. Mention a related security
18151         problem.
18152         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18153         * lib/euidaccess.c: Add comments about platforms.
18154         * lib/unistd.in.h (access, euidaccess): Add warnings.
18155
18156 2010-03-07  Bruno Haible  <bruno@clisp.org>
18157
18158         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18159         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18160         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18161         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18162         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18163         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18164         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18165         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18166         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18167         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18168         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18169         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18170         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18171         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18172         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18173         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18174         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18175         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18176         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18177         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18178         Likewise.
18179         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18180         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18181         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18182         Likewise.
18183         * tests/test-spawn.c (main): Make it work when
18184         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18185
18186 2010-03-07  Bruno Haible  <bruno@clisp.org>
18187
18188         Fix incorrect Makefile.am generation in German locale.
18189         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18190         Execute sed command with character range in C locale.
18191
18192 2010-03-06  Bruno Haible  <bruno@clisp.org>
18193
18194         Tests for module 'iconv-h'.
18195         * modules/iconv-h-tests: New file.
18196         * tests/test-iconv-h.c: New file.
18197
18198         New module 'iconv-h'.
18199         * modules/iconv-h: New file.
18200         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18201         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18202         (configure.ac): Remove gl_ICONV_H.
18203         (Makefile.am): Remove rule for iconv.h.
18204
18205 2010-03-06  Bruno Haible  <bruno@clisp.org>
18206
18207         More consistent naming of *.m4 files.
18208         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18209         * modules/wctype (Files): Update.
18210
18211         More consistent naming of *.m4 files.
18212         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18213         * modules/wchar (Files): Update.
18214
18215 2010-03-06  Jim Meyering  <meyering@redhat.com>
18216
18217         euidaccess: relax license to LGPLv2+
18218         * modules/euidaccess (License): Relax to LGPLv2+.
18219
18220 2010-03-06  Bruno Haible  <bruno@clisp.org>
18221
18222         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18223         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18224         (Makefile.am): Augment lib_SOURCES instead.
18225
18226 2010-03-04  Jim Meyering  <meyering@redhat.com>
18227
18228         utime: remove obsolete module
18229         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18230         unnecessary for years, and has been marked as obsolete for 10 months.
18231         * modules/utime: Remove file.
18232         * lib/utime.c: Remove file.
18233         * m4/utime.m4: Remove file.
18234         * m4/utimes-null.m4: Remove file.
18235         * doc/posix-functions/utime.texi (utime): Remove reference to
18236         the module.  Move the sole "fixed by gnulib" item into the
18237         "problems not fixed by Gnulib" list.
18238         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18239
18240 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18241
18242         * modules/exit (License): Relax license to LGPLv2+.
18243         (Status): Mark as obsolete.
18244         * NEWS: Mention deprecated 'exit' module.
18245         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18246         of now obsolete 'exit'.
18247
18248 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18249
18250         fts-lgpl: remove unused module
18251         * modules/fts-lgpl: Remove.
18252         * MODULES.html.sh (func_all_modules): Adjust.
18253         * check-module (find_included_lib_files): Adjust.
18254         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18255
18256 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18257
18258         copy-acl: enhance Solaris ACL error handling
18259         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18260         * lib/set-mode-acl.c (qset_acl): Likewise.
18261
18262 2010-03-02  Bruno Haible  <bruno@clisp.org>
18263
18264         spawn: Don't override the system defined values on FreeBSD 8.
18265         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18266         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18267         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18268         if HAVE_POSIX_SPAWN is 1.
18269         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18270
18271 2010-03-01  Bruno Haible  <bruno@clisp.org>
18272
18273         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18274         regarding Automake.
18275
18276 2010-02-25  Bruno Haible  <bruno@clisp.org>
18277
18278         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18279         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18280         setting, not afterwards.
18281         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18282
18283 2010-02-24  Eric Blake  <eblake@redhat.com>
18284
18285         bootstrap, git-version-gen: use timestamp
18286         * build-aux/git-version-gen (scriptversion): Force UTC.
18287         * build-aux/bootstrap (scriptversion): New variable.
18288
18289         bootstrap: allow older git
18290         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18291         older than 1.6.4.  Requested by the libvirt project.
18292
18293 2010-02-23  Eric Blake  <eblake@redhat.com>
18294
18295         warn-on-use: work with old autoconf
18296         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18297         AS_VAR semantics of autoconf 2.60.
18298         Reported by Bruno Haible.
18299
18300         bootstrap: improve some comments
18301         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18302         clarification comments.
18303
18304         gettimeofday: provide correct function
18305         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18306         when replacement is declared, otherwise provide gettimeofday.
18307         Reported by Michael Goffioul.
18308
18309 2010-02-23  Jim Meyering  <meyering@redhat.com>
18310
18311         lib-ignore: relax license to "unlimited", not LGPLv2+
18312         * modules/lib-ignore (License): Relax to "unlimited".
18313
18314 2010-02-23  Jim Meyering  <meyering@redhat.com>
18315
18316         lib-ignore: relax license to LGPLv2+
18317         * modules/lib-ignore (License): Relax to LGPLv2+.
18318
18319 2010-02-22  Eric Blake  <eblake@redhat.com>
18320
18321         lseek: avoid bash 3.2 broken pipe bug
18322         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18323         warning from bash 3.2.
18324         Reported by Ben Pfaff, with analysis from Bruno Haible.
18325
18326         bootstrap: support non-FSF copyright holder
18327         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18328         bootstrap.conf override of COPYRIGHT_HOLDER.
18329         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18330
18331         bootstrap: interoperate with gettext 0.14.1
18332         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18333
18334         bootstrap: allow for alternate submodule location
18335         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18336         hardcoding submodule location.
18337         (gnulib_mk): Allow direct use of Makefile.am.
18338
18339         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18340         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18341         rather than reconfiguring where the submodule points.
18342
18343         gettimeofday: restore support for platforms that lack function
18344         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18345         replacement if function is missing.
18346         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18347         * modules/sys_time (Makefile.am): Substitute it.
18348         * lib/sys_time.in.h (gettimeofday): Check it.
18349         Reported by Michael Goffioul.
18350
18351 2010-02-21  Bruno Haible  <bruno@clisp.org>
18352
18353         * lib/stdio.in.h (obstack_printf): Fix typo.
18354
18355 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18356
18357         vc-list-files: use bzr ls's -R option
18358         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18359         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18360
18361 2010-02-21  Jim Meyering  <meyering@redhat.com>
18362
18363         init.sh: fix EXEEXT shims to work also for names like test-prog
18364         * tests/init.sh: Re-exec a better shell, when needed.
18365         If the current shell lacks support for posix $(...), an init.sh-using
18366         test will now try to find a shell that supports that.  If EXEEXT is
18367         nonempty, we also require support for hyphen-in-alias-name and shell
18368         substitutions like ${var#glob}.  Failure to find such a shell results
18369         in a skipped test.
18370
18371 2010-02-21  Bruno Haible  <bruno@clisp.org>
18372
18373         Really work around around "broken pipe" error message from bash 3.2.
18374         * gnulib-tool (func_reset_sigpipe): Remove function.
18375         (echo): In bash 3.2, define to a function that uses printf.
18376         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18377
18378 2010-02-20  Bruno Haible  <bruno@clisp.org>
18379
18380         Restore support for automake 1.9.6 with autoconf 2.61.
18381         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18382         Reported by James Youngman <jay@gnu.org>.
18383
18384 2010-02-20  Bruno Haible  <bruno@clisp.org>
18385
18386         Improve *printf warning condition.
18387         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18388         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18389         and the function is overridden due to SIGPIPE emulation.
18390
18391 2010-02-20  Bruno Haible  <bruno@clisp.org>
18392
18393         * lib/stdio.in.h: Tweak comments.
18394
18395 2010-02-19  Bruno Haible  <bruno@clisp.org>
18396
18397         Make it easier to find modules. New gnulib-tool option '--find'.
18398         * gnulib-tool: New option --find.
18399         (func_usage): Document it.
18400         (func_sanitize_modulelist): New function, extracted from
18401         func_all_modules.
18402         (func_all_modules): Invoke it.
18403         * doc/gnulib-tool.texi (Which modules?): New node.
18404
18405 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18406
18407         * lib/sys_select.in.h: Provide select replacement even if
18408         sys/select.h exists on a system, for Interix.
18409
18410 2010-02-18  Jim Meyering  <meyering@redhat.com>
18411
18412         init.sh: don't use $(...) just yet
18413         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18414         to accommodate e.g., Solaris' /bin/sh.
18415
18416 2010-02-17  Bruno Haible  <bruno@clisp.org>
18417
18418         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18419         Reported by Ludovic Courtès <ludo@gnu.org>.
18420
18421 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18422
18423         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18424         linking with -lintl.
18425
18426 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18427
18428         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18429         if not provided by the system's netdb.h.  Reported by
18430         ludo@gnu.org (Ludovic Courtès).
18431
18432 2010-02-15  Jim Meyering  <meyering@redhat.com>
18433
18434         init.sh: improve portability and efficiency
18435         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18436         "dummy" in a for loop.
18437         Use '!', not '^' to select the complement of a character set used
18438         in a "case" statement.
18439         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18440         Suggestions from Eric Blake.
18441
18442         init.sh: automatically accommodate programs with the .exe suffix
18443         Automatically arrange for an invocation of "prog" to execute the
18444         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18445         may use the simpler "prog", yet still work when built on a system
18446         that requires specifying the added suffix.
18447         Do this by constructing a function named "prog" that invokes
18448         "prog.exe" for each .exe file in selected directories.
18449         * tests/init.sh (find_exe_basenames_): New function.
18450         (create_exe_shim_functions_): New function.
18451         (path_prepend_): Use it.
18452
18453         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18454         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18455         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18456
18457 2010-02-14  Jim Meyering  <meyering@redhat.com>
18458
18459         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18460         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18461         (sc_prohibit_hash_pjw_without_use): New rule.
18462
18463         maint.mk: allow the default upload destination dir to be overridden
18464         * top/maint.mk (upload_dest_dir_): Define with a default that
18465         preserves the status quo.
18466         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18467         Reported by Peter Simons.
18468
18469         maint.mk: prohibit inclusion of "hash.h" without_use
18470         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18471
18472 2010-02-10  Jim Meyering  <meyering@redhat.com>
18473
18474         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18475         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18476
18477 2010-02-09  Eric Blake  <ebb9@byu.net>
18478         and Bruno Haible  <bruno@clisp.org>
18479
18480         obstack-printf-posix: ensure declaration
18481         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18482         extracted from gl_FUNC_OBSTACK_PRINTF.
18483         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18484         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18485         Likewise.
18486         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18487         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18488         0.
18489
18490 2010-02-08  Bruno Haible  <bruno@clisp.org>
18491
18492         gnulib-tool: Fix typo in 2010-02-07 commit.
18493         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18494         Reported by Eric Blake.
18495
18496 2010-02-07  Bruno Haible  <bruno@clisp.org>
18497
18498         gnulib-tool: Fix up caching patches.
18499         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18500         option --no-cache. Use associative arrays when supported by the shell.
18501         (sed_comments): New variable.
18502         (modcache): Renamed from do_cache.
18503         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18504         abbreviate unnecessarily.
18505         (have_associative): New variable.
18506         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18507         way also for ksh and zsh.
18508         (func_init_sed_convert_to_cache_statements): New function, extracted
18509         from func_cache_lookup_module. Add support for associative arrays.
18510         Don't set the c_MODULE_cached variable here. Ignore all lines before
18511         the first field header. Remove only the final newline, not all trailing
18512         newlines. Support empty fields correctly. Limit the use of 'eval' to
18513         assignments.
18514         (func_get_description, func_get_status, func_get_notice,
18515         func_get_applicability, func_get_filelist, func_get_dependencies,
18516         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18517         func_get_automake_snippet, func_get_include_directive,
18518         func_get_link_directive, func_get_license, func_get_maintainer):
18519         Update documentation. List the unoptimized code first. Add support for
18520         associative arrays. Limit the use of 'eval' to assignments.
18521         (func_get_applicability): Undo stylistic pessimisations.
18522         (func_get_automake_snippet, func_get_include_directive): Reduce code
18523         duplication.
18524         (func_modules_transitive_closure, func_modules_add_dummy,
18525         func_modules_notice, func_modules_to_filelist, func_add_file,
18526         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18527         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18528         func_create_testdir, func_create_megatestdir): Update documentation.
18529
18530 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18531
18532         * gnulib-tool (func_cache_lookup_module): Store the module name
18533         belonging to the cache variable; error out if two different
18534         module names map to the same cache variable name.
18535
18536 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18537
18538         gnulib-tool: Make caching optional.
18539         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18540         Update matching short versions of --no-changelog.
18541         (func_usage): Update.
18542         (sed_extract_cache_prog): Renamed from ...
18543         (sed_extract_prog): ... this; revert to old extraction script.
18544         (func_get_description, func_get_status)
18545         (func_get_notice, func_get_applicability, func_get_filelist)
18546         (func_get_dependencies, func_get_autoconf_early_snippet)
18547         (func_get_autoconf_snippet, func_get_automake_snippet)
18548         (func_get_include_directive, func_get_link_directive)
18549         (func_get_license, func_get_maintainer): If $do_cache is false,
18550         use old, non-caching extraction scripts.
18551         Suggestion by Bruno Haible.
18552
18553 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18554
18555         gnulib-tool: cache module metainformation.
18556         * gnulib-tool (sed_extract_prog): Match newline before each
18557         header, and rewrite header to a shell variable suffix.
18558         (func_cache_var, func_cache_lookup_module): New functions,
18559         to turn a module name into a cache variable prefix, and to
18560         look up and cache module metainformation.
18561         (func_get_description, func_get_status)
18562         (func_get_notice, func_get_applicability, func_get_filelist)
18563         (func_get_dependencies, func_get_autoconf_early_snippet)
18564         (func_get_autoconf_snippet, func_get_automake_snippet)
18565         (func_get_include_directive, func_get_link_directive)
18566         (func_get_license, func_get_maintainer): Use
18567         func_cache_lookup_module.
18568
18569 2010-02-07  Bruno Haible  <bruno@clisp.org>
18570
18571         fnctl: Fix missing dependency.
18572         * modules/fcntl (Depends-on): Add getdtablesize.
18573         Reported by John W. Eaton <jwe@gnu.org>.
18574
18575 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18576
18577         Argp: fix recognition of short alias options.
18578
18579         * lib/argp-parse.c (convert_options): Fix improper use of
18580         `|' between character values.
18581         * tests/test-argp.c (group1_option): New alias option
18582         --read (-r).
18583         (group1_parser): Special handling for 'r'.
18584         (test15): New test case.
18585         (test_fun): Add test15.
18586         * tests/test-argp-2.sh: Update expected --help and --usage
18587         outputs.
18588
18589 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18590
18591         * tests/test-argp.c: Fix indentation.
18592
18593 2010-02-04  Eric Blake  <ebb9@byu.net>
18594
18595         gettimeofday: expose type of second argument
18596         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18597         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18598         * tests/test-gettimeofday.c: Use it to silence warning.
18599         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18600         the issue.
18601
18602 2010-02-03  Jim Meyering  <meyering@redhat.com>
18603
18604         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18605         * lib/regcomp.c (TYPE_SIGNED): Define.
18606         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18607
18608         regcomp.c: avoid a new -Wshadow warning
18609         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18610
18611 2010-02-01  Jim Meyering  <meyering@redhat.com>
18612
18613         removing useless parentheses in cpp #define directives
18614         For motivation, see commit c0221df4, "define STREQ(a,b)
18615         consistently, removing useless parentheses"
18616         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18617         * lib/mountlist.c (MNT_IGNORE): Likewise.
18618         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18619
18620 2010-02-01  Eric Blake  <ebb9@byu.net>
18621
18622         sys_time: use link-warning
18623         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18624         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18625         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18626         * modules/sys_time (Depends-on): Add warn-on-use.
18627         (Makefile.am): Always build replacement.
18628         (configure.ac): Update substitutions.
18629         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18630         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18631         bother with SYS_TIME_H.
18632         * modules/gettimeofday (configure.ac): Declare indicator.
18633         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18634         in use.
18635
18636         closein-tests: silence compiler warning
18637         * tests/test-closein.c (main): Ignore fread result.
18638         * modules/closein-tests (Depends-on): Add ignore-value.
18639
18640         tests: silence warning about system return
18641         * tests/test-areadlink-with-size.c (main): Ignore system result.
18642         * tests/test-areadlink.c (main): Likewise.
18643         * tests/test-areadlinkat-with-size.c (main): Likewise.
18644         * tests/test-areadlinkat.c (main): Likewise.
18645         * tests/test-canonicalize-lgpl.c (main): Likewise.
18646         * tests/test-canonicalize.c (main): Likewise.
18647         * tests/test-chown.c (main): Likewise.
18648         * tests/test-fchownat.c (main): Likewise.
18649         * tests/test-fdutimensat.c (main): Likewise.
18650         * tests/test-fstatat.c (main): Likewise.
18651         * tests/test-futimens.c (main): Likewise.
18652         * tests/test-lchown.c (main): Likewise.
18653         * tests/test-link.c (main): Likewise.
18654         * tests/test-linkat.c (main): Likewise.
18655         * tests/test-lstat.c (main): Likewise.
18656         * tests/test-mkdir.c (main): Likewise.
18657         * tests/test-mkdirat.c (main): Likewise.
18658         * tests/test-mkfifo.c (main): Likewise.
18659         * tests/test-mkfifoat.c (main): Likewise.
18660         * tests/test-mknod.c (main): Likewise.
18661         * tests/test-readlink.c (main): Likewise.
18662         * tests/test-remove.c (main): Likewise.
18663         * tests/test-rename.c (main): Likewise.
18664         * tests/test-renameat.c (main): Likewise.
18665         * tests/test-rmdir.c (main): Likewise.
18666         * tests/test-symlink.c (main): Likewise.
18667         * tests/test-symlinkat.c (main): Likewise.
18668         * tests/test-unlink.c (main): Likewise.
18669         * tests/test-unlinkat.c (main): Likewise.
18670         * tests/test-utimens.c (main): Likewise.
18671         * tests/test-utimensat.c (main): Likewise.
18672         * modules/areadlink-tests (Depends-on): Add ignore-value.
18673         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18674         * modules/areadlinkat-tests (Depends-on): Likewise.
18675         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18676         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18677         * modules/canonicalize-tests (Depends-on): Likewise.
18678         * modules/chown-tests (Depends-on): Likewise.
18679         * modules/fdutimensat-tests (Depends-on): Likewise.
18680         * modules/futimens-tests (Depends-on): Likewise.
18681         * modules/lchown-tests (Depends-on): Likewise.
18682         * modules/link-tests (Depends-on): Likewise.
18683         * modules/linkat-tests (Depends-on): Likewise.
18684         * modules/lstat-tests (Depends-on): Likewise.
18685         * modules/mkdir-tests (Depends-on): Likewise.
18686         * modules/mkfifo-tests (Depends-on): Likewise.
18687         * modules/mkfifoat-tests (Depends-on): Likewise.
18688         * modules/mknod-tests (Depends-on): Likewise.
18689         * modules/openat-tests (Depends-on): Likewise.
18690         * modules/readlink-tests (Depends-on): Likewise.
18691         * modules/remove-tests (Depends-on): Likewise.
18692         * modules/rename-tests (Depends-on): Likewise.
18693         * modules/renameat-tests (Depends-on): Likewise.
18694         * modules/rmdir-tests (Depends-on): Likewise.
18695         * modules/symlink-tests (Depends-on): Likewise.
18696         * modules/symlinkat-tests (Depends-on): Likewise.
18697         * modules/unlink-tests (Depends-on): Likewise.
18698         * modules/utimens-tests (Depends-on): Likewise.
18699         * modules/utimensat-tests (Depends-on): Likewise.
18700
18701 2010-01-31  Bruno Haible  <bruno@clisp.org>
18702
18703         Perform the same test for many <math.h> functions.
18704         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18705         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18706         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18707         of gl_MATHFUNC.
18708         * modules/acos (configure.ac): Likewise.
18709         * modules/asin (configure.ac): Likewise.
18710         * modules/atan (configure.ac): Likewise.
18711         * modules/atan2 (configure.ac): Likewise.
18712         * modules/cbrt (configure.ac): Likewise.
18713         * modules/copysign (configure.ac): Likewise.
18714         * modules/cos (configure.ac): Likewise.
18715         * modules/cosh (configure.ac): Likewise.
18716         * modules/erf (configure.ac): Likewise.
18717         * modules/erfc (configure.ac): Likewise.
18718         * modules/exp (configure.ac): Likewise.
18719         * modules/fmod (configure.ac): Likewise.
18720         * modules/hypot (configure.ac): Likewise.
18721         * modules/j0 (configure.ac): Likewise.
18722         * modules/j1 (configure.ac): Likewise.
18723         * modules/jn (configure.ac): Likewise.
18724         * modules/lgamma (configure.ac): Likewise.
18725         * modules/log (configure.ac): Likewise.
18726         * modules/log10 (configure.ac): Likewise.
18727         * modules/log1p (configure.ac): Likewise.
18728         * modules/pow (configure.ac): Likewise.
18729         * modules/remainder (configure.ac): Likewise.
18730         * modules/sin (configure.ac): Likewise.
18731         * modules/sinh (configure.ac): Likewise.
18732         * modules/tan (configure.ac): Likewise.
18733         * modules/tanh (configure.ac): Likewise.
18734         * modules/y0 (configure.ac): Likewise.
18735         * modules/y1 (configure.ac): Likewise.
18736         * modules/yn (configure.ac): Likewise.
18737         Suggested by Paolo Bonzini.
18738
18739 2010-01-31  Bruno Haible  <bruno@clisp.org>
18740
18741         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18742
18743 2010-01-31  Bruno Haible  <bruno@clisp.org>
18744
18745         Work around getdelim() bug on FreeBSD 8.0.
18746         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18747         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18748         not work.
18749         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18750         is 1.
18751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18752         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18753         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18754         a non-zero size.
18755         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18756
18757 2010-01-31  Bruno Haible  <bruno@clisp.org>
18758
18759         Work around getline() bug on FreeBSD 8.0.
18760         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18761         and a non-zero size.
18762         * tests/test-getline.c (main): Likewise.
18763         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18764         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18765
18766 2010-01-28  Eric Blake  <ebb9@byu.net>
18767
18768         regex: fix build failure
18769         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18770         platforms.
18771
18772 2010-01-28  Jim Meyering  <meyering@redhat.com>
18773
18774         regex: do not ignore memory allocation failure
18775         * lib/regex_internal.c (create_cd_newstate): Detect
18776         re_node_set_init_copy failure.   Extracted from glibc commit
18777         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18778
18779         regex: sync more white-space changes from libc
18780         * lib/regex_internal.c: White-space only changes.
18781         * lib/regexec.c: Likewise.
18782
18783         regex: add many uses of __attribute_warn_unused_result__
18784         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18785         * lib/regexec.c: Likewise.
18786         Extracted from a messy glibc commit.
18787
18788         regcomp.c: spelling and merge-artifact from glibc
18789         * lib/regcomp.c: Merge remainder of glibc's
18790         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18791
18792         regcomp.c: sync white-space changes from glibc
18793         * lib/regcomp.c: Merge to accommodate white space
18794         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18795
18796         regcomp.c: do not ignore internal return values
18797         * lib/regcomp.c: Do not ignore internal return values.
18798         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18799         but without its white-space changes and spelling fixes.
18800
18801         regex_internal.h: define __attribute_warn_unused_result__
18802         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18803
18804         maint: add a syntax-check rule to check for vulnerable Makefile.in
18805         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18806
18807 2010-01-27  Jim Meyering  <meyering@redhat.com>
18808
18809         ncftpput-ftp: clean up spaces
18810         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18811         Remove trailing blanks.
18812
18813 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18814
18815         * build-aux/git-version-gen: Fix copyright statement.
18816         * build-aux/gnupload: Likewise.
18817         * tests/test-arcfour.c: Likewise.
18818         * tests/test-arctwo.c: Likewise.
18819         * tests/test-count-one-bits.c: Likewise.
18820         * tests/test-crc.c: Likewise.
18821         * tests/test-des.c: Likewise.
18822         * tests/test-gc-arcfour.c: Likewise.
18823         * tests/test-gc-arctwo.c: Likewise.
18824         * tests/test-gc-des.c: Likewise.
18825         * tests/test-gc-hmac-md5.c: Likewise.
18826         * tests/test-gc-hmac-sha1.c: Likewise.
18827         * tests/test-gc-md2.c: Likewise.
18828         * tests/test-gc-md4.c: Likewise.
18829         * tests/test-gc-md5.c: Likewise.
18830         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18831         * tests/test-gc-rijndael.c: Likewise.
18832         * tests/test-gc-sha1.c: Likewise.
18833         * tests/test-gc.c: Likewise.
18834         * tests/test-gethostname.c: Likewise.
18835         * tests/test-gettimeofday.c: Likewise.
18836         * tests/test-hash.c: Likewise.
18837         * tests/test-hmac-md5.c: Likewise.
18838         * tests/test-hmac-sha1.c: Likewise.
18839         * tests/test-md2.c: Likewise.
18840         * tests/test-md4.c: Likewise.
18841         * tests/test-md5.c: Likewise.
18842         * tests/test-memchr.c: Likewise.
18843         * tests/test-memchr2.c: Likewise.
18844         * tests/test-memcmp.c: Likewise.
18845         * tests/test-memmem.c: Likewise.
18846         * tests/test-memrchr.c: Likewise.
18847         * tests/test-rawmemchr.c: Likewise.
18848         * tests/test-read-file.c: Likewise.
18849         * tests/test-rijndael.c: Likewise.
18850         * tests/test-sockets.c: Likewise.
18851         * tests/test-strchrnul.c: Likewise.
18852         * tests/test-strstr.c: Likewise.
18853         * tests/test-strtod.c: Likewise.
18854         * build-aux/ncftpput-ftp: Likewise.
18855
18856 2010-01-26  Eric Blake  <ebb9@byu.net>
18857
18858         ignore-value: update recommended header name
18859         * modules/ignore-value (Include): Only use <> for headers that
18860         exist in glibc.
18861
18862 2010-01-26  Jim Meyering  <meyering@redhat.com>
18863
18864         test-userspec.c: avoid compiler warnings
18865         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18866         and "initialization discards qualifiers..." warnings.
18867         Put the first "uid" in its own scope, and make char* members "const".
18868
18869 2010-01-25  Bruno Haible  <bruno@clisp.org>
18870
18871         gnulib-tool: Make warning diagnostics consistent.
18872         * gnulib-tool (func_warning): New function.
18873         Use it everywhere where gnulib-tool produces output to stderr and it is
18874         not a fatal error.
18875
18876 2010-01-25  Bruno Haible  <bruno@clisp.org>
18877
18878         Fix test dependencies.
18879         * modules/xstrtol-tests (Depends-on): Add inttypes.
18880         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18881
18882 2010-01-25 Pádraig Brady <P@draigBrady.com>
18883
18884         syntax-check: detect incorrect boolean macro values in config.h
18885         * modules/maintainer-makefile (configure.ac): Parameterize the location
18886         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18887         The logic is from Eric Blake and the location indicated by Jim Meyering.
18888         Note the more natural CONFIG_HEADER name is prohibited by automake
18889         for backwards compatibility reasons.
18890         * top/maint.mk (sc_Wundef_boolean): New rule.
18891
18892 2010-01-25  Jim Meyering  <meyering@redhat.com>
18893
18894         bootstrap: detect MacOS 10.6's shasum, too
18895         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18896         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18897
18898 2010-01-23  Jim Meyering  <meyering@redhat.com>
18899
18900         xstrtoll: new module
18901         * modules/xstrtoll: New file.
18902         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18903         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18904         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18905         ./configure fails if you use this module and lack "long long".
18906         * modules/xstrtoll-tests: New module.
18907         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18908         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18909         new init.sh-based test framework.
18910
18911 2010-01-24  Bruno Haible  <bruno@clisp.org>
18912
18913         Tests for module 'yn'.
18914         * modules/yn-tests: New file.
18915         * tests/test-yn.c: New file.
18916
18917         Tests for module 'y1'.
18918         * modules/y1-tests: New file.
18919         * tests/test-y1.c: New file.
18920
18921         Tests for module 'y0'.
18922         * modules/y0-tests: New file.
18923         * tests/test-y0.c: New file.
18924
18925         Tests for module 'tanh'.
18926         * modules/tanh-tests: New file.
18927         * tests/test-tanh.c: New file.
18928
18929         Tests for module 'tan'.
18930         * modules/tan-tests: New file.
18931         * tests/test-tan.c: New file.
18932
18933         Tests for module 'sqrt'.
18934         * modules/sqrt-tests: New file.
18935         * tests/test-sqrt.c: New file.
18936
18937         Tests for module 'sinh'.
18938         * modules/sinh-tests: New file.
18939         * tests/test-sinh.c: New file.
18940
18941         Tests for module 'sin'.
18942         * modules/sin-tests: New file.
18943         * tests/test-sin.c: New file.
18944
18945         Tests for module 'rint'.
18946         * modules/rint-tests: New file.
18947         * tests/test-rint.c: New file.
18948
18949         Tests for module 'remainder'.
18950         * modules/remainder-tests: New file.
18951         * tests/test-remainder.c: New file.
18952
18953         Tests for module 'pow'.
18954         * modules/pow-tests: New file.
18955         * tests/test-pow.c: New file.
18956
18957         Tests for module 'nextafter'.
18958         * modules/nextafter-tests: New file.
18959         * tests/test-nextafter.c: New file.
18960
18961         Tests for module 'modf'.
18962         * modules/modf-tests: New file.
18963         * tests/test-modf.c: New file.
18964
18965         Tests for module 'logb'.
18966         * modules/logb-tests: New file.
18967         * tests/test-logb.c: New file.
18968
18969         Tests for module 'log1p'.
18970         * modules/log1p-tests: New file.
18971         * tests/test-log1p.c: New file.
18972
18973         Tests for module 'log10'.
18974         * modules/log10-tests: New file.
18975         * tests/test-log10.c: New file.
18976
18977         Tests for module 'log'.
18978         * modules/log-tests: New file.
18979         * tests/test-log.c: New file.
18980
18981         Tests for module 'lgamma'.
18982         * modules/lgamma-tests: New file.
18983         * tests/test-lgamma.c: New file.
18984
18985         Tests for module 'ldexp'.
18986         * modules/ldexp-tests: New file.
18987         * tests/test-ldexp.c: New file.
18988
18989         Tests for module 'jn'.
18990         * modules/jn-tests: New file.
18991         * tests/test-jn.c: New file.
18992
18993         Tests for module 'j1'.
18994         * modules/j1-tests: New file.
18995         * tests/test-j1.c: New file.
18996
18997         Tests for module 'j0'.
18998         * modules/j0-tests: New file.
18999         * tests/test-j0.c: New file.
19000
19001         Tests for module 'hypot'.
19002         * modules/hypot-tests: New file.
19003         * tests/test-hypot.c: New file.
19004
19005         Tests for module 'fmod'.
19006         * modules/fmod-tests: New file.
19007         * tests/test-fmod.c: New file.
19008
19009         Tests for module 'fabs'.
19010         * modules/fabs-tests: New file.
19011         * tests/test-fabs.c: New file.
19012
19013         Tests for module 'exp'.
19014         * modules/exp-tests: New file.
19015         * tests/test-exp.c: New file.
19016
19017         Tests for module 'erfc'.
19018         * modules/erfc-tests: New file.
19019         * tests/test-erfc.c: New file.
19020
19021         Tests for module 'erf'.
19022         * modules/erf-tests: New file.
19023         * tests/test-erf.c: New file.
19024
19025         Tests for module 'cosh'.
19026         * modules/cosh-tests: New file.
19027         * tests/test-cosh.c: New file.
19028
19029         Tests for module 'cos'.
19030         * modules/cos-tests: New file.
19031         * tests/test-cos.c: New file.
19032
19033         Tests for module 'copysign'.
19034         * modules/copysign-tests: New file.
19035         * tests/test-copysign.c: New file.
19036
19037         Tests for module 'cbrt'.
19038         * modules/cbrt-tests: New file.
19039         * tests/test-cbrt.c: New file.
19040
19041         Tests for module 'atan2'.
19042         * modules/atan2-tests: New file.
19043         * tests/test-atan2.c: New file.
19044
19045         Tests for module 'atan'.
19046         * modules/atan-tests: New file.
19047         * tests/test-atan.c: New file.
19048
19049         Tests for module 'asin'.
19050         * modules/asin-tests: New file.
19051         * tests/test-asin.c: New file.
19052
19053         Tests for module 'acos'.
19054         * modules/acos-tests: New file.
19055         * tests/test-acos.c: New file.
19056
19057 2010-01-24  Bruno Haible  <bruno@clisp.org>
19058
19059         Fix tests for common <math.h> functions.
19060         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19061         code snippet that references the function pointer, rather than merely
19062         calling the function. Substitute the FUNC_LIBM variable.
19063         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19064         * modules/acos (configure.ac): Likewise.
19065         * modules/asin (configure.ac): Likewise.
19066         * modules/atan (configure.ac): Likewise.
19067         * modules/atan2 (configure.ac): Likewise.
19068         * modules/cbrt (configure.ac): Likewise.
19069         * modules/copysign (configure.ac): Likewise.
19070         * modules/cos (configure.ac): Likewise.
19071         * modules/cosh (configure.ac): Likewise.
19072         * modules/erf (configure.ac): Likewise.
19073         * modules/erfc (configure.ac): Likewise.
19074         * modules/exp (configure.ac): Likewise.
19075         * modules/fabs (configure.ac): Likewise.
19076         * modules/fmod (configure.ac): Likewise.
19077         * modules/hypot (configure.ac): Likewise.
19078         * modules/j0 (configure.ac): Likewise.
19079         * modules/j1 (configure.ac): Likewise.
19080         * modules/jn (configure.ac): Likewise.
19081         * modules/ldexp (configure.ac): Likewise.
19082         * modules/lgamma (configure.ac): Likewise.
19083         * modules/log (configure.ac): Likewise.
19084         * modules/log10 (configure.ac): Likewise.
19085         * modules/log1p (configure.ac): Likewise.
19086         * modules/logb (configure.ac): Likewise.
19087         * modules/modf (configure.ac): Likewise.
19088         * modules/nextafter (configure.ac): Likewise.
19089         * modules/pow (configure.ac): Likewise.
19090         * modules/remainder (configure.ac): Likewise.
19091         * modules/rint (configure.ac): Likewise.
19092         * modules/sin (configure.ac): Likewise.
19093         * modules/sinh (configure.ac): Likewise.
19094         * modules/tan (configure.ac): Likewise.
19095         * modules/tanh (configure.ac): Likewise.
19096         * modules/y0 (configure.ac): Likewise.
19097         * modules/y1 (configure.ac): Likewise.
19098         * modules/yn (configure.ac): Likewise.
19099
19100 2010-01-24  Bruno Haible  <bruno@clisp.org>
19101
19102         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19103         * tests/test-acosl.c (x): New variable.
19104         (main): Store argument in x and fetch it from x.
19105         * tests/test-asinl.c (x): New variable.
19106         (main): Store argument in x and fetch it from x.
19107         * tests/test-atanl.c (x): New variable.
19108         (main): Store argument in x and fetch it from x.
19109         * tests/test-cosl.c (x): New variable.
19110         (main): Store argument in x and fetch it from x.
19111         * tests/test-expl.c (x): New variable.
19112         (main): Store argument in x and fetch it from x.
19113         * tests/test-logl.c (x): New variable.
19114         (main): Store argument in x and fetch it from x.
19115         * tests/test-sinl.c (x): New variable.
19116         (main): Store argument in x and fetch it from x.
19117         * tests/test-sqrtl.c (x): New variable.
19118         (main): Store argument in x and fetch it from x.
19119         * tests/test-tanl.c (x): New variable.
19120         (main): Store argument in x and fetch it from x.
19121
19122 2010-01-24  Bruno Haible  <bruno@clisp.org>
19123
19124         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19125         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19126         assignments to the initial TESTS_ENVIRONMENT.
19127         * doc/gnulib.texi (Unit test modules): Document it.
19128         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19129         TESTS_ENVIRONMENT.
19130         * modules/btowc-tests (Makefile.am): Likewise.
19131         * modules/c-stack-tests (Makefile.am): Likewise.
19132         * modules/c-strcase-tests (Makefile.am): Likewise.
19133         * modules/copy-file-tests (Makefile.am): Likewise.
19134         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19135         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19136         * modules/mbrtowc-tests (Makefile.am): Likewise.
19137         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19138         * modules/mbscasestr-tests (Makefile.am): Likewise.
19139         * modules/mbschr-tests (Makefile.am): Likewise.
19140         * modules/mbscspn-tests (Makefile.am): Likewise.
19141         * modules/mbsinit-tests (Makefile.am): Likewise.
19142         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19143         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19144         * modules/mbspbrk-tests (Makefile.am): Likewise.
19145         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19146         * modules/mbsrchr-tests (Makefile.am): Likewise.
19147         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19148         * modules/mbsspn-tests (Makefile.am): Likewise.
19149         * modules/mbsstr-tests (Makefile.am): Likewise.
19150         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19151         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19152         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19153         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19154         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19155         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19156         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19157         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19158         * modules/wcrtomb-tests (Makefile.am): Likewise.
19159         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19160         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19161         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19162         assignments from TESTS_ENVIRONMENT.
19163         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19164         augmentation.
19165         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19166         * modules/atexit-tests (Makefile.am): Likewise.
19167         * modules/binary-io-tests (Makefile.am): Likewise.
19168         * modules/closein-tests (Makefile.am): Likewise.
19169         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19170         * modules/exclude-tests (Makefile.am): Likewise.
19171         * modules/fflush-tests (Makefile.am): Likewise.
19172         * modules/fpending-tests (Makefile.am): Likewise.
19173         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19174         * modules/freadahead-tests (Makefile.am): Likewise.
19175         * modules/freadptr-tests (Makefile.am): Likewise.
19176         * modules/freadseek-tests (Makefile.am): Likewise.
19177         * modules/fseek-tests (Makefile.am): Likewise.
19178         * modules/fseeko-tests (Makefile.am): Likewise.
19179         * modules/ftell-tests (Makefile.am): Likewise.
19180         * modules/ftello-tests (Makefile.am): Likewise.
19181         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19182         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19183         * modules/lseek-tests (Makefile.am): Likewise.
19184         * modules/parse-duration-tests (Makefile.am): Likewise.
19185         * modules/perror-tests (Makefile.am): Likewise.
19186         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19187         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19188         * modules/pipe-tests (Makefile.am): Likewise.
19189         * modules/pread-tests (Makefile.am): Likewise.
19190         * modules/printf-posix-tests (Makefile.am): Likewise.
19191         * modules/select-tests (Makefile.am): Likewise.
19192         * modules/sigpipe-tests (Makefile.am): Likewise.
19193         * modules/tsearch-tests (Makefile.am): Likewise.
19194         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19195         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19196         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19197         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19198         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19199         * modules/version-etc-tests (Makefile.am): Likewise.
19200         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19201         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19202         * modules/xalloc-die-tests (Makefile.am): Likewise.
19203         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19204         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19205         * modules/xstrtol-tests (Makefile.am): Likewise.
19206         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19207         * modules/yesno-tests (Makefile.am): Likewise.
19208         Suggested by Jim Meyering.
19209
19210 2010-01-24  Bruno Haible  <bruno@clisp.org>
19211
19212         More documentation.
19213         * doc/gnulib.texi (Writing modules): New chapter.
19214         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19215         the new chapter.
19216
19217 2010-01-24  Jim Meyering  <meyering@redhat.com>
19218
19219         maint.mk: do not prepend "./" after filtering
19220         * top/maint.mk (_prepend_srcdir_prefix): New variable
19221         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19222         "./" when $(srcdir) is ".".
19223
19224         define STREQ(a,b) consistently, removing useless parentheses
19225         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19226         since the only risk is that "a" or "b" contains an unparenthesized
19227         comma, but if either did that, STREQ would have 3 or more arguments.
19228         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19229         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19230         * lib/hash-triple.c (STREQ): Likewise.
19231         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19232         * lib/getugroups.c (STREQ): Likewise.
19233
19234 2010-01-23  Jim Meyering  <meyering@redhat.com>
19235
19236         maint.mk: fix syntax-check in a non-srcdir build directory
19237         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19238         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19239
19240 2010-01-22  Jim Meyering  <meyering@redhat.com>
19241
19242         userspec: add unit tests
19243         * tests/test-userspec.c: New file.
19244         * modules/userspec-tests: Likewise.
19245
19246 2010-01-21  Jim Meyering  <meyering@redhat.com>
19247
19248         maint.mk: handle source file names containing "." robustly
19249         * top/maint.mk (_dot_escaped_srcdir): Define.
19250         (VC_LIST): Use it in LHS of sed substitution.
19251
19252 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19253
19254         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19255         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19256         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19257         from a non-srcdir build.
19258
19259 2010-01-20  Eric Blake  <ebb9@byu.net>
19260
19261         warn-on-use: use instead of link-warning
19262         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19263         * modules/unistd (Depends-on, Makefile.am): Likewise.
19264         * modules/arpa_inet (Depends-on): Replace link-warning with
19265         warn-on-use.
19266         (Makefile.am): Update rules accordingly.
19267         * modules/ctype (Depends-on, Makefile.am): Likewise.
19268         * modules/dirent (Depends-on, Makefile.am): Likewise.
19269         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19270         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19271         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19272         * modules/locale (Depends-on, Makefile.am): Likewise.
19273         * modules/math (Depends-on, Makefile.am): Likewise.
19274         * modules/search (Depends-on, Makefile.am): Likewise.
19275         * modules/signal (Depends-on, Makefile.am): Likewise.
19276         * modules/spawn (Depends-on, Makefile.am): Likewise.
19277         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19278         * modules/string (Depends-on, Makefile.am): Likewise.
19279         * modules/strings (Depends-on, Makefile.am): Likewise.
19280         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19281         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19282         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19283         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19284         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19285         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19286         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19287         * modules/wchar (Depends-on, Makefile.am): Likewise.
19288         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19289         should be poisoned.
19290         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19291         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19292         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19293         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19294         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19295         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19296         * m4/math_h.m4 (gl_MATH_H): Likewise.
19297         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19298         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19299         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19300         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19301         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19302         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19303         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19304         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19305         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19307         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19309         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19310         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19311         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19312         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19313         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19314         GL_LINK_WARNING.
19315         * lib/ctype.in.h: Likewise.
19316         * lib/dirent.in.h: Likewise.
19317         * lib/fcntl.in.h: Likewise.
19318         * lib/inttypes.in.h: Likewise.
19319         * lib/langinfo.in.h: Likewise.
19320         * lib/locale.in.h: Likewise.
19321         * lib/math.in.h: Likewise.
19322         * lib/search.in.h: Likewise.
19323         * lib/signal.in.h: Likewise.
19324         * lib/spawn.in.h: Likewise.
19325         * lib/stdio.in.h: Likewise.
19326         * lib/stdlib.in.h: Likewise.
19327         * lib/string.in.h: Likewise.
19328         * lib/strings.in.h: Likewise.
19329         * lib/sys_file.in.h: Likewise.
19330         * lib/sys_ioctl.in.h: Likewise.
19331         * lib/sys_select.in.h: Likewise.
19332         * lib/sys_socket.in.h: Likewise.
19333         * lib/sys_stat.in.h: Likewise.
19334         * lib/sys_times.in.h: Likewise.
19335         * lib/sys_utsname.in.h: Likewise.
19336         * lib/unistd.in.h: Likewise.
19337         * lib/wchar.in.h: Likewise.
19338
19339 2010-01-20  Bruno Haible  <bruno@clisp.org>
19340
19341         Avoid duplicate -lm.
19342         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19343         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19344         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19345         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19346         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19347         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19348         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19349         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19350         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19351         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19352         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19353         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19354         Reported by Paolo Bonzini.
19355
19356 2010-01-19  Bruno Haible  <bruno@clisp.org>
19357
19358         langinfo, nl_langinfo: Relicense under LGPLv2+.
19359         * modules/langinfo (License): Change to LGPLv2+.
19360         * modules/nl_langinfo (License): Likewise.
19361         Patch by David Lutterkort <lutter@redhat.com>.
19362
19363 2010-01-19  Bruno Haible  <bruno@clisp.org>
19364
19365         Avoid compilation error with cc on OSF/1 5.1.
19366         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19367         statement, not before.
19368         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19369
19370 2010-01-18  Bruno Haible  <bruno@clisp.org>
19371
19372         Avoid a link error due to the __printf__ symbol.
19373         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19374         and 2.6.x.
19375         (__format__, __printf__): Remove definitions.
19376         * lib/argp-fmtstream.h: Likewise.
19377         * lib/argp.h: Likewise.
19378         * lib/error.h: Likewise.
19379         * lib/vasnprintf.h: Likewise.
19380         * lib/xprintf.h: Likewise.
19381         * lib/xvasprintf.h: Likewise.
19382         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19383
19384 2010-01-18  Bruno Haible  <bruno@clisp.org>
19385
19386         Tests for module 'tanl'.
19387         * modules/tanl-tests: New file.
19388         * tests/test-tanl.c: New file.
19389
19390         Tests for module 'sqrtl'.
19391         * modules/sqrtl-tests: New file.
19392         * tests/test-sqrtl.c: New file.
19393
19394         Tests for module 'sinl'.
19395         * modules/sinl-tests: New file.
19396         * tests/test-sinl.c: New file.
19397
19398         Tests for module 'logl'.
19399         * modules/logl-tests: New file.
19400         * tests/test-logl.c: New file.
19401
19402         Tests for module 'expl'.
19403         * modules/expl-tests: New file.
19404         * tests/test-expl.c: New file.
19405
19406         Tests for module 'cosl'.
19407         * modules/cosl-tests: New file.
19408         * tests/test-cosl.c: New file.
19409
19410         Tests for module 'atanl'.
19411         * modules/atanl-tests: New file.
19412         * tests/test-atanl.c: New file.
19413
19414         Tests for module 'asinl'.
19415         * modules/asinl-tests: New file.
19416         * tests/test-asinl.c: New file.
19417
19418         Tests for module 'acosl'.
19419         * modules/acosl-tests: New file.
19420         * tests/test-acosl.c: New file.
19421
19422         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19423         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19424         tanl): Use the standard gnulib idiom.
19425         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19426         * lib/sinl.c: Likewise.
19427         * lib/tanl.c: Don't include trigl.c.
19428         (kernel_tanl): Make static.
19429         * lib/sincosl.c: Include trigl.h first.
19430         * lib/trigl.c: Likewise.
19431         * m4/acosl.m4: New file.
19432         * m4/asinl.m4: New file.
19433         * m4/atanl.m4: New file.
19434         * m4/cosl.m4: New file.
19435         * m4/expl.m4: New file.
19436         * m4/logl.m4: New file.
19437         * m4/sinl.m4: New file.
19438         * m4/sqrtl.m4: New file.
19439         * m4/tanl.m4: New file.
19440         * m4/mathl.m4: Remove file.
19441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19442         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19443         Don't initialize GNULIB_MATHL.
19444         * modules/acosl: New file.
19445         * modules/asinl: New file.
19446         * modules/atanl: New file.
19447         * modules/cosl: New file.
19448         * modules/expl: New file.
19449         * modules/logl: New file.
19450         * modules/sinl: New file.
19451         * modules/sqrtl: New file.
19452         * modules/tanl: New file.
19453         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19454         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19455         substitute GNULIB_MATHL.
19456         * modules/mathl: Rewritten.
19457         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19458         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19459         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19460         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19461         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19462         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19463         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19464         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19465         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19466
19467 2010-01-18  Bruno Haible  <bruno@clisp.org>
19468
19469         sqrt: Make gl_FUNC_SQRT requirable.
19470         * m4/sqrt.m4: New file.
19471         * modules/sqrt (Files): Add it.
19472         (configure.ac): Invoke gl_FUNC_SQRT.
19473
19474 2010-01-18  Bruno Haible  <bruno@clisp.org>
19475
19476         New modules for common <math.h> functions.
19477         * m4/mathfunc.m4: New file.
19478         * modules/acos: New file.
19479         * modules/asin: New file.
19480         * modules/atan: New file.
19481         * modules/atan2: New file.
19482         * modules/cbrt: New file.
19483         * modules/copysign: New file.
19484         * modules/cos: New file.
19485         * modules/cosh: New file.
19486         * modules/erf: New file.
19487         * modules/erfc: New file.
19488         * modules/exp: New file.
19489         * modules/fabs: New file.
19490         * modules/fmod: New file.
19491         * modules/hypot: New file.
19492         * modules/j0: New file.
19493         * modules/j1: New file.
19494         * modules/jn: New file.
19495         * modules/ldexp: New file.
19496         * modules/lgamma: New file.
19497         * modules/log: New file.
19498         * modules/log10: New file.
19499         * modules/log1p: New file.
19500         * modules/logb: New file.
19501         * modules/modf: New file.
19502         * modules/nextafter: New file.
19503         * modules/pow: New file.
19504         * modules/remainder: New file.
19505         * modules/rint: New file.
19506         * modules/sin: New file.
19507         * modules/sinh: New file.
19508         * modules/sqrt: New file.
19509         * modules/tan: New file.
19510         * modules/tanh: New file.
19511         * modules/y0: New file.
19512         * modules/y1: New file.
19513         * modules/yn: New file.
19514         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19515         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19516         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19517         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19518         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19519         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19520         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19521         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19522         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19523         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19524         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19525         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19526         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19527         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19528         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19529         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19530         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19531         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19532         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19533         * doc/posix-functions/log.texi: Mention the 'log' module.
19534         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19535         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19536         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19537         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19538         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19539         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19540         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19541         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19542         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19543         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19544         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19545         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19546         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19547         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19548         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19549         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19550
19551 2010-01-18  Jim Meyering  <meyering@redhat.com>
19552
19553         ignore-value: relax license to LGPLv2+
19554         * modules/ignore-value (License): Relax to LGPLv2+.
19555
19556         getdate: don't leak when TZ contains two or more '"'s
19557         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19558         double quote in TZ after the first one.
19559
19560         readtokens: do not leak internal token_lengths buffer
19561         * lib/readtokens.c (readtokens): Free the local, lengths,
19562         when the supplied "token_lengths" parameter is NULL.
19563
19564 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19565
19566         Fix a couple of missing LIBTHREAD link failures on AIX.
19567         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19568         $(LIBTHREAD).
19569         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19570
19571         Link test-poll against INET_PTON_LIB.
19572         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19573         for inet_pton on Solaris 10.
19574
19575 2010-01-17  Bruno Haible  <bruno@clisp.org>
19576
19577         unistdio/*-sprintf: Fix typo in module description.
19578         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19579         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19580         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19581         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19582         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19583         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19584         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19586
19587 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19588
19589         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19590         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19591         variables in shell case patterns, for AIX and HP-UX ksh.
19592
19593         Split large sed scripts, for HP-UX sed.
19594         * modules/stdio: Split sed scripts around 50 sed commands,
19595         to avoid HP-UX limit of 99 commands, in the near future.
19596         * modules/string: Likewise.
19597         * modules/unistd: Likewise.
19598
19599         gnulib-tool: avoid writing in the current directory.
19600         * gnulib-tool (func_emit_lib_Makefile_am)
19601         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19602         not in the current directory, so concurrent gnulib-tool
19603         instances do not interfere.
19604
19605 2010-01-16  Jim Meyering  <meyering@redhat.com>
19606
19607         doc: update users.txt
19608         * users.txt: Add grep.
19609         (diffutils, gzip): Update URLs.
19610
19611 2010-01-12  Bruno Haible  <bruno@clisp.org>
19612
19613         posix_spawn: Avoid test failure on Cygwin.
19614         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19615         characters.
19616         Reported by Simon Josefsson.
19617
19618 2010-01-12  Bruno Haible  <bruno@clisp.org>
19619
19620         * tests/test-cond.c (main): When skipping the test, show the reason.
19621
19622 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19623
19624         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19625
19626 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19627
19628         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19629         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19630
19631 2010-01-12  Eric Blake  <ebb9@byu.net>
19632
19633         build: guarantee AS_VAR_IF
19634         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19635         (gl_AS_VAR_IF): Move...
19636         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19637         Reported by Simon Josefsson.
19638
19639 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19640
19641         * lib/stdio.in.h: Fix typo.
19642
19643 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19644
19645         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19646         libgpg-error.
19647
19648 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19649
19650         * tests/test-xalloc-die.sh: Use $EXEEXT.
19651
19652 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19653             Bruno Haible  <bruno@clisp.org>
19654
19655         getlogin, getlogin_r: Avoid test failure.
19656         * tests/test-getlogin.c: Include <stdio.h>.
19657         (main): Skip the test when the function fails because stdin is not a
19658         tty.
19659         * tests/test-getlogin_r.c: Include <stdio.h>.
19660         (main): Skip the test when the function fails because stdin is not a
19661         tty.
19662
19663 2010-01-11  Eric Blake  <ebb9@byu.net>
19664
19665         tests: avoid more large file warnings
19666         * tests/test-fflush.c: Avoid warning about ftell use.
19667         * tests/test-fseek.c: Avoid warning about fseek use.
19668
19669 2010-01-10  Bruno Haible  <bruno@clisp.org>
19670
19671         nproc: Work better on Linux when /proc and /sys are not mounted.
19672         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19673         as lower bound when, on glibc/Linux systems,
19674         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19675         Suggested by Pádraig Brady <P@draigbrady.com>.
19676         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19677
19678         nproc: Refactor.
19679         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19680         extracted from num_processors.
19681         (num_processors): Call it.
19682
19683 2010-01-11  Jim Meyering  <meyering@redhat.com>
19684
19685         utimecmp: avoid new warning from upcoming gcc-4.5.0
19686         * lib/utimecmp.c (BILLION): Define using #define rather than an
19687         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19688
19689 2010-01-11  Eric Blake  <ebb9@byu.net>
19690
19691         math: add portability warnings for classification macros
19692         * modules/math (Depends-on): Add warn-on-use.
19693         (Makefile.am): Provide new substitutions.
19694         * m4/math_h.m4 (gl_MATH_H): Require inline.
19695         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19696         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19697         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19698         implement warnings.
19699
19700         unistd: warn on use of environ without module
19701         * modules/unistd (Depends-on): Add warn-on-use.
19702         (Makefile.am): Provide new substitutions.
19703         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19704         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19705
19706         stdio: warn on suspicious uses
19707         * modules/stdio (Depends-on): Add warn-on-use.
19708         (Makefile.am): Provide new substitutions.
19709         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19710         fseeko.
19711         * lib/stdio.in.h (gets): Always warn on use.
19712         (fseek, ftell): Adjust when warnings are issued, and honor
19713         _GL_NO_LARGE_FILES as a way to silence the warning.
19714         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19715         any warning about large file offsets.
19716         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19717         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19718         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19719         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19720         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19721         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19722         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19723         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19724
19725         warn-on-use: new module
19726         * modules/warn-on-use: New file.
19727         * build-aux/warn-on-use.h: Likewise.
19728         * m4/warn-on-use.m4: Likewise.
19729         * MODULES.html.sh (Support for building): Mention it.
19730
19731 2010-01-10  Bruno Haible  <bruno@clisp.org>
19732
19733         Tests for module 'unistr/u32-strdup'.
19734         * modules/unistr/u32-strdup-tests: New file.
19735         * tests/unistr/test-u32-strdup.c: New file.
19736
19737         Tests for module 'unistr/u16-strdup'.
19738         * modules/unistr/u16-strdup-tests: New file.
19739         * tests/unistr/test-u16-strdup.c: New file.
19740
19741         Tests for module 'unistr/u8-strdup'.
19742         * modules/unistr/u8-strdup-tests: New file.
19743         * tests/unistr/test-u8-strdup.c: New file.
19744         * tests/unistr/test-strdup.h: New file.
19745
19746         Tests for module 'unistr/u32-strncmp'.
19747         * modules/unistr/u32-strncmp-tests: New file.
19748         * tests/unistr/test-u32-strncmp.c: New file.
19749
19750         Tests for module 'unistr/u16-strncmp'.
19751         * modules/unistr/u16-strncmp-tests: New file.
19752         * tests/unistr/test-u16-strncmp.c: New file.
19753
19754         Tests for module 'unistr/u8-strncmp'.
19755         * modules/unistr/u8-strncmp-tests: New file.
19756         * tests/unistr/test-u8-strncmp.c: New file.
19757         * tests/unistr/test-strncmp.h: New file.
19758
19759         Tests for module 'unistr/u32-strcoll'.
19760         * modules/unistr/u32-strcoll-tests: New file.
19761         * tests/unistr/test-u32-strcoll.c: New file.
19762
19763         Tests for module 'unistr/u16-strcoll'.
19764         * modules/unistr/u16-strcoll-tests: New file.
19765         * tests/unistr/test-u16-strcoll.c: New file.
19766
19767         Tests for module 'unistr/u8-strcoll'.
19768         * modules/unistr/u8-strcoll-tests: New file.
19769         * tests/unistr/test-u8-strcoll.c: New file.
19770
19771         Tests for module 'unistr/u32-strcmp'.
19772         * modules/unistr/u32-strcmp-tests: New file.
19773         * tests/unistr/test-u32-strcmp.c: New file.
19774         * tests/unistr/test-u32-strcmp.h: New file.
19775
19776         Tests for module 'unistr/u16-strcmp'.
19777         * modules/unistr/u16-strcmp-tests: New file.
19778         * tests/unistr/test-u16-strcmp.c: New file.
19779         * tests/unistr/test-u16-strcmp.h: New file.
19780
19781         Tests for module 'unistr/u8-strcmp'.
19782         * modules/unistr/u8-strcmp-tests: New file.
19783         * tests/unistr/test-u8-strcmp.c: New file.
19784         * tests/unistr/test-u8-strcmp.h: New file.
19785         * tests/unistr/test-strcmp.h: New file.
19786
19787         Tests for module 'unistr/u32-strncat'.
19788         * modules/unistr/u32-strncat-tests: New file.
19789         * tests/unistr/test-u32-strncat.c: New file.
19790
19791         Tests for module 'unistr/u16-strncat'.
19792         * modules/unistr/u16-strncat-tests: New file.
19793         * tests/unistr/test-u16-strncat.c: New file.
19794
19795         Tests for module 'unistr/u8-strncat'.
19796         * modules/unistr/u8-strncat-tests: New file.
19797         * tests/unistr/test-u8-strncat.c: New file.
19798         * tests/unistr/test-strncat.h: New file.
19799
19800         Tests for module 'unistr/u32-strcat'.
19801         * modules/unistr/u32-strcat-tests: New file.
19802         * tests/unistr/test-u32-strcat.c: New file.
19803
19804         Tests for module 'unistr/u16-strcat'.
19805         * modules/unistr/u16-strcat-tests: New file.
19806         * tests/unistr/test-u16-strcat.c: New file.
19807
19808         Tests for module 'unistr/u8-strcat'.
19809         * modules/unistr/u8-strcat-tests: New file.
19810         * tests/unistr/test-u8-strcat.c: New file.
19811         * tests/unistr/test-strcat.h: New file.
19812
19813         Tests for module 'unistr/u32-stpncpy'.
19814         * modules/unistr/u32-stpncpy-tests: New file.
19815         * tests/unistr/test-u32-stpncpy.c: New file.
19816
19817         Tests for module 'unistr/u16-stpncpy'.
19818         * modules/unistr/u16-stpncpy-tests: New file.
19819         * tests/unistr/test-u16-stpncpy.c: New file.
19820
19821         Tests for module 'unistr/u8-stpncpy'.
19822         * modules/unistr/u8-stpncpy-tests: New file.
19823         * tests/unistr/test-u8-stpncpy.c: New file.
19824         * tests/unistr/test-stpncpy.h: New file.
19825
19826         Tests for module 'unistr/u32-strncpy'.
19827         * modules/unistr/u32-strncpy-tests: New file.
19828         * tests/unistr/test-u32-strncpy.c: New file.
19829
19830         Tests for module 'unistr/u16-strncpy'.
19831         * modules/unistr/u16-strncpy-tests: New file.
19832         * tests/unistr/test-u16-strncpy.c: New file.
19833
19834         Tests for module 'unistr/u8-strncpy'.
19835         * modules/unistr/u8-strncpy-tests: New file.
19836         * tests/unistr/test-u8-strncpy.c: New file.
19837         * tests/unistr/test-strncpy.h: New file.
19838
19839         Tests for module 'unistr/u32-stpcpy'.
19840         * modules/unistr/u32-stpcpy-tests: New file.
19841         * tests/unistr/test-u32-stpcpy.c: New file.
19842
19843         Tests for module 'unistr/u16-stpcpy'.
19844         * modules/unistr/u16-stpcpy-tests: New file.
19845         * tests/unistr/test-u16-stpcpy.c: New file.
19846
19847         Tests for module 'unistr/u8-stpcpy'.
19848         * modules/unistr/u8-stpcpy-tests: New file.
19849         * tests/unistr/test-u8-stpcpy.c: New file.
19850         * tests/unistr/test-stpcpy.h: New file.
19851
19852         Tests for module 'unistr/u32-strcpy'.
19853         * modules/unistr/u32-strcpy-tests: New file.
19854         * tests/unistr/test-u32-strcpy.c: New file.
19855
19856         Tests for module 'unistr/u16-strcpy'.
19857         * modules/unistr/u16-strcpy-tests: New file.
19858         * tests/unistr/test-u16-strcpy.c: New file.
19859
19860         Tests for module 'unistr/u8-strcpy'.
19861         * modules/unistr/u8-strcpy-tests: New file.
19862         * tests/unistr/test-u8-strcpy.c: New file.
19863         * tests/unistr/test-strcpy.h: New file.
19864
19865         Tests for module 'unistr/u32-strnlen'.
19866         * modules/unistr/u32-strnlen-tests: New file.
19867         * tests/unistr/test-u32-strnlen.c: New file.
19868
19869         Tests for module 'unistr/u16-strnlen'.
19870         * modules/unistr/u16-strnlen-tests: New file.
19871         * tests/unistr/test-u16-strnlen.c: New file.
19872
19873         Tests for module 'unistr/u8-strnlen'.
19874         * modules/unistr/u8-strnlen-tests: New file.
19875         * tests/unistr/test-u8-strnlen.c: New file.
19876         * tests/unistr/test-strnlen.h: New file.
19877
19878         Tests for module 'unistr/u32-strlen'.
19879         * modules/unistr/u32-strlen-tests: New file.
19880         * tests/unistr/test-u32-strlen.c: New file.
19881
19882         Tests for module 'unistr/u16-strlen'.
19883         * modules/unistr/u16-strlen-tests: New file.
19884         * tests/unistr/test-u16-strlen.c: New file.
19885
19886         Tests for module 'unistr/u8-strlen'.
19887         * modules/unistr/u8-strlen-tests: New file.
19888         * tests/unistr/test-u8-strlen.c: New file.
19889
19890         Tests for module 'unistr/u32-prev'.
19891         * modules/unistr/u32-prev-tests: New file.
19892         * tests/unistr/test-u32-prev.c: New file.
19893
19894         Tests for module 'unistr/u16-prev'.
19895         * modules/unistr/u16-prev-tests: New file.
19896         * tests/unistr/test-u16-prev.c: New file.
19897
19898         Tests for module 'unistr/u8-prev'.
19899         * modules/unistr/u8-prev-tests: New file.
19900         * tests/unistr/test-u8-prev.c: New file.
19901
19902         Tests for module 'unistr/u32-next'.
19903         * modules/unistr/u32-next-tests: New file.
19904         * tests/unistr/test-u32-next.c: New file.
19905
19906         Tests for module 'unistr/u16-next'.
19907         * modules/unistr/u16-next-tests: New file.
19908         * tests/unistr/test-u16-next.c: New file.
19909
19910         Tests for module 'unistr/u8-next'.
19911         * modules/unistr/u8-next-tests: New file.
19912         * tests/unistr/test-u8-next.c: New file.
19913
19914         Tests for module 'unistr/u32-strmbtouc'.
19915         * modules/unistr/u32-strmbtouc-tests: New file.
19916         * tests/unistr/test-u32-strmbtouc.c: New file.
19917
19918         Tests for module 'unistr/u16-strmbtouc'.
19919         * modules/unistr/u16-strmbtouc-tests: New file.
19920         * tests/unistr/test-u16-strmbtouc.c: New file.
19921
19922         Tests for module 'unistr/u8-strmbtouc'.
19923         * modules/unistr/u8-strmbtouc-tests: New file.
19924         * tests/unistr/test-u8-strmbtouc.c: New file.
19925
19926         Tests for module 'unistr/u32-strmblen'.
19927         * modules/unistr/u32-strmblen-tests: New file.
19928         * tests/unistr/test-u32-strmblen.c: New file.
19929
19930         Tests for module 'unistr/u16-strmblen'.
19931         * modules/unistr/u16-strmblen-tests: New file.
19932         * tests/unistr/test-u16-strmblen.c: New file.
19933
19934         Tests for module 'unistr/u8-strmblen'.
19935         * modules/unistr/u8-strmblen-tests: New file.
19936         * tests/unistr/test-u8-strmblen.c: New file.
19937
19938         Tests for module 'unistr/u32-cpy-alloc'.
19939         * modules/unistr/u32-cpy-alloc-tests: New file.
19940         * tests/unistr/test-u32-cpy-alloc.c: New file.
19941
19942         Tests for module 'unistr/u16-cpy-alloc'.
19943         * modules/unistr/u16-cpy-alloc-tests: New file.
19944         * tests/unistr/test-u16-cpy-alloc.c: New file.
19945
19946         Tests for module 'unistr/u8-cpy-alloc'.
19947         * modules/unistr/u8-cpy-alloc-tests: New file.
19948         * tests/unistr/test-u8-cpy-alloc.c: New file.
19949         * tests/unistr/test-cpy-alloc.h: New file.
19950
19951         Tests for module 'unistr/u32-mbsnlen'.
19952         * modules/unistr/u32-mbsnlen-tests: New file.
19953         * tests/unistr/test-u32-mbsnlen.c: New file.
19954
19955         Tests for module 'unistr/u16-mbsnlen'.
19956         * modules/unistr/u16-mbsnlen-tests: New file.
19957         * tests/unistr/test-u16-mbsnlen.c: New file.
19958
19959         Tests for module 'unistr/u8-mbsnlen'.
19960         * modules/unistr/u8-mbsnlen-tests: New file.
19961         * tests/unistr/test-u8-mbsnlen.c: New file.
19962
19963         Tests for module 'unistr/u32-chr'.
19964         * modules/unistr/u32-chr-tests: New file.
19965         * tests/unistr/test-u32-chr.c: New file.
19966
19967         Tests for module 'unistr/u16-chr'.
19968         * modules/unistr/u16-chr-tests: New file.
19969         * tests/unistr/test-u16-chr.c: New file.
19970
19971         Tests for module 'unistr/u8-chr'.
19972         * modules/unistr/u8-chr-tests: New file.
19973         * tests/unistr/test-u8-chr.c: New file.
19974         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19975
19976         Tests for module 'unistr/u32-cmp2'.
19977         * modules/unistr/u32-cmp2-tests: New file.
19978         * tests/unistr/test-u32-cmp2.c: New file.
19979
19980         Tests for module 'unistr/u16-cmp2'.
19981         * modules/unistr/u16-cmp2-tests: New file.
19982         * tests/unistr/test-u16-cmp2.c: New file.
19983
19984         Tests for module 'unistr/u8-cmp2'.
19985         * modules/unistr/u8-cmp2-tests: New file.
19986         * tests/unistr/test-u8-cmp2.c: New file.
19987         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19988
19989         Tests for module 'unistr/u32-cmp'.
19990         * modules/unistr/u32-cmp-tests: New file.
19991         * tests/unistr/test-u32-cmp.c: New file.
19992
19993         Tests for module 'unistr/u16-cmp'.
19994         * modules/unistr/u16-cmp-tests: New file.
19995         * tests/unistr/test-u16-cmp.c: New file.
19996
19997         Tests for module 'unistr/u8-cmp'.
19998         * modules/unistr/u8-cmp-tests: New file.
19999         * tests/unistr/test-u8-cmp.c: New file.
20000         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20001
20002         Tests for module 'unistr/u32-set'.
20003         * modules/unistr/u32-set-tests: New file.
20004         * tests/unistr/test-u32-set.c: New file.
20005
20006         Tests for module 'unistr/u16-set'.
20007         * modules/unistr/u16-set-tests: New file.
20008         * tests/unistr/test-u16-set.c: New file.
20009
20010         Tests for module 'unistr/u8-set'.
20011         * modules/unistr/u8-set-tests: New file.
20012         * tests/unistr/test-u8-set.c: New file.
20013         * tests/unistr/test-set.h: New file.
20014
20015         Tests for module 'unistr/u32-move'.
20016         * modules/unistr/u32-move-tests: New file.
20017         * tests/unistr/test-u32-move.c: New file.
20018
20019         Tests for module 'unistr/u16-move'.
20020         * modules/unistr/u16-move-tests: New file.
20021         * tests/unistr/test-u16-move.c: New file.
20022
20023         Tests for module 'unistr/u8-move'.
20024         * modules/unistr/u8-move-tests: New file.
20025         * tests/unistr/test-u8-move.c: New file.
20026         * tests/unistr/test-move.h: New file.
20027
20028         Tests for module 'unistr/u32-cpy'.
20029         * modules/unistr/u32-cpy-tests: New file.
20030         * tests/unistr/test-u32-cpy.c: New file.
20031
20032         Tests for module 'unistr/u16-cpy'.
20033         * modules/unistr/u16-cpy-tests: New file.
20034         * tests/unistr/test-u16-cpy.c: New file.
20035
20036         Tests for module 'unistr/u8-cpy'.
20037         * modules/unistr/u8-cpy-tests: New file.
20038         * tests/unistr/test-u8-cpy.c: New file.
20039         * tests/unistr/test-cpy.h: New file.
20040
20041 2010-01-09  Bruno Haible  <bruno@clisp.org>
20042
20043         Tests for module 'unistr/u32-uctomb'.
20044         * modules/unistr/u32-uctomb-tests: New file.
20045         * tests/unistr/test-u32-uctomb.c: New file.
20046
20047         Tests for module 'unistr/u16-uctomb'.
20048         * modules/unistr/u16-uctomb-tests: New file.
20049         * tests/unistr/test-u16-uctomb.c: New file.
20050
20051         Tests for module 'unistr/u8-uctomb'.
20052         * modules/unistr/u8-uctomb-tests: New file.
20053         * tests/unistr/test-u8-uctomb.c: New file.
20054
20055         Tests for module 'unistr/u32-mbtoucr'.
20056         * modules/unistr/u32-mbtoucr-tests: New file.
20057         * tests/unistr/test-u32-mbtoucr.c: New file.
20058
20059         Tests for module 'unistr/u16-mbtoucr'.
20060         * modules/unistr/u16-mbtoucr-tests: New file.
20061         * tests/unistr/test-u16-mbtoucr.c: New file.
20062
20063         Tests for module 'unistr/u8-mbtoucr'.
20064         * modules/unistr/u8-mbtoucr-tests: New file.
20065         * tests/unistr/test-u8-mbtoucr.c: New file.
20066
20067         Tests for module 'unistr/u32-mbtouc'.
20068         * modules/unistr/u32-mbtouc-tests: New file.
20069         * tests/unistr/test-u32-mbtouc.c: New file.
20070
20071         Tests for module 'unistr/u16-mbtouc'.
20072         * modules/unistr/u16-mbtouc-tests: New file.
20073         * tests/unistr/test-u16-mbtouc.c: New file.
20074
20075         Tests for module 'unistr/u8-mbtouc'.
20076         * modules/unistr/u8-mbtouc-tests: New file.
20077         * tests/unistr/test-u8-mbtouc.c: New file.
20078
20079         Tests for module 'unistr/u32-mbtouc-unsafe'.
20080         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20081         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20082         * tests/unistr/test-u32-mbtouc.h: New file.
20083
20084         Tests for module 'unistr/u16-mbtouc-unsafe'.
20085         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20086         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20087         * tests/unistr/test-u16-mbtouc.h: New file.
20088
20089         Tests for module 'unistr/u8-mbtouc-unsafe'.
20090         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20091         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20092         * tests/unistr/test-u8-mbtouc.h: New file.
20093
20094         Tests for module 'unistr/u32-mblen'.
20095         * modules/unistr/u32-mblen-tests: New file.
20096         * tests/unistr/test-u32-mblen.c: New file.
20097
20098         Tests for module 'unistr/u16-mblen'.
20099         * modules/unistr/u16-mblen-tests: New file.
20100         * tests/unistr/test-u16-mblen.c: New file.
20101
20102         Tests for module 'unistr/u8-mblen'.
20103         * modules/unistr/u8-mblen-tests: New file.
20104         * tests/unistr/test-u8-mblen.c: New file.
20105
20106         Tests for module 'unistr/u32-to-u16'.
20107         * modules/unistr/u32-to-u16-tests: New file.
20108         * tests/unistr/test-u32-to-u16.c: New file.
20109
20110         Tests for module 'unistr/u32-to-u8'.
20111         * modules/unistr/u32-to-u8-tests: New file.
20112         * tests/unistr/test-u32-to-u8.c: New file.
20113
20114         Tests for module 'unistr/u16-to-u32'.
20115         * modules/unistr/u16-to-u32-tests: New file.
20116         * tests/unistr/test-u16-to-u32.c: New file.
20117
20118         Tests for module 'unistr/u16-to-u8'.
20119         * modules/unistr/u16-to-u8-tests: New file.
20120         * tests/unistr/test-u16-to-u8.c: New file.
20121
20122         Tests for module 'unistr/u8-to-u32'.
20123         * modules/unistr/u8-to-u32-tests: New file.
20124         * tests/unistr/test-u8-to-u32.c: New file.
20125
20126         Tests for module 'unistr/u8-to-u16'.
20127         * modules/unistr/u8-to-u16-tests: New file.
20128         * tests/unistr/test-u8-to-u16.c: New file.
20129
20130         Tests for module 'unistr/u32-check'.
20131         * modules/unistr/u32-check-tests: New file.
20132         * tests/unistr/test-u32-check.c: New file.
20133
20134         Tests for module 'unistr/u16-check'.
20135         * modules/unistr/u16-check-tests: New file.
20136         * tests/unistr/test-u16-check.c: New file.
20137
20138         Tests for module 'unistr/u8-check'.
20139         * modules/unistr/u8-check-tests: New file.
20140         * tests/unistr/test-u8-check.c: New file.
20141
20142         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20143         (category_equals): New function.
20144         (main): Add more tests.
20145         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20146
20147         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20148
20149 2010-01-10  Bruno Haible  <bruno@clisp.org>
20150
20151         unistr/u*-strcoll: Try harder to distinguish different strings.
20152         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20153         compare s1 and s2 to see if they are different.
20154
20155 2010-01-10  Bruno Haible  <bruno@clisp.org>
20156
20157         unistr/u*-stpncpy: Fix the return value.
20158         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20159         description of the return value consistent with stpncpy in glibc.
20160         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20161         written non-NUL unit.
20162
20163 2010-01-10  Bruno Haible  <bruno@clisp.org>
20164
20165         unistr/u*-next: Add missing dependencies.
20166         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20167         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20168         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20169
20170 2010-01-10  Bruno Haible  <bruno@clisp.org>
20171
20172         unistr/u8-mbsnlen: Fix return value for incomplete character.
20173         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20174         u8_mblen.
20175         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20176         Remove unistr/u8-mblen.
20177         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20178         u16_mblen.
20179         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20180         Remove unistr/u16-mblen.
20181
20182 2010-01-10  Bruno Haible  <bruno@clisp.org>
20183
20184         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20185         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20186         Reported by Brian Gough <bjg@gnu.org> and
20187         Chris Clayton <chris2553@googlemail.com> via
20188         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20189
20190 2010-01-09  Bruno Haible  <bruno@clisp.org>
20191
20192         unistr/u16-to-u32: Reject invalid input.
20193         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20194         u16_mbtouc.
20195         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20196         Remove unistr/u16-mbtouc.
20197
20198         unistr/u16-to-u8: Reject invalid input.
20199         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20200         u16_mbtouc.
20201         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20202         Remove unistr/u16-mbtouc.
20203
20204         unistr/u8-to-u32: Reject invalid input.
20205         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20206         u8_mbtouc.
20207         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20208         Remove unistr/u8-mbtouc.
20209
20210         unistr/u8-to-u16: Reject invalid input.
20211         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20212         u8_mbtouc.
20213         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20214         Remove unistr/u8-mbtouc.
20215
20216 2010-01-09  Bruno Haible  <bruno@clisp.org>
20217
20218         Tests for module 'getlogin'.
20219         * modules/getlogin-tests: New file.
20220         * tests/test-getlogin.c: New file.
20221
20222         New module 'getlogin'.
20223         * lib/unistd.in.h (getlogin): New declaration.
20224         * lib/getlogin.c: New file.
20225         * m4/getlogin.m4: New file.
20226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20227         HAVE_GETLOGIN.
20228         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20229         HAVE_GETLOGIN.
20230         * modules/getlogin: New file.
20231         * doc/posix-functions/getlogin.texi: Mention the new module.
20232         Reported by John W. Eaton <jwe@gnu.org>.
20233
20234 2010-01-09  Bruno Haible  <bruno@clisp.org>
20235
20236         getlogin_r: Support for native Windows.
20237         * lib/getlogin_r.c: Include <windows.h>
20238         (getlogin_r): Implement for native Windows.
20239         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20240         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20241         via John W. Eaton <jwe@gnu.org>.
20242
20243 2010-01-09  Bruno Haible  <bruno@clisp.org>
20244
20245         getlogin_r: Small fixes.
20246         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20247         succeeds.
20248         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20249         before testing whether getlogin_r is declared. No need to set
20250         HAVE_DECL_GETLOGIN_R to 1.
20251         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20252
20253 2010-01-09  Bruno Haible  <bruno@clisp.org>
20254
20255         * lib/unistd.in.h (getlogin_r): Add comment.
20256
20257 2010-01-09  Bruno Haible  <bruno@clisp.org>
20258
20259         Tests for module 'getlogin_r'.
20260         * modules/getlogin_r-tests: New file.
20261         * tests/test-getlogin_r.c: New file.
20262
20263 2010-01-09  Jim Meyering  <meyering@redhat.com>
20264
20265         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20266         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20267         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20268
20269 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20270
20271         * lib/dup2.c (rpl_dup2): Improve comment.
20272
20273 2010-01-08  Eric Blake  <ebb9@byu.net>
20274
20275         maint.mk: allow packages to add makefile @@ exceptions
20276         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20277         (sc_makefile_check): Rename...
20278         (sc_makefile_at_at_check): ...to this, and use hook.
20279
20280         dup2: work around mingw bug
20281         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20282         Reported by Simon Josefsson.
20283
20284 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20285
20286         glob: Fix C++ compilation.
20287         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20288         C++.
20289
20290 2010-01-07  Bruno Haible  <bruno@clisp.org>
20291
20292         Fix indentation of wctype.in.h, broken since 2007-01-06.
20293         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20294
20295 2010-01-07  Bruno Haible  <bruno@clisp.org>
20296
20297         mbslen: Avoid collision with system function.
20298         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20299         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20300         * m4/mbslen.m4: New file.
20301         * modules/mbslen (Files): Add it.
20302         (configure.ac): Invoke gl_MBSLEN.
20303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20304         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20305         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20306         via Ian Beckwith <ianb@erislabs.net>.
20307
20308 2010-01-07  Bruno Haible  <bruno@clisp.org>
20309
20310         dirent: Document the last fix.
20311         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20312
20313 2010-01-07  Bruno Haible  <bruno@clisp.org>
20314
20315         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20316         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20317         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20318         va_list are defined.
20319         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20320         Reported by Eric Blake.
20321
20322 2010-01-07  Bruno Haible  <bruno@clisp.org>
20323
20324         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20325         * modules/xlist (Depends-on): Add 'list',
20326         * modules/xoset (Depends-on): Add 'oset'.
20327         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20328
20329 2010-01-07  Bruno Haible  <bruno@clisp.org>
20330
20331         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20332         * doc/posix-functions/strncasecmp.texi: Likewise.
20333
20334 2010-01-07  Bruno Haible  <bruno@clisp.org>
20335
20336         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20337
20338 2010-01-07  John W. Eaton  <jwe@octave.org>
20339
20340         wctype: allow C++ use
20341         * lib/wctype.in.h: Add extern "C" block for C++.
20342
20343 2010-01-06  Eric Blake  <ebb9@byu.net>
20344
20345         maint.mk: detect incorrect GFDL usage
20346         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20347
20348 2010-01-06  Jim Meyering  <meyering@redhat.com>
20349         and Eric Blake  <ebb9@byu.net>
20350
20351         maint.mk: ignore multi-line copyright in NEWS
20352         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20353
20354 2010-01-06  Eric Blake  <ebb9@byu.net>
20355
20356         select: add missing dependency
20357         * modules/select-tests (Depends-on): Move sockets dependency...
20358         * modules/select (Depends-on): ...here.
20359         Reported by Ian Beckwith.
20360
20361         doc: regenerate INSTALL
20362         * doc/INSTALL: Reflect recent autoconf update.
20363         * doc/INSTALL.ISO: Likewise.
20364         * doc/INSTALL.UTF-8: Likewise.
20365
20366         pread: fix compilation on glibc
20367         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20368         Reported by Ralf Wildenhues.
20369
20370         dirent: fix test failure
20371         * lib/dirent.in.h (includes): Guarantee ino_t.
20372         Reported by Ralf Wildenhues.
20373
20374 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20375
20376         linkat, renameat: avoid bad free
20377         * lib/at-func2.c (at_func2): Fix typo.
20378         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20379
20380 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20381
20382         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20383         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20384         to avoid failure of symlink test later.
20385
20386 2010-01-06  Eric Blake  <ebb9@byu.net>
20387
20388         stdio, unistd: guarantee ssize_t
20389         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20390         2008 are exposed when needed.
20391         * lib/stdio.in.h (includes): Likewise.
20392         Reported by Ralf Wildenhues.
20393
20394 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20395
20396         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20397         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20398         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20399
20400 2010-01-06  Jim Meyering  <meyering@redhat.com>
20401
20402         readtokens: this module *does* require xalloc.h
20403         It uses only functions that were omitted by the old syntax-check rule.
20404         * lib/readtokens.c: Include "xalloc.h" once again.
20405         * modules/readtokens (Depends-on): Add xalloc.
20406         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20407
20408 2010-01-05  Eric Blake  <ebb9@byu.net>
20409
20410         maint: support 'make announcement' from a VPATH build
20411         * top/maint.mk (announcement): Look for correct NEWS file.
20412
20413 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20414
20415         utimens (fdutimens): ignore a negative FD, per contract
20416         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20417         when we have a valid file descriptor.  Otherwise, using a brand
20418         new glibc (with just-patched futimens that now fails with EBADF)
20419         would cause this function to fail with ENOSYS.
20420         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20421         See also http://bugzilla.redhat.com/552320.
20422
20423 2010-01-05  Eric Blake  <ebb9@byu.net>
20424
20425         strcase: document what it provides
20426         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20427         gnulib module.
20428         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20429         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20430
20431 2010-01-05  Jim Meyering  <meyering@redhat.com>
20432
20433         maint: remove useless inclusions of "xalloc.h"
20434         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20435         * lib/readtokens.c: Likewise.
20436         * lib/same.c: Likewise.
20437         * modules/getloadavg (Depends-on): Remove xalloc.
20438         * modules/readtokens: Likewise.
20439         * modules/same: Likewise.
20440
20441         maint.mk: include 4 more function names in alloca.h-checking regexp
20442         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20443         regexp.  Before, we would give a false-positive (saying alloca.h
20444         is included unnecessarily) when the only uses involved omitted symbols.
20445
20446         xalloc.h: use consistent formatting
20447         * lib/xalloc.h: Move declarations to start in the first column.
20448
20449 2010-01-05  Eric Blake  <ebb9@byu.net>
20450
20451         mkdir: avoid xalloc
20452         * lib/mkdir.c (includes): Drop unused header.
20453         Reported by John W. Eaton.
20454
20455 2010-01-04  Jim Meyering  <meyering@redhat.com>
20456
20457         nl_langinfo: avoid configure-time syntax error
20458         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20459         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20460         the empty string.  Don't let that provoke a shell syntax error.
20461
20462         regcomp, regexec, fnmatch: avoid array bounds read error
20463         * lib/regcomp.c (build_equiv_class): From glibc:
20464         Use only the low 24 bits of a findidx return value as an index
20465         into the weights array.  Patch by Ulrich Drepper:
20466         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20467         * lib/regexec.c (check_node_accept_bytes): Likewise.
20468         * lib/fnmatch_loop.c (FCT): Likewise.
20469
20470         regcomp: skip collseq lookup when there are no rules
20471         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20472         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20473
20474         regcomp: recognize ill-formed { } expressions
20475         * lib/regcomp.c (parse_dup_op): From glibc:
20476         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20477
20478         regcomp: fix typo in comment
20479         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20480         s/satisfy/satisfies/.
20481
20482         regcomp: sync from glibc: remove dead store
20483         * lib/regcomp.c (duplicate_node_closure): Remove useless
20484         search_duplicated_node call and dead store.
20485
20486         regcomp: sync from glibc; always use nl_langinfo
20487         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20488         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20489         * modules/regex (Depends-on): Add nl_langinfo.
20490
20491 2010-01-04  Eric Blake  <ebb9@byu.net>
20492
20493         fdopendir: fix configure test
20494         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20495
20496 2010-01-01  Bruno Haible  <bruno@clisp.org>
20497
20498         wchar: Remove unused configure check.
20499         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20500
20501 2010-01-01  Eric Blake  <ebb9@byu.net>
20502
20503         headers: make check of system header explicit
20504         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20505         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20506         ourselves.
20507         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20509         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20510         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20511         internals.
20512         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20513         missing.
20514         Suggested by Bruno Haible.
20515
20516 2010-01-01  Jim Meyering  <meyering@redhat.com>
20517
20518         ChangeLog: tweak to eliminate unnecessary copyright line
20519         * ChangeLog: Remove a copyright line that was mistakenly updated
20520         by today's update-copyright run.  Reported by Eric Blake.
20521
20522         test-update-copyright: don't let envvar setting cause test failure
20523         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20524
20525 2010-01-01  Bruno Haible  <bruno@clisp.org>
20526
20527         localename: Avoid gcc warning.
20528         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20529         function if it is not used.
20530
20531 2010-01-01  Jim Meyering  <meyering@redhat.com>
20532
20533         update nearly all FSF copyright year lists to include 2010
20534         Use the same procedure as for 2009, outlined in
20535         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20536
20537         version-etc: set COPYRIGHT_YEAR to 2010
20538         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20539
20540 2009-12-31  Eric Blake  <ebb9@byu.net>
20541
20542         doc: correct availability of cygwin 1.5.x getopt
20543         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20544         variables.
20545         * doc/posix-functions/opterr.texi (opterr): Likewise.
20546         * doc/posix-functions/optind.texi (optind): Likewise.
20547         * doc/posix-functions/optopt.texi (optopt): Likewise.
20548         * doc/posix-functions/tzname.texi (tzname): Likewise.
20549
20550         openat: update maintainer
20551         * modules/openat (Maintainer): Add myself.
20552
20553         utimens: avoid shadowing warning
20554         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20555         buffers into one, to avoid shadowing, as well as avoiding a
20556         redundant stat.
20557         Reported by Jim Meyering.
20558
20559         test-dup2: avoid compiler warning
20560         * tests/test-dup2.c (is_inheritable): Only define if used.
20561
20562 2010-01-01  Bruno Haible  <bruno@clisp.org>
20563
20564         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20565         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20566         defined, use wctomb instead of wcrtomb.
20567
20568 2010-01-01  Bruno Haible  <bruno@clisp.org>
20569
20570         iconv: Reject native Solaris iconv.
20571         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20572         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20573
20574 2009-12-31  Bruno Haible  <bruno@clisp.org>
20575
20576         * tests/test-signal.c (main): Remove test of 'SIG'.
20577
20578 2009-12-31  Bruno Haible  <bruno@clisp.org>
20579
20580         spawn: Fix incomplete fix.
20581         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20582         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20583         warnings for GNULIB_POSIXCHECK again.
20584         Reported by Eric Blake.
20585
20586 2009-12-31  Bruno Haible  <bruno@clisp.org>
20587
20588         Avoid namespace pollution on glibc systems.
20589         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20590         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20591         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20592         glibc systems.
20593
20594 2009-12-31  Bruno Haible  <bruno@clisp.org>
20595
20596         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20597         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20598         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20599         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20600         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20601         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20602         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20603
20604 2009-12-31  Bruno Haible  <bruno@clisp.org>
20605
20606         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20607         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20608         afterwards.
20609
20610 2009-12-31  Bruno Haible  <bruno@clisp.org>
20611
20612         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20613         SYS_UTSNAME_H.
20614
20615 2009-12-31  Bruno Haible  <bruno@clisp.org>
20616
20617         spawn: Fix misapplied patch.
20618         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20619         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20620         warnings for GNULIB_POSIXCHECK.
20621
20622 2009-12-31  Bruno Haible  <bruno@clisp.org>
20623
20624         times: Update after sys_times changed.
20625         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20626         * modules/times (Files): Add it.
20627         (configure.ac): Invoke gl_FUNC_TIMES.
20628
20629 2009-12-31  Bruno Haible  <bruno@clisp.org>
20630
20631         Use AC_C_INLINE where necessary.
20632         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20633         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20634         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20635         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20636         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20637         * m4/mbiter.m4 (gl_MBITER): Likewise.
20638         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20639         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20640         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20641         * modules/u64 (configure.ac): Likewise.
20642
20643 2009-12-31  Bruno Haible  <bruno@clisp.org>
20644
20645         Use AC_C_INLINE instead of module 'inline' where possible.
20646         * modules/inline (Description): Clarify purpose.
20647         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20648         * modules/count-one-bits (Depends-on): Remove inline.
20649         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20650         * modules/openat (Depends-on): Remove inline.
20651         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20652         instead of depending on module 'inline'.
20653         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20654         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20655         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20656         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20657         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20658         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20659         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20660         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20661         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20662         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20663         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20664         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20665         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20666         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20667         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20668         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20669         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20670         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20671         Likewise.
20672         * modules/unictype/property-ascii-hex-digit (Depends-on,
20673         configure.ac): Likewise.
20674         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20675         configure.ac): Likewise.
20676         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20677         configure.ac): Likewise.
20678         * modules/unictype/property-bidi-block-separator (Depends-on,
20679         configure.ac): Likewise.
20680         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20681         configure.ac): Likewise.
20682         * modules/unictype/property-bidi-common-separator (Depends-on,
20683         configure.ac): Likewise.
20684         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20685         Likewise.
20686         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20687         configure.ac): Likewise.
20688         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20689         configure.ac): Likewise.
20690         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20691         configure.ac): Likewise.
20692         * modules/unictype/property-bidi-european-digit (Depends-on,
20693         configure.ac): Likewise.
20694         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20695         configure.ac): Likewise.
20696         * modules/unictype/property-bidi-left-to-right (Depends-on,
20697         configure.ac): Likewise.
20698         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20699         configure.ac): Likewise.
20700         * modules/unictype/property-bidi-other-neutral (Depends-on,
20701         configure.ac): Likewise.
20702         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20703         Likewise.
20704         * modules/unictype/property-bidi-segment-separator (Depends-on,
20705         configure.ac): Likewise.
20706         * modules/unictype/property-bidi-whitespace (Depends-on,
20707         configure.ac): Likewise.
20708         * modules/unictype/property-combining (Depends-on, configure.ac):
20709         Likewise.
20710         * modules/unictype/property-composite (Depends-on, configure.ac):
20711         Likewise.
20712         * modules/unictype/property-currency-symbol (Depends-on,
20713         configure.ac): Likewise.
20714         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20715         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20716         Likewise.
20717         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20718         configure.ac): Likewise.
20719         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20720         Likewise.
20721         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20722         Likewise.
20723         * modules/unictype/property-extender (Depends-on, configure.ac):
20724         Likewise.
20725         * modules/unictype/property-format-control (Depends-on, configure.ac):
20726         Likewise.
20727         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20728         Likewise.
20729         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20730         Likewise.
20731         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20732         Likewise.
20733         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20734         Likewise.
20735         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20736         Likewise.
20737         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20738         Likewise.
20739         * modules/unictype/property-id-start (Depends-on, configure.ac):
20740         Likewise.
20741         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20742         Likewise.
20743         * modules/unictype/property-ids-binary-operator (Depends-on,
20744         configure.ac): Likewise.
20745         * modules/unictype/property-ids-trinary-operator (Depends-on,
20746         configure.ac): Likewise.
20747         * modules/unictype/property-ignorable-control (Depends-on,
20748         configure.ac): Likewise.
20749         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20750         Likewise.
20751         * modules/unictype/property-join-control (Depends-on, configure.ac):
20752         Likewise.
20753         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20754         Likewise.
20755         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20756         Likewise.
20757         * modules/unictype/property-logical-order-exception (Depends-on,
20758         configure.ac): Likewise.
20759         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20760         Likewise.
20761         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20762         * modules/unictype/property-non-break (Depends-on, configure.ac):
20763         Likewise.
20764         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20765         Likewise.
20766         * modules/unictype/property-numeric (Depends-on, configure.ac):
20767         Likewise.
20768         * modules/unictype/property-other-alphabetic (Depends-on,
20769         configure.ac): Likewise.
20770         * modules/unictype/property-other-default-ignorable-code-point
20771         (Depends-on, configure.ac): Likewise.
20772         * modules/unictype/property-other-grapheme-extend (Depends-on,
20773         configure.ac): Likewise.
20774         * modules/unictype/property-other-id-continue (Depends-on,
20775         configure.ac): Likewise.
20776         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20777         Likewise.
20778         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20779         Likewise.
20780         * modules/unictype/property-other-math (Depends-on, configure.ac):
20781         Likewise.
20782         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20783         Likewise.
20784         * modules/unictype/property-paired-punctuation (Depends-on,
20785         configure.ac): Likewise.
20786         * modules/unictype/property-paragraph-separator (Depends-on,
20787         configure.ac): Likewise.
20788         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20789         Likewise.
20790         * modules/unictype/property-pattern-white-space (Depends-on,
20791         configure.ac): Likewise.
20792         * modules/unictype/property-private-use (Depends-on, configure.ac):
20793         Likewise.
20794         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20795         Likewise.
20796         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20797         Likewise.
20798         * modules/unictype/property-radical (Depends-on, configure.ac):
20799         Likewise.
20800         * modules/unictype/property-sentence-terminal (Depends-on,
20801         configure.ac): Likewise.
20802         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20803         Likewise.
20804         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20805         * modules/unictype/property-terminal-punctuation (Depends-on,
20806         configure.ac): Likewise.
20807         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20808         Likewise.
20809         * modules/unictype/property-unassigned-code-value (Depends-on,
20810         configure.ac): Likewise.
20811         * modules/unictype/property-unified-ideograph (Depends-on,
20812         configure.ac): Likewise.
20813         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20814         Likewise.
20815         * modules/unictype/property-variation-selector (Depends-on,
20816         configure.ac): Likewise.
20817         * modules/unictype/property-white-space (Depends-on, configure.ac):
20818         Likewise.
20819         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20820         Likewise.
20821         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20822         Likewise.
20823         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20824         Likewise.
20825         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20826         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20827         Likewise.
20828
20829 2009-12-31  Bruno Haible  <bruno@clisp.org>
20830
20831         Remove unnecessary AC_C_INLINE invocation.
20832         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20833         since 2009-08-21.
20834
20835 2009-12-31  Jim Meyering  <meyering@redhat.com>
20836
20837         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20838         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20839         With this change, we can all remove the gpg_key_ID = ... definition
20840         from our respective cfg.mk files.
20841
20842         maint.mk: create announcement template in ~/, not in /tmp
20843         * top/maint.mk (emit_upload_commands): Adjust.
20844         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20845         Remove temporary file, .ci-msg.
20846
20847 2009-12-31  Eric Blake  <ebb9@byu.net>
20848
20849         link-warning: always build headers with link warnings
20850         * modules/arpa_inet (Makefile.am): Always build replacement
20851         header.
20852         * modules/ctype (Makefile.am): Likewise.
20853         * modules/dirent (Makefile.am): Likewise.
20854         * modules/inttypes (Makefile.am): Likewise.
20855         * modules/langinfo (Makefile.am): Likewise.
20856         * modules/locale (Makefile.am): Likewise.
20857         * modules/spawn (Makefile.am): Likewise.
20858         * modules/sys_file (Makefile.am): Likewise.
20859         * modules/sys_ioctl (Makefile.am): Likewise.
20860         * modules/sys_select (Makefile.am): Likewise.
20861         * modules/sys_socket (Makefile.am): Likewise.
20862         * modules/sys_times (Makefile.am): Likewise.
20863         * modules/sys_utsname (Makefile.am): Likewise.
20864         * modules/sys_wait (Makefile.am): Likewise.
20865         * modules/wchar (Makefile.am): Likewise.
20866         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20867         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20868         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20869         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20870         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20871         Likewise.
20872         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20873         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20874         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20875         Likewise.
20876         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20877         Likewise.
20878         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20879         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20880         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20882         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20883         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20884         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20885         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20886         (gl_WCHAR_H_DEFAULTS): Likewise.
20887
20888 2009-12-31  Eric Blake  <ebb9@byu.net>
20889
20890         signal, spawn: use link warnings
20891         * lib/signal.in.h (sigset_t): Make unconditional.
20892         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20893         (sigpending, sigprocmask, sigaction): Add link warnings.
20894         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20895         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20896         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20897         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20898         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20899         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20900         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20901         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20902         (posix_spawn_file_actions_destroy)
20903         (posix_spawn_file_actions_addopen)
20904         (posix_spawn_file_actions_addclose)
20905         (posix_spawn_file_actions_adddup2): Likewise.
20906         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20907         * tests/test-signal.c (main): Enhance test.
20908
20909         spawn: improve wrapper support
20910         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20911         (gl_SPAWN_H_DEFAULTS): New defaults.
20912         * modules/spawn (Makefile.am): Substitute them.
20913         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20914         Only declare if missing or broken.
20915
20916         sys_times, sys_utsname: use include_next
20917         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20918         header.
20919         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20920         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20921         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20922         * modules/sys_times (Depends-on): Add include_next.
20923         (Makefile.am): Substitute additional values.
20924         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20925         * lib/sys_times.in.h (includes): Include native header, if
20926         available.
20927         * lib/sys_utsname.in.h (includes): Likewise.
20928         * tests/test-sys_times.c (main): Enhance test.
20929
20930         fdutimensat: revert prior patch
20931         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20932         utimens.h.
20933         Reported by Bruno Haible.
20934
20935 2009-12-30  Eric Blake  <ebb9@byu.net>
20936
20937         sys_wait: drop link-warning dependency
20938         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20939         link-warning efforts.
20940         * lib/sys_wait.in.h: Likewise.
20941
20942         fdutimensat: remove bogus dependency
20943         * modules/fdutimensat (Depends-on): Drop inline.
20944
20945         unistd: fix typo
20946         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20947
20948 2009-12-30  Bruno Haible  <bruno@clisp.org>
20949
20950         Fix compilation error with Solaris cc.
20951         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20952         * lib/unicase/u16-is-invariant.c: Likewise.
20953         * lib/unicase/u32-is-invariant.c: Likewise.
20954         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20955
20956 2009-12-30  Bruno Haible  <bruno@clisp.org>
20957
20958         Fix test crash.
20959         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20960         locales.
20961         Reported by Simon Josefsson <simon@josefsson.org>.
20962
20963 2009-12-30  Bruno Haible  <bruno@clisp.org>
20964
20965         Fix compilation error on most platforms.
20966         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20967         Reported by Simon Josefsson <simon@josefsson.org>
20968         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20969
20970 2009-12-30  Eric Blake  <ebb9@byu.net>
20971
20972         futimens, utimensat: work around ntfs-3g bug
20973         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20974         a ctime bug is present, and expand workaround to cover ntfs-3g.
20975         * lib/utimens.c (fdutimens, lutimens): Likewise.
20976         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20977         (validate_timespec): Adjust return value.
20978         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20979         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20980         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20981
20982 2009-12-29  Eric Blake  <ebb9@byu.net>
20983
20984         link-warning: make usage consistent
20985         * modules/ctype (Depends-on): Add link-warning.
20986         (Makefile.am): Update rules accordingly.
20987         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20988         * modules/locale (Depends-on, Makefile.am): Likewise.
20989         * modules/sys_file (Makefile.am): Likewise.
20990         * modules/getopt-posix (Makefile.am): Delete unused link warning
20991         efforts.
20992         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20993         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20994         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20995         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20996
20997         stdio: remove unused variables
20998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20999         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21000         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21001
21002         tests: test more substitute headers
21003         * modules/ctype-tests: New file.
21004         * modules/dirent-tests: Likewise.
21005         * modules/spawn-tests: Likewise.
21006         * modules/sys_file-tests: Likewise.
21007         * modules/sys_ioctl-tests: Likewise.
21008         * modules/sys_wait-tests: Likewise.
21009         * tests/test-ctype.c: Likewise.
21010         * tests/test-dirent.c: Likewise.
21011         * tests/test-spawn.c: Likewise.
21012         * tests/test-sys_file.c: Likewise.
21013         * tests/test-sys_ioctl.c: Likewise.
21014         * tests/test-sys_wait.c: Likewise.
21015         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21016         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21017         whether or not flock is in use.
21018
21019         tests: remove License section from module
21020         * modules/arpa_inet-tests: Remove unneeded section.
21021         * modules/byteswap-tests: Likewise.
21022         * modules/ceilf-tests: Likewise.
21023         * modules/ceill-tests: Likewise.
21024         * modules/crypto/des-tests: Likewise.
21025         * modules/crypto/gc-arcfour-tests: Likewise.
21026         * modules/crypto/gc-arctwo-tests: Likewise.
21027         * modules/crypto/gc-des-tests: Likewise.
21028         * modules/crypto/gc-hmac-md5-tests: Likewise.
21029         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21030         * modules/crypto/gc-md2-tests: Likewise.
21031         * modules/crypto/gc-md4-tests: Likewise.
21032         * modules/crypto/gc-md5-tests: Likewise.
21033         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21034         * modules/crypto/gc-rijndael-tests: Likewise.
21035         * modules/crypto/gc-sha1-tests: Likewise.
21036         * modules/crypto/gc-tests: Likewise.
21037         * modules/crypto/md2-tests: Likewise.
21038         * modules/crypto/md4-tests: Likewise.
21039         * modules/fcntl-h-tests: Likewise.
21040         * modules/floorf-tests: Likewise.
21041         * modules/floorl-tests: Likewise.
21042         * modules/frexp-nolibm-tests: Likewise.
21043         * modules/frexp-tests: Likewise.
21044         * modules/frexpl-nolibm-tests: Likewise.
21045         * modules/frexpl-tests: Likewise.
21046         * modules/getaddrinfo-tests: Likewise.
21047         * modules/inttypes-tests: Likewise.
21048         * modules/isfinite-tests: Likewise.
21049         * modules/isinf-tests: Likewise.
21050         * modules/ldexpl-tests: Likewise.
21051         * modules/locale-tests: Likewise.
21052         * modules/math-tests: Likewise.
21053         * modules/netdb-tests: Likewise.
21054         * modules/netinet_in-tests: Likewise.
21055         * modules/printf-frexp-tests: Likewise.
21056         * modules/printf-frexpl-tests: Likewise.
21057         * modules/priv-set-tests: Likewise.
21058         * modules/random_r-tests: Likewise.
21059         * modules/round-tests: Likewise.
21060         * modules/roundf-tests: Likewise.
21061         * modules/roundl-tests: Likewise.
21062         * modules/search-tests: Likewise.
21063         * modules/select-tests: Likewise.
21064         * modules/signal-tests: Likewise.
21065         * modules/stdbool-tests: Likewise.
21066         * modules/stddef-tests: Likewise.
21067         * modules/stdint-tests: Likewise.
21068         * modules/stdio-tests: Likewise.
21069         * modules/stdlib-tests: Likewise.
21070         * modules/string-tests: Likewise.
21071         * modules/strings-tests: Likewise.
21072         * modules/sys_select-tests: Likewise.
21073         * modules/sys_socket-tests: Likewise.
21074         * modules/sys_stat-tests: Likewise.
21075         * modules/sys_time-tests: Likewise.
21076         * modules/sys_utsname-tests: Likewise.
21077         * modules/sysexits-tests: Likewise.
21078         * modules/time-tests: Likewise.
21079         * modules/trunc-tests: Likewise.
21080         * modules/truncf-tests: Likewise.
21081         * modules/truncl-tests: Likewise.
21082         * modules/tsearch-tests: Likewise.
21083         * modules/unistd-tests: Likewise.
21084         * modules/wchar-tests: Likewise.
21085         * modules/wctype-tests: Likewise.
21086
21087         tests: fix license on several tests
21088         * tests/test-des.c: Update to GPLv3+.
21089         * tests/test-flock.c: Likewise.
21090         * tests/test-fsync.c: Likewise.
21091         * tests/test-futimens.h: Likewise.
21092         * tests/test-gc-arcfour.c: Likewise.
21093         * tests/test-gc-arctwo.c: Likewise.
21094         * tests/test-gc-des.c: Likewise.
21095         * tests/test-gc-hmac-md5.c: Likewise.
21096         * tests/test-gc-hmac-sha1.c: Likewise.
21097         * tests/test-gc-md2.c: Likewise.
21098         * tests/test-gc-md4.c: Likewise.
21099         * tests/test-gc-md5.c: Likewise.
21100         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21101         * tests/test-gc-rijndael.c: Likewise.
21102         * tests/test-gc-sha1.c: Likewise.
21103         * tests/test-gc.c: Likewise.
21104         * tests/test-getcwd.c: Likewise.
21105         * tests/test-link.c: Likewise.
21106         * tests/test-link.h: Likewise.
21107         * tests/test-lutimens.h: Likewise.
21108         * tests/test-md2.c: Likewise.
21109         * tests/test-md4.c: Likewise.
21110         * tests/test-mkdir.h: Likewise.
21111         * tests/test-rename.c: Likewise.
21112         * tests/test-rename.h: Likewise.
21113         * tests/test-safe-alloc.c: Likewise.
21114         * tests/test-utimens-common.h: Likewise.
21115         * tests/test-utimens.h: Likewise.
21116
21117         maint: sync license texts
21118         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21119         * doc/gpl-3.0.texi: Revert copyright year update.
21120         * doc/lgpl-3.0.texi: Likewise.
21121
21122 2009-12-29  Jim Meyering  <meyering@redhat.com>
21123
21124         update nearly all FSF copyright year lists to include 2009
21125         The files named by the following are exempted:
21126             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21127               test -f "$dst" && { echo "$dst"; continue; }
21128               test -d "$dst" || continue
21129               echo "$dst"/$(basename "$src")
21130             done > exempt
21131             git ls-files tests/unictype >> exempt
21132         In the remaining files, convert to all-interval notation if
21133         - there is already at least one year interval like 2000-2003
21134         - the file is maintained by me
21135         - the file is in lib/uni*/, where that style already prevails
21136         Otherwise, use update-copyright's default.
21137
21138 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21139         and Eric Blake  <ebb9@byu.net>
21140
21141         tests: don't require debug system() to pass
21142         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21143         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21144         * tests/test-unlink.h (test_unlink_func): Likewise.
21145         * tests/test-fstatat.c (main): ...into callers.
21146         * tests/test-lstat.c (main): Likewise.
21147         * tests/test-rmdir.c (main): Likewise.
21148         * tests/test-unlink.c (main): Likewise.
21149         * tests/test-unlinkat.c (main): Likewise.
21150         * tests/test-areadlink-with-size.c (main): Don't require a
21151         debug-only system call to pass, aiding cross-testing to mingw.
21152         * tests/test-areadlink.c (main): Likewise.
21153         * tests/test-areadlinkat-with-size.c (main): Likewise.
21154         * tests/test-areadlinkat.c (main): Likewise.
21155         * tests/test-canonicalize-lgpl.c (main): Likewise.
21156         * tests/test-canonicalize.c (main): Likewise.
21157         * tests/test-chown.c (main): Likewise.
21158         * tests/test-fchownat.c (main): Likewise.
21159         * tests/test-lchown.c (main): Likewise.
21160         * tests/test-fdutimensat.c (main): Likewise.
21161         * tests/test-futimens.c (main): Likewise.
21162         * tests/test-link.c (main): Likewise.
21163         * tests/test-linkat.c (main): Likewise.
21164         * tests/test-mkdir.c (main): Likewise.
21165         * tests/test-mkdirat.c (main): Likewise.
21166         * tests/test-mkfifo.c (main): Likewise.
21167         * tests/test-mkfifoat.c (main): Likewise.
21168         * tests/test-mknod.c (main): Likewise.
21169         * tests/test-readlink.c (main): Likewise.
21170         * tests/test-remove.c (main): Likewise.
21171         * tests/test-rename.c (main): Likewise.
21172         * tests/test-renameat.c (main): Likewise.
21173         * tests/test-symlink.c (main): Likewise.
21174         * tests/test-symlinkat.c (main): Likewise.
21175         * tests/test-utimens.c (main): Likewise.
21176         * tests/test-utimensat.c (main): Likewise.
21177
21178 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21179
21180         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21181         on $(UNUSED_PARAMETER_H) to avoid build failure.
21182
21183 2009-12-28  Jim Meyering  <meyering@redhat.com>
21184
21185         update-copyright: you may specify a max. line length other than 72
21186         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21187
21188         maint: use consistent FSF copyright line syntax
21189         * lib/posixtm.c: Add missing comma in FSF copyright line.
21190         * lib/posixtm.h: Likewise.
21191         * lib/getugroups.c: Add missing ", Inc.".
21192
21193         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21194         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21195         FSF copyright line.  Remove trailing blanks.
21196
21197 2009-12-28  Eric Blake  <ebb9@byu.net>
21198
21199         test-dup2: reduce dependencies
21200         * modules/cloexec (Configure.ac): Set witness.
21201         * modules/dup2-tests (Depends-on): Drop cloexec.
21202         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21203         not present.
21204         Suggested by Bruno Haible.
21205
21206 2009-12-26  Bruno Haible  <bruno@clisp.org>
21207
21208         Remove an unneeded dependency.
21209         * modules/fseterr (Depends-on): Remove dup2.
21210
21211 2009-12-26  Eric Blake  <ebb9@byu.net>
21212
21213         tests: use macros.h in more places
21214         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21215         (ASSERT_STREAM): Provide default of stderr.
21216         * tests/test-dirent-safer.c: Include macros.h, using alternate
21217         stream for assertions.
21218         * tests/test-dup-safer.c: Likewise.
21219         * tests/test-freopen-safer.c: Likewise.
21220         * tests/test-getopt.c: Likewise.
21221         * tests/test-openat-safer.c: Likewise.
21222         * tests/test-pipe.c: Likewise.
21223         * tests/test-popen-safer.c: Likewise.
21224         * modules/dirent-safer-tests (Files): Include macros.h.
21225         * modules/unistd-safer-tests (Files): Likewise.
21226         * modules/freopen-safer-tests (Files): Likewise.
21227         * modules/getopt-posix-tests (Files): Likewise.
21228         * modules/openat-safer-tests (Files): Likewise.
21229         * modules/pipe-tests (Files): Likewise.
21230
21231 2009-12-26  Bruno Haible  <bruno@clisp.org>
21232
21233         javacomp: Portability fix.
21234         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21235         that it also works on Solaris.
21236
21237 2009-12-26  Bruno Haible  <bruno@clisp.org>
21238
21239         localename: Fix storage allocation of gl_locale_name_thread's result.
21240         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21241         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21242         all platforms that have 'uselocale'.
21243         (gl_locale_name_thread_unsafe): New function, extracted from
21244         gl_locale_name_thread.
21245         (gl_locale_name_thread): Call struniq on all platforms that have
21246         'uselocale'.
21247         * tests/test-localename.c (test_locale_name_thread): Check that the
21248         resulting strings are permanently allocated.
21249         * modules/localename-tests (Depends-on): Add strdup.
21250
21251 2009-12-26  Bruno Haible  <bruno@clisp.org>
21252
21253         * tests/test-localename.c (categories): Fill in the strings.
21254
21255 2009-12-26  Jim Meyering  <meyering@redhat.com>
21256
21257         isdir: complete the removal of m4/isdir.m4
21258         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21259
21260         isdir: clean up, since at least grep still uses it
21261         * lib/isdir.c: Include "isdir.h".
21262         (S_ISDIR): Remove now-unneeded definition.
21263         * modules/isdir (Files): Add lib/isdir.h.
21264         * lib/isdir.h: New file, with declaration.
21265         * m4/isdir.m4: Remove file -- unneeded.
21266
21267 2009-12-25  Bruno Haible  <bruno@clisp.org>
21268
21269         selinux-h: Make generated .h files standalone.
21270         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21271         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21272         * lib/se-selinux.in.h: Likewise.
21273         * modules/selinux-h (Depends-on): Add unused-parameter.
21274         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21275         selinux/selinux.h and selinux/context.h.
21276         Suggested by Eric Blake.
21277
21278 2009-12-25  Bruno Haible  <bruno@clisp.org>
21279
21280         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21281         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21282         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21283         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21284         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21285
21286 2009-12-24  Bruno Haible  <bruno@clisp.org>
21287
21288         openat: Fix warning.
21289         * lib/openat-proc.c: Include <unistd.h>.
21290
21291 2009-12-24  Bruno Haible  <bruno@clisp.org>
21292
21293         New module 'unused-parameter'.
21294         * build-aux/unused-parameter.h: New file, extracted from earlier
21295         gnulib-common.m4.
21296         * modules/unused-parameter: New file.
21297         * lib/unistr.h: Include unused-parameter.h.
21298         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21299         _GL_UNUSED.
21300         * modules/unistr/base (Depends-on): Add unused-parameter.
21301
21302 2009-12-24  Bruno Haible  <bruno@clisp.org>
21303
21304         Add missing dependencies to 'extensions' module.
21305         * m4/extensions.m4: Add comment.
21306         * modules/accept4 (Depends-on): Add extensions.
21307         * modules/dup3 (Depends-on): Likewise.
21308         * modules/fcntl (Depends-on): Likewise.
21309         * modules/futimens (Depends-on): Likewise.
21310         * modules/mknod (Depends-on): Likewise.
21311         * modules/pipe2 (Depends-on): Likewise.
21312         * modules/stat-time (Depends-on): Likewise.
21313         * modules/strcasestr-simple (Depends-on): Likewise.
21314         * modules/strsignal (Depends-on): Likewise.
21315         * modules/utimensat (Depends-on): Likewise.
21316         * modules/localcharset (Depends-on): Likewise. Needed because of
21317         gl_FCNTL_O_FLAGS.
21318         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21319         AC_TYPE_MBSTATE_T.
21320         * modules/wcsnrtombs (Depends-on): Likewise.
21321         * modules/wcsrtombs (Depends-on): Likewise.
21322
21323 2009-12-24  Bruno Haible  <bruno@clisp.org>
21324
21325         binary-io: Avoid gcc warning due to SET_BINARY.
21326         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21327         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21328
21329 2009-12-24  Bruno Haible  <bruno@clisp.org>
21330
21331         Avoid future namespace pollution on glibc systems.
21332         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21333         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21334         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21335         glibc systems.
21336
21337 2009-12-24  Bruno Haible  <bruno@clisp.org>
21338
21339         Refactor common macros used in tests.
21340         * tests/macros.h: New file.
21341         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21342         and/or <stdlib.h>, if appropriate.
21343         (ASSERT, SIZEOF): Remove macros.
21344         * tests/test-areadlink-with-size.c: Likewise.
21345         * tests/test-areadlinkat.c: Likewise.
21346         * tests/test-areadlinkat-with-size.c: Likewise.
21347         * tests/test-argmatch.c: Likewise.
21348         * tests/test-argv-iter.c: Likewise.
21349         * tests/test-array-mergesort.c: Likewise.
21350         * tests/test-array_list.c: Likewise.
21351         * tests/test-array_oset.c: Likewise.
21352         * tests/test-avltree_list.c: Likewise.
21353         * tests/test-avltree_oset.c: Likewise.
21354         * tests/test-avltreehash_list.c: Likewise.
21355         * tests/test-base64.c: Likewise.
21356         * tests/test-binary-io.c: Likewise.
21357         * tests/test-bitrotate.c: Likewise.
21358         * tests/test-btowc.c: Likewise.
21359         * tests/test-byteswap.c: Likewise.
21360         * tests/test-c-ctype.c: Likewise.
21361         * tests/test-c-stack.c: Likewise.
21362         * tests/test-c-strcasecmp.c: Likewise.
21363         * tests/test-c-strcasestr.c: Likewise.
21364         * tests/test-c-strncasecmp.c: Likewise.
21365         * tests/test-c-strstr.c: Likewise.
21366         * tests/test-canonicalize-lgpl.c: Likewise.
21367         * tests/test-canonicalize.c: Likewise.
21368         * tests/test-carray_list.c: Likewise.
21369         * tests/test-ceilf1.c: Likewise.
21370         * tests/test-ceilf2.c: Likewise.
21371         * tests/test-ceill.c: Likewise.
21372         * tests/test-chown.c: Likewise.
21373         * tests/test-cloexec.c: Likewise.
21374         * tests/test-copy-acl.c: Likewise.
21375         * tests/test-copy-file.c: Likewise.
21376         * tests/test-count-one-bits.c: Likewise.
21377         * tests/test-dprintf-posix.c: Likewise.
21378         * tests/test-dup2.c: Likewise.
21379         * tests/test-dup3.c: Likewise.
21380         * tests/test-duplocale.c: Likewise.
21381         * tests/test-fbufmode.c: Likewise.
21382         * tests/test-fchdir.c: Likewise.
21383         * tests/test-fchownat.c: Likewise.
21384         * tests/test-fcntl-safer.c: Likewise.
21385         * tests/test-fcntl.c: Likewise.
21386         * tests/test-fdopendir.c: Likewise.
21387         * tests/test-fdutimensat.c: Likewise.
21388         * tests/test-fflush2.c: Likewise.
21389         * tests/test-file-has-acl.c: Likewise.
21390         * tests/test-filevercmp.c: Likewise.
21391         * tests/test-flock.c: Likewise.
21392         * tests/test-floorf1.c: Likewise.
21393         * tests/test-floorf2.c: Likewise.
21394         * tests/test-floorl.c: Likewise.
21395         * tests/test-fnmatch.c: Likewise.
21396         * tests/test-fopen.h: Likewise.
21397         * tests/test-fpending.c: Likewise.
21398         * tests/test-fprintf-posix.c: Likewise.
21399         * tests/test-fpurge.c: Likewise.
21400         * tests/test-freadable.c: Likewise.
21401         * tests/test-freadahead.c: Likewise.
21402         * tests/test-freading.c: Likewise.
21403         * tests/test-freadptr.c: Likewise.
21404         * tests/test-freadptr2.c: Likewise.
21405         * tests/test-freadseek.c: Likewise.
21406         * tests/test-freopen.c: Likewise.
21407         * tests/test-frexp.c: Likewise.
21408         * tests/test-frexpl.c: Likewise.
21409         * tests/test-fseek.c: Likewise.
21410         * tests/test-fseeko.c: Likewise.
21411         * tests/test-fstatat.c: Likewise.
21412         * tests/test-fstrcmp.c: Likewise.
21413         * tests/test-fsync.c: Likewise.
21414         * tests/test-ftell.c: Likewise.
21415         * tests/test-ftello.c: Likewise.
21416         * tests/test-func.c: Likewise.
21417         * tests/test-futimens.c: Likewise.
21418         * tests/test-fwritable.c: Likewise.
21419         * tests/test-fwriting.c: Likewise.
21420         * tests/test-getcwd.c: Likewise.
21421         * tests/test-getdate.c: Likewise.
21422         * tests/test-getdelim.c: Likewise.
21423         * tests/test-getdtablesize.c: Likewise.
21424         * tests/test-getgroups.c: Likewise.
21425         * tests/test-getline.c: Likewise.
21426         * tests/test-getndelim2.c: Likewise.
21427         * tests/test-glob.c: Likewise.
21428         * tests/test-hash.c: Likewise.
21429         * tests/test-i-ring.c: Likewise.
21430         * tests/test-iconv-utf.c: Likewise.
21431         * tests/test-iconv.c: Likewise.
21432         * tests/test-idpriv-drop.c: Likewise.
21433         * tests/test-idpriv-droptemp.c: Likewise.
21434         * tests/test-inet_ntop.c: Likewise.
21435         * tests/test-inet_pton.c: Likewise.
21436         * tests/test-isblank.c: Likewise.
21437         * tests/test-isfinite.c: Likewise.
21438         * tests/test-isinf.c: Likewise.
21439         * tests/test-isnan.c: Likewise.
21440         * tests/test-isnand.h: Likewise.
21441         * tests/test-isnanf.h: Likewise.
21442         * tests/test-isnanl.h: Likewise.
21443         * tests/test-lchown.c: Likewise.
21444         * tests/test-ldexpl.c: Likewise.
21445         * tests/test-link.c: Likewise.
21446         * tests/test-linkat.c: Likewise.
21447         * tests/test-linked_list.c: Likewise.
21448         * tests/test-linkedhash_list.c: Likewise.
21449         * tests/test-localename.c: Likewise.
21450         * tests/test-lseek.c: Likewise.
21451         * tests/test-lstat.c: Likewise.
21452         * tests/test-mbmemcasecmp.c: Likewise.
21453         * tests/test-mbmemcasecoll.c: Likewise.
21454         * tests/test-mbrtowc.c: Likewise.
21455         * tests/test-mbscasecmp.c: Likewise.
21456         * tests/test-mbscasestr1.c: Likewise.
21457         * tests/test-mbscasestr2.c: Likewise.
21458         * tests/test-mbscasestr3.c: Likewise.
21459         * tests/test-mbscasestr4.c: Likewise.
21460         * tests/test-mbschr.c: Likewise.
21461         * tests/test-mbscspn.c: Likewise.
21462         * tests/test-mbsinit.c: Likewise.
21463         * tests/test-mbsncasecmp.c: Likewise.
21464         * tests/test-mbsnrtowcs.c: Likewise.
21465         * tests/test-mbspbrk.c: Likewise.
21466         * tests/test-mbspcasecmp.c: Likewise.
21467         * tests/test-mbsrchr.c: Likewise.
21468         * tests/test-mbsrtowcs.c: Likewise.
21469         * tests/test-mbsspn.c: Likewise.
21470         * tests/test-mbsstr1.c: Likewise.
21471         * tests/test-mbsstr2.c: Likewise.
21472         * tests/test-mbsstr3.c: Likewise.
21473         * tests/test-memchr.c: Likewise.
21474         * tests/test-memchr2.c: Likewise.
21475         * tests/test-memcmp.c: Likewise.
21476         * tests/test-memmem.c: Likewise.
21477         * tests/test-memrchr.c: Likewise.
21478         * tests/test-mkdir.c: Likewise.
21479         * tests/test-mkdirat.c: Likewise.
21480         * tests/test-mkfifo.c: Likewise.
21481         * tests/test-mkfifoat.c: Likewise.
21482         * tests/test-mknod.c: Likewise.
21483         * tests/test-nanosleep.c: Likewise.
21484         * tests/test-nl_langinfo.c: Likewise.
21485         * tests/test-obstack-printf.c: Likewise.
21486         * tests/test-open.c: Likewise.
21487         * tests/test-openat.c: Likewise.
21488         * tests/test-pipe-filter-gi1.c: Likewise.
21489         * tests/test-pipe-filter-gi2-main.c: Likewise.
21490         * tests/test-pipe-filter-ii1.c: Likewise.
21491         * tests/test-pipe-filter-ii2-main.c: Likewise.
21492         * tests/test-pipe2.c: Likewise.
21493         * tests/test-popen.h: Likewise.
21494         * tests/test-posixtm.c: Likewise.
21495         * tests/test-pread.c: Likewise.
21496         * tests/test-printf-frexp.c: Likewise.
21497         * tests/test-printf-frexpl.c: Likewise.
21498         * tests/test-printf-posix.c: Likewise.
21499         * tests/test-priv-set.c: Likewise.
21500         * tests/test-quotearg.c: Likewise.
21501         * tests/test-random_r.c: Likewise.
21502         * tests/test-rawmemchr.c: Likewise.
21503         * tests/test-rbtree_list.c: Likewise.
21504         * tests/test-rbtree_oset.c: Likewise.
21505         * tests/test-rbtreehash_list.c: Likewise.
21506         * tests/test-readlink.c: Likewise.
21507         * tests/test-remove.c: Likewise.
21508         * tests/test-rename.c: Likewise.
21509         * tests/test-renameat.c: Likewise.
21510         * tests/test-rmdir.c: Likewise.
21511         * tests/test-round1.c: Likewise.
21512         * tests/test-roundf1.c: Likewise.
21513         * tests/test-roundl.c: Likewise.
21514         * tests/test-safe-alloc.c: Likewise.
21515         * tests/test-sameacls.c: Likewise.
21516         * tests/test-set-mode-acl.c: Likewise.
21517         * tests/test-setenv.c: Likewise.
21518         * tests/test-sigaction.c: Likewise.
21519         * tests/test-signbit.c: Likewise.
21520         * tests/test-sleep.c: Likewise.
21521         * tests/test-snprintf-posix.c: Likewise.
21522         * tests/test-snprintf.c: Likewise.
21523         * tests/test-sprintf-posix.c: Likewise.
21524         * tests/test-stat-time.c: Likewise.
21525         * tests/test-stat.c: Likewise.
21526         * tests/test-strcasestr.c: Likewise.
21527         * tests/test-strchrnul.c: Likewise.
21528         * tests/test-strerror.c: Likewise.
21529         * tests/test-striconv.c: Likewise.
21530         * tests/test-striconveh.c: Likewise.
21531         * tests/test-striconveha.c: Likewise.
21532         * tests/test-strsignal.c: Likewise.
21533         * tests/test-strstr.c: Likewise.
21534         * tests/test-strtod.c: Likewise.
21535         * tests/test-strverscmp.c: Likewise.
21536         * tests/test-symlink.c: Likewise.
21537         * tests/test-symlinkat.c: Likewise.
21538         * tests/test-trunc1.c: Likewise.
21539         * tests/test-trunc2.c: Likewise.
21540         * tests/test-truncf1.c: Likewise.
21541         * tests/test-truncf2.c: Likewise.
21542         * tests/test-truncl.c: Likewise.
21543         * tests/test-uname.c: Likewise.
21544         * tests/test-unlink.c: Likewise.
21545         * tests/test-unlinkat.c: Likewise.
21546         * tests/test-unsetenv.c: Likewise.
21547         * tests/test-usleep.c: Likewise.
21548         * tests/test-utimens.c: Likewise.
21549         * tests/test-utimensat.c: Likewise.
21550         * tests/test-vasnprintf-posix.c: Likewise.
21551         * tests/test-vasnprintf-posix2.c: Likewise.
21552         * tests/test-vasnprintf.c: Likewise.
21553         * tests/test-vasprintf-posix.c: Likewise.
21554         * tests/test-vasprintf.c: Likewise.
21555         * tests/test-vdprintf-posix.c: Likewise.
21556         * tests/test-vfprintf-posix.c: Likewise.
21557         * tests/test-vprintf-posix.c: Likewise.
21558         * tests/test-vsnprintf-posix.c: Likewise.
21559         * tests/test-vsnprintf.c: Likewise.
21560         * tests/test-vsprintf-posix.c: Likewise.
21561         * tests/test-wcrtomb.c: Likewise.
21562         * tests/test-wcsnrtombs.c: Likewise.
21563         * tests/test-wcsrtombs.c: Likewise.
21564         * tests/test-wctype.c: Likewise.
21565         * tests/test-wcwidth.c: Likewise.
21566         * tests/test-xfprintf-posix.c: Likewise.
21567         * tests/test-xmemdup0.c: Likewise.
21568         * tests/test-xprintf-posix.c: Likewise.
21569         * tests/test-xvasprintf.c: Likewise.
21570         * tests/unicase/test-locale-language.c: Likewise.
21571         * tests/unicase/test-mapping-part1.h: Likewise.
21572         * tests/unicase/test-predicate-part1.h: Likewise.
21573         * tests/unicase/test-u8-casecmp.c: Likewise.
21574         * tests/unicase/test-u8-casecoll.c: Likewise.
21575         * tests/unicase/test-u8-casefold.c: Likewise.
21576         * tests/unicase/test-u8-is-cased.c: Likewise.
21577         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21578         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21579         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21580         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21581         * tests/unicase/test-u8-tolower.c: Likewise.
21582         * tests/unicase/test-u8-totitle.c: Likewise.
21583         * tests/unicase/test-u8-toupper.c: Likewise.
21584         * tests/unicase/test-u16-casecmp.c: Likewise.
21585         * tests/unicase/test-u16-casecoll.c: Likewise.
21586         * tests/unicase/test-u16-casefold.c: Likewise.
21587         * tests/unicase/test-u16-is-cased.c: Likewise.
21588         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21589         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21590         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21591         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21592         * tests/unicase/test-u16-tolower.c: Likewise.
21593         * tests/unicase/test-u16-totitle.c: Likewise.
21594         * tests/unicase/test-u16-toupper.c: Likewise.
21595         * tests/unicase/test-u32-casecmp.c: Likewise.
21596         * tests/unicase/test-u32-casecoll.c: Likewise.
21597         * tests/unicase/test-u32-casefold.c: Likewise.
21598         * tests/unicase/test-u32-is-cased.c: Likewise.
21599         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21600         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21601         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21602         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21603         * tests/unicase/test-u32-tolower.c: Likewise.
21604         * tests/unicase/test-u32-totitle.c: Likewise.
21605         * tests/unicase/test-u32-toupper.c: Likewise.
21606         * tests/unicase/test-ulc-casecmp.c: Likewise.
21607         * tests/unicase/test-ulc-casecoll.c: Likewise.
21608         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21609         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21610         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21611         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21612         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21613         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21614         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21615         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21616         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21617         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21618         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21619         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21620         * tests/unictype/test-bidi_byname.c: Likewise.
21621         * tests/unictype/test-bidi_name.c: Likewise.
21622         * tests/unictype/test-bidi_of.c: Likewise.
21623         * tests/unictype/test-bidi_test.c: Likewise.
21624         * tests/unictype/test-block_list.c: Likewise.
21625         * tests/unictype/test-block_of.c: Likewise.
21626         * tests/unictype/test-block_test.c: Likewise.
21627         * tests/unictype/test-categ_and.c: Likewise.
21628         * tests/unictype/test-categ_and_not.c: Likewise.
21629         * tests/unictype/test-categ_byname.c: Likewise.
21630         * tests/unictype/test-categ_name.c: Likewise.
21631         * tests/unictype/test-categ_none.c: Likewise.
21632         * tests/unictype/test-categ_of.c: Likewise.
21633         * tests/unictype/test-categ_or.c: Likewise.
21634         * tests/unictype/test-categ_test_withtable.c: Likewise.
21635         * tests/unictype/test-combining.c: Likewise.
21636         * tests/unictype/test-decdigit.c: Likewise.
21637         * tests/unictype/test-digit.c: Likewise.
21638         * tests/unictype/test-mirror.c: Likewise.
21639         * tests/unictype/test-numeric.c: Likewise.
21640         * tests/unictype/test-pr_byname.c: Likewise.
21641         * tests/unictype/test-pr_test.c: Likewise.
21642         * tests/unictype/test-predicate-part1.h: Likewise.
21643         * tests/unictype/test-scripts.c: Likewise.
21644         * tests/unictype/test-sy_c_ident.c: Likewise.
21645         * tests/unictype/test-sy_java_ident.c: Likewise.
21646         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21647         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21648         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21649         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21650         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21651         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21652         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21653         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21654         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21655         * tests/uninorm/test-compat-decomposition.c: Likewise.
21656         * tests/uninorm/test-composition.c: Likewise.
21657         * tests/uninorm/test-decomposing-form.c: Likewise.
21658         * tests/uninorm/test-decomposition.c: Likewise.
21659         * tests/uninorm/test-u8-nfc.c: Likewise.
21660         * tests/uninorm/test-u8-nfd.c: Likewise.
21661         * tests/uninorm/test-u8-nfkc.c: Likewise.
21662         * tests/uninorm/test-u8-nfkd.c: Likewise.
21663         * tests/uninorm/test-u8-normcmp.c: Likewise.
21664         * tests/uninorm/test-u8-normcoll.c: Likewise.
21665         * tests/uninorm/test-u16-nfc.c: Likewise.
21666         * tests/uninorm/test-u16-nfd.c: Likewise.
21667         * tests/uninorm/test-u16-nfkc.c: Likewise.
21668         * tests/uninorm/test-u16-nfkd.c: Likewise.
21669         * tests/uninorm/test-u16-normcmp.c: Likewise.
21670         * tests/uninorm/test-u16-normcoll.c: Likewise.
21671         * tests/uninorm/test-u32-nfc.c: Likewise.
21672         * tests/uninorm/test-u32-nfd.c: Likewise.
21673         * tests/uninorm/test-u32-nfkc.c: Likewise.
21674         * tests/uninorm/test-u32-nfkd.c: Likewise.
21675         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21676         * tests/uninorm/test-u32-normcmp.c: Likewise.
21677         * tests/uninorm/test-u32-normcoll.c: Likewise.
21678         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21679         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21680         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21681         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21682         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21683         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21684         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21685         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21686         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21687         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21688         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21689         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21690         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21691         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21692         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21693         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21694         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21695         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21696         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21697         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21698         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21699         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21700         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21701         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21702         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21703         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21704         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21705         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21706         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21707         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21708         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21709         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21710         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21711         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21712         * tests/uniwidth/test-u8-width.c: Likewise.
21713         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21714         * tests/uniwidth/test-u16-width.c: Likewise.
21715         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21716         * tests/uniwidth/test-u32-width.c: Likewise.
21717         * tests/uniwidth/test-uc_width.c: Likewise.
21718         * tests/uniwidth/test-uc_width2.c: Likewise.
21719         * modules/acl-tests (Files): Add tests/macros.h.
21720         * modules/areadlink-tests (Files): Likewise.
21721         * modules/areadlink-with-size-tests (Files): Likewise.
21722         * modules/areadlinkat-tests (Files): Likewise.
21723         * modules/areadlinkat-with-size-tests (Files): Likewise.
21724         * modules/argmatch-tests (Files): Likewise.
21725         * modules/argv-iter-tests (Files): Likewise.
21726         * modules/array-list-tests (Files): Likewise.
21727         * modules/array-mergesort-tests (Files): Likewise.
21728         * modules/array-oset-tests (Files): Likewise.
21729         * modules/avltree-list-tests (Files): Likewise.
21730         * modules/avltree-oset-tests (Files): Likewise.
21731         * modules/avltreehash-list-tests (Files): Likewise.
21732         * modules/base64-tests (Files): Likewise.
21733         * modules/binary-io-tests (Files): Likewise.
21734         * modules/bitrotate-tests (Files): Likewise.
21735         * modules/btowc-tests (Files): Likewise.
21736         * modules/byteswap-tests (Files): Likewise.
21737         * modules/c-ctype-tests (Files): Likewise.
21738         * modules/c-stack-tests (Files): Likewise.
21739         * modules/c-strcase-tests (Files): Likewise.
21740         * modules/c-strcasestr-tests (Files): Likewise.
21741         * modules/c-strstr-tests (Files): Likewise.
21742         * modules/canonicalize-lgpl-tests (Files): Likewise.
21743         * modules/canonicalize-tests (Files): Likewise.
21744         * modules/carray-list-tests (Files): Likewise.
21745         * modules/ceilf-tests (Files): Likewise.
21746         * modules/ceill-tests (Files): Likewise.
21747         * modules/chown-tests (Files): Likewise.
21748         * modules/cloexec-tests (Files): Likewise.
21749         * modules/copy-file-tests (Files): Likewise.
21750         * modules/count-one-bits-tests (Files): Likewise.
21751         * modules/dprintf-posix-tests (Files): Likewise.
21752         * modules/dup2-tests (Files): Likewise.
21753         * modules/dup3-tests (Files): Likewise.
21754         * modules/duplocale-tests (Files): Likewise.
21755         * modules/fbufmode-tests (Files): Likewise.
21756         * modules/fchdir-tests (Files): Likewise.
21757         * modules/fcntl-safer-tests (Files): Likewise.
21758         * modules/fcntl-tests (Files): Likewise.
21759         * modules/fdopendir-tests (Files): Likewise.
21760         * modules/fdutimensat-tests (Files): Likewise.
21761         * modules/fflush-tests (Files): Likewise.
21762         * modules/filevercmp-tests (Files): Likewise.
21763         * modules/flock-tests (Files): Likewise.
21764         * modules/floorf-tests (Files): Likewise.
21765         * modules/floorl-tests (Files): Likewise.
21766         * modules/fnmatch-tests (Files): Likewise.
21767         * modules/fopen-safer-tests (Files): Likewise.
21768         * modules/fopen-tests (Files): Likewise.
21769         * modules/fpending-tests (Files): Likewise.
21770         * modules/fprintf-posix-tests (Files): Likewise.
21771         * modules/fpurge-tests (Files): Likewise.
21772         * modules/freadable-tests (Files): Likewise.
21773         * modules/freadahead-tests (Files): Likewise.
21774         * modules/freading-tests (Files): Likewise.
21775         * modules/freadptr-tests (Files): Likewise.
21776         * modules/freadseek-tests (Files): Likewise.
21777         * modules/freopen-tests (Files): Likewise.
21778         * modules/frexp-nolibm-tests (Files): Likewise.
21779         * modules/frexp-tests (Files): Likewise.
21780         * modules/frexpl-nolibm-tests (Files): Likewise.
21781         * modules/frexpl-tests (Files): Likewise.
21782         * modules/fseek-tests (Files): Likewise.
21783         * modules/fseeko-tests (Files): Likewise.
21784         * modules/fstrcmp-tests (Files): Likewise.
21785         * modules/fsync-tests (Files): Likewise.
21786         * modules/ftell-tests (Files): Likewise.
21787         * modules/ftello-tests (Files): Likewise.
21788         * modules/func-tests (Files): Likewise.
21789         * modules/futimens-tests (Files): Likewise.
21790         * modules/fwritable-tests (Files): Likewise.
21791         * modules/fwriting-tests (Files): Likewise.
21792         * modules/getcwd-tests (Files): Likewise.
21793         * modules/getdate-tests (Files): Likewise.
21794         * modules/getdelim-tests (Files): Likewise.
21795         * modules/getdtablesize-tests (Files): Likewise.
21796         * modules/getgroups-tests (Files): Likewise.
21797         * modules/getline-tests (Files): Likewise.
21798         * modules/getndelim2-tests (Files): Likewise.
21799         * modules/glob-tests (Files): Likewise.
21800         * modules/hash-tests (Files): Likewise.
21801         * modules/i-ring-tests (Files): Likewise.
21802         * modules/iconv-tests (Files): Likewise.
21803         * modules/iconv_open-utf-tests (Files): Likewise.
21804         * modules/idpriv-drop-tests (Files): Likewise.
21805         * modules/idpriv-droptemp-tests (Files): Likewise.
21806         * modules/inet_ntop-tests (Files): Likewise.
21807         * modules/inet_pton-tests (Files): Likewise.
21808         * modules/isblank-tests (Files): Likewise.
21809         * modules/isfinite-tests (Files): Likewise.
21810         * modules/isinf-tests (Files): Likewise.
21811         * modules/isnan-tests (Files): Likewise.
21812         * modules/isnand-nolibm-tests (Files): Likewise.
21813         * modules/isnand-tests (Files): Likewise.
21814         * modules/isnanf-nolibm-tests (Files): Likewise.
21815         * modules/isnanf-tests (Files): Likewise.
21816         * modules/isnanl-nolibm-tests (Files): Likewise.
21817         * modules/isnanl-tests (Files): Likewise.
21818         * modules/lchown-tests (Files): Likewise.
21819         * modules/ldexpl-tests (Files): Likewise.
21820         * modules/link-tests (Files): Likewise.
21821         * modules/linkat-tests (Files): Likewise.
21822         * modules/linked-list-tests (Files): Likewise.
21823         * modules/linkedhash-list-tests (Files): Likewise.
21824         * modules/localename-tests (Files): Likewise.
21825         * modules/lseek-tests (Files): Likewise.
21826         * modules/lstat-tests (Files): Likewise.
21827         * modules/mbmemcasecmp-tests (Files): Likewise.
21828         * modules/mbmemcasecoll-tests (Files): Likewise.
21829         * modules/mbrtowc-tests (Files): Likewise.
21830         * modules/mbscasecmp-tests (Files): Likewise.
21831         * modules/mbscasestr-tests (Files): Likewise.
21832         * modules/mbschr-tests (Files): Likewise.
21833         * modules/mbscspn-tests (Files): Likewise.
21834         * modules/mbsinit-tests (Files): Likewise.
21835         * modules/mbsncasecmp-tests (Files): Likewise.
21836         * modules/mbsnrtowcs-tests (Files): Likewise.
21837         * modules/mbspbrk-tests (Files): Likewise.
21838         * modules/mbspcasecmp-tests (Files): Likewise.
21839         * modules/mbsrchr-tests (Files): Likewise.
21840         * modules/mbsrtowcs-tests (Files): Likewise.
21841         * modules/mbsspn-tests (Files): Likewise.
21842         * modules/mbsstr-tests (Files): Likewise.
21843         * modules/memchr-tests (Files): Likewise.
21844         * modules/memchr2-tests (Files): Likewise.
21845         * modules/memcmp-tests (Files): Likewise.
21846         * modules/memmem-tests (Files): Likewise.
21847         * modules/memrchr-tests (Files): Likewise.
21848         * modules/mkdir-tests (Files): Likewise.
21849         * modules/mkfifo-tests (Files): Likewise.
21850         * modules/mkfifoat-tests (Files): Likewise.
21851         * modules/mknod-tests (Files): Likewise.
21852         * modules/nanosleep-tests (Files): Likewise.
21853         * modules/nl_langinfo-tests (Files): Likewise.
21854         * modules/obstack-printf-tests (Files): Likewise.
21855         * modules/open-tests (Files): Likewise.
21856         * modules/openat-tests (Files): Likewise.
21857         * modules/pipe-filter-gi-tests (Files): Likewise.
21858         * modules/pipe-filter-ii-tests (Files): Likewise.
21859         * modules/pipe2-tests (Files): Likewise.
21860         * modules/popen-safer-tests (Files): Likewise.
21861         * modules/popen-tests (Files): Likewise.
21862         * modules/posixtm-tests (Files): Likewise.
21863         * modules/pread-tests (Files): Likewise.
21864         * modules/printf-frexp-tests (Files): Likewise.
21865         * modules/printf-frexpl-tests (Files): Likewise.
21866         * modules/printf-posix-tests (Files): Likewise.
21867         * modules/priv-set-tests (Files): Likewise.
21868         * modules/quotearg-tests (Files): Likewise.
21869         * modules/random_r-tests (Files): Likewise.
21870         * modules/rawmemchr-tests (Files): Likewise.
21871         * modules/rbtree-list-tests (Files): Likewise.
21872         * modules/rbtree-oset-tests (Files): Likewise.
21873         * modules/rbtreehash-list-tests (Files): Likewise.
21874         * modules/readlink-tests (Files): Likewise.
21875         * modules/remove-tests (Files): Likewise.
21876         * modules/rename-tests (Files): Likewise.
21877         * modules/renameat-tests (Files): Likewise.
21878         * modules/rmdir-tests (Files): Likewise.
21879         * modules/round-tests (Files): Likewise.
21880         * modules/roundf-tests (Files): Likewise.
21881         * modules/roundl-tests (Files): Likewise.
21882         * modules/safe-alloc-tests (Files): Likewise.
21883         * modules/setenv-tests (Files): Likewise.
21884         * modules/sigaction-tests (Files): Likewise.
21885         * modules/signbit-tests (Files): Likewise.
21886         * modules/sleep-tests (Files): Likewise.
21887         * modules/snprintf-posix-tests (Files): Likewise.
21888         * modules/snprintf-tests (Files): Likewise.
21889         * modules/sprintf-posix-tests (Files): Likewise.
21890         * modules/stat-tests (Files): Likewise.
21891         * modules/stat-time-tests (Files): Likewise.
21892         * modules/strcasestr-tests (Files): Likewise.
21893         * modules/strchrnul-tests (Files): Likewise.
21894         * modules/strerror-tests (Files): Likewise.
21895         * modules/striconv-tests (Files): Likewise.
21896         * modules/striconveh-tests (Files): Likewise.
21897         * modules/striconveha-tests (Files): Likewise.
21898         * modules/strsignal-tests (Files): Likewise.
21899         * modules/strstr-tests (Files): Likewise.
21900         * modules/strtod-tests (Files): Likewise.
21901         * modules/strverscmp-tests (Files): Likewise.
21902         * modules/symlink-tests (Files): Likewise.
21903         * modules/symlinkat-tests (Files): Likewise.
21904         * modules/trunc-tests (Files): Likewise.
21905         * modules/truncf-tests (Files): Likewise.
21906         * modules/truncl-tests (Files): Likewise.
21907         * modules/uname-tests (Files): Likewise.
21908         * modules/unicase/cased-tests (Files): Likewise.
21909         * modules/unicase/ignorable-tests (Files): Likewise.
21910         * modules/unicase/locale-language-tests (Files): Likewise.
21911         * modules/unicase/tolower-tests (Files): Likewise.
21912         * modules/unicase/totitle-tests (Files): Likewise.
21913         * modules/unicase/toupper-tests (Files): Likewise.
21914         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21915         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21916         * modules/unicase/u8-casefold-tests (Files): Likewise.
21917         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21918         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21919         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21920         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21921         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21922         * modules/unicase/u8-tolower-tests (Files): Likewise.
21923         * modules/unicase/u8-totitle-tests (Files): Likewise.
21924         * modules/unicase/u8-toupper-tests (Files): Likewise.
21925         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21926         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21927         * modules/unicase/u16-casefold-tests (Files): Likewise.
21928         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21929         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21930         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21931         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21932         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21933         * modules/unicase/u16-tolower-tests (Files): Likewise.
21934         * modules/unicase/u16-totitle-tests (Files): Likewise.
21935         * modules/unicase/u16-toupper-tests (Files): Likewise.
21936         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21937         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21938         * modules/unicase/u32-casefold-tests (Files): Likewise.
21939         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21940         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21941         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21942         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21943         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21944         * modules/unicase/u32-tolower-tests (Files): Likewise.
21945         * modules/unicase/u32-totitle-tests (Files): Likewise.
21946         * modules/unicase/u32-toupper-tests (Files): Likewise.
21947         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21948         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21949         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21950         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21951         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21952         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21953         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21954         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21955         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21956         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21957         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21958         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21959         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21960         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21961         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21962         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21963         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21964         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21965         * modules/unictype/block-list-tests (Files): Likewise.
21966         * modules/unictype/block-of-tests (Files): Likewise.
21967         * modules/unictype/block-test-tests (Files): Likewise.
21968         * modules/unictype/category-C-tests (Files): Likewise.
21969         * modules/unictype/category-Cc-tests (Files): Likewise.
21970         * modules/unictype/category-Cf-tests (Files): Likewise.
21971         * modules/unictype/category-Cn-tests (Files): Likewise.
21972         * modules/unictype/category-Co-tests (Files): Likewise.
21973         * modules/unictype/category-Cs-tests (Files): Likewise.
21974         * modules/unictype/category-L-tests (Files): Likewise.
21975         * modules/unictype/category-Ll-tests (Files): Likewise.
21976         * modules/unictype/category-Lm-tests (Files): Likewise.
21977         * modules/unictype/category-Lo-tests (Files): Likewise.
21978         * modules/unictype/category-Lt-tests (Files): Likewise.
21979         * modules/unictype/category-Lu-tests (Files): Likewise.
21980         * modules/unictype/category-M-tests (Files): Likewise.
21981         * modules/unictype/category-Mc-tests (Files): Likewise.
21982         * modules/unictype/category-Me-tests (Files): Likewise.
21983         * modules/unictype/category-Mn-tests (Files): Likewise.
21984         * modules/unictype/category-N-tests (Files): Likewise.
21985         * modules/unictype/category-Nd-tests (Files): Likewise.
21986         * modules/unictype/category-Nl-tests (Files): Likewise.
21987         * modules/unictype/category-No-tests (Files): Likewise.
21988         * modules/unictype/category-P-tests (Files): Likewise.
21989         * modules/unictype/category-Pc-tests (Files): Likewise.
21990         * modules/unictype/category-Pd-tests (Files): Likewise.
21991         * modules/unictype/category-Pe-tests (Files): Likewise.
21992         * modules/unictype/category-Pf-tests (Files): Likewise.
21993         * modules/unictype/category-Pi-tests (Files): Likewise.
21994         * modules/unictype/category-Po-tests (Files): Likewise.
21995         * modules/unictype/category-Ps-tests (Files): Likewise.
21996         * modules/unictype/category-S-tests (Files): Likewise.
21997         * modules/unictype/category-Sc-tests (Files): Likewise.
21998         * modules/unictype/category-Sk-tests (Files): Likewise.
21999         * modules/unictype/category-Sm-tests (Files): Likewise.
22000         * modules/unictype/category-So-tests (Files): Likewise.
22001         * modules/unictype/category-Z-tests (Files): Likewise.
22002         * modules/unictype/category-Zl-tests (Files): Likewise.
22003         * modules/unictype/category-Zp-tests (Files): Likewise.
22004         * modules/unictype/category-Zs-tests (Files): Likewise.
22005         * modules/unictype/category-and-not-tests (Files): Likewise.
22006         * modules/unictype/category-and-tests (Files): Likewise.
22007         * modules/unictype/category-byname-tests (Files): Likewise.
22008         * modules/unictype/category-name-tests (Files): Likewise.
22009         * modules/unictype/category-none-tests (Files): Likewise.
22010         * modules/unictype/category-of-tests (Files): Likewise.
22011         * modules/unictype/category-or-tests (Files): Likewise.
22012         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22013         * modules/unictype/combining-class-tests (Files): Likewise.
22014         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22015         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22016         * modules/unictype/ctype-blank-tests (Files): Likewise.
22017         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22018         * modules/unictype/ctype-digit-tests (Files): Likewise.
22019         * modules/unictype/ctype-graph-tests (Files): Likewise.
22020         * modules/unictype/ctype-lower-tests (Files): Likewise.
22021         * modules/unictype/ctype-print-tests (Files): Likewise.
22022         * modules/unictype/ctype-punct-tests (Files): Likewise.
22023         * modules/unictype/ctype-space-tests (Files): Likewise.
22024         * modules/unictype/ctype-upper-tests (Files): Likewise.
22025         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22026         * modules/unictype/decimal-digit-tests (Files): Likewise.
22027         * modules/unictype/digit-tests (Files): Likewise.
22028         * modules/unictype/mirror-tests (Files): Likewise.
22029         * modules/unictype/numeric-tests (Files): Likewise.
22030         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22031         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22032         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22033         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22034         Likewise.
22035         * modules/unictype/property-bidi-block-separator-tests (Files):
22036         Likewise.
22037         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22038         Likewise.
22039         * modules/unictype/property-bidi-common-separator-tests (Files):
22040         Likewise.
22041         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22042         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22043         Likewise.
22044         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22045         Likewise.
22046         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22047         Likewise.
22048         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22049         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22050         Likewise.
22051         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22052         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22053         Likewise.
22054         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22055         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22056         * modules/unictype/property-bidi-segment-separator-tests (Files):
22057         Likewise.
22058         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22059         * modules/unictype/property-byname-tests (Files): Likewise.
22060         * modules/unictype/property-combining-tests (Files): Likewise.
22061         * modules/unictype/property-composite-tests (Files): Likewise.
22062         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22063         * modules/unictype/property-dash-tests (Files): Likewise.
22064         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22065         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22066         Likewise.
22067         * modules/unictype/property-deprecated-tests (Files): Likewise.
22068         * modules/unictype/property-diacritic-tests (Files): Likewise.
22069         * modules/unictype/property-extender-tests (Files): Likewise.
22070         * modules/unictype/property-format-control-tests (Files): Likewise.
22071         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22072         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22073         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22074         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22075         * modules/unictype/property-hyphen-tests (Files): Likewise.
22076         * modules/unictype/property-id-continue-tests (Files): Likewise.
22077         * modules/unictype/property-id-start-tests (Files): Likewise.
22078         * modules/unictype/property-ideographic-tests (Files): Likewise.
22079         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22080         * modules/unictype/property-ids-trinary-operator-tests (Files):
22081         Likewise.
22082         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22083         * modules/unictype/property-iso-control-tests (Files): Likewise.
22084         * modules/unictype/property-join-control-tests (Files): Likewise.
22085         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22086         * modules/unictype/property-line-separator-tests (Files): Likewise.
22087         * modules/unictype/property-logical-order-exception-tests (Files):
22088         Likewise.
22089         * modules/unictype/property-lowercase-tests (Files): Likewise.
22090         * modules/unictype/property-math-tests (Files): Likewise.
22091         * modules/unictype/property-non-break-tests (Files): Likewise.
22092         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22093         * modules/unictype/property-numeric-tests (Files): Likewise.
22094         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22095         * modules/unictype/property-other-default-ignorable-code-point-tests
22096         (Files): Likewise.
22097         * modules/unictype/property-other-grapheme-extend-tests (Files):
22098         Likewise.
22099         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22100         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22101         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22102         * modules/unictype/property-other-math-tests (Files): Likewise.
22103         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22104         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22105         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22106         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22107         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22108         * modules/unictype/property-private-use-tests (Files): Likewise.
22109         * modules/unictype/property-punctuation-tests (Files): Likewise.
22110         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22111         * modules/unictype/property-radical-tests (Files): Likewise.
22112         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22113         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22114         * modules/unictype/property-space-tests (Files): Likewise.
22115         * modules/unictype/property-terminal-punctuation-tests (Files):
22116         Likewise.
22117         * modules/unictype/property-test-tests (Files): Likewise.
22118         * modules/unictype/property-titlecase-tests (Files): Likewise.
22119         * modules/unictype/property-unassigned-code-value-tests (Files):
22120         Likewise.
22121         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22122         * modules/unictype/property-uppercase-tests (Files): Likewise.
22123         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22124         * modules/unictype/property-white-space-tests (Files): Likewise.
22125         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22126         * modules/unictype/property-xid-start-tests (Files): Likewise.
22127         * modules/unictype/property-zero-width-tests (Files): Likewise.
22128         * modules/unictype/scripts-tests (Files): Likewise.
22129         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22130         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22131         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22132         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22133         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22134         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22135         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22136         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22137         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22138         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22139         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22140         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22141         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22142         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22143         * modules/uninorm/composition-tests (Files): Likewise.
22144         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22145         * modules/uninorm/decomposition-tests (Files): Likewise.
22146         * modules/uninorm/filter-tests (Files): Likewise.
22147         * modules/uninorm/nfc-tests (Files): Likewise.
22148         * modules/uninorm/nfd-tests (Files): Likewise.
22149         * modules/uninorm/nfkc-tests (Files): Likewise.
22150         * modules/uninorm/nfkd-tests (Files): Likewise.
22151         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22152         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22153         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22154         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22155         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22156         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22157         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22158         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22159         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22160         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22161         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22162         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22163         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22164         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22165         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22166         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22167         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22168         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22169         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22170         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22171         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22172         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22173         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22174         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22175         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22176         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22177         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22178         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22179         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22180         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22181         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22182         * modules/uniwidth/u8-width-tests (Files): Likewise.
22183         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22184         * modules/uniwidth/u16-width-tests (Files): Likewise.
22185         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22186         * modules/uniwidth/u32-width-tests (Files): Likewise.
22187         * modules/uniwidth/width-tests (Files): Likewise.
22188         * modules/unlink-tests (Files): Likewise.
22189         * modules/unsetenv-tests (Files): Likewise.
22190         * modules/usleep-tests (Files): Likewise.
22191         * modules/utimens-tests (Files): Likewise.
22192         * modules/utimensat-tests (Files): Likewise.
22193         * modules/vasnprintf-posix-tests (Files): Likewise.
22194         * modules/vasnprintf-tests (Files): Likewise.
22195         * modules/vasprintf-posix-tests (Files): Likewise.
22196         * modules/vasprintf-tests (Files): Likewise.
22197         * modules/vdprintf-posix-tests (Files): Likewise.
22198         * modules/vfprintf-posix-tests (Files): Likewise.
22199         * modules/vprintf-posix-tests (Files): Likewise.
22200         * modules/vsnprintf-posix-tests (Files): Likewise.
22201         * modules/vsnprintf-tests (Files): Likewise.
22202         * modules/vsprintf-posix-tests (Files): Likewise.
22203         * modules/wcrtomb-tests (Files): Likewise.
22204         * modules/wcsnrtombs-tests (Files): Likewise.
22205         * modules/wcsrtombs-tests (Files): Likewise.
22206         * modules/wctype-tests (Files): Likewise.
22207         * modules/wcwidth-tests (Files): Likewise.
22208         * modules/xmemdup0-tests (Files): Likewise.
22209         * modules/xprintf-posix-tests (Files): Likewise.
22210         * modules/xvasprintf-tests (Files): Likewise.
22211
22212 2009-12-24  Eric Blake  <ebb9@byu.net>
22213
22214         test-nanosleep: fix typo
22215         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22216         patch.
22217         Reported by Bruno Haible.
22218
22219 2009-12-24  Bruno Haible  <bruno@clisp.org>
22220
22221         Reduce namespace pollution on glibc systems.
22222         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22223         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22224         systems.
22225         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22226         <getopt.h> on glibc systems.
22227         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22228         systems.
22229         * lib/fcntl.c: Include <unistd.h> here instead.
22230
22231 2009-12-24  Bruno Haible  <bruno@clisp.org>
22232
22233         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22234
22235 2009-12-24  Eric Blake  <ebb9@byu.net>
22236
22237         tests: add signature checks
22238         * tests/signature.h (SIGNATURE_CHECK): New file.
22239         * modules/atexit-tests (Files): Use it.
22240         * modules/btowc-tests (Files): Likewise.
22241         * modules/canonicalize-lgpl-tests (Files): Likewise.
22242         * modules/ceilf-tests (Files): Likewise.
22243         * modules/ceill-tests (Files): Likewise.
22244         * modules/chown-tests (Files): Likewise.
22245         * modules/dprintf-posix-tests (Files): Likewise.
22246         * modules/dup2-tests (Files): Likewise.
22247         * modules/dup3-tests (Files): Likewise.
22248         * modules/duplocale-tests (Files): Likewise.
22249         * modules/fchdir-tests (Files): Likewise.
22250         * modules/fcntl-tests (Files): Likewise.
22251         * modules/fdopendir-tests (Files): Likewise.
22252         * modules/fflush-tests (Files): Likewise.
22253         * modules/flock-tests (Files): Likewise.
22254         * modules/floorf-tests (Files): Likewise.
22255         * modules/floorl-tests (Files): Likewise.
22256         * modules/fnmatch-tests (Files): Likewise.
22257         * modules/fopen-tests (Files): Likewise.
22258         * modules/fprintf-posix-tests (Files): Likewise.
22259         * modules/freopen-tests (Files): Likewise.
22260         * modules/frexp-nolibm-tests (Files): Likewise.
22261         * modules/frexp-tests (Files): Likewise.
22262         * modules/frexpl-nolibm-tests (Files): Likewise.
22263         * modules/frexpl-tests (Files): Likewise.
22264         * modules/fseek-tests (Files): Likewise.
22265         * modules/fseeko-tests (Files): Likewise.
22266         * modules/fsync-tests (Files): Likewise.
22267         * modules/ftell-tests (Files): Likewise.
22268         * modules/ftello-tests (Files): Likewise.
22269         * modules/futimens-tests (Files): Likewise.
22270         * modules/getaddrinfo-tests (Files): Likewise.
22271         * modules/getcwd-tests (Files): Likewise.
22272         * modules/getdelim-tests (Files): Likewise.
22273         * modules/getdtablesize-tests (Files): Likewise.
22274         * modules/getgroups-tests (Files): Likewise.
22275         * modules/gethostname-tests (Files): Likewise.
22276         * modules/getline-tests (Files): Likewise.
22277         * modules/getopt-posix-tests (Files): Likewise.
22278         * modules/gettimeofday-tests (Files): Likewise.
22279         * modules/glob-tests (Files): Likewise.
22280         * modules/iconv-tests (Files): Likewise.
22281         * modules/inet_ntop-tests (Files): Likewise.
22282         * modules/inet_pton-tests (Files): Likewise.
22283         * modules/isblank-tests (Files): Likewise.
22284         * modules/lchown-tests (Files): Likewise.
22285         * modules/ldexpl-tests (Files): Likewise.
22286         * modules/link-tests (Files): Likewise.
22287         * modules/linkat-tests (Files): Likewise.
22288         * modules/lseek-tests (Files): Likewise.
22289         * modules/lstat-tests (Files): Likewise.
22290         * modules/mbrtowc-tests (Files): Likewise.
22291         * modules/mbsinit-tests (Files): Likewise.
22292         * modules/mbsnrtowcs-tests (Files): Likewise.
22293         * modules/mbsrtowcs-tests (Files): Likewise.
22294         * modules/memchr-tests (Files): Likewise.
22295         * modules/memcmp-tests (Files): Likewise.
22296         * modules/memmem-tests (Files): Likewise.
22297         * modules/memrchr-tests (Files): Likewise.
22298         * modules/mkdir-tests (Files): Likewise.
22299         * modules/mkfifo-tests (Files): Likewise.
22300         * modules/mkfifoat-tests (Files): Likewise.
22301         * modules/mknod-tests (Files): Likewise.
22302         * modules/nanosleep-tests (Files): Likewise.
22303         * modules/nl_langinfo-tests (Files): Likewise.
22304         * modules/obstack-printf-tests (Files): Likewise.
22305         * modules/open-tests (Files): Likewise.
22306         * modules/openat-tests (Files): Likewise.
22307         * modules/perror-tests (Files): Likewise.
22308         * modules/pipe2-tests (Files): Likewise.
22309         * modules/poll-tests (Files): Likewise.
22310         * modules/popen-tests (Files): Likewise.
22311         * modules/posix_spawn-tests (Files): Likewise.
22312         * modules/posix_spawnp-tests (Files): Likewise.
22313         * modules/pread-tests (Files): Likewise.
22314         * modules/printf-posix-tests (Files): Likewise.
22315         * modules/pty-tests (Files): Likewise.
22316         * modules/random_r-tests (Files): Likewise.
22317         * modules/rawmemchr-tests (Files): Likewise.
22318         * modules/readlink-tests (Files): Likewise.
22319         * modules/remove-tests (Files): Likewise.
22320         * modules/rename-tests (Files): Likewise.
22321         * modules/renameat-tests (Files): Likewise.
22322         * modules/rmdir-tests (Files): Likewise.
22323         * modules/round-tests (Files): Likewise.
22324         * modules/roundf-tests (Files): Likewise.
22325         * modules/roundl-tests (Files): Likewise.
22326         * modules/select-tests (Files): Likewise.
22327         * modules/setenv-tests (Files): Likewise.
22328         * modules/sigaction-tests (Files): Likewise.
22329         * modules/sleep-tests (Files): Likewise.
22330         * modules/snprintf-posix-tests (Files): Likewise.
22331         * modules/snprintf-tests (Files): Likewise.
22332         * modules/sprintf-posix-tests (Files): Likewise.
22333         * modules/stat-tests (Files): Likewise.
22334         * modules/strcasestr-tests (Files): Likewise.
22335         * modules/strchrnul-tests (Files): Likewise.
22336         * modules/strerror-tests (Files): Likewise.
22337         * modules/strsignal-tests (Files): Likewise.
22338         * modules/strstr-tests (Files): Likewise.
22339         * modules/strtod-tests (Files): Likewise.
22340         * modules/strverscmp-tests (Files): Likewise.
22341         * modules/symlink-tests (Files): Likewise.
22342         * modules/symlinkat-tests (Files): Likewise.
22343         * modules/times-tests (Files): Likewise.
22344         * modules/trunc-tests (Files): Likewise.
22345         * modules/truncf-tests (Files): Likewise.
22346         * modules/truncl-tests (Files): Likewise.
22347         * modules/tsearch-tests (Files): Likewise.
22348         * modules/uname-tests (Files): Likewise.
22349         * modules/unlink-tests (Files): Likewise.
22350         * modules/unsetenv-tests (Files): Likewise.
22351         * modules/usleep-tests (Files): Likewise.
22352         * modules/utimensat-tests (Files): Likewise.
22353         * modules/vasprintf-tests (Files): Likewise.
22354         * modules/vdprintf-posix-tests (Files): Likewise.
22355         * modules/vfprintf-posix-tests (Files): Likewise.
22356         * modules/vprintf-posix-tests (Files): Likewise.
22357         * modules/vsnprintf-posix-tests (Files): Likewise.
22358         * modules/vsnprintf-tests (Files): Likewise.
22359         * modules/vsprintf-posix-tests (Files): Likewise.
22360         * modules/wcrtomb-tests (Files): Likewise.
22361         * modules/wcsnrtombs-tests (Files): Likewise.
22362         * modules/wcsrtombs-tests (Files): Likewise.
22363         * modules/wcwidth-tests (Files): Likewise.
22364         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22365         * tests/test-isinf.c (isinf): Likewise.
22366         * tests/test-isnan.c (isnan): Likewise.
22367         * tests/test-signbit.c (signbit): Likewise.
22368         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22369         declaration, either as macro or with correct signature.
22370         (select): Ensure function under test is declared with correct
22371         signature in correct header.
22372         * tests/test-atexit.c (atexit): Likewise.
22373         * tests/test-btowc.c (btowc): Likewise.
22374         * tests/test-canonicalize-lgpl.c (realpath)
22375         (canonicalize_file_name): Likewise.
22376         * tests/test-ceilf1.c (ceilf): Likewise.
22377         * tests/test-ceill.c (ceill): Likewise.
22378         * tests/test-chown.c (chown): Likewise.
22379         * tests/test-dprintf-posix.c (dprintf): Likewise.
22380         * tests/test-dup2.c (dup2): Likewise.
22381         * tests/test-dup3.c (dup3): Likewise.
22382         * tests/test-duplocale.c (duplocale): Likewise.
22383         * tests/test-fchdir.c (fchdir): Likewise.
22384         * tests/test-fchownat.c (fchownat): Likewise.
22385         * tests/test-fcntl.c (fcntl): Likewise.
22386         * tests/test-fdopendir.c (fdopendir): Likewise.
22387         * tests/test-fflush.c (fflush): Likewise.
22388         * tests/test-flock.c (flock): Likewise.
22389         * tests/test-floorf1.c (floorf): Likewise.
22390         * tests/test-floorl.c (floorl): Likewise.
22391         * tests/test-fnmatch.c (fnmatch): Likewise.
22392         * tests/test-fopen.c (fopen): Likewise.
22393         * tests/test-fprintf-posix.c (fprintf): Likewise.
22394         * tests/test-freopen.c (freopen): Likewise.
22395         * tests/test-frexp.c (frexp): Likewise.
22396         * tests/test-frexpl.c (frexpl): Likewise.
22397         * tests/test-fseek.c (fseek): Likewise.
22398         * tests/test-fseeko.c (fseeko): Likewise.
22399         * tests/test-fstatat.c (fstatat): Likewise.
22400         * tests/test-fsync.c (fsync): Likewise.
22401         * tests/test-ftell.c (ftell): Likewise.
22402         * tests/test-ftello.c (ftello): Likewise.
22403         * tests/test-futimens.c (futimens): Likewise.
22404         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22405         (gai_strerror): Likewise.
22406         * tests/test-getcwd.c (getcwd): Likewise.
22407         * tests/test-getdelim.c (getdelim): Likewise.
22408         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22409         * tests/test-getgroups.c (getgroups): Likewise.
22410         * tests/test-gethostname.c (gethostname): Likewise.
22411         * tests/test-getline.c (getline): Likewise.
22412         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22413         Likewise.
22414         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22415         * tests/test-glob.c (glob, globfree): Likewise.
22416         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22417         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22418         * tests/test-inet_pton.c (inet_pton): Likewise.
22419         * tests/test-isblank.c (isblank): Likewise.
22420         * tests/test-lchown.c (lchown): Likewise.
22421         * tests/test-ldexpl.c (ldexpl): Likewise.
22422         * tests/test-link.c (link): Likewise.
22423         * tests/test-linkat.c (linkat): Likewise.
22424         * tests/test-lseek.c (lseek): Likewise.
22425         * tests/test-lstat.c (lstat): Likewise.
22426         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22427         * tests/test-mbsinit.c (mbsinit): Likewise.
22428         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22429         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22430         * tests/test-memchr.c (memchr): Likewise.
22431         * tests/test-memcmp.c (memcmp): Likewise.
22432         * tests/test-memmem.c (memmem): Likewise.
22433         * tests/test-memrchr.c (memrchr): Likewise.
22434         * tests/test-mkdir.c (mkdir): Likewise.
22435         * tests/test-mkdirat.c (mkdirat): Likewise.
22436         * tests/test-mkfifo.c (mkfifo): Likewise.
22437         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22438         * tests/test-mknod.c (mknod): Likewise.
22439         * tests/test-nanosleep.c (nanosleep): Likewise.
22440         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22441         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22442         Likewise.
22443         * tests/test-open.c (open): Likewise.
22444         * tests/test-openat.c (openat): Likewise.
22445         * tests/test-perror.c (perror): Likewise.
22446         * tests/test-pipe2.c (pipe2): Likewise.
22447         * tests/test-poll.c (poll): Likewise.
22448         * tests/test-popen.c (popen, pclose): Likewise.
22449         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22450         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22451         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22452         (posix_spawn_file_actions_destroy)
22453         (posix_spawn_file_actions_addclose)
22454         (posix_spawn_file_actions_addopen)
22455         (posix_spawn_file_actions_adddup2): Likewise.
22456         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22457         * tests/test-pread.c (pread): Likewise.
22458         * tests/test-printf-posix.c (printf): Likewise.
22459         * tests/test-pty.c (openpty, forkpty): Likewise.
22460         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22461         (random_r): Likewise.
22462         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22463         * tests/test-readlink.c (readlink): Likewise.
22464         * tests/test-remove.c (remove): Likewise.
22465         * tests/test-rename.c (rename): Likewise.
22466         * tests/test-renameat.c (renameat): Likewise.
22467         * tests/test-rmdir.c (rmdir): Likewise.
22468         * tests/test-round1.c (round): Likewise.
22469         * tests/test-roundf1.c (roundf): Likewise.
22470         * tests/test-roundl.c (roundl): Likewise.
22471         * tests/test-setenv.c (setenv): Likewise.
22472         * tests/test-sigaction.c (sigaction): Likewise.
22473         * tests/test-sleep.c (sleep): Likewise.
22474         * tests/test-snprintf.c (snprintf): Likewise.
22475         * tests/test-sprintf-posix.c (sprintf): Likewise.
22476         * tests/test-stat.c (stat): Likewise.
22477         * tests/test-stpncpy.c (stpncpy): Likewise.
22478         * tests/test-strcasestr.c (strcasestr): Likewise.
22479         * tests/test-strchrnul.c (strchrnul): Likewise.
22480         * tests/test-strerror.c (strerror): Likewise.
22481         * tests/test-strsignal.c (strsignal): Likewise.
22482         * tests/test-strstr.c (strstr): Likewise.
22483         * tests/test-strtod.c (strtod): Likewise.
22484         * tests/test-strverscmp.c (strverscmp): Likewise.
22485         * tests/test-symlink.c (symlink): Likewise.
22486         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22487         * tests/test-times.c (times): Likewise.
22488         * tests/test-trunc1.c (trunc): Likewise.
22489         * tests/test-truncf1.c (truncf): Likewise.
22490         * tests/test-truncl.c (truncl): Likewise.
22491         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22492         Likewise.
22493         * tests/test-uname.c (uname): Likewise.
22494         * tests/test-unlink.c (unlink): Likewise.
22495         * tests/test-unlinkat.c (unlinkat): Likewise.
22496         * tests/test-unsetenv.c (unsetenv): Likewise.
22497         * tests/test-usleep.c (usleep): Likewise.
22498         * tests/test-utimensat.c (utimensat): Likewise.
22499         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22500         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22501         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22502         * tests/test-vprintf-posix.c (vprintf): Likewise.
22503         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22504         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22505         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22506         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22507         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22508         * tests/test-wcwidth.c (wcwidth): Likewise.
22509
22510         build: pull in conditional headers during GNULIB_POSIXCHECK
22511         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22512         definitions from any conditionally-included headers.
22513         * lib/stdlib.in.h (includes): Likewise.
22514         * lib/unistd.in.h (includes): Likewise.
22515
22516 2009-12-24  Bruno Haible  <bruno@clisp.org>
22517
22518         * tests/test-argv-iter.c: Include header file being tested immediately
22519         after config.h.
22520         * tests/test-base64.c: Likewise.
22521         * tests/test-flock.c: Likewise.
22522         * tests/test-fsync.c: Likewise.
22523         * tests/test-getdate.c: Likewise.
22524         * tests/test-getndelim2.c: Likewise.
22525         * tests/test-isfinite.c: Likewise.
22526         * tests/test-isinf.c: Likewise.
22527         * tests/test-strerror.c: Likewise.
22528         * tests/test-strsignal.c: Likewise.
22529
22530 2009-12-23  Eric Blake  <ebb9@byu.net>
22531
22532         unistd: work around cygwin bug
22533         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22534         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22535         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22536
22537 2009-12-23  Bruno Haible  <bruno@clisp.org>
22538
22539         localename: More tests.
22540         * tests/test-localename.c (SIZEOF): New macro.
22541         (categories): New variable.
22542         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22543         test_locale_name_default): Add test w.r.t. thread locale.
22544         (test_locale_name_thread): New function.
22545         (main): Invoke it.
22546
22547         localename: Make aware of thread locale.
22548         * lib/localename.h (gl_locale_name_thread): New declaration.
22549         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22550         behaviour with respect to thread locale.
22551         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22552         <langinfo.h>, glthread/lock.h.
22553         (SIZE_BITS): New macro.
22554         (string_hash): New function.
22555         (struct hash_node): New type.
22556         (HASH_TABLE_SIZE): New macro.
22557         (struniq_hash_table, struniq_lock): New variables.
22558         (struniq): New function.
22559         (gl_locale_name_thread): New function.
22560         (gl_locale_name): Invoke it.
22561         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22562         * modules/localename (Depends-on): Add lock.
22563         Reported by Mike Gran <spk121@yahoo.com>.
22564
22565 2009-12-23  Eric Blake  <ebb9@byu.net>
22566
22567         va-args: new module
22568         * modules/va-args: New file.
22569         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22570         * MODULES.html.sh (Core language properties): Mention it.
22571
22572         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22573         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22574         named alias for __attribute__((__unused__)).
22575         * lib/chown.c: Update client.
22576         * lib/fchmodat.c: Likewise.
22577         * lib/fts.c: Likewise.
22578         * lib/getdate.y: Likewise.
22579         * lib/getgroups.c: Likewise.
22580         * lib/getopt.c: Likewise.
22581         * lib/getugroups.c: Likewise.
22582         * lib/mkdir.c: Likewise.
22583         * lib/mkfifo.c: Likewise.
22584         * lib/mkfifoat.c: Likewise.
22585         * lib/mknod.c: Likewise.
22586         * lib/mknodat.c: Likewise.
22587         * lib/readlink.c: Likewise.
22588         * lib/se-context.in.h: Likewise.
22589         * lib/se-selinux.in.h: Likewise.
22590         * lib/sockets.c: Likewise.
22591         * lib/symlink.c: Likewise.
22592         * lib/symlinkat.c: Likewise.
22593         * lib/unicodeio.c: Likewise.
22594         * lib/unistr.h: Likewise.
22595         * tests/test-areadlink.c: Likewise.
22596         * tests/test-areadlinkat.c: Likewise.
22597         * tests/test-filenamecat.c: Likewise.
22598         * tests/test-fseeko.c: Likewise.
22599         * tests/test-ftello.c: Likewise.
22600         * tests/test-getdate.c: Likewise.
22601         * tests/test-getgroups.c: Likewise.
22602         * tests/test-gethostname.c: Likewise.
22603         * tests/test-quotearg.c: Likewise.
22604         * tests/test-version-etc.c: Likewise.
22605         * tests/test-xalloc-die.c: Likewise.
22606         * tests/test-xfprintf-posix.c: Likewise.
22607         * tests/test-xprintf-posix.c: Likewise.
22608         * tests/test-xvasprintf.c: Likewise.
22609
22610         tests: avoid compiler warnings
22611         * tests/test-fcntl.c (main): Delete unused parameters.
22612         * tests/test-freopen-safer.c (main): Likewise.
22613         * tests/test-xalloc-die.c (main): Mark unused parameters.
22614         * tests/test-fseeko.c (main): Likewise.
22615         * tests/test-ftello.c (main): Likewise.
22616         * tests/test-nanosleep.c (main): Avoid declaration warning.
22617         * tests/test-sleep.c (main): Likewise.
22618         * tests/test-unsetenv.c (main): Silence warning about string
22619         literal.
22620         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22621
22622 2009-12-23  Bruno Haible  <bruno@clisp.org>
22623
22624         * tests/test-localename.c (test_locale_name): New function, extracted
22625         from main. Also test mixed situations.
22626         (test_locale_name_posix, test_locale_name_environ,
22627         test_locale_name_default): New functions.
22628         (main): Invoke them all.
22629         * modules/localename-tests (configure.ac): Test for newlocale.
22630
22631 2009-12-23  Bruno Haible  <bruno@clisp.org>
22632
22633         unistd: Ensure getcwd gets declared before being overridden.
22634         * lib/unistd.in.h: Conditionally include <io.h>.
22635
22636 2009-12-22  Bruno Haible  <bruno@clisp.org>
22637
22638         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22639         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22640         (gl_WCHAR_H): Invoke it.
22641         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22642         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22643         Reported by Karl Berry <karl@freefriends.org>.
22644
22645 2009-12-22  Eric Blake  <ebb9@byu.net>
22646
22647         math, unistd: avoid redundant includes
22648         * lib/math.in.h (isnan): No need to re-include <math.h>.
22649         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22650
22651         getsubopt: work around cygwin bug
22652         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22653         avoid conflicting with system getsubopt.
22654         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22655         bug.
22656
22657         getopt: synchronize from glibc
22658         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22659         parameter order.  Adjust all callers.
22660         (_getopt_internal_r, main): Adjust quoting in error messages.
22661         Drop considerations for outdated POSIX 1003.2 error message.
22662         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22663         callers.
22664         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22665
22666         test-getopt: test stderr behavior
22667         * modules/getopt-posix-tests (Depends-on): Add dup2.
22668         * tests/test-getopt.c (ASSERT): Avoid stderr.
22669         (main): Move stderr to a temporary file.
22670         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22671         Instead, add parameter to inform caller if output occurred.
22672         (test_getopt): Adjust all existing tests to expect silence, and
22673         add new tests of leading ":".
22674         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22675         glibc shortcomings with leading "-:" or "+:" in optstring.
22676         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22677         Likewise.
22678         * doc/posix-functions/getopt.texi (getopt): Likewise.
22679
22680         test-getopt: enhance test
22681         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22682         supports optind=0.
22683         * tests/test-getopt.c (OPTIND_MIN): Move...
22684         * tests/test-getopt.h (OPTIND_MIN): ...here.
22685         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22686         Require that optind=0 works, since modern BSD supports it in
22687         addition to optreset, and since coreutils expects it.
22688         (test_getopt_long_only): New test.
22689         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22690         glibc shortcomings with 'W;', and enforcement of optind=0.
22691         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22692         Likewise.
22693
22694 2009-12-21  Bruno Haible  <bruno@clisp.org>
22695
22696         localename: Improvements for MacOS X and Cygwin.
22697         * lib/localename.h (gl_locale_name_environ): New declaration.
22698         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22699         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22700         (gl_locale_name_posix): Invoke it.
22701         (gl_locale_name_default): Add comments. Use Windows native API also on
22702         Cygwin.
22703
22704 2009-12-21  Bruno Haible  <bruno@clisp.org>
22705
22706         Update list of Win32 locale ids.
22707         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22708         (LANG_SAMI): Renamed from LANG_SAAMI.
22709         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22710         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22711         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22712         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22713         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22714         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22715         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22716         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22717         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22718         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22719         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22720         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22721         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22722         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22723         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22724         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22725         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22726         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22727         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22728         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22729         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22730         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22731         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22732         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22733         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22734         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22735         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22736         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22737         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22738         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22739         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22740         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22741         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22742         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22743         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22744         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22745         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22746         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22747         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22748         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22749         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22750         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22751         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22752         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22753         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22754         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22755         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22756         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22757         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22758         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22759         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22760         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22761         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22762         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22763         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22764         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22765         Add more languages and countries for Sami, Sorbian. Add more countries
22766         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22767         for Pashto. Change country for Syriac, Tswana.
22768
22769 2009-12-21  Eric Blake  <ebb9@byu.net>
22770
22771         test-utimens: avoid spurious failure
22772         * tests/test-chown.h (nap): Factor...
22773         * tests/nap.h: ...into new file.
22774         * tests/test-lchown.h (nap): Avoid duplication.
22775         * tests/test-utimens-common.h (nap): Use shared implementation,
22776         necessary on file systems with 1-second resolution.
22777         * modules/chown-tests (Files): Include new file.
22778         * modules/fdutimensat-tests (Files): Likewise.
22779         * modules/futimens-tests (Files): Likewise.
22780         * modules/lchown-tests (Files): Likewise.
22781         * modules/openat-tests (Files): Likewise.
22782         * modules/utimens-tests (Files): Likewise.
22783         * modules/utimensat-tests (Files): Likewise.
22784
22785 2009-12-19  Eric Blake  <ebb9@byu.net>
22786
22787         futimens, utimensat: work around Linux bug
22788         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22789         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22790         * lib/utimensat.c (rpl_utimensat): Work around it.
22791         * lib/futimens.c (rpl_futimens): Adjust comment.
22792
22793         utimens: work around Linux ctime bug
22794         * lib/utimens.c (detect_ctime_bug): New helper function.
22795         (update_timespec): Differentiate between workaround needed for
22796         this bug vs. what is needed for systems that lack utimensat.
22797         (fdutimens, lutimens): Work around bug.
22798
22799         utimens: check for ctime update
22800         * tests/test-utimens-common.h (check_ctime): Define.
22801         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22802         * tests/test-futimens.h (test_futimens): Likewise.
22803         * tests/test-lutimens.h (test_lutimens): Likewise.
22804         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22805         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22806
22807 2009-12-19  Bruno Haible  <bruno@clisp.org>
22808
22809         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22810         * tests/test-dprintf-posix2.sh: New file.
22811         * tests/test-dprintf-posix2.c: New file.
22812         * modules/dprintf-posix-tests (Files): Add them.
22813         (configure.ac): Check for getrlimit and setrlimit.
22814         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22815
22816 2009-12-19  Bruno Haible  <bruno@clisp.org>
22817
22818         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22819         * tests/test-fprintf-posix3.sh: New file.
22820         * tests/test-fprintf-posix3.c: New file.
22821         * modules/fprintf-posix-tests (Files): Add them.
22822         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22823
22824 2009-12-19  Eric Blake  <ebb9@byu.net>
22825
22826         dirfd: fix prototype
22827         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22828         * lib/dirfd.c (dirfd): Likewise.
22829
22830         canonicalize: reduce memory usage
22831         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22832         allocation to size.
22833         Reported by Solar Designer <solar@openwall.com>.
22834
22835 2009-12-19  Bruno Haible  <bruno@clisp.org>
22836
22837         New module attribute 'Applicability'.
22838         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22839         * gnulib-tool: New option --extract-applicability.
22840         (func_usage): Document it.
22841         (sed_extract_prog): Recognize it.
22842         (func_get_applicability): New function.
22843         (func_import): Generalize handling of 'link-warning' module.
22844         * modules/link-warning (Applicability): New section.
22845         * modules/arg-nonnull (Applicability): New section.
22846         Repoted by Simon Josefsson <simon@josefsson.org>.
22847
22848 2009-12-19  Bruno Haible  <bruno@clisp.org>
22849
22850         fflush: tweak
22851         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22852         * lib/fseeko.c (rpl_fseeko): Likewise.
22853
22854 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22855
22856         * lib/gl_list.h: Fix typo in comment.
22857
22858 2009-12-16  Eric Blake  <ebb9@byu.net>
22859
22860         fcntl: use to simplify other modules
22861         * modules/cloexec (Depends-on): Add fcntl.
22862         * modules/fchdir (Depends-on): Likewise.
22863         * modules/fd-safer-flag (Depends-on): Likewise.
22864         * modules/unistd-safer (Depends-on): Likewise.
22865         * modules/dup3 (configure.ac): Set module indicator.
22866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22867         missing.
22868         * lib/fchdir.c (_gl_register_dup): Fix comment.
22869         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22870         * lib/dup-safer.c (dup_safer): Likewise.
22871         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22872         * lib/dup3.c (dup3): Likewise.
22873         * tests/test-fchdir.c (main): Enhance test.
22874         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22875
22876         fcntl: port portions of fcntl to mingw
22877         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22878         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22879         replacement for mingw.
22880         * modules/fcntl (Description): Update.
22881         (Depends-on): Add dup2.
22882         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22883         * modules/fcntl-h (Makefile.am): Substitute it.
22884         * lib/fcntl.in.h (fcntl): Update declaration.
22885         (F_DUPFD, F_GETFD): New macros, when needed.
22886         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22887         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22888         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22889         we now guarantee.
22890
22891         fcntl: work around cygwin bug in F_DUPFD
22892         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22893         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22894         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22895         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22896         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22897
22898         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22899         * modules/fcntl (Files): List new files.
22900         (configure.ac): Run a test.
22901         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22902         * lib/fcntl.c (rpl_fcntl): Likewise.
22903         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22904         (gl_FCNTL_H): Always replace fcntl.h.
22905         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22906         * lib/fcntl.in.h (fcntl): Declare replacement.
22907         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22908         needed, plus a witness.
22909         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22910         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22911         * tests/test-fcntl.c: New file.
22912         * modules/fcntl-tests: Likewise.
22913
22914         binary-io: avoid potential compilation warning
22915         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22916         directives.
22917
22918         fflush: avoid compilation error on NetBSD
22919         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22920         between off_t and fpos_t, since the latter is sometimes a struct.
22921         * lib/fseeko.c (rpl_fseeko): Likewise.
22922         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22923
22924 2009-12-15  Eric Blake  <ebb9@byu.net>
22925
22926         fcntl-h, stdio, sys_ioctl: fix declarations
22927         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22928         function must not take arguments.
22929         * lib/sys_ioctl.in.h (ioctl): Likewise.
22930         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22931         (open): Add a link warning.
22932
22933 2009-12-15  Jim Meyering  <meyering@redhat.com>
22934
22935         areadlink, areadlink-with-size: relax license to LGPLv2+
22936         * modules/areadlink (License): Relax to LGPLv2+.
22937         * modules/areadlink-with-size (License): Likewise.
22938
22939 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22940             Bruno Haible  <bruno@clisp.org>
22941
22942         *printf: Fix memory leak.
22943         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22944         * lib/vfprintf.c (vfprintf): Likewise.
22945         * lib/dprintf.c (dprintf): Likewise.
22946         * lib/vdprintf.c (vdprintf): Likewise.
22947
22948 2009-12-14  Eric Blake  <ebb9@byu.net>
22949
22950         accept4: adjust module dependencies
22951         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22952
22953         utimens: one more try at avoiding compiler warning
22954         * lib/utimens.c (lutimens): Lower scope of result.
22955
22956 2009-12-13  Bruno Haible  <bruno@clisp.org>
22957
22958         Move the malloc checking from module 'list' to new module 'xlist'.
22959         * modules/xlist: New file.
22960         * lib/gl_xlist.h: New file.
22961         * lib/gl_xlist.c: New file.
22962         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22963         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22964         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22965         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22966         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22967         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22968         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22969         gl_sortedlist_nx_add): New declarations.
22970         (struct gl_list_implementation): Rename and change methods accordingly.
22971         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22972         (gl_list_nx_create): Renamed from gl_list_create.
22973         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22974         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22975         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22976         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22977         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22978         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22979         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22980         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22981         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22982         gl_list_create_empty.
22983         (gl_list_nx_create): Renamed from gl_list_create.
22984         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22985         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22986         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22987         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22988         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22989         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22990         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22991         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22992         * lib/gl_array_list.c: Don't include xalloc.h.
22993         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22994         NULL upon out-of-memory.
22995         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22996         out-of-memory.
22997         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22998         Change return type to 'int'.
22999         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23000         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23001         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23002         upon out-of-memory.
23003         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23004         upon out-of-memory.
23005         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23006         upon out-of-memory.
23007         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23008         upon out-of-memory.
23009         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23010         out-of-memory.
23011         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23012         Update.
23013         (gl_array_list_implementation): Update.
23014         * lib/gl_carray_list.c: Don't include xalloc.h.
23015         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23016         Return NULL upon out-of-memory.
23017         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23018         out-of-memory.
23019         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23020         Change return type to 'int'.
23021         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23022         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23023         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23024         upon out-of-memory.
23025         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23026         upon out-of-memory.
23027         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23028         out-of-memory.
23029         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23030         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23031         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23032         Update.
23033         (gl_carray_list_implementation): Update.
23034         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23035         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23036         gl_linked_create_empty. Return NULL upon out-of-memory.
23037         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23038         out-of-memory.
23039         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23040         Change return type to 'int'. Return -1 upon out-of-memory.
23041         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23042         out-of-memory.
23043         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23044         upon out-of-memory.
23045         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23046         upon out-of-memory.
23047         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23048         NULL upon out-of-memory.
23049         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23050         upon out-of-memory.
23051         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23052         out-of-memory.
23053         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23054         Update.
23055         * lib/gl_linked_list.c: Don't include xalloc.h.
23056         (gl_linked_list_implementation): Update.
23057         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23058         (add_to_bucket): Change return type to 'int'.
23059         (gl_linkedhash_list_implementation): Update.
23060         * lib/gl_anytree_list1.h (free_subtree): New function.
23061         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23062         gl_tree_create_empty. Return NULL upon out-of-memory.
23063         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23064         Change return type to 'int'. Return -1 upon out-of-memory.
23065         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23066         out-of-memory.
23067         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23068         (gl_tree_remove_node): New function, moved here from
23069         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23070         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23071         Update.
23072         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23073         malloc, not xmalloc. Return NULL upon out-of-memory.
23074         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23075         out-of-memory.
23076         (gl_tree_remove_node_from_tree): New function, extracted from
23077         gl_tree_remove_node.
23078         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23079         upon out-of-memory.
23080         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23081         out-of-memory.
23082         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23083         upon out-of-memory.
23084         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23085         upon out-of-memory.
23086         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23087         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23088         not xmalloc. Return NULL upon out-of-memory.
23089         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23090         out-of-memory.
23091         (gl_tree_remove_node_from_tree): New function, extracted from
23092         gl_tree_remove_node.
23093         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23094         upon out-of-memory.
23095         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23096         out-of-memory.
23097         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23098         upon out-of-memory.
23099         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23100         upon out-of-memory.
23101         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23102         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23103         gl_anytree_list1.h before gl_anyavltree_list2.h.
23104         (gl_avltree_list_implementation): Update.
23105         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23106         gl_anytree_list1.h before gl_anyavltree_list2.h.
23107         (gl_rbtree_list_implementation): Update.
23108         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23109         Change return type to 'int'. Return -1 upon out-of-memory. Use
23110         __builtin_expect.
23111         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23112         (gl_avltreehash_list_implementation): Update.
23113         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23114         (gl_rbtreehash_list_implementation): Update.
23115         * modules/array-list (Depends-on): Remove xalloc.
23116         * modules/carray-list (Depends-on): Likewise.
23117         * modules/linked-list (Depends-on): Likewise.
23118         * modules/linkedhash-list (Depends-on): Likewise.
23119         * modules/avltree-list (Depends-on): Likewise.
23120         * modules/rbtree-list (Depends-on): Likewise.
23121         * modules/avltreehash-list (Depends-on): Likewise.
23122         * modules/rbtreehash-list (Depends-on): Likewise.
23123
23124         * modules/xsublist: New file.
23125         * lib/gl_xsublist.h: New file.
23126         * lib/gl_xsublist.c: New file.
23127         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23128         (gl_sublist_nx_create): New declaration.
23129         * lib/gl_sublist.c: Don't include xalloc.h.
23130         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23131         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23132         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23133         Change return type to 'int'. Return -1 upon out-of-memory.
23134         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23135         upon out-of-memory.
23136         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23137         NULL upon out-of-memory.
23138         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23139         upon out-of-memory.
23140         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23141         NULL upon out-of-memory.
23142         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23143         NULL upon out-of-memory.
23144         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23145         upon out-of-memory.
23146         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23147         (gl_sublist_list_implementation): Update.
23148         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23149         upon out-of-memory.
23150         * modules/sublist (Depends-on): Remove xalloc.
23151
23152         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23153         * tests/test-carray_list.c: Likewise.
23154         * tests/test-linked_list.c: Likewise.
23155         * tests/test-linkedhash_list.c: Likewise.
23156         * tests/test-avltree_list.c: Likewise.
23157         * tests/test-rbtree_list.c: Likewise.
23158         * tests/test-avltreehash_list.c: Likewise.
23159         * tests/test-rbtreehash_list.c: Likewise.
23160         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23161         * modules/carray-list-tests (Makefile.am): Likewise.
23162         * modules/linked-list-tests (Makefile.am): Likewise.
23163         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23164         * modules/avltree-list-tests (Makefile.am): Likewise.
23165         * modules/rbtree-list-tests (Makefile.am): Likewise.
23166         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23167         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23168
23169         * NEWS: Mention the changes.
23170
23171         * lib/clean-temp.c: Include gl_xlist.h.
23172         * modules/clean-temp (Depends-on): Add xlist.
23173
23174         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23175         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23176
23177         * tests/test-array_oset.c: Include gl_xlist.h.
23178         * modules/array-oset-tests (Depends-on): Add xlist.
23179
23180         Reported by José E. Marchesi <jemarch@gnu.org>.
23181
23182 2009-12-13  Bruno Haible  <bruno@clisp.org>
23183
23184         Move the malloc checking from module 'oset' to new module 'xoset'.
23185         * modules/xoset: New file.
23186         * lib/gl_xoset.h: New file.
23187         * lib/gl_xoset.c: New file.
23188         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23189         declarations.
23190         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23191         (struct gl_oset_implementation): Rename and change methods accordingly.
23192         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23193         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23194         'int'. Mark as __warn_unused_result__.
23195         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23196         gl_oset_create_empty.
23197         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23198         'int'.
23199         * lib/gl_array_oset.c: Don't include xalloc.h.
23200         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23201         malloc, not xmalloc.
23202         (grow): Change return type to 'int'. Don't call xalloc_die.
23203         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23204         to 'int'.
23205         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23206         'int'.
23207         (gl_array_oset_implementation): Update.
23208         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23209         gl_tree_create_empty.
23210         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23211         'int'.
23212         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23213         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23214         xmalloc.
23215         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23216         not xmalloc.
23217         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23218         xmalloc.
23219         (gl_avltree_oset_implementation): Update.
23220         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23221         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23222         xmalloc.
23223         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23224         not xmalloc.
23225         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23226         xmalloc.
23227         (gl_rbtree_oset_implementation): Update.
23228         * modules/array-oset (Depends-on): Remove xalloc.
23229         * modules/avltree-oset (Depends-on): Likewise.
23230         * modules/rbtree-oset (Depends-on): Likewise.
23231         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23232         * tests/test-avltree_oset.c: Likewise.
23233         * tests/test-rbtree_oset.c: Likewise.
23234         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23235         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23236         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23237         * NEWS: Mention the change.
23238
23239 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23240
23241         maint.mk: allow a project to override release-prep commands
23242         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23243         commands into a new rule.
23244         (release-prep): New rule.
23245         (release-prep-hook): New overridable variable.
23246
23247 2009-12-13  Bruno Haible  <bruno@clisp.org>
23248
23249         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23250
23251 2009-12-13  Jim Meyering  <meyering@redhat.com>
23252
23253         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23254         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23255
23256 2009-12-12  Bruno Haible  <bruno@clisp.org>
23257
23258         duplocale: Tweak.
23259         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23260
23261 2009-12-12  Karl Berry  <karl@gnu.org>
23262
23263         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23264
23265 2009-12-12  Bruno Haible  <bruno@clisp.org>
23266
23267         * m4/po.m4: Undo incorrect untabification.
23268
23269 2009-12-12  Bruno Haible  <bruno@clisp.org>
23270
23271         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23272         * modules/c-strtod (Depends-on): Add locale.
23273         * modules/c-strtold (Depends-on): Likewise.
23274
23275 2009-12-12  Bruno Haible  <bruno@clisp.org>
23276
23277         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23278
23279 2009-12-11  Eric Blake  <ebb9@byu.net>
23280
23281         setenv: relax requirement in light of POSIX ruling
23282         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23283         not NULL.
23284         * tests/test-setenv.c (main): Relax test.
23285         * tests/test-unsetenv.c (main): Likewise.
23286         * doc/posix-functions/setenv.texi (setenv): Document this.
23287         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23288
23289 2009-12-11  Bruno Haible  <bruno@clisp.org>
23290
23291         New module 'fd-safer-flag'.
23292         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23293         * lib/dup-safer.c (dup_safer_flag): Remove function.
23294         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23295         * lib/fd-safer.c (fd_safer_flag): Remove function.
23296         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23297         * modules/cloexec (configure.ac): Drop indicator macro.
23298         * modules/fd-safer-flag: New file.
23299         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23300         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23301         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23302
23303 2009-12-11  Bruno Haible  <bruno@clisp.org>
23304
23305         Tests for module 'nl_langinfo'.
23306         * modules/nl_langinfo-tests: New file.
23307         * tests/test-nl_langinfo.sh: New file.
23308         * tests/test-nl_langinfo.c: New file.
23309
23310         New module 'nl_langinfo'.
23311         * lib/nl_langinfo.c: New file.
23312         * m4/nl_langinfo.m4: New file.
23313         * modules/nl_langinfo: New file.
23314         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23315
23316 2009-12-11  Bruno Haible  <bruno@clisp.org>
23317
23318         Tests for module 'langinfo'.
23319         * modules/langinfo-tests: New file.
23320         * tests/test-langinfo.c: New file.
23321
23322         New module 'langinfo'.
23323         * lib/langinfo.in.h: New file.
23324         * m4/langinfo_h.m4: New file.
23325         * modules/langinfo: New file.
23326         * doc/posix-headers/langinfo.texi: Mention the new module.
23327
23328 2009-12-11  Bruno Haible  <bruno@clisp.org>
23329
23330         * lib/config.charset: Untabify.
23331
23332 2009-12-11  Bruno Haible  <bruno@clisp.org>
23333
23334         * modules/unistd-safer (configure.ac): Drop indicator macro.
23335
23336 2009-12-11  Bruno Haible  <bruno@clisp.org>
23337
23338         Move pipe2-safer code to its own file.
23339         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23340         * lib/pipe-safer.c (pipe2_safer): Remove function.
23341         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23342         (Makefile.am): Add it to lib_SOURCES.
23343
23344 2009-12-10  Bruno Haible  <bruno@clisp.org>
23345
23346         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23347
23348 2009-12-10  Bruno Haible  <bruno@clisp.org>
23349
23350         Declare which arguments expect non-NULL values, for GCC and clang.
23351         * build-aux/arg-nonnull.h: New file.
23352         * modules/arg-nonnull: New file.
23353         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23354         (inet_ntop, inet_pton): Use it.
23355         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23356         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23357         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23358         (open, openat): Use it.
23359         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23360         (fnmatch): Use it.
23361         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23362         (getopt, getopt_long, getopt_long_only): Use it.
23363         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23364         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23365         Use it.
23366         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23367         (iconv_open): Use it.
23368         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23369         (strtoimax, strtoumax): Use it.
23370         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23371         (duplocale): Use it.
23372         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23373         (frexp, frexpl): Use it.
23374         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23375         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23376         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23377         (tsearch, tfind, tdelete, twalk): Use it.
23378         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23379         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23380         sigpending): Use it.
23381         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23382         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23383         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23384         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23385         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23386         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23387         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23388         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23389         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23390         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23391         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23392         Use it.
23393         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23394         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23395         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23396         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23397         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23398         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23399         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23400         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23401         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23402         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23403         strtoull, unsetenv): Use it.
23404         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23405         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23406         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23407         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23408         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23409         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23410         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23411         (strcasecmp, strncasecmp): Use it.
23412         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23413         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23414         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23415         rpl_setsockopt): Use it.
23416         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23417         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23418         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23419         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23420         (gettimeofday): Use it.
23421         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23422         (times): Use it.
23423         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23424         (uname): Use it.
23425         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23426         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23427         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23428         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23429         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23430         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23431         unlinkat, write): Use it.
23432         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23433         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23434         * lib/argv-iter.h: Include arg-nonnull.h.
23435         (_ATTRIBUTE_NONNULL_): Remove macro.
23436         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23437         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23438         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23439         optimization.
23440         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23441         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23442         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23443         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23444         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23445         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23446         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23447         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23448         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23449         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23450         * modules/dirent (Depends-on): Add arg-nonnull.
23451         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23452         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23453         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23454         * modules/fnmatch (Depends-on): Add arg-nonnull.
23455         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23456         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23457         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23458         * modules/glob (Depends-on): Add arg-nonnull.
23459         (Makefile.am): Insert arg-nonnull.h into glob.h.
23460         * modules/iconv_open (Depends-on): Add arg-nonnull.
23461         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23462         * modules/inttypes (Depends-on): Add arg-nonnull.
23463         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23464         * modules/locale (Depends-on): Add arg-nonnull.
23465         (Makefile.am): Insert arg-nonnull.h into locale.h.
23466         * modules/math (Depends-on): Add arg-nonnull.
23467         (Makefile.am): Insert arg-nonnull.h into math.h.
23468         * modules/netdb (Depends-on): Add arg-nonnull.
23469         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23470         * modules/search (Depends-on): Add arg-nonnull.
23471         (Makefile.am): Insert arg-nonnull.h into search.h.
23472         * modules/signal (Depends-on): Add arg-nonnull.
23473         (Makefile.am): Insert arg-nonnull.h into signal.h.
23474         * modules/spawn (Depends-on): Add arg-nonnull.
23475         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23476         * modules/stdio (Depends-on): Add arg-nonnull.
23477         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23478         * modules/stdlib (Depends-on): Add arg-nonnull.
23479         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23480         * modules/string (Depends-on): Add arg-nonnull.
23481         (Makefile.am): Insert arg-nonnull.h into string.h.
23482         * modules/strings (Depends-on): Add arg-nonnull.
23483         (Makefile.am): Insert arg-nonnull.h into strings.h.
23484         * modules/sys_socket (Depends-on): Add arg-nonnull.
23485         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23486         * modules/sys_stat (Depends-on): Add arg-nonnull.
23487         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23488         * modules/sys_time (Depends-on): Add arg-nonnull.
23489         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23490         * modules/sys_times (Depends-on): Add arg-nonnull.
23491         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23492         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23493         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23494         * modules/time (Depends-on): Add arg-nonnull.
23495         (Makefile.am): Insert arg-nonnull.h into time.h.
23496         * modules/unistd (Depends-on): Add arg-nonnull.
23497         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23498         * modules/wchar (Depends-on): Add arg-nonnull.
23499         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23500         * modules/argv-iter (Depends-on): Add arg-nonnull.
23501         * tests/test-canonicalize.c (null_ptr): New function.
23502         (main): Use it.
23503         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23504         (main): Use it.
23505         * tests/test-memmem.c (null_ptr): New function.
23506         (main): Use it.
23507         Reported by Jim Meyering.
23508
23509 2009-12-10  Bruno Haible  <bruno@clisp.org>
23510
23511         Use spaces for indentation, not tabs.
23512         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23513         * m4/*.m4: Untabify.
23514         * build-aux/*.h: Untabify.
23515         * tests/**/*.[hc]: Untabify.
23516         * README: New section "Indent with spaces, not TABs", based on
23517         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23518         * NEWS: Mention the change.
23519
23520 2009-12-10  Bruno Haible  <bruno@clisp.org>
23521
23522         pty test: Fix link error.
23523         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23524         test_pty_LDADD.
23525
23526 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23527
23528         * modules/pty: New file.
23529         * modules/pty-tests: New file.
23530         * m4/pty.m4: New file.
23531         * tests/test-pty.c: New file.
23532         * doc/glibc-headers/pty.texi: Modified.
23533         * doc/glibc-functions/forkpty.texi: Modified.
23534         * doc/glibc-functions/openpty.texi: Modified.
23535
23536 2009-12-10  Bruno Haible  <bruno@clisp.org>
23537
23538         Avoid syntax error in C++ mode.
23539         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23540
23541 2009-12-10  Bruno Haible  <bruno@clisp.org>
23542
23543         Use sed with option -e.
23544         * gnulib-tool (func_version, func_emit_copyright_notice,
23545         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23546         option -e to sed.
23547         * modules/link-warning (Makefile.am): Likewise.
23548
23549 2009-12-10  Jim Meyering  <meyering@redhat.com>
23550
23551         mgetgroups: do not write bytes beyond end of malloc'd buffer
23552         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23553         username, we call getgroups with a one-element-shorter buffer,
23554         but still told it the length was original, max_n_groups.
23555
23556 2009-12-09  Eric Blake  <ebb9@byu.net>
23557
23558         cloexec: relax license
23559         * modules/cloexec (Maintainer): Add myself.
23560         (License): Use LGPL, not GPL.
23561
23562         link-warning: optimize generation
23563         * modules/link-warning (Makefile.am): Reduce process usage.
23564
23565 2009-12-09  Bruno Haible  <bruno@clisp.org>
23566
23567         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23568         workaround was added on 2009-11-17.
23569
23570 2009-12-09  Jim Meyering  <meyering@redhat.com>
23571             Bruno Haible  <bruno@clisp.org>
23572
23573         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23574         * modules/link-warning (Makefile.am): Make the comment-removing sed
23575         command more robust in the face of bootstrap-prepended comment lines.
23576
23577 2009-12-09  Bruno Haible  <bruno@clisp.org>
23578
23579         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23580         most one group.
23581
23582 2009-12-09  Simon Josefsson <simon@josefsson.org>
23583             Bruno Haible  <bruno@clisp.org>
23584
23585         * build-aux/link-warning.h: Add copyright notice.
23586         * modules/link-warning (Makefile.am): Generate link-warning.h from
23587         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23588         * NEWS: Mention change in link-warning module.
23589         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23590         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23591         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23592         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23593         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23594         * modules/math (Makefile.am): Add dependency to math.h.
23595         * modules/search (Makefile.am): Add dependency to search.h.
23596         * modules/signal (Makefile.am): Add dependency to signal.h.
23597         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23598         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23599         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23600         * modules/string (Makefile.am): Add dependency to string.h.
23601         * modules/strings (Makefile.am): Add dependency to strings.h.
23602         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23603         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23604         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23605         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23606         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23607         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23608         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23609         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23610         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23611
23612 2009-12-09  Bruno Haible  <bruno@clisp.org>
23613
23614         fchdir: Optimize away rpl_fstat when possible.
23615         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23616         REPLACE_OPEN_DIRECTORY.
23617         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23618
23619 2009-12-09  Bruno Haible  <bruno@clisp.org>
23620
23621         * lib/fchdir.c: Update comment.
23622
23623 2009-12-09  Bruno Haible  <bruno@clisp.org>
23624
23625         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23626
23627 2009-12-08  Eric Blake  <ebb9@byu.net>
23628
23629         fchdir: avoid memory leak on re-registration.
23630         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23631
23632 2009-12-08  Jim Meyering  <meyering@redhat.com>
23633
23634         init.sh: avoid Solaris 10 /bin/sh portability problem
23635         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23636         sourced script:
23637           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23638           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23639           bar
23640         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23641         and two tests used that idiom.
23642         * tests/init.sh: Update suggested usage comments.
23643         (path_prepend_): New function, to be used in place
23644         of the --src-path=DIR option.
23645         (setup_): Move PATH-prepending code into path_prepend_.
23646         * tests/test-pread.sh: Adapt to new usage.
23647         * tests/test-xalloc-die.sh: Likewise.
23648
23649 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23650
23651         * doc/gnulib.texi (Glibc pty.h): Add.
23652         * doc/glibc-functions/forkpty.texi: Add.
23653         * doc/glibc-functions/openpty.texi: Add.
23654         Suggested by Bruno Haible.
23655
23656 2009-12-08  Eric Blake  <ebb9@byu.net>
23657
23658         fchdir: fix logic bugs
23659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23660         * tests/test-fchdir.c (main): Enhance test.
23661         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23662         is in use.
23663
23664         dup2: fix logic bugs
23665         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23666         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23667         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23668         exists.
23669         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23670
23671 2009-12-07  Eric Blake  <ebb9@byu.net>
23672
23673         unlink: fix m4 detection
23674         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23675
23676         unistd-safer: add unit test
23677         * modules/unistd-safer-tests: New file.
23678         * tests/test-dup-safer.c: Likewise.
23679         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23680         * tests/test-dup2.c (setmode): Likewise.
23681         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23682
23683         cloexec: preserve text vs. binary across dup_cloexec
23684         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23685         mode.
23686         * modules/dup2-tests (Depends-on): Add binary-io.
23687         * modules/cloexec-tests (Depends-on): Likewise.
23688         * tests/test-dup2.c (setmode, is_mode): New helpers.
23689         (main): Add tests that translation mode is preserved.
23690         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23691         Reported by Bruno Haible.
23692
23693         mgetgroups: reduce duplicate listings
23694         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23695         resulting array.
23696         * tests/test-chown.h (test_chown): Simplify client.
23697         * tests/test-lchown.h (test_lchown): Likewise.
23698
23699 2009-12-06  Bruno Haible  <bruno@clisp.org>
23700
23701         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23702         value.
23703
23704 2009-12-06  Bruno Haible  <bruno@clisp.org>
23705
23706         * lib/progname.c: Include stdio.h, stdlib.h.
23707         (set_program_name): Reject a NULL argument.
23708
23709 2009-12-05  Eric Blake  <ebb9@byu.net>
23710
23711         pipe2-safer: new module
23712         * modules/pipe2-safer: New file.
23713         * lib/unistd-safer.h (pipe2_safer): New prototype.
23714         * lib/unistd--.h (pipe2): New wrapper.
23715         * lib/pipe-safer.c (pipe2_safer): New function.
23716         * modules/pipe (Depends-on): Add pipe2-safer.
23717         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23718
23719         stdlib-safer: preserve cloexec flag for mkostemp[s]
23720         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23721         fd_safer_flag.
23722
23723         unistd-safer: allow preservation of cloexec status via flag
23724         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23725         prototypes.
23726         * lib/dup-safer.c (dup_safer_flag): New function.
23727         * lib/fd-safer.c (fd_safer_flag): Likewise.
23728         * modules/cloexec (configure.ac): Set witness.
23729
23730         test-dup2: enhance test
23731         * modules/dup2-tests (Depends-on): Add cloexec.
23732         * tests/test-dup2.c (main): Enhance test.
23733
23734         cloexec: add dup_cloexec
23735         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23736         header and comments.
23737         * lib/cloexec.c (set_cloexec_flag): Add comments.
23738         (dup_cloexec): New function, with mingw implementation borrowed
23739         from...
23740         * lib/w32spawn.h (dup_noinherit): ...here.
23741         * modules/execute (Depends-on): Add cloexec.
23742         * modules/pipe (Depends-on): Likewise.
23743         * modules/cloexec (Depends-on): Add dup2.
23744         * modules/cloexec-tests (Files): New file.
23745         * tests/test-cloexec.c: Likewise.
23746
23747         test-xalloc-die: fix test for mingw
23748         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23749         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23750         directory and .exe suffix off argv[0] output.
23751
23752         test-fseeko: fix test for mingw
23753         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23754         than undefining fseek, so test will pass on mingw.
23755
23756 2009-12-05  Bruno Haible  <bruno@clisp.org>
23757
23758         * lib/progname.h (set_program_name): Clarify specification.
23759         * lib/progname.c (set_program_name): Likewise.
23760         Reported by Jim Meyering.
23761
23762 2009-12-05  Jim Meyering  <meyering@redhat.com>
23763
23764         maint.mk: backslash-escape parens in default regexp
23765         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23766         backslash-escape the literal parentheses.
23767
23768         maint.mk: news-date-check: use grep -E
23769         * top/maint.mk (today): Define a Make variable, not a...
23770         (news-date-check): ...shell variable.
23771         (news-date-regexp): Use the Make variable.
23772         Use grep's -E option.  Change the failing diagnostic to mention
23773         the variable, $(news-date-regexp).
23774
23775 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23776
23777         maintainer-makefile: allow customization of NEWS entry format
23778         * top/maint.mk (news-date-regexp): New overridable variable.
23779         (news-date-check): Use it.
23780
23781 2009-12-04  Eric Blake  <ebb9@byu.net>
23782
23783         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23784         * lib/mgetgroups.h (xgetgroups): New prototype.
23785         * lib/mgetgroups.c (xgetgroups): New wrapper.
23786         (mgetgroups): Handle ENOSYS.
23787         * modules/mgetgroups (Depends-on): Add realloc.
23788         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23789
23790         mgetgroups: avoid argument promotion issues with -1
23791         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23792         for invalid gid_t.
23793         * tests/test-chown.h (getegid, test_chown): Likewise.
23794         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23795
23796 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23797
23798         exclude: Fix header file problems.
23799         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23800
23801 2009-12-01  Jim Meyering  <meyering@redhat.com>
23802
23803         fts: fts_open: do not let an empty string cause immediate failure
23804         This is required in support of GNU rm, for which the command
23805         "rm A '' B" must process and remove both A and B, in spite of
23806         the empty string argument.
23807         * lib/fts.c (fts_open): Do not let the presence of an empty string
23808         cause fts_open to fail immediately.  Most fts-using tools must be
23809         able to process all arguments, in order, and can be expected to
23810         diagnose such arguments themselves.
23811
23812 2009-11-30  Eric Blake  <ebb9@byu.net>
23813
23814         utimens: fix compilation error
23815         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23816         Declare variable at right scope.
23817
23818 2009-11-29  Jim Meyering  <meyering@redhat.com>
23819
23820         bootstrap: handle perl-5.11's changed --version output
23821         * build-aux/bootstrap (get_version): Handle perl separately,
23822         since perl-5.11's --version output is different.
23823
23824 2009-11-28  Jim Meyering  <meyering@redhat.com>
23825
23826         userspec: depend on the inttostr module, too
23827         * modules/userspec (Depends-on): Add inttostr.
23828
23829         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23830         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23831         number of MAXUID when it evaluates to (uid_t) -1.
23832         Likewise for group ID.  Reported by Matt McCutchen in
23833         <http://savannah.gnu.org/bugs/?28113>
23834
23835         userspec: reformat to use spaces, not TABs
23836         * lib/userspec.c: Expand TABs to spaces.
23837         Add Emacs' "indent-tabs-mode: nil" hint.
23838
23839 2009-11-27  Eric Blake  <ebb9@byu.net>
23840
23841         getopt-gnu: flush out another BSD bug
23842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23843         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23844         flush out BSD bug.
23845         * tests/test-getopt.h (test_getopt): End lists with NULL.
23846         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23847         (test_getopt_long_posix): Enhance test.
23848         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23849         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23850         getopt-gnu.
23851         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23852         Likewise.
23853
23854 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23855
23856         * modules/idpriv-droptemp-tests (Notice): Fix text.
23857
23858 2009-11-27  Jim Meyering  <meyering@redhat.com>
23859
23860         test-xalloc-die: avoid spurious failure due to libtool argv difference
23861         In a libtool-enabled project, this test would fail due to a difference
23862         in the emitted program name, e.g.,
23863         -test-xalloc-die: memory exhausted
23864         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23865         Use program to avoid that.
23866         * modules/xalloc-die-tests (Depends-on): Add progname.
23867         * tests/test-xalloc-die.c: Include progname.h".
23868         (program_name): Remove decl.
23869         (main): Call set_program_name.
23870         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23871
23872 2009-11-26  Richard Jones  <rjones@redhat.com>
23873
23874         w32sock: leave win32 error in place.
23875         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23876
23877 2009-11-26  Eric Blake  <ebb9@byu.net>
23878
23879         init.sh: suggest to use skip_ and fail_ functions in comments
23880         * tests/init.sh: Add a sentence.
23881
23882 2009-11-25  Bruno Haible  <bruno@clisp.org>
23883
23884         init.sh: add documentation in comments
23885         * tests/init.sh: Add some developer and user documentation.
23886
23887 2009-11-26  Jim Meyering  <meyering@redhat.com>
23888
23889         init.sh: accommodate even those who specify bogus srcdir manually
23890         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23891         configure-time tests to be sanitized, so that there is no need to
23892         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23893         (with no double quotes) suffices.  However, since tests may be
23894         invoked manually, and since you may explicitly set srcdir to the
23895         name of a directory containing spaces, do quote its uses here.
23896         * tests/test-pread.sh: Likewise.
23897         Suggested by Bruno Haible.
23898
23899         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23900         * tests/test-pread.sh: Write no data into the pipe, because
23901         test-pread actually reads none.  This avoids a diagnostic,
23902         "bash: echo: write error: Broken pipe", that arises in the unusual
23903         event something is ignoring SIGPIPE, and might be interpreted
23904         as some sort of failure.  Reported by Bruno Haible.
23905
23906 2009-11-25  Jim Meyering  <meyering@redhat.com>
23907
23908         test-pread: cover failure with ESPIPE and EINVAL
23909         * tests/test-pread.c (main): Test for failure, too.
23910         * tests/test-pread.sh: Invoke with stdin on a pipe.
23911         Suggested by Eric Blake.
23912
23913         pread: improvement and fix
23914         * modules/pread (Depends-on): Depend on lseek, for portability to
23915         e.g., mingw.  Suggested by Eric Blake.
23916         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23917
23918         unistd.in.h: correct declaration of pread
23919         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23920         Reported by Richard W.M. Jones.
23921
23922         test-pread.sh: distribute the test script
23923         * modules/pread-tests (Files): Include test-pread.sh.
23924
23925         test-pread.sh: clean up
23926         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23927         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23928         That is unnecessary, since it's always ".".
23929         Suggestion from Eric Blake.
23930
23931         test-pread.sh: make executable
23932         * tests/test-pread.sh: Set executable bit.
23933         Reported by Eric Blake.
23934
23935         correct typo in test-pread.sh
23936         * tests/test-pread.sh: Add #! line.
23937
23938         test pread
23939         * tests/test-pread.c: New file.
23940         * tests/test-pread.sh: Likewise.
23941         * modules/pread-tests: Likewise.
23942
23943         pread: new module
23944         * modules/pread: New file.
23945         * lib/unistd.in.h (pread): Define/declare.
23946         * lib/pread.c (pread): New file.
23947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23948         * modules/unistd (Makefile.am): Substitute witnesses.
23949         * doc/posix-functions/pread.texi (pread): Update.
23950         * MODULES.html.sh: Add pread.
23951
23952 2009-11-25  Jim Meyering  <meyering@redhat.com>
23953
23954         tests/init.sh: new file to be used via most *.sh tests
23955         * tests/init.sh: New file.
23956
23957 2009-11-25  Eric Blake  <ebb9@byu.net>
23958
23959         utimens: work around older Linux failure with symlinks
23960         * lib/utimens.c (lutimensat_works_really): New variable.
23961         (fdutimens, lutimens): Use it to manage kernels that support
23962         nanosecond times on files, but not on symlinks.
23963         Reported by OndÅ™ej Vašík.
23964
23965         utimes: fix configure grammar
23966         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23967
23968 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23969
23970         regex: Fix fastmap for multibyte character ranges.
23971         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23972         characters when a multibyte character range is included.
23973
23974 2009-11-22  Andy Wingo  <wingo@pobox.com>
23975
23976         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23977         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23978
23979 2009-11-24  Bruno Haible  <bruno@clisp.org>
23980
23981         doc: Most *_l functions exist in MacOS X 10.5.
23982         * doc/posix-functions/duplocale.texi: Update platforms list.
23983         * doc/posix-functions/freelocale.texi: Likewise.
23984         * doc/posix-functions/newlocale.texi: Likewise.
23985         * doc/posix-functions/uselocale.texi: Likewise.
23986         * doc/posix-functions/isalnum_l.texi: Likewise.
23987         * doc/posix-functions/isalpha_l.texi: Likewise.
23988         * doc/posix-functions/isblank_l.texi: Likewise.
23989         * doc/posix-functions/iscntrl_l.texi: Likewise.
23990         * doc/posix-functions/isdigit_l.texi: Likewise.
23991         * doc/posix-functions/isgraph_l.texi: Likewise.
23992         * doc/posix-functions/islower_l.texi: Likewise.
23993         * doc/posix-functions/isprint_l.texi: Likewise.
23994         * doc/posix-functions/ispunct_l.texi: Likewise.
23995         * doc/posix-functions/isspace_l.texi: Likewise.
23996         * doc/posix-functions/isupper_l.texi: Likewise.
23997         * doc/posix-functions/iswalnum_l.texi: Likewise.
23998         * doc/posix-functions/iswalpha_l.texi: Likewise.
23999         * doc/posix-functions/iswblank_l.texi: Likewise.
24000         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24001         * doc/posix-functions/iswctype_l.texi: Likewise.
24002         * doc/posix-functions/iswdigit_l.texi: Likewise.
24003         * doc/posix-functions/iswgraph_l.texi: Likewise.
24004         * doc/posix-functions/iswlower_l.texi: Likewise.
24005         * doc/posix-functions/iswprint_l.texi: Likewise.
24006         * doc/posix-functions/iswpunct_l.texi: Likewise.
24007         * doc/posix-functions/iswspace_l.texi: Likewise.
24008         * doc/posix-functions/iswupper_l.texi: Likewise.
24009         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24010         * doc/posix-functions/isxdigit_l.texi: Likewise.
24011         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24012         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24013         * doc/posix-functions/strcoll_l.texi: Likewise.
24014         * doc/posix-functions/strfmon_l.texi: Likewise.
24015         * doc/posix-functions/strftime_l.texi: Likewise.
24016         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24017         * doc/posix-functions/strxfrm_l.texi: Likewise.
24018         * doc/posix-functions/tolower_l.texi: Likewise.
24019         * doc/posix-functions/toupper_l.texi: Likewise.
24020         * doc/posix-functions/towctrans_l.texi: Likewise.
24021         * doc/posix-functions/towlower_l.texi: Likewise.
24022         * doc/posix-functions/towupper_l.texi: Likewise.
24023         * doc/posix-functions/wcscoll_l.texi: Likewise.
24024         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24025         * doc/posix-functions/wctrans_l.texi: Likewise.
24026         * doc/posix-functions/wctype_l.texi: Likewise.
24027         * doc/glibc-functions/strptime_l.texi: Likewise.
24028         * doc/glibc-functions/strtod_l.texi: Likewise.
24029         * doc/glibc-functions/strtof_l.texi: Likewise.
24030         * doc/glibc-functions/strtol_l.texi: Likewise.
24031         * doc/glibc-functions/strtold_l.texi: Likewise.
24032         * doc/glibc-functions/strtoll_l.texi: Likewise.
24033         * doc/glibc-functions/strtoul_l.texi: Likewise.
24034         * doc/glibc-functions/strtoull_l.texi: Likewise.
24035         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24036         * doc/glibc-functions/wcstod_l.texi: Likewise.
24037         * doc/glibc-functions/wcstof_l.texi: Likewise.
24038         * doc/glibc-functions/wcstol_l.texi: Likewise.
24039         * doc/glibc-functions/wcstold_l.texi: Likewise.
24040         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24041         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24042         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24043
24044 2009-11-24  Bruno Haible  <bruno@clisp.org>
24045
24046         duplocale: Fix logic bug.
24047         * lib/duplocale.c: Don't include <langinfo.h>.
24048         (_NL_LOCALE_NAME): Remove macro.
24049         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24050         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24051
24052 2009-11-23  Jim Meyering  <meyering@redhat.com>
24053
24054         test-update-copyright: don't hard-code /usr/bin/perl
24055         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24056         perl to print the current year.  Gilles Espinasse reported that
24057         the replaced use of perl was hard-coded as /usr/bin/perl.
24058
24059 2009-11-23  Bruno Haible  <bruno@clisp.org>
24060
24061         duplocale: Add support for glibc 2.3.x.
24062         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24063
24064 2009-11-22  Bruno Haible  <bruno@clisp.org>
24065
24066         vasnprintf: Tiny optimization.
24067         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24068         MacOS X.
24069
24070 2009-11-22  Bruno Haible  <bruno@clisp.org>
24071
24072         Tests for module 'duplocale'.
24073         * modules/duplocale-tests: New file.
24074         * tests/test-duplocale.c: New file.
24075
24076         New module 'duplocale'.
24077         * m4/duplocale.m4: New file.
24078         * lib/locale.in.h (duplocale): New declaration.
24079         * lib/duplocale.c: New file.
24080         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24081         gl_LOCALE_H_DEFAULTS): New macros.
24082         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24083         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24084         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24085         REPLACE_DUPLOCALE.
24086         * modules/duplocale: New file.
24087         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24088
24089 2009-11-22  Bruno Haible  <bruno@clisp.org>
24090
24091         * modules/locale-tests (configure.ac): Test for newlocale function.
24092         * tests/test-locale.c: When the system has extended locale functions,
24093         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24094
24095         locale: Make locale_t available when possible.
24096         * lib/locale.in.h: Include <xlocale.h> when it exists.
24097         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24098         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24099         * modules/locale (Depends-on): Add extensions.
24100         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24101         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24102
24103 2009-11-22  Bruno Haible  <bruno@clisp.org>
24104
24105         Add comments.
24106         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24107         invocation.
24108         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24109         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24110         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24111
24112 2009-11-22  Bruno Haible  <bruno@clisp.org>
24113
24114         error: account for the possibility of freopen (stdout).
24115         * lib/error.c: Include <unistd.h>.
24116         (flush_stdout): New function, extracted from error and error_at_line.
24117         Determine stdout's fd dynamically.
24118         (error, error_at_line): Invoke flush_stdout.
24119         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24120         * modules/error (Depends-on): Add unistd.
24121
24122 2009-11-22  Bruno Haible  <bruno@clisp.org>
24123
24124         diffseq: Add comment.
24125         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24126
24127 2009-11-22  Jim Meyering  <meyering@redhat.com>
24128
24129         c-stack: avoid defining an unused static function
24130         * lib/c-stack.c (find_stack_direction): Do not define this function
24131         when it will not be used.
24132
24133         diffseq: avoid spurious gcc warnings
24134         * lib/diffseq.h (IF_LINT2): Define.
24135         (compareseq): Use it to initialize two members of "part".
24136         This avoids two used-uninitialized warnings.
24137
24138 2009-11-21  Jim Meyering  <meyering@redhat.com>
24139
24140         c-stack: avoid "ignoring return value of `write'" warning
24141         * lib/c-stack.c: Include "ignore-value.h".
24142         (die): Explicitly ignore each write return value.
24143         * modules/c-stack (Depends-on): Add ignore-value.
24144
24145 2009-11-21  Bruno Haible  <bruno@clisp.org>
24146
24147         diffseq: reduce scope of variable 'best'.
24148         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24149         variable, earlier used for two different purposes.
24150
24151 2009-11-21  Jim Meyering  <meyering@redhat.com>
24152
24153         diffseq: remove useless assignment to "best"
24154         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24155         assignment.  At that point "best" is already guaranteed to be zero.
24156
24157 2009-11-20  Eric Blake  <ebb9@byu.net>
24158
24159         build: mention ftp redirector in release announcements
24160         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24161         values that used to come from cfg.mk; mention FTP redirect URL.
24162         * build-aux/announce-gen: Mention the mirror list.
24163         Suggested by Karl Berry.
24164
24165         nanosleep: improve port to mingw
24166         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24168         LIB_NANOSLEEP, but only when needed.
24169         * modules/select (Link): Document LIBSOCKET.
24170         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24171         enough.
24172
24173         nanosleep: work around cygwin bug
24174         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24175         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24176         bug.
24177         (getnow): Delete, not needed.
24178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24179         LIB_CLOCK_GETTIME.
24180         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24181         clock-time, gettime.
24182         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24183         bug.
24184         * modules/nanosleep-tests: New test.
24185         * tests/test-nanosleep.c: New file.
24186
24187         sleep: work around cygwin bug
24188         * lib/sleep.c (rpl_sleep): Work around the bug.
24189         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24190         (gl_PREREQ_SLEEP): Delete unused macro.
24191         * modules/sleep (Depends-on): Add verify.
24192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24193         * modules/unistd (Makefile.am): Substitute witness.
24194         * lib/unistd.in.h (sleep): Update prototype.
24195         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24196         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24197         * modules/sleep-tests (Depends-on): Check for alarm.
24198
24199 2009-11-20  Jim Meyering  <meyering@redhat.com>
24200
24201         maint.mk: improve sc_prohibit_magic_number_exit
24202         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24203         so it does not match uses like System.exit(1).
24204         Add comments showing how to correct all offenders.
24205
24206 2009-11-19  Eric Blake  <ebb9@byu.net>
24207
24208         xalloc-die-tests: add missing library
24209         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24210
24211         test-xvasprintf: silence compiler warnings
24212         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24213         empty string from gcc.
24214
24215 2009-11-19  Jim Meyering  <meyering@redhat.com>
24216
24217         xfreopen: new module, from coreutils
24218         * modules/xfreopen: New module.
24219         * lib/xfreopen.c: New file.
24220         * lib/xfreopen.h: New file.
24221         * MODULES.html.sh (File stream based Input/Output"): Add it.
24222
24223 2009-11-19  Eric Blake  <ebb9@byu.net>
24224
24225         manywarnings: depend on warnings
24226         * modules/manywarnings (Depends-on): Add warnings.
24227
24228         build: avoid compiler warnings
24229         * lib/select.c (rpl_select): Delete unused variable.
24230         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24231
24232 2009-11-18  Eric Blake  <ebb9@byu.net>
24233
24234         tests: avoid false negative with --with-packager
24235         * tests/test-version-etc.sh: Discard packager information.
24236         * tests/test-argp-version-etc-1.sh: Likewise.
24237         Reported by Mike Frysinger.
24238
24239         utimens: fix regression on Solaris
24240         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24241         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24242         can only change fd timestamps via futimesat.  Instead, use an
24243         additional witness macro to avoid BSD bug.
24244         Reported by Jim Meyering.
24245
24246 2009-11-17  Eric Blake  <ebb9@byu.net>
24247
24248         usleep: use it to simplify tests
24249         * modules/stat-time-tests (Depends-on): Add usleep.
24250         (configure.ac): Drop usleep check.
24251         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24252         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24253         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24254         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24255         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24256         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24257         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24258         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24259         Likewise.
24260         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24261         * tests/test-lchown.h (nap): Likewise.
24262         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24263         * tests/test-stat-time.c (nap): Likewise.
24264         * tests/test-utimens-common.h (nap): Update comments.
24265
24266         usleep: new module
24267         * modules/usleep: New file.
24268         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24269         * lib/usleep.c (usleep): Likewise.
24270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24271         * modules/unistd (Makefile.am): Substitute witnesses.
24272         * lib/unistd.in.h (usleep): Add declaration.
24273         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24274         * MODULES.html.sh (Date and time): Likewise.
24275         * modules/usleep-tests (Depends-on): New test.
24276         * tests/test-usleep.c: New file.
24277
24278         chown: work around OpenBSD bug
24279         * lib/chown.c (rpl_chown): Work around the bug.
24280         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24281         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24283         * modules/chown (Depends-on): Add stdbool.
24284         * modules/lchown (Depends-on): Likewise.
24285         * doc/posix-functions/chown.texi (chown): Document the bug.
24286         * doc/posix-functions/lchown.texi (lchown): Likewise.
24287         * tests/test-lchown.h (test_chown): Relax test.
24288
24289         mkstemp: avoid conflict with C++ keyword template
24290         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24291         * lib/mkostemp.c (mkostemp): Likewise.
24292         * lib/mkostemps.c (mkostemps): Likewise.
24293         * lib/mkstemp.c (mkstemp): Likewise.
24294         * lib/mkstemps.c (mkstemps): Likewise.
24295
24296         xalloc-die-tests: optimize
24297         * tests/test-xalloc-die.sh: Reduce number of processes.
24298
24299 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24300
24301         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24302         patch from ludo@gnu.org (Ludovic Courtès).
24303
24304 2009-11-17  Jim Meyering  <meyering@redhat.com>
24305
24306         version-etc: use proper license string
24307         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24308         * modules/version-etc-fsf: Likewise.
24309
24310 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24311
24312         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24313         printed to stdout.  Deal with EOL differences.
24314
24315 2009-11-17  Eric Blake  <ebb9@byu.net>
24316
24317         unsetenv: work around Solaris bug
24318         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24319         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24320         Reported by Jim Meyering.
24321
24322         vasnprintf: avoid compiler warnings
24323         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24324         variables.
24325         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24326
24327 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24328
24329         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24330         settings since xalloc-die is no longer the self test,
24331         xalloc-die.sh is.
24332
24333 2009-11-17  Jim Meyering  <meyering@redhat.com>
24334
24335         test-xalloc-die.sh: make the code agree with the commit log
24336         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24337         at the end, just in case you happen to have a test-xalloc-die
24338         program in some other PATH directory.
24339
24340         test-xalloc-die.sh: fix a portability bug
24341         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24342         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24343         Otherwise, argv[0] (as often seen in diagnostics) would be too
24344         system-dependent, sometimes with, and sometimes without the leading "./".
24345
24346         version-etc-fsf: relax license to LGPLv3+
24347         * modules/version-etc-fsf (License): Relax license.
24348
24349 2009-11-16  Eric Blake  <ebb9@byu.net>
24350
24351         xalloc-die-tests: avoid printing null pointer
24352         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24353         shell script.
24354         * tests/test-xalloc-die.c (program_name): Declare.
24355         * tests/test-xalloc-die.sh (tmpfiles): New file.
24356
24357         setenv, unsetenv: work around various bugs
24358         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24359         (setenv) [HAVE_SETENV]: Work around bugs.
24360         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24361         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24362         for bugs.
24363         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24364         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24366         * modules/stdlib (Makefile.am): Update substitutions.
24367         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24368         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24369         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24370         * modules/setenv-tests: New test.
24371         * modules/unsetenv-tests: Likewise.
24372         * tests/test-setenv.c: New file.
24373         * tests/test-unsetenv.c: Likewise.
24374
24375 2009-11-16  Jim Meyering  <meyering@redhat.com>
24376
24377         version-etc: relax license to LGPLv3+
24378         * modules/version-etc (License): Relax license.
24379
24380         better AC_REQUIRE expanded-before-required-warning avoidance
24381         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24382         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24383         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24384         which is no longer needed.
24385
24386 2009-11-16  Eric Blake  <ebb9@byu.net>
24387
24388         test-freading: clean up temporary file
24389         * tests/test-freading.c (main): Remove file on success, and use
24390         ASSERT more liberally.
24391         Reported by Jim Meyering.
24392
24393 2009-11-16  Jim Meyering  <meyering@redhat.com>
24394
24395         avoid new AC_REQUIRE expanded-before-required warnings
24396         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24397         merely using it.
24398         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24399         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24400
24401 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24402
24403         * tests/test-xalloc-die.c: New file.
24404         * modules/xalloc-die-tests: New file.
24405         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24406         XFAIL_TESTS so it can be appended by modules.
24407
24408 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24409
24410         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24411         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24412
24413 2009-11-14  Eric Blake  <ebb9@byu.net>
24414
24415         fnmatch: avoid compiler warning
24416         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24417         to silence compiler warning about mismatch signedness in ?:.
24418         Reported by Robert Millan.
24419
24420         intprops: add double-inclusion guard
24421         * lib/intprops.h: Allow idempotent includes.
24422         Suggested by Bruce Korb.
24423
24424         openat: detect Solaris fchownat bug
24425         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24426         penalizing glibc chownat when only lchownat is broken.
24427         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24428         trailing slash bugs.
24429         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24430         * modules/openat-tests (Files): Include more files.
24431         (Depends-on): Add mgetgroups, sleep, stat-time.
24432         (configure.ac): Add additional checks.
24433         (Makefile.am): Build new test.
24434         * tests/test-fchownat.c: New file.
24435
24436         lchown: detect Solaris and FreeBSD bug
24437         * lib/lchown.c (rpl_lchown): Work around bug.
24438         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24440         * modules/unistd (Makefile.am): Populate it.
24441         * lib/unistd.in.h (lchown): Update declaration.
24442         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24443         * modules/lchown-tests: New file.
24444         * tests/test-lchown.h (test_lchown): Likewise.
24445         * tests/test-lchown.c (main): Likewise.
24446
24447         chown: detect Solaris and FreeBSD bug
24448         * lib/chown.c (rpl_chown): Work around bug.
24449         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24450         (gl_PREREQ_CHOWN): Delete.
24451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24452         * modules/unistd (Makefile.am): Populate it.
24453         * lib/unistd.in.h (chown): Update declaration.
24454         * lib/lchown.c (chown): Update client.
24455         * modules/lchown (Depends-on): Add lstat.
24456         * doc/posix-functions/chown.texi (chown): Document the bug.
24457         * doc/posix-functions/getgroups.texi (getgroups): Document
24458         getgroups pitfall.
24459         * modules/chown-tests: New file.
24460         * tests/test-chown.h (test_chown): Likewise.
24461         * tests/test-chown.c (main): Likewise.
24462
24463 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24464
24465         gnulib-tool: correctly detect absence of m4 directories
24466         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24467
24468 2009-11-14  Jim Meyering  <meyering@redhat.com>
24469
24470         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24471         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24472
24473 2009-11-14  John W. Eaton  <jwe@gnu.org>
24474
24475         strftime.h: wrap funtion declaration in extern "C" block
24476         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24477
24478 2009-11-13  Eric Blake  <ebb9@byu.net>
24479
24480         getgroups: avoid compiler warning
24481         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24482
24483         getgroups: work around FreeBSD bug
24484         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24485         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24486         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24487         * tests/test-getgroups.c (main): Fix buffer overrun.
24488
24489         getgroups: avoid compilation failure
24490         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24491         * modules/getgroups (Depends-on): Add stdint.
24492
24493 2009-11-13  Jim Meyering  <meyering@redhat.com>
24494
24495         test-getgroups: avoid compilation failure
24496         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24497
24498 2009-11-13  Eric Blake  <ebb9@byu.net>
24499
24500         mgetgroups: new module, taken from coreutils
24501         * modules/mgetgroups: New file.
24502         * lib/mgetgroups.h: Likewise.
24503         * lib/mgetgroups.c (mgetgroups): Likewise.
24504         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24505         * MODULES.html.sh (Users and groups): Mention it.
24506
24507         getgroups: don't expose GETGROUPS_T to user
24508         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24509         an element at a time if GETGROUPS_T is wrong size.
24510         * lib/getugroups.h (getugroups): Change signature.
24511         * lib/unistd.in.h (getgroups): Likewise.
24512         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24513         signature needs fixing.
24514         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24515         AC_TYPE_GETGROUPS.
24516         * modules/group-member (Depends-on): Add getgroups.
24517         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24518         (group_member): Rely on getgroups replacement.
24519         * lib/getugroups.c (getugroups): Use gid_t.
24520         * tests/test-getgroups.c (main): Likewise.
24521         * NEWS: Mention the signature change.
24522         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24523         problem with signature.
24524         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24525         GETGROUPS_T is still useful for setgroups.
24526
24527         getgroups, getugroups: provide stubs for mingw
24528         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24529         * lib/getugroups.c (getugroups): Likewise.
24530         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24531         function.  Modernize replacement scheme.
24532         (gl_PREREQ_GETGROUPS): Delete.
24533         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24534         * modules/getgroups (configure.ac): Declare witness.
24535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24536         * modules/unistd (Depends-on): Substitute witness.
24537         * lib/unistd.in.h (getgroups): Declare replacement.
24538
24539         getgroups: avoid calling exit
24540         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24541         drop xalloc.
24542         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24543         dependencies.
24544         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24545         exiting, in the rare case of malloc failure.
24546
24547         getgroups: fix logic error
24548         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24549         has more than 20 groups.
24550         * modules/getgroups-tests: New test.
24551         * tests/test-getgroups.c: New file.
24552
24553 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24554
24555         * tests/test-base64.c: Improve.
24556
24557 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24558
24559         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24560         Blake <ebb9@byu.net>.
24561
24562 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24563
24564         * tests/test-xvasprintf.c: Add %s%s related checks.
24565
24566 2009-11-12  Eric Blake  <ebb9@byu.net>
24567
24568         version-etc: match standards.texi style
24569         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24570         and use <> only for URLs.
24571
24572 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24573
24574         fts: do not fail on a submount during traversal
24575         * lib/fts.c (fts_build): Read the stat info again after opening
24576         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24577         Original report at http://bugzilla.redhat.com/501848.
24578
24579 2009-11-12  Jim Meyering  <meyering@redhat.com>
24580
24581         bootstrap: sync from coreutils
24582         * build-aux/bootstrap (bootstrap_epilogue): New function.
24583         Use git_modules_config in one more place.  This make bootstrap's
24584         --gnulib-srcdir option more useful for testing.
24585
24586         bootstrap: generalize autoheader check
24587         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24588         AC_CONFIG_HEADERS.
24589
24590 2009-11-11  Eric Blake  <ebb9@byu.net>
24591
24592         mkfifoat: use new modules for Solaris and BSD bugs
24593         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24594         * lib/mkfifoat.c (mknodat): Split...
24595         * lib/mknodat.c (mknodat): ...into new file.
24596         * modules/mkfifoat (Files): Ship new file.
24597         (Depends-on): Add mkfifo, mknod.
24598         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24599         (Depends-on): Add symlink.
24600         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24601         redundant with test_mkfifo.h.
24602         (do_mkfifoat, do_mknodat): New helpers.
24603
24604         mknod: new module
24605         * modules/mknod: New file.
24606         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24607         * lib/mknod.c (mknod): Likewise.
24608         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24609         defaults.
24610         * modules/sys_stat (Makefile.am): Substitute them.
24611         * lib/sys_stat.in.h (mknod): Declare replacement.
24612         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24613         Document it.
24614         * doc/posix-functions/mknod.texi (mknod): Likewise.
24615         * modules/mknod-tests: New test.
24616         * tests/test-mknod.c: Likewise.
24617
24618         mkfifo: new module
24619         * modules/mkfifo: New file.
24620         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24621         * lib/mkfifo.c (mkfifo): Likewise.
24622         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24623         defaults.
24624         * modules/sys_stat (Makefile.am): Substitute them.
24625         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24626         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24627         Document it.
24628         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24629         * modules/mkfifo-tests: New test.
24630         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24631         from test-mkfifoat.c.
24632         * tests/test-mkfifo.c: New file.
24633
24634         readlink: detect FreeBSD bug
24635         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24636         slash on symlink.
24637         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24638         * tests/test-readlink.h (test_readlink): Enhance test.
24639
24640         symlink: detect FreeBSD bug
24641         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24642         slash on symlink.
24643         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24644         * tests/test-symlink.h (test_symlink): Enhance test.
24645
24646 2009-11-10  Eric Blake  <ebb9@byu.net>
24647
24648         link: detect FreeBSD bug
24649         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24650         symlink.
24651         * doc/posix-functions/link.texi (link): Document the bug.
24652         * tests/test-link.h (test_link): Enhance test.
24653         * tests/test-linkat.c (main): Update caller.
24654
24655         unlink, remove: detect FreeBSD bug
24656         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24657         slash on symlink.
24658         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24659         * doc/posix-functions/remove.texi (remove): Likewise.
24660         * tests/test-unlink.h (test_unlink): Enhance test.
24661         * tests/test-remove.c (main): Likewise.
24662
24663 2009-11-09  Eric Blake  <ebb9@byu.net>
24664
24665         rename: detect FreeBSD bug
24666         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24667         slash on symlink.
24668         * modules/renameat-tests (Depends-on): Add filenamecat.
24669         * tests/test-rename.h (test_rename): Allow one more errno.
24670         * tests/test-renameat.c (main): Likewise.
24671         * doc/posix-functions/rename.texi (rename): Document the bug.
24672
24673         open: detect FreeBSD bug
24674         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24675         symlink.
24676         * doc/posix-functions/open.texi (open): Document the bug.
24677         * doc/posix-functions/utimes.texi (utimes): Likewise.
24678         * tests/test-open.h (test_open): Add parameters, and test symlink
24679         handling.
24680         * tests/test-open.c (main): Adjust caller.
24681         * tests/test-fcntl-safer.c (main): Likewise.
24682         * modules/open-tests (Depends-on): Add stdbool, symlink.
24683         * modules/fcntl-safer-tests (Depends-on): Likewise.
24684         * tests/test-openat.c (main): Add test-open tests.
24685
24686         stat: detect FreeBSD bug
24687         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24688         symlink.
24689         * doc/posix-functions/stat.texi (stat): Document the bug.
24690         * tests/test-stat.h (test_stat_func): Add argument.
24691         * tests/test-stat.c (main): Adjust caller.
24692         * tests/test-fstatat.c (main): Likewise.
24693         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24694         Reported by Jim Meyering.
24695
24696 2009-11-09  James Youngman  <jay@gnu.org>
24697
24698         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24699         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24700
24701 2009-11-08  Jim Meyering  <meyering@redhat.com>
24702
24703         utimens: remove invalid futimesat call
24704         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24705         It used the file descriptor of the target file as the DIR_FD
24706         parameter and NULL as the file name.  That caused failure with
24707         errno == EFAULT on FreeBSD-8.0-rc2
24708
24709 2009-11-07  Eric Blake  <ebb9@byu.net>
24710
24711         fflush, freadseek: use fseeko, not fseek
24712         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24713         (clear_ungetc_buffer): Avoid potential problems on large files.
24714         * lib/freadseek.c (freadseek): Likewise.
24715         * modules/freadseek (Depends-on): Add fseeko.
24716         * modules/fseek (configure.ac): Set a witness.
24717         * tests/test-fflush.c (main): Use fseeko.
24718         * tests/test-fpurge.c (fseek): Disable link warning.
24719         * tests/test-freadable.c (fseek): Likewise.
24720         * tests/test-freading.c (fseek): Likewise.
24721         * tests/test-fseeko.c (fseek): Likewise.
24722         * tests/test-ftell.c (fseek): Likewise.
24723         * tests/test-ftello.c (fseek): Likewise.
24724         * tests/test-fwritable.c (fseek): Likewise.
24725         * tests/test-fwriting.c (fseek): Likewise.
24726
24727 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24728
24729         * modules/memchr (Depends-on): Drop getpagesize dependency.
24730
24731 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24732
24733         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24734         Reported by Ludovic Courtès.
24735         * build-aux/pmccabe2html: Improve example usage.
24736         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24737
24738 2009-11-06  Jim Meyering  <meyering@redhat.com>
24739
24740         do-release-commit-and-tag: New module.
24741         Automate the release-commit and tag process.
24742         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24743         * modules/do-release-commit-and-tag: New file.
24744         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24745
24746 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24747
24748         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24749         because test-select.c uses inet_pton.
24750
24751 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24752
24753         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24754         GETADDRINFO_LIB.  Bump serial number.
24755         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24756         Suggested by Eric Blake <ebb9@byu.net>.
24757
24758 2009-11-05  Eric Blake  <ebb9@byu.net>
24759
24760         strtod: detect darwin bug
24761         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24762         Reported by Leo Davis.
24763
24764         freopen-safer: new module
24765         * modules/freopen-safer: New module.
24766         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24767         * lib/freopen-safer.c (freopen_safer): New file.
24768         * lib/stdio-safer.h (freopen_safer): New declaration.
24769         * lib/stdio--.h (freopen): New override.
24770         * MODULES.html.sh (File stream based Input/Output): Mention it.
24771         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24772         freopen-safer module.
24773         * doc/posix-functions/stderr.texi (stderr): Likewise.
24774         * doc/posix-functions/stdin.texi (stdin): Likewise.
24775         * doc/posix-functions/stdout.texi (stdout): Likewise.
24776         * modules/freopen-safer-tests: New test.
24777         * tests/test-reopen-safer.c: New file.
24778
24779 2009-11-05  Jim Meyering  <meyering@redhat.com>
24780
24781         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24782         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24783
24784 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24785
24786         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24787
24788 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24789
24790         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24791
24792 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24793
24794         Fix link error.
24795         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24796         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24797
24798 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24799
24800         * tests/test-func.c: Also test value of __func__.
24801
24802 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24803
24804         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24805         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24806
24807 2009-11-05  Bruno Haible  <bruno@clisp.org>
24808
24809         Fix link error.
24810         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24811         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24812         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24813
24814 2009-11-05  Bruno Haible  <bruno@clisp.org>
24815
24816         Tests for module 'inet_pton'.
24817         * modules/inet_pton-tests: New file.
24818         * tests/test-inet_pton.c: New file.
24819
24820 2009-11-05  Bruno Haible  <bruno@clisp.org>
24821
24822         Tests for module 'inet_ntop'.
24823         * modules/inet_ntop-tests: New file.
24824         * tests/test-inet_ntop.c: New file.
24825
24826 2009-11-04  Eric Blake  <ebb9@byu.net>
24827
24828         stdlib-safer: wrap all mkstemp variants
24829         * modules/mkostemp (configure.ac): Set witness.
24830         * modules/mkostemps (configure.ac): Likewise.
24831         * modules/mkstemps (configure.ac): Likewise.
24832         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24833         (mkstemps_safer): Wrap more functions.
24834         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24835         wrapping.
24836         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24837         (mkstemps_safer): Implement the wrappers.
24838
24839         mkstemps, mkostemps: new modules
24840         * modules/mkostemps: New module.
24841         * modules/mkstemps: Likewise.
24842         * lib/mkostemps.c (mkostemps): New file.
24843         * lib/mkstemps.c (mkstemps): Likewise.
24844         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24845         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24847         * modules/stdlib (Makefile.am): Substitute them.
24848         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24849         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24850         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24851         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24852         * MODULES.html.sh (File system functions): Mention them.
24853
24854         tempname: resync from glibc
24855         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24856         same values for __GT_FILE as glibc.  Abort even when assertions
24857         are disabled.
24858         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24859         match its value otherwise.  Allow idempotent inclusion.
24860         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24861         * lib/mkostemp.c (mkostemp): Likewise.
24862         * lib/mkstemp.c (mkstemp): Likewise.
24863         * lib/tmpfile.c (tmpfile): Likewise.
24864         * NEWS: Document this.
24865
24866         utimens: fix use of futimens on older Linux
24867         * lib/utimens.c (fdutimens): Use updated, rather than original,
24868         timespec to avoid bug in older Linux kernel.
24869         Reported by Simon Josefsson.
24870
24871 2009-11-04  Bruno Haible  <bruno@clisp.org>
24872
24873         Make num_processors more flexible and consistent.
24874         * lib/nproc.h (enum nproc_query): New type.
24875         (num_processors): Add a 'query' argument.
24876         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24877         (num_processors): Add a 'query' argument. Test the value of the
24878         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24879         mingw, count the number of CPUs available for the current process.
24880         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24881         Check for sched_getaffinity and sched_getaffinity_np.
24882         * modules/nproc (Depends-on): Add c-ctype, extensions.
24883         * NEWS: Mention the change.
24884
24885 2009-11-03  Bruno Haible  <bruno@clisp.org>
24886
24887         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24888
24889 2009-11-03  Jim Meyering  <meyering@redhat.com>
24890
24891         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24892         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24893         if it is defined.
24894
24895 2009-11-02  Eric Blake  <ebb9@byu.net>
24896
24897         mktime, timegm: share common declaration
24898         * lib/mktime-internal.h: New file.
24899         * lib/mktime.c: Use it rather than open-coding a declaration.
24900         * lib/timegm.c: Likewise.
24901         * modules/mktime (Files): Ship it.
24902         * modules/timegm (Files): Likewise.
24903         Suggested by Bruno Haible.
24904
24905         test-update-copyright: update test to match script changes
24906         * tests/test-update-copyright.sh: Avoid hard-coding perl
24907         location.  Don't update *.bak created by earlier runs.
24908
24909 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24910             Simon Josefsson  <simon@josefsson.org>
24911             Bruno Haible  <bruno@clisp.org>
24912
24913         Fix link error on Solaris 8.
24914         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24915         also in libnsl. Define also INET_PTON_LIB.
24916         * modules/inet_pton (Link): New section.
24917
24918 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24919             Bruno Haible  <bruno@clisp.org>
24920
24921         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24922         * modules/inet_ntop (Link): New section.
24923         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24924
24925 2009-11-02  Eric Blake  <ebb9@byu.net>
24926
24927         maint: avoid compiler warnings in m4 macros
24928         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24929         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24930
24931 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24932
24933         * m4/pmccabe2html.m4: Remove file.
24934         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24935         function.  Change maintainer.
24936         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24937         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24938         Courtès).
24939
24940 2009-10-31  Eric Blake  <ebb9@byu.net>
24941
24942         fseeko: fix m4 regression
24943         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24944         regression from 2009-10-27.
24945         Reported by Ralf Wildenhues.
24946
24947 2009-10-31  Jim Meyering  <meyering@redhat.com>
24948
24949         inttostr: aesthetics and improved (compile-time) safety
24950         Define inttype_is_signed rather than inttype_is_unsigned,
24951         since the sole use is via "#if inttype_is_signed".
24952         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24953         inttype_is_unsigned.
24954         * lib/offtostr.c (inttype_is_signed): Likewise.
24955         * lib/uinttostr.c (inttype_is_signed): Likewise.
24956         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24957         * lib/inttostr.c (inttostr): Use verify to cross-check the
24958         inttype_is_signed value and the signedness of the actual type.
24959         * modules/inttostr (Depends-on): Add verify.
24960
24961 2009-10-30  Eric Blake  <ebb9@byu.net>
24962
24963         build: avoid compiler warnings
24964         * lib/fchmodat.c (lchmod): Mark unused variables.
24965         * lib/getopt.c (_getopt_initialize): Likewise.
24966         * lib/mktime.c (__mktime_internal): Provide prototype.
24967         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24968         older gcc that do not understand #pragma GCC diagnostic.
24969         * lib/uinttostr.c (inttype_is_unsigned): Define.
24970         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24971
24972 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24973
24974         stat: fix compilation on AIX
24975         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24976         only see struct stat64.
24977
24978 2009-10-30  Eric Blake  <ebb9@byu.net>
24979
24980         exclude: make more robust
24981         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24982         rather than masking a coding bug.
24983         Suggested by Bruno Haible.
24984
24985 2009-10-30  Jim Meyering  <meyering@redhat.com>
24986
24987         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24988         Rather than putting #!/usr/bin/perl on the first line,
24989         start with a variant of what's recommended by "man perlrun" that
24990         invokes the first "perl" program from your shell's search path.
24991         * build-aux/gitlog-to-changelog: Replace #!... as above.
24992         Add a "Local Variables" perl mode setting.
24993         Prompted by a patch from Ludovic Courtès.
24994         Improved by Eric Blake.
24995         * build-aux/useless-if-before-free: Likewise.
24996         * build-aux/announce-gen: Likewise.
24997         * build-aux/update-copyright: Likewise.
24998
24999 2009-10-29  Eric Blake  <ebb9@byu.net>
25000
25001         filenamecat-lgpl: adjust clients
25002         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25003         filenamecat.
25004         * modules/renameat (Depends-on): Likewise.
25005
25006         filenamecat: split into filenamecat-lgpl
25007         * modules/filenamecat-lgpl: New module.
25008         * modules/filenamecat (Files): Move library-safe files into
25009         filenamecat-lgpl.
25010         (Depends-on): Add filenamecat-lgpl.
25011         (configure.ac): Declare witness.
25012         * lib/filenamecat.h (file_name_concat): Only declare when using
25013         GPL module.
25014         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25015         Move...
25016         * lib/filenamecat-lgpl.c: ...into new file.
25017         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25018         (gl_FILE_NAME_CONCAT): Use it.
25019         * MODULES.html.sh (File system functions): Mention new module.
25020
25021         argp: avoid memory leak
25022         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25023         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25024         base_name, since the latter malloc()s and can call exit().
25025         Leak introduced 2006-07-03.
25026
25027         dirname-lgpl: adjust clients that don't need full dirname
25028         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25029         * modules/filenamecat (Depends-on): Likewise.
25030         * modules/linkat (Depends-on): Likewise.
25031         * modules/mkancesdirs (Depends-on): Likewise.
25032         * modules/mkdir (Depends-on): Likewise.
25033         * modules/openat (Depends-on): Likewise.
25034         * modules/savewd (Depends-on): Likewise.
25035         * modules/rename (Depends-on): Likewise.
25036         (License): Relax license.
25037         * modules/mkdir-tests (Depends-on): Drop progname.
25038         (Makefile.am): Delete unneeded LDADD.
25039         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25040
25041         dirname: split into dirname-lgpl
25042         * modules/dirname-lgpl: New module.
25043         * modules/dirname (Files): Move library-safe files into
25044         dirname-lgpl.
25045         (Depends-on): Add dirname-lgpl.
25046         (configure.ac): Declare witness.
25047         * modules/double-slash-root (License): Relax license.
25048         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25049         module.
25050         * lib/dirname.c (dir_len, mdir_name): Move...
25051         * lib/dirname-lgpl.c: ...into new file.
25052         * lib/basename.c (last_component, base_len): Move...
25053         * lib/basename-lgpl.c: ...into new file.
25054         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25055         (gl_DIRNAME): Use it.
25056         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25057         Mention new module.
25058         * modules/dirname-tests (Depends-on): Add progname.
25059         * tests/test-dirname.c (program_name): Delete.
25060
25061         mkdir: make safe for libraries
25062         * modules/mkdir (Depends-on): Drop xalloc.
25063         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25064         exit.
25065
25066         tests: avoid some compiler warnings
25067         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25068         literals.
25069         * tests/test-memchr.c (main): Avoid type mismatch.
25070         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25071         * tests/test-base64.c (main): Likewise.
25072         * tests/test-getdelim.c (main): Likewise.
25073         * tests/test-gethostname.c (main): Likewise.
25074         * tests/test-getline.c (main): Likewise.
25075         * tests/test-netinet_in.c (main): Likewise.
25076         * tests/test-select.c (open_server_socket, main): Likewise.
25077         * tests/test-select-stdin.c (main): Likewise.
25078         * tests/test-sockets.c (main): Likewise.
25079         * tests/test-strsignal.c (main): Likewise.
25080         * tests/test-sys_select.c (main): Likewise.
25081         * tests/test-sys_socket.c (main): Likewise.
25082         * tests/test-u64.c (main): Likewise.
25083         * tests/test-xfprintf-posix.c (main): Likewise.
25084         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25085
25086         sockets: avoid compiler warning
25087         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25088
25089         maint: detect usage(1) and other suspicious exits
25090         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25091
25092 2009-10-29  Jim Meyering  <meyering@redhat.com>
25093
25094         timespec: long-to-int truncation could make timespec_cmp malfunction
25095         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25096         a multiple of 2^32 nanoseconds as no difference.
25097
25098 2009-10-28  Jim Meyering  <meyering@redhat.com>
25099
25100         fprintftime: wrap macro code argument in "do {...} while(0)"
25101         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25102         cpy macro must be a statement that can be followed by a semicolon.
25103         Now that the else clause contains a comment and is hence longer
25104         than one line, I require curly braces.  That in turn requires
25105         that we wrap this code block in the standard do...while(0).
25106
25107         fprintftime: remove stray semicolon from previous change
25108         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25109
25110         fprintftime: avoid a warning about ignored fwrite return value
25111         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25112         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25113         that is unsafe.
25114         * modules/fprintftime (Depends-on): Add ignore-value.
25115
25116         exclude: avoid an unwarranted warning
25117         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25118
25119 2009-10-27  Eric Blake  <ebb9@byu.net>
25120
25121         fseek: avoid compilation failure when fflush is replaced
25122         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25123         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25124         module is in use.
25125         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25126         module is not in use; since REPLACE_FSEEK worked otherwise.
25127         (GNULIB_FTELLO): Likewise for ftell.
25128         Reported by Ian Beckwith and others.
25129
25130 2009-10-27  Bruno Haible  <bruno@clisp.org>
25131
25132         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25133         Reported by Jim Meyering.
25134
25135 2009-10-27  Jim Meyering  <jim@meyering.net>
25136             Bruno Haible  <bruno@clisp.org>
25137
25138         Avoid warning despite dropping the return value of fwrite.
25139         * lib/unicodeio.c: Include ignore-value.h.
25140         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25141         * modules/unicodeio (Depends-on): Add ignore-value.
25142
25143 2009-10-26  Eric Blake  <ebb9@byu.net>
25144
25145         areadlinkat: fix fallback path
25146         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25147         pointer and zero.
25148
25149 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25150
25151         Use a better IO block size for modern systems
25152         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25153         * lib/md2.c: Likewise.
25154         * lib/md4.c: Likewise.
25155         * lib/md5.c: Likewise.
25156         * lib/sha1.c: Likewise.
25157         * lib/sha256.c: Likewise.
25158         * lib/sha512.c: Likewise.
25159
25160 2009-10-22  Eric Blake  <ebb9@byu.net>
25161
25162         tests: avoid several compiler warnings
25163         * tests/test-getcwd.c (main): Avoid buffer underflow.
25164         * tests/test-getdate.c (main): String literals are not safe with
25165         putenv, so use setenv.  Declare unused argument.
25166         * modules/getdate-tests (Depends-on): Add setenv.
25167         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25168         problems with string literals in char *.
25169         * tests/test-hash.c (main): Avoid shadowing declaration.
25170         (insert_new): Treat string literals as char const *.
25171         * tests/test-getopt.h (test_getopt): Likewise.
25172         (getopt_loop): Alter types to minimize casting elsewhere.
25173         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25174         (test_getopt_long_posix): Likewise.
25175         (do_getopt_long): Add wrapper to minimize casting.
25176         * tests/test-atexit.c (clear_temp_file): Use void.
25177         * tests/test-areadlink-with-size.c (main): Declare unused
25178         arguments.
25179         * tests/test-areadlink.c (main): Likewise.
25180         * tests/test-areadlinkat-with-size.c (main): Likewise.
25181         * tests/test-areadlinkat.c (main): Likewise.
25182         * tests/test-canonicalize-lgpl.c (main): Likewise.
25183         * tests/test-canonicalize.c (main): Likewise.
25184         * tests/test-dirent-safer.c (main): Likewise.
25185         * tests/test-dirname.c (main): Likewise.
25186         * tests/test-dup2.c (main): Likewise.
25187         * tests/test-fchdir.c (main): Likewise.
25188         * tests/test-fcntl-h.c (main): Likewise.
25189         * tests/test-fcntl-safer.c (main): Likewise.
25190         * tests/test-fdopendir.c (main): Likewise.
25191         * tests/test-fdutimensat.c (main): Likewise.
25192         * tests/test-fflush.c (main): Likewise.
25193         * tests/test-filenamecat.c (main): Likewise.
25194         * tests/test-filevercmp.c (main): Likewise.
25195         * tests/test-fopen-safer.c (main): Likewise.
25196         * tests/test-fopen.c (main): Likewise.
25197         * tests/test-fpending.c (main): Likewise.
25198         * tests/test-fpurge.c (main): Likewise.
25199         * tests/test-freading.c (main): Likewise.
25200         * tests/test-fstatat.c (main): Likewise.
25201         * tests/test-fsync.c (main): Likewise.
25202         * tests/test-futimens.c (main): Likewise.
25203         * tests/test-getndelim2.c (main): Likewise.
25204         * tests/test-gettimeofday.c (main): Likewise.
25205         * tests/test-getopt.c (main): Likewise.
25206         * tests/test-i-ring.c (main): Likewise.
25207         * tests/test-inttypes.c (main): Likewise.
25208         * tests/test-link.c (main): Likewise.
25209         * tests/test-lstat.c (main): Likewise.
25210         * tests/test-math.c (main): Likewise.
25211         * tests/test-md5.c (main): Likewise.
25212         * tests/test-memchr2.c (main): Likewise.
25213         * tests/test-memrchr.c (main): Likewise.
25214         * tests/test-mkdir.c (main): Likewise.
25215         * tests/test-mkdirat.c (main): Likewise.
25216         * tests/test-mkfifoat.c (main): Likewise.
25217         * tests/test-open.c (main): Likewise.
25218         * tests/test-openat-safer.c (main): Likewise.
25219         * tests/test-openat.c (main): Likewise.
25220         * tests/test-quotearg.c (main): Likewise.
25221         * tests/test-rawmemchr.c (main): Likewise.
25222         * tests/test-readlink.c (main): Likewise.
25223         * tests/test-remove.c (main): Likewise.
25224         * tests/test-rename.c (main): Likewise.
25225         * tests/test-renameat.c (main): Likewise.
25226         * tests/test-rmdir.c (main): Likewise.
25227         * tests/test-sha1.c (main): Likewise.
25228         * tests/test-signal.c (main): Likewise.
25229         * tests/test-sigaction.c (main): Likewise.
25230         * tests/test-stat.c (main): Likewise.
25231         * tests/test-stat-time.c (main): Likewise.
25232         * tests/test-stddef.c (main): Likewise.
25233         * tests/test-stdint.c (main): Likewise.
25234         * tests/test-stdio.c (main): Likewise.
25235         * tests/test-stdlib.c (main): Likewise.
25236         * tests/test-strchrnul.c (main): Likewise.
25237         * tests/test-strerror.c (main): Likewise.
25238         * tests/test-string.c (main): Likewise.
25239         * tests/test-strtod.c (main): Likewise.
25240         * tests/test-strverscmp.c (main): Likewise.
25241         * tests/test-symlink.c (main): Likewise.
25242         * tests/test-symlinkat.c (main): Likewise.
25243         * tests/test-sys_stat.c (main): Likewise.
25244         * tests/test-sys_time.c (main): Likewise.
25245         * tests/test-time.c (main): Likewise.
25246         * tests/test-unistd.c (main): Likewise.
25247         * tests/test-unlink.c (main): Likewise.
25248         * tests/test-unlinkat.c (main): Likewise.
25249         * tests/test-utimens.c (main): Likewise.
25250         * tests/test-utimensat.c (main): Likewise.
25251         * tests/test-version-etc.c (main): Likewise.
25252         * tests/test-wchar.c (main): Likewise.
25253         * tests/test-wctype.c (main): Likewise.
25254         * tests/test-xprintf-posix.c (main): Likewise.
25255         * tests/test-posixtm.c (main): Likewise.
25256         (STREQ): Delete unused macro.
25257         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25258         shadowed variables.
25259         * tests/test-memchr.c (main): Likewise.
25260
25261 2009-10-21  Eric Blake  <ebb9@byu.net>
25262
25263         areadlinkat: avoid failure on older glibc
25264         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25265         rather than mis-comparing 0 against FUNC_RESULT of char*.
25266
25267 2009-10-21  Bruno Haible  <bruno@clisp.org>
25268
25269         * modules/stpncpy (License): Relicense under LGPLv2+.
25270         Reported by David Lutterkort <lutter@redhat.com>.
25271
25272 2009-10-20  Eric Blake  <ebb9@byu.net>
25273
25274         utimensat: work around Solaris 9 bug
25275         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25276         has trailing slash bugs.
25277         * tests/test-lutimens.h (test_lutimens): Enhance test.
25278         * tests/test-utimens.h (test_utimens): Likewise.
25279         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25280         * doc/posix-functions/utimes.texi (utimes): Likewise.
25281         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25282         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25283         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25284         * doc/posix-functions/futimens.texi (futimens): Likewise.
25285
25286         fdutimensat: new module
25287         * modules/fdutimensat: New file.
25288         * lib/fdutimensat.c (fdutimensat): Likewise.
25289         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25290         * MODULES.html.sh (File system functions): Mention module.
25291         * modules/fdutimensat-tests: New test.
25292         * tests/test-fdutimensat.c: Likewise.
25293
25294         doc: regenerate INSTALL
25295         * doc/INSTALL: Reflect recent autoconf update.
25296         * doc/INSTALL.ISO: Likewise.
25297         * doc/INSTALL.UTF-8: Likewise.
25298
25299 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25300
25301         acl: warn if ACL support is not detected
25302         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25303
25304 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25305
25306         * lib/nproc.h: Add extern "C" block for C++.
25307
25308 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25309             Bruno Haible  <bruno@clisp.org>
25310
25311         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25312         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25313         * doc/posix-functions/isalpha.texi: Likewise.
25314         * doc/posix-functions/isblank.texi: Likewise.
25315         * doc/posix-functions/iscntrl.texi: Likewise.
25316         * doc/posix-functions/isdigit.texi: Likewise.
25317         * doc/posix-functions/isgraph.texi: Likewise.
25318         * doc/posix-functions/islower.texi: Likewise.
25319         * doc/posix-functions/isprint.texi: Likewise.
25320         * doc/posix-functions/ispunct.texi: Likewise.
25321         * doc/posix-functions/isspace.texi: Likewise.
25322         * doc/posix-functions/isupper.texi: Likewise.
25323         * doc/posix-functions/isxdigit.texi: Likewise.
25324
25325 2009-10-18  Bruno Haible  <bruno@clisp.org>
25326
25327         Tests for module 'isblank'.
25328         * modules/isblank-tests: New file.
25329         * tests/test-isblank.c: New file.
25330
25331         New module 'isblank'.
25332         * lib/isblank.c: New file.
25333         * m4/isblank.m4: New file.
25334         * modules/isblank: New file.
25335         * doc/posix-functions/isblank.texi: Mention the new module.
25336
25337 2009-10-18  Bruno Haible  <bruno@clisp.org>
25338
25339         New module 'ctype'.
25340         * lib/ctype.in.h: New file.
25341         * m4/ctype.m4: New file.
25342         * modules/ctype: New file.
25343         * doc/posix-headers/ctype.texi: Mention the new module.
25344
25345 2009-10-18  Jim Meyering  <meyering@redhat.com>
25346
25347         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25348         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25349         right after its initialization, rather than farther down.
25350         Keeping these in close proximity makes it easier to ensure
25351         that each such variable is initialized.  E.g.,
25352
25353             LIB_CLOCK_GETTIME=
25354             AC_SUBST([LIB_CLOCK_GETTIME])
25355
25356         This change also increments these serial numbers.
25357         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25358         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25360
25361 2009-10-18  Bruno Haible  <bruno@clisp.org>
25362
25363         Don't let environment variables perturb build.
25364         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25365         (gl_PREREQ_GETHRXTIME): ... not here.
25366
25367 2009-10-18  Bruno Haible  <bruno@clisp.org>
25368
25369         Avoid symlink attack in localcharset module.
25370         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25371         (O_NOFOLLOW): Define fallback.
25372         (get_charset_aliases): Don't open the file if it is a symbolic link.
25373         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25374         gl_FCNTL_H.
25375         (gl_FCNTL_H): Require it.
25376         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25377         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25378         Reported by Fergal Glynn <fglynn@veracode.com>.
25379
25380 2009-10-18  Bruno Haible  <bruno@clisp.org>
25381
25382         Implement nproc for mingw.
25383         * lib/nproc.c: Include <windows.h>
25384         (num_processors): On native Windows platforms, try GetSystemInfo.
25385
25386 2009-10-18  Bruno Haible  <bruno@clisp.org>
25387
25388         Implement nproc for IRIX.
25389         * lib/nproc.c: Include <sys/sysmp.h>.
25390         (num_processors): On IRIX systems, try sysmp.
25391         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25392
25393 2009-10-18  Bruno Haible  <bruno@clisp.org>
25394
25395         Implement nproc for HP-UX.
25396         * lib/nproc.c: Include <sys/pstat.h>
25397         (num_processors): On HP-UX systems, try pstat_getdynamic.
25398         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25399         pstat_getdynamic.
25400
25401 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25402             Bruno Haible  <bruno@clisp.org>
25403
25404         Implement nproc for NetBSD, OpenBSD.
25405         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25406         (ARRAY_SIZE): New macro.
25407         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25408         * m4/nproc.m4: New file.
25409         * modules/nproc (Files): Add m4/nproc.m4.
25410         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25411         (Makefile.am): Instead, augment lib_SOURCES.
25412
25413 2009-10-18  Bruno Haible  <bruno@clisp.org>
25414
25415         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25416         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25417         sys/param.h.
25418
25419 2009-10-16  Eric Blake  <ebb9@byu.net>
25420
25421         utimensat: new module
25422         * modules/utimensat: New file.
25423         * lib/utimensat.c (utimensat): Likewise.
25424         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25425         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25426         so we can work around Linux bugs.
25427         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25428         * modules/sys_stat (Makefile.am): Substitute them.
25429         * lib/sys_stat.in.h (utimensat): Declare it.
25430         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25431         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25432         * modules/utimensat-tests: New test.
25433         * tests/test-utimensat.c: Likewise.
25434
25435         utimens: let lutimens work on non-symlinks
25436         * lib/utimens.c (lutimens): Fall back to utimens rather than
25437         failing with ENOSYS, when file is not a symlink.
25438         (utimens): Reduce redirection.
25439         * tests/test-lutimens.h (test_lutimens): Update test to cover
25440         non-symlinks.
25441         * tests/test-utimens.h (test_utimens): Update test to cover
25442         symlinks.
25443         * tests/test-utimens.c (main): Update caller.
25444
25445         utimens: cache whether utimensat syscall works
25446         * lib/utimens.c (utimensat_works_really): New cache variable.
25447         (fdutimens, lutimens): Use it to avoid failing syscall.
25448
25449         test-stat-time, test-utimens: improve portability
25450         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25451         ext4 on alpha, and for cygwin.
25452         * tests/test-utimens-common.h: New file.
25453         (nap): Factor delays into single function.
25454         * tests/test-lutimens.h (test_lutimens): Use new header.
25455         * tests/test-futimens.h (test_futimens): Likewise.
25456         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25457         timestamps to occur from same machine, as was done previously for
25458         test_utimens.
25459         * modules/utimens-tests (Files): Ship new file.
25460         * modules/futimens-tests (Files): Likewise.
25461         Reported in part by Jim Meyering.
25462
25463         sys_stat: sort replacement declarations
25464         * lib/sys_stat.in.h: Sort declarations.
25465         * lib/futimens.c (futimens): Fix typo.
25466
25467 2009-10-15  Jim Meyering  <meyering@redhat.com>
25468
25469         don't let environment settings perturb build
25470         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25471         could cause a configure-time and/or build-time malfunction.
25472         Typically, a configure-time function-in-library test is performed
25473         via code like this:
25474
25475           LIB_VAR=
25476           AC_SUBST([LIB_VAR])
25477           prefix_saved_LIBS=$LIBS
25478             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25479                        [test "$ac_cv_search_FUNC" = "none required" ||
25480                         LIB_VAR=$ac_cv_search_FUNC])
25481           LIBS=$prefix_saved_LIBS
25482
25483         However, in each of the files affected by this change, the LIB_VAR=
25484         initialization was omitted.  Thus, when set in the environment, its
25485         value would propagate into generated Makefiles when FUNC is not found
25486         in LIB_NAME.
25487         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25488         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25489         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25490
25491 2009-10-14  Eric Blake  <ebb9@byu.net>
25492
25493         fchdir: avoid infinite recursion in mingw
25494         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25495         recursing.
25496
25497         test-stat-time: port to mingw
25498         * tests/test-stat-time.c (force_unlink): Return a value.
25499         (test_ctime) [W32]: Fix compilation error.
25500         (nap): Don't call usleep with too large an argument.  Use
25501         force_unlink.
25502         * doc/pastposix-functions/usleep.texi (usleep): Document the
25503         portability issue.
25504
25505 2009-10-13  Jim Meyering  <meyering@redhat.com>
25506
25507         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25508         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25509         * modules/pipe-filter-ii: Likewise.
25510         * modules/sys_socket-tests: Likewise.
25511         * modules/tsearch-tests: Likewise.
25512         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25513         (check): Depend on it.
25514
25515 2009-10-12  Eric Blake  <ebb9@byu.net>
25516
25517         utimens-tests: port to NFS file systems
25518         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25519         comparisons to avoid spurious failures from timestamp drift
25520         between NFS machines.
25521
25522 2009-10-12  Eric Blake  <ebb9@byu.net>
25523
25524         stat-time-tests: minor cleanups
25525         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25526         * tests/test-stat-time.c (nap): Separate assignment from call.
25527         Suggested by Paolo Bonzini and Bruno Haible.
25528
25529         sys_stat: guarantee struct timespec
25530         * lib/sys_stat.in.h (includes): Always include <time.h>
25531         * modules/sys_stat (Depends-on): Add time.
25532         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25533         mode_t permission values.
25534         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25535         get at subsecond timestamps.
25536
25537 2009-10-10  Eric Blake  <ebb9@byu.net>
25538
25539         futimens: new module
25540         * modules/futimens: New file.
25541         * lib/futimens.c (futimens): Likewise.
25542         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25543         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25544         we can work around Linux bugs.
25545         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25546         * modules/sys_stat (Makefile.am): Substitute them.
25547         * lib/sys_stat.in.h (futimens): Declare it.
25548         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25549         * doc/posix-functions/futimens.texi (futimens): Likewise.
25550         * modules/futimens-tests: New test.
25551         * tests/test-futimens.c: Likewise.
25552
25553         utimens: introduce fdutimens
25554         * lib/utimens.h (fdutimens): New prototype.
25555         * lib/utimens.c (gl_futimens): Move guts...
25556         (fdutimens): ...to new interface.
25557         * tests/test-utimens.c (do_fdutimens): Use it.
25558
25559         utimens: add UTIME_NOW and UTIME_OMIT support
25560         * lib/utimens.c (validate_timespec, update_timespec): New helper
25561         functions.
25562         (gl_futimens, lutimens): Use them.
25563         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25564         stdbool, sys_stat.
25565         (Link): Mention resulting library dependency.
25566         * modules/utimecmp (Link): Likewise.
25567         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25568         (Makefile.am): Pick up library dependency.
25569         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25570         definition.
25571         * tests/test-sys_stat.c: Test the definitions.
25572         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25573         * NEWS: Document library dependency.
25574
25575         utimecmp: support symlink timestamps
25576         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25577         hashing when possible.  Use pathconf when available.
25578         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25579         * modules/utimecmp (Depends-on): Add lstat.
25580
25581         utimens: add lutimens interface
25582         * lib/utimens.c (lutimens): New function.
25583         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25584         * lib/utimens.h (lutimens): Declare new interface.
25585         * tests/test-utimens.c (main): Enhance test.
25586         * tests/test-lutimens.h (test_lutimens): New file.
25587         * modules/utimens-tests (Files): Distribute it.
25588         (Depends-on): Add symlink.
25589         (configure.ac): Check for usleep.
25590
25591         utimens: validate futimens usage
25592         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25593         fewer syscalls on failure later on.  Avoid compiler warning on
25594         mingw.
25595         * modules/utimens (Depends-on): Add dup2.
25596
25597         utimens: add test
25598         * modules/utimens-tests: New test.
25599         * tests/test-utimens.h: New file.
25600         * tests/test-futimens.h: Likewise.
25601         * tests/test-utimens.c: Likewise.
25602
25603         doc: mention timestamp portability issues
25604         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25605         instead.
25606         * doc/posix-functions/utime.texi (utime): Likewise.
25607         * doc/posix-functions/utimes.texi (utimes): Likewise.
25608         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25609         instead.
25610         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25611         module.
25612         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25613         Mention weakness with symlink timestamps.
25614         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25615         to utimensat/futimens instead.
25616         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25617
25618         test-dup2: enhance test
25619         * tests/test-dup2.c (main): Also check AT_FDCWD.
25620
25621         test-stat-time: avoid more spurious failures
25622         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25623         xfs; and avoid race if the two timestamps cross quantization edge.
25624
25625         relocatable: prefer 'file system' over 'filesystem'
25626         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25627         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25628         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25629         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25630         * lib/relocatable.c (compute_curr_prefix): Likewise.
25631
25632 2009-10-10  Jim Meyering  <meyering@redhat.com>
25633
25634         stat-time-tests: check for the usleep function
25635         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25636
25637 2009-10-10  Bruno Haible  <bruno@clisp.org>
25638
25639         * modules/xnanosleep: Put the Link section after the Include section.
25640
25641 2009-10-09  Eric Blake  <ebb9@byu.net>
25642
25643         dup2: work around FreeBSD 6.1 bug
25644         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25645         * doc/posix-functions/dup2.texi (dup2): Document it.
25646         Reported by Nelson H. F. Beebe and Jim Meyering.
25647
25648         test-stat-time: port to buggy NFS clients
25649         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25650         (test_ctime): Also skip test if mtime and ctime are skewed.
25651
25652         maint: prefer 'file system' over 'filesystem'
25653         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25654         * doc/posix-functions/lstat.texi (lstat): Likewise.
25655         * lib/file-has-acl.c (file_has_acl): Likewise.
25656         * lib/fwriteerror.c [TEST]: Likewise.
25657         * tests/test-areadlink.h (test_areadlink): Likewise.
25658         * tests/test-areadlinkat-with-size.c (main): Likewise.
25659         * tests/test-areadlinkat.c (main): Likewise.
25660         * tests/test-canonicalize-lgpl.c (main): Likewise.
25661         * tests/test-canonicalize.c (main): Likewise.
25662         * tests/test-fstatat.c (main): Likewise.
25663         * tests/test-linkat.c (main): Likewise.
25664         * tests/test-lstat.h (test_lstat_func): Likewise.
25665         * tests/test-mkdir.h (test_mkdir): Likewise.
25666         * tests/test-readlink.h (test_readlink): Likewise.
25667         * tests/test-remove.c (main): Likewise.
25668         * tests/test-rename.h (test_rename): Likewise.
25669         * tests/test-renameat.c (main): Likewise.
25670         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25671         * tests/test-symlink.h (test_symlink): Likewise.
25672         * tests/test-symlinkat.c (main): Likewise.
25673         * tests/test-unlink.h (test_unlink_func): Likewise.
25674         * tests/test-unlinkat.c (main): Likewise.
25675
25676         maint: make realtime library usage explicit
25677         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25678         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25679         * modules/settime (Link): Likewise.
25680         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25681
25682         test-stat-time: speed up execution
25683         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25684         warning on mingw.
25685         (nap): New helper function.
25686         (prepare_test): Use it to reduce sleep time.
25687         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25688         execution.
25689         * modules/stat-time-tests (configure.ac): Check for usleep.
25690
25691 2009-10-09  Jim Meyering  <meyering@redhat.com>
25692
25693         selinux-h: always use getfilecon wrappers
25694         * lib/getfilecon.c: New file.
25695         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25696         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25697         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25698         (fgetfilecon): Provide a stub.
25699         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25700         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25701         file unconditionally.
25702         When <selinux/selinux.h> is found, arrange to use wrappers.
25703         * modules/selinux-h (Files): Add getfilecon.c.
25704         (Makefile.am): Substitute include-next-related bits
25705         into the now-always-generated selinux/selinux.h file.
25706         * doc/glibc-functions/lgetfilecon.texi: New file.
25707         * doc/glibc-functions/fgetfilecon.texi: New file.
25708         * doc/glibc-functions/getfilecon.texi: New file.
25709         * doc/glibc-functions/getfilecon-desc.texi: New file.
25710         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25711         which to pull in the new files.
25712         * MODULES.html.sh (Misc): Add selinux-h.
25713
25714 2009-10-08  Jim Meyering  <meyering@redhat.com>
25715
25716         unistd: fix comment typo
25717         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25718
25719 2009-10-08  Eric Blake  <ebb9@byu.net>
25720
25721         areadlink: use SIZE_MAX consistently
25722         * modules/areadlink (Depends-on): Add stdint.
25723         * modules/areadlink-with-size (Depends-on): Likewise.
25724         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25725         gives NULL; drop sys/types, since unistd gives size_t; and add
25726         stdint for SIZE_MAX.
25727         (SIZE_MAX): Rely on headers.
25728         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25729         and add stdint.
25730         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25731         (SIZE_MAX): Likewise.
25732         (INITIAL_BUF_SIZE): Turn into enum.
25733         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25734
25735 2009-10-08  Jim Meyering  <meyering@redhat.com>
25736
25737         areadlinkat: avoid compilation failure
25738         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25739         Fix typo in comment.
25740
25741 2009-10-07  Eric Blake  <ebb9@byu.net>
25742
25743         areadlinkat-with-size: new module
25744         * modules/areadlinkat-with-size: New module.
25745         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25746         * lib/areadlink.h (areadlinkat): Declare it.
25747         * MODULES.html.sh (File system functions): Mention it.
25748         * modules/areadlinkat-with-size-tests: New test.
25749         * tests/test-areadlinkat-with-size.c: New file.
25750
25751         xreadlinkat: new module
25752         * modules/xreadlinkat: New module.
25753         * lib/xreadlinkat.c (xreadlinkat): New file.
25754         * lib/xreadlink.h (xreadlinkat): Declare it.
25755         * MODULES.html.sh (File system functions): Mention it.
25756
25757         areadlinkat: new module
25758         * lib/at-func.c (FUNC_FAIL): New define.
25759         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25760         * modules/areadlinkat: New module.
25761         * lib/linkat.c (areadlinkat): Move...
25762         * lib/areadlinkat.c (areadlinkat): ...to new file.
25763         * lib/areadlink.h (areadlinkat): Declare it.
25764         * modules/linkat (Depends-on): Add areadlinkat.
25765         * MODULES.html.sh (File system functions): Mention it.
25766         * modules/areadlinkat-tests: New test.
25767         * tests/test-areadlinkat.c: New file.
25768
25769         areadlink, areadlink-with-size: add tests
25770         * modules/areadlink-tests: New test.
25771         * modules/areadlink-with-size-tests: Likewise.
25772         * tests/test-areadlink.h: New file.
25773         * tests/test-areadlink.c: Likewise.
25774         * tests/test-areadlink-with-size.c: Likewise.
25775
25776         maint: minor cleanups
25777         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25778         _UNUSED_PARAMETER_ instead.
25779         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25780         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25781         * modules/linkat-tests (Files): Distribute test-link.h.
25782
25783         openat, utimens: whitespace cleanup
25784         * lib/openat.c: Prefer space throughout, rather than mix of 8
25785         spaces vs. tabs.
25786         * lib/at-func.c: Likewise.
25787         * lib/utimens.c: Likewise.
25788
25789         openat: avoid using wrong fd
25790         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25791         working directory chooses same fd.
25792         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25793
25794         mkdir, mkdirat: fix cygwin 1.5.x bug
25795         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25796         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25797         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25798         bug.
25799         (gl_PREREQ_MKDIR): Delete unused macro.
25800         * modules/mkdir (Files): Track file rename.
25801         (configure.ac): Update macro name.
25802         * modules/openat (Depends-on): Add mkdir.
25803         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25804
25805         mkdir, mkdirat: add tests
25806         * modules/mkdir-tests: New test.
25807         * tests/test-mkdir.h: New file.
25808         * tests/test-mkdir.c: Likewise.
25809         * tests/test-mkdirat.c: Likewise.
25810         * modules/openat-tests (Files): Add new files.
25811         (Makefile.am): Run new test.
25812
25813 2009-10-06  Eric Blake  <ebb9@byu.net>
25814
25815         doc: tweak *at function documentation
25816         * doc/posix-functions/faccessat.texi (faccessat): Mention
25817         known issue with replacement.
25818         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25819         * doc/posix-functions/linkat.texi (linkat): Likewise.
25820         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25821         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25822         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25823         * doc/posix-functions/renameat.texi (renameat): Likewise.
25824         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25825
25826         openat: fix GNU/Hurd bug in unlinkat
25827         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25828         broken.
25829         * doc/posix-functions/unlink.texi (unlink): Document this.
25830         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25831
25832         fdopendir: fix GNU/Hurd bug
25833         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25834         allowing non-directory fds.
25835         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25836         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25837         * modules/dirent (Makefile.am): Substitute it.
25838         * lib/dirent.in.h (fdopendir): Declare replacement.
25839         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25840         * tests/test-fdopendir.c (main): Test something other than
25841         /dev/null, since on Hurd that behaves like a directory.
25842
25843         test-symlink: port to GNU/Hurd
25844         * tests/test-symlink.h (test_symlink): Relax expected errno.
25845
25846         doc: tweak more cygwin information
25847         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25848         now compatible with glibc.
25849         * doc/posix-functions/getopt.texi (getopt): Likewise.
25850
25851         getopt-gnu: add another test
25852         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25853         guarantee behavior relied on by m4.
25854         * tests/test-getopt.c (main): Use it.
25855         * modules/getopt-posix-tests (Depends-on): Add setenv.
25856         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25857
25858         getopt: fix compilation on darwin
25859         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25860         include.
25861         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25862         Reported by Ludovic Courtès.
25863
25864 2009-10-06  Bruno Haible  <bruno@clisp.org>
25865
25866         * modules/size_max (Description): Discourage its use.
25867         Reported by Simon Josefsson.
25868
25869 2009-10-06  Jim Meyering  <meyering@redhat.com>
25870
25871         linkat: avoid compilation failure
25872         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25873
25874 2009-10-05  Eric Blake  <ebb9@byu.net>
25875
25876         linkat: support Linux 2.6.17
25877         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25878         linkat on Linux, but allow cache variable override.
25879         * lib/linkat.c (rpl_linkat): Define override.
25880         * modules/linkat (Depends-on): Add symlinkat.
25881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25882         * modules/unistd (Makefile.am): Substitute it.
25883         * lib/unistd.in.h (linkat): Declare replacement.
25884         Reported by Pádraig Brady.
25885
25886         quotearg: port test to systems with C.UTF-8 locale
25887         * tests/test-quotearg.c (struct result_strings): Add another
25888         member, differentiating between C.ASCII and C.UTF-8 handling.
25889         (compare_strings): Add parameter.
25890         (main): Adjust all callers.
25891
25892         getopt: avoid clash with FreeBSD _getopt_internal
25893         * lib/getopt.in.h (_getopt_internal): Override the name.
25894         * lib/getopt_int.h (includes): Pick up any overrides.
25895         Reported by Reuben Thomas.
25896
25897         hash: allow C89 compilation
25898         * lib/hash.c (check_tuning): Move declaration before statement.
25899         Reported by Reuben Thomas.
25900
25901 2009-10-05  Karl Berry  <karl@gnu.org>
25902
25903         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25904
25905 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25906             Bruno Haible  <bruno@clisp.org>
25907
25908         * lib/uname.c (uname): Use a table-driven algorithm to compute
25909         Windows NT versions.
25910
25911 2009-10-04  Bruno Haible  <bruno@clisp.org>
25912
25913         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25914         program_invocation_short_name.
25915         * modules/progname (configure.ac): Test for presence of
25916         program_invocation_short_name.
25917         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25918
25919 2009-10-04  Bruno Haible  <bruno@clisp.org>
25920
25921         * lib/progname.c (set_program_name): Fix comment.
25922         Reported by Jim Meyering.
25923
25924 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25925             Bruno Haible  <bruno@clisp.org>
25926
25927         * lib/uname.c: Include <string.h>.
25928         (uname): Do only one call to GetVersionEx in the common case.
25929
25930 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25931             Bruno Haible  <bruno@clisp.org>
25932
25933         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25934         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25935         (uname): Add support for Windows CE and various non-x86 CPU types.
25936
25937 2009-10-03  Bruno Haible  <bruno@clisp.org>
25938
25939         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25940         invocation to tests/configure.ac.
25941         Reported by Ian Beckwith <ianb@erislabs.net>.
25942
25943 2009-10-02  Eric Blake  <ebb9@byu.net>
25944
25945         fchdir: avoid compiler warning
25946         * lib/fchdir.c (canonicalize_file_name)
25947         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25948
25949         test-open: support mingw errno values
25950         * tests/test-open.h (test_open): Relax test.
25951         * tests/test-fopen.h (test_fopen): Likewise.
25952         * tests/test-openat-safer.c (main): Likewise.
25953
25954         open: fix opening directory on mingw
25955         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25956
25957         test-open: on GNU/Hurd, /dev/null is a directory
25958         * tests/test-fopen.h (main): Rename...
25959         (test_fopen): ...to this.  Use a guaranteed non-directory when
25960         confirming open behavior on trailing slash.
25961         * tests/test-openat-safer.c (main): Likewise.
25962         * tests/test-open.h (main): Likewise....
25963         (test_open): ...to this.
25964         * tests/test-fopen.c (main): Adjust caller.
25965         * tests/test-fopen-safer.c (main): Likewise.
25966         * tests/test-open.c (main): Likewise.
25967         * tests/test-fcntl-safer.c (main): Likewise.
25968         Reported by Samuel Thibault.
25969
25970         rename, fchdir: don't ignore chdir failure
25971         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25972         * lib/rename.c (rpl_rename) [W32]: Likewise.
25973         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25974         an empty destination directory if source cannot be renamed,
25975         although there is still possibility for failure.
25976         * doc/posix-functions/rename.texi (rename): Document the race.
25977         Reported by Jim Meyering.
25978
25979         maint: cleanup whitespace in recent commits
25980         * lib/rename.c (rpl_rename): Remove tabs.
25981         * tests/test-link.h (test_link): Likewise.
25982         * lib/fchdir.c (get_name): Likewise.
25983         Reported by Jim Meyering.
25984
25985 2009-10-02  Ben Pfaff  <blp@gnu.org>
25986
25987         relocatable-prog-wrapper: Add missing dependency on
25988         double-slash-root.
25989         * modules/relocatable-prog-wrapper: Add dependency.
25990         Reported by Ian Beckwith <ianb@erislabs.net>.
25991
25992 2009-10-02  Eric Blake  <ebb9@byu.net>
25993
25994         renameat: fix Solaris bugs
25995         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25996         needed fixing.
25997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25998         * modules/stdio (Makefile.am): Substitute it.
25999         * lib/stdio.in.h (renameat): Declare replacement.
26000         * lib/renameat.c (rpl_renameat): Implement fix.
26001
26002         renameat: new module
26003         * modules/renameat: New file.
26004         * lib/renameat.c (renameat): Likewise.
26005         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26007         * modules/stdio (Makefile.am): Substitute them.
26008         * lib/stdio.in.h (renameat): Declare it.
26009         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26010         * doc/posix-functions/renameat.texi (renameat): Likewise.
26011         * modules/renameat-tests: New test.
26012         * tests/test-renameat.c: Likewise.
26013
26014         rename: fix mingw bugs
26015         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26016         directory overwrite bugs.
26017
26018         rename: fix another cygwin 1.5 bug
26019         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26020         checks.
26021         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26022         unnecessary cygwin workarounds.  Also work around bug with moving
26023         full directory onto an empty one.
26024         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26025
26026         rename-dest-slash: merge into rename module
26027         * modules/rename-dest-slash (Status): Mark obsolete.
26028         (Depends-on): Add rename.
26029         (Files): Let rename do it all.
26030         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26031         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26032         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26033         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26034         * lib/rename.c (rpl_rename): Update comments.
26035
26036         rename: fix cygwin 1.5.x bugs
26037         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26038         * lib/rename.c (rpl_rename): Work around them.
26039         * modules/rename (Depends-on): Add same-inode.
26040
26041         rename: fix Solaris 10 bug
26042         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26043         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26044         was the only bug.
26045
26046         rename: fix Solaris 9 bug
26047         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26048         on non-directory.  Avoid calling exit.
26049         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26050         strdup.
26051         * modules/rename-tests (Depends-on): Drop lstat.
26052         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26053         (gl_PREREQ_RENAME): Delete unused macro.
26054
26055         rename-dest-slash: fix NetBSD bug
26056         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26057         links.
26058         * modules/rename-dest-slash (Depends-on): Add same-inode.
26059
26060         rename-tests: new test, exposes several platform bugs
26061         * modules/rename-tests: New file.
26062         * tests/test-rename.h: Likewise.
26063         * tests/test-rename.c: Likewise.
26064         * doc/posix-functions/rename.texi (rename): Improve documentation,
26065         including bugs that will eventually be fixed in gnulib.
26066
26067 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26068
26069         * lib/uname.c: Include <stdlib.h>
26070         (uname): Assume version info is available.
26071
26072 2009-10-02  Jim Meyering  <meyering@redhat.com>
26073
26074         gnu-web-doc-update: correct --help output
26075         * build-aux/gnu-web-doc-update: Make --help output relevant.
26076
26077         gnu-web-doc-update: add standard options
26078         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26079
26080         gnu-web-doc-update: New module.
26081         Use this script to automatically update the on-line web documentation
26082         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26083         * modules/gnu-web-doc-update: New file, from coreutils.
26084         * build-aux/gnu-web-doc-update: New script.
26085
26086 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26087
26088         link: LoadLibrary is not needed.
26089         * lib/link.c: Use GetModuleHandle.
26090
26091 2009-10-01  Eric Blake  <ebb9@byu.net>
26092
26093         getopt: bump serial number
26094         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26095         change.
26096
26097         tests: tighten link, rmdir, and remove tests
26098         * tests/test-link.h (includes): No need to use <config.h> here.
26099         Clean up if directory hard link was created, otherwise test for
26100         trailing '.'.
26101         * tests/test-linkat.c (main): Simplify.
26102         * tests/test-remove.c (main): Enhance test for trailing '.'.
26103         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26104
26105 2009-10-01  Jim Meyering  <meyering@redhat.com>
26106
26107         maint.mk: requiring "make major" was annoying, for a "minor" release.
26108         What is intended is "stable", to contrast with alpha and beta,
26109         so require "make stable", not "make major".
26110         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26111         (get_tool_versions): Likewise.
26112         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26113
26114 2009-09-30  Ben Pfaff  <blp@gnu.org>
26115
26116         Fix broken build of replacement for Windows tmpfile().
26117         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26118         flags argument added along with the 'mkostemp' module.
26119
26120 2009-09-28  Bruno Haible  <bruno@clisp.org>
26121
26122         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26123         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26124         to 'remove_elt'.
26125         (gl_list_remove): Update.
26126         * lib/gl_list.c (gl_list_remove): Update.
26127         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26128         to 'remove_elt'.
26129         (gl_oset_remove): Update.
26130         * lib/gl_list.c (gl_oset_remove): Update.
26131         Reported by Eric Blake.
26132
26133 2009-09-28  Eric Blake  <ebb9@byu.net>
26134
26135         doc: mention yet more cygwin 1.7 status
26136         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26137         cygwin.
26138         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26139         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26140
26141         argp: fix test failure
26142         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26143         that are not upper-case.  Pass correct range to tolower.
26144
26145 2009-09-27  Jim Meyering  <meyering@redhat.com>
26146
26147         test-yesno: work around sparc-dash here-document infelicity
26148         Without this change, the literal \177 byte in a here document
26149         would make dash 0.5.5.1-3 access uninitialized memory.
26150         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26151         Instead, use a marker, "@", and filter through tr to create the desired
26152         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26153
26154 2009-09-27  Bruno Haible  <bruno@clisp.org>
26155
26156         Disable untested support for new flavours of ACLs on AIX.
26157         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26158         progress.
26159         * lib/set-mode-acl.c (qset_acl): Likewise.
26160
26161 2008-12-07  Bruno Haible  <bruno@clisp.org>
26162
26163         Add support for new flavours of ACLs on AIX. (Untested.)
26164         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26165         (file_has_acl): Add support for newer AIX.
26166         * lib/set-mode-acl.c (qset_acl): Likewise.
26167         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26168         Rainer Tammer <tammer@tammer.net>.
26169
26170 2009-09-26  Eric Blake  <ebb9@byu.net>
26171
26172         argp: fix compilation of getopt
26173         * lib/getopt.in.h (includes): Use different guard than glibc.
26174         Reported by Sergey Poznyakoff.
26175
26176         doc: mention more cygwin 1.7 status
26177         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26178         bug.
26179         * doc/posix-functions/execl.texi (execl): Likewise.
26180         * doc/posix-functions/execle.texi (execle): Likewise.
26181         * doc/posix-functions/execlp.texi (execlp): Likewise.
26182         * doc/posix-functions/execv.texi (execv): Likewise.
26183         * doc/posix-functions/execve.texi (execve): Likewise.
26184         * doc/posix-functions/execvp.texi (execvp): Likewise.
26185         * doc/glibc-functions/canonicalize_file_name.texi
26186         (canonicalize_file_name): Cygwin 1.7 now provides this.
26187         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26188         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26189         on AT_SYMLINK_NOFOLLOW.
26190
26191 2009-09-24  Eric Blake  <ebb9@byu.net>
26192
26193         test-linkat: make test more robust
26194         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26195
26196         getopt: fix inclusion guards for cygwin
26197         * modules/getopt-posix (Depends-on): Add include-next.
26198         (Makefile.am): Substitute more items in replacement header.
26199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26200         <getopt.h>.
26201         * lib/getopt.in.h (includes): Use split inclusion guard, and
26202         prefer <getopt.h> over include <unistd.h> when one is present.
26203         (option): Also override name of 'struct option'.
26204
26205         same-inode: revert prior change; it is not yet ready
26206         * NEWS: Undo mention of this change.
26207         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26208         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26209         * lib/cycle-check.c (cycle_check): Likewise.
26210         * lib/same.c (same_name): Likewise.
26211         * lib/at-func2.c (at_func2): Likewise.
26212
26213 2009-09-23  Eric Blake  <ebb9@byu.net>
26214
26215         linkat: new module
26216         * modules/linkat: New file.
26217         * lib/at-func2.c (at_func2): Likewise.
26218         * lib/linkat.c (linkat): Likewise.
26219         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26220         * lib/openat-priv.h (at_func2): Add declaration.
26221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26222         * modules/unistd (Makefile.am): Substitute them.
26223         * lib/unistd.in.h (linkat): Declare it.
26224         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26225         * doc/posix-functions/linkat.texi (linkat): Likewise.
26226         * doc/posix-functions/link.texi (link): Tweak wording.
26227         * tests/test-link.c (main): Move guts...
26228         * tests/test-link.h (test_link): ...into new file.
26229         * modules/linkat-tests: New test.
26230         * tests/test-linkat.c: Likewise.
26231         * modules/link-tests (Files): Ship new file.
26232         (Depends-on): Add stdbool.
26233
26234         dirname: add library-safe mdir_name
26235         * lib/dirname.h (mdir_name): New prototype.
26236         * lib/dirname.c (dir_name): Move guts...
26237         (mdir_name): ...to new function that avoids xalloc_die.
26238
26239         fchdir: another mingw fix
26240         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26241         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26242         on mingw (where it has not yet been ported), and make it optional
26243         elsewhere.
26244         (_gl_register_fd): Use it.
26245
26246         same-inode: make SAME_INODE tri-state, to port to mingw
26247         * NEWS: Mention this change.
26248         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26249         st_ino always being 0.
26250         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26251         * lib/cycle-check.c (cycle_check): Likewise.
26252         * lib/same.c (same_name): Likewise.
26253
26254         lstat: avoid mingw compilation error
26255         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26256         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26257         lstat ourselves.
26258         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26259         was adequate.
26260         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26261         the checks for lstat.
26262         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26263
26264         link: fix test failure on Solaris 9
26265         * lib/link.c (rpl_link): Don't assume link will catch bogus
26266         trailing slash on source.
26267
26268         test-symlinkat: enhance test
26269         * tests/test-readlink.c (main): Move guts...
26270         * tests/test-readlink.h (test_readlink): ...into new file.
26271         * tests/test-symlink.c (main): Move guts...
26272         * tests/test-symlink.h (test_symlink): ...into new file.
26273         * tests/test-symlinkat.c (main): Use new files for further
26274         coverage.
26275         (do_symlink, do_readlink): New helper functions.
26276         * modules/symlink-tests (Files): Ship new file.
26277         (Depends-on): Add stdbool.
26278         * modules/readlink-tests (Files): Ship new file.
26279         (Depends-on): Add stdbool.
26280         * modules/symlinkat-tests (Files): Use new files.
26281
26282 2009-09-23  Eric Blake  <ebb9@byu.net>
26283
26284         readlink: document portability issue with symlink length
26285         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26286         systems have bogus st_size on symlinks, and mention the
26287         areadlink-with-size module.
26288         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26289         * doc/posix-functions/readlink.texi (readlink): Mention the
26290         areadlink module, and ERANGE failure.
26291         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26292         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26293
26294         readlink: fix Solaris 9 bug with trailing slash
26295         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26296         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26297         * doc/posix-functions/readlink.texi (readlink): Document this.
26298         * modules/readlink-tests: New test.
26299         * tests/test-readlink.c: Likewise.
26300
26301         readlink: fix cygwin 1.5.x bug with return type
26302         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26303         * lib/unistd.in.h (readlink): Use ssize_t.
26304         * lib/readlink.c (readlink): Likewise.
26305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26306         * modules/unistd (Makefile.am): Substitute it.
26307         * lib/unistd.in.h (readlink): Declare replacement.
26308         * doc/posix-functions/readlink.texi (readlink): Document this.
26309
26310         symlink: use throughout gnulib
26311         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26312         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26313         symlink is not used.
26314         * modules/symlinkat (Depends-on): Add symlink.
26315         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26316         * modules/canonicalize-tests (Depends-on): Likewise.
26317         * modules/lstat-tests (Depends-on): Likewise.
26318         * modules/openat-tests (Depends-on): Likewise.
26319         * modules/remove-tests (Depends-on): Likewise.
26320         * modules/rmdir-tests (Depends-on): Likewise.
26321         * modules/unlink-tests (Depends-on): Likewise.
26322         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26323         * tests/test-canonicalize.c (symlink): Likewise.
26324         * tests/test-fstatat.c (symlink): Likewise.
26325         * tests/test-lstat.c (symlink): Likewise.
26326         * tests/test-remove.c (symlink): Likewise.
26327         * tests/test-rmdir.c (symlink): Likewise.
26328         * tests/test-unlink.c (symlink): Likewise.
26329         * tests/test-unlinkat.c (symlink): Likewise.
26330
26331         symlink: new module, for Solaris 9 bug
26332         * modules/symlink: New file.
26333         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26334         * lib/symlink.c: Likewise.
26335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26336         * modules/unistd (Makefile.am): Substitute them.
26337         * lib/unistd.in.h (symlink): Declare replacement.
26338         * MODULES.html.sh (File system functions): Mention it.
26339         * doc/posix-functions/symlink.texi (symlink): Likewise.
26340         * modules/symlink-tests: New test.
26341         * tests/test-symlink.c: Likewise.
26342
26343 2009-09-23  Bruno Haible  <bruno@clisp.org>
26344
26345         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26346         when needed.
26347         Test case: gnulib-tool --import --with-tests atexit inttypes.
26348         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26349
26350 2009-09-23  Bruno Haible  <bruno@clisp.org>
26351
26352         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26353         subcommand, not in a subshell.
26354
26355 2009-09-22  Eric Blake  <ebb9@byu.net>
26356
26357         unistd: sort replacement declarations
26358         * lib/unistd.in.h: Sort declarations.
26359
26360         open, openat: minor optimization
26361         * lib/open.c (open): If open succeeded, len is non-zero.
26362         * lib/openat.c (rpl_openat): Likewise.
26363
26364         link-follow: ensure correct result
26365         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26366         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26367         distinguish between possible failures.
26368
26369 2009-09-21  Eric Blake  <ebb9@byu.net>
26370
26371         fts: avoid compiler warning
26372         * lib/fts.c (dirent_inode_sort_may_be_useful)
26373         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26374
26375 2009-09-19  Bruno Haible  <bruno@clisp.org>
26376
26377         * lib/progreloc.c (canonicalize_file_name): New declaration.
26378
26379 2009-09-19  Eric Blake  <ebb9@byu.net>
26380
26381         link: fix quoting
26382         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26383
26384         openat: fix openat bugs on Solaris 9
26385         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26386         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26387         * modules/openat (Depends-on): Add open.
26388         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26389         * modules/fcntl-h (Makefile.am): Substitute it.
26390         * lib/fcntl.in.h (openat): Declare replacement.
26391         * doc/posix-functions/openat.texi (openat): Document this.
26392
26393         openat: move fstatat and unlinkat into correct files
26394         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26395         compiled.
26396         * lib/openat.c (fstatat, unlinkat): Move...
26397         * lib/fstatat.c (fstatat): ...into correct files.
26398         * lib/unlinkat.c (unlinkat): Likewise.
26399
26400         openat: fix unlinkat bugs on Solaris 9
26401         * lib/unlinkat.c (unlinkat): New file.
26402         * modules/openat (Depends-on): Add unlink.
26403         (Files): Distribute it.
26404         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26405         trailing slash behavior is broken.
26406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26407         * modules/unistd (Makefile.am): Substitute it.
26408         * lib/unistd.in.h (unlinkat): Declare replacement.
26409         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26410
26411         openat: fix fstatat bugs on Solaris 9
26412         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26413         stat.
26414         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26415
26416         test-unlinkat: enhance test, to expose Solaris 9 bug
26417         * tests/test-unlink.c (main): Factor guts...
26418         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26419         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26420         * tests/test-rmdir.c (main): Adjust caller.
26421         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26422         (unlinker): New helper function.
26423         (rmdirat): Enhance check.
26424         * modules/rmdir-tests (Depends-on): Add stdbool.
26425         * modules/unlink-tests (Depends-on): Likewise.
26426         (Files): Add test-unlink.h.
26427         * modules/openat-tests (Files): Likewise.
26428         (Depends-on): Add unlinkdir.
26429
26430         test-fstatat: new test, to expose Solaris 9 bugs
26431         * tests/test-stat.c (main): Factor guts...
26432         * tests/test-stat.h (test_stat_func): ...into new file.
26433         * tests/test-lstat.c (main): Factor guts...
26434         * tests/test-lstat.h (test_lstat_func): ...into new file.
26435         * tests/test-fstatat.c: New file.
26436         * modules/stat-tests (Files): Add test-stat.h.
26437         * modules/lstat-tests (Files): Add test-lstat.h.
26438         (Depends-on): Add stdbool.
26439         * modules/openat-tests (Depends-on): Add pathmax.
26440         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26441         (Makefile.am): Run new test.
26442
26443         remove: new module, for mingw and Solaris 9 bugs
26444         * modules/remove: New file.
26445         * lib/remove.c: Likewise.
26446         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26448         * modules/stdio (Makefile.am): Use them.
26449         * lib/stdio.in.h (remove): Declare replacement.
26450         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26451         * doc/posix-functions/remove.texi (remove): Likewise.
26452         * modules/remove-tests: New test.
26453         * tests/test-remove.c: Likewise.
26454
26455         unlink: new module, for Solaris 9 bug
26456         * modules/unlink: New file.
26457         * lib/unlink.c: Likewise.
26458         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26460         * modules/unistd (Makefile.am): Use them.
26461         * lib/unistd.in.h (stat): Declare replacement.
26462         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26463         * doc/posix-functions/unlink.texi (unlink): Likewise.
26464         * modules/unlink-tests: New test.
26465         * tests/test-unlink.c: Likewise.
26466
26467         lstat: fix Solaris 9 bug
26468         * lib/lstat.c (lstat): Also check for trailing slash on
26469         non-symlink, non-directories.  Use stat module to simplify logic.
26470         * doc/posix-functions/lstat.texi (lstat): Document it.
26471         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26472         (configure.ac): Check for symlink.
26473         * tests/test-lstat.c (main): Add more tests.
26474
26475         stat: add as dependency to other modules
26476         * modules/chown (Depends-on): Add stat.
26477         * modules/euidaccess (Depends-on): Likewise.
26478         * modules/fchdir (Depends-on): Likewise.
26479         * modules/isdir (Depends-on): Likewise.
26480         * modules/link (Depends-on): Likewise.
26481         * modules/lstat (Depends-on): Likewise.
26482         * modules/mkdir-p (Depends-on): Likewise.
26483         * modules/modechange (Depends-on): Likewise.
26484         * modules/open (Depends-on): Likewise.
26485         * modules/readlink (Depends-on): Likewise.
26486         * modules/same (Depends-on): Likewise.
26487
26488         stat: fix Solaris 9 bug
26489         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26490         slash.
26491         * lib/stat.c (rpl_stat): Work around it.
26492         * doc/posix-functions/stat.texi (stat): Update documentation.
26493
26494         stat: new module, for mingw bug
26495         * modules/stat: New file.
26496         * lib/stat.c: Likewise.
26497         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26498         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26499         * modules/sys_stat (Makefile.am): Use them.
26500         * lib/sys_stat.in.h (stat): Declare replacement.
26501         * lib/openat.c (fstatat): Deal with lstat and stat being function
26502         macros.
26503         * modules/openat (Depends-on): Add inline.
26504         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26505         * doc/posix-functions/stat.texi (stat): Likewise.
26506         * modules/stat-tests: New test.
26507         * tests/test-stat.c: Likewise.
26508
26509 2009-09-19  Jim Meyering  <meyering@redhat.com>
26510
26511         syntax-check: detect unnecessary inclusion of canonicalize.h
26512         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26513
26514 2009-09-19  Eric Blake  <ebb9@byu.net>
26515
26516         canonicalize-lgpl: adjust clients to use correct header
26517         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26518         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26519         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26520         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26521         * lib/progreloc.c (includes): Likewise.
26522
26523 2009-09-19  Jim Meyering  <meyering@redhat.com>
26524
26525         test-posixtm.c: correct a comment
26526         * tests/test-posixtm.c: Correct first-line comment.
26527         Spotted by Eric Blake.
26528
26529 2009-09-16  Jim Meyering  <meyering@redhat.com>
26530
26531         posixtm-tests: make T const-correct; add a test case
26532         * tests/test-posixtm.c (T): Declare const.
26533         Add a test for -(2^31+1).
26534         Remove useless can-succeed-only-in-2002 test.
26535
26536         posixtm-tests: adjust the sole failing test
26537         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26538         expected output matches what mktime now produces.  Cross-checked via
26539         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26540
26541         posixtm: move #ifdef'd tests into a new module
26542         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26543         * tests/test-posixtm.c: ... this new file.
26544         * modules/posixtm-tests: New module.
26545
26546 2009-09-19  Eric Blake  <ebb9@byu.net>
26547
26548         openat: simplify use of at-func.c
26549         * lib/at-func.c (includes): Include prerequisites here, to
26550         simplify requirements on client files.
26551         * lib/openat-priv.h: Add double-inclusion guard.
26552         * lib/faccessat.c (includes): Simplify.
26553         * lib/fchmodat.c (includes): Likewise.
26554         * lib/fchownat.c (includes): Likewise.
26555         * lib/mkdirat.c (includes): Likewise.
26556         * lib/mkfifoat.c (includes): Likewise.
26557         * lib/symlinkat.c (includes): Likewise.
26558
26559         openat: allow return of fd 0
26560         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26561         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26562         unistd-safer.
26563         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26564         <fcntl.h>; this module does not leak fds.
26565         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26566         must be allowed to return 0, leaving openat_safer to add the
26567         safety.
26568         (openat_permissive): Avoid writing to just-opened fd 2 if
26569         restoring the current directory fails.
26570         * lib/openat-die.c (openat_restore_fail): Add comment.
26571         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26572         (save_cwd): Guarantee safe fd, but without use of open_safer.
26573         * tests/test-openat.c: New test.
26574         * modules/openat-tests (Files, Makefile.am): Distribute and build
26575         new file.
26576
26577         relocatable-prog-wrapper: fix build
26578         * modules/relocatable-prog-wrapper (Files): Update name of
26579         canonicalize m4 file, broken on 2009-09-17.
26580         Reported by emad hajjar <aleppos@hotmail.com>.
26581
26582 2009-09-19  Bruno Haible  <bruno@clisp.org>
26583
26584         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26585         * lib/safe-alloc.c: Likewise.
26586         Reported by Ian Beckwith <ianb@erislabs.net>.
26587
26588 2009-09-18  Bruno Haible  <bruno@clisp.org>
26589
26590         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26591         Reported by <erobles@sensacd.com.mx>.
26592
26593 2009-09-17  Eric Blake  <ebb9@byu.net>
26594
26595         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26596         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26597         slashes when checking if last component is missing.
26598         * tests/test-canonicalize.c (main): Test this.
26599
26600         canonicalize, canonicalize-lgpl: honor // if distinct from /
26601         * modules/canonicalize (Files): Add double-slash-root.m4.
26602         * modules/canonicalize-lgpl (Files): Likewise.
26603         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26604         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26605         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26606         fallback definition.
26607         (canonicalize_filename_mode): Use it to protect //.
26608         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26609         (__realpath): Likewise.
26610         * tests/test-canonicalize.c (main): Test this.
26611         * tests/test-canonicalize-lgpl.c (main): Likewise.
26612         * modules/canonicalize-tests (Depends-on): Add same-inode.
26613         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26614
26615         canonicalize-lgpl: fix glibc bug with trailing slash
26616         * m4/canonicalize-lgpl.m4: Move contents...
26617         * m4/canonicalize.m4: ...here.
26618         (gl_CANONICALIZE_LGPL): Factor realpath check...
26619         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26620         glibc 2.3.5 bug, fixed 2005-04-27.
26621         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26622         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26623         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26624         * modules/canonicalize-lgpl (Files): Manage file rename.
26625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26626         * modules/stdlib (Makefile.am): Substitute witness.
26627         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26628         is needed.
26629         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26630         replacement is required.
26631         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26632         * doc/glibc-functions/canonicalize_file_name.texi
26633         (canonicalize_file_name): Document this.
26634         * doc/posix-functions/realpath.texi (realpath): Likewise.
26635
26636         canonicalize-lgpl: reject non-directory with trailing slash
26637         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26638         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26639         catches failures in glibc 2.3.5.
26640         * tests/test-canonicalize.c (main): Likewise.
26641
26642         canonicalize-lgpl: use native realpath if it works
26643         * lib/canonicalize-lgpl.c (realpath): Guard with
26644         FUNC_REALPATH_WORKS.
26645         * lib/stdlib.in.h (realpath): Make declaration optional based on
26646         HAVE_REALPATH.
26647         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26648         native realpath works.
26649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26650         * modules/stdlib (Makefile.am): Substitute witness.
26651
26652         canonicalize, canonicalize-lgpl: use <stdlib.h>
26653         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26654         (Include): Mention <stdlib.h>.
26655         (configure.ac): Mention functions we provide.
26656         * modules/canonicalize (configure.ac): Likewise.
26657         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26658         realpath if canonicalize_file_name is missing.
26659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26660         * modules/stdlib (Makefile.am): Substitute witnesses.
26661         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26662         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26663         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26664         * NEWS: Document this.
26665         * doc/glibc-functions/canonicalize_file_name.texi
26666         (canonicalize_file_name): Likewise.
26667         * doc/posix-functions/realpath.texi (realpath): Likewise.
26668         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26669
26670         test-canonicalize: consolidate into single C program
26671         * tests/test-canonicalize.sh: Delete; move setup into...
26672         * tests/test-canonicalize.c (main): ...the program, making it
26673         easier to run in debugger.  Add some tests.
26674         * modules/canonicalize-tests (Files): Remove unused file.
26675         (Depends-on): Add progname.
26676         (configure.ac, Makefile.am): Simplify.
26677
26678         test-canonicalize-lgpl: consolidate into single C program
26679         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26680         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26681         easier to run in debugger.  Add some tests.
26682         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26683         (configure.ac, Makefile.am): Simplify.
26684
26685         canonicalize: avoid resolvepath
26686         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26687         unnecessary checks.
26688         * lib/canonicalize.c (includes): Simplify.
26689         (canonicalize_file_name): Drop resolvepath implementation.
26690         * modules/canonicalize (Depends-on): Drop filenamecat.
26691
26692         canonicalize: don't lose errno
26693         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26694         over calls to free.
26695
26696         canonicalize: simplify errno handling
26697         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26698         assignment.
26699
26700         canonicalize, canonicalize-lgpl: update module dependencies
26701         * modules/canonicalize (Depends-on): Add extensions, lstat,
26702         pathmax, stdlib.
26703         (Files): Drop pathmax.h.
26704         (configure.ac): Adjust macro name.
26705         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26706         lstat, stdlib, sys_stat.
26707         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26708         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26709         extensions.
26710         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26711         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26712         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26713         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26714         declaration, if available.
26715         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26716         we can rely on the readlink module.
26717         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26718         (includes): Use <unistd.h> unconditionally.
26719
26720 2009-09-17  Eric Blake  <ebb9@byu.net>
26721
26722         maint: make Include sections of modules consistent
26723         * modules/alloca: Use only header name; no need to list #include.
26724         * modules/alloca-opt: Likewise.
26725         * modules/arpa_inet: Likewise.
26726         * modules/canon-host: Likewise.
26727         * modules/configmake: Likewise.
26728         * modules/dirent: Likewise.
26729         * modules/eealloc: Likewise.
26730         * modules/environ: Likewise.
26731         * modules/fchdir: Likewise.
26732         * modules/fcntl: Likewise.
26733         * modules/fcntl-h: Likewise.
26734         * modules/gethrxtime: Likewise.
26735         * modules/gettime: Likewise.
26736         * modules/ignore-value: Likewise.
26737         * modules/inet_ntop: Likewise.
26738         * modules/inet_pton: Likewise.
26739         * modules/inttypes: Likewise.
26740         * modules/isnand-nolibm: Likewise.
26741         * modules/isnanf-nolibm: Likewise.
26742         * modules/mbchar: Likewise.
26743         * modules/mbfile: Likewise.
26744         * modules/mbiter: Likewise.
26745         * modules/mbuiter: Likewise.
26746         * modules/netdb: Likewise.
26747         * modules/netinet_in: Likewise.
26748         * modules/nproc: Likewise.
26749         * modules/pagealign_alloc: Likewise.
26750         * modules/poll: Likewise.
26751         * modules/printf-frexp: Likewise.
26752         * modules/pthread: Likewise.
26753         * modules/putenv: Likewise.
26754         * modules/random_r: Likewise.
26755         * modules/relocatable-prog: Likewise.
26756         * modules/search: Likewise.
26757         * modules/select: Likewise.
26758         * modules/selinux-h: Likewise.
26759         * modules/settime: Likewise.
26760         * modules/signal: Likewise.
26761         * modules/size_max: Likewise.
26762         * modules/socklen: Likewise.
26763         * modules/ssize_t: Likewise.
26764         * modules/stdarg: Likewise.
26765         * modules/stdbool: Likewise.
26766         * modules/stddef: Likewise.
26767         * modules/stdint: Likewise.
26768         * modules/stdio: Likewise.
26769         * modules/stdlib: Likewise.
26770         * modules/string: Likewise.
26771         * modules/strings: Likewise.
26772         * modules/sys_file: Likewise.
26773         * modules/sys_ioctl: Likewise.
26774         * modules/sys_select: Likewise.
26775         * modules/sys_socket: Likewise.
26776         * modules/sys_stat: Likewise.
26777         * modules/sys_time: Likewise.
26778         * modules/sys_times: Likewise.
26779         * modules/sys_utsname: Likewise.
26780         * modules/sys_wait: Likewise.
26781         * modules/sysexits: Likewise.
26782         * modules/time: Likewise.
26783         * modules/times: Likewise.
26784         * modules/tmpfile: Likewise.
26785         * modules/trim: Likewise.
26786         * modules/unistd: Likewise.
26787         * modules/wchar: Likewise.
26788         * modules/wctype: Likewise.
26789
26790 2009-09-17  Bruno Haible  <bruno@clisp.org>
26791
26792         Make getdate.y compile on QNX and NetBSD 5 / i386.
26793         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26794         TIME_T_FITS_IN_LONG_INT.
26795         * lib/getdate.y (long_time_t): New type.
26796         (relative_time): Change type of 'seconds' field to long_time_t.
26797         (get_date): Update types of local variables. Check against overflow
26798         during conversion from long_time_t to time_t.
26799         Reported by Matt Kraai <kraai@ftbfs.org>
26800         and Hasso Tepper <hasso@netbsd.org>.
26801
26802 2009-09-17  Bruno Haible  <bruno@clisp.org>
26803
26804         * modules/COPYING: Update copyright years.
26805         * modules/README: Likeiwse.
26806         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26807         Reported by Ian Beckwith <ianb@erislabs.net>.
26808
26809 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26810
26811         * users.txt: Update references for gnuit package.
26812
26813 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26814
26815         * m4/getdelim.m4: Fix typo in copyright line.
26816
26817 2009-09-17  Bruno Haible  <bruno@clisp.org>
26818
26819         * lib/atoll.c: Use the standard header with GPL copyright.
26820         * lib/argz.in.h: Likewise.
26821         * lib/glob.c: Likewise.
26822         * lib/glob-libc.h: Likewise.
26823         * lib/random_r.c: Likewise.
26824         * lib/siglist.h: Likewise.
26825         * lib/strsignal.c: Likewise.
26826         Reported by Ian Beckwith <ianb@erislabs.net>.
26827
26828 2009-09-17  Eric Blake  <ebb9@byu.net>
26829
26830         rmdir: ensure correct dependency order
26831         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26832
26833 2009-09-17  Bruno Haible  <bruno@clisp.org>
26834
26835         Disable assertion that fails on NetBSD 5 / i386.
26836         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26837         Reported by Sam Steingold <sds@gnu.org>
26838         and Hasso Tepper <hasso@netbsd.org>.
26839
26840 2009-09-16  Eric Blake  <ebb9@byu.net>
26841
26842         unlinkdir: port to mingw
26843         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26844         on which no one can unlink a directory.
26845
26846         stdlib: sort witness names
26847         * modules/stdlib (Makefile.am): Sort replacements.
26848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26849         * lib/stdlib.in.h: Likewise.
26850
26851         parse-duration-tests: avoid link failure
26852         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26853         LIBINTL.
26854         Reported by Tom G. Christensen.
26855
26856         openat-tests: ensure unlinkat behaves like rmdir
26857         * tests/test-rmdir.c (main): Factor guts...
26858         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26859         * modules/rmdir-tests (Files): Ship new file.
26860         * modules/openat-tests: New test.
26861         * tests/test-unlinkat.c: Likewise.
26862
26863         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26864         * modules/rmdir-errno (Status, Notice): Now obsolete.
26865
26866         rmdir: work around cygwin 1.5.x and mingw bugs
26867         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26868         * lib/rmdir.c (rmdir): Work around it.
26869         * modules/rmdir (Status, Notice): No longer obsolete.
26870         (Files): Add dos.m4.
26871         (Depends-on): Add unistd.
26872         (configure.ac): Set witnesses.
26873         (License): Relax to LGPLv2+.
26874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26875         * modules/unistd (Makefile.am): Substitute witnesses.
26876         * lib/unistd.in.h (rmdir): Declare replacement.
26877         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26878         * modules/rmdir-tests: New tests.
26879         * tests/test-rmdir.c: Likewise.
26880
26881 2009-09-15  Eric Blake  <ebb9@byu.net>
26882
26883         fchdir: improve use of replacement functions
26884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26885         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26886         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26887         REPLACE_CLOSEDIR.
26888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26889         * modules/sys_stat (Makefile.am): Substitute correct witness.
26890         * modules/dirent (Makefile.am): Likewise.
26891         * modules/unistd (Makefile.am): Likewise.
26892         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26893         * lib/unistd.in.h (dup): Likewise.
26894         * lib/sys_stat.in.h (fstat): Likewise.
26895
26896         maint: ignore gnulib-tool temp files
26897         * .gitignore: Ignore files created during gnulib-tool --test.
26898
26899 2009-09-13  Jim Meyering  <meyering@redhat.com>
26900
26901         posixtm: don't reject a time that specify "60" as the number of seconds
26902         * lib/posixtm.c (posixtime): The code to reject invalid dates
26903         would also reject a time specified with the .60 suffix.
26904         But POSIX allows that, in order to accommodate leap seconds.
26905         So don't reject it.
26906         (main): Adjust tests accordingly.
26907         * modules/posixtm (Depends-on): Add stpcpy.
26908
26909 2009-09-11  Jim Meyering  <meyering@redhat.com>
26910
26911         announce-gen: include [$release_type] in emitted Subject:
26912         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26913         e.g., [stable] in the emitted Subject: line.
26914
26915 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26916
26917         Remove obsolete macros from several modules.
26918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26919         obsolete Autoconf macros with their modern counterparts.
26920         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26921         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26922         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26923         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26924         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26925         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26927         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26928         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26929         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26930         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26931         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26932         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26933         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26934         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26935         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26936         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26937         * m4/time_r.m4 (gl_TIME_R): Likewise.
26938         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26939         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26940         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26941
26942         Fix copyright header in build-aux scripts.
26943         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26944         recommendation.
26945         * build-aux/ncftpput-ftp: Likewise.
26946         * build-aux/update-copyright: Likewise.
26947
26948 2009-09-09  Eric Blake  <ebb9@byu.net>
26949
26950         test-link: allow Linux choice of errno
26951         * tests/test-link.c (main): Relax test for alternate error.
26952
26953         strndup: fix improper m4 caching
26954         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26955         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26956         (gl_PREREQ_STRNDUP): Delete.
26957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26958         * modules/string (Makefile.am): Substitute it.
26959         * lib/string.in.h (strndup): Modernize prototype.
26960
26961         getcwd: port to mingw
26962         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26963         different from the POSIX assumptions made throughout the getcwd
26964         module; fortunately, the mingw getcwd does not need replacement.
26965         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26966         * modules/getcwd-tests: New test.
26967         * tests/test-getcwd.c: Likewise.
26968
26969         link: fix platform bugs
26970         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26971         * lib/link.c (link): Work around them.  Fix related mingw bug.
26972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26973         * modules/unistd (Makefile.am): Substitute it.
26974         * lib/unistd.in.h (link): Declare replacement.
26975         * doc/posix-functions/link.texi (link): Document this.
26976         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26977
26978         test-link: consolidate into single C program, test more cases
26979         * tests/test-link.sh: Delete.
26980         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26981         at least Cygwin and Solaris.
26982         * modules/link-tests (Files): Remove unused file.
26983         (Depends-on): Add errno, sys_stat.
26984         (Makefile.am): Simplify.
26985
26986 2009-09-08  Bruno Haible  <bruno@clisp.org>
26987
26988         Work around towlower, towupper bug on mingw.
26989         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26990         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26991         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26992         * doc/posix-functions/towupper.texi: Likewise.
26993         Reported by Eric Blake.
26994
26995 2009-09-08  Jim Meyering  <meyering@redhat.com>
26996
26997         build: don't try to run autoheader if we don't use it
26998         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26999         is not used in configure.ac.
27000
27001 2009-09-08  Eric Blake  <ebb9@byu.net>
27002
27003         euidaccess: fix compilation error
27004         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27005
27006         rawmemchr: relax license
27007         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27008         okay.
27009         Reported by Jim Meyering.
27010
27011         mkfifoat: new module
27012         * modules/mkfifoat: New file.
27013         * lib/mkfifoat.c: Likewise.
27014         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27015         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27016         * modules/sys_stat (Makefile.am): Use them.
27017         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27018         * MODULES.html.sh (File system functions): Mention module.
27019         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27020         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27021         * modules/mkfifoat-tests: New test.
27022         * tests/test-mkfifoat.c: Likewise.
27023
27024         strchrnul: relax license
27025         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27026         okay.
27027         Reported by Jim Meyering.
27028
27029 2009-09-08  Eric Blake  <ebb9@byu.net>
27030
27031         fstatat: fix compilation on Solaris
27032         * lib/fstatat.c (includes): Add fcntl.h.
27033         Reported by Pádraig Brady.
27034
27035 2009-09-07  Eric Blake  <ebb9@byu.net>
27036
27037         rename: modernize replacement
27038         * modules/rename (Depends-on): Add stdio.
27039         (configure.ac): Declare witness.
27040         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27041         stdio take care of replacement.
27042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27043         * modules/stdio (Makefile.am): Substitute them.
27044         * lib/stdio.in.h (rename): Declare replacement.
27045         * lib/rename.c (includes): Allow cross-compilation to non-windows
27046         machines.
27047         * doc/posix-functions/rename.texi (rename): Improve
27048         documentation.
27049
27050         stdio: sort witness names
27051         * modules/stdio (Makefile.am): Sort replacements.
27052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27053         * lib/stdio.in.h: Likewise.
27054
27055         getcwd: minor cleanups
27056         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27057         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27058
27059         openat: provide more convenience names
27060         * modules/faccessat (configure.ac): Add C witness.
27061         * lib/unistd.in.h (readlinkat): Fix typo.
27062         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27063         convenience wrappers.
27064         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27065         wrappers in syntax checks.
27066
27067 2009-09-06  Eric Blake  <ebb9@byu.net>
27068
27069         doc: fix comments in recent patches
27070         * lib/faccessat.c: Mention correct function.
27071         * lib/fchmodat.c: Likewise.
27072         * lib/fchownat.c: Likewise.
27073         * lib/symlinkat.c: Likewise.
27074         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27075         constants.
27076
27077         faccessat, symlinkat: continue cleanup of previous patch
27078         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27079         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27080         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27082         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27083         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27084         set.
27085
27086 2009-09-06  Bruno Haible  <bruno@clisp.org>
27087
27088         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27089         (fstatat): Declare if GNULIB_FSTATAT is set.
27090         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27091         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27092         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27093         * modules/fcntl-h (Files): Remove m4/openat.m4.
27094         * modules/sys_stat (Files): Remove m4/openat.m4.
27095         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27096         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27097         * modules/unistd (Files): Remove m4/openat.m4.
27098         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27099         GNULIB_OPENAT.
27100         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27101         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27103         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27104         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27105         gl_OPENAT_DEFAULTS.
27106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27107         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27108         Don't require gl_OPENAT_DEFAULTS.
27109         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27110         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27111         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27112         (gl_OPENAT_DEFAULTS): Remove macro.
27113
27114 2009-09-06  Bruno Haible  <bruno@clisp.org>
27115
27116         * modules/openat (configure.ac): Remove unneeded witness.
27117
27118 2009-09-06  Bruno Haible  <bruno@clisp.org>
27119
27120         Set errno to ENOSYS when a function is entirely unsupported.
27121         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27122         EOPNOTSUPP.
27123         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27124         * modules/chown (Depends-on): Remove errno.
27125
27126 2009-09-06  Bruno Haible  <bruno@clisp.org>
27127
27128         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27129
27130 2009-09-06  Bruno Haible  <bruno@clisp.org>
27131
27132         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27133
27134 2009-09-06  Ben Pfaff  <blp@gnu.org>
27135             Bruno Haible  <bruno@clisp.org>
27136
27137         Work around a glibc bug in strtok_r.
27138         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27139         Undefine if UNDEFINE_STRTOK_R is set.
27140         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27142         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27143         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27144         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27145         UNDEFINE_STRTOK_R.
27146         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27147
27148 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27149
27150         exclude: minor fix
27151         * lib/exclude.c: Include wctype.h
27152
27153 2009-09-06  Akim Demaille  <demaille@gostai.com>
27154
27155         bootstrap: improve error message
27156         * build-aux/bootstrap (find_tool): Upon failure, report the list
27157         of candidates.
27158         Honor the initial value of the envvar.
27159
27160 2009-09-05  Eric Blake  <ebb9@byu.net>
27161
27162         symlinkat: new module
27163         * modules/symlinkat: New file.
27164         * lib/symlinkat.c: Likewise.
27165         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27167         * modules/unistd (Makefile.am): Use them.
27168         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27169         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27170         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27171         * MODULES.html.sh (File system functions): Mention module.
27172         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27173         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27174         * modules/symlinkat-tests: New test.
27175         * tests/test-symlinkat.c: Likewise.
27176
27177         test-openat-safer: add more checks
27178         * tests/test-openat-safer.c (main): Check more code paths.
27179
27180 2009-09-05  Jim Meyering  <meyering@redhat.com>
27181
27182         syntax-check: detect unnecessary inclusion of openat.h
27183         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27184
27185 2009-09-05  Bruno Haible  <bruno@clisp.org>
27186
27187         Support towlower, towupper.
27188         * doc/posix-functions/towlower.texi: Mention module wctype.
27189         * doc/posix-functions/towupper.texi: Likewise.
27190         * lib/wctype.in.h (towlower, towupper): New functions.
27191         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27192         (ASSERT): New macro.
27193         (e): New variable.
27194         (main): Test also towlower, towupper. Test WEOF argument.
27195         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27196
27197 2009-09-05  Bruno Haible  <bruno@clisp.org>
27198
27199         Fix conversion behaviour when the input is invalid.
27200         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27201         mark occurring in first pass of indirect conversion.
27202         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27203         input.
27204         Found by clang's static analyzer.
27205
27206 2009-09-05  Bruno Haible  <bruno@clisp.org>
27207
27208         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27209         where direct conversion is possible.
27210
27211 2009-09-04  Eric Blake  <ebb9@byu.net>
27212
27213         openat: fail with ENOENT on empty name
27214         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27215         buffer.
27216
27217         link-follow: fix logic bug in prior patch
27218         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27219         reversed sense of yes and no in prior patch.  Avoid confusing
27220         compilation failure with desired semantics.
27221
27222         link-follow: accomodate mingw and cross-compilation
27223         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27224         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27225         cross-compilation results to -1, to make linkat easier to
27226         implement when cross-compiling.  Trivially support mingw.
27227         * modules/link-follow (configure.ac): Call new name.
27228         * NEWS: Mention this.
27229
27230 2009-09-03  Eric Blake  <ebb9@byu.net>
27231
27232         faccessat: compile replacement
27233         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27234         needed.
27235
27236         fts: fix compilation error
27237         * lib/fts.c (includes): Re-add "openat.h", for
27238         openat_needs_fchdir.
27239
27240         faccessat: new module
27241         * modules/faccessat: New file.
27242         * lib/faccessat.c: Likewise.
27243         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27245         * modules/unistd (Makefile.am): Use it.
27246         * lib/unistd.in.h (faccessat): Declare it.
27247         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27248         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27249         * MODULES.html.sh (File system functions): Mention it.
27250         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27251         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27252
27253         euidaccess: prefer POSIX over non-standard implementation
27254         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27255         * lib/euidaccess.c (euidaccess): Use it if available.
27256
27257         openat: make template easier to use
27258         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27259         AT_FUNC_F2 to be undefined.
27260         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27261         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27262         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27263         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27264         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27265         Likewise.
27266         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27267         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27268         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27269         Likewise.
27270
27271         openat: declare in POSIX headers
27272         * NEWS: Mention this.
27273         * modules/openat (configure.ac): Declare witnesses.
27274         (Depends-on): Add fcntl-h, sys_stat, unistd.
27275         (Include): Mention correct headers.
27276         * modules/fcntl-h (Depends-on): Add link-warning.
27277         (Files): Add openat.m4.
27278         (Makefile.am): Substitute witnesses.
27279         * modules/sys_stat (Files, Makefile.am): Likewise.
27280         * modules/unistd (Files, Makefile.am): Likewise.
27281         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27282         (gl_OPENAT_DEFAULTS): New macro.
27283         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27286         (SYS_STAT_H): Remove unused variable.
27287         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27288         * lib/fcntl--.h (includes): Remove unneeded header.
27289         * lib/openat-safer.c (includes): Likewise.
27290         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27291         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27292         appropriate headers.
27293         (__OPENAT_PREFIX): Delete.
27294         * lib/fcntl.in.h (openat): Provide declaration.
27295         (AT_FDCWD): Fix Solaris bug.
27296         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27297         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27298         * lib/fchmodat.c (includes):  Adjust to find declaration.
27299         * lib/fchownat.c (includes): Likewise.
27300         * lib/mkdirat.c (includes): Likewise.
27301         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27302         still visible.
27303
27304 2009-09-02  Eric Blake  <ebb9@byu.net>
27305
27306         errno: use consistently
27307         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27308         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27309         * lib/canonicalize.c (ELOOP): Likewise.
27310         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27311         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27312         * lib/lchown.c (EOPNOTSUPP): Likewise.
27313         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27314         * lib/savewd.c (ESTALE): Likewise.
27315         * lib/settime.c (ENOSYS): Likewise.
27316         * lib/utimens.c (ENOSYS): Likewise.
27317         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27318         * lib/chdir-safer.c (ELOOP): Likewise.
27319         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27320         * modules/c-stack (Depends-on): Add errno.
27321         * modules/canonicalize (Depends-on): Likewise.
27322         * modules/chdir-safer (Depends-on): Likewise.
27323         * modules/fdopendir (Depends-on): Likewise.
27324         * modules/inet_ntop (Depends-on): Likewise.
27325         * modules/inet_pton (Depends-on): Likewise.
27326         * modules/lchown (Depends-on): Likewise.
27327         * modules/openat (Depends-on): Likewise.
27328         * modules/savewd (Depends-on): Likewise.
27329         * modules/settime (Depends-on): Likewise.
27330         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27331
27332         fts: avoid leaking fds
27333         * modules/fts (Depends-on): Add cloexec.
27334         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27335         flag.
27336
27337         fts: make directory fds more robust
27338         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27339         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27340
27341         backupfile, chdir-long, fts, savedir: make safer
27342         * lib/backupfile.c (includes): Use "dirent--.h", since
27343         numbered_backup can write to stderr during readdir.
27344         * lib/savedir.c (includes): Likewise.
27345         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27346         emulation can write to stderr on failure.
27347         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27348         * lib/getcwd.c: Document why opendir_safer is unused.
27349         * lib/glob.c: Likewise.
27350         * lib/scandir.c: Likewise.
27351         * lib/openat-proc.c: Likewise, for open_safer.
27352         * modules/backupfile (Depends-on): Add dirent-safer.
27353         * modules/savedir (Depends-on): Likewise.
27354         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27355         * modules/chdir-long (Depends-on): Add openat-safer.
27356
27357         openat-safer: new module
27358         * modules/openat-safer: New file.
27359         * lib/openat-safer.c: Likewise.
27360         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27361         * lib/fcntl-safer.h (openat_safer): Declare.
27362         * lib/fcntl--.h (openat): Override.
27363         * MODULES.html.sh (File descriptor based I/O): Mention it.
27364         * lib/openat.h: Add double-inclusion guards.
27365         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27366         "fcntl--.h", so we can implement openat.
27367         * modules/openat-safer-tests: New test.
27368         * tests/test-openat-safer.c: New file.
27369
27370         dirent-safer: new module
27371         * modules/dirent-safer: New file.
27372         * lib/dirent--.h: Likewise.
27373         * lib/dirent-safer.h: Likewise.
27374         * lib/opendir-safer.c: Likewise.
27375         * m4/dirent-safer.m4: Likewise.
27376         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27377         * modules/dirent-safer-tests: New test.
27378         * tests/test-dirent-safer.c: New file.
27379         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27380
27381         fdopendir: optimize on mingw
27382         * lib/unistd.in.h (_gl_directory_name): New prototype.
27383         * lib/fchdir.c (_gl_directory_name): Implement it.
27384         (fchdir): Use it to simplify implementation.
27385         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27386         fchdir, when available, to avoid calling [f]chdir().
27387
27388         fdopendir: split into its own module
27389         * lib/openat.c (fdopendir): Move...
27390         * lib/fdopendir.c: ...into new file.
27391         * modules/fdopendir: New module.
27392         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27393         * modules/openat (Depends-on): Add fdopendir.
27394         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27395         fdopendir here.
27396         * modules/savedir (Depends-on): Only need fdopendir, not full
27397         openat.
27398         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27399         * lib/openat.h (fdopendir): Drop prototype.
27400         * lib/dirent.in.h (fdopendir): Provide prototype.
27401         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27402         * modules/dirent (Makefile.am): Substitute them.
27403         * MODULES.html.sh (File system functions): Mention it.
27404         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27405         * modules/fdopendir-tests: New file.
27406         * tests/test-fdopendir.c: Likewise.
27407
27408         fchdir: use more consistent macro convention
27409         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27410         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27411         REPLACE_FCHDIR, rather than relying on config.h macros.
27412         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27413         inside a single make-time REPLACE_FCHDIR block, rather than using
27414         the config.h FCHDIR_REPLACEMENT.
27415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27416         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27417         Manage fstat replacement.
27418         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27419         REPLACE_FCHDIR.
27420         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27421         (Makefile.am): Substitute REPLACE_FCHDIR.
27422         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27423         FCHDIR_REPLACEMENT.
27424         * lib/dup-safer.c (dup_safer): Likewise.
27425         * lib/dup2.c (rpl_dup2): Likewise.
27426         * lib/dup3.c (rpl_dup3): Likewise.
27427         * lib/open.c (rpl_open): Likewise.
27428
27429         fchdir: simplify error handling, and support dup3
27430         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27431         stdbool, malloc-posix, realloc-posix.
27432         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27433         (ensure_dirs_slot): Return false on allocation failure.
27434         (rpl_dup2): Delete.
27435         (_gl_register_dup): New function.
27436         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27437         (_gl_register_fd): Close fd on allocation failure.
27438         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27439         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27440         prototype.
27441         (rpl_dup2_fchdir): Delete prototype.
27442         * lib/open.c (open): Update caller.
27443         * lib/dup2.c (dup2): Track fchdir metadata.
27444         * lib/dup3.c (dup3): Likewise.
27445         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27446         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27447
27448 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27449
27450         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27451         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27452         don't pass arguments to AC_OUTPUT.
27453
27454 2009-09-02  Bruno Haible  <bruno@clisp.org>
27455
27456         * modules/mkdtemp (License): Relicense under LGPLv2+.
27457         Reported by Paolo Bonzini.
27458
27459 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27460
27461         Replace uses of obsolete autoconf macros in Jim's modules.
27462         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27463         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27464         can evoke a warning from autoconf when run with -Wobsolete
27465         enabled.  They were declared obsolete for good reasons (see
27466         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27467         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27468         should not continue using the deprecated macros.
27469         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27470         obsolete Autoconf macros with modern counterparts.
27471         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27472         * m4/dos.m4 (gl_AC_DOS): Likewise.
27473         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27474         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27475         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27476         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27477         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27478         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27479         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27480         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27481         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27482         Likewise.
27483         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27484         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27485         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27486         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27487         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27488         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27489
27490 2009-09-01  Eric Blake  <ebb9@byu.net>
27491
27492         fchdir: fix off-by-one bug in previous patch
27493         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27494         (_gl_unregister_fd): Delete useless if.
27495
27496 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27497
27498         maint.mk: sort the list of syntax-check rules
27499         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27500         easier to get a sense of progress when the rules are run sequentially
27501         and take a long time.
27502
27503 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27504
27505         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27506         * modules/netinet_in: Likewise.
27507         * modules/sys_file: Likewise.
27508         * modules/sys_ioctl: Likewise.
27509         * modules/sys_select: Likewise.
27510         * modules/sys_socket: Likewise.
27511         * modules/sys_stat: Likewise.
27512         * modules/sys_time: Likewise.
27513         * modules/sys_times: Likewise.
27514         * modules/sys_utsname: Likewise.
27515         * modules/sys_wait: Likewise.
27516
27517 2009-09-01  Jim Meyering  <meyering@redhat.com>
27518
27519         fts: help ensure that return values are not ignored
27520         * lib/fts_.h (__GNUC_PREREQ): Define.
27521         (__attribute_warn_unused_result__): Define.
27522         (fts_children, fts_close, fts_open, fts_read): Declare with
27523         __attribute_warn_unused_result__.
27524
27525         fts: fts_close now fails also when closing a dir file descriptor fails
27526         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27527         and propagate to caller, along with errno.
27528
27529         announce-gen: correct formatting in --help output
27530         * build-aux/announce-gen (usage): Move the one-line description in
27531         --help output "up", to where it belongs, just after Usage:.
27532
27533 2009-08-31  Eric Blake  <ebb9@byu.net>
27534
27535         fchdir: port to mingw
27536         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27537         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27538         opened, then use a substitute.
27539         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27540         replacement.
27541         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27542         (_gl_register_fd): No need to check stat if open already filters
27543         all directories.
27544         (fchdir): Fix error condition to match POSIX.
27545         * modules/fchdir (Depends-on): Add sys_stat.
27546         * doc/posix-functions/open.texi (open): Document the limitation.
27547         * modules/fchdir-tests: New file.
27548         * tests/test-fchdir.c: Likewise.
27549
27550         canonicalize: allow cross-testing from cygwin to mingw
27551         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27552         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27553         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27554         Likewise.
27555         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27556         target does not support symlinks.
27557         * tests/test-canonicalize-lgpl.sh: Likewise.
27558
27559         chown: avoid compilation warning on mingw
27560         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27561         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27562         mingw.
27563         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27564         * modules/chown (Depends-on): Add errno.
27565
27566 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27567
27568         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27569         command.
27570
27571 2009-08-31  Jim Meyering  <meyering@redhat.com>
27572
27573         canonicalize: remove useless initialization
27574         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27575         initialization of local, "end".
27576
27577 2009-08-30  Bruno Haible  <bruno@clisp.org>
27578
27579         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27580         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27581         ENOSYS.
27582
27583 2009-08-30  Bruno Haible  <bruno@clisp.org>
27584
27585         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27586         /usr/xpg4/bin/tr when it exists.
27587         * tests/test-pipe-filter-gi1.sh: Likewise.
27588
27589 2009-08-30  Bruno Haible  <bruno@clisp.org>
27590
27591         Work around deficient /usr/bin/id program on Solaris.
27592         * tests/test-file-has-acl.sh (ID): New variable.
27593         * tests/test-set-mode-acl.sh (ID): Likewise.
27594         * tests/test-copy-acl.sh (ID): Likewise.
27595         * tests/test-copy-file.sh (ID): Likewise.
27596
27597 2009-08-30  Bruno Haible  <bruno@clisp.org>
27598
27599         New module 'xstriconveh'.
27600         * lib/xstriconveh.h: New file.
27601         * lib/xstriconveh.c: New file.
27602         * modules/xstriconveh: New file.
27603
27604 2009-08-30  Bruno Haible  <bruno@clisp.org>
27605
27606         Make it easier to use mem_cd_iconveh.
27607         * lib/striconveh.h (iconveh_t): New type.
27608         (iconveh_open, iconveh_close): New declarations.
27609         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27610         with a single 'const iconveh_t *' argument.
27611         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27612         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27613         with a single 'const iconveh_t *' argument.
27614         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27615         * tests/test-striconveh.c (main): Update.
27616         * NEWS: Mention the change.
27617
27618 2009-08-30  Bruno Haible  <bruno@clisp.org>
27619
27620         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27621         problem.
27622
27623 2009-08-30  Bruno Haible  <bruno@clisp.org>
27624
27625         Work around iconv_open problem on Solaris.
27626         * lib/iconv_open-solaris.gperf: New file.
27627         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27628         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27629         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27630         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27631         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27632         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27633
27634 2009-08-29  Jim Meyering  <meyering@redhat.com>
27635
27636         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27637         * top/maint.mk (cvs-check): Remove target; it was just an alias
27638         to the better-named vc-diff-check.
27639         (maintainer-distcheck): Remove rule.  It was used only from
27640         the (alpha/beta/major) target, and all of its commands but one
27641         were coreutils-specific.
27642         (vc-dist): Remove rule.
27643         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27644         Run vc-diff-check, not vc-dist.
27645         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27646
27647 2009-08-27  Bruno Haible  <bruno@clisp.org>
27648
27649         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27650         of 0.
27651
27652 2009-08-27  Bruno Haible  <bruno@clisp.org>
27653
27654         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27655         compilers.
27656         * doc/func.texi: Document the SunPRO C bug.
27657
27658 2009-08-27  Bruno Haible  <bruno@clisp.org>
27659
27660         Fix link error on Solaris.
27661         * tests/test-parse-duration.c (xstrdup): Remove function.
27662
27663 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27664
27665         ignore-value: handle pointer types, too
27666         * lib/ignore-value.h (__attribute__): Remove definition.
27667         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27668         of a more concise and more-often effective "(void) i" statement.
27669         (ignore_ptr): New function to suppress warnings from functions that
27670         return pointers, and to make it explicit that one function doesn't
27671         handle all cases.
27672
27673 2009-08-25  Bruno Haible  <bruno@clisp.org>
27674
27675         dup2: work around a Linux bug.
27676         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27677         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27678         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27679         Reported by Simon Josefsson.
27680
27681 2009-08-25  Jim Meyering  <meyering@redhat.com>
27682
27683         libguestfs uses gnulib
27684         * users.txt: Add libguestfs.
27685
27686 2009-08-24  Eric Blake  <ebb9@byu.net>
27687
27688         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27689         * lib/pipe2.c (includes): Add binary-io.h.
27690         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27691
27692 2009-08-24  Bruno Haible  <bruno@clisp.org>
27693
27694         Tolerate declared but missing accept4 syscall.
27695         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27696         available.
27697         * lib/sys_socket.in.h (accept4): If the function is already present,
27698         override it.
27699         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27700         * modules/accept4 (Makefile.am): Compile accept4.c always.
27701         Reported by Paolo Bonzini and Eric Blake.
27702
27703 2009-08-23  Bruno Haible  <bruno@clisp.org>
27704
27705         New module 'accept4'.
27706         * lib/sys_socket.in.h (accept4): New declaration.
27707         * lib/accept4.c: New file.
27708         * m4/accept4.m4: New file.
27709         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27710         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27711         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27712         HAVE_ACCEPT4.
27713         * modules/accept4: New file.
27714         * doc/glibc-functions/accept4.texi: Mention the new module.
27715
27716 2009-08-24  Jim Meyering  <meyering@redhat.com>
27717
27718         progname: also set global program_invocation_name, when possible
27719         Before this change, a libtool-enabled program that calls glibc's
27720         error function would report the program name as
27721         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27722         * modules/progname (configure.ac): Check for a declaration of
27723         program_invocation_name.
27724         * lib/progname.c:  Include <errno.h>.
27725         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27726         Set program_invocation_name.
27727
27728 2009-08-23  Bruno Haible  <bruno@clisp.org>
27729
27730         * lib/dup3.c: Include <string.h>.
27731
27732 2009-08-23  Bruno Haible  <bruno@clisp.org>
27733
27734         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27735         * lib/pipe2.c (pipe2): Likewise.
27736         Suggested by Eric Blake.
27737
27738 2009-08-23  Bruno Haible  <bruno@clisp.org>
27739
27740         Tolerate declared but missing dup3 syscall.
27741         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27742         * lib/unistd.in.h (dup3): If the function is already present,
27743         override it.
27744         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27745         * modules/dup3 (Makefile.am): Compile dup3.c always.
27746         Reported by Paolo Bonzini.
27747
27748 2009-08-23  Bruno Haible  <bruno@clisp.org>
27749
27750         Tolerate declared but missing pipe2 syscall.
27751         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27752         available.
27753         * lib/unistd.in.h (pipe2): If the function is already present,
27754         override it.
27755         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27756         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27757         Reported by Paolo Bonzini.
27758
27759 2009-08-23  Bruno Haible  <bruno@clisp.org>
27760
27761         * lib/pipe2.c (pipe2): Move #ifs inside function.
27762
27763 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27764
27765         quotearg: document limitations of quote_these_too
27766         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27767         those limitations are created.
27768         * lib/quotearg.h (set_char_quoting): Document that digits and
27769         letters that are special after backslash are not permitted.
27770         (quotearg_char): Cross-reference set_char_quoting documentation.
27771
27772 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27773
27774         quotearg: implement custom_quoting_style
27775         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27776         right_quote fields.
27777         (set_custom_quoting): New public function.
27778         (quotearg_buffer_restyled): Add left_quote and right_quote
27779         arguments, handle them very much like locale quoting, and update
27780         all uses.
27781         (quotearg_n_custom): New public function.
27782         (quotearg_n_custom_mem): New public function.
27783         (quotearg_custom): New public function.
27784         (quotearg_custom_mem): New public function.
27785         * lib/quotearg.h: Prototype and document new public functions.
27786         (enum quoting_style): For escape_quoting_style and
27787         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27788         ignored even though they're otherwise like c_quoting_style.
27789         Add custom_quoting_style member and document with comparison to
27790         clocale_quoting_style.
27791         * tests/test-quotearg.c (custom_quotes): New array.
27792         (custom_results): New array.
27793         (main): Extend to test custom quoting.
27794
27795 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27796
27797         quotearg: fix right quote escaping when it's in quote_these_too
27798         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27799         quote, be sure to prepend only one backslash.
27800         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27801         (main): Test it.
27802
27803 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27804
27805         quotearg-tests: test escaping of embedded locale quotes
27806         * tests/test-quotearg.c (struct result_strings): Add member for
27807         new input.
27808         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27809         (inputs): Add new input.
27810         (results_g): Add expected results.
27811         (flag_results): Likewise.
27812         (locale_results): Likewise.
27813         (compare_strings): Check those.
27814
27815 2009-08-23  Bruno Haible  <bruno@clisp.org>
27816
27817         Tests for module 'dup3'.
27818         * modules/dup3-tests: New file.
27819         * tests/test-dup3.c: New file.
27820
27821         New module 'dup3'.
27822         * lib/unistd.in.h (dup3): New declaration.
27823         * lib/dup3.c: New file.
27824         * m4/dup3.m4: New file.
27825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27826         HAVE_DUP3.
27827         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27828         * modules/dup3: New file.
27829         * doc/glibc-functions/dup3.texi: Mention the new module.
27830
27831 2009-08-23  Bruno Haible  <bruno@clisp.org>
27832
27833         Tweak the dup2 test.
27834         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27835         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27836         the test file is still empty. Fix argument order of lseek.
27837
27838 2009-08-23  Bruno Haible  <bruno@clisp.org>
27839
27840         Avoid test link errors when the modules getopt-gnu, gettext are used.
27841         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27843
27844 2009-08-23  Bruno Haible  <bruno@clisp.org>
27845
27846         Fix getdtablesize() on mingw.
27847         * lib/getdtablesize.c (getdtablesize): Implement differently.
27848         * lib/unistd.in.h (getdtablesize): Improve comment.
27849
27850 2009-08-23  Bruno Haible  <bruno@clisp.org>
27851
27852         New module 'mkostemp'.
27853         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27854         * lib/stdlib.in.h (mksotemp): New declaration.
27855         * lib/mkostemp.c: New file, from glibc with modifications.
27856         * lib/tempname.h (GT_FILE): Remove outdated comment.
27857         (gen_tempname): Add flags argument.
27858         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27859         (__GT_FILE): Map to 1.
27860         (small_open, large_open): Remove macros.
27861         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27862         * lib/mkstemp.c (mkstemp): Update.
27863         * lib/mkdtemp.c (mkdtemp): Likewise.
27864         * m4/mkostemp.m4: New file.
27865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27866         HAVE_MKOSTEMP.
27867         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27868         HAVE_MKOSTEMP.
27869         * modules/mkostemp: New file, based on modules/mkstemp.
27870         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27871         * NEWS: Mention the change.
27872
27873 2009-08-23  Bruno Haible  <bruno@clisp.org>
27874
27875         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27876         Reported by Eric Blake.
27877
27878 2009-08-23  Bruno Haible  <bruno@clisp.org>
27879
27880         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27881         Reported by Eric Blake.
27882
27883 2009-08-23  Bruno Haible  <bruno@clisp.org>
27884
27885         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27886         * modules/pipe2 (Depends-on): Likewise.
27887
27888 2009-08-23  Eric Blake  <ebb9@byu.net>
27889
27890         fcntl-h: add O_TTY_INIT support
27891         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27892         * tests/test-fcntl-h.c (o): Test it.
27893         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27894
27895         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27896         * modules/fcntl: Move <fcntl.h> header replacement...
27897         * modules/fcntl-h: ...to new name, so as not to collide with
27898         like-named function.
27899         * tests/test-fcntl.c: Rename...
27900         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27901         * modules/fcntl-tests: Rename...
27902         * modules/fcntl-h-tests: ...to this.  Update test file name.
27903         * modules/chdir-long (Depends-on): Update clients.
27904         * modules/chdir-safer (Depends-on): Likewise.
27905         * modules/fcntl-safer (Depends-on): Likewise.
27906         * modules/fts (Depends-on): Likewise.
27907         * modules/mkancesdirs (Depends-on): Likewise.
27908         * modules/mkdir-p (Depends-on): Likewise.
27909         * modules/open (Depends-on): Likewise.
27910         * modules/savewd (Depends-on): Likewise.
27911         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27912         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27913
27914 2009-08-22  Bruno Haible  <bruno@clisp.org>
27915
27916         * modules/binary-io (License): Relicense under LGPL.
27917         * modules/pipe2 (License): Likewise.
27918
27919 2009-08-22  Bruno Haible  <bruno@clisp.org>
27920
27921         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27922         return value.
27923         * lib/pipe-filter-gi.c (filter_init): Likewise.
27924         Reported by Eric Blake.
27925
27926 2009-08-22  Bruno Haible  <bruno@clisp.org>
27927
27928         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27929         * modules/pipe (Depends-on): Add pipe2.
27930
27931 2009-08-22  Bruno Haible  <bruno@clisp.org>
27932
27933         Tests for module 'pipe2'.
27934         * modules/pipe2-tests: New file.
27935         * tests/test-pipe2.c: New file.
27936
27937         New module 'pipe2'.
27938         * lib/unistd.in.h (pipe2): New declaration.
27939         * lib/pipe2.c: New file.
27940         * m4/pipe2.m4: New file.
27941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27942         HAVE_PIPE2.
27943         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27944         * modules/pipe2: New file.
27945         * doc/glibc-functions/pipe2.texi: Mention the new module.
27946
27947 2009-08-22  Bruno Haible  <bruno@clisp.org>
27948
27949         Reference some new glibc functions.
27950         * doc/glibc-functions/accept4.texi: New file.
27951         * doc/glibc-functions/dup3.texi: New file.
27952         * doc/glibc-functions/mkostemp.texi: New file.
27953         * doc/glibc-functions/pipe2.texi: New file.
27954         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27955         (Glibc sys/socket.h): Refer to accept4.
27956         (Glibc unistd.h): Refer to dup3, pipe2.
27957         Reported by Eric Blake.
27958
27959 2009-08-22  Jim Meyering  <meyering@redhat.com>
27960             Bruno Haible  <bruno@clisp.org>
27961
27962         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27963         This makes it so packages using automake-1.11's silent-rules option
27964         can print e.g., a single "GEN    configmake.h" line, rather than
27965         the 30+ statements that perform the job.  If you want to see the
27966         actual commands, you can still run "make V=1".
27967         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27968         so that make output is abbreviated when those variables are defined
27969         appropriately.
27970         * modules/argz: Likewise.
27971         * modules/arpa_inet: Likewise.
27972         * modules/byteswap: Likewise.
27973         * modules/configmake: Likewise.
27974         * modules/dirent: Likewise.
27975         * modules/errno: Likewise.
27976         * modules/fcntl: Likewise.
27977         * modules/float: Likewise.
27978         * modules/fnmatch: Likewise.
27979         * modules/getopt-posix: Likewise.
27980         * modules/glob: Likewise.
27981         * modules/iconv_open: Likewise.
27982         * modules/inttypes: Likewise.
27983         * modules/localcharset: Likewise.
27984         * modules/locale: Likewise.
27985         * modules/math: Likewise.
27986         * modules/netdb: Likewise.
27987         * modules/netinet_in: Likewise.
27988         * modules/poll: Likewise.
27989         * modules/posix_spawnp-tests: Likewise.
27990         * modules/sched: Likewise.
27991         * modules/search: Likewise.
27992         * modules/selinux-h: Likewise.
27993         * modules/signal: Likewise.
27994         * modules/spawn: Likewise.
27995         * modules/stdarg: Likewise.
27996         * modules/stdbool: Likewise.
27997         * modules/stddef: Likewise.
27998         * modules/stdint: Likewise.
27999         * modules/stdio: Likewise.
28000         * modules/stdlib: Likewise.
28001         * modules/string: Likewise.
28002         * modules/strings: Likewise.
28003         * modules/sys_file: Likewise.
28004         * modules/sys_ioctl: Likewise.
28005         * modules/sys_select: Likewise.
28006         * modules/sys_socket: Likewise.
28007         * modules/sys_stat: Likewise.
28008         * modules/sys_time: Likewise.
28009         * modules/sys_times: Likewise.
28010         * modules/sys_utsname: Likewise.
28011         * modules/sys_wait: Likewise.
28012         * modules/sysexits: Likewise.
28013         * modules/time: Likewise.
28014         * modules/unistd: Likewise.
28015         * modules/wchar: Likewise.
28016         * modules/wctype: Likewise.
28017
28018 2009-08-22  Jim Meyering  <meyering@redhat.com>
28019
28020         announce-gen: detect write failure
28021         * build-aux/announce-gen: Add Coda at end.
28022         Remove equivalent-but-more-verbose block at top.
28023
28024 2009-08-19  Akim Demaille  <demaille@gostai.com>
28025
28026         bootstrap: --help to stdout.
28027         * bootstrap (usage): Don't send --help to stderr.
28028         Use a here doc instead of a long string.
28029
28030 2009-08-21  Eric Blake  <ebb9@byu.net>
28031
28032         test-popen-safer: split from test-popen
28033         * tests/test-popen.c (main): Move...
28034         * tests/test-popen.h: ...into new file.
28035         * tests/test-popen-safer2.c: New file.
28036         * modules/popen-tests (Files): Add test-popen.h.
28037         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28038         Suggested by Bruno Haible.
28039
28040         test-fcntl-safer: split from test-open
28041         * tests/test-open.c (main): Move...
28042         * tests/test-open.h: ...into new file.
28043         * tests/test-fcntl-safer.c: New file.
28044         * modules/open-tests (Files): Add test-open.h.
28045         * modules/fcntl-safer-tests: New file.
28046         Suggested by Bruno Haible.
28047
28048         test-fopen-safer: split from test-fopen
28049         * tests/test-fopen.c (main): Move...
28050         * tests/test-fopen.h: ...into new file.
28051         * tests/test-fopen-safer.c: New file.
28052         * modules/fopen-tests (Files): Add test-fopen.h.
28053         * modules/fopen-safer-tests: New file.
28054         Suggested by Bruno Haible.
28055
28056 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28057
28058         popen-safer: test O_CLOEXEC at run-time.
28059         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28060
28061 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28062
28063         fcntl: move more flags to the header
28064         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28065         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28066         * lib/fcntl.in.h: Do both things here.
28067
28068 2009-08-21  Jim Meyering  <meyering@redhat.com>
28069
28070         consistently remove $@-t before redirecting to it
28071         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28072         * modules/alloca-opt: Likewise.
28073         * modules/byteswap: Likewise.
28074         * modules/fnmatch: Likewise.
28075         * modules/getopt-posix: Likewise.
28076         * modules/glob: Likewise.
28077         * modules/poll: Likewise.
28078         * modules/posix_spawnp-tests: Likewise.
28079         * modules/sys_socket: Likewise.
28080         * modules/sysexits: Likewise.
28081
28082 2009-08-21  Eric Blake  <ebb9@byu.net>
28083
28084         popen: simplify access to original popen
28085         * lib/popen.c (rpl_popen): No need to worry about popen being a
28086         macro.
28087         Reported by Bruno Haible.
28088
28089 2009-08-20  Eric Blake  <ebb9@byu.net>
28090
28091         build: avoid some compiler warnings
28092         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28093         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28094         type.
28095         (new_exclude_segment, excluded_file_pattern_p)
28096         (excluded_file_name_p): Reduce scope.
28097         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28098         old-style declaration.
28099
28100 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28101
28102         * tests/test-exclude1.sh: Handle Windows EOL.
28103         * tests/test-exclude2.sh: Likewise.
28104         * tests/test-exclude3.sh: Likewise.
28105         * tests/test-exclude4.sh: Likewise.
28106         * tests/test-exclude5.sh: Likewise.
28107         * tests/test-exclude6.sh: Likewise.
28108         * tests/test-exclude7.sh: Likewise.
28109
28110 2009-08-19  Akim Demaille  <demaille@gostai.com>
28111
28112         bootstrap: find sha1sum when named gsha1sum.
28113         * bootstrap (find_tool): New.
28114         ($SHA1SUM): New.
28115         Use it.
28116
28117 2009-08-20  Jim Meyering  <meyering@redhat.com>
28118
28119         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28120         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28121         expression that converts "." in a file name to "\." in the resulting
28122         regexp.  Start with a dummy statement, so that prior shell variable
28123         definitions are expanded portably.  Reported by Simon Josefsson.
28124
28125 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28126
28127         Fix polling for writeability of a screen buffer.
28128         * lib/poll.c: Distinguish input and screen buffers for the
28129         Win32 implementation.
28130         * lib/select.c: Likewise.
28131
28132 2009-08-19  Eric Blake  <ebb9@byu.net>
28133
28134         popen-safer: prevent popen from clobbering std descriptors
28135         * modules/popen-safer: New file.
28136         * lib/popen-safer.c: Likewise.
28137         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28138         * lib/stdio--.h (popen): Provide override.
28139         * lib/stdio-safer.h (popen_safer): Provide declaration.
28140         * tests/test-popen.c (includes): Partially test this.
28141         * modules/popen-safer-tests: New file, for more tests.
28142         * tests/test-popen-safer.c: Likewise.
28143         * MODULES.html.sh (file stream based Input/Output): Mention it.
28144
28145         tests: test some of the *-safer modules
28146         * modules/fopen-safer (Depends-on): Add fopen.
28147         * modules/fcntl-safer (Depends-on): Add fcntl.
28148         * modules/stdlib-safer (Depends-on): Add stdlib.
28149         (configure.ac): Set indicator.
28150         * modules/unistd-safer (configure.ac): Likewise.
28151         * modules/tmpfile-safer (configure.ac): Likewise.
28152         (Depends-on): Add tmpfile.
28153         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28154         active.
28155         * tests/test-fopen.c (includes): Test safer versions when they are
28156         in use.
28157         * tests/test-open.c (includes): Likewise.
28158
28159         popen: fix cygwin 1.5 bug when stdin closed
28160         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28161         * modules/popen: New file.
28162         * modules/popen-tests: Likewise.
28163         * tests/test-popen.c: Likewise.
28164         * m4/popen.m4: Likewise.
28165         * lib/popen.c: Likewise.
28166         * lib/stdio.in.h (popen): New declaration.
28167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28168         * modules/stdio (Makefile.am): Likewise.
28169         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28170
28171 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28172
28173         maint.mk: give full control over update-copyright exclusions
28174         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28175         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28176         (update-copyright): Don't force inclusion of top-level
28177         ChangeLog.  Don't force exclusion of all COPYING files, but make
28178         them the default exclusion instead.
28179
28180 2009-08-16  Bruno Haible  <bruno@clisp.org>
28181
28182         Fix test failures on Solaris 10.
28183         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28184         tests when Solaris iconv() is used.
28185         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28186         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28187         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28188         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28189         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28190
28191 2009-08-16  Bruno Haible  <bruno@clisp.org>
28192
28193         Fix test failures on Solaris 10.
28194         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28195         'tr' program and pass it as first argument.
28196         * tests/test-pipe-filter-gi1.sh: Likewise.
28197         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28198         program as first argument.
28199         * tests/test-pipe-filter-gi1.c (main): Likewise.
28200
28201 2009-08-16  Eric Blake  <ebb9@byu.net>
28202
28203         fpurge: fix previous commits
28204         * modules/fpurge (Makefile.am): Make replacement conditional,
28205         partially reverting 2007-04-29 change; missed in previous
28206         attempt.
28207         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28208         is missing.
28209
28210 2009-08-16  Bruno Haible  <bruno@clisp.org>
28211
28212         Clarify fpurge's effect on the file position.
28213         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28214         * tests/test-fpurge.c (main): Make a second pass for checking the file
28215         position.
28216
28217 2009-08-16  Bruno Haible  <bruno@clisp.org>
28218
28219         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28220         declaration of fpurge is missing.
28221         * tests/test-fpurge.c (main): Check that the file has not more contents
28222         than expected. Close the file before removing it.
28223
28224 2009-08-15  Eric Blake  <ebb9@byu.net>
28225
28226         fpurge: don't wrap working cygwin implementation
28227         * lib/fpurge.c (fpurge): Fix comment typo.
28228         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28229         1.7 to avoid replacement.
28230         * tests/test-fpurge.c (main): Enhance test.
28231
28232 2009-08-15  Eric Blake  <ebb9@byu.net>
28233         and Jim Meyering  <meyering@redhat.com>
28234
28235         test-update-copyright: skip if perl is insufficient
28236         * tests/test-update-copyright.sh: Failure to run maintainer tool
28237         should not cause testsuite failure on cygwin 1.5.
28238
28239 2009-08-14  Eric Blake  <ebb9@byu.net>
28240
28241         doc: mention more functions added in cygwin 1.7.0
28242         * doc/posix-headers/limits.texi (limits.h): Update for recent
28243         cygwin additions.
28244         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28245         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28246         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28247         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28248         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28249
28250 2009-08-14  Eric Blake  <ebb9@byu.net>
28251
28252         maint.mk: simplify update-copyright rule
28253         * top/maint.mk (update-copyright-local): Delete, and document how
28254         to do it in cfg.mk instead.
28255         (update-copyright-exclude-regexp): Delete, and document how to do
28256         it in .x-update-copyright instead.
28257         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28258         exclude ChangeLog.
28259
28260 2009-08-14  Bruno Haible  <bruno@clisp.org>
28261
28262         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28263
28264 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28265
28266         maint.mk: support update-copyright-env
28267         * top/maint.mk (update-copyright-env): Define place-holder.
28268         (update-copyright): Expand $(update-copyright-env) before
28269         invoking update-copyright.
28270
28271 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28272
28273         update-copyright: implement forced reformatting
28274         * build-aux/update-copyright: Implement and document
28275         UPDATE_COPYRIGHT_FORCE.
28276         * tests/test-update-copyright.sh: Test it.
28277
28278 2009-08-14  Eric Blake  <ebb9@byu.net>
28279         and Bruno Haible  <bruno@clisp.org>
28280
28281         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28282         * tests/test-locale.c: Revert previous patch related to NULL.
28283         * tests/test-stdio.c: Likewise.
28284         * tests/test-stdlib.c: Likewise.
28285         * tests/test-string.c: Likewise.
28286         * tests/test-unistd.c: Likewise.
28287         * modules/time-tests (Depends-on): Add verify.
28288         * modules/wchar-tests (Depends-on): Likewise.
28289         * tests/test-time.c: Test for NULL compliance.
28290         * tests/test-wchar.c: Likewise.
28291         * modules/locale (Depends-on): Add stddef.
28292         * modules/stdio (Depends-on): Likewise.
28293         * modules/stdlib (Depends-on): Likewise.
28294         * modules/string (Depends-on): Likewise.
28295         * modules/time (Depends-on): Likewise.
28296         * modules/unistd (Depends-on): Likewise.
28297         * modules/wchar (Depends-on): Likewise.
28298         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28299         * lib/stdlib.in.h (includes): Likewise.
28300         * lib/string.in.h (includes): Likewise.
28301         * lib/time.in.h (includes): Likewise.
28302         * lib/unistd.in.h (includes): Likewise.
28303         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28304         replaced.
28305         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28306         * m4/stddef_h.m4: New file.
28307         * modules/stddef: Likewise.
28308         * lib/stddef.in.h: Likewise.
28309         * modules/stddef-tests: Likewise.
28310         * tests/test-stddef.c: Likewise.
28311         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28312         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28313         * doc/posix-headers/locale.texi (locale.h): Likewise.
28314         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28315         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28316         * doc/posix-headers/string.texi (string.h): Likewise.
28317         * doc/posix-headers/time.texi (time.h): Likewise.
28318         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28319         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28320
28321 2009-08-14  Eric Blake  <ebb9@byu.net>
28322
28323         doc: improve git diff of texinfo files
28324         * .gitattributes: Add rule for *.texi files, with hint on how to
28325         use it.
28326         Copied from m4, and based on a report by Bruno Haible.
28327
28328 2009-08-14  Bruno Haible  <bruno@clisp.org>
28329
28330         Disable multithread support by default on Cygwin 1.5.x for real.
28331         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28332
28333 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28334
28335         update-copyright: much ado about intervals
28336         * build-aux/update-copyright: Implement and document
28337         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28338         of copyright year intervals.
28339         Also, document UPDATE_COPYRIGHT_YEAR.
28340         * tests/test-update-copyright.sh: Test it.
28341
28342         update-copyright: convert 2-digit to 4-digit years
28343         * build-aux/update-copyright: Implement and document.
28344         * tests/test-update-copyright.sh: Update.
28345
28346 2009-08-14  Jim Meyering  <meyering@redhat.com>
28347
28348         test-exclude: avoid coreutils "make check" failure
28349         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28350         just as in test-argmatch.c.
28351
28352 2009-08-13  Eric Blake  <ebb9@byu.net>
28353
28354         test-dup2: fix bad assumption
28355         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28356         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28357
28358         test-version-etc: fix CRLF portability issue
28359         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28360         recognize \r.
28361         * tests/test-argp-version-etc-1.sh: Likewise.
28362
28363         getopt: update client modules
28364         * modules/argp (Depends-on): Use getopt-gnu.
28365         * modules/git-merge-changelog (Depends-on): Likewise.
28366         * modules/long-options (Depends-on): Likewise.
28367         * modules/xstrtol (Depends-on): Likewise.
28368
28369 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28370
28371         * tests/test-version-etc.sh: Don't fail on different
28372         project/version.  Don't fail on CRLF differences.  Rewrite to use
28373         multiple -e instead of multiple sed forks, suggested by Eric Blake
28374         <ebb9@byu.net>.
28375         * tests/test-argp-version-etc-1.sh: Likewise.
28376
28377 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28378
28379         * tests/test-version-etc.sh: Don't fail on different
28380         project/version.
28381
28382 2009-08-12  Bruno Haible  <bruno@clisp.org>
28383
28384         Tests for modules 'getopt-posix', 'getopt-gnu'.
28385         * modules/getopt-posix-tests: New file.
28386         * tests/test-getopt.c: New file.
28387         * tests/test-getopt.h: New file.
28388         * tests/test-getopt_long.h: New file.
28389
28390         New modules 'getopt-posix', 'getopt-gnu'.
28391         * modules/getopt-gnu: New file, renamed from modules/getopt.
28392         * modules/getopt-posix: New file.
28393         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28394         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28395         (gl_GETOPT): Remove macro.
28396         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28397         Disable the test against BSD systems that declare optreset. Test
28398         against mingw bug. Test against lack of support of optional arguments
28399         on many platforms.
28400         * doc/glibc-headers/getopt.texi: Update module name and list of
28401         relevant platforms.
28402         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28403         'getopt-gnu' and more portability problems.
28404         * NEWS: Mention the changes.
28405
28406 2009-08-12  Bruno Haible  <bruno@clisp.org>
28407
28408         Ensure that optarg etc. get declared by <unistd.h>.
28409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28410         AC_USE_SYSTEM_EXTENSIONS.
28411         * modules/getopt (Depends-on): Add 'extensions'.
28412
28413 2009-08-12  Bruno Haible  <bruno@clisp.org>
28414
28415         Avoid test link errors.
28416         * modules/pipe-filter-ii-tests (Makefile.am): Define
28417         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28418         * modules/pipe-filter-gi-tests (Makefile.am): Define
28419         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28421
28422 2009-08-12  Bruno Haible  <bruno@clisp.org>
28423
28424         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28425         gl_GETOPT_SUBSTITUTE before.
28426         (gl_GETOPT): Use it.
28427         * m4/argp.m4 (gl_ARGP): Update.
28428         Reported by Sergey Poznyakoff.
28429
28430         * m4/getopt.m4: Reorder macros.
28431         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28432         (gl_GETOPT_SUBSTITUTE): Remove macro.
28433
28434 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28435
28436         Minor improvement in gitlog-to-changelog
28437
28438         * build-aux/gitlog-to-changelog: New option `--format' makes
28439         output format string configurable.
28440
28441 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28442
28443         Optimize exclude: use hash tables for non-wildcard patterns.
28444
28445         * lib/exclude.c: Include hash.h and mbuiter.h
28446         (struct exclude_pattern, exclude_segment): New data types.
28447         (struct exclude): Rewrite.
28448         (fnmatch_pattern_has_wildcards): New function.
28449         (new_exclude_segment, free_exclude_segment): New functions.
28450         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28451         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28452         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28453         * modules/exclude: Depend on hash and mbuiter.
28454
28455         * modules/exclude-tests: New file.
28456         * tests/test-exclude.c: New file.
28457         * tests/test-exclude1.sh: New file.
28458         * tests/test-exclude2.sh: New file.
28459         * tests/test-exclude3.sh: New file.
28460         * tests/test-exclude4.sh: New file.
28461         * tests/test-exclude5.sh: New file.
28462         * tests/test-exclude6.sh: New file.
28463         * tests/test-exclude7.sh: New file.
28464
28465 2009-08-12  Bruno Haible  <bruno@clisp.org>
28466
28467         Ensure that getopt() gets declared by <unistd.h>.
28468         * lib/unistd.in.h: Conditionally include getopt.h.
28469         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28470         Set GNULIB_UNISTD_H_GETOPT.
28471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28472         GNULIB_UNISTD_H_GETOPT.
28473         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28474
28475 2009-08-12  Bruno Haible  <bruno@clisp.org>
28476
28477         Clarify logic.
28478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28479         gl_replace_getopt instead of GETOPT_H.
28480
28481 2009-08-12  Bruno Haible  <bruno@clisp.org>
28482
28483         * m4/getopt.m4: Add comments.
28484
28485 2009-08-12  Bruno Haible  <bruno@clisp.org>
28486
28487         Disable multithread support by default on Cygwin 1.5.x.
28488         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28489         set gl_use_threads=no if not specified otherwise.
28490
28491 2009-08-11  Bruno Haible  <bruno@clisp.org>
28492
28493         Avoid compilation error on NetBSD 5.0.
28494         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28495         * tests/test-stdio.c: Likewise.
28496         * tests/test-stdlib.c: Likewise.
28497         * tests/test-string.c: Likewise.
28498         * tests/test-unistd.c: Likewise.
28499         Reported by Greg Troxel <gdt@ir.bbn.com>
28500         at <https://savannah.gnu.org/support/?106973>.
28501
28502 2009-08-11  Bruno Haible  <bruno@clisp.org>
28503
28504         * modules/dup2-tests (Depends-on): Remove close.
28505
28506         Undo 2009-07-19 commit.
28507         * modules/acl-tests (Depends-on): Remove close.
28508         * modules/binary-io-tests (Depends-on): Likewise.
28509         * modules/closein-tests (Depends-on): Likewise.
28510         * modules/flock-tests (Depends-on): Likewise.
28511         * modules/fsync-tests (Depends-on): Likewise.
28512         * modules/lseek-tests (Depends-on): Likewise.
28513         * modules/pipe-tests (Depends-on): Likewise.
28514         * modules/posix_spawn-tests (Depends-on): Likewise.
28515         * modules/posix_spawnp-tests (Depends-on): Likewise.
28516         * modules/stat-time-tests (Depends-on): Likewise.
28517         * modules/yesno-tests (Depends-on): Likewise.
28518
28519 2009-08-10  Bruno Haible  <bruno@clisp.org>
28520
28521         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28522
28523 2009-08-10  Bruno Haible  <bruno@clisp.org>
28524
28525         Fix a gcc warning.
28526         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28527
28528 2009-08-10  Bruno Haible  <bruno@clisp.org>
28529
28530         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28531         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28532         not only the first time.
28533         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28534         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28535         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28536         is 1, not only the the first time.
28537
28538 2009-08-10  Bruno Haible  <bruno@clisp.org>
28539
28540         Make it possible to use module 'gethostname' without module 'close'.
28541         * lib/unistd.in.h (close): Evoke a link error only if
28542         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28544         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28545         * modules/unistd (Makefile.am): Substitute
28546         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28547         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28548         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28549         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28550         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28551         * modules/sys_ioctl (Makefile.am): Substitute
28552         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28553         * modules/socket (configure.ac): On native Windows, set
28554         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28555         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28556         Reported by Sam Steingold <sds@gnu.org>.
28557
28558 2009-08-10  Bruno Haible  <bruno@clisp.org>
28559
28560         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28561         * modules/ioctl (configure.ac): Likewise.
28562
28563 2009-08-10  Bruno Haible  <bruno@clisp.org>
28564
28565         Avoid collision between gnulib wrapper and libintl wrapper.
28566         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28567         already defined in intl/printf.c.
28568         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28569         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28570
28571 2009-08-09  Bruno Haible  <bruno@clisp.org>
28572
28573         Make <sys/select.h> really self-contained, also on Solaris 10.
28574         * lib/sys_select.in.h: Include <string.h>.
28575         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28576         Solaris 10 problem.
28577         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28578         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28579         Reported by Jim Meyering.
28580
28581 2009-08-09  Bruno Haible  <bruno@clisp.org>
28582
28583         Avoid warnings from 'aclocal' that are due to a use of macro name
28584         AM_XGETTEXT_OPTION that is not defined in automake.
28585         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28586         automake.
28587         * modules/error (configure.ac): Likewise.
28588         * modules/propername (configure.ac): Likewise.
28589         * modules/vasprintf (configure.ac): Likewise.
28590         * modules/verror (configure.ac): Likewise.
28591         * modules/xprintf (configure.ac): Likewise.
28592         * modules/xvasprintf (configure.ac): Likewise.
28593
28594 2009-08-08  Bruno Haible  <bruno@clisp.org>
28595
28596         Avoid compilation error in C++ mode.
28597         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28598         Reported by Sam Steingold <sds@gnu.org>.
28599
28600 2009-08-08  Bruno Haible  <bruno@clisp.org>
28601
28602         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28603         for the various Unix platforms.
28604         * doc/posix-headers/limits.texi: Update platforms list regarding
28605         HOST_NAME_MAX.
28606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28607
28608 2009-08-07  Jim Meyering  <meyering@redhat.com>
28609
28610         selinux-at: fix typo in a comment
28611         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28612         Spotted by Paolo Bonzini.
28613
28614         selinux-at: remove redundant m4 code, add documentation
28615         * modules/selinux-at (configure.ac): Remove redundant code.
28616         LIB_SELINUX is already set via the dependent module, selinux-h.
28617         (Include): Add quotes around selinux-at.h.
28618         * lib/selinux-at.h: Add documentation.
28619         Reported by Bruno Haible in
28620         http://marc.info/?l=gnulib-bug&m=124958988300749
28621
28622 2009-08-07  Bruno Haible  <bruno@clisp.org>
28623
28624         Avoid link error on MacOS X 10.3 and 10.4.
28625         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28626         on non-ELF systems.
28627         * lib/argp-pv.c (argp_program_version): Likewise.
28628         Reported by Simon Josefsson.
28629
28630 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28631
28632         * tests/test-version-etc.sh: Use $EXEEXT.
28633
28634 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28635
28636         update-copyright: update documentation to point to maint.mk
28637         * build-aux/update-copyright: Here.
28638
28639 2009-08-06  Jim Meyering  <meyering@redhat.com>
28640
28641         maint.mk: support update-copyright-local
28642         * top/maint.mk (update-copyright-local): Define place-holder.
28643         (update-copyright): Depend on $(update-copyright-local).
28644
28645 2009-08-06  Jim Meyering  <meyering@redhat.com>
28646
28647         selinux-at: new module
28648         Initially written for coreutils, this module will soon be
28649         used by findutils, too.
28650         * MODULES.html.sh [Misc]: Add selinux-at.
28651         * lib/selinux-at.h: New file, from coreutils.
28652         * lib/selinux-at.c: Likewise.
28653         * modules/selinux-at: Likewise.
28654         (License): Change from LGPL to GPL, since it depends
28655         on the GPL'd openat module.
28656
28657         doc: update README
28658         * README: Remove references to cogito.
28659         Remove cvs-repo-updating instructions from 2007.
28660         Don't imply that CVS is better if you have limited disk space.
28661
28662 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28663
28664         update-copyright: support C-style comments
28665         * build-aux/update-copyright: Implement and document.
28666         * tests/test-update-copyright.sh: Test.
28667
28668 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28669
28670         update-copyright: support omitted "(C)"
28671         * build-aux/update-copyright: Implement and document.  Also,
28672         allow variable whitespace before "(C)".
28673         * tests/test-update-copyright.sh: Test.
28674
28675 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28676
28677         update-copyright: don't trip on non-FSF copyright statements
28678         * build-aux/update-copyright: Fix so that the first correctly
28679         formatted FSF copyright statement is recognized no matter what
28680         appears before it.  Update documentation.
28681         * tests/test-update-copyright.sh: Test that.
28682
28683 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28684
28685         update-copyright: clean up code a little
28686         * build-aux/update-copyright: Append "_re" to the name of any
28687         variable holding a regular expression.
28688         Replace "old" and "new" with "stmt" in variable names.
28689         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28690         handled correctly.
28691         Format code more consistently.
28692
28693 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28694
28695         update-copyright-tests: improve portability
28696         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28697         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28698
28699 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28700
28701         update-copyright: support @copyright{} and &copy;
28702         * build-aux/update-copyright: Implement and document.
28703         * tests/test-update-copyright.sh: Test.
28704
28705 2009-08-04  Jim Meyering  <meyering@redhat.com>
28706
28707         update-copyright-tests: correctly test EOL=\r\n handling
28708         * tests/test-update-copyright.sh: Put \r at the end of some lines
28709         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28710
28711         maint.mk: make update-copyright exclusion list more configurable
28712         * top/maint.mk (update-copyright): Default to excluding COPYING,
28713         but allow an override, in case someone does want to update that file.
28714
28715         maint.mk: don't update copyright date in COPYING
28716         * top/maint.mk (update-copyright): Exclude COPYING.
28717
28718         maint.mk: add a copyright-updating rule
28719         * top/maint.mk (update-copyright): New rule.
28720         Derived from coreutils/Makefile.am.
28721
28722         update-copyright: rename some variables
28723         * build-aux/update-copyright: Rename a few variables for clarity.
28724         Tweak syntax.  List Joel E. Denny as coauthor.
28725
28726 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28727
28728         update-copyright: fix bug for 2-digit last year and add tests
28729         * build-aux/update-copyright: Fix bug.
28730         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28731         specified.
28732         * modules/update-copyright-tests: New
28733         * tests/test-update-copyright.sh: New.
28734
28735 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28736
28737         update-copyright: handle leading tabs in line prefix
28738         * build-aux/update-copyright: Count leading tabs as 8 spaces
28739         when computing margin.  This helps with the formatting of
28740         ChangeLogs, for example.
28741         Fix documentation a little.
28742
28743 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28744
28745         update-copyright: support EOL=\r\n
28746         * build-aux/update-copyright: Implement that.
28747
28748 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28749
28750         update-copyright: automatically format copyright statements
28751         * build-aux/update-copyright: Implement that.
28752         Also, be a little more predictable and safer by always failing
28753         when the full copyright format is not perfectly recognized as an
28754         unbroken whole.  Discussed at
28755         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28756         Rewrite documentation.
28757
28758 2009-08-03  Bruno Haible  <bruno@clisp.org>
28759
28760         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28761
28762 2009-08-02  Bruno Haible  <bruno@clisp.org>
28763
28764         Tests for module 'uname'.
28765         * modules/uname-tests: New file.
28766         * tests/test-uname.c: New file.
28767
28768         New module 'uname'.
28769         * lib/uname.c: New file.
28770         * m4/uname.m4: New file.
28771         * modules/uname: New file.
28772         * doc/posix-functions/uname.texi: Mention the new module.
28773
28774 2009-08-02  Bruno Haible  <bruno@clisp.org>
28775
28776         Tests for module 'sys_utsname'.
28777         * modules/sys_utsname-tests: New file.
28778         * tests/test-sys_utsname.c: New file.
28779
28780         New module 'sys_utsname'.
28781         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28782         * m4/sys_utsname_h.m4: New file.
28783         * modules/sys_utsname: New file.
28784         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28785
28786 2009-08-02  Bruno Haible  <bruno@clisp.org>
28787
28788         Implicitly initialize the sockets library.
28789         * lib/gethostname.c: Include sockets.h.
28790         (rpl_gethostname): Invoke gl_sockets_startup.
28791         * lib/socket.c: Include sockets.h.
28792         (rpl_socket): Invoke gl_sockets_startup.
28793         * modules/gethostname (Depends-on): Add sockets.
28794         * modules/socket (Depends-on): Likewise.
28795         * tests/test-poll.c: Don't include sockets.h.
28796         (main): Don't invoke gl_sockets_startup.
28797         * tests/test-select.c: Don't include sockets.h.
28798         (main): Don't invoke gl_sockets_startup.
28799
28800 2009-08-02  Bruno Haible  <bruno@clisp.org>
28801
28802         Allow multiple calls to gl_sockets_startup.
28803         * lib/sockets.c (initialized_sockets_version): New variable.
28804         (gl_sockets_startup): Do nothing if already called for this or a higher
28805         version.
28806         (gl_sockets_cleanup): Reset initialized_sockets_version.
28807
28808 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28809
28810         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28811         different project/version.
28812
28813 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28814             Bruno Haible  <bruno@clisp.org>
28815
28816         Tests for module 'pipe-filter-gi'.
28817         * modules/pipe-filter-gi-tests: New file.
28818         * tests/test-pipe-filter-gi1.sh: New file.
28819         * tests/test-pipe-filter-gi1.c: New file.
28820         * tests/test-pipe-filter-gi2.sh: New file.
28821         * tests/test-pipe-filter-gi2-main.c: New file.
28822         * tests/test-pipe-filter-gi2-child.c: New file.
28823
28824         New module 'pipe-filter-gi'.
28825         * lib/pipe-filter-gi.c: New file.
28826         * modules/pipe-filter-gi: New file.
28827
28828 2009-08-02  Bruno Haible  <bruno@clisp.org>
28829             Paolo Bonzini  <bonzini@gnu.org>
28830
28831         Tests for module 'pipe-filter-ii'.
28832         * modules/pipe-filter-ii-tests: New file.
28833         * tests/test-pipe-filter-ii1.sh: New file.
28834         * tests/test-pipe-filter-ii1.c: New file.
28835         * tests/test-pipe-filter-ii2.sh: New file.
28836         * tests/test-pipe-filter-ii2-main.c: New file.
28837         * tests/test-pipe-filter-ii2-child.c: New file.
28838
28839         New module 'pipe-filter-ii'.
28840         * lib/pipe-filter.h: New file.
28841         * lib/pipe-filter-ii.c: New file.
28842         * lib/pipe-filter-aux.h: New file.
28843         * modules/pipe-filter-ii: New file.
28844
28845 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28846
28847         * lib/gc-libgcrypt.c: Change copyright to FSF.
28848         * lib/gc-gnulib.c: Likewise.
28849
28850 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28851
28852         * lib/gethostname.c: Include limits.h.
28853
28854 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28855             Bruno Haible  <bruno@clisp.org>
28856
28857         Ensure HOST_NAME_MAX as part of the gethostname module.
28858         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28859         define also HOST_NAME_MAX.
28860         * tests/test-gethostname.c: Include <limits.h>.
28861         (main): Check also HOST_NAME_MAX.
28862         * doc/posix-headers/limits.texi: Document the mingw problem.
28863
28864 2009-08-02  Bruno Haible  <bruno@clisp.org>
28865
28866         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28867         Add comments.
28868
28869 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28870
28871         * lib/gethostname.c: Add Windows wrapper.
28872         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28873         * modules/gethostname: Depend on sys_socket & errno, for also
28874         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28875         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28876
28877 2009-07-31  Jim Meyering  <meyering@redhat.com>
28878
28879         getloadavg: fix symbol name in comment
28880         * lib/getloadavg.c: Correct a typo I introduced when adding
28881         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28882         Matt Kraai spotted the problem.
28883
28884 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28885
28886         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28887         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28888         code also if ! defined N_NAME_POINTER.
28889         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28890         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28891         but the n_name member is a 12-byte array.
28892
28893 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28894
28895         update-copyright: generalize comment handling
28896         * build-aux/update-copyright: Handle copyright statements
28897         within more comment styles.
28898         Document usage.
28899         Report any file with an external copyright holder or parse failure.
28900
28901 2009-07-29  Jim Meyering  <meyering@redhat.com>
28902
28903         mktime: correct setting of REPLACE_MKTIME
28904         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28905
28906         update-copyright: new module
28907         * modules/update-copyright: New file.
28908         * build-aux/update-copyright: New file.
28909         * MODULES.html.sh (maint+release support): Add update-copyright.
28910
28911 2009-07-27  Bruno Haible  <bruno@clisp.org>
28912
28913         Fix compilation error when <ctime> is used and mktime is replaced.
28914         * lib/time.in.h (mktime): New declaration.
28915         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28916         REPLACE_MKTIME instead of defining mktime in config.h.
28917         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28918         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28919         Reported by Ross McFarland <rwmcfa1@neces.com>.
28920
28921 2009-07-27  Bruno Haible  <bruno@clisp.org>
28922
28923         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28924         Reported by Matt Kraai <mkraai@beckman.com>.
28925
28926 2009-07-25  Jim Meyering  <meyering@redhat.com>
28927
28928         maint.mk: avoid warnings about missing files
28929         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28930         diagnostic when .prev-version does not exist.
28931         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28932         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28933         nonexistent cfg.mk.
28934         Suggestions from Simon Josefsson.
28935
28936 2009-07-25  Bruno Haible  <bruno@clisp.org>
28937
28938         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28939         defined as macros. Needed on QNX 6.4.1.
28940         Reported by Matt Kraai <mkraai@beckman.com>.
28941
28942 2009-07-23  Jim Meyering  <meyering@redhat.com>
28943
28944         maint.mk: invoke "make dist" with a working value of XZ_OPT
28945         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28946
28947 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28948
28949         Make fseeko.c compile on QNX.
28950         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28951
28952 2009-07-22  Peter Simons  <simons@cryp.to>
28953
28954         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28955         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28956         * lib/md4.h: Likewise.
28957         * lib/md5.h: Likewise.
28958         * lib/sha1.h: Likewise.
28959         * lib/sha256.h: Likewise.
28960         * lib/sha512.h: Likewise.
28961
28962         tests-sha1: don't assign literal string to 'char *' variable
28963         * tests/test-sha1.c (main): Declare locals with "const" to match
28964         attributes of the right hand side.
28965
28966 2009-07-21  Eric Blake  <ebb9@byu.net>
28967
28968         dup2: fix more mingw problems
28969         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28970         fd to itself.
28971         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28972         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28973         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28974         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28975         care of mingw bugs.
28976
28977 2009-07-21  Jim Meyering  <meyering@redhat.com>
28978
28979         vc-list-files: avoid failure when /bin/sh is dash
28980         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28981         On some Debian based systems, /bin/sh is a symlink to dash, and running
28982         this command would omit the "/" following each 'tests' prefix:
28983           dash -x build-aux/vc-list-files -C . tests
28984         That is because bash and dash work differently:
28985           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28986           bash ok
28987           dash odd
28988
28989 2009-07-21  Eric Blake  <ebb9@byu.net>
28990
28991         dup2-tests: test previous patch
28992         * modules/dup2-tests: New file.
28993         * tests/test-dup2.c: Likewise.
28994         * tests/test-open.c (main): Avoid unspecified behavior.
28995         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28996         test.
28997
28998         dup2: work around mingw and cygwin 1.5 bug
28999         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29001         * modules/unistd (Makefile.am): Substitute it.
29002         * lib/unistd.in.h (dup2): Declare the replacement.
29003         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29004         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29005         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29006         * modules/execute (Depends-on): Add dup2.
29007         * modules/fseterr (Depends-on): Likewise.
29008         * modules/pipe (Depends-on): Likewise.
29009         * modules/posix_spawn-internal (Depends-on): Likewise.
29010
29011 2009-07-21  Bruno Haible  <bruno@clisp.org>
29012
29013         * modules/.gitattributes: New file.
29014
29015 2009-07-20  Bruno Haible  <bruno@clisp.org>
29016
29017         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29018         (main): Use it.
29019
29020 2009-07-20  Eric Blake  <ebb9@byu.net>
29021
29022         test-pipe: make a bit more robust.
29023         * tests/test-pipe.c (myerr): Allow error messages regardless of
29024         what we do to stderr.
29025         (test_pipe): Rearrange to avoid deadlock.
29026         (child_main): Try a larger read, to ensure we avoided deadlock.
29027         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29028         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29029         if misused.
29030
29031 2009-07-19  Jim Meyering  <meyering@redhat.com>
29032
29033         fts: avoid false-positive cycle-detection
29034         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29035         for each new command line argument.
29036
29037 2009-07-19  Bruno Haible  <bruno@clisp.org>
29038
29039         Fix build error on mingw with the modules sys_select and unistd.
29040         * modules/acl-tests (Depends-on): Add close.
29041         * modules/binary-io-tests (Depends-on): Likewise.
29042         * modules/closein-tests (Depends-on): Likewise.
29043         * modules/flock-tests (Depends-on): Likewise.
29044         * modules/fsync-tests (Depends-on): Likewise.
29045         * modules/lseek-tests (Depends-on): Likewise.
29046         * modules/pipe-tests (Depends-on): Likewise.
29047         * modules/posix_spawn-tests (Depends-on): Likewise.
29048         * modules/posix_spawnp-tests (Depends-on): Likewise.
29049         * modules/stat-time-tests (Depends-on): Likewise.
29050         * modules/yesno-tests (Depends-on): Likewise.
29051
29052 2009-07-19  Bruno Haible  <bruno@clisp.org>
29053
29054         Unify conditionals.
29055         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29056         macros, not at the compiler macros.
29057         * lib/pipe.c: Likewise.
29058         * lib/execute.c: Likewise.
29059         * lib/spawni.c: Likewise.
29060
29061 2009-07-19  Bruno Haible  <bruno@clisp.org>
29062
29063         Fix handling of closed stdin/stdout/stderr on mingw.
29064         * lib/w32spawn.h: Include unistd.h.
29065         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29066         file descriptor with O_NOINHERIT flag.
29067         (fd_safer_noinherit): New function, based on fd-safer.c.
29068         (dup_safer_noinherit): New function, based on dup-safer.c.
29069         (undup_safer_noinherit): New function.
29070         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29071         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29072         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29073         instead of fd_safer.
29074         * tests/test-pipe.c: Include <windows.h>.
29075         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29076         result.
29077
29078         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29079         from main.
29080         (test_pipe): Pass an extra argument for disambiguation.
29081         (main): Invoke parent_main or child_main.
29082
29083         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29084         consistently.
29085
29086 2009-07-18  Eric Blake  <ebb9@byu.net>
29087
29088         test-pipe: fix mingw build
29089         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29090
29091 2009-07-18  Bruno Haible  <bruno@clisp.org>
29092
29093         * modules/pipe-tests (Makefile.am): Fix typo.
29094
29095 2009-07-18  Eric Blake  <ebb9@byu.net>
29096
29097         error: fix mingw build
29098         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29099         Reported by Bruno Haible.
29100
29101         error: avoid undefined use of stdout
29102         * lib/error.c (error, error_at_line): Check that fd 1 is open
29103         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29104         is handling faults and the close_stdout module wants to report the
29105         detection of closed stdout as an error.
29106
29107 2009-07-17  Eric Blake  <ebb9@byu.net>
29108
29109         pipe: be robust in face of closed fds
29110         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29111         should cause child to misbehave.
29112         * modules/pipe-tests: New module.
29113         * tests/test-pipe.c: New file.
29114         * tests/test-pipe.sh: New file.
29115         Reported by Akim Demaille.
29116
29117 2009-07-14  Bruno Haible  <bruno@clisp.org>
29118
29119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29120         Reported by anonymous kc.
29121
29122 2009-07-07  Jim Meyering  <meyering@redhat.com>
29123
29124         maint.mk: don't look for translatable strings in *.m4 or *.mk
29125         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29126         when searching for translatable strings.
29127
29128 2009-07-05  Jim Meyering  <meyering@redhat.com>
29129
29130         remove superfluous parentheses in STREQ definition
29131         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29132         * lib/getugroups.c (STREQ): Likewise.
29133         * lib/fnmatch.c (STREQ): Likewise.
29134         Spotted by Bruno Haible.
29135
29136 2009-07-04  Jim Meyering  <meyering@redhat.com>
29137
29138         argv-iter: new module
29139         * MODULES.html.sh: Add argv-iter.
29140         * lib/argv-iter.c, lib/argv-iter.h: New files.
29141         * modules/argv-iter: New file.
29142         * modules/argv-iter-tests: New file.
29143         * tests/test-argv-iter.c: Test it.
29144
29145 2009-07-04  Bruno Haible  <bruno@clisp.org>
29146
29147         Fix assertion.
29148         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29149         contains more exact copies of a given entry than file2, leave the extra
29150         copies unpaired rather than aborting.
29151         Reported by Eric Blake.
29152
29153 2009-07-02  Bruno Haible  <bruno@clisp.org>
29154
29155         Speedup git-merge-changelog for git cherry-pick.
29156         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29157         (entries_mapping_get): New function, extracted from compute_mapping.
29158         (entries_mapping_reverse_get): New function.
29159         (compute_mapping): Add a 'full' argument. Return the result in a
29160         'struct entries_mapping'.
29161         (main): Update. Access the mappings through entries_mapping_get.
29162         Reported by Eric Blake.
29163
29164 2009-07-02  Bruno Haible  <bruno@clisp.org>
29165
29166         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29167         best_i.
29168
29169 2009-07-02  Bruno Haible  <bruno@clisp.org>
29170
29171         Speed up approximate search for matching ChangeLog entries.
29172         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29173         argument. Call fstrcmp_bounded instead of fstrcmp.
29174         (compute_mapping, try_split_merged_entry, main): Update callers.
29175
29176 2009-07-02  Bruno Haible  <bruno@clisp.org>
29177
29178         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29179
29180 2009-06-30  Bruno Haible  <bruno@clisp.org>
29181
29182         Reduce the number of uc_is_cased calls.
29183         * lib/unicase.h (casing_suffix_context_t): Add
29184         'first_char_except_ignorable' field.
29185         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29186         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29187         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29188         Update initializer.
29189         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29190         case-ignorable characters.
29191         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29192         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29193         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29194         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29195         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29196
29197 2009-06-30  Bruno Haible  <bruno@clisp.org>
29198
29199         Tests for module 'unicase/ignorable'.
29200         * modules/unicase/ignorable-tests: New file.
29201         * tests/unicase/test-ignorable.c: New file, generated by
29202         gen-uni-tables.
29203
29204         Tests for module 'unicase/cased'.
29205         * modules/unicase/cased-tests: New file.
29206         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29207         * tests/unicase/test-predicate-part1.h: New file, derived from
29208         tests/unictype/test-predicate-part1.h.
29209         * tests/unicase/test-predicate-part2.h: New file, same as
29210         tests/unictype/test-predicate-part2.h.
29211
29212         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29213         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29214         (output_casing_properties): New function.
29215         (main): Call it.
29216         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29217         * lib/unicase/cased.c: Include unictype/bitmap.h.
29218         (uc_is_cased): Define through a bitmap lookup.
29219         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29220         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29221         (uc_is_case_ignorable): Define through a bitmap lookup.
29222         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29223         lib/unictype/bitmap.h.
29224         (Depends-on): Add inline. Clean up.
29225         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29226         lib/unictype/bitmap.h.
29227         (Depends-on): Add inline. Clean up.
29228         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29229         recognition.
29230         * tests/unicase/test-u16-tolower.c (main): Likewise.
29231         * tests/unicase/test-u32-tolower.c (main): Likewise.
29232
29233 2009-06-30  Bruno Haible  <bruno@clisp.org>
29234
29235         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29236         * lib/unicase/u16-casemap.c: Likewise.
29237         * lib/unicase/u32-casemap.c: Likewise.
29238
29239 2009-06-29  Bruno Haible  <bruno@clisp.org>
29240
29241         Define u32_casefold as a wrapper around u32_ct_casefold.
29242         * lib/unicase/u32-casefold.c: Update.
29243         * modules/unicase/u32-casefold (Depends-on): Add
29244         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29245         unicase/empty-suffix-context. Clean up.
29246
29247         Define u16_casefold as a wrapper around u16_ct_casefold.
29248         * lib/unicase/u16-casefold.c: Update.
29249         * modules/unicase/u16-casefold (Depends-on): Add
29250         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29251         unicase/empty-suffix-context. Clean up.
29252
29253         Define u8_casefold as a wrapper around u8_ct_casefold.
29254         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29255         * lib/unicase/u8-casefold.c: Update.
29256         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29257         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29258
29259         Define u32_totitle as a wrapper around u32_ct_totitle.
29260         * lib/unicase/u32-totitle.c: Update.
29261         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29262         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29263
29264         Define u16_totitle as a wrapper around u16_ct_totitle.
29265         * lib/unicase/u16-totitle.c: Update.
29266         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29267         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29268
29269         Define u8_totitle as a wrapper around u8_ct_totitle.
29270         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29271         functions.
29272         (FUNC): Delegate to U_CT_TOTITLE.
29273         * lib/unicase/u8-totitle.c: Update.
29274         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29275         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29276
29277         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29278         invocation.
29279         * modules/unicase/u32-tolower (Depends-on): Add
29280         unicase/empty-prefix-context, unicase/empty-suffix-context.
29281
29282         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29283         invocation.
29284         * modules/unicase/u16-tolower (Depends-on): Add
29285         unicase/empty-prefix-context, unicase/empty-suffix-context.
29286
29287         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29288         * modules/unicase/u8-tolower (Depends-on): Add
29289         unicase/empty-prefix-context, unicase/empty-suffix-context.
29290
29291         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29292         invocation.
29293         * modules/unicase/u32-toupper (Depends-on): Add
29294         unicase/empty-prefix-context, unicase/empty-suffix-context.
29295
29296         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29297         invocation.
29298         * modules/unicase/u16-toupper (Depends-on): Add
29299         unicase/empty-prefix-context, unicase/empty-suffix-context.
29300
29301         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29302         * modules/unicase/u8-toupper (Depends-on): Add
29303         unicase/empty-prefix-context, unicase/empty-suffix-context.
29304
29305         New module 'unicase/u32-ct-casefold'.
29306         * lib/unicase/u32-ct-casefold.c: New file.
29307         * modules/unicase/u32-ct-casefold: New file.
29308
29309         New module 'unicase/u16-ct-casefold'.
29310         * lib/unicase/u16-ct-casefold.c: New file.
29311         * modules/unicase/u16-ct-casefold: New file.
29312
29313         New module 'unicase/u8-ct-casefold'.
29314         * lib/unicase/u8-ct-casefold.c: New file.
29315         * lib/unicase/u-ct-casefold.h: New file, derived from
29316         lib/unicase/u-casefold.h.
29317         * modules/unicase/u8-ct-casefold: New file.
29318
29319         New module 'unicase/u32-ct-totitle'.
29320         * lib/unicase/u32-ct-totitle.c: New file.
29321         * modules/unicase/u32-ct-totitle: New file.
29322
29323         New module 'unicase/u16-ct-totitle'.
29324         * lib/unicase/u16-ct-totitle.c: New file.
29325         * modules/unicase/u16-ct-totitle: New file.
29326
29327         New module 'unicase/u8-ct-totitle'.
29328         * lib/unicase/u8-ct-totitle.c: New file.
29329         * lib/unicase/u-ct-totitle.h: New file, derived from
29330         lib/unicase/u-totitle.h.
29331         * modules/unicase/u8-ct-totitle: New file.
29332
29333         New module 'unicase/u32-ct-tolower'.
29334         * lib/unicase/u32-ct-tolower.c: New file.
29335         * modules/unicase/u32-ct-tolower: New file.
29336
29337         New module 'unicase/u16-ct-tolower'.
29338         * lib/unicase/u16-ct-tolower.c: New file.
29339         * modules/unicase/u16-ct-tolower: New file.
29340
29341         New module 'unicase/u8-ct-tolower'.
29342         * lib/unicase/u8-ct-tolower.c: New file.
29343         * modules/unicase/u8-ct-tolower: New file.
29344
29345         New module 'unicase/u32-ct-toupper'.
29346         * lib/unicase/u32-ct-toupper.c: New file.
29347         * modules/unicase/u32-ct-toupper: New file.
29348
29349         New module 'unicase/u16-ct-toupper'.
29350         * lib/unicase/u16-ct-toupper.c: New file.
29351         * modules/unicase/u16-ct-toupper: New file.
29352
29353         New module 'unicase/u8-ct-toupper'.
29354         * lib/unicase/u8-ct-toupper.c: New file.
29355         * modules/unicase/u8-ct-toupper: New file.
29356
29357         Add context arguments to u*_casemap functions.
29358         * lib/unicase/unicasemap.h: Include unicase.h.
29359         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29360         suffix_context arguments.
29361         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29362         functions.
29363         (FUNC): Add prefix_context and suffix_context arguments. Use
29364         uc_is_cased and uc_is_case_ignorable.
29365         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29366         * lib/unicase/u16-casemap.c: Likewise.
29367         * lib/unicase/u32-casemap.c: Likewise.
29368         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29369         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29370         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29371         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29372         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29373         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29374
29375         New module 'unicase/u32-suffix-context'.
29376         * lib/unicase/u32-suffix-context.c: New file.
29377         * modules/unicase/u32-suffix-context: New file.
29378
29379         New module 'unicase/u16-suffix-context'.
29380         * lib/unicase/u16-suffix-context.c: New file.
29381         * modules/unicase/u16-suffix-context: New file.
29382
29383         New module 'unicase/u8-suffix-context'.
29384         * lib/unicase/u8-suffix-context.c: New file.
29385         * lib/unicase/u-suffix-context.h: New file.
29386         * modules/unicase/u8-suffix-context: New file.
29387
29388         New module 'unicase/empty-suffix-context'.
29389         * lib/unicase/empty-suffix-context.c: New file.
29390         * modules/unicase/empty-suffix-context: New file.
29391
29392         New module 'unicase/u32-prefix-context'.
29393         * lib/unicase/u32-prefix-context.c: New file.
29394         * modules/unicase/u32-prefix-context: New file.
29395
29396         New module 'unicase/u16-prefix-context'.
29397         * lib/unicase/u16-prefix-context.c: New file.
29398         * modules/unicase/u16-prefix-context: New file.
29399
29400         New module 'unicase/u8-prefix-context'.
29401         * lib/unicase/u8-prefix-context.c: New file.
29402         * lib/unicase/u-prefix-context.h: New file.
29403         * lib/unicase/context.h: New file.
29404         * modules/unicase/u8-prefix-context: New file.
29405
29406         New module 'unicase/empty-prefix-context'.
29407         * lib/unicase/empty-prefix-context.c: New file.
29408         * modules/unicase/empty-prefix-context: New file.
29409
29410         New module 'unicase/ignorable'.
29411         * lib/unicase/ignorable.c: New file.
29412         * modules/unicase/ignorable: New file.
29413
29414         New module 'unicase/cased'.
29415         * lib/unicase/caseprop.h: New file.
29416         * lib/unicase/cased.c: New file.
29417         * modules/unicase/cased: New file.
29418
29419         New functions for case mapping of substrings.
29420         * lib/unicase.h (casing_prefix_context_t): New type.
29421         (unicase_empty_prefix_context): New variable.
29422         (u8_casing_prefix_context, u16_casing_prefix_context,
29423         u32_casing_prefix_context, u8_casing_prefixes_context,
29424         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29425         declarations.
29426         (casing_suffix_context_t): New type.
29427         (unicase_empty_suffix_context): New variable.
29428         (u8_casing_suffix_context, u16_casing_suffix_context,
29429         u32_casing_suffix_context, u8_casing_suffixes_context,
29430         u16_casing_suffixes_context, u32_casing_suffixes_context,
29431         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29432         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29433         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29434         declarations.
29435
29436 2009-06-28  Jim Meyering  <meyering@redhat.com>
29437
29438         boostrap: indent only with spaces
29439         * build-aux/bootstrap: Indent only with spaces, never TABs.
29440
29441         bootstrap: split long lines
29442         * build-aux/bootstrap: Keep line length < 80.
29443
29444         bootstrap: sync from coreutils
29445         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29446         just as autoreconf does.  Verify a list of prerequisite
29447         package-name,version-number pairs if defined in bootstrap.conf.
29448         Refer to README-prereq, if prerequisites are not satisfied.
29449
29450 2009-06-27  Eric Blake  <ebb9@byu.net>
29451
29452         tests: add test for bogus NULL definition
29453         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29454         * tests/test-stdlib.c: Likewise.
29455         * tests/test-string.c: Likewise.
29456         * tests/test-locale.c: Likewise.
29457         * tests/test-unistd.c: Likewise.
29458         * modules/stdio-tests (Depends-on): Add verify.
29459         * modules/stdlib-tests (Depends-on): Likewise.
29460         * modules/string-tests (Depends-on): Likewise.
29461         * modules/locale-tests (Depends-on): Likewise.
29462         * modules/unistd-tests (Depends-on): Likewise.
29463
29464 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29465
29466         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29467         self-explaining comment.
29468         * m4/selinux-selinux-h: Update serial.
29469         (gl_LIBSELINUX): New macro, adding a warning for missing development
29470         packages to code extracted from...
29471         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29472         Add warning for missing development packages here, too.
29473
29474 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29475
29476         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29477
29478 2009-06-25  Eric Blake  <ebb9@byu.net>
29479
29480         version-etc: fix regression
29481         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29482         gcc.
29483         (version_etc): Use it, to catch bugs with trailing NULL.
29484         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29485         (version_etc_va): Fix logic bug.
29486         * modules/version-etc-tests: Add test.
29487         * tests/test-version-etc.c: New file.
29488         * tests/test-version-etc.sh: Likewise.
29489
29490 2009-06-25  Sam Steingold  <sds@gnu.org>
29491
29492         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29493         mbtowc declaration.
29494
29495 2009-06-25  Eric Blake  <ebb9@byu.net>
29496
29497         fpurge: migrate into <stdio.h>
29498         * lib/fpurge.h: Delete...
29499         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29500         * lib/fpurge.c (fpurge): Change declaring header.
29501         * modules/fpurge (Files): Drop deleted file.
29502         (Depends-on): Add stdio.
29503         (configure.ac): Set witness.
29504         * modules/stdio (Makefile.am): Support fpurge macros.
29505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29506         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29507         * lib/fflush.c: Update client.
29508         * tests/test-fpurge.c: Likewise.
29509         * NEWS: Mention the change.
29510
29511 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29512
29513         * lib/argp-version-etc.c (program_authors): Add const
29514         qualifier.
29515         * lib/version-etc.c: Fix typos in the comments.
29516         * modules/argp-version-etc: Depends on version-etc.
29517
29518 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29519
29520         argp-version-etc: new module.
29521
29522         * lib/argp-version-etc.c: New file.
29523         * lib/argp-version-etc.h: New file.
29524         * modules/argp-version-etc: New file.
29525         * modules/argp-version-etc-tests: New file.
29526         * tests/test-argp-version-etc.c: New test.
29527         * tests/test-argp-version-etc-1.sh: New test.
29528
29529 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29530
29531         Provide additional interfaces and documentation for version-etc
29532         module.
29533
29534         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29535         interfaces.
29536         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29537         prototypes.
29538
29539 2009-06-24  Bruno Haible  <bruno@clisp.org>
29540
29541         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29542         HAVE_LIB${NAME} macro.
29543         Reported by Sam Steingold <sds@gnu.org>.
29544
29545 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29546
29547         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29548         needed.
29549
29550 2009-06-21  Bruno Haible  <bruno@clisp.org>
29551
29552         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29553         work.
29554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29555         together with LIB${NAME}, LTLIB${NAME}.
29556         Reported by Sam Steingold <sds@gnu.org>.
29557
29558 2009-06-20  Jim Meyering  <meyering@redhat.com>
29559
29560         tests: make sc_require_test_exit_idiom more generic
29561         * top/maint.mk (Exit_witness_file): New overridable variable.
29562         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29563         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29564
29565 2009-06-19  Jim Meyering  <meyering@redhat.com>
29566
29567         hash: reverse order of src/dst parameters in an internal interface
29568         * lib/hash.c (transfer_entries): Reverse order of parameters to
29569         put DST before SRC.  Adjust callers.
29570
29571         tests: test-hash: avoid wholesale duplication
29572         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29573         Instead, use a loop and add a single conditional.
29574
29575         tests: test-hash: allow seed selection via a command line argument
29576         * tests/test-hash.c (get_seed): New function.
29577         (main): Use it.
29578
29579 2009-06-19  Eric Blake  <ebb9@byu.net>
29580
29581         hash: avoid memory leak on allocation failure
29582         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29583         failure.  Factor repeated algorithm...
29584         (transfer_entries): ...into new helper routine.
29585         (hash_delete): React to hash_rehash return value.
29586
29587         hash: reduce memory pressure in hash_rehash no-op case
29588         * lib/hash.c (next_prime): Avoid overflow.
29589         (hash_initialize): Factor bucket size computation...
29590         (compute_bucket_size): ...into new helper function.
29591         (hash_rehash): Use new function and open coding to reduce memory
29592         pressure, and avoid a memory leak in USE_OBSTACK code.
29593         Reported by Jim Meyering.
29594
29595 2009-06-18  Eric Blake  <ebb9@byu.net>
29596
29597         hash: make rotation more obvious
29598         * modules/hash (Depends-on): Add bitrotate and stdint.
29599         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29600         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29601         (SIZE_MAX): Rely on headers for definition.
29602         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29603         (raw_hasher): Use rotr_sz.
29604         Suggested by Jim Meyering.
29605
29606         hash: fix memory leak in last patch
29607         * lib/hash.c (hash_rehash): Avoid memory leak.
29608
29609         hash: avoid no-op rehashing
29610         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29611
29612         hash: provide default callback functions
29613         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29614         (hash_initialize): Use them as defaults.
29615         * tests/test-hash.c (main): Test this.
29616
29617         hash: minor optimization
29618         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29619         when possible.
29620         (hash_initialize): Document this promise.
29621         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29622         * tests/test-hash.c (hash_compare_strings): Test this.
29623
29624 2009-06-18  Bruno Haible  <bruno@clisp.org>
29625
29626         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29627         going to be replaced anyway.
29628
29629 2009-06-18  Bruno Haible  <bruno@clisp.org>
29630
29631         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29632         in one place.
29633         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29634         be replaced anyway.
29635
29636 2009-06-18  Eric Blake  <ebb9@byu.net>
29637
29638         hash: check for resize before insertion
29639         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29640         threshold before insertion, so that a pathological hash_rehash
29641         that fills every bucket can still trigger another rehash.
29642
29643 2009-06-18  Jim Meyering  <meyering@redhat.com>
29644
29645         hash-tests: add a loop around the small tests
29646         * tests/test-hash.c (main): Repeat small tests with selected
29647         small initial table sizes.
29648
29649 2009-06-17  Eric Blake  <ebb9@byu.net>
29650
29651         hash: minor cleanups
29652         * lib/hash.h (hash_entry): Make opaque, by moving...
29653         * lib/hash.c (hash_entry): ...here.
29654         (hash_insert): Clarify restrictions on what can be inserted.
29655         (hash_get_next): Clarify when it is safe to remove an element
29656         during traversal.
29657         (check_tuning): Skip verification when tuning is known safe.
29658         (hash_initialize): Clarify restrictions on tuning.
29659
29660 2009-06-17  Jim Meyering  <jim@meyering.net>
29661         and Eric Blake  <ebb9@byu.net>
29662
29663         hash-tests: new module
29664         * modules/hash-tests: New file.
29665         * tests/test-hash.c: New file.
29666
29667 2009-06-17  Eric Blake  <ebb9@byu.net>
29668
29669         strstr-simple: document new module
29670         * MODULES.html.sh: Document new module.
29671
29672         strstr, strcasestr: replace on platforms with broken memchr
29673         * modules/strstr: Split into...
29674         * modules/strstr-simple: ...new module that does not care about
29675         performance, but does care about glibc bug.
29676         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29677         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29678         if platform memchr is broken, per Debian bug 521737.
29679         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29680         memchr.
29681         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29682         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29683         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29684         * modules/mountlist (Depends-on): Add strstr-simple.
29685         * modules/gen-uni-tables (Depends-on): Likewise.
29686         * modules/argz (Depends-on): Add strstr.
29687
29688 2009-06-17  Bruno Haible  <bruno@clisp.org>
29689
29690         * modules/posix_spawn-internal (Depends-on): Add errno.
29691
29692 2009-06-17  Bruno Haible  <bruno@clisp.org>
29693
29694         Define missing ESTALE on Interix 3.5.
29695         * lib/errno.in.h (ESTALE): Assign a value if missing.
29696         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29697         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29698         missing.
29699         * doc/posix-headers/errno.texi: Mention the Interix bug.
29700         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29701
29702 2009-06-15  Eric Blake  <ebb9@byu.net>
29703
29704         memchr, memchr2: add valgrind exception
29705         * lib/memchr.valgrind: New file.
29706         * lib/memchr2.valgrind: New file.
29707         * modules/memchr (Files): Distribute valgrind file.
29708         * modules/memchr2 (Files): Likewise.
29709
29710         docs: memchr is no longer obsolete
29711         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29712         * lib/string.in.h (memchr): Simplify logic.
29713
29714 2009-06-14  Jim Meyering  <meyering@redhat.com>
29715
29716         link-follow: fix the "checking..." message to not mention trailing slash
29717         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29718         never considered trailing slashes.
29719
29720 2009-06-14  Bruno Haible  <bruno@clisp.org>
29721
29722         * m4/memchr.m4: Mention also the bug on IA-64.
29723         * doc/posix-functions/memchr.texi: Likewise.
29724
29725 2009-06-12  Eric Blake  <ebb9@byu.net>
29726
29727         memchr: detect broken x86_64 and alpha implementations
29728         * modules/memchr-tests (Depends-on): Move mmap detection...
29729         * modules/memchr (Depends-on): ...here.
29730         (configure.ac): Set indicator.
29731         * lib/string.in.h (memchr): Declare replacement.
29732         * modules/string (Makefile.am): Trigger replacement.
29733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29734         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29735         bugs.
29736         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29737         * modules/getpagesize (License): Relax license.
29738
29739 2009-06-11  Bruno Haible  <bruno@clisp.org>
29740
29741         * lib/idpriv.h: Add more references.
29742
29743 2009-06-08  Bruno Haible  <bruno@clisp.org>
29744
29745         Tests for module 'idpriv-droptemp'.
29746         * modules/idpriv-droptemp-tests: New file.
29747         * tests/test-idpriv-droptemp.sh: New file.
29748         * tests/test-idpriv-droptemp.su.sh: New file.
29749         * tests/test-idpriv-droptemp.c: New file.
29750
29751         New module 'idpriv-droptemp'.
29752         * lib/idpriv-droptemp.c: New file.
29753         * modules/idpriv-droptemp: New file.
29754
29755 2009-06-08  Bruno Haible  <bruno@clisp.org>
29756
29757         Tests for module 'idpriv-drop'.
29758         * modules/idpriv-drop-tests: New file.
29759         * tests/test-idpriv-drop.sh: New file.
29760         * tests/test-idpriv-drop.su.sh: New file.
29761         * tests/test-idpriv-drop.c: New file.
29762
29763         New module 'idpriv-drop'.
29764         * lib/idpriv.h: New file.
29765         * lib-idpriv-drop.c: New file.
29766         * m4/idpriv.m4: New file.
29767         * modules/idpriv-drop: New file.
29768
29769 2009-06-08  Bruno Haible  <bruno@clisp.org>
29770
29771         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29772         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29773         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29774         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29775         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29776         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29777         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29778
29779 2009-06-08  Eric Blake  <ebb9@byu.net>
29780
29781         test-strstr: use memory fence, when possible
29782         * tests/test-strstr.c (main): Use memory fence, in order to be
29783         more likely to trigger Debian bug 521737.
29784         * modules/strstr-tests (Files): Pull in additional files.
29785
29786         memchr: no longer obsolete, for wider field testing
29787         * modules/memchr (Status, Notice): Delete, this module is no
29788         longer obsolete.
29789         * modules/vasnprintf (Depends-on): Add memchr.
29790
29791 2009-06-07  Jim Meyering  <meyering@redhat.com>
29792
29793         hash: declare some functions with the warn_unused_result attribute
29794         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29795
29796 2009-06-07  Bruno Haible  <bruno@clisp.org>
29797
29798         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29799         Reported by Eric Blake.
29800
29801 2009-06-06  Eric Blake  <ebb9@byu.net>
29802
29803         test-alignof: fix typo with long double
29804         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29805         compiler error.
29806
29807 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29808
29809         Escape non-texinfo { and }s.
29810         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29811         markup error.
29812
29813 2009-06-04  Jim Meyering  <meyering@redhat.com>
29814
29815         gitlog-to-changelog: don't infloop on an empty commit log
29816         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29817         Reported by Boris Petersen <transacid@centerim.org>.
29818
29819 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29820
29821         version-etc: extend for packagers
29822         Add three new configure options, intended for packagers:
29823           --with-packager="packager name"
29824           --with-packager-version="packager-specific version"
29825           --with-packager-bug-reports="packager bug reporting"
29826         An example with coreutils:
29827           $ ./configure \
29828             --with-packager=Gentoo \
29829             --with-packager-bug-report=http://bugs.gentoo.org/ \
29830             --with-packager-version="patchset 1.6"
29831           $ ./src/ls --version | head -n2
29832           ls (GNU coreutils) 7.1-dirty
29833           Packaged by Gentoo (patchset 1.6)
29834         Note that the bug reporting info via --help doesn't show up because
29835         coreutils uses its own custom emit_bug_reporting_address() implementation
29836         in src/system.h.  If it didn't, it'd look like:
29837           $ ./src/ls --help | tail -n4
29838           Report bugs to <bug-coreutils@gnu.org>.
29839           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29840           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29841           General help using GNU software: <http://www.gnu.org/gethelp/>.
29842         * lib/version-etc.c: Print new information, if provided.
29843         * m4/version-etc.m4: New file.
29844         * modules/version-etc (Files): Add m4/version-etc.m4.
29845         (configure.ac): Add gl_VERSION_ETC.
29846
29847 2009-05-31  Bruno Haible  <bruno@clisp.org>
29848
29849         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29850         and 'int64_t'.
29851         * modules/alignof-tests (Dependencies): Add stdint.
29852         Reported by Eric Blake.
29853
29854 2009-05-31  Bruno Haible  <bruno@clisp.org>
29855
29856         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29857         restriction due to compiler bugs.
29858         Reported by Eric Blake.
29859
29860 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29861             Bruno Haible  <bruno@clisp.org>
29862
29863         Fix test-alignof failure.
29864         * lib/alignof.h (alignof_slot): New macro.
29865         (alignof_type): New macro, with the same semantics as the previous
29866         'alignof'.
29867         (alignof): Alias to alignof_slot.
29868         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29869         check that the results are usable as constant expressions.
29870
29871 2009-05-31  Bruno Haible  <bruno@clisp.org>
29872
29873         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29874         * tests/test-memchr.c (main): Check that memchr does not read past the
29875         first occurrence of the byte.
29876         * tests/test-strstr.c (main): Update comment.
29877         Suggested by Eric Blake.
29878
29879 2009-05-30  Bruno Haible  <bruno@clisp.org>
29880
29881         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29882         detail how to use dumpbin.
29883         Reported by David Byron <dbyron@dbyron.com>.
29884
29885 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29886
29887         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29888
29889 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29890
29891         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29892
29893 2009-05-28  Bruno Haible  <bruno@clisp.org>
29894
29895         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29896         build-aux/ files.
29897
29898 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29899
29900         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29901
29902 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29903
29904         * gnulib-tool (sed_transform_main_lib_file)
29905         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29906         regexps.
29907
29908 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29909
29910         * tests/test-strstr.c: Add another self-test.
29911         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29912         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29913
29914 2009-05-23  Bruno Haible  <bruno@clisp.org>
29915
29916         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29917         change.
29918
29919 2009-05-21  Bruno Haible  <bruno@clisp.org>
29920
29921         Simplify use of mode_t varargs.
29922         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29923         uses 'mode_t' or 'int'.
29924         * lib/openat.c (openat): Likewise.
29925         * lib/open-safer.c (open_safer): Likewise.
29926         * m4/mode_t.m4: New file.
29927         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29928         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29929         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29930         * modules/open (Files): Add m4/mode_t.m4.
29931         * modules/openat (Files): Likewise.
29932         * modules/fcntl-safer (Files): Likewise.
29933         Suggested by Eric Blake.
29934
29935 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29936
29937         * doc/glibc-functions/fallocate.texi: New file.
29938         * doc/gnulib.texi: Include it.
29939
29940 2009-05-21  Eric Blake  <ebb9@byu.net>
29941             Bruno Haible  <bruno@clisp.org>
29942
29943         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29944         invocations.
29945         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29946
29947 2009-05-21  Eric Blake  <ebb9@byu.net>
29948             Bruno Haible  <bruno@clisp.org>
29949
29950         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29951         include_next. Fix of 2008-11-20 commit.
29952         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29953         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29954         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29955         NEXT_MATH_H.
29956         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29957         instead of NEXT_MATH_H.
29958
29959 2009-05-21  Bruno Haible  <bruno@clisp.org>
29960
29961         Avoid redefinition warnings for SIZE_MAX.
29962         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29963         Reported by Simon Josefsson.
29964
29965 2009-05-21  Bruno Haible  <bruno@clisp.org>
29966
29967         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29968         AC_CACHE_VAL.
29969
29970 2009-05-20  Bruno Haible  <bruno@clisp.org>
29971
29972         Make zeroptr.h work on mingw.
29973         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29974         mprotect.
29975         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29976         * modules/memchr2-tests (configure.ac): Likewise.
29977         * modules/memcmp-tests (configure.ac): Likewise.
29978         * modules/memmem-tests (configure.ac): Likewise.
29979         * modules/memrchr-tests (configure.ac): Likewise.
29980         Reported by Simon Josefsson.
29981
29982 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29983
29984         * tests/test-glob.c: Include string.h for strcmp prototype.
29985
29986 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29987
29988         * modules/getdelim (Depends-on): Add explicit stdint, although it
29989         was implicitly already pulled in via realloc-posix.
29990         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29991
29992 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29993
29994         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29995         G. Christensen" <tgc@jupiterrise.com>.
29996         * m4/sys_socket_h.m4: Check for sa_family_t.
29997         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29998         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29999         * tests/test-sys_socket.c: Check that sa_family_t works.
30000
30001 2009-05-18  Eric Blake  <ebb9@byu.net>
30002
30003         maint.mk: allow gnulib_dir in VPATH build
30004         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30005
30006 2009-05-15  Jim Meyering  <meyering@redhat.com>
30007
30008         maint.mk: Give gnulib_dir a default definition.
30009         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30010         Thus, most packages no longer need to specify this variable in cfg.mk
30011
30012 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30013
30014         rename.m4: fix typos that would make non-mingw cross-configure fail
30015         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30016
30017 2009-05-13  Eric Blake  <ebb9@byu.net>
30018
30019         mmap-anon: avoid out-of-order autoconf expansion
30020         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30021         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30022         * modules/memchr-tests (Depends-on): Add extensions.
30023         * modules/memchr2-tests (Depends-on): Add extensions.
30024         * modules/memcmp-tests (Depends-on): Add extensions.
30025         * modules/memmem-tests (Depends-on): Add extensions.
30026         * modules/memrchr-tests (Depends-on): Add extensions.
30027
30028 2009-05-13  Bruno Haible  <bruno@clisp.org>
30029
30030         Make some tests ISO C 99 compliant.
30031         * tests/zerosize-ptr.h: New file.
30032         * tests/test-memchr.c: Include zerosize-ptr.h.
30033         (main): Use a zero-size object pointer instead of NULL.
30034         * tests/test-memchr2.c: Include zerosize-ptr.h.
30035         (main): Use a zero-size object pointer instead of NULL.
30036         * tests/test-memcmp.c: Include zerosize-ptr.h.
30037         (main): Use a zero-size object pointer instead of NULL.
30038         * tests/test-memmem.c: Include zerosize-ptr.h.
30039         (main): Use a zero-size object pointer instead of NULL.
30040         * tests/test-memrchr.c: Include zerosize-ptr.h.
30041         (main): Use a zero-size object pointer instead of NULL.
30042         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30043         m4/mmap-anon.m4.
30044         (Depends-on): Add getpagesize.
30045         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30046         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30047         m4/mmap-anon.m4.
30048         (Depends-on): Add getpagesize.
30049         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30050         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30051         m4/mmap-anon.m4.
30052         (Depends-on): Add getpagesize.
30053         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30054         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30055         m4/mmap-anon.m4.
30056         (Depends-on): Add getpagesize.
30057         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30058         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30059         m4/mmap-anon.m4.
30060         (Depends-on): Add getpagesize.
30061         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30062
30063 2009-05-12  Bruno Haible  <bruno@clisp.org>
30064
30065         Tests for module 'alignof'.
30066         * modules/alignof-tests: New file.
30067         * tests/test-alignof.c: New file.
30068
30069 2009-05-12  Bruno Haible  <bruno@clisp.org>
30070
30071         Fix alignof macro.
30072         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30073         vendor compilers that are always correct.
30074
30075 2009-05-12  Bruno Haible  <bruno@clisp.org>
30076
30077         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30078         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30079         not whether its fully works.
30080
30081 2009-05-12  Bruno Haible  <bruno@clisp.org>
30082
30083         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30084
30085 2009-05-12  Jim Meyering  <meyering@redhat.com>
30086
30087         * top/maint.mk: Adjust backslash alignment.
30088
30089 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30090
30091         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30092
30093 2009-05-11  Eric Blake  <ebb9@byu.net>
30094
30095         argp: avoid undefined behavior
30096         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30097         macros.
30098
30099 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30100
30101         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30102         user.name to prevent git commit from complaining.
30103
30104 2009-05-10  Bruno Haible  <bruno@clisp.org>
30105
30106         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30107         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30108         it rewrites every file name only once.
30109         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30110
30111 2009-05-08  Bruno Haible  <bruno@clisp.org>
30112
30113         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30114         instead of 'max'.
30115
30116 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30117
30118         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30119         sockaddr_storage test.
30120
30121 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30122
30123         * modules/sys_socket (Makefile.am): Substitute
30124         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30125         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30126         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30127         * tests/test-sys_socket.c: Check sockaddr_storage.
30128
30129 2009-05-08  Bruno Haible  <bruno@clisp.org>
30130
30131         New module 'alignof'.
30132         * lib/alignof.h: New file.
30133         * modules/alignof: New file.
30134
30135 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30136             Bruno Haible  <bruno@clisp.org>
30137
30138         Fix test-file-has-acl on FreeBSD.
30139         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30140         mask is implicitly added.
30141         * tests/test-file-has-acl.c: Include <signal.h>.
30142         (main): Terminate the test after 5 seconds.
30143         * modules/acl-tests (configure.ac): Check for alarm function.
30144
30145 2009-05-04  Bruno Haible  <bruno@clisp.org>
30146
30147         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30148         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30149         * modules/errno (configure.ac): Drop AC_REQUIRE.
30150         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30151         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30152
30153 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30154
30155         * modules/glob-tests: New module.
30156         * tests/test-glob.c: Add.
30157
30158 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30159
30160         * modules/fnmatch-tests: New module.
30161         * tests/test-fnmatch.c: Add.
30162
30163 2009-05-04  Eric Blake  <ebb9@byu.net>
30164
30165         maint: make the new no-submodule-changes rule VPATH-safe
30166         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30167
30168 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30169             Bruno Haible  <bruno@clisp.org>
30170
30171         acl: Fix infinite loop on FreeBSD.
30172         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30173         of return value from acl_get_entry.
30174         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30175         Likewise.
30176
30177 2009-05-03  Bruno Haible  <bruno@clisp.org>
30178
30179         * lib/acl-internal.h (acl_entries): Clarify return value.
30180         * lib/acl_entries.c (acl_entries): Likewise.
30181
30182 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30183
30184         Bug fix in acl module.
30185         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30186
30187 2009-05-03  Bruno Haible  <bruno@clisp.org>
30188
30189         Create gperf-generated file in the source dir, not in the build dir.
30190         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30191         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30192         * modules/unicase/locale-language (unicase/locale-languages.h):
30193         Likewise.
30194         * modules/unicase/special-casing (unicase/special-casing-table.h):
30195         Likewise.
30196         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30197         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30198         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30199         Reported by Ralf Wildenhues.
30200
30201 2009-05-03  Bruno Haible  <bruno@clisp.org>
30202
30203         * modules/fnmatch (Description, configure.ac): Taken from
30204         fnmatch-posix.
30205         * modules/fnmatch-posix: Turn into a symbolic reference to the
30206         'fnmatch' module, and deprecate.
30207         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30208
30209 2009-05-03  Bruno Haible  <bruno@clisp.org>
30210
30211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30212         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30213         Reported by Ralf Wildenhues.
30214
30215 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30216
30217         * m4/fnmatch.m4: Fix fnmatch re-define.
30218
30219 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30220
30221         priv-set: new module and tests; adapt write-any-file
30222         * lib/priv-set.c: New file.
30223         * lib/priv-set.h: New file.
30224         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30225         * lib/write-any-file.c: Simplify by using priv-set module.
30226         * m4/priv-set.m4: New file.
30227         * modules/priv-set: New file.
30228         * modules/unlinkdir: Add dependency on priv-set module.
30229         * modules/write-any-file: Likewise.
30230
30231         Tests for module 'priv-set'.
30232         * modules/priv-set-tests: New file.
30233         * tests/test-priv-set.c: New file.
30234
30235 2009-05-03  Jim Meyering  <meyering@redhat.com>
30236             Bruno Haible  <bruno@clisp.org>
30237
30238         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30239         use the converted UTF-8 variant of the name instead.
30240
30241 2009-05-03  Jim Meyering  <meyering@redhat.com>
30242
30243         tests: tighten some getdate tests
30244         * tests/test-getdate.c (main): Tighten tests: require equality,
30245         not just greater than.  Set TZ envvar to UTC0.
30246
30247 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30248
30249         getdate: correctly interpret "next monday" when run on a Monday
30250         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30251         that e.g., "next tues" (when run on a tuesday) results in a date
30252         that is one week in the future, and not today's date.
30253         I.e., add a week when the wday is the same as the current one.
30254         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30255         and earlier by Martin Bernreuther and Jan Minář.
30256         * tests/test-getdate.c (main): Check that "next DAY" is always in
30257         the future and that "last DAY" is always in the past.
30258
30259 2009-05-02  Jim Meyering  <meyering@redhat.com>
30260
30261         build: ensure that a release build fails when a submodule is unclean
30262         * top/maint.mk (no-submodule-changes): New rule.
30263         (alpha beta major): Depend on it.
30264
30265 2009-05-02  Bruno Haible  <bruno@clisp.org>
30266
30267         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30268         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30269         shell variable gl_fnmatch_required to detect which variant is
30270         requested.
30271         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30272         gl_FUNC_FNMATCH_POSIX.
30273         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30274         exclude fnmatch-posix.
30275
30276 2009-05-02  Bruno Haible  <bruno@clisp.org>
30277
30278         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30279         * modules/mbsrtowcs (License): Change to LGPLv2+.
30280         * modules/strnlen1 (License): Likewise.
30281         Reported by Simon Josefsson.
30282
30283 2009-05-02  Bruno Haible  <bruno@clisp.org>
30284
30285         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30286         "cross".
30287         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30288         gnulib-tool was called with option --source-base=lib.
30289
30290 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30291
30292         Use automake *-local hooks without commands, for extensibility.
30293         * modules/localcharset (Makefile.am): Rename install-exec-local
30294         rule to install-exec-localcharset, and make it a prerequisite of
30295         install-exec-local.  Likewise, rename the uninstall-local rule to
30296         uninstall-localcharset, and make it a prerequisite of the former.
30297
30298 2009-05-01  Bruno Haible  <bruno@clisp.org>
30299
30300         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30301         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30302         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30304         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30305         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30306         m4/locale-zh.m4, m4/codeset.m4.
30307
30308         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30309         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30310         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30311         m4/locale-zh.m4.
30312
30313         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30314         REPLACE_WCRTOMB if mbstate_t must be replaced.
30315         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30316         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30317
30318 2009-05-01  Bruno Haible  <bruno@clisp.org>
30319
30320         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30321         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30322         dngettext, dcngettext, textdomain, bindtextdomain,
30323         bind_textdomain_codeset): Undefine before redefining.
30324
30325 2009-04-30  Bruno Haible  <bruno@clisp.org>
30326
30327         Fix bug introduced on 2009-04-25.
30328         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30329         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30330         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30331         is defined.
30332         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30333         is defined.
30334         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30335         is defined.
30336         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30337
30338 2009-04-28  Bruno Haible  <bruno@clisp.org>
30339
30340         Comment tweaks.
30341         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30342         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30343         * lib/unicase.h (u*_casexfrm): Likewise.
30344         Reported by Paolo Bonzini.
30345
30346 2009-04-28  Bruno Haible  <bruno@clisp.org>
30347
30348         Fix a compilation error.
30349         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30350         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30351         Reported by Jim Meyering.
30352
30353 2009-04-27  Bruno Haible  <bruno@clisp.org>
30354
30355         New module 'libunistring'.
30356         * modules/libunistring: New file.
30357         * m4/libunistring.m4: New file.
30358         * MODULES.html.sh (Unicode string functions): Add it.
30359
30360 2009-04-27  Eric Blake  <ebb9@byu.net>
30361
30362         maint.mk: allow package-specific header to provide <config.h>
30363         * top/maint.mk (sc_require_config_h): New variable.
30364         (sc_require_config_h, sc_require_config_h_first): Use it.
30365
30366 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30367
30368         * top/maint.mk (sc_avoid_if_before_free): Except
30369         useless-if-before-free script.
30370
30371 2009-04-27  Eric Blake  <ebb9@byu.net>
30372
30373         maintainer-makefile: depend on all required helper scripts
30374         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30375         useless-if-before-free.
30376         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30377         version, rather than assuming gnulib checkout is available.
30378         Reported by Simen Josefsson.
30379
30380 2009-04-26  Bruno Haible  <bruno@clisp.org>
30381
30382         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30383         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30384         "../" or "..".
30385
30386 2009-04-26  Bruno Haible  <bruno@clisp.org>
30387
30388         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30389         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30390         AC_LIB_HAVE_LINKFLAGS.
30391
30392 2009-04-26  Bruno Haible  <bruno@clisp.org>
30393
30394         Simplify calling convention of u*_conv_from_encoding.
30395         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30396         u32_conv_from_encoding): Expect a resultbuf argument and return the
30397         result directly as a pointer.
30398         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30399         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30400         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30401         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30402         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30403         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30404         Update.
30405         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30406         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30407         * lib/vasnprintf.c (VASNPRINTF): Update.
30408         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30409         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30410         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30411         * NEWS: Mention the change.
30412
30413 2009-04-26  Bruno Haible  <bruno@clisp.org>
30414
30415         Simplify calling convention of u*_conv_to_encoding.
30416         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30417         u32_conv_to_encoding): Expect a resultbuf argument and return the
30418         result directly as a pointer.
30419         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30420         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30421         freeing scaled_offsets if mem_iconveha failed.
30422         * lib/unicase/u-casexfrm.h (FUNC): Update.
30423         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30424         * lib/vasnprintf.c (VASNPRINTF): Update.
30425         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30426         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30427         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30428         * NEWS: Mention the change.
30429
30430 2009-04-26  Bruno Haible  <bruno@clisp.org>
30431
30432         Avoid test failures on AIX and OSF/1.
30433         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30434         malloc(0).
30435         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30436         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30437         Likewise.
30438         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30439         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30440         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30441         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30442         * doc/posix-functions/malloc.texi: Document the portability problem
30443         related to malloc(0).
30444
30445 2009-04-26  Bruno Haible  <bruno@clisp.org>
30446
30447         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30448         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30449         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30450
30451 2009-04-25  Bruno Haible  <bruno@clisp.org>
30452
30453         Avoid link error when creating a namespace clean library.
30454         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30455         as macro with arguments if already defined as an alias.
30456         * lib/signbitf.c (gl_signbitf): Don't undefine.
30457         * lib/signbitd.c (gl_signbitd): Don't undefine.
30458         * lib/signbitl.c (gl_signbitl): Don't undefine.
30459
30460 2009-04-25  Jim Meyering  <meyering@redhat.com>
30461
30462         vc-list-files: fix another quoting bug
30463         * build-aux/vc-list-files: Avoid sed backslash expansion
30464         of pathological directory names.
30465
30466 2009-04-25  Eric Blake  <ebb9@byu.net>
30467
30468         vc-list-files: fix shell quoting error
30469         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30470         timestamp.
30471
30472 2009-04-25  Jim Meyering  <meyering@redhat.com>
30473
30474         vc-list-files: restore lost functionality with subdir argument
30475         * build-aux/vc-list-files: When given a non-"." sub-directory
30476         argument, substitute the $dir/ prefix back onto each resulting name.
30477         Otherwise, coreutils' root_tests check would fail.
30478
30479 2009-04-24  Eric Blake  <ebb9@byu.net>
30480
30481         vc-list-files: ignore git symlinks
30482         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30483         than ls-files, to ignore git symlinks.
30484
30485         maint.mk: import improvements from m4
30486         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30487         (move_if_change): Delete unused macro.
30488         (news-date-check, vc-diff-check): Support VPATH builds.
30489         (announcement): Likewise.  Split --bootstrap-tools list...
30490         (boostrap-tools): ...into separate list, which can be overridden
30491         in cfg.mk.
30492         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30493         requiring dependency on useless-if-before-free module.
30494         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30495         Support VPATH builds.
30496
30497 2009-04-24  Jim Meyering  <meyering@redhat.com>
30498
30499         maint.mk: remove coreutils-specific rules and variables
30500         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30501         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30502         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30503
30504         maint.mk: remove obsolete rule
30505         * top/maint.mk (rel-check): Remove rule.
30506         (WGET, WGETFLAGS): Remove now-unused variables.
30507
30508 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30509
30510         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30511         consistency.
30512
30513         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30514         '$(PATH_SEPARATOR)' instead of ':'.
30515
30516 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30517
30518         * lib/getopt1.c (main): Use 'const' for static array.
30519
30520 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30521
30522         * top/maint.mk: Sync with coreutils.
30523         * NEWS: Explain incompatibilities.
30524
30525 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30526             Bruno Haible  <bruno@clisp.org>
30527
30528         Fix cross-compilation results.
30529         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30530         statement, as third argument of AC_TRY_RUN.
30531         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30532         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30533         Likewise.
30534         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30535         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30536         Likewise.
30537         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30538         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30539         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30540
30541 2009-04-20  Bruno Haible  <bruno@clisp.org>
30542
30543         Avoid test failure on mingw.
30544         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30545
30546 2009-04-20  Bruno Haible  <bruno@clisp.org>
30547
30548         Avoid compilation error on mingw.
30549         * modules/localename-tests (Depends-on): Add locale.
30550
30551 2009-04-19  Bruno Haible  <bruno@clisp.org>
30552
30553         Support for building a shared library on Windows platforms.
30554         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30555         (main): Test the presence of UNINORM_NFC here.
30556         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30557         (main): Test the presence of UNINORM_NFD here.
30558         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30559         (main): Test the presence of UNINORM_NFKC here.
30560         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30561         (main): Test the presence of UNINORM_NFKD here.
30562
30563 2009-04-19  Bruno Haible  <bruno@clisp.org>
30564
30565         Avoid a compiler warning.
30566         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30567         Change type of variable 'sequence'.
30568
30569 2009-04-19  Bruno Haible  <bruno@clisp.org>
30570
30571         * modules/configmake (Makefile.am): When the contents of configmake.h
30572         does not change, arrange to preserve its modification time.
30573
30574 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30575
30576         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30577         gettext domain.
30578
30579 2009-04-16  Jim Meyering  <meyering@redhat.com>
30580
30581         useless-if-before-free: improve conversion code
30582         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30583         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30584
30585 2009-04-14  Bruno Haible  <bruno@clisp.org>
30586
30587         * modules/fcntl (Depends-on): Add extensions.
30588         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30589
30590 2009-04-12  Ben Pfaff  <blp@gnu.org>
30591
30592         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30593         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30594
30595 2009-03-20  Ben Pfaff  <blp@gnu.org>
30596
30597         Make rename replace existing destinations on Windows.
30598         * m4/rename.m4: Add test for Mingw.
30599         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30600         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30601         * doc/posix-functions/rename.texi: Document.
30602
30603 2009-04-10  Bruno Haible  <bruno@clisp.org>
30604
30605         New include file "iconveh.h".
30606         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30607         * lib/striconveh.h: Include it.
30608         (enum iconv_ilseq_handler): Remove definition.
30609         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30610         striconveh.h.
30611         * lib/striconveha.c: Include striconveh.h.
30612         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30613         * modules/striconveh (Files): Add lib/iconveh.h.
30614         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30615         lib/striconveh.h.
30616
30617 2009-04-10  Bruno Haible  <bruno@clisp.org>
30618
30619         * lib/uniconv.h: Update comment.
30620
30621 2009-04-10  Bruno Haible  <bruno@clisp.org>
30622
30623         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30624         always.
30625         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30626         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30627         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30628         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30629         "unistring-notinline.h", so that the function gets defined always.
30630         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30631         * lib/unistr/u8-uctomb.c: Likewise.
30632         * lib/unistr/u16-mbtouc.c: Likewise.
30633         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30634         * lib/unistr/u16-uctomb.c: Likewise.
30635         * lib/unistr/u32-mbtouc.c: Likewise.
30636         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30637         * lib/unistr/u32-uctomb.c: Likewise.
30638
30639 2009-04-10  Bruno Haible  <bruno@clisp.org>
30640
30641         Mark 'utime' obsolete.
30642         * modules/utime (Status, Notice): New sections.
30643         Suggested by Jim Meyering.
30644
30645         Fix cross-compile guess for utime test.
30646         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30647         autoconf.
30648         * doc/posix-functions/utime.texi: Give more precisions.
30649         Reported by Jan <ipif@ymail.com>.
30650
30651 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30652
30653         filevercmp: correct today's change
30654         * lib/filevercmp.c: Also handle coreutils' test inputs.
30655         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30656
30657         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30658         for reporting it.
30659         * lib/filevercmp.c: Special handle for "", "." and "..".
30660         * tests/test-filevercmp.c: Enlarge the set suite.
30661
30662 2009-04-07  Jim Meyering  <meyering@redhat.com>
30663
30664         useless-if-before-free: show how to remove braced useless free, too
30665         * build-aux/useless-if-before-free: still only in a comment, though.
30666
30667 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30668
30669         maint.mk: import changes to syntax-check macros from coreutils
30670         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30671         Use them in the relevant macros.
30672
30673 2009-04-06  Bruno Haible  <bruno@clisp.org>
30674
30675         Fix unportable use of bit-fields.
30676         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30677         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30678         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30679
30680 2009-04-06  Bruno Haible  <bruno@clisp.org>
30681
30682         Avoid test failures on AIX and OSF/1.
30683         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30684         that malloc(0) = NULL.
30685         * tests/unicase/test-u8-tolower.c (check): Likewise.
30686         * tests/unicase/test-u8-totitle.c (check): Likewise.
30687         * tests/unicase/test-u8-toupper.c (check): Likewise.
30688         * tests/unicase/test-u16-casefold.c (check): Likewise.
30689         * tests/unicase/test-u16-tolower.c (check): Likewise.
30690         * tests/unicase/test-u16-totitle.c (check): Likewise.
30691         * tests/unicase/test-u16-toupper.c (check): Likewise.
30692         * tests/unicase/test-u32-casefold.c (check): Likewise.
30693         * tests/unicase/test-u32-tolower.c (check): Likewise.
30694         * tests/unicase/test-u32-totitle.c (check): Likewise.
30695         * tests/unicase/test-u32-toupper.c (check): Likewise.
30696         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30697         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30698         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30699         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30700         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30701         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30702         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30703         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30704         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30705         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30706         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30707         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30708
30709 2009-04-05  Bruno Haible  <bruno@clisp.org>
30710
30711         Work around an autoconf limitation.
30712         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30713         comment line if it would be longer than 3 KB.
30714
30715 2009-04-05  Bruno Haible  <bruno@clisp.org>
30716
30717         Avoid test failure with libiconv-1.13.
30718         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30719         of the expected test results.
30720
30721 2009-04-05  Bruno Haible  <bruno@clisp.org>
30722
30723         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30724         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30725         that it should be installed.
30726
30727 2009-04-05  Bruno Haible  <bruno@clisp.org>
30728
30729         * gnulib-tool: New option --copy-file.
30730         (func_usage): Document it.
30731         (func_dest_tmpfilename): Moved out of func_import.
30732         (func_add_file, func_update_file): New functions, extracted from
30733         func_import.
30734         (func_import): Update.
30735
30736 2009-04-05  Karl Berry  <karl@gnu.org>
30737
30738         * README: prominently mention gnulib-tool.
30739         Rearrange sections so getting the code is near the top.
30740
30741 2009-04-05  Bruno Haible  <bruno@clisp.org>
30742
30743         * lib/unicase.h: Mention u*_cmp2.
30744         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30745         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30746         * lib/unicase/ulc-casecmp.c: Likewise.
30747         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30748         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30749         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30750         unistr/u8-cmp.
30751         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30752         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30753         unistr/u16-cmp.
30754         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30755         unistr/u32-cmp.
30756
30757         * lib/uninorm.h: Mention u*_cmp2.
30758         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30759         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30760         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30761         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30762         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30763         unistr/u8-cmp.
30764         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30765         unistr/u16-cmp.
30766         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30767         unistr/u32-cmp.
30768
30769         New module 'unistr/u32-cmp2'.
30770         * lib/unistr/u32-cmp2.c: New file.
30771         * modules/unistr/u32-cmp2: New file.
30772
30773         New module 'unistr/u16-cmp2'.
30774         * lib/unistr/u16-cmp2.c: New file.
30775         * modules/unistr/u16-cmp2: New file.
30776
30777         New module 'unistr/u8-cmp2'.
30778         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30779         * lib/unistr/u8-cmp2.c: New file.
30780         * lib/unistr/u-cmp2.h: New file.
30781         * modules/unistr/u8-cmp2: New file.
30782
30783 2009-04-05  Bruno Haible  <bruno@clisp.org>
30784
30785         * lib/unictype.h (uc_property_is_valid): New macro.
30786         * tests/unictype/test-pr_byname.c (main): Use it.
30787
30788         * lib/unistr.h: Doc fixes.
30789         * lib/uniconv.h: Doc fixes.
30790         * lib/unictype.h: Doc fixes.
30791
30792 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30793
30794         Port coreutils 7.2 to Solaris 8.
30795
30796         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30797         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30798         for Solaris 8.  This is a bit of a hack, as it means it's the
30799         caller's responsibility to add -lnsl if needed, but most likely it
30800         won't be needed since only getaddrinfo uses this and getaddrinfo
30801         isn't needed on Solaris 8.
30802
30803         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30804         problem to Solaris 8 encountered with coreutils 7.2, which
30805         resulted in a message "fnmatch.c:292: warning: passing argument 4
30806         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30807         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30808
30809 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30810
30811         * m4/ld-version-script.m4: Add FIXME comment.
30812
30813 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30814
30815         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30816         SOVERSION variable.
30817
30818 2009-04-02  Bruno Haible  <bruno@clisp.org>
30819
30820         * Makefile (info, html, dvi, pdf): Combine the rules.
30821         Suggested by Jim Meyering.
30822
30823 2009-04-01  Bruno Haible  <bruno@clisp.org>
30824
30825         * Makefile (info, html, dvi, pdf): New targets.
30826         Reported by Reuben Thomas <rrt@sc3d.org>.
30827
30828 2009-04-01  Bruno Haible  <bruno@clisp.org>
30829
30830         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30831         can be put into PATH.
30832         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30833
30834 2009-04-01  Bruno Haible  <bruno@clisp.org>
30835
30836         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30837
30838 2009-04-01  Bruno Haible  <bruno@clisp.org>
30839
30840         Rename module 'visibility'.
30841         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30842         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30843         * doc/gnulib.texi: Update.
30844         * MODULES.html.sh (Misc): Update.
30845         * NEWS: Mention the change.
30846
30847 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30848
30849         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30850         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30851         Eric Blake <ebb9@byu.net> for review.
30852         * MODULES.html.sh: Add lib-msvc-compat.
30853         * doc/gnulib.texi: Link to new section.
30854         * m4/ld-output-def.m4: New file.
30855         * doc/ld-output-def.texi: New file.
30856
30857 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30858
30859         Rename ld-version-script to lib-symbol-versions.  Suggested by
30860         Bruno Haible <bruno@clisp.org>.
30861         * modules/ld-version-script: Renamed to lib-symbol-versions.
30862         * doc/ld-version-script.texi: Fix module name.
30863         * MODULES.html.sh: Add lib-symbol-versions.
30864
30865 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30866
30867         * modules/u64-tests: New file.
30868         * tests/test-u64.c: New file.
30869
30870 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30871
30872         * MODULES.html.sh: Mention u64.
30873         * modules/u64: New module.
30874         * modules/crypto/sha512: Depend on u64 module instead of providing
30875         u64.h.
30876
30877 2009-03-27  Eric Blake  <ebb9@byu.net>
30878
30879         test-strerror: make debugging EAI_SYSTEM easier
30880         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30881         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30882         failure was EAI_SYSTEM.
30883
30884 2009-03-25  Bruno Haible  <bruno@clisp.org>
30885
30886         Fix a problem with --enable-relocatable on Solaris 7.
30887         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30888         since 2008-02-24.
30889
30890 2009-03-25  Eric Blake  <ebb9@byu.net>
30891
30892         test-sockets: avoid gcc warning
30893         * tests/test-sockets.c (main): Silence compiler warning.
30894
30895 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30896
30897         New modules nproc, pthread, contributed by Glen Lenker.
30898
30899         * MODULES.html.sh: Add pthread, nproc.
30900         * lib/nproc.c: New file.
30901         * lib/nproc.h: New file.
30902         * lib/pthread.in.h: New file.
30903         * m4/pthread.m4: New file.
30904         * modules/nproc: New file.
30905         * modules/pthread: New file.
30906
30907 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30908
30909         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30910         New variable.
30911
30912 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30913
30914         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30915         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30916         * tests/test-filevercmp.c: Add tests for backup suffixes.
30917
30918 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30919
30920         * modules/stdlib (Depends-on): Add stdint, needed when defining
30921         struct random_data on, for example, HP-UX 10.20.  Reported by
30922         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30923
30924 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30925
30926         * lib/readline.c (readline): Call fflush on stdout after printing
30927         prompt.
30928
30929 2009-03-20  Bruno Haible  <bruno@clisp.org>
30930
30931         Remove dependency from 'close' module to -lws2_32 on native Windows.
30932         * lib/close-hook.h: New file.
30933         * lib/close-hook.c: New file.
30934         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30935         w32sock.h.
30936         (_gl_close_fd_maybe_socket): Remove function.
30937         (rpl_close): Invoke execute_all_close_hooks instead of
30938         _gl_close_fd_maybe_socket.
30939         * lib/sockets.c: Include close-hook.h, w32sock.h.
30940         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30941         (close_sockets_hook): New variable.
30942         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30943         (gl_sockets_cleanup): Unregister it.
30944         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30945         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30946         * modules/close-hook: New file.
30947         * modules/close (Files): Remove lib/w32sock.h.
30948         (Depends-on): Add close-hook.
30949         (Link): Remove section.
30950         * modules/sockets (Files): Add lib/w32sock.h.
30951         (Depends-on): Add close-hook.
30952         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30953         invocation.
30954         * NEWS: Mention that LIB_CLOSE is gone.
30955
30956 2009-03-23  Eric Blake  <ebb9@byu.net>
30957
30958         signal-tests: test previous patch
30959         * tests/test-signal.c: New file.
30960         * modules/signal-tests: Likewise.
30961
30962         signal.h: always support 'volatile sig_atomic_t'
30963         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30964         (gl_SIGNAL_H_DEFAULTS): Add a default.
30965         * modules/signal (Makefile.am): Substitute if needed.
30966         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30967         users can blindly add volatile.
30968         * doc/posix-headers/signal.texi (signal.h): Document it.
30969         Reported by Matthew Woehlke.
30970
30971 2009-03-23  Jim Meyering  <meyering@redhat.com>
30972
30973         pathmax: PATH_MAX: use pathconf only when available
30974         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30975         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30976         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30977         This avoids a link failure in a PSP cross-compilation environment
30978         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30979
30980         * lib/vasnprintf.c (divide): Fix typo in comment.
30981
30982 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30983
30984         * gnulib-tool (func_filter_filelist): Fix comment.
30985
30986 2009-03-20  Bruno Haible  <bruno@clisp.org>
30987
30988         Make sockets.h self-contained.
30989         * lib/sockets.c: Include sockets.h first.
30990         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30991
30992 2009-03-19  Eric Blake  <ebb9@byu.net>
30993
30994         doc: mention more functions added in cygwin 1.7.0
30995         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30996         addition.
30997         * doc/posix-functions/log2f.texi: Likewise.
30998
30999 2009-03-19  Jim Meyering  <meyering@redhat.com>
31000
31001         fsusage: avoid syntax error due to statement-before-declaration
31002         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31003         after all declarations.  Reported by Matthew Woehlke in
31004         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31005
31006 2009-03-18  Eric Blake  <ebb9@byu.net>
31007
31008         build-aux/compile: sync from automake
31009         * build-aux/compile: New file, from automake.
31010         * config/srclist.txt: Mention build-aux/compile.
31011
31012 2009-03-17  Bruno Haible  <bruno@clisp.org>
31013
31014         * lib/git-merge-changelog.c: Fix typo in comment.
31015         Reported by Reuben Thomas <rrt@sc3d.org>.
31016
31017 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31018
31019         * m4/regex.m4: update and improve help for
31020         --without-included-regex.
31021
31022 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31023
31024         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31025         failure on missing include files.
31026
31027 2009-03-17  Eric Blake  <ebb9@byu.net>
31028
31029         doc: mention more functions added in cygwin 1.7.0
31030         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31031         addition.
31032         * doc/posix-functions/fwscanf.texi: Likewise.
31033         * doc/posix-functions/swprintf.texi: Likewise.
31034         * doc/posix-functions/swscanf.texi: Likewise.
31035         * doc/posix-functions/vfwprintf.texi: Likewise.
31036         * doc/posix-functions/vfwscanf.texi: Likewise.
31037         * doc/posix-functions/vswprintf.texi: Likewise.
31038         * doc/posix-functions/vswscanf.texi: Likewise.
31039         * doc/posix-functions/vwprintf.texi: Likewise.
31040         * doc/posix-functions/vwscanf.texi: Likewise.
31041         * doc/posix-functions/wcscasecmp.texi: Likewise.
31042         * doc/posix-functions/wcsdup.texi: Likewise.
31043         * doc/posix-functions/wcsftime.texi: Likewise.
31044         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31045         * doc/posix-functions/wprintf.texi: Likewise.
31046         * doc/posix-functions/wscanf.texi: Likewise.
31047         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31048
31049 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31050
31051         maint.mk: really add $(AM_MAKEFLAGS)
31052         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31053         was inadvertently omitted in the last commit.
31054         Spotted by Bruno Haible.
31055
31056         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31057         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31058         $(AM_MAKEFLAGS)' rather than plain `make'.
31059
31060         gnulib-tool: execute $MAKE not make
31061         * gnulib-tool: Default $MAKE to 'make'.
31062         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31063         than make.  Initialize $MAKE in the do-autobuild script.
31064
31065         gnulib-tool: use $MAKE not make in generated files
31066         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31067         make, in generated files.  Initialize $MAKE in the do-autobuild
31068         script.
31069
31070         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31071
31072         GNUmakefile: disable parallelism only for multiple, recursive targets
31073         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31074         additions in the Makefile.
31075         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31076         by Automake.
31077         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31078         are listed on the command line and at least one of them is
31079         listed in $(ALL_RECURSIVE_TARGETS).
31080
31081 2009-03-14  Bruno Haible  <bruno@clisp.org>
31082
31083         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31084         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31085         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31086         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31087         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31088         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31089         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31090         unistr/u8-uctomb.
31091         * modules/unistr/u8-strchr (Depends-on): Likewise.
31092         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31093         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31094         unistr/u16-uctomb.
31095         * modules/unistr/u16-strchr (Depends-on): Likewise.
31096         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31097
31098 2009-03-12  Bruno Haible  <bruno@clisp.org>
31099
31100         Work around select() bug on Interix 3.5.
31101         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31102         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31103         * m4/select.m4: New file.
31104         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31105         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31106         * modules/select (Files): Add m4/select.m4.
31107         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31108         * modules/nanosleep (Depends-on): Add select.
31109         * modules/poll (Depends-on): Likewise.
31110         * doc/posix-functions/select.texi: Mention the Interix bug.
31111         Reported by Markus Duft <mduft@gentoo.org>.
31112
31113         * lib/select.c: Renamed from lib/winsock-select.c.
31114         * modules/select (Files): Add lib/select.c, remove
31115         lib/winsock-select.c.
31116         (configure.ac): Update.
31117
31118 2009-03-12  Jim Meyering  <meyering@redhat.com>
31119
31120         avoid gcc warnings about unused macro definitions
31121         * lib/readtokens.c (STREQ): Remove unused definition.
31122         * lib/xmalloc.c (SIZE_MAX): Likewise.
31123         * lib/openat-die.c (N_): Likewise.
31124         * lib/mountlist.c (SIZE_MAX): Remove definition.
31125         Instead, include <stdint.h>.
31126         * lib/readutmp.c: Likewise.
31127         * modules/readutmp (Depends-on): Add stdint.
31128         * modules/mountlist (Depends-on): Add stdint.
31129         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31130
31131 2009-03-10  Bruno Haible  <bruno@clisp.org>
31132
31133         Tests for module 'mbmemcasecoll'.
31134         * modules/mbmemcasecoll-tests: New file.
31135         * tests/test-mbmemcasecoll1.sh: New file.
31136         * tests/test-mbmemcasecoll2.sh: New file.
31137         * tests/test-mbmemcasecoll3.sh: New file.
31138         * tests/test-mbmemcasecoll.c: New file.
31139
31140         New module 'mbmemcasecoll'.
31141         * lib/mbmemcasecoll.h: New file.
31142         * lib/mbmemcasecoll.c: New file.
31143         * modules/mbmemcasecoll: New file.
31144
31145         * tests/test-mbmemcasecmp.h: New file, extracted from
31146         tests/test-mbmemcasecmp.c.
31147         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31148         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31149         (main): Update.
31150         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31151
31152 2009-03-09  Bruno Haible  <bruno@clisp.org>
31153
31154         Tests for module 'mbmemcasecmp'.
31155         * modules/mbmemcasecmp-tests: New file.
31156         * tests/test-mbmemcasecmp1.sh: New file.
31157         * tests/test-mbmemcasecmp2.sh: New file.
31158         * tests/test-mbmemcasecmp3.sh: New file.
31159         * tests/test-mbmemcasecmp.c: New file.
31160
31161         New module 'mbmemcasecmp'.
31162         * lib/mbmemcasecmp.h: New file.
31163         * lib/mbmemcasecmp.c: New file.
31164         * modules/mbmemcasecmp: New file.
31165
31166 2009-03-09  Bruno Haible  <bruno@clisp.org>
31167
31168         Tests for module 'unicase/ulc-casecoll'.
31169         * modules/unicase/ulc-casecoll-tests: New file.
31170         * tests/unicase/test-ulc-casecoll1.sh: New file.
31171         * tests/unicase/test-ulc-casecoll2.sh: New file.
31172         * tests/unicase/test-ulc-casecoll.c: New file.
31173
31174         New module 'unicase/ulc-casecoll'.
31175         * lib/unicase.h (ulc_casecoll): New declaration.
31176         * lib/unicase/ulc-casecoll.c: New file.
31177         * modules/unicase/ulc-casecoll: New file.
31178
31179         New module 'unicase/ulc-casexfrm'.
31180         * lib/unicase.h (ulc_casexfrm): New declaration.
31181         * lib/unicase/ulc-casexfrm.c: New file.
31182         * modules/unicase/ulc-casexfrm: New file.
31183
31184 2009-03-09  Bruno Haible  <bruno@clisp.org>
31185
31186         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31187         invocations.
31188
31189         * m4/mbscasecmp.m4: Remove file.
31190         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31191         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31192
31193         * m4/mbscasestr.m4: Remove file.
31194         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31195         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31196
31197         * m4/mbschr.m4: Remove file.
31198         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31199         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31200
31201         * m4/mbscspn.m4: Remove file.
31202         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31203         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31204
31205         * m4/mbslen.m4: Remove file.
31206         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31207         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31208
31209         * m4/mbsncasecmp.m4: Remove file.
31210         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31211         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31212
31213         * m4/mbsnlen.m4: Remove file.
31214         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31215         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31216
31217         * m4/mbspbrk.m4: Remove file.
31218         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31219         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31220
31221         * m4/mbspcasecmp.m4: Remove file.
31222         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31223         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31224
31225         * m4/mbsrchr.m4: Remove file.
31226         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31227         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31228
31229         * m4/mbssep.m4: Remove file.
31230         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31231         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31232
31233         * m4/mbsspn.m4: Remove file.
31234         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31235         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31236
31237         * m4/mbsstr.m4: Remove file.
31238         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31239         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31240
31241         * m4/mbstok_r.m4: Remove file.
31242         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31243         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31244
31245         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31246
31247         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31248         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31249
31250         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31251
31252 2009-03-08  Bruno Haible  <bruno@clisp.org>
31253
31254         Tests for module 'unicase/ulc-casecmp'.
31255         * modules/unicase/ulc-casecmp-tests: New file.
31256         * tests/unicase/test-ulc-casecmp1.sh: New file.
31257         * tests/unicase/test-ulc-casecmp2.sh: New file.
31258         * tests/unicase/test-ulc-casecmp.c: New file.
31259
31260         New module 'unicase/ulc-casecmp'.
31261         * lib/unicase.h (ulc_casecmp): New declaration.
31262         * lib/unicase/ulc-casecmp.c: New file.
31263         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31264         'const SRC_UNIT *'.
31265         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31266         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31267         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31268         * modules/unicase/ulc-casecmp: New file.
31269
31270         Tests for module 'unicase/u32-is-cased'.
31271         * modules/unicase/u32-is-cased-tests: New file.
31272         * tests/unicase/test-u32-is-cased.c: New file.
31273
31274         Tests for module 'unicase/u16-is-cased'.
31275         * modules/unicase/u16-is-cased-tests: New file.
31276         * tests/unicase/test-u16-is-cased.c: New file.
31277
31278         Tests for module 'unicase/u8-is-cased'.
31279         * modules/unicase/u8-is-cased-tests: New file.
31280         * tests/unicase/test-u8-is-cased.c: New file.
31281         * tests/unicase/test-is-cased.h: New file.
31282
31283         New module 'unicase/u32-is-cased'.
31284         * lib/unicase/u32-is-cased.c: New file.
31285         * modules/unicase/u32-is-cased: New file.
31286
31287         New module 'unicase/u16-is-cased'.
31288         * lib/unicase/u16-is-cased.c: New file.
31289         * modules/unicase/u16-is-cased: New file.
31290
31291         New module 'unicase/u8-is-cased'.
31292         * lib/unicase/u8-is-cased.c: New file.
31293         * lib/unicase/u-is-cased.h: New file.
31294         * modules/unicase/u8-is-cased: New file.
31295
31296         Tests for module 'unicase/u32-is-casefolded'.
31297         * modules/unicase/u32-is-casefolded-tests: New file.
31298         * tests/unicase/test-u32-is-casefolded.c: New file.
31299
31300         Tests for module 'unicase/u16-is-casefolded'.
31301         * modules/unicase/u16-is-casefolded-tests: New file.
31302         * tests/unicase/test-u16-is-casefolded.c: New file.
31303
31304         Tests for module 'unicase/u8-is-casefolded'.
31305         * modules/unicase/u8-is-casefolded-tests: New file.
31306         * tests/unicase/test-u8-is-casefolded.c: New file.
31307         * tests/unicase/test-is-casefolded.h: New file.
31308
31309         New module 'unicase/u32-is-casefolded'.
31310         * lib/unicase/u32-is-casefolded.c: New file.
31311         * modules/unicase/u32-is-casefolded: New file.
31312
31313         New module 'unicase/u16-is-casefolded'.
31314         * lib/unicase/u16-is-casefolded.c: New file.
31315         * modules/unicase/u16-is-casefolded: New file.
31316
31317         New module 'unicase/u8-is-casefolded'.
31318         * lib/unicase/u8-is-casefolded.c: New file.
31319         * modules/unicase/u8-is-casefolded: New file.
31320
31321         Tests for module 'unicase/u32-is-titlecase'.
31322         * modules/unicase/u32-is-titlecase-tests: New file.
31323         * tests/unicase/test-u32-is-titlecase.c: New file.
31324
31325         Tests for module 'unicase/u16-is-titlecase'.
31326         * modules/unicase/u16-is-titlecase-tests: New file.
31327         * tests/unicase/test-u16-is-titlecase.c: New file.
31328
31329         Tests for module 'unicase/u8-is-titlecase'.
31330         * modules/unicase/u8-is-titlecase-tests: New file.
31331         * tests/unicase/test-u8-is-titlecase.c: New file.
31332         * tests/unicase/test-is-titlecase.h: New file.
31333
31334         New module 'unicase/u32-is-titlecase'.
31335         * lib/unicase/u32-is-titlecase.c: New file.
31336         * modules/unicase/u32-is-titlecase: New file.
31337
31338         New module 'unicase/u16-is-titlecase'.
31339         * lib/unicase/u16-is-titlecase.c: New file.
31340         * modules/unicase/u16-is-titlecase: New file.
31341
31342         New module 'unicase/u8-is-titlecase'.
31343         * lib/unicase/u8-is-titlecase.c: New file.
31344         * modules/unicase/u8-is-titlecase: New file.
31345
31346         Tests for module 'unicase/u32-is-lowercase'.
31347         * modules/unicase/u32-is-lowercase-tests: New file.
31348         * tests/unicase/test-u32-is-lowercase.c: New file.
31349
31350         Tests for module 'unicase/u16-is-lowercase'.
31351         * modules/unicase/u16-is-lowercase-tests: New file.
31352         * tests/unicase/test-u16-is-lowercase.c: New file.
31353
31354         Tests for module 'unicase/u8-is-lowercase'.
31355         * modules/unicase/u8-is-lowercase-tests: New file.
31356         * tests/unicase/test-u8-is-lowercase.c: New file.
31357         * tests/unicase/test-is-lowercase.h: New file.
31358
31359         New module 'unicase/u32-is-lowercase'.
31360         * lib/unicase/u32-is-lowercase.c: New file.
31361         * modules/unicase/u32-is-lowercase: New file.
31362
31363         New module 'unicase/u16-is-lowercase'.
31364         * lib/unicase/u16-is-lowercase.c: New file.
31365         * modules/unicase/u16-is-lowercase: New file.
31366
31367         New module 'unicase/u8-is-lowercase'.
31368         * lib/unicase/u8-is-lowercase.c: New file.
31369         * modules/unicase/u8-is-lowercase: New file.
31370
31371         Tests for module 'unicase/u32-is-uppercase'.
31372         * modules/unicase/u32-is-uppercase-tests: New file.
31373         * tests/unicase/test-u32-is-uppercase.c: New file.
31374
31375         Tests for module 'unicase/u16-is-uppercase'.
31376         * modules/unicase/u16-is-uppercase-tests: New file.
31377         * tests/unicase/test-u16-is-uppercase.c: New file.
31378
31379         Tests for module 'unicase/u8-is-uppercase'.
31380         * modules/unicase/u8-is-uppercase-tests: New file.
31381         * tests/unicase/test-u8-is-uppercase.c: New file.
31382         * tests/unicase/test-is-uppercase.h: New file.
31383
31384         New module 'unicase/u32-is-uppercase'.
31385         * lib/unicase/u32-is-uppercase.c: New file.
31386         * modules/unicase/u32-is-uppercase: New file.
31387
31388         New module 'unicase/u16-is-uppercase'.
31389         * lib/unicase/u16-is-uppercase.c: New file.
31390         * modules/unicase/u16-is-uppercase: New file.
31391
31392         New module 'unicase/u8-is-uppercase'.
31393         * lib/unicase/u8-is-uppercase.c: New file.
31394         * modules/unicase/u8-is-uppercase: New file.
31395
31396         New module 'unicase/u32-is-invariant'.
31397         * lib/unicase/u32-is-invariant.c: New file.
31398         * modules/unicase/u32-is-invariant: New file.
31399
31400         New module 'unicase/u16-is-invariant'.
31401         * lib/unicase/u16-is-invariant.c: New file.
31402         * modules/unicase/u16-is-invariant: New file.
31403
31404         New module 'unicase/u8-is-invariant'.
31405         * lib/unicase/u8-is-invariant.c: New file.
31406         * lib/unicase/invariant.h: New file.
31407         * lib/unicase/u-is-invariant.h: New file.
31408         * modules/unicase/u8-is-invariant: New file.
31409
31410         Tests for module 'unicase/u32-casecoll'.
31411         * modules/unicase/u32-casecoll-tests: New file.
31412         * tests/unicase/test-u32-casecoll.c: New file.
31413
31414         Tests for module 'unicase/u16-casecoll'.
31415         * modules/unicase/u16-casecoll-tests: New file.
31416         * tests/unicase/test-u16-casecoll.c: New file.
31417
31418         Tests for module 'unicase/u8-casecoll'.
31419         * modules/unicase/u8-casecoll-tests: New file.
31420         * tests/unicase/test-u8-casecoll.c: New file.
31421
31422         New module 'unicase/u32-casecoll'.
31423         * lib/unicase/u32-casecoll.c: New file.
31424         * modules/unicase/u32-casecoll: New file.
31425
31426         New module 'unicase/u16-casecoll'.
31427         * lib/unicase/u16-casecoll.c: New file.
31428         * modules/unicase/u16-casecoll: New file.
31429
31430         New module 'unicase/u8-casecoll'.
31431         * lib/unicase/u8-casecoll.c: New file.
31432         * lib/unicase/u-casecoll.h: New file.
31433         * modules/unicase/u8-casecoll: New file.
31434
31435         New module 'unicase/u32-casexfrm'.
31436         * lib/unicase/u32-casexfrm.c: New file.
31437         * modules/unicase/u32-casexfrm: New file.
31438
31439         New module 'unicase/u16-casexfrm'.
31440         * lib/unicase/u16-casexfrm.c: New file.
31441         * modules/unicase/u16-casexfrm: New file.
31442
31443         New module 'unicase/u8-casexfrm'.
31444         * lib/unicase/u8-casexfrm.c: New file.
31445         * lib/unicase/u-casexfrm.h: New file.
31446         * modules/unicase/u8-casexfrm: New file.
31447
31448         Tests for module 'unicase/u32-casecmp'.
31449         * modules/unicase/u32-casecmp-tests: New file.
31450         * tests/unicase/test-u32-casecmp.c: New file.
31451
31452         Tests for module 'unicase/u16-casecmp'.
31453         * modules/unicase/u16-casecmp-tests: New file.
31454         * tests/unicase/test-u16-casecmp.c: New file.
31455
31456         Tests for module 'unicase/u8-casecmp'.
31457         * modules/unicase/u8-casecmp-tests: New file.
31458         * tests/unicase/test-u8-casecmp.c: New file.
31459         * tests/unicase/test-casecmp.h: New file.
31460
31461         New module 'unicase/u32-casecmp'.
31462         * lib/unicase/u32-casecmp.c: New file.
31463         * modules/unicase/u32-casecmp: New file.
31464
31465         New module 'unicase/u16-casecmp'.
31466         * lib/unicase/u16-casecmp.c: New file.
31467         * modules/unicase/u16-casecmp: New file.
31468
31469         New module 'unicase/u8-casecmp'.
31470         * lib/unicase/u8-casecmp.c: New file.
31471         * lib/unicase/u-casecmp.h: New file.
31472         * modules/unicase/u8-casecmp: New file.
31473
31474         Tests for module 'unicase/u32-casefold'.
31475         * modules/unicase/u32-casefold-tests: New file.
31476         * tests/unicase/test-u32-casefold.c: New file.
31477
31478         Tests for module 'unicase/u16-casefold'.
31479         * modules/unicase/u16-casefold-tests: New file.
31480         * tests/unicase/test-u16-casefold.c: New file.
31481
31482         Tests for module 'unicase/u8-casefold'.
31483         * modules/unicase/u8-casefold-tests: New file.
31484         * tests/unicase/test-u8-casefold.c: New file.
31485
31486         New module 'unicase/u32-casefold'.
31487         * lib/unicase/u32-casefold.c: New file.
31488         * modules/unicase/u32-casefold: New file.
31489
31490         New module 'unicase/u16-casefold'.
31491         * lib/unicase/u16-casefold.c: New file.
31492         * modules/unicase/u16-casefold: New file.
31493
31494         New module 'unicase/u8-casefold'.
31495         * lib/unicase/u8-casefold.c: New file.
31496         * lib/unicase/u-casefold.h: New file.
31497         * modules/unicase/u8-casefold: New file.
31498
31499         New module 'unicase/tocasefold'.
31500         * lib/unicase/casefold.h: New file.
31501         * lib/unicase/tocasefold.c: New file.
31502         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31503         * modules/unicase/tocasefold: New file.
31504
31505         Tests for module 'unicase/u32-totitle'.
31506         * modules/unicase/u32-totitle-tests: New file.
31507         * tests/unicase/test-u32-totitle.c: New file.
31508
31509         Tests for module 'unicase/u16-totitle'.
31510         * modules/unicase/u16-totitle-tests: New file.
31511         * tests/unicase/test-u16-totitle.c: New file.
31512
31513         Tests for module 'unicase/u8-totitle'.
31514         * modules/unicase/u8-totitle-tests: New file.
31515         * tests/unicase/test-u8-totitle.c: New file.
31516
31517         New module 'unicase/u32-totitle'.
31518         * lib/unicase/u32-totitle.c: New file.
31519         * modules/unicase/u32-totitle: New file.
31520
31521         New module 'unicase/u16-totitle'.
31522         * lib/unicase/u16-totitle.c: New file.
31523         * modules/unicase/u16-totitle: New file.
31524
31525         New module 'unicase/u8-totitle'.
31526         * lib/unicase/u8-totitle.c: New file.
31527         * lib/unicase/u-totitle.h: New file.
31528         * modules/unicase/u8-totitle: New file.
31529
31530         Tests for module 'unicase/u32-tolower'.
31531         * modules/unicase/u32-tolower-tests: New file.
31532         * tests/unicase/test-u32-tolower.c: New file.
31533
31534         Tests for module 'unicase/u16-tolower'.
31535         * modules/unicase/u16-tolower-tests: New file.
31536         * tests/unicase/test-u16-tolower.c: New file.
31537
31538         Tests for module 'unicase/u8-tolower'.
31539         * modules/unicase/u8-tolower-tests: New file.
31540         * tests/unicase/test-u8-tolower.c: New file.
31541
31542         New module 'unicase/u32-tolower'.
31543         * lib/unicase/u32-tolower.c: New file.
31544         * modules/unicase/u32-tolower: New file.
31545
31546         New module 'unicase/u16-tolower'.
31547         * lib/unicase/u16-tolower.c: New file.
31548         * modules/unicase/u16-tolower: New file.
31549
31550         New module 'unicase/u8-tolower'.
31551         * lib/unicase/u8-tolower.c: New file.
31552         * modules/unicase/u8-tolower: New file.
31553
31554         Tests for module 'unicase/u32-toupper'.
31555         * modules/unicase/u32-toupper-tests: New file.
31556         * tests/unicase/test-u32-toupper.c: New file.
31557
31558         Tests for module 'unicase/u16-toupper'.
31559         * modules/unicase/u16-toupper-tests: New file.
31560         * tests/unicase/test-u16-toupper.c: New file.
31561
31562         Tests for module 'unicase/u8-toupper'.
31563         * modules/unicase/u8-toupper-tests: New file.
31564         * tests/unicase/test-u8-toupper.c: New file.
31565
31566         New module 'unicase/u32-toupper'.
31567         * lib/unicase/u32-toupper.c: New file.
31568         * modules/unicase/u32-toupper: New file.
31569
31570         New module 'unicase/u16-toupper'.
31571         * lib/unicase/u16-toupper.c: New file.
31572         * modules/unicase/u16-toupper: New file.
31573
31574         New module 'unicase/u8-toupper'.
31575         * lib/unicase/u8-toupper.c: New file.
31576         * modules/unicase/u8-toupper: New file.
31577
31578         New module 'unicase/u32-casemap'.
31579         * lib/unicase/u32-casemap.c: New file.
31580         * modules/unicase/u32-casemap: New file.
31581
31582         New module 'unicase/u16-casemap'.
31583         * lib/unicase/u16-casemap.c: New file.
31584         * modules/unicase/u16-casemap: New file.
31585
31586         New module 'unicase/u8-casemap'.
31587         * lib/unicase/unicasemap.h: New file.
31588         * lib/unicase/u8-casemap.c: New file.
31589         * lib/unicase/u-casemap.h: New file.
31590         * modules/unicase/u8-casemap: New file.
31591
31592         New module 'unicase/special-casing'.
31593         * lib/unicase/special-casing.h: New file.
31594         * lib/unicase/special-casing.c: New file.
31595         * lib/unicase/special-casing-table.gperf: New file, generated by
31596         gen-uni-tables.c.
31597         * modules/unicase/special-casing: New file.
31598
31599         Tests for module 'unicase/locale-language'.
31600         * modules/unicase/locale-language-tests: New file.
31601         * tests/unicase/test-locale-language.sh: New file.
31602         * tests/unicase/test-locale-language.c: New file.
31603
31604         New module 'unicase/locale-language'.
31605         * lib/unicase/locale-language.c: New file.
31606         * lib/unicase/locale-languages.gperf: New file.
31607         * modules/unicase/locale-language: New file.
31608
31609         Generate more tables for case conversion and case folding.
31610         * lib/gen-uni-tables.c (SCC_*): New enum items.
31611         (struct special_casing_rule): New type.
31612         (casing_rules, num_casing_rules, allocated_casing_rules): New
31613         variables.
31614         (add_casing_rule, fill_casing_rules): New functions.
31615         (struct casefold_rule): New type.
31616         (casefolding_rules, num_casefolding_rules,
31617         allocated_casefolding_rules): New variables.
31618         (fill_casefolding_rules): New function.
31619         (unicode_casefold): New variable.
31620         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31621         sort_casing_rules, output_casing_rules): New functions.
31622         (main): Accept to more arguments: SpecialCasing.txt and
31623         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31624         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31625         Output mapping for casefolding.
31626
31627         * lib/unicase.h: Include stdbool.h, uninorm.h.
31628         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31629         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31630         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31631         arguments.
31632         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31633         resultp arguments.
31634         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31635         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31636         resultp arguments.
31637         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31638         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31639         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31640         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31641         declarations.
31642         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31643
31644 2009-03-08  Bruno Haible  <bruno@clisp.org>
31645
31646         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31647         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31648         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31649         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31650
31651 2009-03-07  Bruno Haible  <bruno@clisp.org>
31652
31653         Adjust u*_normcmp, u*_normcoll API.
31654         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31655         u16_normcoll, u32_normcoll): Change failure conventions.
31656         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31657         errno and return -1.
31658         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31659
31660 2009-03-07  Bruno Haible  <bruno@clisp.org>
31661
31662         Tests for module 'uninorm/u32-normcoll'.
31663         * modules/uninorm/u32-normcoll-tests: New file.
31664         * tests/uninorm/test-u32-normcoll.c: New file.
31665
31666         Tests for module 'uninorm/u16-normcoll'.
31667         * modules/uninorm/u16-normcoll-tests: New file.
31668         * tests/uninorm/test-u16-normcoll.c: New file.
31669
31670         Tests for module 'uninorm/u8-normcoll'.
31671         * modules/uninorm/u8-normcoll-tests: New file.
31672         * tests/uninorm/test-u8-normcoll.c: New file.
31673
31674 2009-03-07  Bruno Haible  <bruno@clisp.org>
31675
31676         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31677         tests/uninorm/test-u32-normcmp.c.
31678         * tests/uninorm/test-u32-normcmp.c: Include it.
31679         (test_nonascii): New function, extracted from main. Add some more
31680         tests.
31681         (main): Invoke test_ascii and test_nonascii.
31682         * modules/uninorm/u32-normcmp-tests (Files): Add
31683         tests/uninorm/test-u32-normcmp.h.
31684         (Depends-on): Remove uninorm/u32-normcmp.
31685
31686         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31687         tests/uninorm/test-u16-normcmp.c.
31688         * tests/uninorm/test-u16-normcmp.c: Include it.
31689         (test_nonascii): New function, extracted from main. Add some more
31690         tests.
31691         (main): Invoke test_ascii and test_nonascii.
31692         * modules/uninorm/u16-normcmp-tests (Files): Add
31693         tests/uninorm/test-u16-normcmp.h.
31694         (Depends-on): Remove uninorm/u16-normcmp.
31695
31696         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31697         tests/uninorm/test-u8-normcmp.c.
31698         * tests/uninorm/test-u8-normcmp.c: Include it.
31699         (test_nonascii): New function, extracted from main. Add some more
31700         tests.
31701         (main): Invoke test_ascii and test_nonascii.
31702         * modules/uninorm/u8-normcmp-tests (Files): Add
31703         tests/uninorm/test-u8-normcmp.h.
31704         (Depends-on): Remove uninorm/u8-normcmp.
31705
31706 2009-03-07  Bruno Haible  <bruno@clisp.org>
31707
31708         New module 'uninorm/u32-normcoll'.
31709         * lib/uninorm/u32-normcoll.c: New file.
31710         * modules/uninorm/u32-normcoll: New file.
31711
31712         New module 'uninorm/u16-normcoll'.
31713         * lib/uninorm/u16-normcoll.c: New file.
31714         * modules/uninorm/u16-normcoll: New file.
31715
31716         New module 'uninorm/u8-normcoll'.
31717         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31718         declarations.
31719         * lib/uninorm/u8-normcoll.c: New file.
31720         * lib/uninorm/u-normcoll.h: New file.
31721         * modules/uninorm/u8-normcoll: New file.
31722
31723         New module 'uninorm/u32-normxfrm'.
31724         * lib/uninorm/u32-normxfrm.c: New file.
31725         * modules/uninorm/u32-normxfrm: New file.
31726
31727         New module 'uninorm/u16-normxfrm'.
31728         * lib/uninorm/u16-normxfrm.c: New file.
31729         * modules/uninorm/u16-normxfrm: New file.
31730
31731         New module 'uninorm/u8-normxfrm'.
31732         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31733         declarations.
31734         * lib/uninorm/u8-normxfrm.c: New file.
31735         * lib/uninorm/u-normxfrm.h: New file.
31736         * modules/uninorm/u8-normxfrm: New file.
31737
31738 2009-03-07  Bruno Haible  <bruno@clisp.org>
31739
31740         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31741         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31742         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31743
31744 2009-03-07  Bruno Haible  <bruno@clisp.org>
31745
31746         New module 'memxfrm'.
31747         * lib/memxfrm.h: New file.
31748         * lib/memxfrm.c: New file.
31749         * modules/memxfrm: New file.
31750
31751 2009-03-07  Bruno Haible  <bruno@clisp.org>
31752
31753         New module 'memcmp2'.
31754         * lib/memcmp2.h: New file.
31755         * lib/memcmp2.c: New file.
31756         * modules/memcmp2: New file.
31757
31758 2009-03-07  Bruno Haible  <bruno@clisp.org>
31759
31760         Tests for module 'uninorm/decomposing-form'.
31761         * modules/uninorm/decomposing-form-tests: New file.
31762         * tests/uninorm/test-decomposing-form.c: New file.
31763
31764         New module 'uninorm/decomposing-form'.
31765         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31766         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31767         Add 'decomposing_variant' field.
31768         * lib/uninorm/decomposing-form.c: New file.
31769         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31770         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31771         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31772         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31773         * modules/uninorm/decomposing-form: New file.
31774         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31775         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31776
31777 2009-03-07  Bruno Haible  <bruno@clisp.org>
31778
31779         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31780         strings.
31781
31782 2009-03-06  Bruno Haible  <bruno@clisp.org>
31783
31784         Tests for module 'uninorm/u32-normcmp'.
31785         * tests/uninorm/test-u32-normcmp.c: New file.
31786         * modules/uninorm/u32-normcmp-tests: New file.
31787
31788         Tests for module 'uninorm/u16-normcmp'.
31789         * tests/uninorm/test-u16-normcmp.c: New file.
31790         * modules/uninorm/u16-normcmp-tests: New file.
31791
31792         Tests for module 'uninorm/u8-normcmp'.
31793         * tests/uninorm/test-u8-normcmp.c: New file.
31794         * modules/uninorm/u8-normcmp-tests: New file.
31795
31796         New module 'uninorm/u32-normcmp'.
31797         * lib/uninorm/u32-normcmp.c: New file.
31798         * modules/uninorm/u32-normcmp: New file.
31799
31800         New module 'uninorm/u16-normcmp'.
31801         * lib/uninorm/u16-normcmp.c: New file.
31802         * modules/uninorm/u16-normcmp: New file.
31803
31804         New module 'uninorm/u8-normcmp'.
31805         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31806         declarations.
31807         * lib/uninorm/u8-normcmp.c: New file.
31808         * lib/uninorm/u-normcmp.h: New file.
31809         * modules/uninorm/u8-normcmp: New file.
31810
31811 2009-03-06  Bruno Haible  <bruno@clisp.org>
31812
31813         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31814         Reported by Eric Blake.
31815
31816 2009-03-06  Eric Blake  <ebb9@byu.net>
31817             Bruno Haible  <bruno@clisp.org>
31818
31819         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31820         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31821         condition.
31822         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31823         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31824         condition.
31825         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31826
31827 2009-03-06  Eric Blake  <ebb9@byu.net>
31828
31829         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31830         to avoid compiler warnings.
31831         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31832
31833 2009-03-05  Bruno Haible  <bruno@clisp.org>
31834
31835         * tests/test-ftell.c (main): Disable test beyond end of file on
31836         FreeMiNT.
31837         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31838
31839 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31840
31841         * lib/filevercmp.c: Move hidden files up in ordering.
31842         * tests/test-filevercmp.c: Add tests for hidden files.
31843
31844 2009-03-04  Bruno Haible  <bruno@clisp.org>
31845
31846         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31847         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31848         AM_CFLAGS.
31849         Reported by Simon Josefsson.
31850
31851 2009-03-03  Bruno Haible  <bruno@clisp.org>
31852
31853         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31854         Reported by Simon Josefsson.
31855
31856         * doc/ld-version-script.texi: Update node reference.
31857
31858 2009-03-03  Bruno Haible  <bruno@clisp.org>
31859
31860         * modules/visibility (License): Change to 'unlimited'.
31861         Suggested by Simon Josefsson.
31862
31863 2009-03-03  Jim Meyering  <meyering@redhat.com>
31864
31865         unlinkdir: cannot_unlink_dir may modify process state
31866         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31867         it's neither thread-safe nor appropriate for use in a library.
31868
31869 2009-03-03  Eric Blake  <ebb9@byu.net>
31870
31871         test-closein: silence test under Darwin
31872         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31873         care if it dies from EPIPE or EBADF.
31874
31875 2009-03-03  Bruno Haible  <bruno@clisp.org>
31876
31877         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31878         earlier.
31879         * doc/visibility.texi: Fix @node and @section.
31880
31881 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31882
31883         * doc/gnulib.texi: Link to sections for ld version script and
31884         visibility.
31885         * doc/visibility.texi: Add @node and @section.
31886         * modules/ld-version-script: New module.
31887         * m4/ld-version-script.m4: New file.
31888         * doc/ld-version-script.texi: New file.
31889
31890 2009-03-02  David Lutterkort  <lutter@redhat.com>
31891
31892         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31894
31895 2009-03-02  Bruno Haible  <bruno@clisp.org>
31896
31897         * doc/visibility.texi: Mention libtool's -export-symbols option.
31898
31899 2009-03-02  Jim Meyering  <meyering@redhat.com>
31900
31901         announce-gen: new option: --no-print-checksums
31902         * build-aux/announce-gen (usage): Describe it.
31903         (print_checksums): Print a newline here, not in the [*] footnote.
31904         (main): Honor it.
31905
31906 2009-03-01  Bruno Haible  <bruno@clisp.org>
31907
31908         Use socklen_t in the native Windows replacements prototypes.
31909         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31910         instead of 'int'.
31911         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31912         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31913         * modules/getsockopt (Depends-on): Add socklen.
31914         * modules/setsockopt (Depends-on): Add socklen.
31915
31916 2009-03-01  Bruno Haible  <bruno@clisp.org>
31917
31918         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31919         least 4.2.
31920
31921 2009-03-01  Eric Blake  <ebb9@byu.net>
31922             Bruno Haible  <bruno@clisp.org>
31923
31924         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31925         error messages.
31926         * lib/wait-process.c (wait_subprocess): Omit error message about
31927         deadly signal sent to the child of termsigp != NULL.
31928
31929 2009-03-01  Eric Blake  <ebb9@byu.net>
31930
31931         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31932
31933 2009-03-01  Bruno Haible  <bruno@clisp.org>
31934
31935         Avoid a gcc warning.
31936         * tests/test-sched.c (b): Make global.
31937         Reported by Eric Blake.
31938
31939 2009-01-19  Martin Lambers  <marlam@marlam.de>
31940
31941         Provide POSIX semantics for socket timeout options on W32.
31942         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31943         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31944         * modules/setsockopt: Depend on sys_time module for struct timeval.
31945         * modules/getsockopt: Depend on sys_time module for struct timeval.
31946
31947 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31948
31949         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31950         __USE_GNU, for consistency with netdb.in.h.
31951         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31952
31953 2009-03-01  Bruno Haible  <bruno@clisp.org>
31954
31955         More support for FreeMiNT.
31956         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31957         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31958
31959 2009-03-01  Bruno Haible  <bruno@clisp.org>
31960
31961         More support for FreeMiNT.
31962         * lib/fpurge.c (fpurge): Correct last commit.
31963         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31964
31965 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31966
31967         Fix unportable awk script in vc-list-files.
31968         * build-aux/vc-list-files: In the replacement awk script, use
31969         substr with a second argument of 1, not zero.
31970         Report by Simon Josefsson.
31971
31972 2009-02-28  Bruno Haible  <bruno@clisp.org>
31973
31974         More support for FreeMiNT.
31975         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31976         to FreeMiNT today.
31977         * lib/fwriting.c (fwriting): Likewise.
31978         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31979
31980 2009-02-28  Bruno Haible  <bruno@clisp.org>
31981
31982         * tests/test-freadseek.c (main): Disable test beyond end of file on
31983         FreeMiNT.
31984         * tests/test-ftello.c (main): Likewise.
31985         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31986
31987 2009-02-28  Bruno Haible  <bruno@clisp.org>
31988
31989         Add tentative support for FreeMiNT.
31990         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31991         * lib/fpurge.c (fpurge): Likewise.
31992         * lib/freadable.c (freadable): Likewise.
31993         * lib/freading.c (freading): Likewise.
31994         * lib/freadptr.c (freadptr): Likewise.
31995         * lib/freadseek.c (freadptrinc): Likewise.
31996         * lib/fseeko.c (rpl_fseeko): Likewise.
31997         * lib/fseterr.c (fseterr): Likewise.
31998         * lib/fwritable.c (fwritable): Likewise.
31999         * lib/fwriting.c (fwriting): Likewise.
32000         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32001         Hourihane.
32002         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32003
32004 2009-02-28  Bruno Haible  <bruno@clisp.org>
32005
32006         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32007         SIGCHLD.
32008         Reported by Jim Meyering.
32009
32010 2009-02-28  Bruno Haible  <bruno@clisp.org>
32011
32012         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32013         Mention the results of these tests on various platforms.
32014         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32015         order.
32016         * doc/posix-functions/printf.texi: Likewise.
32017         * doc/posix-functions/snprintf.texi: Likewise.
32018         * doc/posix-functions/sprintf.texi: Likewise.
32019         * doc/posix-functions/vfprintf.texi: Likewise.
32020         * doc/posix-functions/vprintf.texi: Likewise.
32021         * doc/posix-functions/vsnprintf.texi: Likewise.
32022         * doc/posix-functions/vsprintf.texi: Likewise.
32023         * doc/glibc-functions/obstack_printf.texi: Likewise.
32024         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32025
32026 2009-02-28  Bruno Haible  <bruno@clisp.org>
32027
32028         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32029         Reported by Loïc Minier <lool@dooz.org>.
32030
32031 2009-02-27  Bruno Haible  <bruno@clisp.org>
32032
32033         * gnulib-tool (func_import): Make the sed expression used to create the
32034         sed script for updating the .gitignore file POSIX compliant.
32035         Reported by Eric Blake.
32036
32037 2009-02-27  Bruno Haible  <bruno@clisp.org>
32038
32039         * gnulib-tool (sed): Don't alias as "sed --posix".
32040         Reported by Eric Blake.
32041
32042 2009-02-27  Bruno Haible  <bruno@clisp.org>
32043
32044         Avoid test link errors.
32045         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32046         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32047         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32048         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32050
32051 2009-02-27  Bruno Haible  <bruno@clisp.org>
32052
32053         Avoid spurious "(cached)" in configure output.
32054         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32055         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32056         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32057         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32058         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32059         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32060         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32061         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32062         Reported by Eric Blake.
32063
32064 2009-02-27  Eric Blake  <ebb9@byu.net>
32065
32066         printf: fix regression in previous patch
32067         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32068
32069 2009-02-27  Bruno Haible  <bruno@clisp.org>
32070
32071         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32072         value.
32073         * lib/stdint.in.h: Likewise.
32074         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32075
32076 2009-02-27  Eric Blake  <ebb9@byu.net>
32077
32078         doc: mention more functions added in cygwin 1.7.0
32079         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32080         addition.
32081         * doc/posix-functions/open_wmemstream.texi: Likewise.
32082         * doc/posix-functions/wcsnlen.texi: Likewise.
32083         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32084         * doc/posix-functions/wcstod.texi: Likewise.
32085         * doc/posix-functions/wcstof.texi: Likewise.
32086         * doc/posix-functions/wcstoimax.texi: Likewise.
32087         * doc/posix-functions/wcstok.texi: Likewise.
32088         * doc/posix-functions/wcstoumax.texi: Likewise.
32089
32090         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32091         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32092         * doc/posix-functions/fprintf.texi: Update.
32093         * doc/posix-functions/printf.texi: Update.
32094         * doc/posix-functions/snprintf.texi: Update.
32095         * doc/posix-functions/sprintf.texi: Update.
32096         * doc/posix-functions/vfprintf.texi: Update.
32097         * doc/posix-functions/vprintf.texi: Update.
32098         * doc/posix-functions/vsnprintf.texi: Update.
32099         * doc/posix-functions/vsprintf.texi: Update.
32100         * doc/glibc-functions/obstack_printf.texi: Update.
32101         * doc/glibc-functions/obstack_vprintf.texi: Update.
32102
32103 2009-02-26  Eric Blake  <ebb9@byu.net>
32104
32105         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32106         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32107         compilation bug by using runtime conversion.
32108         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32109         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32110         * modules/ceill-tests (Files): Use nan.h.
32111         * modules/floorl-tests (Files): Likewise.
32112         * modules/frexpl-tests (Files): Likewise.
32113         * modules/isnanl-tests (Files): Likewise.
32114         * modules/ldexpl-tests (Files): Likewise.
32115         * modules/roundl-tests (Files): Likewise.
32116         * modules/truncl-tests (Files): Likewise.
32117         * tests/test-ceill.c (main): Use a working NaN.
32118         * tests/test-floorl.c (main): Likewise.
32119         * tests/test-frexpl.c (main): Likewise.
32120         * tests/test-isnan.c (test_long_double): Likewise.
32121         * tests/test-isnanl.h (main): Likewise.
32122         * tests/test-ldexpl.h (main): Likewise.
32123         * tests/test-roundl.h (main): Likewise.
32124         * tests/test-truncl.h (main): Likewise.
32125         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32126
32127 2009-02-26  Eric Blake  <ebb9@byu.net>
32128             Bruno Haible  <bruno@clisp.org>
32129
32130         Work around a *printf bug with %ls on Solaris.
32131         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32132         precision is specified, sprintf stops converting the wide string
32133         argument when the number of bytes that have been produced by this
32134         conversion equals or exceeds the precision.
32135         * doc/posix-functions/fprintf.texi: Update.
32136         * doc/posix-functions/printf.texi: Update.
32137         * doc/posix-functions/snprintf.texi: Update.
32138         * doc/posix-functions/sprintf.texi: Update.
32139         * doc/posix-functions/vfprintf.texi: Update.
32140         * doc/posix-functions/vprintf.texi: Update.
32141         * doc/posix-functions/vsnprintf.texi: Update.
32142         * doc/posix-functions/vsprintf.texi: Update.
32143         * doc/glibc-functions/obstack_printf.texi: Update.
32144         * doc/glibc-functions/obstack_vprintf.texi: Update.
32145
32146 2009-02-26  Eric Blake  <ebb9@byu.net>
32147
32148         stdlib: favor compiler check of random.h
32149         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32150         to avoid an ObjC random.h installed by Swarm.
32151
32152 2009-02-26  Bruno Haible  <bruno@clisp.org>
32153
32154         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32155         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32156         Reported by Gary V. Vaughan <gary@gnu.org>.
32157
32158 2009-02-26  Bruno Haible  <bruno@clisp.org>
32159
32160         Fix *printf behaviour regarding the %ls directive.
32161         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32162         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32163         NEED_PRINTF_DIRECTIVE_LS.
32164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32165         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32166         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32167         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32168         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32169         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32170         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32171         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32173         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32175         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32179         * doc/posix-functions/fprintf.texi: Update.
32180         * doc/posix-functions/printf.texi: Update.
32181         * doc/posix-functions/snprintf.texi: Update.
32182         * doc/posix-functions/sprintf.texi: Update.
32183         * doc/posix-functions/vfprintf.texi: Update.
32184         * doc/posix-functions/vprintf.texi: Update.
32185         * doc/posix-functions/vsnprintf.texi: Update.
32186         * doc/posix-functions/vsprintf.texi: Update.
32187         * doc/glibc-functions/obstack_printf.texi: Update.
32188         * doc/glibc-functions/obstack_vprintf.texi: Update.
32189         Reported by Eric Blake.
32190
32191 2009-02-25  Bruno Haible  <bruno@clisp.org>
32192
32193         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32194         with known value.
32195         Reported by Gary V. Vaughan <gary@gnu.org>.
32196
32197 2009-02-25  Bruno Haible  <bruno@clisp.org>
32198
32199         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32200         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32201         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32202         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32203         Reported by Gary V. Vaughan <gary@gnu.org>.
32204
32205 2009-02-25  Bruno Haible  <bruno@clisp.org>
32206
32207         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32208         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32209         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32210         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32211         Reported by Gary V. Vaughan <gary@gnu.org>.
32212
32213 2009-02-25  Eric Blake  <ebb9@byu.net>
32214
32215         tests: skip fseek/ftell tests if ungetc is broken
32216         * m4/ungetc.m4: New file.
32217         * modules/fseek-tests: Split test, so ungetc dependency is
32218         separate from rest of test.
32219         * modules/fseeko-tests: Likewise.
32220         * modules/ftell-tests: Likewise.
32221         * modules/ftello-tests: Likewise.
32222         * tests/test-fseek.c (main): Isolate ungetc dependency.
32223         * tests/test-fseeko.c (main): Likewise.
32224         * tests/test-ftell.c (main): Likewise.
32225         * tests/test-ftello.c (main): Likewise.
32226         * tests/test-fseek2.sh: New file.
32227         * tests/test-fseeko2.sh: Likewise.
32228         * tests/test-ftell2.sh: Likewise.
32229         * tests/test-ftello2.sh: Likewise.
32230
32231 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32232
32233         test-getaddrinfo: fix usage of skip return code 77
32234         * tests/test-gettaddrinfo.c: Return skip code 77 only
32235         for first occurance of skip (4x77 is not 77)
32236
32237 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32238
32239         strtod: avoid C99 decl-after-statement
32240         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32241
32242 2009-02-24  Eric Blake  <ebb9@byu.net>
32243
32244         strtod: detect HP-UX 11.31 bug
32245         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32246         Reported by Gary V. Vaughan.
32247
32248 2009-02-23  Bruno Haible  <bruno@clisp.org>
32249
32250         Fix invalid read past end of memory block.
32251         * lib/vasnprintf.c (DCHAR_SET): Define.
32252         (local_wcslen): Define only when needed.
32253         (local_strnlen, local_wcsnlen): New functions.
32254         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32255         directives that involve a conversion ourselves.
32256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32257         wcsnlen, mbrtowc, wcrtomb.
32258         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32259         * tests/test-vasprintf-posix.c (test_function): Likewise.
32260         * tests/test-snprintf-posix.h (test_function): Likewise.
32261         * tests/test-sprintf-posix.h (test_function): Likewise.
32262         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32263
32264 2009-02-22  Bruno Haible  <bruno@clisp.org>
32265
32266         Implement new clarified decomposition of Hangul syllables.
32267         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32268         of type LTV, return only a pairwise decomposition.
32269         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32270         Likewise.
32271         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32272         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32273         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32274
32275 2009-02-22  Bruno Haible  <bruno@clisp.org>
32276
32277         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32278         zero-length results and shrink excess allocated memory.
32279         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32280         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32281         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32282         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32283         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32284         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32285         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32286         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32287         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32288         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32289         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32290         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32291
32292 2009-02-21  Bruno Haible  <bruno@clisp.org>
32293
32294         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32295         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32296         spaces after a period. Put a space between a macro name and its
32297         argument list. Trivial rewordings.
32298         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32299         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32300         (main): Return 0 explicitly.
32301
32302 2009-02-21  Bruno Haible  <bruno@clisp.org>
32303
32304         Tests for module 'uninorm/filter'.
32305         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32306         * modules/uninorm/filter-tests: New file.
32307
32308         New module 'uninorm/filter'.
32309         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32310         uninorm_filter_flush, uninorm_filter_free): New declarations.
32311         * lib/uninorm/uninorm-filter.c: New file.
32312         * modules/uninorm/filter: New file.
32313
32314 2009-02-21  Bruno Haible  <bruno@clisp.org>
32315
32316         Tests for module 'uninorm/nfkc'.
32317         * tests/uninorm/test-nfkc.c: New file.
32318         * tests/uninorm/test-u8-nfkc.c: New file.
32319         * tests/uninorm/test-u16-nfkc.c: New file.
32320         * tests/uninorm/test-u32-nfkc.c: New file.
32321         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32322         * tests/uninorm/test-u32-nfkc-big.c: New file.
32323         * modules/uninorm/nfkc-tests: New file.
32324
32325         New module 'uninorm/nfkc'.
32326         * lib/uninorm/nfkc.c: New file.
32327         * modules/uninorm/nfkc: New file.
32328
32329         Tests for module 'uninorm/nfkd'.
32330         * tests/uninorm/test-nfkd.c: New file.
32331         * tests/uninorm/test-u8-nfkd.c: New file.
32332         * tests/uninorm/test-u16-nfkd.c: New file.
32333         * tests/uninorm/test-u32-nfkd.c: New file.
32334         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32335         * tests/uninorm/test-u32-nfkd-big.c: New file.
32336         * modules/uninorm/nfkd-tests: New file.
32337
32338         New module 'uninorm/nfkd'.
32339         * lib/uninorm/nfkd.c: New file.
32340         * modules/uninorm/nfkd: New file.
32341
32342         Tests for module 'uninorm/nfc'.
32343         * tests/uninorm/test-nfc.c: New file.
32344         * tests/uninorm/test-u8-nfc.c: New file.
32345         * tests/uninorm/test-u16-nfc.c: New file.
32346         * tests/uninorm/test-u32-nfc.c: New file.
32347         * tests/uninorm/test-u32-nfc-big.sh: New file.
32348         * tests/uninorm/test-u32-nfc-big.c: New file.
32349         * modules/uninorm/nfc-tests: New file.
32350
32351         New module 'uninorm/nfc'.
32352         * lib/uninorm/nfc.c: New file.
32353         * modules/uninorm/nfc: New file.
32354
32355         Tests for module 'uninorm/nfd'.
32356         * tests/uninorm/test-nfd.c: New file.
32357         * tests/uninorm/test-u8-nfd.c: New file.
32358         * tests/uninorm/test-u16-nfd.c: New file.
32359         * tests/uninorm/test-u32-nfd.c: New file.
32360         * tests/uninorm/test-u32-nfd-big.sh: New file.
32361         * tests/uninorm/test-u32-nfd-big.c: New file.
32362         * tests/uninorm/test-u32-normalize-big.h: New file.
32363         * tests/uninorm/test-u32-normalize-big.c: New file.
32364         * tests/uninorm/NormalizationTest.txt: New file, created from
32365         Unicode 5.1.0 NormalizationTest.txt.
32366         * modules/uninorm/nfd-tests: New file.
32367
32368         New module 'uninorm/nfd'.
32369         * lib/uninorm/nfd.c: New file.
32370         * modules/uninorm/nfd: New file.
32371
32372         New module 'uninorm/u32-normalize'.
32373         * lib/uninorm/u32-normalize.c: New file.
32374         * modules/uninorm/u32-normalize: New file.
32375
32376         New module 'uninorm/u16-normalize'.
32377         * lib/uninorm/u16-normalize.c: New file.
32378         * modules/uninorm/u16-normalize: New file.
32379
32380         New module 'uninorm/u8-normalize'.
32381         * lib/uninorm/u8-normalize.c: New file.
32382         * lib/uninorm/normalize-internal.h: New file.
32383         * lib/uninorm/u-normalize-internal.h: New file.
32384         * modules/uninorm/u8-normalize: New file.
32385
32386         New module 'uninorm/decompose-internal'.
32387         * lib/uninorm/decompose-internal.c: New file.
32388         * modules/uninorm/decompose-internal: New file.
32389
32390         Tests for module 'uninorm/composition'.
32391         * tests/uninorm/test-composition.c: New file.
32392         * modules/uninorm/composition-tests: New file.
32393
32394         New module 'uninorm/composition'.
32395         * lib/uninorm/composition.c: New file.
32396         * lib/uninorm/composition-table.gperf: New file, generated by
32397         gen-uni-tables.
32398         * modules/uninorm/composition: New file.
32399
32400         Tests for module 'uninorm/compat-decomposition'.
32401         * tests/uninorm/test-compat-decomposition.c: New file.
32402         * modules/uninorm/compat-decomposition-tests: New file.
32403
32404         New module 'uninorm/compat-decomposition'.
32405         * lib/uninorm/decompose-internal.h: New file.
32406         * lib/uninorm/compat-decomposition.c: New file.
32407         * modules/uninorm/compat-decomposition: New file.
32408
32409         Tests for module 'uninorm/canonical-decomposition'.
32410         * tests/uninorm/test-canonical-decomposition.c: New file.
32411         * modules/uninorm/canonical-decomposition-tests: New file.
32412
32413         New module 'uninorm/canonical-decomposition'.
32414         * lib/uninorm/canonical-decomposition.c: New file.
32415         * modules/uninorm/canonical-decomposition: New file.
32416
32417         Tests for module 'uninorm/decomposition'.
32418         * tests/uninorm/test-decomposition.c: New file.
32419         * modules/uninorm/decomposition-tests: New file.
32420
32421         New module 'uninorm/decomposition'.
32422         * lib/uninorm/decomposition.c: New file.
32423         * modules/uninorm/decomposition: New file.
32424
32425         New module 'uninorm/decomposition-table'.
32426         * lib/uninorm/decomposition-table.h: New file.
32427         * lib/uninorm/decomposition-table.c: New file.
32428         * lib/uninorm/decomposition-table1.h: New file, generated by
32429         gen-uni-tables.
32430         * lib/uninorm/decomposition-table2.h: New file, generated by
32431         gen-uni-tables.
32432         * modules/uninorm/decomposition-table: New file.
32433
32434         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32435         (UC_DECOMP_*): New enumeration items.
32436         (get_decomposition): New function.
32437         (struct decomp_table): New type.
32438         (output_decomposition, output_decomposition_tables): New functions.
32439         (unicode_composition_exclusions): New variable.
32440         (fill_composition_exclusions, debug_output_composition_tables): New
32441         functions.
32442         (main): Accept one more argument. Invoke fill_composition_exclusions.
32443         Output decomposition and composition tables.
32444
32445         New module 'uninorm/base'.
32446         * lib/uninorm.h: New file.
32447         * lib/unictype.h: Update comment.
32448         * modules/uninorm/base: New file.
32449
32450 2009-02-21  David Lutterkort  <lutter@redhat.com>
32451
32452         Tests for module 'safe-alloc'.
32453         * tests/test-safe-alloc.c: New file.
32454         * modules/safe-alloc-tests: New file.
32455
32456         New module 'safe-alloc'.
32457         * lib/safe-alloc.h: New file.
32458         * lib/safe-alloc.c: New file.
32459         * m4/safe-alloc.m4: New file.
32460         * modules/safe-alloc: New file.
32461         * doc/safe-alloc.texi: New file.
32462         * doc/gnulib.texi: Include it.
32463         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32464         safe-alloc.
32465
32466 2009-02-18  Bruno Haible  <bruno@clisp.org>
32467
32468         Fix link error on non-glibc systems.
32469         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32470         variable.
32471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32472
32473 2009-02-18  Jim Meyering  <meyering@redhat.com>
32474
32475         fts: avoid used-uninitialized error due to recent change
32476         * lib/fts.c (fts_read): Guard uses of the new member,
32477         parent->fts_n_dirs_remaining, since it's not relevant for
32478         the parent of a directory specified on the command-line.
32479
32480 2009-02-17  James Youngman  <jay@gnu.org>
32481             Bruno Haible  <bruno@clisp.org>
32482
32483         * m4/include_next.m4: Reformulate comment.
32484
32485 2009-02-16  Jim Meyering  <meyering@redhat.com>
32486
32487         fts: add #if guards so that the fts_lgpl module still builds
32488         * lib/fts.c: Guard just-added hash-table-using parts with
32489         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32490         Reported by Simon Josefsson.
32491
32492 2009-02-15  Bruno Haible  <bruno@clisp.org>
32493
32494         * modules/array-mergesort-tests: New file.
32495         * tests/test-array-mergesort.c: New file.
32496
32497         New module 'array-mergesort'.
32498         * modules/array-mergesort: New file.
32499         * lib/array-mergesort.h: New file.
32500
32501 2009-02-15  Bruno Haible  <bruno@clisp.org>
32502
32503         Fix 2009-02-07 commit.
32504         * lib/gen-uni-tables.c (output_predicate, output_category,
32505         output_combclass, output_bidi_category, output_decimal_digit,
32506         output_digit, output_numeric, output_mirror, output_scripts,
32507         output_ident_category, output_simple_mapping): Fix format directives.
32508         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32509
32510 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32511
32512         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32513         fixes are available from IBM.
32514
32515 2009-02-13  Jim Meyering  <meyering@redhat.com>
32516
32517         fts: arrange not to stat non-directories in more cases
32518         This makes GNU find (when it doesn't need to stat each file)
32519         *much* more efficient at traversing reiserfs file systems.
32520         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32521         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32522         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32523         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32524         (leaf_optimization_applies): New function.
32525         (LCO_hash, LCO_compare): New helper functions.
32526         (link_count_optimize_ok): New function.
32527         (fts_stat): Initialize new member (if dir).
32528         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32529         we've just stat'ed a directory.  Skip the stat call when possible.
32530         ---
32531         Note this AFS-related exchange:
32532         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32533         and note find's pioctl call in find/fstype.c.
32534         But that is necessary only if you want to enable the
32535         optimization for AFS, and for now, I don't.
32536
32537         fts: move a function definition "up" (no semantic change)
32538         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32539         "up" to precede upcoming use of a related function.
32540
32541 2009-02-11  Jim Meyering  <meyering@redhat.com>
32542
32543         fts: correct internal computation of nlinks (optimization-related)
32544         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32545         whether the current entry is a directory, so don't test it.
32546
32547 2009-02-10  Bruno Haible  <bruno@clisp.org>
32548
32549         Tests for module 'uniwbrk/ulc-wordbreaks'.
32550         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32551         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32552         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32553
32554         Tests for module 'uniwbrk/u32-wordbreaks'.
32555         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32556         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32557
32558         Tests for module 'uniwbrk/u16-wordbreaks'.
32559         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32560         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32561
32562         Tests for module 'uniwbrk/u8-wordbreaks'.
32563         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32564         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32565
32566 2009-02-10  Bruno Haible  <bruno@clisp.org>
32567
32568         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32569         property.
32570         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32571         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32572         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32573
32574 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32575
32576         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32577         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32578
32579 2009-02-10  Bruno Haible  <bruno@clisp.org>
32580
32581         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32582         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32583         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32584         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32585         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32586         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32587
32588 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32589
32590         * lib/sockets.h (gl_fd_to_handle): New function.
32591
32592         * tests/test-sockets.c: Call gl_fd_to_handle.
32593
32594 2009-02-09  Bruno Haible  <bruno@clisp.org>
32595
32596         * doc/havelib.texi: Document the conventions on bi-arch systems.
32597
32598 2009-02-08  Bruno Haible  <bruno@clisp.org>
32599
32600         Document the AC_LIB_LINKFLAGS macro.
32601         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32602         * doc/gnulib.texi: Include it.
32603
32604 2009-02-08  Bruno Haible  <bruno@clisp.org>
32605
32606         Fix wrong order of sections, compared to TOC.
32607         * doc/gnulib.texi: Include relocatable-maint.texi after the
32608         "Regular expressions" node, not before.
32609
32610 2009-02-08  Bruno Haible  <bruno@clisp.org>
32611
32612         Tests for module 'unicase/totitle'.
32613         * modules/unicase/totitle-tests: New file.
32614
32615         Tests for module 'unicase/tolower'.
32616         * modules/unicase/tolower-tests: New file.
32617
32618         Tests for module 'unicase/toupper'.
32619         * modules/unicase/toupper-tests: New file.
32620         * tests/unicase/test-mapping-part1.h: New file.
32621         * tests/unicase/test-mapping-part2.h: New file.
32622
32623         New module 'unicase/totitle'.
32624         * modules/unicase/totitle: New file.
32625         * lib/unicase/totitle.c: New file.
32626
32627         New module 'unicase/tolower'.
32628         * modules/unicase/tolower: New file.
32629         * lib/unicase/tolower.c: New file.
32630
32631         New module 'unicase/toupper'.
32632         * modules/unicase/toupper: New file.
32633         * lib/unicase/toupper.c: New file.
32634         * lib/unicase/simple-mapping.h: New file.
32635
32636         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32637         (mapping_table): New structure.
32638         (output_simple_mapping): New function.
32639         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32640         * modules/gen-uni-tables (Description): Update.
32641         * lib/unicase/toupper.h: New file, automatically generated by
32642         gen-uni-tables.
32643         * lib/unicase/tolower.h: New file, automatically generated by
32644         gen-uni-tables.
32645         * lib/unicase/totitle.h: New file, automatically generated by
32646         gen-uni-tables.
32647         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32648         gen-uni-tables.
32649         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32650         gen-uni-tables.
32651         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32652         gen-uni-tables.
32653
32654         New module 'unicase/base'.
32655         * modules/unicase/base: New file.
32656         * lib/unicase.h: New file.
32657
32658 2009-02-08  Bruno Haible  <bruno@clisp.org>
32659
32660         New module 'uniwbrk/ulc-wordbreaks'.
32661         * modules/uniwbrk/ulc-wordbreaks: New file.
32662         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32663
32664         New module 'uniwbrk/u32-wordbreaks'.
32665         * modules/uniwbrk/u32-wordbreaks: New file.
32666         * lib/uniwbrk/u32-wordbreaks.c: New file.
32667
32668         New module 'uniwbrk/u16-wordbreaks'.
32669         * modules/uniwbrk/u16-wordbreaks: New file.
32670         * lib/uniwbrk/u16-wordbreaks.c: New file.
32671
32672         New module 'uniwbrk/u8-wordbreaks'.
32673         * modules/uniwbrk/u8-wordbreaks: New file.
32674         * lib/uniwbrk/u8-wordbreaks.c: New file.
32675         * lib/uniwbrk/u-wordbreaks.h: New file.
32676
32677         New module 'uniwbrk/table'.
32678         * modules/uniwbrk/table: New file.
32679         * lib/uniwbrk/wbrktable.h: New file.
32680         * lib/uniwbrk/wbrktable.c: New file.
32681
32682         New module 'uniwbrk/wordbreak-property'.
32683         * modules/uniwbrk/wordbreak-property: New file.
32684         * lib/uniwbrk/wordbreak-property.c: New file.
32685
32686         * lib/gen-uni-tables.c (WBP_*): New enum items.
32687         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32688         (unicode_org_wbp): New variable.
32689         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32690         New functions.
32691         (wbp_table): New structure.
32692         (output_wbp, output_wbrk_tables): New functions.
32693         (main): Accept additional argument. Invoke fill_org_wbp,
32694         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32695         output_wbrk_tables.
32696         * modules/gen-uni-tables (Description): Update.
32697         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32698         gen-uni-tables.
32699
32700         New module 'uniwbrk/base'.
32701         * modules/uniwbrk/base: New file.
32702         * lib/uniwbrk.h: New file.
32703
32704 2009-02-08  Bruno Haible  <bruno@clisp.org>
32705
32706         Update to Unicode 5.1.0.
32707         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32708         U+2185..U+2188.
32709         (is_property_default_ignorable_code_point): Don't include characters
32710         of category Cc or Cs and not-a-characters.
32711         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32712         U+0D79, U+109E, U+109F, U+A60C.
32713         * lib/unictype/bidi_of.h: Regenerated.
32714         * lib/unictype/blocks.h: Regenerated.
32715         * lib/unictype/categ_C.h: Regenerated.
32716         * lib/unictype/categ_Cf.h: Regenerated.
32717         * lib/unictype/categ_Cn.h: Regenerated.
32718         * lib/unictype/categ_L.h: Regenerated.
32719         * lib/unictype/categ_Ll.h: Regenerated.
32720         * lib/unictype/categ_Lm.h: Regenerated.
32721         * lib/unictype/categ_Lo.h: Regenerated.
32722         * lib/unictype/categ_Lu.h: Regenerated.
32723         * lib/unictype/categ_M.h: Regenerated.
32724         * lib/unictype/categ_Mc.h: Regenerated.
32725         * lib/unictype/categ_Me.h: Regenerated.
32726         * lib/unictype/categ_Mn.h: Regenerated.
32727         * lib/unictype/categ_N.h: Regenerated.
32728         * lib/unictype/categ_Nd.h: Regenerated.
32729         * lib/unictype/categ_Nl.h: Regenerated.
32730         * lib/unictype/categ_No.h: Regenerated.
32731         * lib/unictype/categ_P.h: Regenerated.
32732         * lib/unictype/categ_Pd.h: Regenerated.
32733         * lib/unictype/categ_Pe.h: Regenerated.
32734         * lib/unictype/categ_Pf.h: Regenerated.
32735         * lib/unictype/categ_Pi.h: Regenerated.
32736         * lib/unictype/categ_Po.h: Regenerated.
32737         * lib/unictype/categ_Ps.h: Regenerated.
32738         * lib/unictype/categ_S.h: Regenerated.
32739         * lib/unictype/categ_Sk.h: Regenerated.
32740         * lib/unictype/categ_Sm.h: Regenerated.
32741         * lib/unictype/categ_So.h: Regenerated.
32742         * lib/unictype/categ_of.h: Regenerated.
32743         * lib/unictype/combining.h: Regenerated.
32744         * lib/unictype/ctype_alnum.h: Regenerated.
32745         * lib/unictype/ctype_alpha.h: Regenerated.
32746         * lib/unictype/ctype_graph.h: Regenerated.
32747         * lib/unictype/ctype_lower.h: Regenerated.
32748         * lib/unictype/ctype_print.h: Regenerated.
32749         * lib/unictype/ctype_punct.h: Regenerated.
32750         * lib/unictype/ctype_upper.h: Regenerated.
32751         * lib/unictype/decdigit.h: Regenerated.
32752         * lib/unictype/digit.h: Regenerated.
32753         * lib/unictype/mirror.h: Regenerated.
32754         * lib/unictype/numeric.h: Regenerated.
32755         * lib/unictype/pr_alphabetic.h: Regenerated.
32756         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32757         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32758         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32759         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32760         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32761         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32762         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32763         * lib/unictype/pr_combining.h: Regenerated.
32764         * lib/unictype/pr_dash.h: Regenerated.
32765         * lib/unictype/pr_decimal_digit.h: Regenerated.
32766         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32767         * lib/unictype/pr_deprecated.h: Regenerated.
32768         * lib/unictype/pr_diacritic.h: Regenerated.
32769         * lib/unictype/pr_extender.h: Regenerated.
32770         * lib/unictype/pr_format_control.h: Regenerated.
32771         * lib/unictype/pr_grapheme_base.h: Regenerated.
32772         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32773         * lib/unictype/pr_grapheme_link.h: Regenerated.
32774         * lib/unictype/pr_id_continue.h: Regenerated.
32775         * lib/unictype/pr_id_start.h: Regenerated.
32776         * lib/unictype/pr_ideographic.h: Regenerated.
32777         * lib/unictype/pr_ignorable_control.h: Regenerated.
32778         * lib/unictype/pr_lowercase.h: Regenerated.
32779         * lib/unictype/pr_math.h: Regenerated.
32780         * lib/unictype/pr_numeric.h: Regenerated.
32781         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32782         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32783         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32784         * lib/unictype/pr_other_id_continue.h: Regenerated.
32785         * lib/unictype/pr_other_lowercase.h: Regenerated.
32786         * lib/unictype/pr_other_math.h: Regenerated.
32787         * lib/unictype/pr_punctuation.h: Regenerated.
32788         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32789         * lib/unictype/pr_soft_dotted.h: Regenerated.
32790         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32791         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32792         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32793         * lib/unictype/pr_uppercase.h: Regenerated.
32794         * lib/unictype/pr_xid_continue.h: Regenerated.
32795         * lib/unictype/pr_xid_start.h: Regenerated.
32796         * lib/unictype/pr_zero_width.h: Regenerated.
32797         * lib/unictype/scripts.h: Regenerated.
32798         * lib/unictype/scripts_byname.gperf: Regenerated.
32799         * lib/unictype/sy_java_ident.h: Regenerated.
32800         * lib/unilbrk/lbrkprop1.h: Regenerated.
32801         * lib/unilbrk/lbrkprop2.h: Regenerated.
32802         * tests/unictype/test-categ_C.c: Regenerated.
32803         * tests/unictype/test-categ_Cf.c: Regenerated.
32804         * tests/unictype/test-categ_Cn.c: Regenerated.
32805         * tests/unictype/test-categ_L.c: Regenerated.
32806         * tests/unictype/test-categ_Ll.c: Regenerated.
32807         * tests/unictype/test-categ_Lm.c: Regenerated.
32808         * tests/unictype/test-categ_Lo.c: Regenerated.
32809         * tests/unictype/test-categ_Lu.c: Regenerated.
32810         * tests/unictype/test-categ_M.c: Regenerated.
32811         * tests/unictype/test-categ_Mc.c: Regenerated.
32812         * tests/unictype/test-categ_Me.c: Regenerated.
32813         * tests/unictype/test-categ_Mn.c: Regenerated.
32814         * tests/unictype/test-categ_N.c: Regenerated.
32815         * tests/unictype/test-categ_Nd.c: Regenerated.
32816         * tests/unictype/test-categ_Nl.c: Regenerated.
32817         * tests/unictype/test-categ_No.c: Regenerated.
32818         * tests/unictype/test-categ_P.c: Regenerated.
32819         * tests/unictype/test-categ_Pd.c: Regenerated.
32820         * tests/unictype/test-categ_Pe.c: Regenerated.
32821         * tests/unictype/test-categ_Pf.c: Regenerated.
32822         * tests/unictype/test-categ_Pi.c: Regenerated.
32823         * tests/unictype/test-categ_Po.c: Regenerated.
32824         * tests/unictype/test-categ_Ps.c: Regenerated.
32825         * tests/unictype/test-categ_S.c: Regenerated.
32826         * tests/unictype/test-categ_Sk.c: Regenerated.
32827         * tests/unictype/test-categ_Sm.c: Regenerated.
32828         * tests/unictype/test-categ_So.c: Regenerated.
32829         * tests/unictype/test-ctype_alnum.c: Regenerated.
32830         * tests/unictype/test-ctype_alpha.c: Regenerated.
32831         * tests/unictype/test-ctype_graph.c: Regenerated.
32832         * tests/unictype/test-ctype_lower.c: Regenerated.
32833         * tests/unictype/test-ctype_print.c: Regenerated.
32834         * tests/unictype/test-ctype_punct.c: Regenerated.
32835         * tests/unictype/test-ctype_upper.c: Regenerated.
32836         * tests/unictype/test-decdigit.h: Regenerated.
32837         * tests/unictype/test-digit.h: Regenerated.
32838         * tests/unictype/test-numeric.h: Regenerated.
32839         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32840         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32841         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32842         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32843         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32844         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32845         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32846         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32847         * tests/unictype/test-pr_combining.c: Regenerated.
32848         * tests/unictype/test-pr_dash.c: Regenerated.
32849         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32850         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32851         * tests/unictype/test-pr_deprecated.c: Regenerated.
32852         * tests/unictype/test-pr_diacritic.c: Regenerated.
32853         * tests/unictype/test-pr_extender.c: Regenerated.
32854         * tests/unictype/test-pr_format_control.c: Regenerated.
32855         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32856         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32857         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32858         * tests/unictype/test-pr_id_continue.c: Regenerated.
32859         * tests/unictype/test-pr_id_start.c: Regenerated.
32860         * tests/unictype/test-pr_ideographic.c: Regenerated.
32861         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32862         * tests/unictype/test-pr_lowercase.c: Regenerated.
32863         * tests/unictype/test-pr_math.c: Regenerated.
32864         * tests/unictype/test-pr_numeric.c: Regenerated.
32865         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32866         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32867         Regenerated.
32868         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32869         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32870         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32871         * tests/unictype/test-pr_other_math.c: Regenerated.
32872         * tests/unictype/test-pr_punctuation.c: Regenerated.
32873         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32874         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32875         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32876         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32877         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32878         * tests/unictype/test-pr_uppercase.c: Regenerated.
32879         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32880         * tests/unictype/test-pr_xid_start.c: Regenerated.
32881         * tests/unictype/test-pr_zero_width.c: Regenerated.
32882
32883         Update to Unicode 5.1.0.
32884         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32885         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32886         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32887         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32888         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32889         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32890         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32891         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32892         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32893         (nonspacing_table_ind): Update.
32894         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32895
32896         Update to Unicode 5.1.0.
32897         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32898         code transform.
32899         * lib/uniname/uniname.c (unicode_character_name,
32900         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32901         * lib/uniname/uninames.h: Regenerated.
32902         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32903
32904 2009-02-07  Bruno Haible  <bruno@clisp.org>
32905
32906         Merge gen-ctype and gen-lbrk into a single program.
32907         * lib/gen-uni-tables.c: New file, incorporating
32908         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32909         Add directory prefixes to the names of the generated files.
32910         * lib/unictype/gen-ctype.c: Remove file.
32911         * lib/unilbrk/gen-lbrk.c: Remove file.
32912         * modules/gen-uni-tables: New file.
32913         * modules/unictype/gen-ctype: Remove file.
32914         * modules/unilbrk/gen-lbrk: Remove file.
32915
32916 2009-02-07  Bruno Haible  <bruno@clisp.org>
32917
32918         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32919
32920         New module 'unistr/u32-strcoll'.
32921         * modules/unistr/u32-strcoll: New file.
32922         * lib/unistr/u32-strcoll.c: New file.
32923
32924         New module 'unistr/u16-strcoll'.
32925         * modules/unistr/u16-strcoll: New file.
32926         * lib/unistr/u16-strcoll.c: New file.
32927
32928         New module 'unistr/u8-strcoll'.
32929         * modules/unistr/u8-strcoll: New file.
32930         * lib/unistr/u8-strcoll.c: New file.
32931         * lib/unistr/u-strcoll.h: New file.
32932
32933 2009-02-07  Bruno Haible  <bruno@clisp.org>
32934
32935         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32936         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32937         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32938         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32939         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32940         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32941
32942 2009-02-07  Bruno Haible  <bruno@clisp.org>
32943
32944         Make 64-bit clean.
32945         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32946         output_combclass, output_bidi_category, output_decimal_digit,
32947         output_digit, output_numeric, output_mirror, output_scripts,
32948         output_ident_category): Use proper width specifier in format strings.
32949
32950 2009-02-07  Bruno Haible  <bruno@clisp.org>
32951
32952         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32953         failure behaviour.
32954
32955 2009-02-07  Jim Meyering  <meyering@redhat.com>
32956
32957         regex: avoid compilation failure with upcoming gcc-4.4
32958         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32959         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32960         "... error: integer overflow in preprocessor expression".
32961
32962 2009-02-05  Ben Pfaff  <blp@gnu.org>
32963
32964         Fix link errors on Windows when close module is used.
32965         * modules/close: Add $(LIB_CLOSE) to Link section.
32966         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32967         $(LIB_CLOSE) on Windows.
32968
32969 2009-02-05  Jim Meyering  <meyering@redhat.com>
32970
32971         still avoid unused-parameter warnings, but do it cleanly
32972         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32973         (get_fs_usage): Cast to void instead.
32974         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32975         (dev_from_mount_options, read_file_system_list): Cast to void.
32976         Prompted by Bruno Haible.
32977
32978 2009-02-04  Jim Meyering  <meyering@redhat.com>
32979
32980         fsusage.c: correct copyright year
32981         * lib/fsusage.c: Reflect year in which the change is pushed into
32982
32983         avoid misc. warnings
32984         * lib/fsusage.c (UNUSED_PARAM): Define.
32985         (get_fs_usage): Mark parameter "disk" as unused.
32986         * lib/getugroups.c (getgrent): Use "void" in prototype.
32987         * lib/mountlist.c: Mark unused parameters.
32988         (read_file_system_list): Declare a local with "const".
32989         * lib/nanosleep.c (getnow): Declare static.
32990         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32991
32992         dirfd: set errno upon failure
32993         * lib/dirfd.c: Include <errno.h>.
32994         Set errno to ENOTSUP when returning -1.
32995         * modules/dirfd (Depends-on): Add errno.
32996         Suggested by John Kodis <kodis@comcast.net>.
32997
32998 2009-02-01  Bruno Haible  <bruno@clisp.org>
32999
33000         Don't assume sizeof (long) >= sizeof (void *).
33001         * lib/memcmp.c: Include stdint.h.
33002         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33003         srcp2 to 'const byte *'.
33004         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33005         types to uintptr_t.
33006         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33007         * modules/memcmp (Depends-on): Add stdint.
33008         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33009
33010 2009-01-30  Eric Blake  <ebb9@byu.net>
33011
33012         fix more require-before-expand issues
33013         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33014         expand, AC_PROG_AWK.
33015         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33016
33017 2009-01-28  Eric Blake  <ebb9@byu.net>
33018
33019         version-etc: use consistent URL formatting
33020         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33021         Improve formatting.  Use fputs for string without %.
33022
33023 2009-01-28  Jim Meyering  <meyering@redhat.com>
33024
33025         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33026         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33027         "underquoted definition of NAME" from autoconf-2.59.
33028
33029 2009-01-28  Bruno Haible  <bruno@clisp.org>
33030
33031         * doc/gnulib.texi: Add "Obsolete modules" to index.
33032
33033 2009-01-28  Jim Meyering  <meyering@redhat.com>
33034
33035         useless-if-before-free: recognize more variants
33036         * build-aux/useless-if-before-free: Also recognize e.g.,
33037         if (NULL != p) free (p);
33038
33039 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33040
33041         test-getaddrinfo: skip (don't fail) this test when there's no network
33042         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33043         on the presumption that it means you lack network access.
33044
33045 2009-01-26  Jim Meyering  <meyering@redhat.com>
33046
33047         fflush: avoid warnings on modern systems
33048         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33049         pos and result, into scopes where they're used.
33050
33051 2009-01-26  Eric Blake  <ebb9@byu.net>
33052
33053         Silence warning reintroduced by recent extensions patch.
33054         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33055         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33056         autoconf.
33057
33058         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33059         * m4/00gnulib.m4: New file.
33060         * gnulib-tool (func_get_filelist): Always use it.
33061         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33062         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33063
33064 2009-01-25  Bruno Haible  <bruno@clisp.org>
33065
33066         Make test-quotearg work on MacOS X and AIX.
33067         * tests/test-quotearg.sh: New file.
33068         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33069         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33070         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33071         include <libintl.h>.
33072         (fake_locale): Remove variable.
33073         (gettext, dgettext, dcgettext): Remove functions.
33074         (main): Instead of setting a fake locale, set a real locale. Call
33075         textdomain and bindtextdomain.
33076         * modules/quotearg-tests (Files): Add the new files.
33077         (Depends-on): Add gettext, setenv, unsetenv.
33078         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33079         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33080         Augment TESTS_ENVIRONMENT.
33081
33082 2009-01-25  Bruno Haible  <bruno@clisp.org>
33083
33084         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33085         fr_FR.ISO8859-1 locale on MacOS X.
33086         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33087         ja_JP.eucJP locale on MacOS X.
33088         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33089         zh_CN.GB18030 locale on MacOS X.
33090
33091 2009-01-25  Bruno Haible  <bruno@clisp.org>
33092
33093         Avoid link errors on MacOS X 10.3.
33094         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33095         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33096
33097 2009-01-25  Bruno Haible  <bruno@clisp.org>
33098
33099         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33100         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33101         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33102         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33103         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33104         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33105         posix_spawnattr_init, posix_spawnattr_setsigmask,
33106         posix_spawnattr_setflags, posix_spawnattr_destroy.
33107
33108         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33109         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33110         * modules/execute (Files): Remove m4/posix_spawn.m4.
33111         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33112         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33113         posix_spawnattr_init, posix_spawnattr_setsigmask,
33114         posix_spawnattr_setflags, posix_spawnattr_destroy.
33115
33116 2009-01-25  Bruno Haible  <bruno@clisp.org>
33117
33118         * lib/glthread/threadlib.c: Include <stdlib.h>.
33119
33120 2009-01-25  Bruno Haible  <bruno@clisp.org>
33121
33122         * lib/glthread/threadlib.c (dummy): New declaration.
33123
33124 2009-01-25  Bruno Haible  <bruno@clisp.org>
33125
33126         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33127         multibyte characters also for the GB18030 encoding. Don't crash when
33128         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33129
33130 2009-01-25  Bruno Haible  <bruno@clisp.org>
33131
33132         Avoid redefining 'struct random_data' on OSF/1 5.1.
33133         * lib/stdlib.in.h: Include <random.h> if it exists.
33134         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33135         HAVE_RANDOM_H. Include <random.h> when testing whether
33136         'struct random_data' exists.
33137         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33138
33139 2009-01-25  Bruno Haible  <bruno@clisp.org>
33140
33141         Don't install charset.alias on MacOS X >= 10.3.
33142         * lib/localcharset.c (DARWIN7): New macro.
33143         (get_charset_aliases): Hardcode the result for Darwin7.
33144         * modules/localcharset (install-exec-local): Don't install
33145         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33146
33147 2009-01-25  Bruno Haible  <bruno@clisp.org>
33148
33149         Don't install charset.alias on mingw and Cygwin.
33150         * modules/localcharset (install-exec-local): Don't install
33151         charset.alias on mingw and Cygwin, if the file does not yet exist.
33152         The result for these platforms is hardcoded in localcharset.c.
33153
33154 2009-01-25  Bruno Haible  <bruno@clisp.org>
33155
33156         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33157         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33158         before requiring AC_USE_SYSTEM_EXTENSIONS.
33159
33160 2009-01-25  Jim Meyering  <meyering@redhat.com>
33161
33162         c-strtod: avoid warnings
33163         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33164         "assignment discards qualifiers from pointer target type" warnings.
33165
33166 2009-01-24  Bruno Haible  <bruno@clisp.org>
33167
33168         Add support for non-UTF-8 locales on MacOS X.
33169         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33170         canonical encodings. For Darwin 7 and newer, don't map traditional
33171         encodings to UTF-8.
33172         Reported by Vincent Lefevre <vincent@vinc17.org>
33173         at <http://savannah.gnu.org/bugs/?25235>.
33174
33175 2009-01-24  Bruno Haible  <bruno@clisp.org>
33176
33177         * doc/gnulib.texi (Obsolete modules): New section.
33178         Reported by Mike Frysinger <vapier@gentoo.org>.
33179
33180 2009-01-24  Bruno Haible  <bruno@clisp.org>
33181
33182         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33183         (%.dvi): New rule.
33184
33185 2009-01-24  Bruno Haible  <bruno@clisp.org>
33186
33187         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33188         Reported by Eric Blake.
33189
33190 2009-01-24  Bruno Haible  <bruno@clisp.org>
33191
33192         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33193         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33194         Reported by Gary V. Vaughan <gary@gnu.org>.
33195
33196 2009-01-24  Bruno Haible  <bruno@clisp.org>
33197
33198         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33199
33200 2009-01-23  Bruno Haible  <bruno@clisp.org>
33201
33202         Make c-strtod, c-strtold usable in libraries.
33203         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33204         (C_STRTOD): Call strdup instead of xstrdup.
33205         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33206         * modules/c-strtold (Depends-on): Likewise.
33207         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33208         * NEWS: Mention the change.
33209         Reported by Michael Gold <mgold@ncf.ca>.
33210
33211 2009-01-23  Jim Meyering  <meyering@redhat.com>
33212
33213         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33214         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33215         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33216
33217 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33218
33219         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33220         GNU CoreUtils.
33221         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33222         * modules/version-etc (Description): Update.
33223
33224 2009-01-22  Bruno Haible  <bruno@clisp.org>
33225
33226         Cache the C locale object.
33227         * lib/c-strtod.c (c_locale_cache): New variable.
33228         (c_locale): New function.
33229         (C_STRTOD): Use it, and don't call freelocale.
33230         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33231         Suggested by Paolo Bonzini.
33232
33233 2009-01-21  Bruno Haible  <bruno@clisp.org>
33234
33235         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33236         conditions other than overflow.
33237
33238 2009-01-21  Bruno Haible  <bruno@clisp.org>
33239
33240         * lib/c-strtod.c: Include errno.h.
33241         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33242         value from STRTOD_L and STRTOD.
33243
33244 2009-01-21  Bruno Haible  <bruno@clisp.org>
33245         and Jim Meyering  <meyering@redhat.com>
33246
33247         nanosleep: skip configure test (fail it) for apple universal builds
33248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33249         universal builds, assume that nanosleep does not work.
33250         * modules/nanosleep (Depends-on): Add multiarch.
33251
33252         mktime: skip configure test (fail it) for apple universal builds
33253         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33254         universal builds, assume that mktime does not work.
33255         * modules/mktime (Depends-on): Add multiarch.
33256
33257 2009-01-21  Eric Blake  <ebb9@byu.net>
33258
33259         multiarch: avoid expand-before-require warning
33260         * modules/multiarch (configure.ac): Require, rather than expand,
33261         gl_MULTIARCH.
33262         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33263         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33264         enforce that all clients require it.  Partial reversion of
33265         2008-12-29 patch.
33266
33267         error: avoid expand-before-require warning
33268         * modules/errno (configure.ac): Require, rather than expand,
33269         gl_HEADER_ERRNO_H.
33270         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33271         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33272         enforce that all clients require it.
33273
33274         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33275         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33276         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33277         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33278
33279 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33280
33281         Revert:
33282         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33283
33284         regex: do not depend on obsolete modules.
33285         * modules/regex: Remove memcmp and memmove.
33286
33287 2009-01-20  Bruno Haible  <bruno@clisp.org>
33288
33289         Make the 'link' module link on Windows NT 4.
33290         * lib/link.c (_WIN32_WINNT): Don't define.
33291         (CreateHardLinkFuncType): New type.
33292         (CreateHardLinkFunc, initialized): New variables.
33293         (initialize): New function.
33294         (link): Invoke CreateHardLink indirectly through the function pointer.
33295
33296 2009-01-20  Bruno Haible  <bruno@clisp.org>
33297
33298         Fix compilation failure on mingw.
33299         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33300
33301 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33302
33303         * doc/c-strtod.texi: Mention a couple of restrictions.
33304
33305 2009-01-20  Jim Meyering  <meyering@redhat.com>
33306
33307         gettimeofday: move more declarations out of functions
33308         * lib/gettimeofday.c: Move extern declarations of tzset and
33309         gmtime out of containing functions.  Prompted by Bruno Haible.
33310
33311 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33312
33313         regex: do not depend on obsolete modules.
33314         * modules/regex: Remove memcmp and memmove.
33315
33316 2009-01-19  Bruno Haible  <bruno@clisp.org>
33317
33318         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33319         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33320         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33321         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33322         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33323
33324 2009-01-19  Bruno Haible  <bruno@clisp.org>
33325
33326         * tests/test-link.c: Include <errno.h>.
33327         (main): Exit with code 77 when a hard link cannot be created due to
33328         the file system.
33329         * tests/test-link.sh: Skip test when a hard link cannot be created due
33330         to the file system.
33331         Suggested by Eric Blake.
33332
33333 2009-01-19  Martin Lambers  <marlam@marlam.de>
33334
33335         * modules/link-tests: New file.
33336         * tests/test-link.sh: New file.
33337         * tests/test-link.c: New file.
33338
33339 2009-01-19  Eric Blake  <ebb9@byu.net>
33340
33341         doc: mention another function added in cygwin 1.7.0
33342         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33343         Another new function in cygwin 1.7.
33344
33345 2009-01-19  Bruno Haible  <bruno@clisp.org>
33346
33347         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33348         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33349         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33350         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33351         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33352         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33353         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33354         * m4/md4.m4 (gl_MD4): Likewise.
33355         * m4/md5.m4 (gl_MD5): Likewise.
33356         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33357         * m4/sha1.m4 (gl_SHA1): Likewise.
33358         * m4/sha256.m4 (gl_SHA256): Likewise.
33359         * m4/sha512.m4 (gl_SHA512): Likewise.
33360
33361 2009-01-19  Bruno Haible  <bruno@clisp.org>
33362
33363         * modules/uniname/uniname-tests (Depends-on): Add progname.
33364         * tests/uniname/test-uninames.c: Include progname.h.
33365         (main): Call set_program_name.
33366
33367         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33368         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33369         (main): Call set_program_name.
33370
33371         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33372         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33373         (main): Call set_program_name.
33374
33375         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33376         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33377         (main): Call set_program_name.
33378
33379         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33380         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33381         (main): Call set_program_name.
33382
33383         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33384         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33385         (main): Call set_program_name.
33386
33387         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33388         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33389         (main): Call set_program_name.
33390
33391         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33392         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33393         (main): Call set_program_name.
33394
33395         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33396         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33397         (main): Call set_program_name.
33398
33399 2009-01-19  Eric Blake  <ebb9@byu.net>
33400
33401         test-unistd: test previous patch
33402         * tests/test-unistd.c: Test *_FILENO macros.
33403
33404         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33405         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33406         Guarantee a definition.
33407         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33408         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33409         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33410         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33411         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33412         Likewise.
33413         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33414         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33415         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33416         Likewise.
33417         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33418         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33419         (STDERR_FILENO): Likewise.
33420         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33421         (STDERR_FILENO): Likewise.
33422         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33423         (STDERR_FILENO): Likewise.
33424         Reported by Elbert Pol.
33425
33426 2009-01-19  Eric Blake  <ebb9@byu.net>
33427
33428         doc: mention more functions added in cygwin 1.7.0
33429         * doc/posix-functions/abort.texi (abort): Update wording related
33430         to cygwin.
33431         * doc/posix-functions/daylight.texi (daylight): Likewise.
33432         * doc/posix-functions/optarg.texi (optarg): Likewise.
33433         * doc/posix-functions/optarg.texi (opterr): Likewise.
33434         * doc/posix-functions/optarg.texi (optind): Likewise.
33435         * doc/posix-functions/optarg.texi (optopt): Likewise.
33436         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33437         worked in 1.5.x, and was withdrawn in 1.7.
33438         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33439         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33440         cygwin versions.
33441         * doc/posix-functions/perror.texi (perror): Likewise.
33442         * doc/posix-functions/printf.texi (printf): Likewise.
33443         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33444         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33445         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33446         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33447         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33448         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33449         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33450         Likewise.
33451         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33452         Likewise.
33453         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33454         this function.
33455         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33456         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33457         Likewise.
33458         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33459         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33460         * doc/posix-functions/confstr.texi (confstr): Likewise.
33461         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33462         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33463         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33464         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33465         * doc/posix-functions/fputws.texi (fputws): Likewise.
33466         * doc/posix-functions/fwide.texi (fwide): Likewise.
33467         * doc/posix-functions/getwc.texi (getwc): Likewise.
33468         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33469         * doc/posix-functions/putwc.texi (putwc): Likewise.
33470         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33471         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33472         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33473         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33474         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33475         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33476         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33477         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33478         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33479         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33480         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33481
33482 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33483
33484         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33485         * lib/ioctl.c: Include <sys/ioctl.h>.
33486
33487 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33488
33489         * modules/getdate-tests (Depends-on): Add progname.
33490         * tests/test-getdate.c: Use progname module, to avoid link errors
33491         on non-glibc systems.
33492
33493 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33494
33495         * modules/filenamecat-tests (Depends-on): Add progname.
33496         * modules/fstrcmp-tests (Depends-on): Likewise.
33497
33498         * tests/test-filenamecat.c: Use progname module, to avoid link
33499         errors on non-glibc systems.
33500         * tests/test-fstrcmp.c: Likewise.
33501
33502 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33503
33504         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33505         * lib/gettimeofday.c: Move extern declaration out of function.
33506
33507 2009-01-18  Bruno Haible  <bruno@clisp.org>
33508
33509         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33510         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33511         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33512
33513 2009-01-18  Bruno Haible  <bruno@clisp.org>
33514
33515         * lib/strftime.c (MEMPCPY): Remove unused macro.
33516         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33517
33518 2009-01-18  Martin Lambers  <marlam@marlam.de>
33519
33520         New module 'link'.
33521         * lib/unistd.in.h (link): New declaration.
33522         * lib/link.c: New file.
33523         * m4/link.m4: New file.
33524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33525         HAVE_LINK.
33526         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33527         * modules/link: New file.
33528         * doc/posix-functions/link.texi: Mention the new module.
33529
33530 2009-01-18  Bruno Haible  <bruno@clisp.org>
33531
33532         * tests/test-avltree_list.c (main): Call set_program_name.
33533         * tests/test-avltree_oset.c (main): Likewise.
33534         * tests/test-obstack-printf.c: Include progname.h.
33535         (main): Call set_program_name.
33536         * tests/test-quotearg.c: Include progname.h.
33537         (main): Call set_program_name.
33538         * tests/test-xmemdup0.c: Include progname.h.
33539         (main): Call set_program_name.
33540
33541 2009-01-18  Bruno Haible  <bruno@clisp.org>
33542
33543         New module 'alphasort'.
33544         * lib/dirent.in.h (alphasort): New declaration.
33545         * lib/alphasort.c: New file, from glibc with modifications.
33546         * m4/alphasort.m4: New file.
33547         * modules/alphasort: New file.
33548         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33549         HAVE_ALPHASORT.
33550         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33551         HAVE_ALPHASORT.
33552         * doc/posix-functions/alphasort.texi: Mention the new module and the
33553         portability problems.
33554
33555 2009-01-18  Bruno Haible  <bruno@clisp.org>
33556
33557         New module 'scandir'.
33558         * lib/dirent.in.h (scandir): New declaration.
33559         * lib/scandir.c: New file, from glibc with modifications.
33560         * m4/scandir.m4: New file.
33561         * modules/scandir: New file.
33562         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33563         HAVE_SCANDIR.
33564         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33565         HAVE_SCANDIR.
33566         * doc/posix-functions/scandir.texi: Mention the new module and the
33567         portability problems.
33568
33569 2009-01-17  Bruno Haible  <bruno@clisp.org>
33570
33571         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33572         Update documentation.
33573         (func_remove_suffix): Escape all dots in the suffix. Update
33574         documentation.
33575         (func_filter_filelist): Update documentation.
33576         Reported by Ralf Wildenhues.
33577
33578 2009-01-17  Bruno Haible  <bruno@clisp.org>
33579
33580         * modules/dprintf-posix-tests: New file.
33581         * tests/test-dprintf-posix.sh: New file.
33582         * tests/test-dprintf-posix.c: New file.
33583
33584         New modules 'dprintf', 'dprintf-posix'.
33585         * lib/stdio.in.h (dprintf): New declaration.
33586         * lib/dprintf.c: New file.
33587         * m4/dprintf.m4: New file.
33588         * m4/dprintf-posix.m4: New file.
33589         * modules/dprintf: New file.
33590         * modules/dprintf-posix: New file.
33591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33592         HAVE_DPRINTF, REPLACE_DPRINTF.
33593         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33594         HAVE_DPRINTF, REPLACE_DPRINTF.
33595         * doc/posix-functions/dprintf.texi: Mention the new modules.
33596
33597 2009-01-17  Bruno Haible  <bruno@clisp.org>
33598
33599         * modules/vdprintf-posix-tests: New file.
33600         * tests/test-vdprintf-posix.sh: New file.
33601         * tests/test-vdprintf-posix.c: New file.
33602
33603         New modules 'vdprintf', 'vdprintf-posix'.
33604         * lib/stdio.in.h (vdprintf): New declaration.
33605         * lib/vdprintf.c: New file.
33606         * m4/vdprintf.m4: New file.
33607         * m4/vdprintf-posix.m4: New file.
33608         * modules/vdprintf: New file.
33609         * modules/vdprintf-posix: New file.
33610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33611         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33612         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33613         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33614         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33615
33616 2009-01-17  Bruno Haible  <bruno@clisp.org>
33617
33618         Fix replacement of fopen on mingw.
33619         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33620         mingw.
33621
33622 2009-01-17  Bruno Haible  <bruno@clisp.org>
33623
33624         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33625         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33626
33627 2009-01-17  Bruno Haible  <bruno@clisp.org>
33628
33629         Avoid test-fflush2.sh failure on mingw.
33630         * tests/test-fflush2.c: Include binary-io.h.
33631         (main): Put standard input into binary mode.
33632         * modules/fflush-tests (Depends-on): Add binary-io.
33633
33634 2009-01-17  Bruno Haible  <bruno@clisp.org>
33635
33636         * lib/wchar.in.h: In another particular situation, include only the
33637         system's <wchar.h> file.
33638         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33639         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33640         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33641
33642 2009-01-17  Bruno Haible  <bruno@clisp.org>
33643
33644         Support for stripping executables in --enable-relocatable.
33645         * build-aux/install-reloc: Expect one more argument, or an environment
33646         variable RELOC_STRIP_PROG. If set, strip the destination program and
33647         its wrapper.
33648         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33649         RELOC_STRIP_PROG.
33650         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33651         to set RELOCATABLE_STRIP.
33652         * NEWS: Mention the new Makefile requirement.
33653
33654 2009-01-17  Bruno Haible  <bruno@clisp.org>
33655
33656         * build-aux/install-reloc: Remove debugging information left over by
33657         C compiler on MacOS X.
33658
33659 2009-01-17  Bruno Haible  <bruno@clisp.org>
33660
33661         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33662         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33663         _NSGetExecutablePath.
33664
33665 2009-01-16  Jim Meyering  <meyering@redhat.com>
33666
33667         strerror: avoid warnings about discarding "const"
33668         * lib/strerror.c (rpl_strerror): Instead of returning a const
33669         string from each and every "case", use a variable, and add a single
33670         cast after the switch.
33671
33672 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33673
33674         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33675
33676 2009-01-16  Bruno Haible  <bruno@clisp.org>
33677
33678         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33679         array initializer syntax that also works in C++ mode.
33680         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33681
33682 2009-01-16  Jim Meyering  <meyering@redhat.com>
33683
33684         poll: suppress a warning
33685         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33686         to ignore "...unsigned expression < 0 is always false" warnings.
33687
33688 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33689
33690         poll: remove declarations of unused variables
33691         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33692         sockbuf and optlen.
33693
33694 2009-01-15  Bruno Haible  <bruno@clisp.org>
33695
33696         Make fflush-after-ungetc POSIX compliant on BSD systems.
33697         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33698         (clear_ungetc_buffer): Implement also for other systems.
33699         (rpl_fflush): On glibc systems, invoke
33700         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33701         clear_ungetc_buffer after fetching the stream's position, not before.
33702
33703 2009-01-15  Bruno Haible  <bruno@clisp.org>
33704
33705         Make fflush-after-ungetc POSIX compliant on glibc systems.
33706         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33707         after ungetc.
33708         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33709         (rpl_fflush): On glibc systems, simply call the system's fflush
33710         function after clearing the ungetc buffer.
33711         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33712         Instead, lseek only to the end of file, then use the system's fseeko
33713         for the rest. On glibc systems, reset the EOF indicator bit.
33714
33715 2009-01-15  Jim Meyering  <meyering@redhat.com>
33716
33717         openmp.m4: revert quote-adding change, for portability to older autoconf
33718         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33719         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33720         Simon Josefsson noticed the problem when using autoconf-2.61.
33721
33722 2009-01-15  Bruno Haible  <bruno@clisp.org>
33723
33724         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33725         * tests/test-fflush2.c (ASSERT): Always fail.
33726         (main): Add two tests for fflush() after ungetc(), taking into account
33727         the Austin Group's clarification.
33728         Suggested by Eric Blake.
33729
33730 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33731
33732         mktime.m4: remove K&R-style function prototypes
33733         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33734         for the Sun C++ compiler.
33735
33736 2009-01-14  Bruno Haible  <bruno@clisp.org>
33737
33738         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33739         while including <wchar.h>.
33740         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33741         the system's <wchar.h> file.
33742         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33743
33744 2009-01-14  Bruno Haible  <bruno@clisp.org>
33745
33746         * m4/csharp.m4: Don't mention gettext on the serial number line.
33747         * m4/csharpexec.m4: Likewise.
33748         * m4/eaccess.m4: Likewise.
33749         * m4/javaexec.m4: Likewise.
33750         * m4/sig_atomic_t.m4: Likewise.
33751         * m4/tmpdir.m4: Likewise.
33752         * m4/intldir.m4: Bump gettext version.
33753         * m4/lib-ld.m4: Likewise.
33754
33755 2009-01-14  Bruno Haible  <bruno@clisp.org>
33756
33757         * lib/progname.c (set_program_name): Add more comments.
33758         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33759
33760 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33761
33762         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33763         were sys/stat.h does not define it.
33764
33765 2009-01-14  Jim Meyering  <meyering@redhat.com>
33766
33767         many *.m4 files: improve m4 quoting
33768         99% of this change was performed by running the following commands:
33769         git ls-files | grep '\.m4$' | xargs perl -pi \
33770           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33771           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33772           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33773           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33774         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33775         The remainder were to add Copyright dates, increment serial numbers,
33776         undo some changes in comments, exclude m4/intl.m4, and add quotes
33777         around the "1" in ",1" where the unusual spacing prohibited the
33778         above regexps from doing the job.  For more details, see
33779         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33780         * m4/acl.m4: Modified.
33781         * m4/afs.m4: Likewise.
33782         * m4/alloca.m4: Likewise.
33783         * m4/argp.m4: Likewise.
33784         * m4/argz.m4: Likewise.
33785         * m4/atexit.m4: Likewise.
33786         * m4/bison-i18n.m4: Likewise.
33787         * m4/bison.m4: Likewise.
33788         * m4/byteswap.m4: Likewise.
33789         * m4/c-stack.m4: Likewise.
33790         * m4/c-strtod.m4: Likewise.
33791         * m4/calloc.m4: Likewise.
33792         * m4/canonicalize-lgpl.m4: Likewise.
33793         * m4/chown.m4: Likewise.
33794         * m4/clock_time.m4: Likewise.
33795         * m4/codeset.m4: Likewise.
33796         * m4/copy-file.m4: Likewise.
33797         * m4/csharp.m4: Likewise.
33798         * m4/csharpcomp.m4: Likewise.
33799         * m4/csharpexec.m4: Likewise.
33800         * m4/d-ino.m4: Likewise.
33801         * m4/d-type.m4: Likewise.
33802         * m4/dirfd.m4: Likewise.
33803         * m4/double-slash-root.m4: Likewise.
33804         * m4/eaccess.m4: Likewise.
33805         * m4/eealloc.m4: Likewise.
33806         * m4/environ.m4: Likewise.
33807         * m4/errno_h.m4: Likewise.
33808         * m4/euidaccess.m4: Likewise.
33809         * m4/execute.m4: Likewise.
33810         * m4/fatal-signal.m4: Likewise.
33811         * m4/fchdir.m4: Likewise.
33812         * m4/fcntl_h.m4: Likewise.
33813         * m4/fileblocks.m4: Likewise.
33814         * m4/filenamecat.m4: Likewise.
33815         * m4/findprog.m4: Likewise.
33816         * m4/flexmember.m4: Likewise.
33817         * m4/fnmatch.m4: Likewise.
33818         * m4/fopen.m4: Likewise.
33819         * m4/fpending.m4: Likewise.
33820         * m4/fprintf-posix.m4: Likewise.
33821         * m4/free.m4: Likewise.
33822         * m4/frexp.m4: Likewise.
33823         * m4/frexpl.m4: Likewise.
33824         * m4/fsusage.m4: Likewise.
33825         * m4/ftruncate.m4: Likewise.
33826         * m4/gc-camellia.m4: Likewise.
33827         * m4/gc-random.m4: Likewise.
33828         * m4/gc.m4: Likewise.
33829         * m4/getaddrinfo.m4: Likewise.
33830         * m4/getcwd-abort-bug.m4: Likewise.
33831         * m4/getcwd-path-max.m4: Likewise.
33832         * m4/getdate.m4: Likewise.
33833         * m4/getdomainname.m4: Likewise.
33834         * m4/getgroups.m4: Likewise.
33835         * m4/gethostname.m4: Likewise.
33836         * m4/gethrxtime.m4: Likewise.
33837         * m4/getline.m4: Likewise.
33838         * m4/getloadavg.m4: Likewise.
33839         * m4/getndelim2.m4: Likewise.
33840         * m4/getpass.m4: Likewise.
33841         * m4/gettext.m4: Likewise.
33842         * m4/gettime.m4: Likewise.
33843         * m4/gettimeofday.m4: Likewise.
33844         * m4/gnulib-common.m4: Likewise.
33845         * m4/group-member.m4: Likewise.
33846         * m4/host-os.m4: Likewise.
33847         * m4/iconv.m4: Likewise.
33848         * m4/iconv_open.m4: Likewise.
33849         * m4/inet_ntop.m4: Likewise.
33850         * m4/inet_pton.m4: Likewise.
33851         * m4/inline.m4: Likewise.
33852         * m4/intldir.m4: Likewise.
33853         * m4/intlmacosx.m4: Likewise.
33854         * m4/intmax.m4: Likewise.
33855         * m4/intmax_t.m4: Likewise.
33856         * m4/inttypes.m4: Likewise.
33857         * m4/inttypes_h.m4: Likewise.
33858         * m4/inttypes-pri.m4: Likewise.
33859         * m4/isapipe.m4: Likewise.
33860         * m4/isnand.m4: Likewise.
33861         * m4/isnanf.m4: Likewise.
33862         * m4/isnanl.m4: Likewise.
33863         * m4/javacomp.m4: Likewise.
33864         * m4/javaexec.m4: Likewise.
33865         * m4/jm-winsz1.m4: Likewise.
33866         * m4/jm-winsz2.m4: Likewise.
33867         * m4/lchown.m4: Likewise.
33868         * m4/lcmessage.m4: Likewise.
33869         * m4/ldexpl.m4: Likewise.
33870         * m4/lib-ld.m4: Likewise.
33871         * m4/lib-link.m4: Likewise.
33872         * m4/libsigsegv.m4: Likewise.
33873         * m4/link-follow.m4: Likewise.
33874         * m4/localcharset.m4: Likewise.
33875         * m4/locale-fr.m4: Likewise.
33876         * m4/locale-ja.m4: Likewise.
33877         * m4/locale-tr.m4: Likewise.
33878         * m4/locale-zh.m4: Likewise.
33879         * m4/lock.m4: Likewise.
33880         * m4/longlong.m4: Likewise.
33881         * m4/ls-mntd-fs.m4: Likewise.
33882         * m4/lstat.m4: Likewise.
33883         * m4/malloc.m4: Likewise.
33884         * m4/mathl.m4: Likewise.
33885         * m4/mbrtowc.m4: Likewise.
33886         * m4/mbstate_t.m4: Likewise.
33887         * m4/mbswidth.m4: Likewise.
33888         * m4/memchr.m4: Likewise.
33889         * m4/memcmp.m4: Likewise.
33890         * m4/memcpy.m4: Likewise.
33891         * m4/memmem.m4: Likewise.
33892         * m4/memmove.m4: Likewise.
33893         * m4/mempcpy.m4: Likewise.
33894         * m4/memrchr.m4: Likewise.
33895         * m4/memset.m4: Likewise.
33896         * m4/minmax.m4: Likewise.
33897         * m4/mkdir-slash.m4: Likewise.
33898         * m4/mkdtemp.m4: Likewise.
33899         * m4/mktime.m4: Likewise.
33900         * m4/mmap-anon.m4: Likewise.
33901         * m4/mountlist.m4: Likewise.
33902         * m4/nanosleep.m4: Likewise.
33903         * m4/nls.m4: Likewise.
33904         * m4/nocrash.m4: Likewise.
33905         * m4/open.m4: Likewise.
33906         * m4/openat.m4: Likewise.
33907         * m4/openmp.m4: Likewise.
33908         * m4/pathmax.m4: Likewise.
33909         * m4/perl.m4: Likewise.
33910         * m4/physmem.m4: Likewise.
33911         * m4/pipe.m4: Likewise.
33912         * m4/po.m4: Likewise.
33913         * m4/poll.m4: Likewise.
33914         * m4/posixtm.m4: Likewise.
33915         * m4/posixver.m4: Likewise.
33916         * m4/printf-frexp.m4: Likewise.
33917         * m4/printf-frexpl.m4: Likewise.
33918         * m4/printf-posix.m4: Likewise.
33919         * m4/printf-posix-rpl.m4: Likewise.
33920         * m4/printf.m4: Likewise.
33921         * m4/progtest.m4: Likewise.
33922         * m4/putenv.m4: Likewise.
33923         * m4/readline.m4: Likewise.
33924         * m4/readlink.m4: Likewise.
33925         * m4/readutmp.m4: Likewise.
33926         * m4/realloc.m4: Likewise.
33927         * m4/regex.m4: Likewise.
33928         * m4/relocatable.m4: Likewise.
33929         * m4/relocatable-lib.m4: Likewise.
33930         * m4/rename-dest-slash.m4: Likewise.
33931         * m4/rename.m4: Likewise.
33932         * m4/rmdir-errno.m4: Likewise.
33933         * m4/rmdir.m4: Likewise.
33934         * m4/roundf.m4: Likewise.
33935         * m4/roundl.m4: Likewise.
33936         * m4/rpmatch.m4: Likewise.
33937         * m4/save-cwd.m4: Likewise.
33938         * m4/selinux-selinux-h.m4: Likewise.
33939         * m4/setenv.m4: Likewise.
33940         * m4/settime.m4: Likewise.
33941         * m4/sig2str.m4: Likewise.
33942         * m4/sig_atomic_t.m4: Likewise.
33943         * m4/signalblocking.m4: Likewise.
33944         * m4/signbit.m4: Likewise.
33945         * m4/sigpipe.m4: Likewise.
33946         * m4/sockets.m4: Likewise.
33947         * m4/sockpfaf.m4: Likewise.
33948         * m4/st_dm_mode.m4: Likewise.
33949         * m4/stat-time.m4: Likewise.
33950         * m4/stdbool.m4: Likewise.
33951         * m4/stdint.m4: Likewise.
33952         * m4/stdint_h.m4: Likewise.
33953         * m4/stpcpy.m4: Likewise.
33954         * m4/stpncpy.m4: Likewise.
33955         * m4/strcase.m4: Likewise.
33956         * m4/strchrnul.m4: Likewise.
33957         * m4/strcspn.m4: Likewise.
33958         * m4/strdup.m4: Likewise.
33959         * m4/strftime.m4: Likewise.
33960         * m4/strndup.m4: Likewise.
33961         * m4/strnlen.m4: Likewise.
33962         * m4/strpbrk.m4: Likewise.
33963         * m4/strptime.m4: Likewise.
33964         * m4/strsep.m4: Likewise.
33965         * m4/strtod.m4: Likewise.
33966         * m4/strtoimax.m4: Likewise.
33967         * m4/strtok_r.m4: Likewise.
33968         * m4/strtol.m4: Likewise.
33969         * m4/strtoll.m4: Likewise.
33970         * m4/strtoul.m4: Likewise.
33971         * m4/strtoull.m4: Likewise.
33972         * m4/strtoumax.m4: Likewise.
33973         * m4/strverscmp.m4: Likewise.
33974         * m4/threadlib.m4: Likewise.
33975         * m4/timegm.m4: Likewise.
33976         * m4/tm_gmtoff.m4: Likewise.
33977         * m4/tmpdir.m4: Likewise.
33978         * m4/tmpfile.m4: Likewise.
33979         * m4/tzset.m4: Likewise.
33980         * m4/uintmax_t.m4: Likewise.
33981         * m4/unlinkdir.m4: Likewise.
33982         * m4/unlocked-io.m4: Likewise.
33983         * m4/uptime.m4: Likewise.
33984         * m4/userspec.m4: Likewise.
33985         * m4/utimbuf.m4: Likewise.
33986         * m4/utime.m4: Likewise.
33987         * m4/utimes-null.m4: Likewise.
33988         * m4/utimes.m4: Likewise.
33989         * m4/vararrays.m4: Likewise.
33990         * m4/vasnprintf.m4: Likewise.
33991         * m4/vfprintf-posix.m4: Likewise.
33992         * m4/vprintf-posix.m4: Likewise.
33993         * m4/wait-process.m4: Likewise.
33994         * m4/wchar_t.m4: Likewise.
33995         * m4/wint_t.m4: Likewise.
33996         * m4/write-any-file.m4: Likewise.
33997         * m4/yield.m4: Likewise.
33998
33999 2009-01-13  Bruno Haible  <bruno@clisp.org>
34000
34001         Avoid test-copy-file.sh failures when ACL support insufficient.
34002         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34003         TESTS_ENVIRONMENT.
34004         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34005         Reported by Jim Meyering.
34006
34007 2009-01-13  Bruno Haible  <bruno@clisp.org>
34008
34009         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34010         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34011         * modules/unistdio/u8-printf-parse (Files): Likewise.
34012         * modules/unistdio/u32-printf-parse (Files): Likewise.
34013         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34014
34015 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34016
34017         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34018         and m4/inttypes_h.m4 too.
34019
34020 2009-01-12  Eric Blake  <ebb9@byu.net>
34021
34022         tests: IRIX 6.2 cc can't compile -0.0 into .data
34023         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34024         rather than at compile-time.
34025         * tests/test-floorl.c (minus_zero): Likewise.
34026         * tests/test-frexpl.c (minus_zero): Likewise.
34027         * tests/test-isnan.c (minus_zerol): Likewise.
34028         * tests/test-isnanl.h (minus_zero): Likewise.
34029         * tests/test-ldexpl.c (minus_zero): Likewise.
34030         * tests/test-roundl.c (minus_zero): Likewise.
34031         * tests/test-signbit.c (minus_zerol): Likewise.
34032         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34033         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34034         * tests/test-truncl.c (minus_zero): Likewise.
34035         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34036         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34037         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34038
34039 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34040
34041         regex: fix glibc bug 9697
34042         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34043         handling.
34044
34045 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34046
34047         regex: fix glibc bug 697
34048         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34049         being NULL also if there are no backreferences.
34050
34051 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34052
34053         regex: merge glibc changes
34054         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34055         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34056         re_string_skip_chars, re_string_reconstruct): Likewise.
34057         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34058
34059 2009-01-07  Jim Meyering  <meyering@redhat.com>
34060
34061         poll: filter through cppi
34062         * lib/poll.c: Indent cpp directives to reflect nesting.
34063
34064 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34065
34066         poll: don't return uninitialized
34067         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34068
34069 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34070
34071         avoid compile failure on AIX 6.1
34072         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34073         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34074
34075 2009-01-04  Jim Meyering  <meyering@redhat.com>
34076
34077         remove duplicate inclusion of <stdio.h>
34078         * tests/test-fprintf-posix.c: Likewise.
34079         * tests/test-printf-posix.c: Likewise.
34080         * tests/test-snprintf-posix.c: Likewise.
34081         * tests/test-sprintf-posix.c: Likewise.
34082         * tests/test-vasprintf-posix.c: Likewise.
34083         * tests/test-vfprintf-posix.c: Likewise.
34084         * tests/test-vprintf-posix.c: Likewise.
34085         * tests/test-vsnprintf-posix.c: Likewise.
34086         * tests/test-vsprintf-posix.c: Likewise.
34087
34088 2009-01-03  Jim Meyering  <meyering@redhat.com>
34089
34090         gnulib-tool: fix sed-based filtering
34091         * gnulib-tool (func_filter_filelist): Remove extra backslash
34092         in sed_fff_filter definition.
34093
34094 2009-01-02  Jim Meyering  <meyering@redhat.com>
34095
34096         strftime: avoid compilation failure on Solaris 2.6
34097         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34098         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34099         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34100         be available.  Reported by Tom G. Christensen.  Details in
34101         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34102
34103 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34104             Bruno Haible  <bruno@clisp.org>
34105
34106         Speed up gnulib-tool by doing more string processing through shell
34107         built-ins.
34108         * gnulib-tool (fast_func_append): New variable.
34109         (func_remove_prefix, func_remove_suffix): New functions.
34110         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34111         (func_filter_filelist): New function.
34112         (func_get_dependencies): Use func_remove_suffix instead of sed.
34113         (func_get_automake_snippet): Use func_filter_filelist instead of a
34114         subshell and sed invocation.
34115
34116 2009-01-01  Bruno Haible  <bruno@clisp.org>
34117
34118         Fix a security bug.
34119         * gnulib-tool (func_import, import, update): Don't allow the characters
34120         '"', '$', '`', '\' in macro arguments that become part of commands that
34121         are evaluated.
34122
34123 2009-01-01  Bruno Haible  <bruno@clisp.org>
34124
34125         * gnulib-tool (func_reset_sigpipe): Add more comments.
34126
34127 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34128
34129         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34130         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34131         already know the answer.
34132
34133 2009-01-01  Jim Meyering  <meyering@redhat.com>
34134
34135         * lib/version-etc.c (version_etc_va): Update copyright year.
34136
34137 2008-12-30  Bruno Haible  <bruno@clisp.org>
34138
34139         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34140         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34141         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34142
34143 2008-12-29  Eric Blake  <ebb9@byu.net>
34144
34145         multiarch: avoid autoconf AC_REQUIRE bug
34146         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34147         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34148         2.63 and older.
34149         Reported by Bruno Haible, and analyzed in
34150         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34151
34152 2008-12-29  Bruno Haible  <bruno@clisp.org>
34153
34154         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34155         files in subdirectories correctly.
34156         Reported by Ralf Wildenhues.
34157
34158 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34159
34160         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34161         rather than 'join FILE -', for Solaris join.
34162
34163 2008-12-29  Bruno Haible  <bruno@clisp.org>
34164
34165         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34166         quoting.
34167         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34168         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34169         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34170         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34171         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34172         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34173         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34174         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34175         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34176         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34177         * m4/nls.m4 (AM_NLS): Likewise.
34178         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34179         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34180         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34181         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34182         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34183         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34184         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34185         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34186         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34187         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34188         * m4/xsize.m4 (gl_XSIZE): Likewise.
34189         Suggested by Jim Meyering.
34190
34191 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34192
34193         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34194         * lib/parse-duration.c: use a switch instead of cascading if's.
34195
34196 2008-12-29  Eric Blake  <ebb9@byu.net>
34197
34198         wchar.h: supply WEOF on Irix 5.3
34199         * lib/wchar.in.h (wint_t): Also supply WEOF.
34200         * lib/wctype.in.h (wint_t): Likewise.
34201         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34202         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34203         Reported by Tom G. Christensen.
34204
34205 2008-12-26  Bruno Haible  <bruno@clisp.org>
34206
34207         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34208         i486, i586, i686.
34209
34210 2008-12-26  Bruno Haible  <bruno@clisp.org>
34211
34212         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34213
34214 2008-12-26  Bruno Haible  <bruno@clisp.org>
34215
34216         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34217         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34218         not __STDC_CONSTANT_MACROS.
34219         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34220
34221 2008-12-25  Bruno Haible  <bruno@clisp.org>
34222
34223         Add support for universal builds to vasnprintf.
34224         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34225         universal builds, guess no.
34226         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34227         * modules/vasprintf-posix (Depends-on): Likewise.
34228         * modules/fprintf-posix (Depends-on): Likewise.
34229         * modules/vfprintf-posix (Depends-on): Likewise.
34230         * modules/snprintf-posix (Depends-on): Likewise.
34231         * modules/vsnprintf-posix (Depends-on): Likewise.
34232         * modules/sprintf-posix (Depends-on): Likewise.
34233         * modules/vsprintf-posix (Depends-on): Likewise.
34234         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34235         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34236         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34237         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34238         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34239         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34240         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34241
34242         Add support for universal builds to <inttypes.h>.
34243         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34244         _SCNu64_PREFIX): In Apple
34245         universal builds, define directly, using _LP64.
34246         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34247         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34248         * modules/inttypes (Depends-on): Add multiarch.
34249         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34250
34251         Add support for universal builds to <stdint.h>.
34252         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34253         universal builds, define directly, using _LP64.
34254         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34255         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34256         and size_t.
34257         * modules/stdint (Depends-on): Add multiarch.
34258         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34259
34260         New module 'multiarch'.
34261         * modules/multiarch: New file.
34262         * m4/multiarch.m4: New file.
34263
34264 2008-12-25  Bruno Haible  <bruno@clisp.org>
34265
34266         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34267
34268 2008-12-25  Bruno Haible  <bruno@clisp.org>
34269
34270         * modules/btowc (License): Relicense under LGPLv2+.
34271         * modules/mbsinit (License): Likewise.
34272         * modules/mbrtowc (License): Likewise.
34273         * modules/wcrtomb (License): Likewise.
34274         * modules/streq (License): Likewise.
34275         Reported by David Lutterkort <lutter@redhat.com>.
34276
34277 2008-12-23  Bruno Haible  <bruno@clisp.org>
34278
34279         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34280
34281 2008-12-23  Bruno Haible  <bruno@clisp.org>
34282
34283         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34284         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34285         GETADDRINFO_LIB, not in LIBS.
34286         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34287         * modules/canon-host (Link): Likewise.
34288         * NEWS: Mention the change.
34289         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34290         GETADDRINFO_LIB.
34291
34292 2008-12-22  Bruno Haible  <bruno@clisp.org>
34293
34294         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34295         * doc/posix-functions/iswalpha_l.texi: Likewise.
34296         * doc/posix-functions/iswblank_l.texi: Likewise.
34297         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34298         * doc/posix-functions/iswctype_l.texi: Likewise.
34299         * doc/posix-functions/iswdigit_l.texi: Likewise.
34300         * doc/posix-functions/iswgraph_l.texi: Likewise.
34301         * doc/posix-functions/iswlower_l.texi: Likewise.
34302         * doc/posix-functions/iswprint_l.texi: Likewise.
34303         * doc/posix-functions/iswpunct_l.texi: Likewise.
34304         * doc/posix-functions/iswspace_l.texi: Likewise.
34305         * doc/posix-functions/iswupper_l.texi: Likewise.
34306         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34307         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34308         * doc/posix-functions/open_wmemstream.texi: Likewise.
34309         * doc/posix-functions/swscanf.texi: Likewise.
34310         * doc/posix-functions/towctrans_l.texi: Likewise.
34311         * doc/posix-functions/towlower.texi: Likewise.
34312         * doc/posix-functions/towlower_l.texi: Likewise.
34313         * doc/posix-functions/towupper.texi: Likewise.
34314         * doc/posix-functions/towupper_l.texi: Likewise.
34315         * doc/posix-functions/vfwprintf.texi: Likewise.
34316         * doc/posix-functions/vfwscanf.texi: Likewise.
34317         * doc/posix-functions/vswscanf.texi: Likewise.
34318         * doc/posix-functions/vwprintf.texi: Likewise.
34319         * doc/posix-functions/vwscanf.texi: Likewise.
34320         * doc/posix-functions/wcpcpy.texi: Likewise.
34321         * doc/posix-functions/wcpncpy.texi: Likewise.
34322         * doc/posix-functions/wcscasecmp.texi: Likewise.
34323         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34324         * doc/posix-functions/wcscoll_l.texi: Likewise.
34325         * doc/posix-functions/wcsdup.texi: Likewise.
34326         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34327         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34328         * doc/posix-functions/wcsnlen.texi: Likewise.
34329         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34330         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34331         * doc/posix-functions/wctrans_l.texi: Likewise.
34332         * doc/posix-functions/wctype_l.texi: Likewise.
34333         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34334         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34335         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34336         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34337         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34338         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34339         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34340         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34341         * doc/glibc-functions/wcschrnul.texi: Likewise.
34342         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34343         * doc/glibc-functions/wcstod_l.texi: Likewise.
34344         * doc/glibc-functions/wcstof_l.texi: Likewise.
34345         * doc/glibc-functions/wcstol_l.texi: Likewise.
34346         * doc/glibc-functions/wcstold_l.texi: Likewise.
34347         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34348         * doc/glibc-functions/wcstoq.texi: Likewise.
34349         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34350         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34351         * doc/glibc-functions/wcstouq.texi: Likewise.
34352         * doc/glibc-functions/wmempcpy.texi: Likewise.
34353
34354 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34355             Eric Blake  <ebb9@byu.net>
34356             Paolo Bonzini  <bonzini@gnu.org>
34357             Bruno Haible  <bruno@clisp.org>
34358
34359         Make c-stack work on Haiku.
34360         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34361         (c_stack_action): Use SA_ONSTACK flag.
34362
34363 2008-12-22  Bruno Haible  <bruno@clisp.org>
34364
34365         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34366
34367 2008-12-22  Bruno Haible  <bruno@clisp.org>
34368
34369         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34370         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34371         being overridden.
34372         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34373         New macros.
34374         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34375         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34376         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34377         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34378
34379 2008-12-22  Bruno Haible  <bruno@clisp.org>
34380
34381         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34382         from test code.
34383
34384 2008-12-22  Eric Blake  <ebb9@byu.net>
34385
34386         Avoid gcc warnings on cygwin.
34387         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34388         Avoid unused variable.
34389         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34390         Likewise.
34391
34392 2008-12-22  Bruno Haible  <bruno@clisp.org>
34393
34394         Remove HAVE_MBRTOWC conditionals.
34395         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34396         (mbscasecmp): Assume mbrtowc function.
34397         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34398         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34399         * lib/mbschr.c: Include mbuiter.h unconditionally.
34400         (mbschr): Assume mbrtowc function.
34401         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34402         (mbscspn): Assume mbrtowc function.
34403         * lib/mbslen.c: Include mbuiter.h unconditionally.
34404         (mbslen): Assume mbrtowc function.
34405         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34406         (mbsncasecmp): Assume mbrtowc function.
34407         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34408         (mbsnlen): Assume mbrtowc function.
34409         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34410         (mbspbrk): Assume mbrtowc function.
34411         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34412         (mbspcasecmp): Assume mbrtowc function.
34413         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34414         (mbsrchr): Assume mbrtowc function.
34415         * lib/mbssep.c: Include mbuiter.h unconditionally.
34416         (mbssep): Assume mbrtowc function.
34417         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34418         (mbsspn): Assume mbrtowc function.
34419         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34420         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34421         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34422         (mbstok_r): Assume mbrtowc function.
34423         * lib/propername.c: Include mbuiter.h unconditionally.
34424         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34425         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34426         (trim2): Assume mbrtowc function.
34427         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34428         (mbsnwidth): Assume mbrtowc function.
34429         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34430         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34431         fallback definitions.
34432         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34433
34434 2008-12-22  Bruno Haible  <bruno@clisp.org>
34435
34436         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34437
34438 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34439
34440         * modules/regex: Request emulations for the mb*/wc* functions we need.
34441         * m4/regex.m4: Don't look for those functions here.
34442         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34443
34444 2008-12-22  Bruno Haible  <bruno@clisp.org>
34445
34446         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34447
34448 2008-12-21  Bruno Haible  <bruno@clisp.org>
34449
34450         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34451         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34452         (Include): Remove conditionalization.
34453         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34454         (Include): Remove conditionalization.
34455         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34456         (Include): Remove conditionalization.
34457         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34458         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34459         * NEWS: Mention the change.
34460         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34461         via Sergey Poznyakoff <gray@gnu.org.ua>.
34462
34463 2008-12-21  Bruno Haible  <bruno@clisp.org>
34464
34465         * MODULES.html.sh (Extended multibyte and wide character utilities
34466         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34467         wcrtomb, wcsrtombs.
34468         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34469         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34470         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34471         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34472
34473 2008-12-21  Bruno Haible  <bruno@clisp.org>
34474
34475         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34476
34477 2008-12-21  Bruno Haible  <bruno@clisp.org>
34478
34479         * modules/wcsnrtombs-tests: New file.
34480         * tests/test-wcsnrtombs1.sh: New file.
34481         * tests/test-wcsnrtombs2.sh: New file.
34482         * tests/test-wcsnrtombs3.sh: New file.
34483         * tests/test-wcsnrtombs4.sh: New file.
34484         * tests/test-wcsnrtombs.c: New file.
34485
34486         New module 'wcsnrtombs'.
34487         * lib/wchar.in.h (wcsnrtombs): New declaration.
34488         * lib/wcsnrtombs.c: New file.
34489         * lib/wcsrtombs-state.c: New file.
34490         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34491         (internal_state): Remove variable.
34492         * m4/wcsnrtombs.m4: New file.
34493         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34494         compilation units.
34495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34496         HAVE_WCSNRTOMBS.
34497         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34498         HAVE_WCSNRTOMBS.
34499         * modules/wcsnrtombs: New file.
34500         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34501         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34502
34503 2008-12-21  Bruno Haible  <bruno@clisp.org>
34504
34505         * modules/wcsrtombs-tests: New file.
34506         * tests/test-wcsrtombs1.sh: New file.
34507         * tests/test-wcsrtombs2.sh: New file.
34508         * tests/test-wcsrtombs3.sh: New file.
34509         * tests/test-wcsrtombs4.sh: New file.
34510         * tests/test-wcsrtombs.c: New file.
34511
34512         New module 'wcsrtombs'.
34513         * lib/wchar.in.h (wcsrtombs): New declaration.
34514         * lib/wcsrtombs.c: New file.
34515         * m4/wcsrtombs.m4: New file.
34516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34517         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34519         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34520         * modules/wcsrtombs: New file.
34521         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34522         bugs.
34523
34524 2008-12-21  Bruno Haible  <bruno@clisp.org>
34525
34526         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34527         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34528         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34529         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34530         if not correct.
34531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34532         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34533         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34534         m4/locale-zh.m4, m4/codeset.m4.
34535         * doc/posix-functions/wcrtomb.texi: Document the bug.
34536
34537 2008-12-21  Bruno Haible  <bruno@clisp.org>
34538
34539         Work around a btowc() bug on IRIX 6.5.
34540         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34541         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34542         REPLACE_WTOBC if not.
34543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34544         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34545         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34546
34547 2008-12-21  Bruno Haible  <bruno@clisp.org>
34548
34549         * modules/wcrtomb-tests: New file.
34550         * tests/test-wcrtomb.sh: New file.
34551         * tests/test-wcrtomb.c: New file.
34552
34553         New module 'wcrtomb'.
34554         * lib/wchar.in.h (wcrtomb): New declaration.
34555         * lib/wcrtomb.c: New file.
34556         * m4/wcrtomb.m4: New file.
34557         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34558         HAVE_WCRTOMB.
34559         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34560         HAVE_WCRTOMB.
34561         * modules/wcrtomb: New file.
34562         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34563
34564 2008-12-21  Bruno Haible  <bruno@clisp.org>
34565
34566         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34567         * modules/mbsrtowcs (Files): Likewise.
34568         * modules/wctob (Files): Likewise.
34569         * modules/c-strcase-tests (Files): Likewise.
34570         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34571         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34572         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34573         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34574         * modules/vasnprintf-posix-tests (Files): Likewise.
34575
34576 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34577
34578         gitlog-to-changelog: pass all command-line arguments to git-log
34579         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34580         it is sometimes convenient to filter the commits in various ways.
34581         gitlog-to-changelog only allows --since to specify a start date,
34582         but git-log itself supports many other filtering mechanisms.
34583         At the moment, I want to filter by branch name.  Rather than
34584         adding a --branch option to gitlog-to-changelog, it seems more
34585         flexible to simply pass all options directly to git-log and let
34586         git do the work.  Notice that this effectively makes --since a
34587         redundant option for gitlog-to-changelog, but removing it would
34588         require current usage to change since calls would then require
34589         an additional '--'.
34590
34591 2008-12-21  Bruno Haible  <bruno@clisp.org>
34592
34593         * modules/mbsnrtowcs-tests: New file.
34594         * tests/test-mbsnrtowcs1.sh: New file.
34595         * tests/test-mbsnrtowcs2.sh: New file.
34596         * tests/test-mbsnrtowcs3.sh: New file.
34597         * tests/test-mbsnrtowcs4.sh: New file.
34598         * tests/test-mbsnrtowcs.c: New file.
34599
34600         New module 'mbsnrtowcs'.
34601         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34602         * lib/mbsnrtowcs.c: New file.
34603         * lib/mbsrtowcs-state.c: New file.
34604         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34605         (internal_state): Remove variable.
34606         * m4/mbsnrtowcs.m4: New file.
34607         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34608         compilation units.
34609         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34610         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34611         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34612         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34613         * modules/mbsnrtowcs: New file.
34614         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34615         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34616         portability problem.
34617
34618 2008-12-21  Bruno Haible  <bruno@clisp.org>
34619
34620         Work around mbsrtowcs bug.
34621         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34622         (gl_FUNC_MBSRTOWCS): Invoke it.
34623         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34624         m4/locale-zh.m4.
34625         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34626
34627 2008-12-21  Bruno Haible  <bruno@clisp.org>
34628
34629         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34630
34631 2008-12-21  Bruno Haible  <bruno@clisp.org>
34632
34633         Update doc for AIX.
34634         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34635         16-bit wchar_t type.
34636         * doc/posix-functions/btowc.texi: Likewise.
34637         * doc/posix-functions/fgetwc.texi: Likewise.
34638         * doc/posix-functions/fgetws.texi: Likewise.
34639         * doc/posix-functions/fputwc.texi: Likewise.
34640         * doc/posix-functions/fputws.texi: Likewise.
34641         * doc/posix-functions/fwide.texi: Likewise.
34642         * doc/posix-functions/fwprintf.texi: Likewise.
34643         * doc/posix-functions/fwscanf.texi: Likewise.
34644         * doc/posix-functions/getwchar.texi: Likewise.
34645         * doc/posix-functions/getwc.texi: Likewise.
34646         * doc/posix-functions/iswalnum.texi: Likewise.
34647         * doc/posix-functions/iswalpha.texi: Likewise.
34648         * doc/posix-functions/iswblank.texi: Likewise.
34649         * doc/posix-functions/iswcntrl.texi: Likewise.
34650         * doc/posix-functions/iswctype.texi: Likewise.
34651         * doc/posix-functions/iswdigit.texi: Likewise.
34652         * doc/posix-functions/iswgraph.texi: Likewise.
34653         * doc/posix-functions/iswlower.texi: Likewise.
34654         * doc/posix-functions/iswprint.texi: Likewise.
34655         * doc/posix-functions/iswpunct.texi: Likewise.
34656         * doc/posix-functions/iswspace.texi: Likewise.
34657         * doc/posix-functions/iswupper.texi: Likewise.
34658         * doc/posix-functions/iswxdigit.texi: Likewise.
34659         * doc/posix-functions/mbrtowc.texi: Likewise.
34660         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34661         * doc/posix-functions/mbstowcs.texi: Likewise.
34662         * doc/posix-functions/mbtowc.texi: Likewise.
34663         * doc/posix-functions/putwchar.texi: Likewise.
34664         * doc/posix-functions/putwc.texi: Likewise.
34665         * doc/posix-functions/swprintf.texi: Likewise.
34666         * doc/posix-functions/tolower.texi: Likewise.
34667         * doc/posix-functions/toupper.texi: Likewise.
34668         * doc/posix-functions/towctrans.texi: Likewise.
34669         * doc/posix-functions/ungetwc.texi: Likewise.
34670         * doc/posix-functions/vswprintf.texi: Likewise.
34671         * doc/posix-functions/wcrtomb.texi: Likewise.
34672         * doc/posix-functions/wcscat.texi: Likewise.
34673         * doc/posix-functions/wcschr.texi: Likewise.
34674         * doc/posix-functions/wcscmp.texi: Likewise.
34675         * doc/posix-functions/wcscoll.texi: Likewise.
34676         * doc/posix-functions/wcscpy.texi: Likewise.
34677         * doc/posix-functions/wcscspn.texi: Likewise.
34678         * doc/posix-functions/wcsftime.texi: Likewise.
34679         * doc/posix-functions/wcslen.texi: Likewise.
34680         * doc/posix-functions/wcsncat.texi: Likewise.
34681         * doc/posix-functions/wcsncmp.texi: Likewise.
34682         * doc/posix-functions/wcsncpy.texi: Likewise.
34683         * doc/posix-functions/wcspbrk.texi: Likewise.
34684         * doc/posix-functions/wcsrchr.texi: Likewise.
34685         * doc/posix-functions/wcsrtombs.texi: Likewise.
34686         * doc/posix-functions/wcsspn.texi: Likewise.
34687         * doc/posix-functions/wcsstr.texi: Likewise.
34688         * doc/posix-functions/wcstod.texi: Likewise.
34689         * doc/posix-functions/wcstof.texi: Likewise.
34690         * doc/posix-functions/wcstoimax.texi: Likewise.
34691         * doc/posix-functions/wcstok.texi: Likewise.
34692         * doc/posix-functions/wcstold.texi: Likewise.
34693         * doc/posix-functions/wcstoll.texi: Likewise.
34694         * doc/posix-functions/wcstol.texi: Likewise.
34695         * doc/posix-functions/wcstombs.texi: Likewise.
34696         * doc/posix-functions/wcstoull.texi: Likewise.
34697         * doc/posix-functions/wcstoul.texi: Likewise.
34698         * doc/posix-functions/wcstoumax.texi: Likewise.
34699         * doc/posix-functions/wcswidth.texi: Likewise.
34700         * doc/posix-functions/wcsxfrm.texi: Likewise.
34701         * doc/posix-functions/wctob.texi: Likewise.
34702         * doc/posix-functions/wctomb.texi: Likewise.
34703         * doc/posix-functions/wctrans.texi: Likewise.
34704         * doc/posix-functions/wctype.texi: Likewise.
34705         * doc/posix-functions/wcwidth.texi: Likewise.
34706         * doc/posix-functions/wmemchr.texi: Likewise.
34707         * doc/posix-functions/wmemcmp.texi: Likewise.
34708         * doc/posix-functions/wmemcpy.texi: Likewise.
34709         * doc/posix-functions/wmemmove.texi: Likewise.
34710         * doc/posix-functions/wmemset.texi: Likewise.
34711         * doc/posix-functions/wprintf.texi: Likewise.
34712         * doc/posix-functions/wscanf.texi: Likewise.
34713
34714 2008-12-21  Bruno Haible  <bruno@clisp.org>
34715
34716         Update doc for HP-UX 11.11.
34717         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34718         in HP-UX version 11.00, not in all versions of HP-UX 11.
34719         * doc/posix-functions/fwide.texi: Likewise.
34720         * doc/posix-functions/fwprintf.texi: Likewise.
34721         * doc/posix-functions/fwscanf.texi: Likewise.
34722         * doc/posix-functions/inet_ntop.texi: Likewise.
34723         * doc/posix-functions/inet_pton.texi: Likewise.
34724         * doc/posix-functions/mbrlen.texi: Likewise.
34725         * doc/posix-functions/mbrtowc.texi: Likewise.
34726         * doc/posix-functions/mbsinit.texi: Likewise.
34727         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34728         * doc/posix-functions/swprintf.texi: Likewise.
34729         * doc/posix-functions/swscanf.texi: Likewise.
34730         * doc/posix-functions/towctrans.texi: Likewise.
34731         * doc/posix-functions/vfwprintf.texi: Likewise.
34732         * doc/posix-functions/vswprintf.texi: Likewise.
34733         * doc/posix-functions/vwprintf.texi: Likewise.
34734         * doc/posix-functions/wcrtomb.texi: Likewise.
34735         * doc/posix-functions/wcsrtombs.texi: Likewise.
34736         * doc/posix-functions/wcsstr.texi: Likewise.
34737         * doc/posix-functions/wctob.texi: Likewise.
34738         * doc/posix-functions/wctrans.texi: Likewise.
34739         * doc/posix-functions/wmemchr.texi: Likewise.
34740         * doc/posix-functions/wmemcmp.texi: Likewise.
34741         * doc/posix-functions/wmemcpy.texi: Likewise.
34742         * doc/posix-functions/wmemmove.texi: Likewise.
34743         * doc/posix-functions/wmemset.texi: Likewise.
34744         * doc/posix-functions/wprintf.texi: Likewise.
34745         * doc/posix-functions/wscanf.texi: Likewise.
34746
34747 2008-12-21  Bruno Haible  <bruno@clisp.org>
34748
34749         Work around a portability problem.
34750         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34751         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34752
34753 2008-12-20  Bruno Haible  <bruno@clisp.org>
34754
34755         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34756         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34757         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34759         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34760
34761         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34762         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34763         set.
34764         (GNULIB_defined_mbstate_t): New macro.
34765         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34766         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34767         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34768         reuses the system's mbrtowc function but works around the bugs.
34769         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34770         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34771         macros.
34772         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34773         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34774         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34775         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34776         REPLACE_MBSINIT if mbsinit needs to be overridden.
34777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34778         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34779         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34780         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34781         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34782         m4/locale-zh.m4.
34783         (Depends): Add mbsinit.
34784         * modules/mbsinit (Depends): Add mbrtowc.
34785         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34786
34787 2008-12-20  Bruno Haible  <bruno@clisp.org>
34788
34789         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34790         so that there are no conversion errors on AIX.
34791         * tests/test-mbsrtowcs.c (main): LIkewise.
34792
34793 2008-12-20  Bruno Haible  <bruno@clisp.org>
34794
34795         Work around wctob bug on Solaris <= 9.
34796         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34797         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34799         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34800         * modules/wctob (Files): Add m4/locale-fr.m4.
34801         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34802
34803 2008-12-20  Bruno Haible  <bruno@clisp.org>
34804
34805         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34806         /dev/null.
34807         * tests/test-select-in.sh: Likewise.
34808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34809
34810 2008-12-20  Bruno Haible  <bruno@clisp.org>
34811
34812         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34813         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34814         Cygwin 1.5.x.
34815
34816 2008-12-20  Bruno Haible  <bruno@clisp.org>
34817
34818         Ensure mbstate_t is defined on HP-UX 11.11.
34819         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34820         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34821         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34822         AC_USE_SYSTEM_EXTENSIONS.
34823         * modules/fnmatch (Depends-on): Add extensions.
34824         * modules/mbrlen (Depends-on): Likewise.
34825         * modules/mbrtowc (Depends-on): Likewise.
34826         * modules/mbsinit (Depends-on): Likewise.
34827         * modules/mbsrtowcs (Depends-on): Likewise.
34828         * modules/mbswidth (Depends-on): Likewise.
34829         * modules/quotearg (Depends-on): Likewise.
34830         * modules/strftime (Depends-on): Likewise.
34831
34832 2008-12-20  Bruno Haible  <bruno@clisp.org>
34833
34834         Ensure wctob is declared on IRIX 6.5.
34835         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34836         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34837         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34839         of HAVE_WCTOB.
34840         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34841         HAVE_WCTOB.
34842         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34843
34844 2008-12-19  Bruno Haible  <bruno@clisp.org>
34845
34846         * modules/mbsrtowcs-tests: New file.
34847         * tests/test-mbsrtowcs1.sh: New file.
34848         * tests/test-mbsrtowcs2.sh: New file.
34849         * tests/test-mbsrtowcs3.sh: New file.
34850         * tests/test-mbsrtowcs4.sh: New file.
34851         * tests/test-mbsrtowcs.c: New file.
34852
34853         New module 'mbsrtowcs'.
34854         * lib/wchar.in.h (mbsrtowcs): New declaration.
34855         * lib/mbsrtowcs.c: New file.
34856         * m4/mbsrtowcs.m4: New file.
34857         * modules/mbsrtowcs: New file.
34858         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34859         HAVE_MBSRTOWCS.
34860         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34861         HAVE_MBSRTOWCS.
34862         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34863
34864 2008-12-19  Bruno Haible  <bruno@clisp.org>
34865
34866         New module 'mbrlen'.
34867         * lib/wchar.in.h (mbrlen): New declaration.
34868         * lib/mbrlen.c: New file.
34869         * m4/mbrlen.m4: New file.
34870         * modules/mbrlen: New file.
34871         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34872         HAVE_MBRLEN.
34873         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34874         HAVE_MBRLEN.
34875         * doc/posix-functions/mbrlen.texi: Document the new module.
34876
34877 2008-12-19  Bruno Haible  <bruno@clisp.org>
34878
34879         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34880         * modules/mbrtowc (Depends-on): Add verify.
34881         Suggested by Paul Eggert.
34882
34883 2008-12-18  Bruno Haible  <bruno@clisp.org>
34884
34885         * modules/mbsinit-tests: New file.
34886         * tests/test-mbsinit.sh: New file.
34887         * tests/test-mbsinit.c: New file.
34888
34889 2008-12-18  Bruno Haible  <bruno@clisp.org>
34890
34891         * modules/mbrtowc-tests: New file.
34892         * tests/test-mbrtowc1.sh: New file.
34893         * tests/test-mbrtowc2.sh: New file.
34894         * tests/test-mbrtowc3.sh: New file.
34895         * tests/test-mbrtowc4.sh: New file.
34896         * tests/test-mbrtowc.c: New file.
34897
34898         New module 'mbrtowc'.
34899         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34900         mbsinit and mbrtowc.
34901         (mbrtowc): New declaration.
34902         * lib/mbrtowc.c: New file.
34903         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34904         * modules/mbrtowc: New file.
34905         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34906         HAVE_MBRTOWC.
34907         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34908         HAVE_MBRTOWC.
34909         * doc/posix-functions/mbrtowc.texi: Document the new module.
34910
34911 2008-12-18  Bruno Haible  <bruno@clisp.org>
34912
34913         New module 'wctob'.
34914         * lib/wchar.in.h (wctob): New declaration.
34915         * lib/wctob.c: New file.
34916         * m4/wctob.m4: New file.
34917         * modules/wctob: New file.
34918         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34919         HAVE_WCTOB.
34920         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34921         * doc/posix-functions/wctob.texi: Document the new module.
34922
34923 2008-12-18  Bruno Haible  <bruno@clisp.org>
34924
34925         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34926         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34927
34928 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34929
34930         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34931         G. Christensen" <tgc@jupiterrise.com>.
34932
34933         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34934         G. Christensen" <tgc@jupiterrise.com>.
34935
34936         * lib/flock.c: Need to include string.h.  Reported by "Tom
34937         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34938         <ebb9@byu.net>.
34939
34940 2008-12-18  Bruno Haible  <bruno@clisp.org>
34941
34942         * m4/locale-ja.m4: New file, from GNU gettext.
34943
34944 2008-12-17  Bruno Haible  <bruno@clisp.org>
34945
34946         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34947         Suggested by Eric Blake.
34948
34949 2008-12-17  Bruno Haible  <bruno@clisp.org>
34950
34951         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34952
34953 2008-12-17  Bruno Haible  <bruno@clisp.org>
34954
34955         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34956         * modules/mbsinit (Depends-on): Add verify.
34957         Suggested by Paul Eggert.
34958
34959 2008-12-17  Bruno Haible  <bruno@clisp.org>
34960
34961         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34962         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34963         gl_FUNC_MBRTOWC.
34964         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34965         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34966         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34967         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34968         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34969         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34970         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34971         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34972         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34973         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34974         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34975         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34976         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34977         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34978         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34979         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34980         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34981         * modules/trim (configure.ac): Likewise.
34982
34983 2008-12-17  Bruno Haible  <bruno@clisp.org>
34984
34985         * modules/btowc-tests: New file.
34986         * tests/test-btowc1.sh: New file.
34987         * tests/test-btowc2.sh: New file.
34988         * tests/test-btowc.c: New file.
34989
34990         New module 'btowc'.
34991         * lib/wchar.in.h (btowc): New declaration.
34992         * lib/btowc.c: New file.
34993         * m4/btowc.m4: New file.
34994         * modules/btowc: New file.
34995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34996         HAVE_BTOWC.
34997         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34998         * doc/posix-functions/btowc.texi: Document the new module.
34999
35000 2008-12-17  Bruno Haible  <bruno@clisp.org>
35001
35002         New module 'mbsinit'.
35003         * lib/wchar.in.h (mbsinit): New declaration.
35004         * lib/mbsinit.c: New file.
35005         * m4/mbsinit.m4: New file.
35006         * modules/mbsinit: New file.
35007         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35008         HAVE_MBSINIT.
35009         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35010         HAVE_MBSINIT.
35011         * doc/posix-functions/mbsinit.texi: Document the new module.
35012
35013 2008-12-16  Bruno Haible  <bruno@clisp.org>
35014
35015         * lib/unistd.in.h: Add comment.
35016         * tests/test-environ.c: Don't include <stdlib.h>.
35017
35018 2008-12-16  Bruno Haible  <bruno@clisp.org>
35019
35020         * lib/parse-duration.h (parse_duration): Document return value
35021         convention.
35022         * lib/parse-duration.c: Include specification header first. Add
35023         comments.
35024         (_): Remove macro.
35025         (parse_year_month_day, parse_hour_minute_second): Move side effects
35026         outside of strchr call.
35027         (parse_non_iso8601): Move side effects outside of isspace call.
35028         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35029         call.
35030
35031 2008-12-16  Bruno Haible  <bruno@clisp.org>
35032
35033         * tests/test-parse-duration.sh: Produce no output when the test
35034         succeeds.
35035
35036 2008-12-16  Bruno Haible  <bruno@clisp.org>
35037
35038         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35039         expressions.
35040
35041 2008-12-15  Bruno Haible  <bruno@clisp.org>
35042
35043         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35044         * doc/glibc-functions/flistxattr.texi: Likewise.
35045         * doc/glibc-functions/fopencookie.texi: Likewise.
35046         * doc/glibc-functions/fremovexattr.texi: Likewise.
35047         * doc/glibc-functions/fsetxattr.texi: Likewise.
35048         * doc/glibc-functions/getxattr.texi: Likewise.
35049         * doc/glibc-functions/lgetxattr.texi: Likewise.
35050         * doc/glibc-functions/listxattr.texi: Likewise.
35051         * doc/glibc-functions/llistxattr.texi: Likewise.
35052         * doc/glibc-functions/lremovexattr.texi: Likewise.
35053         * doc/glibc-functions/lsetxattr.texi: Likewise.
35054         * doc/glibc-functions/removexattr.texi: Likewise.
35055         * doc/glibc-functions/setxattr.texi: Likewise.
35056         * doc/posix-functions/open_memstream.texi: Likewise.
35057
35058 2008-12-15  Eric Blake  <ebb9@byu.net>
35059
35060         Update doc for cygwin 1.7.
35061         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35062         functions.
35063         * doc/posix-functions/fchmodat.texi: Likewise.
35064         * doc/posix-functions/fchownat.texi: Likewise.
35065         * doc/posix-functions/fdopendir.texi: Likewise.
35066         * doc/posix-functions/fmemopen.texi: Likewise.
35067         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35068         * doc/posix-functions/fstatat.texi: Likewise.
35069         * doc/posix-functions/futimens.texi: Likewise.
35070         * doc/posix-functions/gai_strerror.texi: Likewise.
35071         * doc/posix-functions/getaddrinfo.texi: Likewise.
35072         * doc/posix-functions/getnameinfo.texi: Likewise.
35073         * doc/posix-functions/if_freenameindex.texi: Likewise.
35074         * doc/posix-functions/if_indextoname.texi: Likewise.
35075         * doc/posix-functions/if_nameindex.texi: Likewise.
35076         * doc/posix-functions/if_nametoindex.texi: Likewise.
35077         * doc/posix-functions/insque.texi: Likewise.
35078         * doc/posix-functions/linkat.texi: Likewise.
35079         * doc/posix-functions/llrint.texi: Likewise.
35080         * doc/posix-functions/llrintf.texi: Likewise.
35081         * doc/posix-functions/llrintl.texi: Likewise.
35082         * doc/posix-functions/lockf.texi: Likewise.
35083         * doc/posix-functions/lrintl.texi: Likewise.
35084         * doc/posix-functions/mkdirat.texi: Likewise.
35085         * doc/posix-functions/mkfifoat.texi: Likewise.
35086         * doc/posix-functions/mknodat.texi: Likewise.
35087         * doc/posix-functions/mq_close.texi: Likewise.
35088         * doc/posix-functions/mq_getattr.texi: Likewise.
35089         * doc/posix-functions/mq_notify.texi: Likewise.
35090         * doc/posix-functions/mq_open.texi: Likewise.
35091         * doc/posix-functions/mq_receive.texi: Likewise.
35092         * doc/posix-functions/mq_send.texi: Likewise.
35093         * doc/posix-functions/mq_setattr.texi: Likewise.
35094         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35095         * doc/posix-functions/mq_timedsend.texi: Likewise.
35096         * doc/posix-functions/mq_unlink.texi: Likewise.
35097         * doc/posix-functions/open_memstream.texi: Likewise.
35098         * doc/posix-functions/openat.texi: Likewise.
35099         * doc/posix-functions/posix_fadvise.texi: Likewise.
35100         * doc/posix-functions/posix_fallocate.texi: Likewise.
35101         * doc/posix-functions/posix_madvise.texi: Likewise.
35102         * doc/posix-functions/posix_memalign.texi: Likewise.
35103         * doc/posix-functions/posix_openpt.texi: Likewise.
35104         * doc/posix-functions/readlinkat.texi: Likewise.
35105         * doc/posix-functions/remque.texi: Likewise.
35106         * doc/posix-functions/renameat.texi: Likewise.
35107         * doc/posix-functions/rintl.texi: Likewise.
35108         * doc/posix-functions/sem_unlink.texi: Likewise.
35109         * doc/posix-functions/shm_open.texi: Likewise.
35110         * doc/posix-functions/shm_unlink.texi: Likewise.
35111         * doc/posix-functions/signgam.texi: Likewise.
35112         * doc/posix-functions/sigset.texi: Likewise.
35113         * doc/posix-functions/stpcpy.texi: Likewise.
35114         * doc/posix-functions/stpncpy.texi: Likewise.
35115         * doc/posix-functions/strerror.texi: Likewise.
35116         * doc/posix-functions/strtod.texi: Likewise.
35117         * doc/posix-functions/symlinkat.texi: Likewise.
35118         * doc/posix-functions/unlinkat.texi: Likewise.
35119         * doc/posix-functions/utimensat.texi: Likewise.
35120         * doc/glibc-functions/bindresvport.texi: Likewise.
35121         * doc/glibc-functions/dn_expand.texi: Likewise.
35122         * doc/glibc-functions/exp10.texi: Likewise.
35123         * doc/glibc-functions/exp10f.texi: Likewise.
35124         * doc/glibc-functions/fgetxattr.texi: Likewise.
35125         * doc/glibc-functions/flistxattr.texi: Likewise.
35126         * doc/glibc-functions/fopencookie.texi: Likewise.
35127         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35128         * doc/glibc-functions/fremovexattr.texi: Likewise.
35129         * doc/glibc-functions/fsetxattr.texi: Likewise.
35130         * doc/glibc-functions/getifaddrs.texi: Likewise.
35131         * doc/glibc-functions/getxattr.texi: Likewise.
35132         * doc/glibc-functions/lgetxattr.texi: Likewise.
35133         * doc/glibc-functions/listxattr.texi: Likewise.
35134         * doc/glibc-functions/llistxattr.texi: Likewise.
35135         * doc/glibc-functions/lremovexattr.texi: Likewise.
35136         * doc/glibc-functions/lsetxattr.texi: Likewise.
35137         * doc/glibc-functions/pow10.texi: Likewise.
35138         * doc/glibc-functions/pow10f.texi: Likewise.
35139         * doc/glibc-functions/rcmd_af.texi: Likewise.
35140         * doc/glibc-functions/removexattr.texi: Likewise.
35141         * doc/glibc-functions/res_init.texi: Likewise.
35142         * doc/glibc-functions/res_mkquery.texi: Likewise.
35143         * doc/glibc-functions/res_query.texi: Likewise.
35144         * doc/glibc-functions/res_querydomain.texi: Likewise.
35145         * doc/glibc-functions/res_send.texi: Likewise.
35146         * doc/glibc-functions/rresvport_af.texi: Likewise.
35147         * doc/glibc-functions/setxattr.texi: Likewise.
35148         * doc/glibc-functions/strcasestr.texi: Likewise.
35149
35150 2008-12-15  Bruno Haible  <bruno@clisp.org>
35151
35152         Fix compilation error on OSF/1 4.0.
35153         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35154         <sys/time.h>, simply delegate to the system header.
35155         Reported by Daniel Richard G. <oss@teragram.com>.
35156
35157 2008-12-15  Bruno Haible  <bruno@clisp.org>
35158
35159         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35160         * doc/posix-functions/fchmodat.texi: Likewise.
35161         * doc/posix-functions/fchownat.texi: Likewise.
35162         * doc/posix-functions/fdopendir.texi: Likewise.
35163         * doc/posix-functions/fstatat.texi: Likewise.
35164         * doc/posix-functions/mkdirat.texi: Likewise.
35165         * doc/posix-functions/unlinkat.texi: Likewise.
35166
35167 2008-12-14  Bruno Haible  <bruno@clisp.org>
35168
35169         Update doc for POSIX:2008.
35170         * doc/posix-functions/faccessat.texi: New file.
35171         * doc/posix-functions/fchmodat.texi: New file.
35172         * doc/posix-functions/fchownat.texi: New file.
35173         * doc/posix-functions/fdopendir.texi: New file.
35174         * doc/posix-functions/fstatat.texi: New file.
35175         * doc/posix-functions/futimens.texi: New file.
35176         * doc/posix-functions/linkat.texi: New file.
35177         * doc/posix-functions/mkdirat.texi: New file.
35178         * doc/posix-functions/mkfifoat.texi: New file.
35179         * doc/posix-functions/mknodat.texi: New file.
35180         * doc/posix-functions/open_wmemstream.texi: New file.
35181         * doc/posix-functions/openat.texi: New file.
35182         * doc/posix-functions/psiginfo.texi: New file.
35183         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35184         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35185         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35186         * doc/posix-functions/readlinkat.texi: New file.
35187         * doc/posix-functions/renameat.texi: New file.
35188         * doc/posix-functions/strerror_l.texi: New file.
35189         * doc/posix-functions/symlinkat.texi: New file.
35190         * doc/posix-functions/unlinkat.texi: New file.
35191         * doc/posix-functions/utimensat.texi: New file.
35192         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35193
35194 2008-12-14  Bruno Haible  <bruno@clisp.org>
35195
35196         Update doc for POSIX:2008.
35197         * doc/posix-functions/alphasort.texi: Renamed from
35198         doc/glibc-functions/alphasort.texi.
35199         * doc/posix-functions/dirfd.texi: Renamed from
35200         doc/glibc-functions/dirfd.texi.
35201         * doc/posix-functions/dprintf.texi: Renamed from
35202         doc/glibc-functions/dprintf.texi.
35203         * doc/posix-functions/duplocale.texi: Renamed from
35204         doc/glibc-functions/duplocale.texi.
35205         * doc/posix-functions/fexecve.texi: Renamed from
35206         doc/glibc-functions/fexecve.texi.
35207         * doc/posix-functions/fmemopen.texi: Renamed from
35208         doc/glibc-functions/fmemopen.texi.
35209         * doc/posix-functions/freelocale.texi: Renamed from
35210         doc/glibc-functions/freelocale.texi.
35211         * doc/posix-functions/getdate_err.texi: Renamed from
35212         doc/glibc-functions/getdate_err.texi.
35213         * doc/posix-functions/isalnum_l.texi: Renamed from
35214         doc/glibc-functions/isalnum_l.texi.
35215         * doc/posix-functions/isalpha_l.texi: Renamed from
35216         doc/glibc-functions/isalpha_l.texi.
35217         * doc/posix-functions/isblank_l.texi: Renamed from
35218         doc/glibc-functions/isblank_l.texi.
35219         * doc/posix-functions/iscntrl_l.texi: Renamed from
35220         doc/glibc-functions/iscntrl_l.texi.
35221         * doc/posix-functions/isdigit_l.texi: Renamed from
35222         doc/glibc-functions/isdigit_l.texi.
35223         * doc/posix-functions/isgraph_l.texi: Renamed from
35224         doc/glibc-functions/isgraph_l.texi.
35225         * doc/posix-functions/islower_l.texi: Renamed from
35226         doc/glibc-functions/islower_l.texi.
35227         * doc/posix-functions/isprint_l.texi: Renamed from
35228         doc/glibc-functions/isprint_l.texi.
35229         * doc/posix-functions/ispunct_l.texi: Renamed from
35230         doc/glibc-functions/ispunct_l.texi.
35231         * doc/posix-functions/isspace_l.texi: Renamed from
35232         doc/glibc-functions/isspace_l.texi.
35233         * doc/posix-functions/isupper_l.texi: Renamed from
35234         doc/glibc-functions/isupper_l.texi.
35235         * doc/posix-functions/iswalnum_l.texi: Renamed from
35236         doc/glibc-functions/iswalnum_l.texi.
35237         * doc/posix-functions/iswalpha_l.texi: Renamed from
35238         doc/glibc-functions/iswalpha_l.texi.
35239         * doc/posix-functions/iswblank_l.texi: Renamed from
35240         doc/glibc-functions/iswblank_l.texi.
35241         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35242         doc/glibc-functions/iswcntrl_l.texi.
35243         * doc/posix-functions/iswctype_l.texi: Renamed from
35244         doc/glibc-functions/iswctype_l.texi.
35245         * doc/posix-functions/iswdigit_l.texi: Renamed from
35246         doc/glibc-functions/iswdigit_l.texi.
35247         * doc/posix-functions/iswgraph_l.texi: Renamed from
35248         doc/glibc-functions/iswgraph_l.texi.
35249         * doc/posix-functions/iswlower_l.texi: Renamed from
35250         doc/glibc-functions/iswlower_l.texi.
35251         * doc/posix-functions/iswprint_l.texi: Renamed from
35252         doc/glibc-functions/iswprint_l.texi.
35253         * doc/posix-functions/iswpunct_l.texi: Renamed from
35254         doc/glibc-functions/iswpunct_l.texi.
35255         * doc/posix-functions/iswspace_l.texi: Renamed from
35256         doc/glibc-functions/iswspace_l.texi.
35257         * doc/posix-functions/iswupper_l.texi: Renamed from
35258         doc/glibc-functions/iswupper_l.texi.
35259         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35260         doc/glibc-functions/iswxdigit_l.texi.
35261         * doc/posix-functions/isxdigit_l.texi: Renamed from
35262         doc/glibc-functions/isxdigit_l.texi.
35263         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35264         doc/glibc-functions/mbsnrtowcs.texi.
35265         * doc/posix-functions/mkdtemp.texi: Renamed from
35266         doc/glibc-functions/mkdtemp.texi.
35267         * doc/posix-functions/newlocale.texi: Renamed from
35268         doc/glibc-functions/newlocale.texi.
35269         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35270         doc/glibc-functions/nl_langinfo_l.texi.
35271         * doc/posix-functions/open_memstream.texi: Renamed from
35272         doc/glibc-functions/open_memstream.texi.
35273         * doc/posix-functions/opterr.texi: Renamed from
35274         doc/glibc-functions/opterr.texi.
35275         * doc/posix-functions/optind.texi: Renamed from
35276         doc/glibc-functions/optind.texi.
35277         * doc/posix-functions/optopt.texi: Renamed from
35278         doc/glibc-functions/optopt.texi.
35279         * doc/posix-functions/psignal.texi: Renamed from
35280         doc/glibc-functions/psignal.texi.
35281         * doc/posix-functions/scandir.texi: Renamed from
35282         doc/glibc-functions/scandir.texi.
35283         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35284         doc/glibc-functions/sched_get_priority_min.texi.
35285         * doc/posix-functions/signgam.texi: Renamed from
35286         doc/glibc-functions/signgam.texi.
35287         * doc/posix-functions/stpcpy.texi: Renamed from
35288         doc/glibc-functions/stpcpy.texi.
35289         * doc/posix-functions/stpncpy.texi: Renamed from
35290         doc/glibc-functions/stpncpy.texi.
35291         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35292         doc/glibc-functions/strcasecmp_l.texi.
35293         * doc/posix-functions/strcoll_l.texi: Renamed from
35294         doc/glibc-functions/strcoll_l.texi.
35295         * doc/posix-functions/strfmon_l.texi: Renamed from
35296         doc/glibc-functions/strfmon_l.texi.
35297         * doc/posix-functions/strftime_l.texi: Renamed from
35298         doc/glibc-functions/strftime_l.texi.
35299         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35300         doc/glibc-functions/strncasecmp_l.texi.
35301         * doc/posix-functions/strndup.texi: Renamed from
35302         doc/glibc-functions/strndup.texi.
35303         * doc/posix-functions/strnlen.texi: Renamed from
35304         doc/glibc-functions/strnlen.texi.
35305         * doc/posix-functions/strsignal.texi: Renamed from
35306         doc/glibc-functions/strsignal.texi.
35307         * doc/posix-functions/strxfrm_l.texi: Renamed from
35308         doc/glibc-functions/strxfrm_l.texi.
35309         * doc/posix-functions/timer_gettime.texi: Renamed from
35310         doc/glibc-functions/timer_gettime.texi.
35311         * doc/posix-functions/tolower_l.texi: Renamed from
35312         doc/glibc-functions/tolower_l.texi.
35313         * doc/posix-functions/toupper_l.texi: Renamed from
35314         doc/glibc-functions/toupper_l.texi.
35315         * doc/posix-functions/towctrans_l.texi: Renamed from
35316         doc/glibc-functions/towctrans_l.texi.
35317         * doc/posix-functions/towlower_l.texi: Renamed from
35318         doc/glibc-functions/towlower_l.texi.
35319         * doc/posix-functions/towupper_l.texi: Renamed from
35320         doc/glibc-functions/towupper_l.texi.
35321         * doc/posix-functions/uselocale.texi: Renamed from
35322         doc/glibc-functions/uselocale.texi.
35323         * doc/posix-functions/vdprintf.texi: Renamed from
35324         doc/glibc-functions/vdprintf.texi.
35325         * doc/posix-functions/wcpcpy.texi:
35326         Renamed from doc/glibc-functions/wcpcpy.texi.
35327         * doc/posix-functions/wcpncpy.texi: Renamed from
35328         doc/glibc-functions/wcpncpy.texi.
35329         * doc/posix-functions/wcscasecmp.texi: Renamed from
35330         doc/glibc-functions/wcscasecmp.texi.
35331         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35332         doc/glibc-functions/wcscasecmp_l.texi.
35333         * doc/posix-functions/wcscoll_l.texi: Renamed from
35334         doc/glibc-functions/wcscoll_l.texi.
35335         * doc/posix-functions/wcsdup.texi: Renamed from
35336         doc/glibc-functions/wcsdup.texi.
35337         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35338         doc/glibc-functions/wcsncasecmp.texi.
35339         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35340         doc/glibc-functions/wcsncasecmp_l.texi.
35341         * doc/posix-functions/wcsnlen.texi: Renamed from
35342         doc/glibc-functions/wcsnlen.texi.
35343         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35344         doc/glibc-functions/wcsnrtombs.texi.
35345         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35346         doc/glibc-functions/wcsxfrm_l.texi.
35347         * doc/posix-functions/wctrans_l.texi: Renamed from
35348         doc/glibc-functions/wctrans_l.texi.
35349         * doc/posix-functions/wctype_l.texi: Renamed from
35350         doc/glibc-functions/wctype_l.texi.
35351         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35352         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35353         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35354         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35355         these subsections.
35356         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35357         Remove sections.
35358
35359 2008-12-14  Bruno Haible  <bruno@clisp.org>
35360
35361         Update doc for POSIX:2008.
35362         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35363
35364 2008-12-14  Bruno Haible  <bruno@clisp.org>
35365
35366         Update doc for POSIX:2008.
35367         * doc/pastposix-functions/bcmp.texi: Renamed from
35368         doc/posix-functions/bcmp.texi.
35369         * doc/pastposix-functions/bcopy.texi: Renamed from
35370         doc/posix-functions/bcopy.texi.
35371         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35372         doc/posix-functions/bsd_signal.texi.
35373         * doc/pastposix-functions/bzero.texi: Renamed from
35374         doc/posix-functions/bzero.texi.
35375         * doc/pastposix-functions/ecvt.texi: Renamed from
35376         doc/posix-functions/ecvt.texi.
35377         * doc/pastposix-functions/fcvt.texi: Renamed from
35378         doc/posix-functions/fcvt.texi.
35379         * doc/pastposix-functions/ftime.texi: Renamed from
35380         doc/posix-functions/ftime.texi.
35381         * doc/pastposix-functions/gcvt.texi: Renamed from
35382         doc/posix-functions/gcvt.texi.
35383         * doc/pastposix-functions/getcontext.texi: Renamed from
35384         doc/posix-functions/getcontext.texi.
35385         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35386         doc/posix-functions/gethostbyaddr.texi.
35387         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35388         doc/posix-functions/gethostbyname.texi.
35389         * doc/pastposix-functions/getwd.texi: Renamed from
35390         doc/posix-functions/getwd.texi.
35391         * doc/pastposix-functions/h_errno.texi: Renamed from
35392         doc/posix-functions/h_errno.texi.
35393         * doc/pastposix-functions/index.texi: Renamed from
35394         doc/posix-functions/index.texi.
35395         * doc/pastposix-functions/makecontext.texi: Renamed from
35396         doc/posix-functions/makecontext.texi.
35397         * doc/pastposix-functions/mktemp.texi: Renamed from
35398         doc/posix-functions/mktemp.texi.
35399         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35400         doc/posix-functions/pthread_attr_getstackaddr.texi.
35401         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35402         doc/posix-functions/pthread_attr_setstackaddr.texi.
35403         * doc/pastposix-functions/rindex.texi: Renamed from
35404         doc/posix-functions/rindex.texi.
35405         * doc/pastposix-functions/scalb.texi: Renamed from
35406         doc/posix-functions/scalb.texi.
35407         * doc/pastposix-functions/setcontext.texi: Renamed from
35408         doc/posix-functions/setcontext.texi.
35409         * doc/pastposix-functions/swapcontext.texi: Renamed from
35410         doc/posix-functions/swapcontext.texi.
35411         * doc/pastposix-functions/ualarm.texi: Renamed from
35412         doc/posix-functions/ualarm.texi.
35413         * doc/pastposix-functions/usleep.texi: Renamed from
35414         doc/posix-functions/usleep.texi.
35415         * doc/pastposix-functions/vfork.texi: Renamed from
35416         doc/posix-functions/vfork.texi.
35417         * doc/pastposix-functions/wcswcs.texi: Renamed from
35418         doc/posix-functions/wcswcs.texi.
35419         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35420         (Function Substitutes): Update.
35421
35422 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35423
35424         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35425         m4/strerror.m4.
35426
35427 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35428             Bruno Haible  <bruno@clisp.org>
35429
35430         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35431
35432 2008-12-13  Bruno Haible  <bruno@clisp.org>
35433
35434         * modules/strtoull (Depends-on): Remove unistd.
35435
35436 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35437
35438         * modules/strtoull (Depends-on): Add stdlib.
35439
35440 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35441
35442         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35443
35444 2008-12-10  Jim Meyering  <meyering@redhat.com>
35445
35446         gl_ASSERT: don't say assertions are disabled when they're not
35447         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35448         "checking whether to enable assertions... no", when they are in
35449         fact enabled.  This is solely a bug in the output of configure.
35450         In spite of saying "no", NDEBUG was not defined in that case.
35451         Also, as noted by Eric Blake, leave assertions enabled upon
35452         --enable-assert=INVALID.
35453
35454 2008-12-10  Bruno Haible  <bruno@clisp.org>
35455
35456         Change MODULES.html to refer to POSIX:2008 where possible.
35457         * MODULES.html.sh (POSIX2008_URL): New variable.
35458         (posix_headers): Remove sys/timeb, ucontext.
35459         (posix2001_headers): New variable.
35460         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35461         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35462         index, makecontext, mktemp, pthread_attr_getstackaddr,
35463         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35464         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35465         (posix2001_functions): New variable.
35466         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35467         otherwise.
35468
35469 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35470
35471         add missing include to parse-duration.c
35472         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35473         * modules/parse-duration (Depends-on): Add xalloc.
35474
35475         fix sed script reading maint.mk
35476         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35477         (syntax-check-rules): Use it.
35478
35479 2008-12-09  Bruno Haible  <bruno@clisp.org>
35480
35481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35482         MacOS X 10.4/PowerPC.
35483         Reported by Simon Josefsson.
35484
35485 2008-12-08  Jim Meyering  <meyering@redhat.com>
35486
35487         work around mingw's lack of some S_IF definitions
35488         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35489         Reported by Simon Josefsson.
35490
35491 2008-12-08  Bruno Haible  <bruno@clisp.org>
35492
35493         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35494         applied to variables. Needed on MacOS X 10.4/PowerPC.
35495         Reported by Simon Josefsson.
35496
35497 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35498         and Eric Blake  <ebb9@byu.net>
35499
35500         assert: honor --enable-assert
35501         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35502         order to honor --enable-assert, rather than treating it as a
35503         synonym for --disable-assert.
35504
35505 2008-12-08  Jim Meyering  <meyering@redhat.com>
35506
35507         * lib/posixtm.c: Remove now-useless declaration of mktime.
35508
35509         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35510
35511 2008-12-07  Bruno Haible  <bruno@clisp.org>
35512
35513         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35514         test_once): Mark functions as static.
35515         * tests/test-tls.c (test_tls): Likewise.
35516
35517 2008-12-07  Bruno Haible  <bruno@clisp.org>
35518
35519         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35520         iconv_register_autodetect.
35521
35522 2008-12-07  Jim Meyering  <meyering@redhat.com>
35523
35524         posixtm.c: avoid a warning
35525         * lib/posixtm.c (posixtime): Don't initialize tm0.
35526         It's no longer needed to placate gcc4's -Wuninitialized,
35527         and the attempt to placate would elicit a new warning.
35528
35529         unicodeio.c: mark unused parameters
35530         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35531         (fallback_failure_callback): Likewise.
35532
35533 2008-12-07  Bruno Haible  <bruno@clisp.org>
35534
35535         * gnulib-tool (func_create_testdir): When building the tests
35536         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35537         Reported by Simon Josefsson.
35538
35539 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35540
35541         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35542
35543 2008-12-06  Bruno Haible  <bruno@clisp.org>
35544
35545         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35546         Suggested by Eric Blake.
35547
35548 2008-12-06  Bruno Haible  <bruno@clisp.org>
35549
35550         Fix a c-stack test failure on MacOS X.
35551         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35552         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35553         handler for SIGBUS as well.
35554         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35555         install a signal handler for SIGBUS as well.
35556         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35557
35558 2008-12-06  Bruno Haible  <bruno@clisp.org>
35559
35560         Advocacy documentation.
35561         * doc/gnulib-intro.texi (Benefits): New section.
35562         * doc/gnulib.texi: Update.
35563
35564 2008-12-06  Bruno Haible  <bruno@clisp.org>
35565
35566         Document the 'manywarnings' module.
35567         * doc/manywarnings.texi: New file.
35568         * doc/gnulib.texi: Include it.
35569
35570 2008-12-05  Eric Blake  <ebb9@byu.net>
35571
35572         tests: silence some gcc warnings
35573         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35574         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35575         type mismatches.
35576
35577 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35578             Bruno Haible  <bruno@clisp.org>
35579
35580         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35581
35582 2008-11-29  Jim Meyering  <meyering@redhat.com>
35583
35584         unicodeio.c: mark unused parameters
35585         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35586         (fallback_failure_callback): Likewise.
35587
35588         fts: fix a thinko
35589         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35590         (set_stat_type): Return S_IF*-valued "type" directly.
35591         Prompted by James Youngman's spotting a related bug.
35592         Confirmed by further testing through find.
35593
35594         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35595         * lib/fts.c (D_TYPE): Define.
35596         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35597         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35598         (s_ifmt_shift_bits): New function.
35599         (set_stat_type): New function.
35600         (fts_build): When not calling fts_stat, call set_stat_type
35601         to propagate dirent.d_type info to fts_read caller.
35602         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35603         fts_statp->st_mode type information may be valid.
35604
35605 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35606
35607         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35608         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35609         <sds@gnu.org>.
35610
35611 2008-11-20  Bruno Haible  <bruno@clisp.org>
35612
35613         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35614         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35615         INCLUDE_NEXT.
35616         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35617         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35618         * modules/math (Makefile.am): Substitute
35619         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35620         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35621
35622 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35623             Bruno Haible  <bruno@clisp.org>
35624
35625         * lib/stdint.in.h: Define all type macros so that their expansion is
35626         a single typedef'ed token. Fixes a compilation failure in Boost which
35627         does "using ::int8_t;".
35628
35629 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35630
35631         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35632         gl_MANYWARN_ALL_GCC.
35633         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35634         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35635         * modules/manywarnings: New file.
35636         * MODULES.html.sh: Mention manywarnings module.
35637
35638 2008-11-18  Bruno Haible  <bruno@clisp.org>
35639
35640         * doc/gnulib-tool.texi (Unit tests): New section.
35641
35642 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35643
35644         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35645         paths like 'lib/po/foo.po'.
35646
35647 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35648
35649         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35650         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35651
35652 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35653
35654         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35655         parameter works.
35656
35657 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35658
35659         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35660
35661 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35662
35663         * modules/parse-duration-tests: New file.
35664         * tests/test-parse-duration.sh: New file.
35665         * tests/test-parse-duration.c: New file.
35666
35667         New module 'parse-duration'.
35668         * lib/parse-duration.h: New file.
35669         * lib/parse-duration.c: New file.
35670         * modules/parse-duration: New file.
35671
35672 2008-11-17  Bruno Haible  <bruno@clisp.org>
35673
35674         * tests/test-select-out.sh: Comment out the first pipe test.
35675         Reported by Simon Josefsson.
35676
35677 2008-11-17  Bruno Haible  <bruno@clisp.org>
35678
35679         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35681         gl_HOSTENT.
35682
35683 2008-11-17  Bruno Haible  <bruno@clisp.org>
35684
35685         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35686         -lnetwork and -lnet. Needed for Haiku and BeOS.
35687
35688 2008-11-16  Bruno Haible  <bruno@clisp.org>
35689
35690         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35691
35692 2008-11-16  Bruno Haible  <bruno@clisp.org>
35693
35694         Avoid test failure on Haiku.
35695         * tests/test-fsync.c: Include <errno.h>.
35696         (main): Don't require that fsync (0) fails.
35697
35698 2008-11-15  Bruno Haible  <bruno@clisp.org>
35699
35700         New module 'hostent'.
35701         * modules/hostent: New file.
35702         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35703
35704 2008-11-15  Bruno Haible  <bruno@clisp.org>
35705
35706         New module 'servent'.
35707         * modules/servent: New file.
35708         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35709
35710 2008-11-15  Bruno Haible  <bruno@clisp.org>
35711
35712         Avoid generating same test program with two different rules.
35713         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35714         test-frexp to test-frexp-nolibm.
35715         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35716         test-frexpl to test-frexpl-nolibm.
35717
35718 2008-11-15  Bruno Haible  <bruno@clisp.org>
35719
35720         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35721         $(FREXPL_LIBM).
35722
35723 2008-11-15  Bruno Haible  <bruno@clisp.org>
35724
35725         * lib/netdb.in.h: Activate the definitions also when the system's
35726         <netdb.h> has 'struct addrinfo'.
35727         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35728         EAI_OVERFLOW or AI_NUMERICSERV.
35729         * doc/posix-headers/netdb.texi: Document the problem.
35730
35731 2008-11-15  Bruno Haible  <bruno@clisp.org>
35732
35733         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35734
35735         Make the 'sched' module work on platforms where <sched.h> exists but
35736         is incomplete (such as Haiku).
35737         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35738         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35739         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35740         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35741         HAVE_STRUCT_SCHED_PARAM.
35742         * modules/sched (Depends-on): Add include_next.
35743         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35744         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35745         * doc/posix-headers/sched.texi: Document the issue.
35746
35747 2008-11-13  Jim Meyering  <meyering@redhat.com>
35748
35749         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35750         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35751         test would fail due to the difference in the Report bugs to ...
35752         line.  The expected address is empty, "<>", while the actual
35753         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35754
35755 2008-11-12  Bruno Haible  <bruno@clisp.org>
35756
35757         lstat: don't compile lstat.c on systems lacking lstat
35758         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35759         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35760         Reported by Daniel P. Berrange via Jim Meyering.
35761
35762 2008-11-12  Jim Meyering  <meyering@redhat.com>
35763
35764         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35765
35766 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35767
35768         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35769         instead.
35770
35771 2008-11-12  Bruno Haible  <bruno@clisp.org>
35772
35773         * lib/unicodeio.c: Include unistr.h.
35774         (utf8_wctomb): Remove function.
35775         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35776
35777 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35778
35779         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35780         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35781         <bruno@clisp.org>.
35782         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35783
35784 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35785
35786         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35787         * doc/gnulib.texi: Add section for warnings.
35788
35789 2008-11-11  Bruno Haible  <bruno@clisp.org>
35790
35791         * lib/sockets.h: Add a comment.
35792
35793 2008-11-11  Karl Berry  <karl@gnu.org>
35794
35795         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35796
35797 2008-11-11  Eric Blake  <ebb9@byu.net>
35798
35799         fdl.texi: avoid git symlinks
35800         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35801
35802 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35803
35804         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35805
35806 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35807
35808         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35809         (gl_WARN_ADD): Substitute $2 if literal.
35810
35811 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35812
35813         * m4/warning.m4: Remove.
35814
35815 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35816
35817         * m4/warnings.m4: Almost complete rewrite. :-)
35818
35819 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35820
35821         * modules/warnings: New module.
35822         * m4/warnings.m4: New file.
35823         * MODULES.html.sh: Mention warnings module.
35824         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35825         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35826
35827 2008-11-10  Eric Blake  <ebb9@byu.net>
35828
35829         fdl.texi: make a symlink to the latest version
35830         * doc/standards.texi: Revert today's earlier change.
35831         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35832         * doc/fdl.texi: ...and replace this with a symlink to the newer
35833         fdl-1.3.texi.
35834
35835 2008-11-10  Bruno Haible  <bruno@clisp.org>
35836
35837         * tests/test-select-fd.c (main): Accept the result file name as fourth
35838         argument.
35839         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35840         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35841
35842 2008-11-10  Bruno Haible  <bruno@clisp.org>
35843
35844         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35845         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35846         as autoconf-substituted macros.
35847         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35848         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35849         gl_NETDB_H_DEFAULTS. Set these variables.
35850         * modules/netdb (Makefile.am): Substitute these variables.
35851
35852 2008-11-10  Eric Blake  <ebb9@byu.net>
35853
35854         standards.texi: include correct file for FDL 1.3
35855         * doc/standards.texi (GNU Free Documentation License): Change
35856         include file to pull in FDL 1.3, not 1.2.
35857
35858         fdl.texi: revert accidental change to license
35859         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35860
35861 2008-11-10  Bruno Haible  <bruno@clisp.org>
35862
35863         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35864         cross-compiling guesses also when the native compile gives no result.
35865
35866 2008-11-10  Bruno Haible  <bruno@clisp.org>
35867
35868         * lib/spawni.c (__spawni): Force variable into the stack.
35869
35870 2008-11-10  Bruno Haible  <bruno@clisp.org>
35871
35872         Add support for Haiku.
35873         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35874         glibc and BeOS, but also on Haiku.
35875         * lib/fpurge.c (fpurge): Likewise.
35876         * lib/freadable.c (freadable): Likewise.
35877         * lib/freadahead.c (freadahead): Likewise.
35878         * lib/freading.c (freading): Likewise.
35879         * lib/freadptr.c (freadptr): Likewise.
35880         * lib/freadseek.c (freadptrinc): Likewise.
35881         * lib/fseeko.c (rpl_fseeko): Likewise.
35882         * lib/fseterr.c (fseterr): Likewise.
35883         * lib/fwritable.c (fwritable): Likewise.
35884         * lib/fwriting.c (fwriting): Likewise.
35885         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35886
35887 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35888
35889         * lib/config.charset: Treat Haiku like BeOS.
35890
35891 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35892
35893         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35894         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35895
35896 2008-11-08  Bruno Haible  <bruno@clisp.org>
35897
35898         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35899         AC_CACHE_CHECK.
35900
35901 2008-11-08  Bruno Haible  <bruno@clisp.org>
35902
35903         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35904
35905 2008-11-08  Bruno Haible  <bruno@clisp.org>
35906
35907         * tests/test-select-fd.c: New file.
35908         * tests/test-select-in.sh: New file.
35909         * tests/test-select-out.sh: New file.
35910         * tests/test-select-stdin.c: New file.
35911         * modules/select-tests (Files): Add the new files.
35912         (Depends-on): Add gettimeofday.
35913         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35914         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35915         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35916
35917 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35918             Bruno Haible  <bruno@clisp.org>
35919
35920         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35921
35922 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35923
35924         * build-aux/pmccabe2html: Added support for C++ source files.
35925
35926 2008-11-05  Ben Pfaff  <blp@gnu.org>
35927
35928         Fix lib/close.c build on Windows.
35929         * modules/close (Files): Add lib/w32sock.h.
35930
35931 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35932
35933         Accept Bison's NEWS format.
35934         * build-aux/announce-gen (print_news_deltas): Tweak
35935         $re_prefix.
35936
35937 2008-11-04  Bruno Haible  <bruno@clisp.org>
35938
35939         * modules/random_r (Maintainer): Add glibc.
35940
35941 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35942
35943         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35944         by karl@freefriends.org (Karl Berry).
35945         * doc/alloca.texi: Likewise.
35946         * doc/c-ctype.texi: Likewise.
35947         * doc/c-strcase.texi: Likewise.
35948         * doc/c-strcaseeq.texi: Likewise.
35949         * doc/c-strcasestr.texi: Likewise.
35950         * doc/c-strstr.texi: Likewise.
35951         * doc/c-strtod.texi: Likewise.
35952         * doc/c-strtold.texi: Likewise.
35953         * doc/ctime.texi: Likewise.
35954         * doc/error.texi: Likewise.
35955         * doc/fdl.texi: Likewise.
35956         * doc/gcd.texi: Likewise.
35957         * doc/getdate.texi: Likewise.
35958         * doc/gnulib-intro.texi: Likewise.
35959         * doc/gnulib-tool.texi: Likewise.
35960         * doc/gnulib.texi: Likewise.
35961         * doc/inet_ntoa.texi: Likewise.
35962         * doc/maintain.texi: Likewise.
35963         * doc/make-stds.texi: Likewise.
35964         * doc/quote.texi: Likewise.
35965         * doc/regexprops-generic.texi: Likewise.
35966         * doc/standards.texi: Likewise.
35967         * doc/verify.texi: Likewise.
35968         * doc/visibility.texi: Likewise.
35969         * doc/gnulib.texi (GNU Free Documentation License): Include
35970         fdl-1.3.texi instead of fdl.texi.
35971
35972 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35973
35974         * doc/fdl-1.3.texi: New file, from
35975         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35976         * modules/fdl-1.3: Add.
35977         * MODULES.html.sh: Add fdl-1.3.
35978
35979 2008-11-03  Bruno Haible  <bruno@clisp.org>
35980
35981         Make determination of absolute name of header file work with AIX xlc.
35982         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35983         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35984         preprocessing.
35985         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35986         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35987
35988 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35989
35990         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35991         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35992         <ludo@gnu.org>.
35993
35994 2008-11-02  Bruno Haible  <bruno@clisp.org>
35995
35996         Mark 'strpbrk' obsolete.
35997         * modules/strpbrk (Status, Notice): New sections.
35998         * modules/strtok_r (Depends-on): Add strpbrk.
35999
36000 2008-11-02  Bruno Haible  <bruno@clisp.org>
36001
36002         Mark 'strdup' obsolete.
36003         * modules/strdup (Status, Notice): New sections.
36004         * modules/findprog (Depends-on): Add strdup.
36005         * modules/getaddrinfo (Depends-on): Likewise.
36006         * modules/localename (Depends-on): Likewise.
36007         * modules/relocatable-lib (Depends-on): Likewise.
36008         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36009         * modules/relocatable-prog (Depends-on): Likewise.
36010         * modules/trim (Depends-on): Likewise.
36011         * modules/unictype/gen-ctype (Depends-on): Likewise.
36012         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36013
36014 2008-11-02  Bruno Haible  <bruno@clisp.org>
36015
36016         Mark 'strcspn' obsolete.
36017         * modules/strcspn (Status, Notice): New sections.
36018
36019 2008-11-02  Bruno Haible  <bruno@clisp.org>
36020
36021         Mark 'rmdir' obsolete.
36022         * modules/rmdir (Status, Notice): New sections.
36023         * modules/clean-temp (Depends-on): Add rmdir.
36024         * modules/openat (Depends-on): Likewise.
36025
36026 2008-11-02  Bruno Haible  <bruno@clisp.org>
36027
36028         Mark 'raise' obsolete.
36029         * modules/raise (Status, Notice): New sections.
36030         (Include): Specify <signal.h>.
36031         * modules/stdio (Depends-on): Add raise.
36032         * modules/write (Depends-on): Likewise.
36033
36034 2008-11-02  Bruno Haible  <bruno@clisp.org>
36035
36036         Mark 'memset' obsolete.
36037         * modules/memset (Status, Notice): New sections.
36038
36039 2008-11-02  Bruno Haible  <bruno@clisp.org>
36040
36041         Mark 'memmove' obsolete.
36042         * modules/memmove (Status, Notice): New sections.
36043         * modules/argp (Depends-on): Add memmove.
36044         * modules/argz (Depends-on): Likewise.
36045         * modules/canonicalize (Depends-on): Likewise.
36046         * modules/canonicalize-lgpl (Depends-on): Likewise.
36047         * modules/fts (Depends-on): Likewise.
36048         * modules/getcwd (Depends-on): Likewise.
36049         * modules/human (Depends-on): Likewise.
36050         * modules/regex (Depends-on): Likewise.
36051         * modules/striconveh (Depends-on): Likewise.
36052         * modules/trim (Depends-on): Likewise.
36053         * modules/unistr/u8-move (Depends-on): Likewise.
36054         * modules/unistr/u16-move (Depends-on): Likewise.
36055         * modules/unistr/u32-move (Depends-on): Likewise.
36056
36057 2008-11-02  Bruno Haible  <bruno@clisp.org>
36058
36059         Mark 'memcpy' obsolete.
36060         * modules/memcpy (Status, Notice): New sections.
36061
36062 2008-11-02  Bruno Haible  <bruno@clisp.org>
36063
36064         Mark 'memcmp' obsolete.
36065         * modules/memcmp (Status, Notice): New sections.
36066         * modules/argmatch (Depends-on): Add memchr.
36067         * modules/backupfile (Depends-on): Likewise.
36068         * modules/c-strcasestr (Depends-on): Likewise.
36069         * modules/crypto/des (Depends-on): Likewise.
36070         * modules/csharpcomp (Depends-on): Likewise.
36071         * modules/fnmatch (Depends-on): Likewise.
36072         * modules/git-merge-changelog (Depends-on): Likewise.
36073         * modules/isnand (Depends-on): Likewise.
36074         * modules/isnand-nolibm (Depends-on): Likewise.
36075         * modules/isnanf (Depends-on): Likewise.
36076         * modules/isnanf-nolibm (Depends-on): Likewise.
36077         * modules/isnanl (Depends-on): Likewise.
36078         * modules/isnanl-nolibm (Depends-on): Likewise.
36079         * modules/mbchar (Depends-on): Likewise.
36080         * modules/memcoll (Depends-on): Likewise.
36081         * modules/quotearg (Depends-on): Likewise.
36082         * modules/regex (Depends-on): Likewise.
36083         * modules/relocatable-prog (Depends-on): Likewise.
36084         * modules/same (Depends-on): Likewise.
36085         * modules/signbit (Depends-on): Likewise.
36086         * modules/strcasestr-simple (Depends-on): Likewise.
36087         * modules/unictype/gen-ctype (Depends-on): Likewise.
36088         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36089         * modules/uniname/uniname (Depends-on): Likewise.
36090         * modules/unistr/u8-cmp (Depends-on): Likewise.
36091
36092 2008-11-02  Bruno Haible  <bruno@clisp.org>
36093
36094         Mark 'memchr' obsolete.
36095         * modules/memchr (Status, Notice): New sections.
36096         * modules/argp (Depends-on): Add memchr.
36097         * modules/base64 (Depends-on): Likewise.
36098         * modules/c-strcasestr (Depends-on): Likewise.
36099         * modules/chdir-long (Depends-on): Likewise.
36100         * modules/fnmatch (Depends-on): Likewise.
36101         * modules/getsubopt (Depends-on): Likewise.
36102         * modules/git-merge-changelog (Depends-on): Likewise.
36103         * modules/glob (Depends-on): Likewise.
36104         * modules/strcasestr-simple (Depends-on): Likewise.
36105         * modules/strnlen (Depends-on): Likewise.
36106
36107 2008-11-02  Bruno Haible  <bruno@clisp.org>
36108
36109         Mark 'atexit' obsolete.
36110         * modules/atexit (Status, Notice): New sections.
36111         * modules/chdir-long (Depends-on): Add atexit.
36112         * modules/wait-process (Depends-on): Likewise.
36113
36114 2008-11-02  Bruno Haible  <bruno@clisp.org>
36115
36116         * gnulib-tool: New option --with-obsolete.
36117         (func_usage): Document it.
36118         (func_modules_transitive_closure): Drop obsolete dependencies if
36119         incobsolete is not true.
36120         (func_import): Read and save the incobsolete variable to the cache.
36121
36122 2008-11-02  Bruno Haible  <bruno@clisp.org>
36123
36124         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36125         * gnulib-tool: New option --extract-status.
36126         (func_usage): Document it.
36127         (sed_extract_prog): Recognize it.
36128         (func_get_status): New function.
36129
36130 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36131
36132         * modules/sockets (License): Change from LGPL to LGPLv2+.
36133
36134 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36135
36136         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36137
36138 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36139
36140         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36141         Mention times and sys_times.
36142         * modules/sys_times, modules/sys_times-tests: New modules.
36143         * modules/times, modules/times-tests: Likewise
36144         * m4/sys_times_h.m4: New file.
36145         * lib/sys_times.in.h: Likewise
36146         * lib/times.c: Likewise.
36147         * tests/test-sys_times.c: Likewise.
36148         * tests/test-times.c: Likewise.
36149         * doc/posix-headers/sys_times.texi: Update.
36150         * doc/posix-functions/times.texi: Update.
36151
36152 2008-10-28  Jim Meyering  <meyering@redhat.com>
36153
36154         * modules/tempname (Depends-on): Add lstat.
36155
36156         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36157
36158 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36159
36160         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36161         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36162         using idiom used elsewhere in gnulib.
36163
36164 2008-10-27  Jim Meyering  <meyering@redhat.com>
36165
36166         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36167
36168 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36169
36170         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36171         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36172         programs.
36173         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36174
36175 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36176
36177         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36178
36179 2008-10-27  Bruno Haible  <bruno@clisp.org>
36180
36181         * tests/test-lstat.c: Include <stdio.h>.
36182
36183 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36184
36185         * modules/lstat-tests: New module.
36186         * tests/test-lstat.c: New file.
36187
36188 2008-10-26  Jim Meyering  <meyering@redhat.com>
36189
36190         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36191
36192 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36193             Bruno Haible  <bruno@clisp.org>
36194
36195         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36196         * modules/configmake (Include): Add a note that the include must come
36197         after all system headers.
36198         * lib/javaversion.c: Include configmake.h after all other includes.
36199
36200 2008-10-26  Bruno Haible  <bruno@clisp.org>
36201
36202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36203         HAVE_STRUCT_RANDOM_DATA to 1.
36204         (gl_STDLIB_H): Simplify.
36205
36206 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36207
36208         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36209         substitute HAVE_STRUCT_RANDOM_DATA.
36210         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36211         random_data.
36212         * modules/stdlib (Makefile.am): Substitute
36213         HAVE_STRUCT_RANDOM_DATA.
36214
36215 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36216
36217         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36218         * doc/gnulib-intro.texi (Copyright): Likewise.
36219
36220 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36221
36222         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36223         findings.
36224
36225 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36226             Bruno Haible  <bruno@clisp.org>
36227
36228         * lib/unistd.in.h: Include <winsock2.h>.
36229         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36230         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36231         Provide dummy declarations.
36232         (gethostname): Override.
36233         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36234         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36235         gl_PREREQ_SYS_H_WINSOCK2.
36236         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36237         * doc/posix-functions/gethostname.texi: More details.
36238
36239 2008-10-25  Bruno Haible  <bruno@clisp.org>
36240
36241         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36242         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36243         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36244
36245         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36246         here ...
36247         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36248         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36249         gl_UNISTD_H_DEFAULTS.
36250
36251 2008-10-25  Eric Blake  <ebb9@byu.net>
36252
36253         signbit: avoid spurious compiler failure
36254         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36255         declarations inside function.
36256
36257 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36258             Bruno Haible  <bruno@clisp.org>
36259
36260         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36261         * modules/random_r (Depends-on): Add stdint.
36262
36263 2008-10-24  Bruno Haible  <bruno@clisp.org>
36264
36265         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36266         Eggert.
36267         * modules/strerror (License): Likewise.
36268
36269 2008-10-24  Jim Meyering  <meyering@redhat.com>
36270
36271         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36272         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36273
36274 2008-10-24  Eric Blake  <ebb9@byu.net>
36275
36276         getgroups: fix compilation when getgroups is available
36277         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36278         but with <config.h> override of getgroups disabled.
36279
36280 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36281
36282         * doc/gnulib.texi (Header files): Add note about C++ problems.
36283         Explained by Bruno Haible <bruno@clisp.org>.
36284
36285 2008-10-23  Bruno Haible  <bruno@clisp.org>
36286
36287         Define a dummy SA_NODEFER macro on Interix.
36288         * lib/signal.in.h (SA_NODEFER): Define fallback.
36289         Reported by Aleksey Cheusov <cheusov@tut.by> via
36290         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36291
36292 2008-10-23  Bruno Haible  <bruno@clisp.org>
36293
36294         * modules/freadahead (License): Change to LGPLv2+.
36295         Suggested by Simon Josefsson.
36296
36297 2008-10-23  Jim Meyering  <meyering@redhat.com>
36298
36299         random_r: new module
36300         * modules/random_r: New file.
36301         * m4/random_r.m4: New file.
36302         * lib/random_r.c: New file, from glibc.
36303         * modules/random_r-tests: New file.
36304         * tests/test-random_r.c: New file.
36305         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36306          Declare.
36307         (RAND_MAX): Define.
36308         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36309         * modules/stdlib: Substitute them, too.
36310         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36311         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36312         * doc/glibc-functions/random_r.texi: Likewise.
36313         * doc/glibc-functions/setstate_r.texi: Likewise.
36314         * doc/glibc-functions/srandom_r.texi: Likewise.
36315         * config/srclist.txt: Mention it.
36316
36317 2008-10-23  David Lutterkort  <lutter@redhat.com>
36318
36319         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36320         link requirement
36321
36322 2008-10-23  Jim Meyering  <meyering@redhat.com>
36323
36324         selinux-h: mark parameters of stub functions as intentionally unused
36325         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36326         * lib/se-context.in.h: Likewise.
36327
36328 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36329
36330         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36331
36332 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36333
36334         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36335
36336 2008-10-22  Eric Blake  <ebb9@byu.net>
36337
36338         glthread/thread: avoid compiler warning
36339         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36340         Add unreachable abort to silence compiler.
36341
36342 2008-10-22  Eric Blake  <ebb9@byu.net>
36343
36344         netdb: also supply struct addrinfo for cygwin 1.5.x
36345         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36346         older cygwin.
36347         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36348         cygwin.
36349         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36350
36351 2008-10-22  Bruno Haible  <bruno@clisp.org>
36352
36353         * users.txt: Update entry about pspp.
36354
36355 2008-10-21  Bruno Haible  <bruno@clisp.org>
36356
36357         Simplification.
36358         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36359         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36360
36361         Simplification.
36362         * lib/ioctl.c (ioctl): Don't undefine.
36363         * lib/socket.c (socket): Don't undefine.
36364
36365         Remove unused module indicator macros.
36366         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36367         GNULIB_$1 as a C macro.
36368
36369         * doc/posix-functions/close.texi: Undo last change.
36370         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36371         Windows platforms.
36372
36373 2008-10-21  Bruno Haible  <bruno@clisp.org>
36374
36375         Add gethostname() declaration to <unistd.h>.
36376         * lib/unistd.in.h (gethostname): New declaration.
36377         * lib/gethostname.c: Include <unistd.h>.
36378         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36379         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36381         and HAVE_GETHOSTNAME.
36382         * modules/gethostname (Depends-on): Add unistd.
36383         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36384         (Include): Specify <unistd.h>.
36385         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36386         HAVE_GETHOSTNAME.
36387         * tests/test-gethostname.c: Include <unistd.h> first.
36388
36389 2008-10-21  Bruno Haible  <bruno@clisp.org>
36390
36391         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36392         * modules/select-tests (Depends-on): Likewise.
36393         Reported by Simon Josefsson.
36394
36395 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36396
36397         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36398         * lib/accept.c: New file, based on winsock.c.
36399         * lib/bind.c: New file, based on winsock.c.
36400         * lib/connect.c: New file, based on winsock.c.
36401         * lib/getpeername.c: New file, based on winsock.c.
36402         * lib/getsockname.c: New file, based on winsock.c.
36403         * lib/getsockopt.c: New file, based on winsock.c.
36404         * lib/ioctl.c: New file, based on winsock.c.
36405         * lib/listen.c: New file, based on winsock.c.
36406         * lib/recv.c: New file, based on winsock.c.
36407         * lib/recvfrom.c: New file, based on winsock.c.
36408         * lib/send.c: New file, based on winsock.c.
36409         * lib/sendto.c: New file, based on winsock.c.
36410         * lib/setsockopt.c: New file, based on winsock.c.
36411         * lib/shutdown.c: New file, based on winsock.c.
36412         * lib/socket.c: New file, based on winsock.c.
36413         * lib/w32sock.h: New file, based on winsock.c.
36414         * lib/winsock.c: Remove file.
36415         * modules/accept: Likewise.
36416         * modules/bind: Likewise.
36417         * modules/connect: Likewise.
36418         * modules/getpeername: Likewise.
36419         * modules/getsockname: Likewise.
36420         * modules/getsockopt: Likewise.
36421         * modules/ioctl: Likewise.
36422         * modules/listen: Likewise.
36423         * modules/recv: Likewise.
36424         * modules/recvfrom: Likewise.
36425         * modules/send: Likewise.
36426         * modules/sendto: Likewise.
36427         * modules/setsockopt: Likewise.
36428         * modules/shutdown: Likewise.
36429         * modules/socket: Use socket.c instead of winsock.c.
36430         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36431         * doc/posix-functions/accept.texi: Doc fix.
36432         * doc/posix-functions/bind.texi: Doc fix.
36433         * doc/posix-functions/close.texi: Doc fix.
36434         * doc/posix-functions/connect.texi: Doc fix.
36435         * doc/posix-functions/getpeername.texi: Doc fix.
36436         * doc/posix-functions/getsockname.texi: Doc fix.
36437         * doc/posix-functions/getsockopt.texi: Doc fix.
36438         * doc/posix-functions/ioctl.texi: Doc fix.
36439         * doc/posix-functions/listen.texi: Doc fix.
36440         * doc/posix-functions/recv.texi: Doc fix.
36441         * doc/posix-functions/recvfrom.texi: Doc fix.
36442         * doc/posix-functions/send.texi: Doc fix.
36443         * doc/posix-functions/sendto.texi: Doc fix.
36444         * doc/posix-functions/setsockopt.texi: Doc fix.
36445         * doc/posix-functions/shutdown.texi: Doc fix.
36446         * doc/posix-functions/socket.texi: Doc fix.
36447
36448 2008-10-20  Bruno Haible  <bruno@clisp.org>
36449
36450         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36451         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36452         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36453         as an alias for SIGABRT.
36454         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36455         (sigaction): Map it to SIGABRT.
36456         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36457
36458 2008-10-20  Bruno Haible  <bruno@clisp.org>
36459
36460         * lib/fts.c: Don't include lstat.h.
36461         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36462
36463         Move the lstat() declaration to <sys/stat.h>.
36464         * lib/lstat.h: Remove file.
36465         * lib/sys_stat.in.h: Add special invocation convention.
36466         (lstat): New declaration.
36467         * lib/lstat.c (orig_lstat): New function.
36468         (rpl_lstat): Use orig_lstat instead of lstat.
36469         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36470         AC_C_INLINE. Set REPLACE_LSTAT.
36471         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36472         and REPLACE_LSTAT.
36473         * modules/lstat (Files): Remove lib/lstat.h.
36474         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36475         (Include): Specify <sys/stat.h> instead of lstat.h.
36476         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36477         REPLACE_LSTAT.
36478         * NEWS: Mention the change.
36479
36480 2008-10-20  Bruno Haible  <bruno@clisp.org>
36481
36482         * modules/posix_spawn-tests: New file.
36483         * tests/test-posix_spawn3.c: New file.
36484
36485 2008-10-20  Bruno Haible  <bruno@clisp.org>
36486
36487         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36488         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36489         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36490         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36491         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36492
36493 2008-10-20  Bruno Haible  <bruno@clisp.org>
36494
36495         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36496         of posix_spawn on AIX 5.3.
36497
36498 2008-10-20  Bruno Haible  <bruno@clisp.org>
36499
36500         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36501
36502 2008-10-20  Bruno Haible  <bruno@clisp.org>
36503
36504         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36505         of AC_LANG_PROGRAM.
36506
36507 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36508
36509         * lib/netdb.in.h: Don't define GNU specific constants until they
36510         are supported or needed.  Reported by Bruno Haible
36511         <bruno@clisp.org>.
36512
36513 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36514
36515         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36516
36517 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36518
36519         * lib/getaddrinfo.h: Remove file.
36520         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36521         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36522         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36523         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36524         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36525         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36526         * tests/test-getaddrinfo.c: Likewise.
36527         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36528         * NEWS: Mention change.
36529
36530 2008-10-19  Bruno Haible  <bruno@clisp.org>
36531
36532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36533
36534 2008-10-19  Bruno Haible  <bruno@clisp.org>
36535
36536         * lib/wait-process.c: Include simply <sys/wait.h>.
36537         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36538         WIFSTOPPED): Remove fallback definitions.
36539         * modules/wait-process (Depends-on): Add sys_wait.
36540
36541         New module 'sys_wait'.
36542         * modules/sys_wait: New file.
36543         * lib/sys_wait.in.h: New file, partially copied from
36544         lib/wait-process.c.
36545         * m4/sys_wait_h.m4: New file.
36546         * doc/posix-headers/sys_wait.texi: Mention the new module.
36547
36548 2008-10-19  Bruno Haible  <bruno@clisp.org>
36549
36550         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36551
36552 2008-10-19  Bruno Haible  <bruno@clisp.org>
36553
36554         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36555         * lib/wait-process.c (WAIT_T): Remove type.
36556         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36557         (wait_subprocess): Update.
36558
36559 2008-10-19  Bruno Haible  <bruno@clisp.org>
36560
36561         New module 'atoll'.
36562         * modules/atoll: New file.
36563         * lib/stdlib.in.h (atoll): New declaration.
36564         * lib/atoll.c: New file, from glibc with modifications.
36565         * m4/atoll.m4: New file.
36566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36567         HAVE_ATOLL.
36568         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36569         * doc/posix-functions/atoll.texi: Mention the new module.
36570
36571 2008-10-19  Bruno Haible  <bruno@clisp.org>
36572
36573         Add strtoull() declaration to <stdlib.h>.
36574         * lib/stdlib.in.h (strtoull): New declaration.
36575         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36576         Set HAVE_STRTOULL.
36577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36578         HAVE_STRTOULL.
36579         * modules/strtoull (Depends-on): Add stdlib.
36580         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36581         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36582         HAVE_STRTOULL.
36583
36584 2008-10-19  Bruno Haible  <bruno@clisp.org>
36585
36586         Add strtoll() declaration to <stdlib.h>.
36587         * lib/stdlib.in.h (strtoll): New declaration.
36588         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36589         Set HAVE_STRTOLL.
36590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36591         HAVE_STRTOLL.
36592         * modules/strtoll (Depends-on): Add stdlib.
36593         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36594         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36595
36596 2008-10-19  Bruno Haible  <bruno@clisp.org>
36597
36598         * modules/bcopy (Depends-on): Add strings.
36599         (Include): Specify <strings.h>.
36600
36601 2008-10-19  Bruno Haible  <bruno@clisp.org>
36602
36603         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36604
36605 2008-10-19  Bruno Haible  <bruno@clisp.org>
36606
36607         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36608         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36609         mingw.
36610
36611 2008-10-19  Bruno Haible  <bruno@clisp.org>
36612
36613         * lib/atanl.c: Don't include isnanl.h.
36614         * lib/cosl.c: Likewise.
36615         * lib/ldexpl.c: Likewise.
36616         * lib/logl.c: Likewise.
36617         * lib/sinl.c: Likewise.
36618         * lib/sqrtl.c: Likewise.
36619         * lib/tanl.c: Likewise.
36620
36621         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36622         * lib/isnanf.h: Remove file.
36623         * lib/isnand.h: Remove file.
36624         * lib/isnanl.h: Remove file.
36625         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36626         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36627         macros.
36628         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36629         HAVE_ISNANF, don't define it as a C macro.
36630         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36631         HAVE_ISNAND, don't define it as a C macro.
36632         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36633         HAVE_ISNANL, don't define it as a C macro.
36634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36635         HAVE_ISNAN[FDL].
36636         * modules/isnanf (Files): Remove lib/isnanf.h.
36637         (Depends-on): Add math.
36638         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36639         (Include): Specify <math.h> instead of isnanf.h.
36640         * modules/isnand (Files): Remove lib/isnand.h.
36641         (Depends-on): Add math.
36642         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36643         (Include): Specify <math.h> instead of isnand.h.
36644         * modules/isnanl (Files): Remove lib/isnanl.h.
36645         (Depends-on): Add math.
36646         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36647         (Include): Specify <math.h> instead of isnanl.h.
36648         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36649         HAVE_ISNAN[FDL].
36650         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36651         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36652         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36653         * NEWS: Mention the change.
36654
36655 2008-10-18  Bruno Haible  <bruno@clisp.org>
36656
36657         Add getusershell(), setusershell(), endusershell() declarations to
36658         <unistd.h>.
36659         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36660         declarations.
36661         * lib/getusershell.c: Include unistd.h.
36662         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36663         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36664         HAVE_GETUSERSHELL.
36665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36666         and HAVE_GETUSERSHELL.
36667         * modules/getusershell (Depends-on): Add unistd, extensions.
36668         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36669         (Include): Specify <unistd.h>.
36670         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36671         HAVE_GETUSERSHELL.
36672
36673 2008-10-18  Bruno Haible  <bruno@clisp.org>
36674
36675         Add a getloadavg() declaration to <stdlib.h>.
36676         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36677         getloadavg declaration.
36678         (getloadavg): New declaration.
36679         * lib/getloadavg.c: Include <stdlib.h> first.
36680         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36681         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36682         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36684         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36685         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36686         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36687         (Include): Specify <stdlib.h>.
36688         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36689         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36690
36691 2008-10-18  Bruno Haible  <bruno@clisp.org>
36692
36693         * lib/dirchownmod.c: Don't include lchmod.h.
36694
36695         Move the lchmod() declaration to <sys/stat.h>.
36696         * lib/lchmod.h: Remove file.
36697         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36698         (lchmod): New declaration, moved here from lib/lchown.h.
36699         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36700         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36701         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36702         and HAVE_LCHMOD.
36703         * modules/lchmod (Files): Remove lib/lchmod.h.
36704         (Depends-on): Add sys_stat, extensions.
36705         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36706         (Include): Specify <sys/stat.h> instead of lchmod.h.
36707         * modules/sys_stat (Depends-on): Add link-warning.
36708         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36709         definition of GL_LINK_WARNING.
36710         * NEWS: Mention the change.
36711
36712 2008-10-18  Bruno Haible  <bruno@clisp.org>
36713
36714         * lib/fchdir.c: Don't include dirfd.h.
36715         * lib/fts.c: Likewise.
36716         * lib/getcwd.c: Likewise.
36717         * lib/glob.c: Likewise.
36718
36719         Move the dirfd() declaration to <dirent.h>.
36720         * lib/dirfd.h: Remove file.
36721         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36722         (dirfd): New declaration.
36723         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36724         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36725         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36726         HAVE_DECL_DIRFD.
36727         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36728         HAVE_DECL_DIRFD.
36729         * modules/dirfd (Files): Remove lib/dirfd.h.
36730         (Depends-on): Add dirent, extensions.
36731         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36732         (Include): Specify <dirent.h> instead of dirfd.h.
36733         * modules/dirent (Depends-on): Add link-warning.
36734         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36735         definition of GL_LINK_WARNING.
36736         * NEWS: Mention the change.
36737
36738 2008-10-18  Bruno Haible  <bruno@clisp.org>
36739
36740         Move the euidaccess() declaration to <unistd.h>.
36741         * lib/euidaccess.h: Remove file.
36742         * lib/unistd.in.h (euidaccess): New declaration.
36743         * lib/euidaccess.c: Don't include euidaccess.h.
36744         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36745         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36747         and HAVE_EUIDACCESS.
36748         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36749         (Depends-on): Add unistd.
36750         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36751         (Include): Specify <unistd.h> instead of euidaccess.h.
36752         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36753         HAVE_EUIDACCESS.
36754         * NEWS: Mention the change.
36755
36756 2008-10-18  Bruno Haible  <bruno@clisp.org>
36757
36758         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36759
36760         Move the getdomainname() declaration to <unistd.h>.
36761         * lib/getdomainname.h: Remove file.
36762         * lib/unistd.in.h (getdomainname): New declaration.
36763         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36764         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36765         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36766         HAVE_GETDOMAINNAME.
36767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36768         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36769         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36770         (Depends-on): Add unistd, extensions.
36771         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36772         (Includes): Specify <unistd.h> instead of getdomainname.h.
36773         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36774         HAVE_GETDOMAINNAME.
36775         * NEWS: Mention the change.
36776
36777 2008-10-18  Bruno Haible  <bruno@clisp.org>
36778
36779         * modules/dirent: New file.
36780         * m4/dirent_h.m4: New file.
36781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36782         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36783         * modules/fchdir (Files): Remove lib/dirent.in.h.
36784         (Depends-on): Add dirent.
36785         (Makefile.am): Move rules to modules/dirent.
36786         * doc/posix-headers/dirent.texi: Mention the new module.
36787
36788 2008-10-18  Bruno Haible  <bruno@clisp.org>
36789
36790         Avoid -Wunused-parameter warnings in public gnulib header files.
36791         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36792         macro.
36793         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36794
36795 2008-10-18  Bruno Haible  <bruno@clisp.org>
36796
36797         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36798         * doc/glibc-functions/error.texi: Mention the module 'error'.
36799         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36800         * doc/glibc-functions/getdomainname.texi: Mention the module
36801         'getdomainname'.
36802         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36803         * doc/glibc-functions/getpagesize.texi: Mention the module
36804         'getpagesize'.
36805         * doc/glibc-functions/getusershell.texi: Mention the module
36806         'getusershell'.
36807         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36808         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36809         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36810         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36811         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36812         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36813         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36814         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36815         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36816         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36817         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36818         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36819         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36820         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36821
36822 2008-10-17  Bruno Haible  <bruno@clisp.org>
36823
36824         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36825         HP-UX and IRIX, use -0.0L.
36826         * tests/test-ceill.c (minus_zero): Likewise.
36827         * tests/test-floorl.c (minus_zero): Likewise.
36828         * tests/test-frexpl.c (minus_zero): Likewise.
36829         * tests/test-isnan.c (minus_zerol): Likewise.
36830         * tests/test-isnanl.h (minus_zero): Likewise.
36831         * tests/test-ldexpl.c (minus_zero): Likewise.
36832         * tests/test-roundl.c (minus_zero): Likewise.
36833         * tests/test-signbit.c (minus_zerol): Likewise.
36834         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36835         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36836         * tests/test-truncl.c (minus_zero): Likewise.
36837         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36838         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36839         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36840         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36841
36842 2008-10-17  Bruno Haible  <bruno@clisp.org>
36843
36844         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36845         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36846         that it gets activated only for gcc >= 3.0.
36847         * lib/dirent.in.h: Likewise.
36848         * lib/errno.in.h: Likewise.
36849         * lib/fcntl.in.h: Likewise.
36850         * lib/float.in.h: Likewise.
36851         * lib/iconv.in.h: Likewise.
36852         * lib/inttypes.in.h: Likewise.
36853         * lib/locale.in.h: Likewise.
36854         * lib/math.in.h: Likewise.
36855         * lib/netdb.in.h: Likewise.
36856         * lib/netinet_in.in.h: Likewise.
36857         * lib/search.in.h: Likewise.
36858         * lib/signal.in.h: Likewise.
36859         * lib/spawn.in.h: Likewise.
36860         * lib/stdarg.in.h: Likewise.
36861         * lib/stdint.in.h: Likewise.
36862         * lib/stdio.in.h: Likewise.
36863         * lib/stdlib.in.h: Likewise.
36864         * lib/string.in.h: Likewise.
36865         * lib/strings.in.h: Likewise.
36866         * lib/sys_file.in.h: Likewise.
36867         * lib/sys_ioctl.in.h: Likewise.
36868         * lib/sys_select.in.h: Likewise.
36869         * lib/sys_socket.in.h: Likewise.
36870         * lib/sys_stat.in.h: Likewise.
36871         * lib/sys_time.in.h: Likewise.
36872         * lib/sysexits.in.h: Likewise.
36873         * lib/time.in.h: Likewise.
36874         * lib/unistd.in.h: Likewise.
36875         * lib/wchar.in.h: Likewise.
36876         * lib/wctype.in.h: Likewise.
36877         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36878
36879 2008-10-17  Jim Meyering  <meyering@redhat.com>
36880
36881         ignore-value: don't depend on inline module
36882         * modules/ignore-value (Depends-on): Remove 'inline'.
36883         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36884         Suggestion from Bruno Haible.
36885
36886 2008-10-17  Bruno Haible  <bruno@clisp.org>
36887
36888         New implementation of condition variables for Win32.
36889         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36890         (gl_linked_waitqueue_t): New type.
36891         (gl_cond_t): Use it.
36892         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36893         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36894         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36895         (glthread_cond_init_func, glthread_cond_wait_func,
36896         glthread_cond_timedwait_func, glthread_cond_signal_func,
36897         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36898         Reimplemented on the basis of gl_linked_waitqueue_t.
36899         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36900         gl_waitqueue_t.
36901         (gl_rwlock_t): Update.
36902         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36903
36904 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36905
36906         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36907         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36908
36909 2008-10-17  Jim Meyering  <meyering@redhat.com>
36910
36911         ignore-value: new module
36912         * modules/ignore-value: New file.
36913         * lib/ignore-value.h: New file.
36914         * MODULES.html.sh (Compiler warning management): New section,
36915         just for this module.  More to come.
36916
36917 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36918
36919         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36920         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36921         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36922
36923 2008-10-16  Jim Meyering  <meyering@redhat.com>
36924
36925         openat-die.c: avoid 'no previous prototype' warning
36926         * lib/openat-die.c: Include "openat.h".
36927         Reported by Reuben Thomas <rrt@sc3d.org>.
36928
36929 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36930
36931         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36932         * lib/netdb.in.h: Fix typo.
36933         Reported by Bruno Haible  <bruno@clisp.org>
36934
36935         * lib/netdb.in.h: Include sys/socket.h for platforms without
36936         netdb.h, to get structures like hostent on MinGW.
36937         * modules/netdb (Depends-on): Add sys_socket.
36938
36939 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36940
36941         * modules/netdb, modules/netdb-tests: New file.
36942         * m4/netdb_h.m4: New file.
36943         * lib/netdb.in.h: Add, currently just an empty file pending
36944         definitions.
36945         * tests/test-netdb.c: New file.
36946         * doc/posix-headers/netdb.texi: Mention that we replace it if
36947         needed.
36948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36949         netdb.
36950
36951 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36952
36953         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36954         with code.
36955
36956 2008-10-13  Bruno Haible  <bruno@clisp.org>
36957
36958         * lib/glthread/cond.c (glthread_cond_wait_func,
36959         glthread_cond_timedwait_func): Add a comment.
36960
36961 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36962
36963         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36964         * tests/test-select.c: Likewise,
36965
36966 2008-10-13  Bruno Haible  <bruno@clisp.org>
36967
36968         * lib/glthread/cond.c (glthread_cond_wait_func,
36969         glthread_cond_timedwait_func): Fix variable name.
36970         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36971
36972 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36973
36974         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36975         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36976         struct sockaddr.sa_len.
36977         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36978
36979 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36980
36981         * build-aux/pmccabe2html: Add css and css_url parameters.
36982
36983 2008-10-12  Bruno Haible  <bruno@clisp.org>
36984
36985         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36986         calling aclx_get.
36987         Reported by Rainer Tammer <tammer@tammer.net>.
36988
36989 2008-10-12  Bruno Haible  <bruno@clisp.org>
36990
36991         Use msvcrt aware primitives for creation/termination of Win32 threads.
36992         * lib/glthread/thread.c: Include <process.h>.
36993         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36994         (wrapper_func): Update signature.
36995         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36996
36997 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36998             Bruno Haible  <bruno@clisp.org>
36999
37000         Provide a Win32 implementation of the 'cond' module.
37001         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37002         * lib/glthread/cond.c (glthread_cond_init_func,
37003         glthread_cond_wait_func, glthread_cond_timedwait_func,
37004         glthread_cond_signal_func, glthread_cond_broadcast_func,
37005         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37006         * modules/cond (Dependencies): Add gettimeofday.
37007
37008 2008-10-11  Bruno Haible  <bruno@clisp.org>
37009
37010         Make sleep work on older versions of mingw.
37011         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37012         only whether it exists.
37013         * doc/posix-functions/sleep.texi: Mention the problem with older
37014         versions of mingw.
37015
37016 2008-10-11  Bruno Haible  <bruno@clisp.org>
37017
37018         New module 'shutdown'.
37019         * modules/shutdown: New file.
37020         * lib/sys_socket.in.h (shutdown): New declaration.
37021         * lib/winsock.c (shutdown): New function.
37022         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37023         GNULIB_SHUTDOWN.
37024         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37025         * doc/posix-functions/shutdown.texi: Document the new module.
37026
37027 2008-10-11  Jim Meyering  <meyering@redhat.com>
37028
37029         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37030
37031 2008-10-11  Bruno Haible  <bruno@clisp.org>
37032
37033         New module 'fclose'.
37034         * modules/fclose: New file.
37035         * lib/stdio.in.h (fclose): New declaration.
37036         * lib/fclose.c: New file.
37037         * m4/fclose.m4: New file.
37038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37039         REPLACE_FCLOSE.
37040         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37041         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37042         REPLACE_FCLOSE.
37043         * modules/close (Depends-on): fclose.
37044         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37045
37046 2008-10-11  Bruno Haible  <bruno@clisp.org>
37047
37048         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37049         set errno and don't call _close.
37050
37051 2008-10-10  Bruno Haible  <bruno@clisp.org>
37052
37053         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37054         ACL, not afterwards. Fixes test failure on Cygwin.
37055
37056 2008-10-09  Ben Pfaff  <blp@gnu.org>
37057
37058         * build-aux/announce-gen: Fix gnulib version related part of usage
37059         message.  Die with a useful error message if no tarballs are
37060         found.
37061
37062 2008-10-10  Jim Meyering  <meyering@redhat.com>
37063
37064         bootstrap: use git's --depth=N option only if it's supported
37065         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37066         recognize the --depth option.  Reported by Pádraig Brady.
37067
37068 2008-10-09  Bruno Haible  <bruno@clisp.org>
37069
37070         New module 'ioctl'.
37071         * modules/ioctl: New file.
37072         * lib/sys_socket.in.h (ioctl): Remove declaration.
37073         * lib/winsock.c: Include <sys/ioctl.h>.
37074         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37075         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37076         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37077         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37078         * doc/posix-functions/ioctl.texi: Mention the new module.
37079
37080 2008-10-09  Bruno Haible  <bruno@clisp.org>
37081
37082         New module 'sys_ioctl'.
37083         * lib/sys_ioctl.in.h: New file.
37084         * m4/sys_ioctl_h.m4: New file.
37085         * modules/sys_ioctl: New file.
37086         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37087
37088 2008-10-09  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37091         * lib/winsock.c: Include <stdarg.h>.
37092         (rpl_ioctl): Change to second argument 'int' and then varargs.
37093
37094 2008-10-09  Bruno Haible  <bruno@clisp.org>
37095
37096         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37097         when the sys_socket module is present and the system has <winsock2.h>.
37098
37099 2008-10-09  Bruno Haible  <bruno@clisp.org>
37100
37101         * doc/posix-functions/close.texi: Mention module 'close' instead of
37102         module 'sys_socket'.
37103
37104 2008-10-09  Bruno Haible  <bruno@clisp.org>
37105
37106         * doc/glibc-headers/sys_ioctl.texi: New file.
37107         * doc/gnulib.texi: Include it.
37108
37109 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37110             Bruno Haible  <bruno@clisp.org>
37111
37112         Combine the two replacements of 'close'.
37113         * lib/sys_socket.in.h (close): Define to a reminder to include
37114         <unistd.h>.
37115         (_gl_close_fd_maybe_socket): New declaration.
37116         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37117         * lib/winsock.c (close): Remove undefinition.
37118         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37119         needed for the gnulib module 'close'.
37120         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37121         define to an error symbol or to a warning, if suitable.
37122         * lib/close.c: Include <sys/socket.h>.
37123         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37124         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37125         UNISTD_H_HAVE_WINSOCK2_H.
37126         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37128         UNISTD_H_HAVE_WINSOCK2_H.
37129         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37130         (configure.ac): Set a module indicator.
37131         (Makefile.am): Substitute GNULIB_CLOSE.
37132         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37133         * modules/poll-tests (Depends-on): Add close.
37134         * modules/select-tests (Depends-on): Likewise.
37135
37136 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37137             Bruno Haible  <bruno@clisp.org>
37138
37139         New module 'close'.
37140         * modules/close: New file.
37141         * lib/unistd.in.h (close): Move declaration out of the
37142         FCHDIR_REPLACEMENT scope.
37143         (_gl_unregister_fd): New declaration.
37144         * lib/close.c: New file.
37145         * lib/fchdir.c (rpl_close): Remove function.
37146         * m4/close.m4: New file.
37147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37148         close.
37149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37150         REPLACE_CLOSE.
37151         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37152         REPLACE_CLOSE.
37153         * modules/fchdir (Depends-on): Add close.
37154
37155 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37156             Bruno Haible  <bruno@clisp.org>
37157
37158         * lib/fcntl.in.h (open): Simplify conditionals.
37159         (_gl_register_fd): New declaration.
37160         * lib/fchdir.c (rpl_open): Remove function.
37161         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37162         also.
37163         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37164         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37165         open.
37166
37167 2008-10-09  Jim Meyering  <meyering@redhat.com>
37168
37169         GNUmakefile: use the more name-space-friendly "_version"
37170         * top/GNUmakefile (_dummy): Update.
37171         (_version): Rename from "version".
37172
37173 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37174             Bruno Haible  <bruno@clisp.org>
37175
37176         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37177         rpl_close.
37178         (_gl_register_fd): New function, extracted from rpl_open.
37179         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37180         (rpl_open, rpl_opendir): Use _gl_register_fd.
37181
37182 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37183
37184         Fix organization of 'open' replacement.
37185         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37186         (gl_FUNC_OPEN): Use it.
37187         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37188
37189 2008-10-08  Bruno Haible  <bruno@clisp.org>
37190
37191         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37192
37193 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37194
37195         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37196         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37197         listen).
37198
37199 2008-10-08  Eric Blake  <ebb9@byu.net>
37200
37201         GNUmakefile: add 'make version' target
37202         * top/GNUmakefile (_curr-ver): Split version update rules...
37203         (version): ...into a target.
37204
37205 2008-10-07  Bruno Haible  <bruno@clisp.org>
37206
37207         Use a more portable replacement expression for -0.0L.
37208         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37209         instead of -0.0L. Fix m4 quotation.
37210
37211         * tests/test-signbit.c: Include <float.h>.
37212         (minus_zero): New variable.
37213         (test_signbitl): Use minus_zero instead of -zero.
37214         * modules/signbit-tests (Depends-on): Add float.
37215
37216         * tests/test-ceill.c: Include <float.h>.
37217         (zero): Remove variable.
37218         (minus_zero): New variable.
37219         (main): Use minus_zero instead of -zero.
37220         * modules/ceill-tests (Depends-on): Add float.
37221
37222         * tests/test-floorl.c: Include <float.h>.
37223         (zero): Remove variable.
37224         (minus_zero): New variable.
37225         (main): Use minus_zero instead of -zero.
37226         * modules/floorl-tests (Depends-on): Add float.
37227
37228         * tests/test-roundl.c: Include <float.h>.
37229         (zero): Remove variable.
37230         (minus_zero): New variable.
37231         (main): Use minus_zero instead of -zero.
37232         * modules/roundl-tests (Depends-on): Add float.
37233
37234         * tests/test-truncl.c: Include <float.h>.
37235         (zero): Remove variable.
37236         (minus_zero): New variable.
37237         (main): Use minus_zero instead of -zero.
37238         * modules/truncl-tests (Depends-on): Add float.
37239
37240         * tests/test-frexpl.c (zero): Remove variable.
37241         (minus_zero): New variable.
37242         (main): Use minus_zero instead of -zero.
37243         * modules/frexpl-tests (Depends-on): Add float.
37244
37245         * tests/test-isnan.c (zerol): Remove variable.
37246         (minus_zerol): New variable.
37247         (test_long_double): Use minus_zerol instead of -zerol.
37248         * modules/isnan-tests (Depends-on): Add float.
37249
37250         * tests/test-isnanl.h (zero): Remove variable.
37251         (minus_zero): New variable.
37252         (main): Use minus_zero instead of -zero.
37253         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37254         * modules/isnanl-tests (Depends-on): Add float.
37255
37256         * tests/test-ldexpl.c (zero): Remove variable.
37257         (minus_zero): New variable.
37258         (main): Use minus_zero instead of -zero.
37259         * modules/ldexpl-tests (Depends-on): Add float.
37260
37261         * tests/test-snprintf-posix.h (zerol): Remove variable.
37262         (minus_zerol): New variable.
37263         (test_function): Use minus_zerol instead of -zerol.
37264         * modules/snprintf-posix-tests (Depends-on): Add float.
37265         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37266
37267         * tests/test-sprintf-posix.h (zerol): Remove variable.
37268         (minus_zerol): New variable.
37269         (test_function): Use minus_zerol instead of -zerol.
37270         * modules/sprintf-posix-tests (Depends-on): Add float.
37271         * modules/vsprintf-posix-tests (Depends-on): Add float.
37272
37273         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37274         (minus_zerol): New variable.
37275         (test_function): Use minus_zerol instead of -zerol.
37276         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37277
37278         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37279         (minus_zerol): New variable.
37280         (test_function): Use minus_zerol instead of -zerol.
37281         * modules/vasprintf-posix-tests (Depends-on): Add float.
37282
37283 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37284
37285         * MODULES.html.sh (Support for building documentation): Mention
37286         pmccabe2html.  Sort entries.
37287
37288         Add pmccabe2html module, from gnupdf.
37289         * build-aux/pmccabe.css: New file.
37290         * build-aux/pmccabe2html: New file.
37291         * m4/pmccabe2html.m4: New file.
37292         * modules/pmccabe2html: New file.
37293
37294 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37295
37296         flock: new module
37297         * MODULES.html.sh: Add to list of modules.
37298         * lib/flock.c: flock implementation for Windows and Unix systems
37299         which have fcntl.
37300         * doc/glibc-functions/flock.texi: Update documentation.
37301         * lib/sys_file.in.h: <sys/file.h> header file.
37302         * m4/flock.m4: M4 macros.
37303         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37304         * modules/flock: flock module.
37305         * modules/flock-tests: flock tests module.
37306         * modules/sys_file: sys/file.h module.
37307         * tests/test-flock.c: test suite for flock.
37308
37309 2008-10-06  Jim Meyering  <meyering@redhat.com>
37310
37311         bootstrap: check for LT_INIT more portably still ;-)
37312         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37313         Spotted by Bruno Haible.
37314
37315 2008-10-06  Eric Blake  <ebb9@byu.net>
37316
37317         test-signbit: avoid tripping Irix cc bug on -0.0L
37318         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37319         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37320         entire testsuite consistent and avoids an Irix 6.2 bug.
37321
37322 2008-10-05  Bruno Haible  <bruno@clisp.org>
37323             Jim Meyering  <jim@meyering.net>
37324
37325         Add an option for ignoring EPIPE during close_stdout.
37326         * lib/closeout.h: Include <stdbool.h>.
37327         (close_stdout_set_ignore_EPIPE): New declaration.
37328         * lib/closeout.c: Include <stdbool.h>.
37329         (ignore_EPIPE): New variable.
37330         (close_stdout_set_ignore_EPIPE): New function.
37331         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37332         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37333         failure.
37334         * modules/closeout (Depends-on): Add stdbool.
37335
37336 2008-10-05  Bruno Haible  <bruno@clisp.org>
37337
37338         * modules/accept: New file.
37339         * modules/bind: New file.
37340         * modules/connect: New file.
37341         * modules/getpeername: New file.
37342         * modules/getsockname: New file.
37343         * modules/getsockopt: New file.
37344         * modules/listen: New file.
37345         * modules/recv: New file.
37346         * modules/recvfrom: New file.
37347         * modules/send: New file.
37348         * modules/sendto: New file.
37349         * modules/setsockopt: New file.
37350         * modules/socket: New file.
37351         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37352         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37353         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37354         the particular module is requested. Add a link warning when the
37355         particular module is not requested.
37356         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37357         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37358         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37359         the particular module is requested.
37360         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37361         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37362         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37363         * modules/sys_socket (Depends-on): Add link-warning.
37364         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37365         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37366         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37367         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37368         GL_LINK_WARNING.
37369         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37370         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37371         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37372         * doc/posix-functions/getpeername.texi: Mention the new module
37373         'getpeername'.
37374         * doc/posix-functions/getsockname.texi: Mention the new module
37375         'getsockname'.
37376         * doc/posix-functions/getsockopt.texi: Mention the new module
37377         'getsockopt'.
37378         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37379         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37380         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37381         * doc/posix-functions/send.texi: Mention the new module 'send'.
37382         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37383         * doc/posix-functions/setsockopt.texi: Mention the new module
37384         'setsockopt'.
37385         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37386         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37387         listen, connect, accept.
37388         * modules/select-tests (Depends-on): Likewise.
37389
37390 2008-10-05  Bruno Haible  <bruno@clisp.org>
37391
37392         * lib/winsock.c (strerror): Remove unused #undef.
37393         (rpl_close): Remove unused local variable.
37394
37395         * modules/sys_socket (Depends-on); Add errno.
37396
37397 2008-10-05  Bruno Haible  <bruno@clisp.org>
37398
37399         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37400         (select): Add a link warning when the 'select' module is not used.
37401         * modules/sys_select (Depends-on): Add link-warning.
37402         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37403         Suggested by Paolo Bonzini.
37404
37405 2008-10-05  Jim Meyering  <meyering@redhat.com>
37406
37407         bootstrap: check for LT_INIT more portably
37408         * build-aux/bootstrap: Avoid using grep -E, since it's not
37409         portable enough.  Suggestion from Bruno Haible.
37410
37411 2008-10-05  Bruno Haible  <bruno@clisp.org>
37412
37413         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37414         as being fixed by gnulib.
37415
37416 2008-10-05  Bruno Haible  <bruno@clisp.org>
37417
37418         * modules/select-tests: New file, mostly copied from
37419         modules/sys_select-tests.
37420         * tests/test-select.c: New file, mostly copied from
37421         tests/test-sys_select.c.
37422         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37423         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37424         (Makefile.am): Remove test_sys_select_LDADD.
37425
37426         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37427         to an undefined symbol, for an error message.
37428         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37429         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37430         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37431         winsock-select.c here.
37432         * modules/sys_select (Files): Remove lib/winsock-select.c.
37433         (Depends-on): Remove alloca.
37434         (Makefile.am): Substitute GNULIB_SELECT.
37435         * modules/select: New file.
37436         * doc/posix-functions/select.texi: Update.
37437
37438 2008-10-05  Bruno Haible  <bruno@clisp.org>
37439
37440         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37441         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37442         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37443         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37444         getdtablesize.
37445         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37446         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37447
37448 2008-10-05  Bruno Haible  <bruno@clisp.org>
37449
37450         * modules/getdtablesize-tests: New file.
37451         * tests/test-getdtablesize.c: New file.
37452
37453         New module 'getdtablesize'.
37454         * lib/unistd.in.h (getdtablesize): New declaration.
37455         * lib/getdtablesize.c: New file.
37456         * m4/getdtablesize.m4: New file.
37457         * modules/getdtablesize: New file.
37458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37459         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37460         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37461         HAVE_GETDTABLESIZE.
37462         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37463
37464 2008-10-05  Bruno Haible  <bruno@clisp.org>
37465
37466         * modules/sched (Makefile.am): Fix typo.
37467         Reported by Simon Josefsson.
37468
37469 2008-10-05  Jim Meyering  <meyering@redhat.com>
37470
37471         bootstrap: check for LT_INIT, too
37472         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37473         are deprecated.  Suggestion from Ralf Wildenhues.
37474
37475 2008-10-05  Bruno Haible  <bruno@clisp.org>
37476
37477         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37478         overriding them by ours.
37479         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37480
37481 2008-10-05  Jim Meyering  <meyering@redhat.com>
37482
37483         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37484         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37485         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37486
37487 2008-10-04  Bruno Haible  <bruno@clisp.org>
37488
37489         * modules/dup2 (License): Change to LGPLv2+.
37490         * modules/sleep (License): Likewise.
37491         * modules/perror (License): Likewise.
37492         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37493         Blake.
37494         * modules/signal (License): Likewise.
37495         * modules/sigprocmask (License): Likewise.
37496         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37497         Meyering.
37498
37499 2008-10-04  Bruno Haible  <bruno@clisp.org>
37500
37501         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37502         Reported by Rainer Tammer <tammer@tammer.net>.
37503
37504 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37505             Bruno Haible  <bruno@clisp.org>
37506
37507         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37508         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37509         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37510
37511 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37512
37513         filevercmp: new module
37514         * lib/filevercmp.h: New function filevercmp comparing version strings.
37515         * lib/filevercmp.c: Implementation of filevercmp function.
37516         * modules/filevercmp: Module metadata.
37517         * tests/test-filevercmp.c: Unit test for new module.
37518         * modules/filevercmp-tests: Unit test metadata.
37519         * MODULES.html.sh: Add filevercmp module.
37520
37521 2008-10-03  Bruno Haible  <bruno@clisp.org>
37522
37523         * lib/c-ctype.h: Add comment.
37524         Reported by Jim Meyering.
37525
37526 2008-10-02  Bruno Haible  <bruno@clisp.org>
37527
37528         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37529
37530 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37531
37532         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37533         name of bootstrap.conf accordingly.
37534
37535 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37536
37537         * build-aux/bootstrap: Install git-merge-changelog configuration
37538         items into .gitconfig if needed.
37539
37540 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37541
37542         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37543         git repository, and initialize/update it accordingly.
37544
37545 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37546
37547         * modules/fsync-tests: New file.
37548         * tests/test-fsync.c: New file.
37549
37550         New module 'fsync'.
37551         * lib/fsync.c: New file.
37552         * m4/fsync.m4: New file.
37553         * modules/fsync: New file.
37554         * lib/unistd.in.h (fsync): New declaration.
37555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37556         GNULIB_FSYNC and HAVE_FSYNC.
37557         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37558         * MODULES.html.sh (posix_functions): Add fsync.
37559         * doc/posix-functions/fsync.texi: Mention the new module.
37560
37561 2008-10-02  Jim Meyering  <meyering@redhat.com>
37562
37563         fts.c: sync with similar code from coreutils' remove.c
37564         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37565         Guard also with "#if defined __linux__", since for now at least,
37566         this code is Linux-kernel-specific.
37567
37568 2008-10-02  Jim Meyering  <meyering@redhat.com>
37569
37570         fts: bug fixes
37571         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37572         Include <sys/vfs.h>, not <sys/statfs.h>.
37573
37574         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37575         Include <sys/vfs.h>, not <sys/statfs.h>.
37576
37577 2008-10-01  Bruno Haible  <bruno@clisp.org>
37578
37579         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37580         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37581         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37582         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37583         * doc/posix-functions/posix_spawnp.texi: Likewise.
37584         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37585         whether posix_spawn actually works.
37586         * m4/pipe.m4 (gl_PIPE): Likewise.
37587         * modules/execute (Files): Add m4/posix_spawn.m4.
37588         * modules/pipe (Files): Add m4/posix_spawn.m4.
37589         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37590
37591 2008-10-01  Jim Meyering  <meyering@redhat.com>
37592
37593         remove trailing spaces
37594         * NEWS: Likewise.
37595         * lib/poll.c (poll): Likewise.
37596         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37597         * lib/winsock.c (rpl_close): Likewise.
37598         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37599         * modules/yield: Likewise.
37600         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37601         * tests/test-sys_select.c (connect_to_socket): Likewise.
37602
37603         fts.c: adjust a new interface to be more generally useful
37604         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37605         (fts_build): Adjust caller.
37606
37607 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37608
37609         * modules/cond-tests: New file.
37610         * tests/test-cond.c: New file.
37611
37612 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37613             Bruno Haible  <bruno@clisp.org>
37614
37615         * modules/cond (Dependencies): Add errno, time.
37616         * lib/glthread/cond.h: Include <time.h>.
37617         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37618         across platforms.
37619
37620 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37621             Bruno Haible  <bruno@clisp.org>
37622
37623         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37624
37625 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37626             Bruno Haible  <bruno@clisp.org>
37627
37628         * modules/tls-tests (Depends-on): Add thread, yield.
37629         (configure.ac): Remove all checks.
37630         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37631         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37632         gl_thread_self): Remove definitions. Include glthread/thread.h and
37633         glthread/yield.h instead.
37634         (test_tls): Pass an additional NULL argument to gl_thread_join.
37635
37636 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37637             Bruno Haible  <bruno@clisp.org>
37638
37639         * modules/lock-tests (Depends-on): Add thread, yield.
37640         (configure.ac): Remove all checks.
37641         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37642         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37643         gl_thread_self): Remove definitions. Include glthread/thread.h and
37644         glthread/yield.h instead.
37645         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37646         additional NULL argument to gl_thread_join.
37647
37648 2008-09-30  Bruno Haible  <bruno@clisp.org>
37649
37650         Fix the Win32 implementation of the 'thread' module.
37651         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37652         pointer type.
37653         (gl_thread_self): Invoke gl_thread_self_func.
37654         (gl_thread_self_func): New declaration.
37655         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37656         (do_init_self_key, init_self_key): New functions.
37657         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37658         Remove some fields.
37659         (running_threads, running_lock): Remove variables.
37660         (get_current_thread_handle): New function.
37661         (gl_thread_self_func, wrapper_func, glthread_create_func,
37662         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37663         simplified.
37664
37665 2008-09-30  Bruno Haible  <bruno@clisp.org>
37666
37667         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37668         files.
37669
37670 2008-09-30  Jim Meyering  <meyering@redhat.com>
37671
37672         fts.m4: correct the test for statfs.f_type
37673         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37674         when checking for statfs.f_type.
37675
37676 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37677
37678         tests: avoid some compiler warnings
37679         * tests/test-memchr.c (main): Pass NULL indirectly.
37680         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37681
37682 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37683
37684         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37685         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37686         exactly specified dayshifts.
37687         (dayshift): New rule.
37688         (rel): Add dayshift.
37689         (relative_time_table) [tomorrow, yesterday, today, now]:
37690         Use tDAY_SHIFT in place of tDAY_UNIT.
37691         * tests/test-getdate.c: Add tests for now-disallowed countable
37692         dayshifts, e.g., "4 yesterday ago".
37693
37694 2008-09-29  Bruno Haible  <bruno@clisp.org>
37695
37696         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37697         * tests/test-posix_spawn1.in.sh: Renamed from
37698         tests/test-posix_spawn.in.sh.
37699         * tests/test-posix_spawn2.c: New file.
37700         * tests/test-posix_spawn2.in.sh: New file.
37701         * modules/posix_spawnp-tests (Files): Update.
37702         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37703
37704 2008-09-29  Bruno Haible  <bruno@clisp.org>
37705
37706         Propagate effects of putenv/setenv/unsetenv to child processes.
37707         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37708         * lib/pipe.c (create_pipe): Likewise.
37709
37710 2008-09-29  Bruno Haible  <bruno@clisp.org>
37711
37712         Enable use of shell scripts as executables in mingw.
37713         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37714         run the program as a shell script.
37715         * lib/pipe.c (create_pipe): Likewise.
37716         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37717         resulting array.
37718
37719 2008-09-29  Eric Blake  <ebb9@byu.net>
37720
37721         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37722
37723 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37724
37725         * doc/posix-functions/accept.texi: Update mingw problems.
37726         * doc/posix-functions/bind.texi: Update mingw problems.
37727         * doc/posix-functions/close.texi: Update mingw problems.
37728         * doc/posix-functions/connect.texi: Update mingw problems.
37729         * doc/posix-functions/getpeername.texi: Update mingw problems.
37730         * doc/posix-functions/getsockname.texi: Update mingw problems.
37731         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37732         * doc/posix-functions/ioctl.texi: Update mingw problems.
37733         * doc/posix-functions/listen.texi: Update mingw problems.
37734         * doc/posix-functions/recv.texi: Update mingw problems.
37735         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37736         * doc/posix-functions/select.texi: Update mingw problems.
37737         * doc/posix-functions/send.texi: Update mingw problems.
37738         * doc/posix-functions/sendto.texi: Update mingw problems.
37739         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37740         * doc/posix-functions/socket.texi: Update mingw problems.
37741
37742 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37743             Bruno Haible  <bruno@clisp.org>
37744
37745         * lib/sys_select.in.h: Include sys/time.h.
37746         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37747         * modules/sys_select: Depend on sys_time.
37748         * tests/test-sys_select.c: Test that sys/select.h defines struct
37749         timeval fully.
37750
37751 2008-09-29  Bruno Haible  <bruno@clisp.org>
37752
37753         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37754         * lib/sys_select.in.h: Likewise.
37755
37756 2008-09-29  Bruno Haible  <bruno@clisp.org>
37757
37758         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37759
37760 2008-09-29  Bruno Haible  <bruno@clisp.org>
37761
37762         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37763         Set LIBSOCKET instead of augmenting LIBS.
37764         * modules/sockets (Link): New section.
37765         * modules/sockets-tests (test_sockets_LDADD): New variable.
37766         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37767         * modules/poll-tests (test_poll_LDADD): New variable.
37768         * NEWS: Document the change.
37769
37770 2008-09-29  Bruno Haible  <bruno@clisp.org>
37771
37772         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37773         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37774         ARPA_INET_H directly.
37775         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37776
37777 2008-09-28  Bruno Haible  <bruno@clisp.org>
37778
37779         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37780         from gl_HEADER_SYS_SOCKET.
37781         (gl_HEADER_SYS_SOCKET): Invoke it.
37782         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37783
37784 2008-09-28  Bruno Haible  <bruno@clisp.org>
37785
37786         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37787         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37788         Needed on OSF/1 4.0.
37789
37790 2008-09-28  Bruno Haible  <bruno@clisp.org>
37791
37792         Override open more carefully.
37793         * lib/open.c (orig_open): New function.
37794         (rpl_open): Use orig_open instead of open.
37795         * lib/fcntl.in.h: Add special invocation convention.
37796         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37797         (gl_FUNC_OPEN): Invoke it.
37798
37799         Override freopen more carefully.
37800         * lib/freopen.c (orig_freopen): New function.
37801         (rpl_freopen): Use orig_freopen instead of freopen.
37802         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37803         (gl_FUNC_FREOPEN): Invoke it.
37804
37805         Override fopen more carefully.
37806         * lib/fopen.c (orig_fopen): New function.
37807         (rpl_fopen): Use orig_fopen instead of fopen.
37808         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37809         (gl_FUNC_FOPEN): Invoke it.
37810         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37811
37812 2008-09-28  Bruno Haible  <bruno@clisp.org>
37813
37814         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37815         SIGPIPE.
37816
37817 2008-09-28  Bruno Haible  <bruno@clisp.org>
37818
37819         * tests/test-sigaction.c (handler, main): Disable the check whether
37820         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37821         glibc systems with LinuxThreads.
37822
37823 2008-09-28  Bruno Haible  <bruno@clisp.org>
37824
37825         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37826
37827         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37828         with AIX xlc.
37829         * lib/fcntl.in.h (open): Likewise.
37830         Reported by Rainer Tammer <tammer@tammer.net>.
37831
37832 2008-09-28  Bruno Haible  <bruno@clisp.org>
37833
37834         * modules/posix_spawnp-tests: New file.
37835         * tests/test-posix_spawn.c: New file.
37836         * tests/test-posix_spawn.in.sh: New file.
37837
37838         New module 'posix_spawnp'.
37839         * modules/posix_spawnp: New file.
37840         * lib/spawnp.c: New file, from GNU libc with modifications.
37841         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37842
37843         New module 'posix_spawn'.
37844         * modules/posix_spawn: New file.
37845         * lib/spawn.c: New file, from GNU libc with modifications.
37846         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37847
37848         New module 'posix_spawnattr_destroy'.
37849         * modules/posix_spawnattr_destroy: New file.
37850         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37851         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37852         module.
37853
37854         New module 'posix_spawnattr_setsigmask'.
37855         * modules/posix_spawnattr_setsigmask: New file.
37856         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37857         modifications.
37858         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37859         new module.
37860
37861         New module 'posix_spawnattr_getsigmask'.
37862         * modules/posix_spawnattr_getsigmask: New file.
37863         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37864         modifications.
37865         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37866         new module.
37867
37868         New module 'posix_spawnattr_setsigdefault'.
37869         * modules/posix_spawnattr_setsigdefault: New file.
37870         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37871         modifications.
37872         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37873         new module.
37874
37875         New module 'posix_spawnattr_getsigdefault'.
37876         * modules/posix_spawnattr_getsigdefault: New file.
37877         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37878         modifications.
37879         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37880         new module.
37881
37882         New module 'posix_spawnattr_setschedpolicy'.
37883         * modules/posix_spawnattr_setschedpolicy: New file.
37884         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37885         modifications.
37886         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37887         new module.
37888
37889         New module 'posix_spawnattr_getschedpolicy'.
37890         * modules/posix_spawnattr_getschedpolicy: New file.
37891         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37892         modifications.
37893         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37894         new module.
37895
37896         New module 'posix_spawnattr_setschedparam'.
37897         * modules/posix_spawnattr_setschedparam: New file.
37898         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37899         modifications.
37900         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37901         new module.
37902
37903         New module 'posix_spawnattr_getschedparam'.
37904         * modules/posix_spawnattr_getschedparam: New file.
37905         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37906         modifications.
37907         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37908         new module.
37909
37910         New module 'posix_spawnattr_setpgroup'.
37911         * modules/posix_spawnattr_setpgroup: New file.
37912         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37913         modifications.
37914         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37915         module.
37916
37917         New module 'posix_spawnattr_getpgroup'.
37918         * modules/posix_spawnattr_getpgroup: New file.
37919         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37920         modifications.
37921         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37922         module.
37923
37924         New module 'posix_spawnattr_setflags'.
37925         * modules/posix_spawnattr_setflags: New file.
37926         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37927         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37928         module.
37929
37930         New module 'posix_spawnattr_getflags'.
37931         * modules/posix_spawnattr_getflags: New file.
37932         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37933         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37934         module.
37935
37936         New module 'posix_spawnattr_init'.
37937         * modules/posix_spawnattr_init: New file.
37938         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37939         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37940         module.
37941
37942         New module 'posix_spawn_file_actions_destroy'.
37943         * modules/posix_spawn_file_actions_destroy: New file.
37944         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37945         modifications.
37946         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37947         the new module.
37948
37949         New module 'posix_spawn_file_actions_addopen'.
37950         * modules/posix_spawn_file_actions_addopen: New file.
37951         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37952         modifications.
37953         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37954         the new module.
37955
37956         New module 'posix_spawn_file_actions_adddup2'.
37957         * modules/posix_spawn_file_actions_adddup2: New file.
37958         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37959         modifications.
37960         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37961         the new module.
37962
37963         New module 'posix_spawn_file_actions_addclose'.
37964         * modules/posix_spawn_file_actions_addclose: New file.
37965         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37966         modifications.
37967         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37968         the new module.
37969
37970         New module 'posix_spawn_file_actions_init'.
37971         * modules/posix_spawn_file_actions_init: New file.
37972         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37973         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37974         new module.
37975
37976         New module 'posix_spawn-internal'.
37977         * modules/posix_spawn-internal: New file.
37978         * lib/spawn_int.h: New file, from GNU libc with modifications.
37979         * lib/spawni.c: New file, from GNU libc with modifications.
37980         * m4/posix_spawn.m4: New file.
37981
37982         New module 'spawn'.
37983         * modules/spawn: New file.
37984         * lib/spawn.in.h: New file, from GNU libc with modifications.
37985         * m4/spawn_h.m4: New file.
37986         * doc/posix-headers/spawn.texi: Mention the new module.
37987
37988 2008-09-28  Bruno Haible  <bruno@clisp.org>
37989
37990         * modules/sched-tests: New file.
37991         * tests/test-sched.c: New file.
37992
37993         New module 'sched'.
37994         * modules/sched: New file.
37995         * lib/sched.in.h: New file.
37996         * m4/sched_h.m4: New file.
37997         * doc/posix-headers/sched.texi: Mention the new module.
37998
37999 2008-09-27  Eric Blake  <ebb9@byu.net>
38000
38001         Fix previous patch, and tweak references to $0.
38002         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38003         (func_version, func_gnulib_dir): Don't call this program
38004         gnulib-tool.
38005         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38006         with using $0 in function.
38007         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38008         (func_fatal_error): Reuse the name the user invoked us with.
38009
38010 2008-09-27  Bruno Haible  <bruno@clisp.org>
38011
38012         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38013         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38014         (gl_ICONV_H): Not here.
38015         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38016         instead of assigning ICONV_H directly.
38017
38018         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38020         WCHAR_H directly.
38021
38022 2008-09-27  Bruno Haible  <bruno@clisp.org>
38023
38024         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38025         * modules/arpa_inet (Depends-on): Add link-warning.
38026         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38027         * modules/unistd (Makefile.am): Likewise.
38028
38029 2008-09-26  Bruno Haible  <bruno@clisp.org>
38030
38031         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38032         variables.
38033         (func_version): Essentially copied from gnulib-tool.
38034         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38035         func_readlink): Copied from gnulib-tool.
38036
38037 2008-09-26  Bruno Haible  <bruno@clisp.org>
38038
38039         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38040         invoking git-version-gen.
38041
38042 2008-09-26  Bruno Haible  <bruno@clisp.org>
38043
38044         * posix-modules: Update to directory names changed on 2008-01-19.
38045         Remove commas in output before splitting into words. No more need to
38046         avoid 'ftruncate' since 2007-02-19.
38047
38048 2008-09-26  Bruno Haible  <bruno@clisp.org>
38049
38050         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38051
38052 2008-09-26  Bruno Haible  <bruno@clisp.org>
38053
38054         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38055         * modules/fwriteerror (Depends-on): Add errno.
38056
38057 2008-09-26  Bruno Haible  <bruno@clisp.org>
38058
38059         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38060         * tests/test-vc-list-files-cvs.sh: Likewise.
38061
38062 2008-09-26  Bruno Haible  <bruno@clisp.org>
38063
38064         * doc/posix-headers/sys_resource.texi: Reorder items.
38065
38066 2008-09-26  Jim Meyering  <meyering@redhat.com>
38067
38068         fts: tweak inode comparison function
38069         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38070         inode numbers, as documented.
38071
38072         fts: sort dirent entries on inode number before traversing
38073         This avoids a quadratic, seek-related performance penalty when
38074         operating on a directory containing many entries (measurable at 10k;
38075         3.5 hours at 2 million entries with a cold cache) on certain types
38076         of file systems, including ext3 and ext4, but not tmpfs.
38077         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38078         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38079         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38080         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38081         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38082         (fts_build): Set the stat.st_ino member from D_INO.
38083         If it is likely to be useful, sort dirent entries on inode number.
38084
38085         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38086         and the struct statfs.f_type member.
38087         * modules/fts (Depends-on): Add d-ino.
38088
38089 2008-09-26  Bruno Haible  <bruno@clisp.org>
38090
38091         * modules/sigpipe-die (Depends-on): Add sigpipe.
38092
38093         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38094         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38095         and GNULIB_STDIO_H_SIGPIPE are set.
38096         * lib/stdio-write.c: New file.
38097         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38098         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38099         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38100         REPLACE_STDIO_WRITE_FUNCS.
38101         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38102         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38103         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38104         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38105         * modules/stdio (Files): Add lib/stdio-write.c.
38106         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38107         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38108         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38109         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38110         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38111         REPLACE_FPRINTF_POSIX.
38112         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38113         REPLACE_PRINTF_POSIX.
38114         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38115         REPLACE_VFPRINTF_POSIX.
38116         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38117         REPLACE_VPRINTF_POSIX.
38118         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38119         SIGPIPE issue.
38120         * doc/posix-functions/fputc.texi: Likewise.
38121         * doc/posix-functions/fputs.texi: Likewise.
38122         * doc/posix-functions/fwrite.texi: Likewise.
38123         * doc/posix-functions/printf.texi: Likewise.
38124         * doc/posix-functions/putc.texi: Likewise.
38125         * doc/posix-functions/putchar.texi: Likewise.
38126         * doc/posix-functions/puts.texi: Likewise.
38127         * doc/posix-functions/vfprintf.texi: Likewise.
38128         * doc/posix-functions/vprintf.texi: Likewise.
38129
38130         * modules/safe-write (Depends-on): Add write.
38131
38132         * modules/sigpipe-tests: New file.
38133         * tests/test-sigpipe.c: New file.
38134         * tests/test-sigpipe.sh: New file.
38135
38136         * modules/write: New file.
38137         * lib/unistd.in.h: Include <sys/types.h>.
38138         (write): New declaration.
38139         * lib/write.c: New file.
38140         * m4/write.m4: New file.
38141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38142         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38143         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38144         GNULIB_WRITE, REPLACE_WRITE.
38145         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38146         and the SIGPIPE issue.
38147
38148         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38149         (raise): New declaration.
38150         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38151         (ext_signal): New function.
38152         (rpl_raise): New function.
38153         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38154         GNULIB_SIGNAL_H_SIGPIPE.
38155         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38156         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38157
38158         * modules/sigpipe: New file.
38159         * m4/sigpipe.m4: New file.
38160
38161 2008-09-25  Derek Price  <derek@ximbiot.com>
38162             Bruno Haible  <bruno@clisp.org>
38163
38164         * gnulib-tool (func_import): Report all license incompatibilities, not
38165         just the first one.
38166
38167 2008-09-25  Bruno Haible  <bruno@clisp.org>
38168
38169         * gnulib-tool (func_import): When computing the edits, consider not
38170         only the Makefile.ams that exist but also those that will be generated.
38171
38172 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38173
38174         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38175         fixes gnulib-tool --test warning about duplicate dependency.
38176
38177 2008-09-25  Bruno Haible  <bruno@clisp.org>
38178
38179         * gnulib-tool: Don't ask the user to perform edits in the generated
38180         Makefile.ams.
38181         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38182         apply to the Makefile.am being generated.
38183         (func_emit_tests_Makefile_am): Execute edits that apply to the
38184         Makefile.am being generated.
38185         (func_import): Setup list of Makefile.am edits before emitting the
38186         Makefile.ams, not at the end.
38187         (func_create_testdir): Update.
38188         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38189
38190 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38191
38192         * gnulib-tool (func_import): Store the --tests-base option in the
38193         comment in gnulib-cache.m4.
38194
38195 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38196
38197         * NEWS: Document increased portability that sys_select now provides.
38198
38199         * lib/sys_select.in.h: Install select wrapper.
38200         * lib/sys_socket.in.h: Use more descriptive name when there is no
38201         select wrapper.
38202         * lib/winsock-select.c: New.
38203         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38204         Require gl_HEADER_SYS_SOCKET.
38205         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38206         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38207         * tests/test-sys_select.c: Add functional tests.
38208
38209 2008-09-24  Eric Blake  <ebb9@byu.net>
38210
38211         open, fopen: close fd leak in last patch
38212         * lib/open.c (rpl_open): Close fd before returning error.
38213         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38214         * doc/posix-functions/open.texi (open): Document that Irix also
38215         has the bug.
38216         * doc/posix-functions/fopen.texi (fopen): Likewise.
38217         Reported by Paolo Bonzini.
38218
38219 2008-09-24  Bruno Haible  <bruno@clisp.org>
38220
38221         Ensure that a filename ending in a slash cannot be used to access a
38222         non-directory.
38223         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38224         to check whether it's really a directory.
38225         * lib/fopen.c: Include fcntl.h, unistd.h.
38226         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38227         and fdopen().
38228         * modules/fopen (Depends-on): Add unistd.
38229         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38230         * tests/test-fopen.c (main): Likewise.
38231         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38232         * doc/posix-functions/fopen.texi: Likewise.
38233         Reported by Eric Blake.
38234
38235 2008-09-23  Eric Blake  <ebb9@byu.net>
38236
38237         c-stack: avoid compiler optimizations when provoking overflow
38238         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38239         recursion harder to optimize, to ensure a stack overflow occurs.
38240         * tests/test-c-stack.c (recurse): Likewise.
38241         Borrowed from libsigsegv.
38242
38243         c-stack: work around Irix sigaltstack bug
38244         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38245         whether sigaltstack uses wrong end of stack_t (copied in part from
38246         libsigsegv).
38247         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38248         Irix bug, without requiring an over-allocation.
38249         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38250         bug.
38251
38252         fopen: document mingw bug on directories
38253         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38254         not allowing a stream visiting a directory, even though reading
38255         from such a stream is not portable.
38256
38257 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38258
38259         * lib/poll.c: Rewrite.
38260         * modules/poll: Depend on alloca.
38261
38262 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38263
38264         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38265         instead define prototypes for a full set of wrappers.  Ensure
38266         that Cygwin does not use the compatibility code, which is only
38267         for MinGW.
38268         * lib/winsock.c: New.
38269         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38270         * modules/sys_socket: Add lib/winsock.c.
38271
38272         * modules/poll-tests: Add errno and perror.
38273         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38274
38275 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38276
38277         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38278
38279 2008-09-23  Bruno Haible  <bruno@clisp.org>
38280
38281         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38282         * doc/glibc-functions/*: Likewise.
38283
38284 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38285
38286         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38287         success.
38288
38289 2008-09-22  Eric Blake  <ebb9@byu.net>
38290             Bruno Haible  <bruno@clisp.org>
38291
38292         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38293         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38294         supply %A but mishandle pseudo-NaN.
38295         Reported by Simon Josefsson.
38296
38297 2008-09-21  Bruno Haible  <bruno@clisp.org>
38298
38299         * tests/test-lock.c (main): Tweak skip message.
38300         * tests/test-tls.c (main): Likewise.
38301
38302 2008-09-21  Bruno Haible  <bruno@clisp.org>
38303
38304         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38305         whether 'struct sigaction' has sa_sigaction here...
38306         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38307         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38308
38309 2008-09-21  Bruno Haible  <bruno@clisp.org>
38310
38311         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38312         section.
38313         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38314         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38315         the new section.
38316         (Support for obsolete systems lacking POSIX:2001): New section.
38317         (String handling <string.h>): Move strdup to the new section.
38318         Suggested by Simon Josefsson and Paolo Bonzini.
38319
38320 2008-09-21  Bruno Haible  <bruno@clisp.org>
38321
38322         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38323         exponents in %e and %g results on 'long double'. Needed for mingw's
38324         improved *printf functions.
38325         * tests/test-vasprintf-posix.c (test_function): Likewise.
38326         * tests/test-snprintf-posix.h (test_function): Likewise.
38327         * tests/test-sprintf-posix.h (test_function): Likewise.
38328         Reported by Eric Blake.
38329
38330 2008-09-21  Bruno Haible  <bruno@clisp.org>
38331
38332         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38333         * tests/test-sprintf-posix.h (test_function): Likewise.
38334
38335 2008-09-21  Bruno Haible  <bruno@clisp.org>
38336
38337         * modules/getpass (Depends-on): Add strdup-posix.
38338
38339         New module 'strdup-posix'.
38340         * modules/strdup-posix: New file.
38341         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38342         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38344         REPLACE_STRDUP.
38345         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38346         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38347         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38348         strdup-posix.
38349
38350         * modules/strdup (Depends-on): Remove malloc-posix.
38351
38352 2008-09-20  Bruno Haible  <bruno@clisp.org>
38353
38354         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38355         Wildenhues.
38356
38357 2008-09-20  Bruno Haible  <bruno@clisp.org>
38358
38359         Ensure that wint_t gets defined on IRIX 5.3.
38360         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38361         * lib/wctype.in.h (wint_t): Likewise.
38362         (__wctype_wint_t): Remove type.
38363         (isw*): Use wint_t instead of __wctype_wint_t.
38364         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38365         * modules/wchar (Files): Add m4/wint_t.m4.
38366         (Makefile.am): Substitute HAVE_WINT_T.
38367         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38368         * tests/test-wctype.c: Check that wint_t is defined.
38369         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38370         * doc/posix-headers/wctype.texi: Likewise.
38371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38372
38373 2008-09-18  Bruno Haible  <bruno@clisp.org>
38374
38375         * gnulib-tool (func_exit): Update comment.
38376
38377 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38378
38379         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38380         assumes strdup exists and does not depend on strdup to return
38381         ENOMEM on out of memory conditions.
38382
38383 2008-09-18  Bruno Haible  <bruno@clisp.org>
38384
38385         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38386         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38387         digits for the exponent.
38388
38389 2008-09-18  Jim Meyering  <meyering@redhat.com>
38390             Bruno Haible  <bruno@clisp.org>
38391
38392         * lib/vasnprintf.c (decimal_point_char): Define also if
38393         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38394
38395 2008-09-16  Bruno Haible  <bruno@clisp.org>
38396         and Eric Blake  <ebb9@byu.net>
38397
38398         vasnprintf: support Irix 5.3
38399         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38400         that mishandle long double infinity.
38401         Reported by Tom G. Christensen.
38402
38403 2008-09-16  Bruno Haible  <bruno@clisp.org>
38404
38405         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38406         Solaris 9.
38407         * doc/glibc-functions/alphasort.texi: Likewise.
38408         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38409
38410 2008-09-16  Jim Meyering  <meyering@redhat.com>
38411
38412         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38413         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38414         a umask modification leak out of a subshell.  Otherwise, the
38415         opensolaris /bin/sh would be accepted and thus cause unwarranted
38416         failures in the coreutils test suite.
38417
38418 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38419
38420         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38421         to succeed.
38422
38423 2008-09-16  Jim Meyering  <meyering@redhat.com>
38424
38425         avoid spurious test failure when library is built without ACL support
38426         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38427         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38428         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38429         * tests/test-copy-acl.sh: Likewise.
38430
38431 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38432
38433         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38434         based on character occurrence counts.
38435
38436 2008-09-15  Eric Blake  <ebb9@byu.net>
38437
38438         tests: avoid some compiler warnings
38439         * tests/test-memchr.c (main): Pass NULL indirectly.
38440         * tests/test-closein.c (main): Avoid unused variable.
38441
38442 2008-09-15  Bruno Haible  <bruno@clisp.org>
38443
38444         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38445         are missing on OpenBSD 4.0 individually.
38446         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38447
38448 2008-09-15  Bruno Haible  <bruno@clisp.org>
38449
38450         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38451         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38452         * doc/posix-functions/perror.texi: Likewise.
38453         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38454         is missing.
38455         Reported by Eric Blake.
38456
38457         * lib/errno.in.h: Use replacement values >= 2000.
38458         Reported by Eric Blake.
38459
38460 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38461
38462         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38463         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38464         limit.
38465         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38466         compareseq was aborted.
38467
38468 2008-09-14  Bruno Haible  <bruno@clisp.org>
38469
38470         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38471         yvec_edit_count.
38472         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38473         (fstrcmp_bounded): Simplify result computation accordingly.
38474
38475 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38476
38477         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38478         (fstrcmp): Define in terms of fstrcmp_bounded.
38479         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38480         lower_bound argument.
38481         Return quickly if the result is certainly < lower_bound.
38482         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38483
38484 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38485
38486         * lib/diffseq.h (EARLY_ABORT): New macro.
38487         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38488         evaluates to true.
38489
38490 2008-09-14  Bruno Haible  <bruno@clisp.org>
38491
38492         * modules/perror-tests: New file.
38493         * tests/test-perror.sh: New file.
38494         * tests/test-perror.c: New file.
38495
38496         New module 'perror'.
38497         * lib/stdio.in.h (perror): New declaration.
38498         * lib/perror.c: New file.
38499         * m4/perror.m4: New file.
38500         * modules/perror: New file.
38501         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38502         * doc/posix-functions/perror.texi: Mention the perror module.
38503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38504         REPLACE_PERROR.
38505         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38506         REPLACE_PERROR.
38507
38508 2008-09-14  Bruno Haible  <bruno@clisp.org>
38509
38510         * modules/stdio (Makefile.am): Reorder to match the order in
38511         lib/stdio.in.h.
38512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38513
38514 2008-09-13  Bruno Haible  <bruno@clisp.org>
38515
38516         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38517
38518 2008-09-13  Bruno Haible  <bruno@clisp.org>
38519
38520         Extend strerror to cover the added errno values.
38521         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38522         (rpl_strerror): Provide error messages for the added errno values and
38523         for the WSA* values.
38524         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38525         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38526         strerror.
38527         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38528         * modules/strerror (Depends-on): Add errno.
38529         * doc/posix-functions/strerror.texi: Document the change.
38530         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38531         and EOVERFLOW.
38532
38533 2008-09-13  Bruno Haible  <bruno@clisp.org>
38534
38535         * modules/EOVERFLOW: Remove file.
38536         * m4/eoverflow.m4: Remove file.
38537         * modules/EOVERFLOW-tests: Remove file.
38538         * tests/test-EOVERFLOW.c: Remove file.
38539         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38540         * modules/ftell (Depends-on): Likewise.
38541         * modules/getdelim (Depends-on): Likewise.
38542         * modules/getugroups (Depends-on): Likewise.
38543         * modules/poll (Depends-on): Likewise.
38544         * modules/snprintf (Depends-on): Likewise.
38545         * modules/sprintf-posix (Depends-on): Likewise.
38546         * modules/vasnprintf (Depends-on): Likewise.
38547         * modules/vasprintf (Depends-on): Likewise.
38548         * modules/vfprintf-posix (Depends-on): Likewise.
38549         * modules/vsnprintf (Depends-on): Likewise.
38550         * modules/vsprintf-posix (Depends-on): Likewise.
38551         * modules/xvasprintf (Depends-on): Likewise.
38552         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38553         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38554         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38555         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38556         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38557         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38558         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38559         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38560         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38561         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38562         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38563         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38564         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38565         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38566         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38567         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38568         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38569         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38570         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38571         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38572         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38573         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38574         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38575         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38576         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38577         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38578         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38579         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38580         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38581         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38582         * MODULES.html.sh: Remove EOVERFLOW.
38583         * NEWS: Mention the change.
38584
38585 2008-09-13  Bruno Haible  <bruno@clisp.org>
38586
38587         * modules/errno-tests: New file.
38588         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38589
38590         * lib/errno.in.h: New file.
38591         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38592         * modules/errno: New file.
38593         * doc/posix-headers/errno.texi: Update documentation.
38594         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38595
38596 2008-09-13  Bruno Haible  <bruno@clisp.org>
38597
38598         * tests/test-poll.c: Use #if for native Windows, rather than testing
38599         __MSVCRT__.
38600
38601 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38602             Bruno Haible  <bruno@clisp.org>
38603
38604         * lib/glob.c: Don't include <pwd.h> on native Windows.
38605         (WINDOWS32): New macro.
38606         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38607
38608 2008-09-13  Bruno Haible  <bruno@clisp.org>
38609
38610         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38611         (ETIMEDOUT): Remove macro.
38612         (glthread_cond_timedwait_multithreaded): New declaration.
38613         (glthread_cond_timedwait): Use it.
38614         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38615         (glthread_cond_timedwait_multithreaded): New function.
38616
38617 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38618
38619         * modules/poll-tests: Do not check for io.h.
38620         * tests/test-poll.c: Check for __MSVCRT__ instead.
38621
38622 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38623
38624         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38625         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38626         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38627
38628 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38629
38630         * modules/poll-tests: New.
38631         * tests/test-poll.c: New.
38632
38633 2008-09-12  Eric Blake  <ebb9@byu.net>
38634
38635         frexp: test for NetBSD failure on -0.0
38636         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38637         not all, bugs from NetBSD 3.0 have been fixed.
38638         * doc/posix-functions/frexp.texi (frexp): Document bug.
38639         Reported by Thomas Klausner.
38640
38641         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38642         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38643         literal -0.0.
38644         Reported by Jonathan C. Patschke <jp@centtech.com>.
38645
38646 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38647
38648         * lib/glthread/cond.h: Use dummy implementation also if
38649         USE_WIN32_THREADS.
38650
38651 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38652
38653         * modules/fnmatch-posix (License): Change to LGPLv2+.
38654         * modules/fnmatch-gnu (License): Likewise.
38655
38656 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38657
38658         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38659
38660 2008-09-11  Jim Meyering  <meyering@redhat.com>
38661
38662         * users.txt: Add gtk-vnc.
38663
38664 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38665
38666         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38667         rotate amounts.
38668
38669         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38670         required for 16-bit and 8-bit rotates.
38671         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38672         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38673         UINT8_MAX instead of hard-coded constants.
38674         Suggested by Paul Eggert.
38675
38676 2008-09-07  Bruno Haible  <bruno@clisp.org>
38677
38678         * tests/test-striconveh.c (main): Check behaviour when converting from
38679         UTF-7.
38680
38681         Make striconveh work better with stateful encodings.
38682         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38683         that iconv does not increment the inptr when returning -1/EINVAL.
38684
38685 2008-09-07  Bruno Haible  <bruno@clisp.org>
38686
38687         * build-aux/config.rpath: Update according to libtool-2.2.6.
38688         * build-aux/config.libpath: Likewise.
38689
38690 2008-09-06  Bruno Haible  <bruno@clisp.org>
38691
38692         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38693         * lib/freadptr.c (freadptr): Likewise.
38694         * lib/freadseek.c (freadptrinc): Likewise.
38695         Reported by Simon Josefsson.
38696
38697 2008-09-06  Bruno Haible  <bruno@clisp.org>
38698
38699         * modules/freadptr (License): Change to LGPLv2+.
38700         * modules/freadseek (License): Likewise.
38701         Suggested by Eric Blake.
38702
38703         * modules/memchr2 (License): Change to LGPLv2+.
38704         Approved by Eric Blake.
38705
38706 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38707             Bruno Haible  <bruno@clisp.org>
38708
38709         Make gnulib-tool work with native 'sed' on AIX.
38710         * gnulib-tool (sed_noop): New variable.
38711         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38712         func_add_or_update, func_create_testdir): Use it to initialize sed
38713         script variables.
38714         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38715
38716 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38717             Bruno Haible  <bruno@clisp.org>
38718
38719         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38720         also works after #include directives.
38721
38722 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38723
38724         getdate.y: reject an out-of-range timezone value
38725         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38726         the range [-24...+24].  When specified with only one or two digits,
38727         * tests/test-getdate.c: Tests for the fix.
38728         * doc/getdate.texi: Document this change.
38729
38730 2008-09-03  Bruno Haible  <bruno@clisp.org>
38731
38732         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38733
38734 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38735
38736         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38737         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38738         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38739         Blake <ebb9@byu.net>.
38740
38741         * tests/test-bitrotate.c: Add more test vectors.
38742
38743 2008-09-02  Eric Blake  <ebb9@byu.net>
38744
38745         vasnprintf-posix: handle large precision via %.*d
38746         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38747         when handling it ourselves.
38748         * tests/test-vasnprintf-posix.c (test_function): Add test.
38749         * tests/test-snprintf-posix.h (test_function): Likewise.
38750         * tests/test-sprintf-posix.h (test_function): Likewise.
38751         * tests/test-vasprintf-posix.c (test_function): Likewise.
38752         Reported by Alain Guibert.
38753
38754 2008-09-01  Eric Blake  <ebb9@byu.net>
38755
38756         c-stack: make configure-time check more robust
38757         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38758         successful sigaction call.
38759         Reported by Tom G. Christensen.
38760
38761 2008-09-01  Bruno Haible  <bruno@clisp.org>
38762
38763         New module 'findprog-lgpl'.
38764         * modules/findprog-lgpl: New file.
38765         * lib/findprog-lgpl.c: New file.
38766         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38767         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38768         to decide whether to use strdup or xstrdup, concatenated_filename or
38769         xconcatenated_filename.
38770
38771 2008-09-01  Bruno Haible  <bruno@clisp.org>
38772
38773         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38774         'xconcat-filename' (GPL).
38775         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38776         (License): Change to LGPLv2+.
38777         * modules/xconcat-filename: New file.
38778         * lib/concat-filename.h (concatenated_filename): Change specification.
38779         (xconcatenated_filename): New declaration.
38780         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38781         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38782         memory situations.
38783         * lib/xconcat-filename.c: New file.
38784         * NEWS: Mention the change.
38785         * lib/findprog.c: Include concat-filename.h, not filename.h.
38786         (find_in_path): Use xconcatenated_filename instead of
38787         concatenated_filename.
38788         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38789         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38790         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38791         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38792         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38793         instead of concatenated_filename.
38794         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38795         (execute_java_class): Use xconcatenated_filename instead of
38796         concatenated_filename.
38797         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38798         * modules/javacomp (Depends-on): Likewise.
38799         * modules/javaexec (Depends-on): Likewise.
38800
38801 2008-09-01  Bruno Haible  <bruno@clisp.org>
38802
38803         Split module 'filename' into 'filename' and 'concat-filename'.
38804         * modules/filename: Keep only lib/filename.h.
38805         (License): Change to LGPLv2+.
38806         * modules/concat-filename: New file, extracted from modules/filename.
38807         * lib/filename.h (concatenated_filename): Remove declaration.
38808         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38809         * lib/concat-filename.c: Include concat-filename.h.
38810         * NEWS: Mention the change.
38811
38812 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38813
38814         * lib/bitrotate.h (rotl8, rotr8): Add.
38815
38816         * modules/bitrotate (configure.ac): Need
38817         AC_REQUIRE([AC_C_INLINE]).
38818         (Description): Mention stdint.h.  Reported by Bruno Haible
38819         <bruno@clisp.org>.
38820
38821         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38822         Paolo Bonzini <bonzini@gnu.org>.
38823
38824 2008-08-31  Bruno Haible  <bruno@clisp.org>
38825
38826         Assume Solaris specific bi-arch conventions on Solaris systems.
38827         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38828         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38829         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38830         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38831         like acl_libdirstem.
38832         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38833         acl_libdirstem.
38834         * NEWS: Mention the change.
38835         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38836
38837 2008-08-31  Jim Meyering  <meyering@redhat.com>
38838
38839         * lib/strftime.h: Add comments describing the two added arguments.
38840
38841         remove duplicate #include directives
38842         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38843         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38844
38845 2008-08-31  Bruno Haible  <bruno@clisp.org>
38846
38847         New module 'sigpipe-die'.
38848         * modules/sigpipe-die: New file.
38849         * lib/sigpipe-die.h: New file.
38850         * lib/sigpipe-die.c: New file.
38851         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38852
38853 2008-08-31  Bruno Haible  <bruno@clisp.org>
38854
38855         Don't override previously installed signal handlers.
38856         * lib/fatal-signal.c (saved_sigactions): New variable.
38857         (uninstall_handlers): Reset the signal to the saved handler, not
38858         to SIG_DFL (except when ignored).
38859         (install_handlers): Save the previous handlers.
38860
38861 2008-08-30  Bruno Haible  <bruno@clisp.org>
38862
38863         * gnulib-tool (func_reset_sigpipe): New function.
38864         (func_get_automake_snippet, func_modules_transitive_closure,
38865         func_import): Invoke it before a join command that reads from stdin,
38866         to avoid "echo: write error: Broken pipe" error messages on stderr.
38867         Reported by Sam Steingold <sds@gnu.org>.
38868
38869 2008-08-30  Bruno Haible  <bruno@clisp.org>
38870
38871         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38872         Code copied from m4/open.m4.
38873         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38874         access and the filename ends in a slash. Code copied from lib/open.c.
38875         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38876         * tests/test-fopen.c (main): Check against bug with trailing slash.
38877
38878 2008-08-29  Bruno Haible  <bruno@clisp.org>
38879
38880         Avoid some "gcc -pedantic" warnings.
38881         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38882         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38883         * lib/dirent.in.h: Likewise.
38884         * lib/fcntl.in.h: Likewise.
38885         * lib/float.in.h: Likewise.
38886         * lib/iconv.in.h: Likewise.
38887         * lib/inttypes.in.h: Likewise.
38888         * lib/locale.in.h: Likewise.
38889         * lib/math.in.h: Likewise.
38890         * lib/netinet_in.in.h: Likewise.
38891         * lib/search.in.h: Likewise.
38892         * lib/signal.in.h: Likewise.
38893         * lib/stdarg.in.h: Likewise.
38894         * lib/stdint.in.h: Likewise.
38895         * lib/stdio.in.h: Likewise.
38896         * lib/stdlib.in.h: Likewise.
38897         * lib/string.in.h: Likewise.
38898         * lib/strings.in.h: Likewise.
38899         * lib/sys_select.in.h: Likewise.
38900         * lib/sys_socket.in.h: Likewise.
38901         * lib/sys_stat.in.h: Likewise.
38902         * lib/sys_time.in.h: Likewise.
38903         * lib/sysexits.in.h: Likewise.
38904         * lib/time.in.h: Likewise.
38905         * lib/unistd.in.h: Likewise.
38906         * lib/wchar.in.h: Likewise.
38907         * lib/wctype.in.h: Likewise.
38908         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38909         * modules/fchdir (Makefile.am): Likewise.
38910         * modules/fcntl (Makefile.am): Likewise.
38911         * modules/float (Makefile.am): Likewise.
38912         * modules/iconv_open (Makefile.am): Likewise.
38913         * modules/inttypes (Makefile.am): Likewise.
38914         * modules/locale (Makefile.am): Likewise.
38915         * modules/math (Makefile.am): Likewise.
38916         * modules/netinet_in (Makefile.am): Likewise.
38917         * modules/search (Makefile.am): Likewise.
38918         * modules/signal (Makefile.am): Likewise.
38919         * modules/stdarg (Makefile.am): Likewise.
38920         * modules/stdint (Makefile.am): Likewise.
38921         * modules/stdio (Makefile.am): Likewise.
38922         * modules/stdlib (Makefile.am): Likewise.
38923         * modules/string (Makefile.am): Likewise.
38924         * modules/strings (Makefile.am): Likewise.
38925         * modules/sys_select (Makefile.am): Likewise.
38926         * modules/sys_socket (Makefile.am): Likewise.
38927         * modules/sys_stat (Makefile.am): Likewise.
38928         * modules/sys_time (Makefile.am): Likewise.
38929         * modules/sysexits (Makefile.am): Likewise.
38930         * modules/time (Makefile.am): Likewise.
38931         * modules/unistd (Makefile.am): Likewise.
38932         * modules/wchar (Makefile.am): Likewise.
38933         * modules/wctype (Makefile.am): Likewise.
38934         Reported by Reuben Thomas <rrt@sc3d.org>.
38935
38936 2008-08-29  Bruno Haible  <bruno@clisp.org>
38937
38938         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38939         any more.
38940
38941 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38942
38943         * MODULES.html.sh (Misc): Add bitrotate.
38944
38945         * modules/bitrotate: New file.
38946
38947         * lib/bitrotate.h: New file.
38948
38949         * modules/bitrotate-tests: New file.
38950
38951         * tests/test-bitrotate.c: New file.
38952
38953         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38954         on the bitrotate module.
38955
38956         * lib/arctwo.c: Use new bitrotate module.
38957
38958 2008-08-29  Jim Meyering  <meyering@redhat.com>
38959
38960         bootstrap: merge changes from coreutils
38961         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38962         of copied files.  Remove a kludge, now that this is fixed.
38963         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38964         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38965         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38966
38967 2008-08-29  Bruno Haible  <bruno@clisp.org>
38968
38969         * MODULES.html.sh: Remove --cvs-urls option.
38970
38971 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38972
38973         maint.mk: adjust to file name change
38974         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38975
38976 2008-08-28  Jim Meyering  <meyering@redhat.com>
38977
38978         * modules/getndelim2 (License): Relicense to LGPLv2+.
38979         Approved by Richard Stallman for the version of 1995, and by
38980         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38981
38982 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38983
38984         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38985         dummy if one is not available.  Do not touch them if
38986         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38987         (getc_maybe_unlocked): New.
38988         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38989
38990 2008-08-26  Eric Blake  <ebb9@byu.net>
38991
38992         doc/INSTALL: resync from autoconf
38993         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38994         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38995         moving...
38996         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38997         * INSTALL: Regenerate.
38998         * INSTALL.ISO: New file.
38999         * INSTALL.UTF-8: Likewise.
39000
39001 2008-08-26  Jim Meyering  <meyering@redhat.com>
39002
39003         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39004         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39005         these definitions conditional, so that they may be overridden, too.
39006
39007 2008-08-26  Bruno Haible  <bruno@clisp.org>
39008
39009         Generate INSTALL file variants with prettier quotes.
39010         * doc/Makefile (INSTALL_PRELUDE): New macro.
39011         (INSTALL): Use it.
39012         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39013
39014 2008-08-26  Bruno Haible  <bruno@clisp.org>
39015
39016         Run makeinfo in an English locale.
39017         * doc/Makefile (MAKEINFO): New variable.
39018
39019 2008-08-26  Bruno Haible  <bruno@clisp.org>
39020
39021         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39022         Suggested by Eric Blake.
39023
39024 2008-08-25  Bruno Haible  <bruno@clisp.org>
39025
39026         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39027
39028 2008-08-25  Eric Blake  <ebb9@byu.net>
39029
39030         c-stack: test that stack overflow can be caught
39031         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39032         that platform allows handling stack overflow; at least OS/2 EMX
39033         has sigaltstack, but crashes before transferring control to
39034         handler on stack overflow.
39035         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39036         check for HAVE_STACK_OVERFLOW_HANDLING.
39037         Reported by Elbert Pol.
39038
39039 2008-08-25  Bruno Haible  <bruno@clisp.org>
39040
39041         * doc/posix-functions/strftime.texi: Fix description of strftime
39042         module.
39043
39044 2008-08-24  Bruno Haible  <bruno@clisp.org>
39045
39046         * tests/uniwidth/test-uc_width2.c: New file.
39047         * tests/uniwidth/test-uc_width2.sh: New file.
39048         * modules/uniwidth/width-tests (Files): Add the new files.
39049         (TESTS): Add uniwidth/test-uc_width2.sh.
39050         (TESTS_ENVIRONMENT): New variable.
39051         (check_PROGRAMS): Add test-uc_width2.
39052         (test_uc_width2_SOURCES): New variable.
39053
39054         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39055         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39056         not 0x00AB.
39057         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39058
39059 2008-08-22  Eric Blake  <ebb9@byu.net>
39060
39061         test-lock, test-tls: mention why a test is skipped
39062         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39063         skipped.
39064         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39065
39066         count-one-bits: relax license
39067         * modules/count-one-bits (License): Relicense to LGPLv2+.
39068         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39069
39070 2008-08-22  Andreas Schwab  <schwab@suse.de>
39071
39072         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39073         Remove spurious space in assignment.
39074
39075 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39076
39077         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39078         Paul Eggert <eggert@CS.UCLA.EDU>.
39079
39080 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39081
39082         * modules/gettext: Add m4/threadlib.m4.
39083
39084 2008-08-19  Eric Blake  <ebb9@byu.net>
39085
39086         test-c-stack: fix compilation failure on FreeBSD 5.0
39087         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39088         headers before <sys/resource.h>.
39089         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39090         the bug.
39091         Reported by Nelson H. F. Beebe.
39092
39093         strverscmp: migrate from "strverscmp.h" to <string.h>
39094         * modules/string (Makefile.am): Add new hooks.
39095         * modules/strverscmp (Files): Remove strverscmp.h.
39096         (Depends-on): Add string.
39097         (configure.ac): Add indicator.
39098         (Include): Mention new header.
39099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39100         defaults.
39101         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39102         results.
39103         * lib/strverscmp.h: Delete.
39104         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39105         * tests/test-strverscmp.c (includes): Adjust client.
39106         * lib/check-version.c (includes): Likewise.
39107         * NEWS: Document the change.
39108
39109         strverscmp: add unit test
39110         * modules/strverscmp-tests: New file.
39111         * tests/test-strverscmp.c: Likewise.
39112
39113 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39114
39115         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39116         regarding Windows crypto stuff, from Mono.
39117
39118 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39119
39120         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39121         if present, for intel RND.  Return error on failures.
39122
39123 2008-08-18  Ben Pfaff  <blp@gnu.org>
39124
39125         gitlog-to-changelog: give better diagnostic for failed pipe-open
39126         * build-aux/gitlog-to-changelog: Improve error message: suggest
39127         that the version of Git may be too old.
39128
39129 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39130
39131         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39132         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39133
39134 2008-08-18  Bruno Haible  <bruno@clisp.org>
39135
39136         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39137         pthread_in_use().
39138
39139 2008-08-18  Bruno Haible  <bruno@clisp.org>
39140
39141         * lib/glthread/threadlib.c: Include <pthread.h>.
39142
39143 2008-08-18  Bruno Haible  <bruno@clisp.org>
39144
39145         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39146         glthread_recursive_lock_* macros.
39147         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39148         Fix syntax error.
39149
39150 2008-08-18  Bruno Haible  <bruno@clisp.org>
39151
39152         * lib/glthread/thread.c: Avoid forcing a context switch right after
39153         thread creation.
39154
39155 2008-08-17  Bruno Haible  <bruno@clisp.org>
39156
39157         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39158         * lib/glthread/thread.h: Provide Win32 specific implementation.
39159         * modules/thread (Files): Add lib/glthread/thread.c.
39160         (Depends-on): Add lock.
39161         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39162
39163 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39164
39165         New module 'yield'.
39166         * modules/yield: New file.
39167         * lib/glthread/yield.h: New file.
39168         * m4/yield.m4: New file.
39169         * MODULES.html.sh (Multithreading): Add yield.
39170
39171 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39172
39173         New module 'thread'.
39174         * modules/thread: New file.
39175         * lib/glthread/thread.h: New file.
39176         * m4/thread.m4: New file.
39177         * MODULES.html.sh (Multithreading): Add thread.
39178
39179 2008-08-17  Bruno Haible  <bruno@clisp.org>
39180
39181         * lib/glthread/lock.h: Include <stdlib.h> always.
39182         * lib/glthread/tls.h: Likewise.
39183         * lib/glthread/cond.h: Likewise.
39184
39185 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39186
39187         New module 'cond'.
39188         * modules/cond: New file.
39189         * lib/glthread/cond.h: New file.
39190         * lib/glthread/cond.c: New file.
39191         * m4/cond.m4: New file.
39192         * MODULES.html.sh (Multithreading): Add cond.
39193
39194 2008-08-16  Eric Blake  <ebb9@byu.net>
39195
39196         c-stack: fix regression on Irix 5.3 from 2008-06-21
39197         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39198         sa_sigaction...
39199         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39200         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39201         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39202         * modules/signal (Makefile.am): Use the value.
39203         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39204         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39205         * doc/posix-headers/signal.texi (signal.h): Document this
39206         portability issue.
39207         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39208         Reported by Tom G. Christensen.
39209
39210 2008-08-17  Bruno Haible  <bruno@clisp.org>
39211
39212         New module 'threadlib'.
39213         * modules/threadlib: New file.
39214         * lib/glthread/threadlib.c: New file, extracted from
39215         lib/glthread/lock.c.
39216         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39217         functions.
39218         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39219         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39220         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39221         macros.
39222         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39223         (gl_DISABLE_THREADS): Remove macro.
39224         * modules/lock (Files): Remove build-aux/config.rpath.
39225         (Depends-on): Remove havelib. Add threadlib.
39226         (configure.ac-early): Remove section.
39227         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39228         * modules/tls (Depends-on): Remove lock. Add threadlib.
39229         (Link): New section, copied from threadlib.
39230         * MODULES.html.sh (Multithreading): Add threadlib.
39231
39232 2008-08-14  Bruno Haible  <bruno@clisp.org>
39233
39234         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39235         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39236         glthread_rwlock_unlock, glthread_rwlock_destroy,
39237         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39238         glthread_recursive_lock_destroy): Define as macros always.
39239         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39240         glthread_lock_lock.
39241         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39242         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39243         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39244         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39245         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39246         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39247         (glthread_recursive_lock_lock_func): Renamed from
39248         glthread_recursive_lock_lock.
39249         (glthread_recursive_lock_unlock_func): Renamed from
39250         glthread_recursive_lock_unlock.
39251         (glthread_recursive_lock_destroy_func): Renamed from
39252         glthread_recursive_lock_destroy.
39253
39254 2008-08-14  Bruno Haible  <bruno@clisp.org>
39255
39256         * lib/glthread/lock.h: Renamed from lib/lock.h.
39257         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39258         * lib/glthread/tls.h: Renamed from lib/tls.h.
39259         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39260         * lib/fstrcmp.c: Update includes.
39261         * lib/strsignal.c: Update includes.
39262         * modules/lock (Files, Makefile.am): Update.
39263         (Include): Change to "glthread/lock.h".
39264         * modules/tls (Files, Makefile.am): Update.
39265         (Include): Change to "glthread/tls.h".
39266         * tests/test-lock.c: Update includes.
39267         * tests/test-tls.c: Update includes.
39268         * NEWS: Mention the renamed header files.
39269
39270 2008-08-11  Jim Meyering  <meyering@redhat.com>
39271
39272         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39273
39274 2008-08-11  Eric Blake  <ebb9@byu.net>
39275
39276         test-c-stack: avoid C99-ism
39277         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39278         before statement.
39279         Reported by Alain Guibert.
39280
39281 2008-08-10  Jim Meyering  <meyering@redhat.com>
39282
39283         ensure that return value of uinttostr et al are not ignored
39284         * lib/inttostr.h (__GNUC_PREREQ): Define.
39285         (__attribute_warn_unused_result__): Define.
39286         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39287
39288 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39289
39290         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39291         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39292
39293 2008-08-07  Jim Meyering  <meyering@redhat.com>
39294
39295         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39296
39297         * modules/mkstemp (License): Relicense under LGPLv2+.
39298         * modules/tempname (License): Likewise.
39299
39300 2008-08-06  Bruno Haible  <bruno@clisp.org>
39301
39302         * lib/poll.c (poll): Further micro-optimization.
39303
39304 2008-08-06  Jim Meyering  <meyering@redhat.com>
39305
39306         inet_pton.c: use locale-independent tolower
39307         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39308         (inet_pton6): Use c_tolower rather than tolower.
39309         * modules/inet_pton (Depends-on): Add c-ctype.
39310
39311 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39312
39313         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39314         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39315
39316 2008-08-06  Jim Meyering  <meyering@redhat.com>
39317
39318         * modules/inet_pton (License): Relicense under LGPLv2+.
39319
39320 2008-08-03  Bruno Haible  <bruno@clisp.org>
39321
39322         Additional non-aborting API for lock and tls.
39323         * lib/lock.h: Include <errno.h>.
39324         (glthread_lock_init): New macro/function.
39325         (gl_lock_init): Define as wrapper around glthread_lock_init.
39326         (glthread_lock_lock): New macro/function.
39327         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39328         (glthread_lock_unlock): New macro/function.
39329         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39330         (glthread_lock_destroy): New macro/function.
39331         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39332         (glthread_rwlock_init): New macro/function.
39333         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39334         (glthread_rwlock_rdlock): New macro/function.
39335         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39336         (glthread_rwlock_wrlock): New macro/function.
39337         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39338         (glthread_rwlock_unlock): New macro/function.
39339         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39340         (glthread_rwlock_destroy): New macro/function.
39341         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39342         (glthread_recursive_lock_init): New macro/function.
39343         (gl_recursive_lock_init): Define as wrapper around
39344         glthread_recursive_lock_init.
39345         (glthread_recursive_lock_lock): New macro/function.
39346         (gl_recursive_lock_lock): Define as wrapper around
39347         glthread_recursive_lock_lock.
39348         (glthread_recursive_lock_unlock): New macro/function.
39349         (gl_recursive_lock_unlock): Define as wrapper around
39350         glthread_recursive_lock_unlock.
39351         (glthread_recursive_lock_destroy): New macro/function.
39352         (gl_recursive_lock_destroy): Define as wrapper around
39353         glthread_recursive_lock_destroy.
39354         (glthread_once): New macro/function.
39355         (gl_once): Define as wrapper around glthread_once.
39356         Update function declarations.
39357         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39358         glthread_rwlock_init. Return error code.
39359         (glthread_rwlock_rdlock_multithreaded): Renamed from
39360         glthread_rwlock_rdlock. Return error code.
39361         (glthread_rwlock_wrlock_multithreaded): Renamed from
39362         glthread_rwlock_wrlock. Return error code.
39363         (glthread_rwlock_unlock_multithreaded): Renamed from
39364         glthread_rwlock_unlock. Return error code.
39365         (glthread_rwlock_destroy_multithreaded): Renamed from
39366         glthread_rwlock_destroy. Return error code.
39367         (glthread_recursive_lock_init_multithreaded): Renamed from
39368         glthread_recursive_lock_init. Return error code.
39369         (glthread_recursive_lock_lock_multithreaded): Renamed from
39370         glthread_recursive_lock_lock. Return error code.
39371         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39372         glthread_recursive_lock_unlock. Return error code.
39373         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39374         glthread_recursive_lock_destroy. Return error code.
39375         (glthread_once_call): Make static.
39376         (glthread_once_multithreaded): Renamed from glthread_once.
39377         * lib/tls.h: Include <errno.h>.
39378         (glthread_tls_key_init): New macro/function.
39379         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39380         (glthread_tls_set): New macro/function.
39381         (gl_tls_set): Define as wrapper around glthread_tls_set.
39382         (glthread_tls_key_destroy): New macro/function.
39383         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39384         Update function declarations.
39385         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39386         glthread_tls_get.
39387         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39388
39389 2008-08-04  Eric Blake  <ebb9@byu.net>
39390
39391         gnumakefile: use space, not TAB, outside of targets
39392         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39393
39394 2008-08-02  Jim Meyering  <meyering@redhat.com>
39395
39396         getdate.y: avoid locale-dependent date parsing failure
39397         In Turkish locales, getdate would fail to recognize keywords
39398         containing a lowercase "i".  The solution is not to rely on
39399         locale-sensitive case-conversion.
39400         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39401         (lookup_word): Use c_toupper in place of toupper.
39402         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39403         Reported by Vefa Bicakci <bicave@superonline.com> in
39404         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39405         * modules/getdate (Depends-on): Add c-ctype.
39406
39407 2008-08-02  Bruno Haible  <bruno@clisp.org>
39408
39409         * gnulib-tool (func_import): When updating or creating a .gitignore
39410         file, prepend each added line with a slash, and ignore leading slashes
39411         from the existing lines.
39412         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39413
39414 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39415
39416         Portability fix for GNU make 3.79.1.
39417         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39418         versions do not understand.
39419
39420 2008-08-01  Bruno Haible  <bruno@clisp.org>
39421
39422         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39423         * tests/test-isnanf.h (zero): New variable.
39424         (main): Avoid literal -0.0f.
39425         * tests/test-isnand.h (zero): New variable.
39426         (main): Avoid literal -0.0.
39427         * tests/test-isnanl.h (zero): New variable.
39428         (main): Avoid literal -0.0L.
39429         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39430         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39431         -0.0, -0.0L.
39432         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39433         (test_signbitd): Avoid literal -0.0.
39434         (test_signbitl): Avoid literal -0.0L.
39435         * tests/test-ceilf1.c (zero): New variable.
39436         (main): Avoid literal -0.0f.
39437         * tests/test-ceill.c (zero): New variable.
39438         (main): Avoid literal -0.0L.
39439         * tests/test-floorf1.c (zero): New variable.
39440         (main): Avoid literal -0.0f.
39441         * tests/test-floorl.c (zero): New variable.
39442         (main): Avoid literal -0.0L.
39443         * tests/test-roundf1.c (zero): New variable.
39444         (main): Avoid literal -0.0f.
39445         * tests/test-round1.c (zero): New variable.
39446         (main): Avoid literal -0.0.
39447         * tests/test-roundl.c (zero): New variable.
39448         (main): Avoid literal -0.0L.
39449         * tests/test-truncf1.c (zero): New variable.
39450         (main): Avoid literal -0.0f.
39451         * tests/test-trunc1.c (zero): New variable.
39452         (main): Avoid literal -0.0.
39453         * tests/test-truncl.c (zero): New variable.
39454         (main): Avoid literal -0.0L.
39455         * tests/test-frexp.c (zero): New variable.
39456         (main): Avoid literal -0.0.
39457         * tests/test-frexpl.c (zero): New variable.
39458         (main): Avoid literal -0.0L.
39459         * tests/test-ldexpl.c (zero): New variable.
39460         (main): Avoid literal -0.0L.
39461         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39462         (zerod, zerol): New variables.
39463         (test_function): Avoid literals -0.0, -0.0L.
39464         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39465         (zerod, zerol): New variables.
39466         (test_function): Avoid literals -0.0, -0.0L.
39467         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39468         (zerod, zerol): New variables.
39469         (test_function): Avoid literals -0.0, -0.0L.
39470         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39471         (zerod, zerol): New variables.
39472         (test_function): Avoid literals -0.0, -0.0L.
39473         * tests/test-strtod.c (zero): New variable.
39474         (main): Avoid literal -0.0.
39475         Reported by Jonathan C. Patschke <jp@centtech.com>.
39476
39477 2008-07-31  Jim Meyering  <meyering@redhat.com>
39478
39479         sha256.h: correct definition of SHA224_DIGEST_SIZE
39480         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39481         Reported by Paulie Pena IV <paulie4@gmail.com>.
39482         Define as 224 / 8, rather than as a literal.
39483         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39484         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39485         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39486
39487 2008-07-31  Bruno Haible  <bruno@clisp.org>
39488
39489         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39490         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39491         Reported by Jonathan Patschke <jp@centtech.com>.
39492
39493 2008-07-31  Bruno Haible  <bruno@clisp.org>
39494
39495         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39496         Reported by Paolo Bonzini <bonzini@gnu.org>.
39497
39498 2008-07-30  Eric Blake  <ebb9@byu.net>
39499
39500         test-strtod: allow compilation without -lm
39501         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39502         Reported by Dennis Clarke <blastwave@gmail.com>.
39503
39504 2008-07-28  Jim Meyering  <meyering@redhat.com>
39505
39506         bootstrap: work also when there are no .po files in po/
39507         * build-aux/bootstrap (update_po_files): Complete the change
39508         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39509
39510 2008-07-27  Jim Meyering  <meyering@redhat.com>
39511
39512         * users.txt: Add zile.
39513
39514 2008-07-26  Ben Pfaff  <blp@gnu.org>
39515
39516         Add missing dependencies on new m4/exponent[fdl].m4 files.
39517         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39518         * modules/isnand-nolibm: Add m4/exponentd.m4.
39519         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39520         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39521         m4/isnan[fdl].m4, because the macros actually used moved.
39522         Reported by Jim Meyering.
39523
39524 2008-07-14  Ben Pfaff  <blp@gnu.org>
39525
39526         Add isinf module.
39527         * lib/isinf.c: New file.
39528         * lib/math.in.h: Define isinf macro if we have decided to replace
39529         it.
39530         * m4/isinf.m4: New file.
39531         * m4/math_h.m4: Initialize and substitute variables for isinf
39532         module.
39533         * modules/isinf: New file.
39534         * modules/isinf-tests: New file.
39535         * modules/math: Add substitutions for new module.
39536         * tests/test-isinf.c: New file.
39537         * doc/posix-functions/isinf.texi: Mention new module.
39538         * MODULES.html.sh: Mention new module.
39539
39540 2008-07-14  Ben Pfaff  <blp@gnu.org>
39541
39542         Factor out some macros for use by additional modules.
39543         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39544         exponentf.m4.
39545         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39546         exponentd.m4.
39547         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39548         file exponentl.m4.
39549         * m4/exponentf.m4: New file.
39550         * m4/exponentd.m4: New file.
39551         * m4/exponentl.m4: New file.
39552         * modules/isnanf: Use new file m4/exponentf.m4.
39553         * modules/isnand: Use new file m4/exponentd.m4.
39554         * modules/isnanl: Use new file m4/exponentl.m4.
39555
39556 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39557
39558         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39559         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39560         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39561         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39562
39563         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39564         readlink on platforms without PATH_MAX.
39565
39566 2008-07-21  Eric Blake  <ebb9@byu.net>
39567
39568         Warn, not fail, on stale version.
39569         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39570
39571         Don't allow installation with stale devel version number.
39572         * top/GNUmakefile (_is-install-target): New macro.
39573         (_curr-ver): Forbid installation with stale version number.
39574
39575 2008-07-20  Bruno Haible  <bruno@clisp.org>
39576
39577         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39578         TESTS_ENVIRONMENT.
39579         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39580
39581 2008-07-20  Bruno Haible  <bruno@clisp.org>
39582
39583         * lib/c-stack.h (c_stack_action): Add documentation.
39584         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39585
39586 2008-07-20  Bruno Haible  <bruno@clisp.org>
39587
39588         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39589         * modules/readlink (License): Likewise.
39590
39591 2008-07-17  Eric Blake  <ebb9@byu.net>
39592
39593         * modules/c-stack (Link): Fix typo.
39594
39595         Make c-stack use libsigsegv, when available.
39596         * modules/c-stack (Depends-on): Add libsigsegv.
39597         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39598         needed.
39599         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39600         (segv_handler, overflow_handler, c_stack_action)
39601         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39602         implementation when libsigsegv is available, but only when using
39603         the library is necessary.
39604         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39605         comment, explaining why XSI check fails on Linux.
39606         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39607         * tests/test-c-stack2.sh: Tweak skip message.
39608         * NEWS: Document new link-time requirements.
39609
39610 2008-07-16  Eric Blake  <ebb9@byu.net>
39611
39612         c-stack: Expose false positives when not using libsigsegv.
39613         * modules/c-stack-tests (Files): Expand test.
39614         * tests/test-c-stack.c (main): Add means to conditionally trigger
39615         non-overflow SIGSEGV.
39616         * tests/test-c-stack2.sh: New file.
39617
39618 2008-07-14  Bruno Haible  <bruno@clisp.org>
39619
39620         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39621         Reported by Eric Blake.
39622
39623 2008-07-14  Sam Steingold  <sds@gnu.org>
39624             Bruno Haible  <bruno@clisp.org>
39625
39626         New module libsigsegv.
39627         * modules/libsigsegv: New file.
39628         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39629         modifications.
39630         * MODULES.html.sh (Signal handling): New section.
39631
39632 2008-07-14  Bruno Haible  <bruno@clisp.org>
39633
39634         * modules/unictype/ctype-* (Description): Add the word "function".
39635         Improves the resulting doc in MODULES.html.
39636
39637 2008-07-12  Ben Pfaff  <blp@gnu.org>
39638
39639         Add longlong module.
39640         * modules/longlong: New file.
39641
39642 2008-07-12  Bruno Haible  <bruno@clisp.org>
39643
39644         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39645         to empty.
39646
39647 2008-07-10  Ben Pfaff  <blp@gnu.org>
39648
39649         Add isnan module.
39650         * doc/posix-functions/isnan.texi: Mention new module.
39651         * lib/math.in.h: Define isnan macro if we have decided to replace
39652         it.
39653         * m4/isnan.m4: New file.
39654         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39655         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39656         also.
39657         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39658         redundancy.
39659         * m4/math_h.m4: Initialize and substitute variables for isnan
39660         module.
39661         * modules/isnan: New file.
39662         * modules/isnan-tests: New file.
39663         * modules/math: Add substitutions for new module.
39664         * tests/test-isnan.c: New file.
39665         * MODULES.html.sh: Mention new module.
39666
39667 2008-07-10  Ben Pfaff  <blp@gnu.org>
39668
39669         Add isnanf module.
39670         * lib/isnanf.m4: New file.
39671         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39672         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39673         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39674         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39675         * modules/isnanf: New file.
39676         * modules/isnanf-tests: New file.
39677         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39678         files.
39679         * tests/test-isnanf-nolibm.c: factored most of its contents into
39680         new file tests/test-isnanf.h.
39681         * tests/test-isnanf.h: New file.
39682         * tests/test-isnanf.c: New file.
39683         * MODULES.html.sh: Mention new module.
39684         * doc/glibc-functions/isnanf.texi: Mention new module.
39685
39686 2008-07-10  Ben Pfaff  <blp@gnu.org>
39687
39688         Add isnand module.
39689         * lib/isnand.h: New file.
39690         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39691         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39692         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39693         functionality also.
39694         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39695         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39696         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39697         * modules/isnand: New file.
39698         * modules/isnand-tests: New file.
39699         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39700         files.
39701         * tests/test-isnand-nolibm.c: factored most of its contents into
39702         new file tests/test-isnand.h.
39703         * tests/test-isnand.h: New file.
39704         * tests/test-isnand.c: New file.
39705         * MODULES.html.sh: Mention new module.
39706
39707 2008-07-10  Ben Pfaff  <blp@gnu.org>
39708
39709         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39710         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39711         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39712         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39713         * modules/isnanf-nolibm: Update references to renamed files.
39714         * modules/isnand-nolibm: Likewise.
39715         * modules/isnanf-nolibm-tests: Likewise.
39716         * modules/isnand-nolibm-tests: Likewise.
39717         * lib/frexp.c: Likewise.
39718         * lib/isfinite.c: Likewise.
39719         * lib/signbitd.c: Likewise.
39720         * lib/signbitf.c: Likewise.
39721         * lib/vasnprintf.c: Likewise.
39722         * tests/test-ceilf1.c: Likewise.
39723         * tests/test-ceilf2.c: Likewise.
39724         * tests/test-floorf1.c: Likewise.
39725         * tests/test-floorf2.c: Likewise.
39726         * tests/test-frexp.c: Likewise.
39727         * tests/test-round1.c: Likewise.
39728         * tests/test-round2.c: Likewise.
39729         * tests/test-roundf1.c: Likewise.
39730         * tests/test-strtod.c: Likewise.
39731         * tests/test-trunc1.c: Likewise.
39732         * tests/test-trunc2.c: Likewise.
39733         * tests/test-truncf1.c: Likewise.
39734         * tests/test-truncf2.c: Likewise.
39735         * NEWS: Mention the renamed header files.
39736
39737 2008-07-11  Jim Meyering  <meyering@redhat.com>
39738
39739         vc-list-files: make the last-resort awk code more portable
39740         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39741         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39742         does not support it.
39743
39744 2008-07-10  Eric Blake  <ebb9@byu.net>
39745
39746         Work with tar's bootstrap.
39747         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39748         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39749         an m4 comment.
39750
39751 2008-07-09  Jim Meyering  <meyering@redhat.com>
39752
39753         posix-shell.m4: fix typo that made this test malfunction
39754         * m4/posix-shell.m4: Remove capitalization in variable name.
39755
39756 2008-07-08  Bruno Haible  <bruno@clisp.org>
39757
39758         * m4/onceonly.m4: Update comments.
39759         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39760
39761 2008-07-04  Jim Meyering  <meyering@redhat.com>
39762
39763         * users.txt: Add vc-dwim.
39764         (bison, coreutils): Use the gitweb URL.
39765
39766 2008-07-03  Jim Meyering  <meyering@redhat.com>
39767
39768         * users.txt: Add libffcall.  From Sam Steingold.
39769
39770 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39771
39772         getdate.y: do not ignore TZ with relative day, month or year offset
39773         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39774         relative-date-handling, since otherwise, the latter would clobber the
39775         sole output (an updated Start value) of the tz-handling block.
39776         * tests/test-getdate.c: Tests for the fix
39777
39778 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39779
39780         Recognize 'foo_LIBRARIES += libgnu.a'.
39781         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39782         makefile snippet has already specified an installation location,
39783         also using '+='.
39784
39785 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39786
39787         getdate.y: factor out common actions
39788         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39789         Use them in place of open-coded actions.
39790
39791 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39792
39793         Add self-test for getdate module.
39794         * modules/getdate-tests: New file.
39795         * tests/test-getdate.c: New file.
39796
39797 2008-06-29  Bruno Haible  <bruno@clisp.org>
39798
39799         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39800         .gitignore.
39801         Reported by Sylvain Beucler <beuc@beuc.net>.
39802
39803 2008-06-29  Bruno Haible  <bruno@clisp.org>
39804
39805         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39806         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39807
39808 2008-06-29  Bruno Haible  <bruno@clisp.org>
39809
39810         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39811         EXTRA_DIST.
39812         Reported by Sylvain Beucler <beuc@beuc.net>.
39813
39814 2008-06-26  Jim Meyering  <meyering@redhat.com>
39815
39816         make several modules depend on the "open" module
39817         This provides slightly increased consistency when opening-for-write
39818         the name of a non-directory spelled with a trailing slash.
39819         * modules/chdir-safer: Likewise.
39820         * modules/chown: Likewise.
39821         * modules/clean-temp: Likewise.
39822         * modules/copy-file: Likewise.
39823         * modules/fchdir: Likewise.
39824         * modules/fcntl-safer: Likewise.
39825         * modules/pipe: Likewise.
39826         * modules/utime: Likewise.
39827         Prompted by Eric Blake and Bruno Haible.
39828
39829 2008-06-24  Andreas Schwab  <schwab@suse.de>
39830
39831         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39832         literals can be used as initializers for global variables.
39833
39834 2008-06-23  Eric Blake  <ebb9@byu.net>
39835
39836         Make gnulib-cache.m4 easier to diff.
39837         * gnulib-tool (func_import): Allow newlines when reading cached
39838         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39839
39840 2008-06-23  Bruno Haible  <bruno@clisp.org>
39841
39842         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39843         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39844         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39845         m4/signalblocking.m4.
39846         (gl_PREREQ_SIGACTION): Don't invoke it.
39847         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39848         gl_PREREQ_SIG_HANDLER_H.
39849         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39850         Don't check for sigaction here.
39851
39852 2008-06-23  Bruno Haible  <bruno@clisp.org>
39853
39854         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39855         (install_handlers): Don't set the SA_RESETHAND flag.
39856
39857 2008-06-23  Bruno Haible  <bruno@clisp.org>
39858
39859         * m4/sigaction.m4: Comment fixes.
39860         * lib/signal.in.h: Likewise.
39861
39862 2008-06-23  Eric Blake  <ebb9@byu.net>
39863
39864         Fix typo.
39865         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39866
39867         Avoid SA_ namespace.
39868         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39869         Reported by Ralf Wildenhues.
39870
39871         Avoid test failure due to SA_RESTORER.
39872         * tests/test-sigaction.c (SA_MASK): New macro.
39873         (main): Avoid failing due to extension flags being set.
39874         Reported by Jim Meyering.
39875
39876         Revert use of sig-handler.h in sigprocmask.c.
39877         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39878         it requires the existence of struct sigaction.
39879         * lib/sigprocmask.c (handler_t): Restore typedef.
39880         (rpl_signal, old_handlers): Use local type.
39881
39882 2008-06-22  Bruno Haible  <bruno@clisp.org>
39883
39884         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39885         conditionally.
39886         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39887
39888 2008-06-22  Bruno Haible  <bruno@clisp.org>
39889
39890         * doc/posix-functions/siginterrupt.texi: Move note.
39891
39892         * lib/signal.in.h (SA_RESTART): New macro.
39893         * lib/sigaction.c: Update comment.
39894
39895         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39896
39897         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39898         (gl_PREREQ_SIGPROCMASK): Invoke it.
39899         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39900
39901         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39902
39903         * lib/sigprocmask.c: Update a comment.
39904
39905 2008-06-21  Eric Blake  <ebb9@byu.net>
39906
39907         Use sigaction module rather than signal().
39908         * modules/c-stack (Depends-on): Add sigaction.
39909         * modules/fatal-signal (Depends-on): Likewise.
39910         * modules/nanosleep (Depends-on): Likewise.
39911         * modules/sigprocmask (Files): Add sig-handler.h.
39912         * modules/sigaction (Files): Likewise.
39913         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39914         Eggert.
39915         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39916         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39917         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39918         (init_fatal_signals): Likewise.
39919         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39920         (siginterrupt): Delete fallback.
39921         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39922         instead.
39923         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39924         siginterrupt.
39925
39926         New module sigaction, for mingw.
39927         * modules/sigaction: New module...
39928         * modules/sigaction-tests: ...and its test.
39929         * m4/sigaction.m4: New file.
39930         * lib/sigaction.c: Likewise.
39931         * tests/test-sigaction.c: Likewise.
39932         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39933         * modules/signal (Makefile.am): Likewise.
39934         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39935         needed.
39936         * doc/posix-headers/signal.texi (signal.h): Mention provided
39937         types.
39938         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39939         that sigaction is preferable.
39940         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39941         module.
39942         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39943         sigaction.
39944
39945         Improve robustness of sigprocmask by overriding signal.
39946         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39947         is in use.
39948         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39949         (SIGKILL, SIGSTOP): Provide fallbacks.
39950         (rpl_signal): Implement.
39951         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39952         signal can be called inside handlers.
39953
39954         Fix nanosleep module on mingw.
39955         * modules/nanosleep (Depends-on): Add sys_select.
39956         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39957
39958         Fix licensing of sigprocmask.
39959         * modules/raise (License): Relicense as LGPL.
39960
39961 2008-06-21  Bruno Haible  <bruno@clisp.org>
39962
39963         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39964         result if it contains question marks.
39965         Reported by Michael Geng <linux@michaelgeng.de>.
39966
39967 2008-06-19  Bruno Haible  <bruno@clisp.org>
39968
39969         Fix CVS-ism.
39970         * doc/gnulib.texi: Include updated-stamp.texi.
39971         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39972         (updated-stamp.texi): New rule.
39973         (gnulib.info): Depend on it.
39974         * doc/.gitignore: Add updated-stamp.texi.
39975         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39976
39977 2008-06-19  Bruno Haible  <bruno@clisp.org>
39978
39979         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39980         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39981
39982 2008-06-19  Eric Blake  <ebb9@byu.net>
39983
39984         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39985         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39986         Reported by Stepan Kasal.
39987
39988 2008-06-18  Bruno Haible  <bruno@clisp.org>
39989
39990         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39991         Reported by Eric Blake.
39992
39993 2008-06-18  Eric Blake  <ebb9@byu.net>
39994
39995         Work around cygwin 1.5.25 strsignal bug.
39996         * tests/test-strsignal.c: Allow for const char *.
39997         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39998
39999 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40000
40001         * users.txt: Update URL to article and add author/date
40002         information.
40003
40004 2008-06-17  Bruno Haible  <bruno@clisp.org>
40005
40006         New macro gl_DISABLE_THREADS.
40007         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40008         if the user did not pass --enable-threads or --disable-threads option.
40009         (gl_DISABLE_THREADS): New macro.
40010         Reported by Eric Blake <ebb9@byu.net>.
40011
40012 2008-06-17  Bruno Haible  <bruno@clisp.org>
40013
40014         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40015         when the macro ignores it.
40016         Based on a patch by Eric Blake <ebb9@byu.net>.
40017
40018 2008-06-17  Bruno Haible  <bruno@clisp.org>
40019
40020         * modules/tls (License): Change to LGPLv2+.
40021         Reported by Eric Blake.
40022
40023 2008-06-17  Eric Blake  <ebb9@byu.net>
40024
40025         Simplify c-stack prerequisites.
40026         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40027         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40028         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40029         check.
40030         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40031         <sys/resource.h>.
40032
40033         Move c-stack test into testsuite.
40034         * modules/c-stack-tests: New file.
40035         * lib/c-stack.c [DEBUG]: Move test program...
40036         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40037         fail test if sigaltstack is lacking.
40038         * tests/test-c-stack.sh: New driver file.
40039
40040 2008-06-16  Eric Blake  <ebb9@byu.net>
40041
40042         Use raise module consistently.
40043         * modules/fatal-signal (Depends-on): Add raise.
40044         * modules/sigprocmask (Depends-on): Likewise.
40045         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40046         * lib/sigprocmask.c (sigprocmask): Likewise.
40047         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40048         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40049
40050         Fix compliance bug in sigpending.
40051         * lib/sigprocmask.c (sigpending): Return pending array via
40052         parameter, not return value.
40053
40054 2008-06-14  Eric Blake  <ebb9@byu.net>
40055
40056         Improve obstack-printf test code.
40057         * tests/test-obstack-printf.c (test_function): Fix comment, and
40058         simplify usage of obstack_* in macros.  Add a test for coverage.
40059         Reported by Bruno Haible.
40060
40061 2008-06-14  Bruno Haible  <bruno@clisp.org>
40062
40063         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40064         array size as a constant, not as a const variable.
40065         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40066         AC_USE_SYSTEM_EXTENSIONS.
40067         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40068         Test whether the obstack_printf function actually exists.
40069         * modules/obstack-printf (Depends-on): Add extensions.
40070         (Include): Remove obstack.h.
40071         * modules/obstack-printf-posix (Depends-on): Add extensions.
40072         (Include): Remove obstack.h.
40073
40074 2008-06-13  Eric Blake  <ebb9@byu.net>
40075
40076         Add obstack-printf and obstack-printf-posix modules.
40077         * modules/obstack-printf: New file.
40078         * modules/obstack-printf-posix: Likewise.
40079         * MODULES.html.sh (Misc): Mention them.
40080         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40081         Likewise.
40082         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40083         Likewise.
40084         * modules/stdio (Makefile.am): Accomodate new modules.
40085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40086         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40087         Declare.
40088         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40089         functions.
40090         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40091         (gl_REPLACE_OBSTACK_PRINTF): New macros
40092         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40093         * tests/test-obstack-printf.c: New file.
40094         * modules/obstack-printf-tests: Likewise.
40095         * modules/obstack-printf-posix-tests: Likewise.
40096
40097 2008-06-11  Bruno Haible  <bruno@clisp.org>
40098
40099         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40100         * lib/open.c: Include errno.h.
40101         (open): Fail when attempting to write to a file that has a trailing
40102         slash.
40103         * tests/test-open.c (main): Test against trailing slash bug.
40104         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40105
40106 2008-06-10  Bruno Haible  <bruno@clisp.org>
40107
40108         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40109         for $? to work inside the trap command, with various /bin/sh-s.
40110         * tests/test-vc-list-files-cvs.sh: Likewise.
40111
40112 2008-06-10  Bruno Haible  <bruno@clisp.org>
40113
40114         * lib/acl-internal.h: Don't include gettext.h here.
40115         * lib/set-mode-acl.c: Include gettext.h here.
40116         * lib/copy-acl.c: Likewise.
40117
40118 2008-06-10  Bruno Haible  <bruno@clisp.org>
40119
40120         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40121         * lib/wait-process.c (wait_subprocess): Likewise.
40122         * lib/execute.h (execute): Add termsigp argument.
40123         * lib/execute.c (execute): Likewise.
40124         * lib/csharpcomp.c (compile_csharp_using_pnet,
40125         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40126         * lib/csharpexec.c (execute_csharp_using_pnet,
40127         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40128         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40129         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40130         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40131         is_jikes_present): Update.
40132         * lib/javaexec.c (execute_java_class): Update.
40133         * lib/javaversion.c (execute_and_read_line): Update.
40134         * NEWS: Document the changes.
40135         Reported by Eric Blake.
40136
40137 2008-06-10  Eric Blake  <ebb9@byu.net>
40138
40139         Add missing include.
40140         * tests/test-strstr.c (includes): Add <signal.h>.
40141         * tests/test-strcasestr.c (includes): Likewise.
40142         * tests/test-memmem.c (includes): Likewise.
40143
40144 2008-06-10  Bruno Haible  <bruno@clisp.org>
40145
40146         * lib/wait-process.c (wait_subprocess): Add an assertion.
40147
40148 2008-06-10  Bruno Haible  <bruno@clisp.org>
40149
40150         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40151
40152 2008-06-10  Bruno Haible  <bruno@clisp.org>
40153
40154         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40155         using alarm().
40156         * tests/test-strcasestr.c (main): Likewise.
40157         * tests/test-strstr.c (main): Likewise.
40158
40159 2008-06-09  Bruno Haible  <bruno@clisp.org>
40160
40161         Work around the Solaris 10 ACE ACLs ABI change.
40162         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40163         declare if ACL_NO_TRIVIAL is present.
40164         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40165         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40166         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40167         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40168         define if ACL_NO_TRIVIAL is present.
40169         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40170         and use the current ABI.
40171         (file_has_acl): Use same #if condition as elsewhere.
40172         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40173         in use, and use the current ABI.
40174         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40175         Reported by Jim Meyering.
40176
40177 2008-06-09  Eric Blake  <ebb9@byu.net>
40178
40179         Work around environments that (stupidly) ignore SIGALRM.
40180         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40181         before using alarm().
40182         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40183         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40184         Reported by Ian Beckwith <ianb@erislabs.net>.
40185
40186         Produce autobuild blurb earlier in log.
40187         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40188
40189 2008-06-09  Jim Meyering  <meyering@redhat.com>
40190         and OndÅ™ej Vašík  <ovasik@redhat.com>
40191
40192         utimens.c: correct kernel bug work-around
40193         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40194         failure, not success, and the kernel bug we're trying to work
40195         around affects not just the utimensat call, but also the fallback
40196         futimens call.
40197         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40198         not success.
40199         [HAVE_FUTIMENS]: Use the same work-around, here.
40200
40201 2008-06-09  Jim Meyering  <meyering@redhat.com>
40202
40203         add more guards around definition of ACE_-related code
40204         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40205         ALLOW and ACE_OWNER are also defined.
40206
40207 2008-06-08  Bruno Haible  <bruno@clisp.org>
40208
40209         * lib/acl-internal.h: Add me as co-author.
40210         * lib/file-has-acl.c: Likewise.
40211         * lib/set-mode-acl.c: Likewise.
40212         * lib/copy-acl.c: Likewise.
40213
40214 2008-06-08  Bruno Haible  <bruno@clisp.org>
40215
40216         Add support for AIX ACLs.
40217         * lib/acl-internal.h (acl_nontrivial): New declaration.
40218         * lib/file-has-acl.c (acl_nontrivial): New function.
40219         (file_has_acl): Add implementation using AIX 4 ACL API.
40220         * lib/set-mode-acl.c (qset_acl): Likewise.
40221         * lib/copy-acl.c (qcopy_acl): Likewise.
40222
40223 2008-06-08  Bruno Haible  <bruno@clisp.org>
40224
40225         Add support for HP-UX ACLs.
40226         * lib/acl-internal.h (acl_nontrivial): New declaration.
40227         * lib/file-has-acl.c (acl_nontrivial): New function.
40228         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40229         * lib/set-mode-acl.c (qset_acl): Likewise.
40230         * lib/copy-acl.c (qcopy_acl): Likewise.
40231
40232 2008-06-08  Bruno Haible  <bruno@clisp.org>
40233
40234         Add support for Cygwin ACLs.
40235         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40236         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40237         the chmod_or_fchmod call.
40238         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40239
40240 2008-06-08  Bruno Haible  <bruno@clisp.org>
40241
40242         Fix bug with setuid modes in Solaris 10+ code.
40243         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40244         succeeded, when the mode contains some special bits.
40245
40246 2008-06-08  Bruno Haible  <bruno@clisp.org>
40247
40248         Add support for Solaris 7..10 ACLs.
40249         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40250         declarations.
40251         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40252         functions.
40253         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40254         * lib/set-mode-acl.c (qset_acl): Likewise.
40255         * lib/copy-acl.c (qcopy_acl): Likewise.
40256
40257 2008-06-08  Bruno Haible  <bruno@clisp.org>
40258
40259         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40260         declaration.
40261         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40262         (acl_access_nontrivial): Remove MacOS X case.
40263         (file_has_acl): Use acl_extended_nontrivial.
40264         * lib/copy-acl.c (qcopy_acl): Likewise.
40265
40266 2008-06-08  Bruno Haible  <bruno@clisp.org>
40267
40268         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40269
40270 2008-06-08  Jim Meyering  <meyering@redhat.com>
40271
40272         * modules/acl (Maintainer): Add Bruno Haible.
40273
40274 2008-06-07  Bruno Haible  <bruno@clisp.org>
40275
40276         Improve support for Tru64 ACLs.
40277         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40278         ACL on OSF/1.
40279
40280 2008-06-07  Bruno Haible  <bruno@clisp.org>
40281
40282         Add support for MacOS X ACLs.
40283         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40284         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40285         * lib/set-mode-acl.c (qset_acl): Likewise.
40286         * lib/copy-acl.c (qcopy_acl): Likewise.
40287
40288 2008-06-07  Bruno Haible  <bruno@clisp.org>
40289
40290         Fix memory leak introduced on 2008-05-22.
40291         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40292         use.
40293
40294 2008-06-07  Bruno Haible  <bruno@clisp.org>
40295
40296         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40297         to construct an empty ACL.
40298
40299 2008-06-07  Bruno Haible  <bruno@clisp.org>
40300
40301         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40302         precisely.
40303         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40304
40305 2008-06-07  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40308         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40309
40310 2008-06-07  Bruno Haible  <bruno@clisp.org>
40311
40312         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40313         regardless of POSIX.
40314         * doc/posix-functions/_longjmp.texi: Likewise.
40315         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40316         SystemV platform in this case.
40317
40318 2008-06-06  Eric Blake  <ebb9@byu.net>
40319
40320         Document abort() bugs.
40321         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40322
40323         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40324         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40325         sigsetjmp.
40326         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40327         siglongjmp, but only as a macro.
40328         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40329         is obsolete.
40330         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40331
40332         Tweak documentation to cover cygwin argz bugs.
40333         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40334         argz bug fix; no code change needed since no cygwin releases
40335         occurred between the last fix and the bug being tested.
40336         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40337         module and recently fixed cygwin bugs.
40338         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40339         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40340         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40341         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40342         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40343         Likewise.
40344         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40345         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40346         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40347         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40348         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40349         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40350         Likewise.
40351
40352         Avoid gcc warning on cygwin.
40353         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40354         !ACL_NO_TRIVIAL]: Avoid unused variable.
40355
40356 2008-06-05  Eric Blake  <ebb9@byu.net>
40357
40358         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40359         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40360         git-version-gen fails to come up with a version.
40361         Reported by Simon Josefsson.
40362
40363 2008-06-05  Jim Meyering  <meyering@redhat.com>
40364             Paul Eggert  <eggert@cs.ucla.edu>
40365
40366         utimens.c: work around a probable Linux kernel bug
40367         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40368         appears to be a kernel bug that causes utimensat to return 280
40369         instead of 0, indicating success.
40370
40371 2008-06-04  Bruno Haible  <bruno@clisp.org>
40372
40373         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40374         2008-06-01 commit.
40375
40376 2008-06-04  Bruno Haible  <bruno@clisp.org>
40377
40378         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40379         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40380         (file_has_acl): Use it. Save errno afterwards.
40381         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40382
40383 2008-06-03  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40386         draft code. Simplify #ifs.
40387         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40388         Put Solaris code after POSIX-draft code. Fix comments regarding
40389         Solaris 10, HP-UX. Mention Cygwin.
40390         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40391
40392 2008-06-03  Eric Blake  <ebb9@byu.net>
40393
40394         Provide fallback for older kernels.
40395         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40396         Provide runtime fallback if kernel lacks support.
40397         Reported by Mike Frysinger.
40398
40399 2008-06-02  Bruno Haible  <bruno@clisp.org>
40400
40401         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40402         it exists.
40403
40404 2008-06-02  Bruno Haible  <bruno@clisp.org>
40405
40406         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40407         * lib/copy-acl.c (qcopy_acl): Update comment.
40408
40409 2008-06-02  Bruno Haible  <bruno@clisp.org>
40410
40411         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40412         like ACL APIs.
40413
40414 2008-06-02  Bruno Haible  <bruno@clisp.org>
40415
40416         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40417         * tests/test-set-mode-acl.sh: Likewise.
40418         * tests/test-copy-acl.sh: Likewise.
40419         * tests/test-copy-file.sh: Likewise.
40420
40421 2008-06-02  Bruno Haible  <bruno@clisp.org>
40422
40423         * tests/test-file-has-acl.sh: Remove unused code.
40424
40425 2008-06-01  Bruno Haible  <bruno@clisp.org>
40426
40427         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40428         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40429         messages.
40430         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40431
40432 2008-06-01  Bruno Haible  <bruno@clisp.org>
40433
40434         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40435         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40436         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40437         APIs.
40438         * modules/acl-tests (configure.ac): Remove tests now contained in
40439         m4/acl.m4.
40440
40441 2008-06-02  Jim Meyering  <meyering@redhat.com>
40442
40443         announce-gen: use a better key-server host name
40444         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40445         it may be more consistently reliable.  Suggested by Werner Koch
40446         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40447
40448 2008-06-01  Bruno Haible  <bruno@clisp.org>
40449
40450         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40451         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40452
40453 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40454
40455         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40456
40457 2008-06-01  Bruno Haible  <bruno@clisp.org>
40458
40459         New ACL tests.
40460         * tests/test-file-has-acl.sh: New file.
40461         * tests/test-file-has-acl.c: New file.
40462         * tests/test-set-mode-acl.sh: New file.
40463         * tests/test-set-mode-acl.c: New file.
40464         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40465         * tests/test-copy-acl.c: New file.
40466         * modules/acl-tests: New file, based on modules/copy-file-tests.
40467         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40468         (Depends-on): Add acl-tests.
40469         (configure.ac): Remove checks.
40470         (Makefile.am): Don't create test-sameacls program here any more.
40471
40472 2008-06-01  Bruno Haible  <bruno@clisp.org>
40473
40474         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40475         * tests/test-sameacls.c: Include progname.h.
40476         (main): Invoke set_program_name. Portability fixes for MacOS X,
40477         Solaris, HP-UX.
40478
40479 2008-06-01  Bruno Haible  <bruno@clisp.org>
40480
40481         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40482         function.
40483         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40484
40485 2008-06-01  Bruno Haible  <bruno@clisp.org>
40486
40487         * modules/rpmatch (Depends-on): Add strdup.
40488
40489 2008-06-01  Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/pipe.c: Include unistd-safer.h.
40492         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40493         * modules/pipe (Depends-on): Add unistd-safer.
40494
40495 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40496
40497         * modules/autobuild (configure.ac): Call AB_INIT.
40498
40499 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40500
40501         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40502         Suggested by Bruno Haible <bruno@clisp.org>.
40503
40504 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40505
40506         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40507         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40508         <bruno@clisp.org>.
40509
40510 2008-05-29  Eric Blake  <ebb9@byu.net>
40511
40512         Prefer new POSIX 200x interfaces over futimesat.
40513         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40514         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40515         when available.
40516         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40517
40518 2008-05-28  Bruno Haible  <bruno@clisp.org>
40519
40520         * modules/stpcpy (License): Change to LGPLv2+.
40521         Requested by David Lutterkort <dlutter@redhat.com>.
40522
40523 2008-05-27  Bruno Haible  <bruno@clisp.org>
40524
40525         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40526         current mingw.
40527         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40528
40529 2008-05-27  Bruno Haible  <bruno@clisp.org>
40530
40531         * modules/iconv_open (Link): New section, from module 'iconv'.
40532         * modules/striconv (Link): Likewise.
40533         * modules/striconveh (Link): Likewise.
40534         * modules/xstriconv (Link): Likewise.
40535         * modules/unicodeio (Link): Likewise.
40536         * modules/propername (Link): Likewise.
40537         Reported by Jim Meyering.
40538
40539 2008-05-26  Jim Meyering  <meyering@redhat.com>
40540
40541         sha256: do not artificially restrict buffer length to be < 2^32
40542         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40543         uint32_t to size_t.
40544         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40545         to match.
40546
40547         avoid unaligned access errors, e.g., on sparc
40548         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40549         direct access through a possibly-unaligned uint64* pointer.
40550         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40551         direct access through a possibly-unaligned uint32* pointer.
40552         Prompted by this patch from Tom "spot" Callaway:
40553         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40554
40555         sha512.c: fix typo in comment
40556         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40557
40558 2008-05-25  Bruno Haible  <bruno@clisp.org>
40559
40560         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40561         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40562         (Makefile.am): Update lib_SOURCES.
40563
40564 2008-05-25  Bruno Haible  <bruno@clisp.org>
40565
40566         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40567
40568 2008-05-25  Jim Meyering  <meyering@redhat.com>
40569
40570         useless-if-before-free: freed expr may have white-space differences
40571         * build-aux/useless-if-before-free: Recognize cases in which the
40572         freed expression differs from the tested one in embedded white
40573         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40574         $1 was used, so we can't make any regexp shy.  Improved tests now
40575         detect this.
40576
40577         useless-if-before-free: accept white space in the expression.
40578         * build-aux/useless-if-before-free: For now, any white space
40579         in the expression must be identical in the free argument.
40580
40581         useless-if-before-free: efficiency tweak
40582         * build-aux/useless-if-before-free: Make the expression-matching
40583         regexp "shy".
40584         Make the *outer* regexp shy, not the expr-matching one.
40585
40586         update code-in-comment to accept cast of free arg
40587         * build-aux/useless-if-before-free: Update regexp.
40588
40589 2008-05-25  Bruno Haible  <bruno@clisp.org>
40590
40591         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40592         * modules/copy-file-tests (Files, Makefile.am): Update.
40593         * tests/test-copy-file.c (func_test_copy): Update.
40594
40595 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40596
40597         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40598
40599 2008-05-23  Bruno Haible  <bruno@clisp.org>
40600
40601         Improve support for ACLs on OSF/1.
40602         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40603         Remove fallback for unknown flavors of ACLs.
40604
40605 2008-05-22  Bruno Haible  <bruno@clisp.org>
40606
40607         Add support for ACLs on OSF/1.
40608         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40609         replacements.
40610         (acl_free_text): New macro fallback.
40611         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40612         acl_free.
40613         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40614         acl_free_text function. Require AC_C_INLINE.
40615
40616 2008-05-22  Bruno Haible  <bruno@clisp.org>
40617
40618         Make copy_acl work on MacOS X 10.5.
40619         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40620         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40621         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40622         If MODE_INSIDE_ACL, don't assume that every system has the same text
40623         representation for ACLs as FreeBSD.
40624         * lib/copy-acl.c (copy_acl): Add support for platforms with
40625         !MODE_INSIDE_ACL.
40626         * lib/file-has-acl.c (file_has_acl): Likewise.
40627         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40628         FreeBSD, MacOS X, or IRIX, respectively.
40629
40630 2008-05-22  Bruno Haible  <bruno@clisp.org>
40631
40632         * lib/acl.h: Don't include <sys/acl.h>.
40633         (GETACLCNT): Move fallback to lib/acl-internal.h.
40634         * lib/acl-internal.h: Include <sys/acl.h> here.
40635         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40636
40637 2008-05-22  Bruno Haible  <bruno@clisp.org>
40638
40639         Split off copy_acl function to separate file.
40640         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40641         * lib/acl.c (copy_acl): Moved function to separate file.
40642         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40643         * modules/acl (Files): Add lib/copy-acl.c.
40644         (Makefiles.am): Augment lib_SOURCES.
40645
40646 2008-05-22  Bruno Haible  <bruno@clisp.org>
40647
40648         * modules/copy-file-tests: New file.
40649         * tests/test-copy-file.sh: New file.
40650         * tests/test-copy-file.c: New file.
40651         * tests/test-copy-file-sameacls.c: New file.
40652
40653 2008-05-22  Eric Blake  <ebb9@byu.net>
40654
40655         Avoid gcc warning.
40656         * tests/test-memcmp.c (main): Pass NULL indirectly.
40657
40658 2008-05-21  Bruno Haible  <bruno@clisp.org>
40659
40660         Add reference doc about ACLs.
40661         * doc/acl-resources.txt: New file.
40662         * doc/acl-cygwin.txt: New file.
40663
40664 2008-05-21  Bruno Haible  <bruno@clisp.org>
40665
40666         Avoid one more warning from gcc.
40667         * lib/vasnprintf.c (IF_LINT): Update comments.
40668         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40669
40670 2008-05-21  Jim Meyering  <meyering@redhat.com>
40671
40672         avoid a warning from gcc
40673         * lib/vasnprintf.c (IF_LINT): Define.
40674         (scale10_round_decimal_long_double):
40675         Use it to avoid a "may be used uninitialized" warning.
40676         (scale10_round_decimal_double): Likewise.
40677
40678 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40679
40680         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40681         declared.
40682
40683 2008-05-20  Bruno Haible  <bruno@clisp.org>
40684
40685         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40686         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40687
40688 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40689
40690         * modules/memcmp-tests: New file.
40691         * tests/test-memcmp.c: New file.
40692
40693 2008-05-19  Bruno Haible  <bruno@clisp.org>
40694
40695         * modules/propername (Notice, configure.ac): Put quoted "..." into
40696         --keyword option.
40697         * lib/propername.h: Update comments accordingly.
40698         Reported by Eric Blake.
40699
40700 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40701
40702         * modules/getpass-gnu (Depends-on): Add fseeko.
40703
40704 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40705
40706         * modules/base64-tests: New file.
40707
40708 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40709
40710         * lib/base64.c (base64_decode_ctx): If a decode context structure
40711         was passed in use it to ignore newlines.  If a context structure
40712         was _not_ passed in, continue to treat newlines as garbage (this
40713         is the historical behavior).  Formerly base64_decode.
40714         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40715         takes a decode context structure.
40716         * lib/base64.h (base64_decode): Macro for four-argument calls.
40717         (base64_decode_alloc): Likewise.
40718         * lib/base64.c (base64_decode_ctx): If a decode context structure
40719         was passed in use it to ignore newlines.  If a context structure
40720         was _not_ passed in, continue to treat newlines as garbage (this
40721         is the historical behavior).  Formerly base64_decode.
40722         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40723         takes a decode context structure.
40724         * lib/base64.h (base64_decode): Macro for four-argument calls.
40725         (base64_decode_alloc): Likewise.
40726
40727 2008-05-19  Jim Meyering  <meyering@redhat.com>
40728
40729         avoid a warning from gcc
40730         * lib/trim.c (IF_LINT): Define.
40731         (trim2): Use it to avoid a "may be used uninitialized" warning.
40732
40733         Fix doc typo.
40734         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40735
40736 2008-05-19  Bruno Haible  <bruno@clisp.org>
40737
40738         * doc/glibc-functions/getpass.texi: Document limits of other
40739         implementations.
40740
40741 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40742             Bruno Haible <bruno@clisp.org>
40743
40744         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40745
40746 2008-05-18  Bruno Haible  <bruno@clisp.org>
40747
40748         * modules/propername: New file, from GNU gettext.
40749         * lib/propername.h: New file, from GNU gettext.
40750         * lib/propername.c: New file, from GNU gettext.
40751         * MODULES.html.sh (Internationalization functions): Add propername.
40752
40753 2008-05-16  Jim Meyering  <meyering@redhat.com>
40754             Bruno Haible  <bruno@clisp.org>
40755
40756         Avoid some warnings from "gcc -Wshadow".
40757         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40758
40759 2008-05-15  Eric Blake  <ebb9@byu.net>
40760
40761         Extend previous patch to cygwin 1.7.0.
40762         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40763         fast implementation in cygwin >= 1.7.0.
40764         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40765         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40766
40767 2008-05-15  Bruno Haible  <bruno@clisp.org>
40768
40769         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40770         implementation in glibc >= 2.9.
40771         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40772         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40773
40774 2008-05-15  Bruno Haible  <bruno@clisp.org>
40775
40776         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40777         (Unicode string functions): Add unilbrk/*.
40778         Reported by Karl Berry.
40779
40780 2008-05-15  Eric Blake  <ebb9@byu.net>
40781
40782         Fix violation of <stdbool.h> replacement in regex.
40783         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40784         * lib/regexec.c (re_search_internal): Likewise.
40785         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40786
40787 2008-05-15  Jim Meyering  <meyering@redhat.com>
40788
40789         avoid distracting test output when git or cvs is not found
40790         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40791         * tests/test-vc-list-files-git.sh: Likewise.
40792
40793 2008-05-15  Eric Blake  <ebb9@byu.net>
40794
40795         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40796         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40797         glibc version.
40798         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40799         * doc/posix-functions/strstr.texi (strstr): Likewise.
40800         * lib/str-two-way.h (MAX): Sychronize with glibc.
40801
40802 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40803
40804         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40805         opr.ctx_type.
40806         (calc_first): Initialize constraint field.
40807         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40808         Fix grammar.
40809         (duplicate_node): Merge constraint field for all node types.
40810         (calc_eclosure_iter): Look at constraint field for all node types.
40811         * lib/regex_internal.c (create_cd_newstate): Don't look at
40812         opr.ctx_type.
40813
40814 2008-05-14  Bruno Haible  <bruno@clisp.org>
40815
40816         Help GCC to do better code generation.
40817         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40818         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40819         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40820         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40821         Declare with attribute 'malloc' if supported.
40822
40823 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40824
40825         use "echo STR|wc -c" rather than unportable "expr length STR"
40826         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40827         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40828
40829 2008-05-14  Jim Meyering  <meyering@redhat.com>
40830
40831         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40832         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40833         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40834         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40835         via Collin Lasse.
40836
40837 2008-05-14  Eric Blake  <ebb9@byu.net>
40838
40839         Avoid quadratic growth in gl_LIBSOURCES.
40840         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40841         Suggested by Bruno Haible.
40842
40843         Test xmemdup0.
40844         * modules/xmemdup0-tests: New file.
40845         * tests/test-xmemdup0.c: Likewise.
40846
40847 2008-05-13  Eric Blake  <ebb9@byu.net>
40848
40849         Split xmemdup0 into its own module.
40850         * modules/xmemdup0: New file.
40851         * lib/xmemdup0.h: Likewise.
40852         * lib/xmemdup0.c: Likewise.
40853         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40854         * lib/xalloc.h (xmemdup0): Remove.
40855         * lib/xmalloc.c (xmemdup0): Likewise.
40856
40857 2008-05-13  Eric Blake  <ebb9@byu.net>
40858             Bruno Haible  <bruno@clisp.org>
40859
40860         Reduce number of forks required during autoconf.
40861         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40862         and gl_LIBSOURCES_DIR.
40863         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40864         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40865         m4_syscmd per file.
40866         <m4_foreach_w>: Move...
40867         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40868
40869 2008-05-13  Eric Blake  <ebb9@byu.net>
40870
40871         * gnulib-tool: Fix various comment typos.
40872
40873 2008-05-12  Bruno Haible  <bruno@clisp.org>
40874
40875         Tailor the linebreaking algorithm.
40876         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40877
40878 2008-05-12  Bruno Haible  <bruno@clisp.org>
40879
40880         Update to Unicode 5.0.0.
40881         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40882         LBP_JV, LBP_JT. Redistribute values.
40883         (unilbrk_table): Change size.
40884         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40885         Unicode TR#14 rev. 22.
40886         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40887         LBP_JV, LBP_JT. Redistribute values.
40888         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40889         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40890         Update.
40891         * lib/unilbrk/lbrkprop1.h: Regenerated.
40892         * lib/unilbrk/lbrkprop2.h: Regenerated.
40893         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40894         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40895         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40896         Likewise.
40897         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40898         Likewise.
40899         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40900         result.
40901         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40902         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40903         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40904         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40905         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40906         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40907
40908 2008-05-11  Bruno Haible  <bruno@clisp.org>
40909
40910         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40911
40912 2008-05-11  Bruno Haible  <bruno@clisp.org>
40913
40914         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40915         * modules/unilbrk/gen-lbrk: New file.
40916
40917 2008-05-11  Bruno Haible  <bruno@clisp.org>
40918
40919         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40920         * m4/sha512.m4 (gl_SHA512): Likewise.
40921
40922 2008-05-11  Jim Meyering  <meyering@redhat.com>
40923
40924         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40925         * modules/crypto/sha256: New file.
40926         * modules/crypto/sha512: Likewise.
40927         * lib/sha256.c: Likewise.
40928         * lib/sha256.h: Likewise.
40929         * lib/sha512.c: Likewise.
40930         * lib/sha512.h: Likewise.
40931         * lib/u64.h: Likewise.
40932         * m4/sha256.m4: Likewise.
40933         * m4/sha512.m4: Likewise.
40934         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40935
40936 2008-05-10  Bruno Haible  <bruno@clisp.org>
40937
40938         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40939         (Input/Output <stdio.h>): Add xprintf.
40940         (Signal handling <signal.h>): Add strsignal.
40941         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40942         (Core language properties): Add func.
40943         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40944         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40945         strings.
40946         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40947         (Input/output): New section.
40948         (File system functions): Add openat-die, stat-macros.
40949         (Networking functions): Add sockets.
40950         (Unicode string functions): Add unictype/*.
40951         (Support for building libraries and executables): Add gperf.
40952         (Support for building documentation): Add agpl-3.0.
40953         (Misc): Add nocrash.
40954
40955 2008-05-10  Bruno Haible  <bruno@clisp.org>
40956
40957         * modules/unictype/gen-ctype: New file.
40958
40959 2008-05-10  Jim Meyering  <meyering@redhat.com>
40960
40961         Make chdir-safer.c more efficient on a system with no symlinks.
40962         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40963         also if ELOOP is zero.  Suggested by Bruno Haible.
40964
40965         Make chdir-safer.c slightly safer.
40966         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40967         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40968
40969         Avoid compile failure on systems without ELOOP (like mingw).
40970         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40971         Reported by Bruno Haible.
40972
40973 2008-05-10  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40976         (is_utf8_encoding): Use a case-insensitive comparison.
40977         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40978         streq.
40979
40980 2008-05-10  Bruno Haible  <bruno@clisp.org>
40981
40982         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40983         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40984         * lib/unilbrk/ulc-common.h (iconv_string_length,
40985         iconv_string_keeping_offsets): Remove declarations.
40986         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40987         Don't include <iconv.h>, streq.h, xsize.h.
40988         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40989         conversion.
40990         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40991         <iconv.h>, streq.h, xsize.h.
40992         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40993         conversion.
40994         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40995         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40996         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40997         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40998
40999 2008-05-10  Bruno Haible  <bruno@clisp.org>
41000
41001         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41002         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41003
41004         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41005         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41006
41007         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41008         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41009
41010         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41011         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41012
41013         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41014         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41015
41016         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41017         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41018
41019         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41020         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41021
41022         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41023         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41024
41025 2008-05-10  Bruno Haible  <bruno@clisp.org>
41026
41027         Split up 'linebreak' module.
41028         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41029         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41030         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41031         modifications.
41032         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41033         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41034         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41035         lib/linebreak.c.
41036         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41037         lib/linebreak.c.
41038         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41039         lib/linebreak.c.
41040         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41041         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41042         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41043         lib/linebreak.c.
41044         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41045         lib/linebreak.c.
41046         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41047         lib/linebreak.c.
41048         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41049         lib/linebreak.c.
41050         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41051         lib/linebreak.c.
41052         * modules/unilbrk/base: New file.
41053         * modules/unilbrk/tables: New file.
41054         * modules/unilbrk/u8-possible-linebreaks: New file.
41055         * modules/unilbrk/u16-possible-linebreaks: New file.
41056         * modules/unilbrk/u32-possible-linebreaks: New file.
41057         * modules/unilbrk/ulc-common: New file.
41058         * modules/unilbrk/ulc-possible-linebreaks: New file.
41059         * modules/unilbrk/u8-width-linebreaks: New file.
41060         * modules/unilbrk/u16-width-linebreaks: New file.
41061         * modules/unilbrk/u32-width-linebreaks: New file.
41062         * modules/unilbrk/ulc-width-linebreaks: New file.
41063         * lib/linebreak.h: Remove file.
41064         * lib/linebreak.c: Remove file.
41065         * m4/linebreak.m4: Remove file.
41066         * modules/linebreak: Remove file.
41067         * NEWS: Mention the changes.
41068
41069 2008-05-09  Eric Blake  <ebb9@byu.net>
41070
41071         Add xmemdup0.
41072         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41073         implementation.
41074         * lib/xmalloc.c (xmemdup0): New C implementation.
41075
41076 2008-05-08  Bruno Haible  <bruno@clisp.org>
41077
41078         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41079
41080 2008-05-07  Eric Blake  <ebb9@byu.net>
41081
41082         Support cross-compilation of <wctype.h>.
41083         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41084         AC_CACHE_CHECK.
41085
41086 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41087
41088         * build-aux/vc-list-files: Add support for bzr.
41089
41090 2008-05-03  Jim Meyering  <meyering@redhat.com>
41091
41092         avoid failed assertion with tight malloc
41093         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41094
41095 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41096
41097         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41098         are needed from arpa/inet.h.
41099         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41100         Reported by Bruno Haible.
41101
41102 2008-05-02  Jim Meyering  <meyering@redhat.com>
41103
41104         avoid compilation error on FreeBSD 6
41105         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41106
41107 2008-05-01  Jim Meyering  <meyering@redhat.com>
41108
41109         useless-if-before-free: correct --help's exit status description
41110         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41111         for one or more matches, etc.  Reported by Bruno Haible.
41112
41113         vc-list-files: make the stand-alone gnulib test work
41114         * modules/vc-list-files-tests (configure.ac):
41115         Define and AC_SUBST abs_aux_dir.
41116         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41117         $(abs_top_srcdir) to each script and having each of them
41118         duplicate the work of setting PATH, set PATH here, using
41119         the new variable, abs_aux_dir instead.
41120         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41121         * tests/test-vc-list-files-git.sh: Likewise.
41122         Reported by Bruno Haible.
41123
41124 2008-05-01  Bruno Haible  <bruno@clisp.org>
41125
41126         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41127         reallocation. Rename 'done' to 'found_delimiter'.
41128
41129 2008-05-01  Jim Meyering  <meyering@redhat.com>
41130
41131         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41132         * build-aux/vc-list-files: Use `...`, not $(...).
41133
41134 2008-04-30  Jim Meyering  <meyering@redhat.com>
41135
41136         add tests for vc-list-files
41137         * modules/vc-list-files-tests: New module.
41138         * tests/test-vc-list-files-cvs.sh: New file.
41139         * tests/test-vc-list-files-git.sh: New file.
41140
41141         avoid a warning from gcc
41142         * lib/getndelim2.c (IF_LINT): Define.
41143         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41144
41145         vc-list-files: work properly with build-aux/cvsu, too
41146         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41147         to all cvs-based clauses.
41148
41149         vc-list-files: work properly in the CVS+awk case, too
41150         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41151
41152         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41153         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41154         take more than one file argument, so .  Add quotes, just in case $dir
41155         ever contains a shell meta-character.  Prompted by Soren Hansen in
41156         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41157
41158 2008-04-29  Eric Blake  <ebb9@byu.net>
41159
41160         Optimize getndelim2 to use block operations when possible.
41161         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41162         freadseek, and memchr2.
41163         * lib/getndelim2.c (getndelim2): Use them for block reads.
41164
41165 2008-04-29  Bruno Haible  <bruno@clisp.org>
41166
41167         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41168         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41169         * modules/inet_ntop (Depends-on): Add extensions.
41170         * modules/inet_pton (Depends-on): Likewise.
41171         Reported by Simon Josefsson.
41172
41173 2008-04-29  Jim Meyering  <meyering@redhat.com>
41174
41175         When the is more than one match in a block, match all of them.
41176         * build-aux/useless-if-before-free: Iterate through each block
41177         until there are no more matches.
41178
41179         Fix broken useless-if-before-free script.
41180         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41181         the expression to match cast of argument to free-like function.
41182
41183 2008-04-29  Eric Blake  <ebb9@byu.net>
41184
41185         Use new header.
41186         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41187
41188 2008-04-29  Jim Meyering  <meyering@redhat.com>
41189
41190         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41191         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41192         by gnulib to exist and to declare e.g., inet_ntop.
41193         Don't include "inet_ntop.h", now removed.
41194
41195         * m4/arpa_inet_h.m4: Remove trailing blanks.
41196
41197 2008-04-29  Eric Blake  <ebb9@byu.net>
41198
41199         Silence valgrind on safe reads beyond potential array bounds.
41200         * lib/rawmemchr.valgrind: New file.
41201         * lib/strchrnul.valgrind: Likewise.
41202         * modules/rawmemchr (Files): Distribute new file.
41203         * modules/strchrnul (Files): Likewise.
41204         Suggested by Bruno Haible.
41205
41206 2008-04-29  Bruno Haible  <bruno@clisp.org>
41207
41208         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41209         (inet_ntop, inet_pton): Change portability warning's wording.
41210         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41211         Invoke gl_CHECK_NEXT_HEADERS.
41212         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41213         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41214         set ARPA_INET_H.
41215         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41216         * modules/arpa_inet (Description): No longer only for systems that
41217         lack it.
41218         (Depends-on): Add include_next.
41219         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41220         HAVE_ARPA_INET_H.
41221
41222 2008-04-29  Jim Meyering  <meyering@redhat.com>
41223
41224         * modules/mkdir (License): Re-license as LGPLv2+.
41225
41226 2008-04-29  Bruno Haible  <bruno@clisp.org>
41227
41228         * modules/rawmemchr (Maintainer): Set to Eric.
41229         * modules/strchrnul (Maintainer): Likewise.
41230
41231 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41232
41233         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41234         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41235
41236         * modules/arpa_inet (arpa/inet.h): Use them.
41237
41238 2008-04-28  Eric Blake  <ebb9@byu.net>
41239
41240         Test getndelim2.
41241         * modules/getndelim2-tests: New file.
41242         * tests/test-getndelim2.c: Likewise.
41243         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41244         stream.
41245         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41246
41247         * MODULES.html.sh: Document new module.
41248
41249 2008-04-20  Bruno Haible  <bruno@clisp.org>
41250
41251         * lib/c-stack.c (die): Use raise.
41252         * modules/c-stack (Depends-on): Add raise.
41253
41254 2008-04-28  Bruno Haible  <bruno@clisp.org>
41255
41256         Expect rpmatch to be declared.
41257         * lib/yesno.c (rpmatch): Remove declaration.
41258
41259         Declare rpmatch.
41260         * lib/stdlib.in.h (rpmatch): New declaration.
41261         * lib/rpmatch.c: Include <stdlib.h> first.
41262         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41263         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41265         HAVE_RPMATCH.
41266         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41267         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41268         (Include): Set to <stdlib.h>.
41269         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41270         HAVE_RPMATCH.
41271         * NEWS: Document the change.
41272
41273 2008-04-28  Bruno Haible  <bruno@clisp.org>
41274
41275         Change rpmatch to use nl_langinfo when appropriate.
41276         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41277         (N_): New macro.
41278         (localized_pattern): New function/macro.
41279         (try): Remove match, nomatch arguments. Copy the pattern into safe
41280         memory before caching it.
41281         (rpmatch): Use localized_pattern. Add translator comments.
41282         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41283         Suggested by Eric Blake.
41284         * modules/rpmatch (Depends-on): Add stdbool.
41285
41286 2008-04-28  Eric Blake  <ebb9@byu.net>
41287
41288         Add rawmemchr module, matching glibc.
41289         * modules/string (Makefile.am): New indicator.
41290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41291         * lib/string.in.h (rawmemchr): Declare when appropriate.
41292         * modules/rawmemchr: New file.
41293         * m4/rawmemchr.m4: Likewise.
41294         * lib/rawmemchr.c: Likewise.
41295         * modules/rawmemchr-tests: Likewise.
41296         * tests/test-rawmemchr.c: Likewise.
41297         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41298         module.
41299         * modules/strchrnul (Depends-on): Add rawmemchr.
41300         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41301
41302         Whitespace cleanup.
41303         * tests/test-strchrnul.c: Reindent.
41304         * lib/strchrnul.c: Likewise.
41305
41306         Optimize and test strchrnul.
41307         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41308         * modules/strchrnul-tests: New file.
41309         * tests/test-strchrnul.c: Likewise.
41310
41311         Remove intprops dependency.
41312         * modules/memchr (Depends-on): Remove intprops.
41313         * modules/memrchr (Depends-on): Likewise.
41314         * modules/memchr2 (Depends-on): Likewise.
41315         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41316         * lib/memrchr.c (__memrchr): Likewise.
41317         * lib/memrchr2.c (memchr2): Likewise.
41318         Reported by Simon Josefsson.
41319
41320 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41321
41322         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41323         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41324
41325 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41326
41327         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41328
41329         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41330
41331         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41332
41333         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41334         declarations.
41335         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41336
41337         * m4/inet_pton.m4: Don't check for header files.
41338
41339         * m4/inet_ntop.m4: Don't check for header files.
41340
41341 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41342
41343         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41344         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41345         trigger for cygwin).
41346         Reported by Bruno Haible  <bruno@clisp.org>.
41347
41348 2008-04-28  Bruno Haible  <bruno@clisp.org>
41349
41350         * doc/posix-functions/strdup.texi: Mention mingw problem.
41351
41352 2008-04-27  Bruno Haible  <bruno@clisp.org>
41353
41354         * modules/stat-time-tests (Depends-on): Add sleep.
41355         * tests/test-stat-time.c (force_unlink): New function.
41356         (cleanup): Use it.
41357         (test_mtime): Remove the ctime related tests.
41358         (test_ctime): New function, containing the ctime related tests.
41359         (main): Call test_ctime, except on native Windows platforms.
41360
41361 2008-04-27  Bruno Haible  <bruno@clisp.org>
41362
41363         * lib/rpmatch.c (rpmatch): Add some comments.
41364         Reported by James Youngman <jay@gnu.org>.
41365
41366 2008-04-27  Bruno Haible  <bruno@clisp.org>
41367
41368         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41369         quiet NaNs.
41370
41371 2008-04-27  Bruno Haible  <bruno@clisp.org>
41372
41373         Make test-yesno.sh work on mingw.
41374         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41375         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41376         (main): Set stdin to binary mode.
41377         * modules/yesno-tests (Depends-on): Add binary-io.
41378
41379 2008-04-27  Bruno Haible  <bruno@clisp.org>
41380
41381         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41382         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41383         argument that lie outside the IEEE 854 domain.
41384         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41385         (gl_ISFINITE): Use it.
41386         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41387
41388 2008-04-27  Bruno Haible  <bruno@clisp.org>
41389
41390         Allow local renaming in config.h.
41391         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41392
41393 2008-04-27  Bruno Haible  <bruno@clisp.org>
41394
41395         * lib/memchr.c (__memchr): Change type of 'i'.
41396         * lib/memchr2.c (memchr2): Likewise.
41397
41398 2008-04-26  Eric Blake  <ebb9@byu.net>
41399         and Bruno Haible  <bruno@clisp.org>
41400
41401         Optimize and test memrchr.
41402         * modules/memrchr (Depends-on): Add intprops.
41403         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41404         * modules/memrchr-tests: New file.
41405         * tests/test-memrchr.c: New file.
41406
41407 2008-04-26  Bruno Haible  <bruno@clisp.org>
41408
41409         Add tentative support for DragonFly BSD.
41410         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41411         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41412         fp.
41413         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41414         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41415         * lib/fpurge.c (fpurge): Likewise.
41416         * lib/freadable.c (freaadable): Likewise.
41417         * lib/freadahead.c (freadahead): Likewise.
41418         * lib/freading.c (freading): Likewise.
41419         * lib/freadptr.c (freadptr): Likewise.
41420         * lib/freadseek.c (freadptrinc): Likewise.
41421         * lib/fseeko.c (fseeko): Likewise.
41422         * lib/fseterr.c (fseterr): Likewise.
41423         * lib/fwritable.c (fwritable): Likewise.
41424         * lib/fwriting.c (fwriting): Likewise.
41425
41426 2008-04-26  Bruno Haible  <bruno@clisp.org>
41427
41428         * lib/stdio-impl.h: New file.
41429         * lib/fbufmode.c: Include stdio-impl.h.
41430         (fbufmode): Use fp_, remove redundant #defines.
41431         * lib/fflush.c: Include stdio-impl.h.
41432         (clear_ungetc_buffer): Remove redundant #defines.
41433         * lib/fpurge.c: Include stdio-impl.h.
41434         (fpurge): Remove redundant #defines.
41435         * lib/freadable.c: Include stdio-impl.h.
41436         (freadable): Remove redundant #defines.
41437         * lib/freadahead.c: Include stdio-impl.h.
41438         (freadahead): Remove redundant #defines.
41439         * lib/freading.c: Include stdio-impl.h.
41440         (freading): Remove redundant #defines.
41441         * lib/freadptr.c: Include stdio-impl.h.
41442         (freadptr): Remove redundant #defines.
41443         * lib/freadseek.c: Include stdio-impl.h.
41444         (freadptrinc): Remove redundant #defines.
41445         * lib/fseeko.c: Include stdio-impl.h.
41446         (rpl_fseeko): Remove redundant #defines.
41447         * lib/fseterr.c: Include stdio-impl.h.
41448         (fseterr): Remove redundant #defines.
41449         * lib/fwritable.c: Include stdio-impl.h.
41450         (fwritable: Remove redundant #defines.
41451         * lib/fwriting.c: Include stdio-impl.h.
41452         (fwriting): Remove redundant #defines.
41453         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41454         * modules/fflush (Files): Likewise.
41455         * modules/fpurge (Files): Likewise.
41456         * modules/freadable (Files): Likewise.
41457         * modules/freadahead (Files): Likewise.
41458         * modules/freading (Files): Likewise.
41459         * modules/freadptr (Files): Likewise.
41460         * modules/freadseek (Files): Likewise.
41461         * modules/fseeko (Files): Likewise.
41462         * modules/fseterr (Files): Likewise.
41463         * modules/fwritable (Files): Likewise.
41464         * modules/fwriting (Files): Likewise.
41465
41466 2008-04-26  Bruno Haible  <bruno@clisp.org>
41467
41468         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41469         restore_seek_optimization, update_fpos_cache): New functions, extracted
41470         from rpl_fflush.
41471         (rpl_fflush): Use them.
41472         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41473         (gl_REPLACE_FFLUSH): Use it.
41474
41475 2008-04-26  Bruno Haible  <bruno@clisp.org>
41476
41477         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41478         on Solaris.
41479         * tests/test-xstrtoimax.sh: Likewise.
41480         * tests/test-xstrtoumax.sh: Likewise.
41481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41482
41483 2008-04-26  Bruno Haible  <bruno@clisp.org>
41484
41485         * modules/memchr-tests: New file.
41486         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41487
41488 2008-04-26  Eric Blake  <ebb9@byu.net>
41489             Bruno Haible  <bruno@clisp.org>
41490
41491         * lib/memchr.c: Include intprops.h.
41492         (__memchr): Optimize parallel detection of matching bytes. Rename local
41493         variables. Add explanatory comments.
41494
41495 2008-04-26  Bruno Haible  <bruno@clisp.org>
41496
41497         Fix module 'memchr', broken since 2000-10-28.
41498         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41499
41500 2008-04-26  Bruno Haible  <bruno@clisp.org>
41501
41502         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41503         comments.
41504
41505 2008-04-25  Eric Blake  <ebb9@byu.net>
41506
41507         Use native fstatat on cygwin 1.7.0.
41508         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41509         first.
41510
41511 2008-04-23  Eric Blake  <ebb9@byu.net>
41512
41513         Improve memchr2 performance.
41514         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41515         NUL bytes.
41516         * modules/memchr2 (Depends-on): Use intprops.h.
41517
41518 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41519
41520         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41521         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41522         <blp@cs.stanford.edu>.
41523
41524 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41525
41526         * lib/arpa_inet.in.h: New file.
41527
41528         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41529         (Makefile.am): Sed in substitute header file.
41530
41531         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41532         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41533
41534         * modules/inet_ntop (configure.ac): Use
41535         gl_ARPA_INET_MODULE_INDICATOR.
41536
41537         * modules/inet_pton (configure.ac): Use
41538         gl_ARPA_INET_MODULE_INDICATOR.
41539
41540 2008-04-22  Jim Meyering  <meyering@redhat.com>
41541
41542         * modules/verify (License): Re-license as LGPLv2+.
41543
41544 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41545
41546         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41547         parameter to void* as per POSIX standard (MinGW uses char*).
41548
41549 2008-04-21  Bruno Haible  <bruno@clisp.org>
41550
41551         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41552         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41553         Define to replacements if REPLACE_ISWCNTRL is 1.
41554         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41555         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41556         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41557         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41558         what it fixes.
41559         * doc/posix-functions/iswalpha.texi: Likewise.
41560         * doc/posix-functions/iswblank.texi: Likewise.
41561         * doc/posix-functions/iswcntrl.texi: Likewise.
41562         * doc/posix-functions/iswdigit.texi: Likewise.
41563         * doc/posix-functions/iswgraph.texi: Likewise.
41564         * doc/posix-functions/iswlower.texi: Likewise.
41565         * doc/posix-functions/iswprint.texi: Likewise.
41566         * doc/posix-functions/iswpunct.texi: Likewise.
41567         * doc/posix-functions/iswspace.texi: Likewise.
41568         * doc/posix-functions/iswupper.texi: Likewise.
41569         * doc/posix-functions/iswxdigit.texi: Likewise.
41570         Reported by Alain Guibert.
41571
41572 2008-04-21  Bruno Haible  <bruno@clisp.org>
41573
41574         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41575         Patch by Alain Guibert.
41576
41577 2008-04-21  Bruno Haible  <bruno@clisp.org>
41578
41579         Fix test failures on mingw.
41580         * tests/test-xstrtol.c (print_no_progname): New function.
41581         (main): Install it in error_print_progname hook.
41582         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41583         * tests/test-xstrtoimax.sh: Likewise.
41584         * tests/test-xstrtoumax.sh: Likewise.
41585
41586 2008-04-21  Bruno Haible  <bruno@clisp.org>
41587
41588         Fix test failure on mingw.
41589         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41590
41591 2008-04-21  Bruno Haible  <bruno@clisp.org>
41592
41593         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41594         Actually assign a value.
41595
41596 2008-04-20  Bruno Haible  <bruno@clisp.org>
41597
41598         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41599         take 2.
41600         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41601         'canonicalize-lgpl' module is also used.
41602         * lib/canonicalize-lgpl.c: Undo last change.
41603         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41604
41605 2008-04-20  Bruno Haible  <bruno@clisp.org>
41606
41607         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41608         config.h. Provide _mkdir based fallback for mingw.
41609         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41610         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41611         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41612         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41613         rather than defining mkdir in config.h.
41614         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41615         (gl_SYS_STAT_H_DEFAULTS): New macro.
41616         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41617         HAVE_IO_H any more.
41618         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41619         HAVE_DECL_MKDIR and HAVE_IO_H.
41620
41621 2008-04-20  Bruno Haible  <bruno@clisp.org>
41622
41623         * lib/isapipe.c: Port to native Windows platforms.
41624
41625 2008-04-20  Bruno Haible  <bruno@clisp.org>
41626
41627         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41628
41629 2008-04-21  Eric Blake  <ebb9@byu.net>
41630
41631         Work around preprocessors that don't handle UINTMAX_MAX.
41632         * lib/memchr2.c (memchr2): Avoid embedded #if.
41633         Reported by Alain Guibert, fix suggested by Bruno Haible.
41634
41635 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41636
41637         * doc/posix-functions/strftime.texi (strftime): Explain better
41638         Windows incompatibility.  Suggested by Micah Cowan
41639         <micah@cowan.name>.
41640
41641 2008-04-20  Bruno Haible  <bruno@clisp.org>
41642
41643         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41644         unistr/u8-mblen.
41645
41646 2008-04-20  Bruno Haible  <bruno@clisp.org>
41647
41648         Fix test failure on platforms with non-GNU iconv.
41649         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41650         (U_TO_U8): Use it, rather than u16_to_u8.
41651         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41652         units at the end of the input string.
41653         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41654
41655 2008-04-20  Bruno Haible  <bruno@clisp.org>
41656
41657         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41658         when the resulting length is 0.
41659         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41660
41661 2008-04-20  Bruno Haible  <bruno@clisp.org>
41662
41663         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41664         works.
41665         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41666
41667 2008-04-20  Bruno Haible  <bruno@clisp.org>
41668
41669         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41670         * modules/tsearch-tests (configure.ac): Test for initstate function.
41671
41672 2008-04-20  Bruno Haible  <bruno@clisp.org>
41673
41674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41675         for nlink_t if missing.
41676         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41677
41678 2008-04-19  Bruno Haible  <bruno@clisp.org>
41679
41680         Work around snprintf bug on Linux libc5.
41681         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41682         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41683         gl_SNPRINTF_SIZE1.
41684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41685         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41686         that test failed.
41687         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41688         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41689         * modules/snprintf (Files): Add m4/printf.m4.
41690         * modules/vsnprintf (Files): Likewise.
41691         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41692         * doc/posix-functions/vsnprintf.texi: Likewise.
41693
41694 2008-04-19  Bruno Haible  <bruno@clisp.org>
41695
41696         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41697         from 0.0058 to less than 10^-7.
41698
41699 2008-04-19  Bruno Haible  <bruno@clisp.org>
41700
41701         Fix rounding when a precision is given.
41702         * lib/vasnprintf.c (is_borderline): New function.
41703         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41704         9...9x.
41705         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41706         %e, %g.
41707         * tests/test-vasprintf-posix.c (test_function): Likewise.
41708         * tests/test-snprintf-posix.h (test_function): Likewise.
41709         * tests/test-sprintf-posix.h (test_function): Likewise.
41710         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41711         * tests/test-printf-posix.h (test_function): Likewise.
41712         * tests/test-printf-posix.output: Update.
41713         Reported by John Darrington <john@darrington.wattle.id.au> via
41714         Ben Pfaff <blp@cs.stanford.edu>.
41715
41716 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41717
41718         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41719         Suggested by Bruno Haible <bruno@clisp.org>.
41720
41721 2008-04-17  Bruno Haible  <bruno@clisp.org>
41722
41723         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41724         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41725         implementation.
41726         Patch by Bruce Merry <bmerry@gmail.com>.
41727
41728 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41729
41730         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41731         doesn't work under Windows.
41732
41733 2008-04-16  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41736         New macros.
41737         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41738         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41739         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41740         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41741         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41742         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41743         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41744         macros.
41745         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41746         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41747         Northern Sotho, Uighur.
41748
41749 2008-04-16  Bruno Haible  <bruno@clisp.org>
41750
41751         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41752         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41753         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41754         Reported by Daniel Bergström <daniel@octocode.com>.
41755
41756 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41757             Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41760         function.
41761         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41762         New functions, mostly extracted from gl_locale_name_default.
41763         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41764
41765 2008-04-16  Eric Blake  <ebb9@byu.net>
41766
41767         Adjust strtod detection to catch glibc 2.7 bug.
41768         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41769         Reported by John Gatewood Ham.
41770
41771 2008-04-16  Bruno Haible  <bruno@clisp.org>
41772
41773         Add tentative support for Linux libc5.
41774         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41775         * lib/fpurge.c (fpurge): Likewise.
41776         * lib/freadable.c (freadable): Likewise.
41777         * lib/freadahead.c (freadahead): Likewise.
41778         * lib/freading.c (freading): Likewise.
41779         * lib/freadptr.c (freadptr): Likewise.
41780         * lib/freadseek.c (freadptrinc): Likewise.
41781         * lib/fseeko.c (rpl_fseeko): Likewise.
41782         * lib/fseterr.c (fseterr): Likewise.
41783         * lib/fwritable.c (fwritable): Likewise.
41784         * lib/fwriting.c (fwriting): Likewise.
41785         Reported by Alain Guibert <alguibert+bts@free.fr>.
41786
41787 2008-04-15  Bruno Haible  <bruno@clisp.org>
41788
41789         * modules/mathl (configure.ac): Define module indicator.
41790
41791 2008-04-15  Bruno Haible  <bruno@clisp.org>
41792
41793         * lib/logl.c (logl): Remove unused variables.
41794
41795 2008-04-15  Bruno Haible  <bruno@clisp.org>
41796
41797         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41798         fails.
41799
41800 2008-04-15  Bruno Haible  <bruno@clisp.org>
41801
41802         * lib/trim.c (trim2): Fix argument of isspace() macro.
41803
41804 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41805
41806         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41807         to 0.
41808         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41809
41810 2008-04-14  Bruno Haible  <bruno@clisp.org>
41811
41812         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41813         AC_LANG_PROGRAM argument.
41814         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41815         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41817         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41818         * m4/math_h.m4 (gl_MATH_H): Likewise.
41819         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41820         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41821         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41822         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41823         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41824         * m4/regex.m4 (gl_REGEX): Likewise.
41825         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41826         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41827         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41828         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41829         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41830         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41831         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41832         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41833
41834 2008-04-14  Jim Meyering  <meyering@redhat.com>
41835
41836         test-strtod: fix typos: s/abs/fabs/
41837         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41838
41839 2008-04-13  Bruno Haible  <bruno@clisp.org>
41840
41841         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41842         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41843         module is also used and while not building the reloc-wrapper.
41844
41845 2008-04-13  Bruno Haible  <bruno@clisp.org>
41846
41847         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41848
41849 2008-04-13  Bruno Haible  <bruno@clisp.org>
41850
41851         Fix AIX compilation failure introduced on 2008-04-02.
41852         * tests/test-frexp.c (exp): Undefine before redefining.
41853         * tests/test-frexpl.c (exp): Likewise.
41854
41855 2008-04-13  Bruno Haible  <bruno@clisp.org>
41856
41857         Work around a HP-UX stdio bug.
41858         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41859         * tests/test-ftello.c (main): Likewise.
41860         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41861         * doc/posix-functions/ftello.texi: Likewise.
41862
41863 2008-04-13  Bruno Haible  <bruno@clisp.org>
41864
41865         Make test-signbit pass on HP-UX/hppa.
41866         * tests/test-signbit.c (minus_zerol): New variable.
41867         (test_signbitl): Use it.
41868
41869 2008-04-13  Bruno Haible  <bruno@clisp.org>
41870
41871         Make truncl work on OSF/1 4.0.
41872         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41873         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41874         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41876         HAVE_DECL_TRUNCL.
41877         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41878         HAVE_DECL_TRUNCL.
41879         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41880
41881 2008-04-13  Bruno Haible  <bruno@clisp.org>
41882
41883         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41884
41885 2008-04-13  Bruno Haible  <bruno@clisp.org>
41886
41887         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41888         expression, so as to avoid HP-UX 11 cc compiler bug.
41889
41890 2008-04-13  Bruno Haible  <bruno@clisp.org>
41891
41892         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41893
41894 2008-04-13  Bruno Haible  <bruno@clisp.org>
41895
41896         * lib/git-merge-changelog.c: Remove empty declaration outside of
41897         functions.
41898
41899 2008-04-13  Bruno Haible  <bruno@clisp.org>
41900
41901         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41902
41903 2008-04-13  Bruno Haible  <bruno@clisp.org>
41904
41905         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41906         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41907         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41908         also if it exists but lacks definitions of the SHUT_* macros.
41909         * modules/sys_socket (Description): Update.
41910         Reported by Elbert Pol <e.pol@chello.nl>.
41911
41912 2008-04-13  Bruno Haible  <bruno@clisp.org>
41913
41914         * lib/localcharset.c (OS2): Don't redefine if already defined.
41915         Reported by Elbert Pol <e.pol@chello.nl>.
41916
41917 2008-04-13  Bruno Haible  <bruno@clisp.org>
41918
41919         * lib/binary-io.h [__EMX__]: Include <io.h>.
41920         Reported by Elbert Pol <e.pol@chello.nl>.
41921
41922 2008-04-12  Bruno Haible  <bruno@clisp.org>
41923
41924         * lib/fpucw.h: Enable the definitions also for x86_64.
41925         Needed for NetBSD/x86_64.
41926         Reported by Thomas Klausner <tk@giga.or.at>.
41927
41928 2008-04-12  Bruno Haible  <bruno@clisp.org>
41929
41930         * tests/test-strtod.c: Include isnand.h.
41931         (main): Use isnand instead of isnan.
41932         Reported by Jim Meyering.
41933
41934 2008-04-12  Bruno Haible  <bruno@clisp.org>
41935
41936         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41937         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41938
41939 2008-04-12  Jim Meyering  <meyering@redhat.com>
41940
41941         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41942
41943 2008-04-12  Bruno Haible  <bruno@clisp.org>
41944
41945         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41946         Reported by Elbert Pol <e.pol@chello.nl>.
41947
41948 2008-04-12  Eric Blake  <ebb9@byu.net>
41949
41950         Work around Solaris 10 math.h bug.
41951         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41952         (gl_MATH_H_DEFAULTS): Set up default.
41953         * modules/math (Makefile.am): Replace new indicators.
41954         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41955         * tests/test-math.c (main): Test this.
41956         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41957         * doc/posix-headers/math.texi (math.h): Mention bug.
41958         Reported by Nelson H. F. Beebe and Jim Meyering.
41959
41960 2008-04-11  Bruno Haible  <bruno@clisp.org>
41961
41962         Adapt to future versions of Apple GCC.
41963         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41964         Reported by Peter O'Gorman <peter@pogma.com>.
41965
41966 2008-04-11  Bruno Haible  <bruno@clisp.org>
41967
41968         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41969
41970 2008-04-11  Bruno Haible  <bruno@clisp.org>
41971
41972         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41973
41974         * modules/getaddrinfo-tests (Makefile.am): Define
41975         test_getaddrinfo_LDADD.
41976
41977 2008-04-11  Bruno Haible  <bruno@clisp.org>
41978
41979         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41980         (init): Fix syntax error.
41981         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41982         is declared.
41983
41984 2008-04-11  Bruno Haible  <bruno@clisp.org>
41985
41986         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41987         * modules/glob (Depends-on): Add stdbool.
41988
41989 2008-04-11  Bruno Haible  <bruno@clisp.org>
41990
41991         * lib/trim.c: Include <string.h>.
41992
41993 2008-04-11  Eric Blake  <ebb9@byu.net>
41994
41995         Avoid compile failure on OS/2.
41996         * lib/regex_internal.h (internal_function): Disable optimization
41997         on OS/2 (__EMX__), where it caused compiler error.
41998         Reported by Elbert Pol.
41999
42000 2008-04-11  Bruno Haible  <bruno@clisp.org>
42001
42002         Flush the standard error stream before aborting. Needed on mingw.
42003         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42004         * tests/test-array_list.c (ASSERT): Likewise.
42005         * tests/test-array_oset.c (ASSERT): Likewise.
42006         * tests/test-avltree_list.c (ASSERT): Likewise.
42007         * tests/test-avltree_oset.c (ASSERT): Likewise.
42008         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42009         * tests/test-binary-io.c (ASSERT): Likewise.
42010         * tests/test-byteswap.c (ASSERT): Likewise.
42011         * tests/test-c-ctype.c (ASSERT): Likewise.
42012         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42013         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42014         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42015         * tests/test-c-strstr.c (ASSERT): Likewise.
42016         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42017         * tests/test-canonicalize.c (ASSERT): Likewise.
42018         * tests/test-carray_list.c (ASSERT): Likewise.
42019         * tests/test-ceilf1.c (ASSERT): Likewise.
42020         * tests/test-ceilf2.c (ASSERT): Likewise.
42021         * tests/test-ceill.c (ASSERT): Likewise.
42022         * tests/test-count-one-bits.c (ASSERT): Likewise.
42023         * tests/test-fbufmode.c (ASSERT): Likewise.
42024         * tests/test-fflush2.c (ASSERT): Likewise.
42025         * tests/test-floorf1.c (ASSERT): Likewise.
42026         * tests/test-floorf2.c (ASSERT): Likewise.
42027         * tests/test-floorl.c (ASSERT): Likewise.
42028         * tests/test-fopen.c (ASSERT): Likewise.
42029         * tests/test-fpending.c (ASSERT): Likewise.
42030         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42031         * tests/test-fpurge.c (ASSERT): Likewise.
42032         * tests/test-freadable.c (ASSERT): Likewise.
42033         * tests/test-freadahead.c (ASSERT): Likewise.
42034         * tests/test-freading.c (ASSERT): Likewise.
42035         * tests/test-freadptr.c (ASSERT): Likewise.
42036         * tests/test-freadptr2.c (ASSERT): Likewise.
42037         * tests/test-freadseek.c (ASSERT): Likewise.
42038         * tests/test-freopen.c (ASSERT): Likewise.
42039         * tests/test-frexp.c (ASSERT): Likewise.
42040         * tests/test-frexpl.c (ASSERT): Likewise.
42041         * tests/test-fseek.c (ASSERT): Likewise.
42042         * tests/test-fseeko.c (ASSERT): Likewise.
42043         * tests/test-fstrcmp.c (ASSERT): Likewise.
42044         * tests/test-ftell.c (ASSERT): Likewise.
42045         * tests/test-ftello.c (ASSERT): Likewise.
42046         * tests/test-func.c (ASSERT): Likewise.
42047         * tests/test-fwritable.c (ASSERT): Likewise.
42048         * tests/test-fwriting.c (ASSERT): Likewise.
42049         * tests/test-getdelim.c (ASSERT): Likewise.
42050         * tests/test-getline.c (ASSERT): Likewise.
42051         * tests/test-i-ring.c (ASSERT): Likewise.
42052         * tests/test-iconv-utf.c (ASSERT): Likewise.
42053         * tests/test-iconv.c (ASSERT): Likewise.
42054         * tests/test-isfinite.c (ASSERT): Likewise.
42055         * tests/test-isnand.c (ASSERT): Likewise.
42056         * tests/test-isnanf.c (ASSERT): Likewise.
42057         * tests/test-isnanl.h (ASSERT): Likewise.
42058         * tests/test-ldexpl.c (ASSERT): Likewise.
42059         * tests/test-linked_list.c (ASSERT): Likewise.
42060         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42061         * tests/test-localename.c (ASSERT): Likewise.
42062         * tests/test-lseek.c (ASSERT): Likewise.
42063         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42064         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42065         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42066         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42067         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42068         * tests/test-mbschr.c (ASSERT): Likewise.
42069         * tests/test-mbscspn.c (ASSERT): Likewise.
42070         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42071         * tests/test-mbspbrk.c (ASSERT): Likewise.
42072         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42073         * tests/test-mbsrchr.c (ASSERT): Likewise.
42074         * tests/test-mbsspn.c (ASSERT): Likewise.
42075         * tests/test-mbsstr1.c (ASSERT): Likewise.
42076         * tests/test-mbsstr2.c (ASSERT): Likewise.
42077         * tests/test-mbsstr3.c (ASSERT): Likewise.
42078         * tests/test-memchr2.c (ASSERT): Likewise.
42079         * tests/test-memmem.c (ASSERT): Likewise.
42080         * tests/test-open.c (ASSERT): Likewise.
42081         * tests/test-printf-frexp.c (ASSERT): Likewise.
42082         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42083         * tests/test-printf-posix.c (ASSERT): Likewise.
42084         * tests/test-quotearg.c (ASSERT): Likewise.
42085         * tests/test-rbtree_list.c (ASSERT): Likewise.
42086         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42087         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42088         * tests/test-round1.c (ASSERT): Likewise.
42089         * tests/test-roundf1.c (ASSERT): Likewise.
42090         * tests/test-roundl.c (ASSERT): Likewise.
42091         * tests/test-signbit.c (ASSERT): Likewise.
42092         * tests/test-sleep.c (ASSERT): Likewise.
42093         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42094         * tests/test-snprintf.c (ASSERT): Likewise.
42095         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42096         * tests/test-stat-time.c (ASSERT): Likewise.
42097         * tests/test-strcasestr.c (ASSERT): Likewise.
42098         * tests/test-strerror.c (ASSERT): Likewise.
42099         * tests/test-striconv.c (ASSERT): Likewise.
42100         * tests/test-striconveh.c (ASSERT): Likewise.
42101         * tests/test-striconveha.c (ASSERT): Likewise.
42102         * tests/test-strsignal.c (ASSERT): Likewise.
42103         * tests/test-strstr.c (ASSERT): Likewise.
42104         * tests/test-strtod.c (ASSERT): Likewise.
42105         * tests/test-trunc1.c (ASSERT): Likewise.
42106         * tests/test-trunc2.c (ASSERT): Likewise.
42107         * tests/test-truncf1.c (ASSERT): Likewise.
42108         * tests/test-truncf2.c (ASSERT): Likewise.
42109         * tests/test-truncl.c (ASSERT): Likewise.
42110         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42111         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42112         * tests/test-vasnprintf.c (ASSERT): Likewise.
42113         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42114         * tests/test-vasprintf.c (ASSERT): Likewise.
42115         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42116         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42117         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42118         * tests/test-vsnprintf.c (ASSERT): Likewise.
42119         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42120         * tests/test-wcwidth.c (ASSERT): Likewise.
42121         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42122         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42123         * tests/test-xvasprintf.c (ASSERT): Likewise.
42124         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42125         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42126         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42127         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42128         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42129         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42130         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42131         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42132         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42133         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42134         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42135         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42136         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42137         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42138         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42139         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42140         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42141         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42142         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42143         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42144         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42145         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42146         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42147         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42148         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42149         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42150         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42151         * tests/unictype/test-combining.c (ASSERT): Likewise.
42152         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42153         * tests/unictype/test-digit.c (ASSERT): Likewise.
42154         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42155         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42156         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42157         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42158         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42159         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42160         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42161         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42162         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42163         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42164         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42165         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42166         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42167         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42168         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42169         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42170         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42171         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42172         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42173         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42174         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42175         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42176         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42177         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42178         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42179         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42180         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42181         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42182         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42183         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42184         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42185         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42186         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42187         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42188         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42189         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42190         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42191         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42192         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42193         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42194         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42195         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42196         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42197         Reported by Eric Blake.
42198
42199 2008-04-11  Bruno Haible  <bruno@clisp.org>
42200
42201         * lib/wchar.in.h: Tweak comment.
42202
42203 2008-04-11  Bruno Haible  <bruno@clisp.org>
42204
42205         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42206         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42207         gl_COMMON.
42208         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42209
42210 2008-04-11  Bruno Haible  <bruno@clisp.org>
42211
42212         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42213
42214 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42215
42216         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42217         of attempting to use non-existing /dev/*random.  Based on patch
42218         from Adam Strzelecki <ono@java.pl> in
42219         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42220
42221 2008-04-08  Bruno Haible  <bruno@clisp.org>
42222
42223         Add tentative support for emx+gcc.
42224         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42225         * lib/fpurge.c (fpurge): Likewise.
42226         * lib/freadable.c (freadable): Likewise.
42227         * lib/freadahead.c (freadahead): Likewise.
42228         * lib/freading.c (freading): Likewise.
42229         * lib/freadptr.c (freadptr): Likewise.
42230         * lib/freadseek.c (freadptrinc): Likewise.
42231         * lib/fseeko.c (rpl_fseeko): Likewise.
42232         * lib/fseterr.c (fseterr): Likewise.
42233         * lib/fwritable.c (fwritable): Likewise.
42234         * lib/fwriting.c (fwriting): Likewise.
42235         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42236
42237 2008-04-09  Eric Blake  <ebb9@byu.net>
42238
42239         Avoid some autoconf warnings.
42240         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42241         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42242         * m4/afs.m4 (gl_AFS): Likewise.
42243         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42244         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42245         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42246         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42247         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42248         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42249         (AC_CHECK_DECLS_ONCE): Likewise.
42250         Rename file...
42251         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42252         gnulib-tool requires autoconf 2.59 or better.
42253         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42254
42255 2008-04-08  Eric Blake  <ebb9@byu.net>
42256
42257         Use 'git describe --match' if present (added in git 1.5.5).
42258         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42259         if possible.
42260
42261 2008-04-08  Bruno Haible  <bruno@clisp.org>
42262
42263         Add tentative support for OpenServer.
42264         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42265         _ptr, _cnt.
42266         * lib/fpurge.c (fpurge): Likewise.
42267         * lib/freadable.c (freadable): Likewise.
42268         * lib/freadahead.c (freadahead): Likewise.
42269         * lib/freading.c (freading): Likewise.
42270         * lib/freadptr.c (freadptr): Likewise.
42271         * lib/freadseek.c (freadptrinc): Likewise.
42272         * lib/fseeko.c (rpl_fseeko): Likewise.
42273         * lib/fseterr.c (fseterr): Likewise.
42274         * lib/fwritable.c (fwritable): Likewise.
42275         * lib/fwriting.c (fwriting): Likewise.
42276         Reported by Roger Cornelius <rac@tenzing.org> and
42277         Brian K. White <brian@aljex.com>.
42278
42279 2008-04-06  Jim Meyering  <meyering@redhat.com>
42280
42281         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42282
42283 2008-04-06  Bruno Haible  <bruno@clisp.org>
42284
42285         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42286         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42287         * tests/test-printf-posix.sh: Likewise.
42288         * tests/test-vfprintf-posix.sh: Likewise.
42289         * tests/test-vprintf-posix.sh: Likewise.
42290         * tests/test-xprintf-posix.sh: Likewise.
42291
42292 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42293
42294         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42295         hide error from 'ls', needed on OS/2.
42296         Report by Elbert Pol <elbert.pol@gmail.com>.
42297
42298 2008-04-04  Eric Blake  <ebb9@byu.net>
42299
42300         Make test-fseeko.c failures meaningful.
42301         * tests/test-fseeko.c: Print line number on failure.
42302         * tests/test-fseek.c: Likewise.
42303         Reported by Nelson H. F. Beebe.
42304
42305         Improve strtod bug detection check.
42306         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42307         required for Solaris 10.
42308         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42309
42310 2008-04-04  Bruno Haible  <bruno@clisp.org>
42311
42312         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42313         by m4/setenv.m4.
42314
42315 2008-04-03  Eric Blake  <ebb9@byu.net>
42316
42317         Ensure sane .version contents.
42318         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42319         version string.
42320         * build-aux/git-version-gen: Improve documentation.
42321
42322         Make GNU make output nicer.
42323         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42324         MAKECMDGOALS to enforce message for all command line targets.  Set
42325         srcdir for use in maint.mk.
42326
42327         Another maintainer tweak.
42328         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42329         a target that regenerates version.
42330
42331 2008-04-03  Jim Meyering  <meyering@redhat.com>
42332
42333         vc-list-files: don't cause coreutils "make po-check" failure
42334         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42335
42336 2008-04-03  Eric Blake  <ebb9@byu.net>
42337
42338         Allow VPATH usage of vc-list-files.
42339         * build-aux/vc-list-files (scriptversion): Add timestamp.
42340         (options): Add --help, --version, -C.
42341         (CVS): Support installed cvsu.
42342
42343 2008-04-02  Bruno Haible  <bruno@clisp.org>
42344
42345         Avoid some "statement with no effect" warnings from gcc.
42346         * tests/test-wctype.c (main): Explicitly ignore unused values.
42347         Reported by Jim Meyering.
42348
42349 2008-04-02  Jim Meyering  <meyering@redhat.com>
42350
42351         Avoid some warnings from "gcc -Wshadow".
42352         * tests/test-frexp.c (exp): Define to a different identifier.
42353         * tests/test-frexpl.c (exp): Likewise.
42354
42355 2008-04-03  Jim Meyering  <meyering@redhat.com>
42356
42357         bootstrap: remove dangling *.[ch] symlinks from lib
42358         * build-aux/bootstrap [dangling symlink removal]: Move find's
42359         -depth option to precede all others, to avoid a warning.
42360         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42361
42362 2008-04-02  Bruno Haible  <bruno@clisp.org>
42363
42364         Avoid some warnings from "gcc -Wshadow".
42365         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42366         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42367         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42368         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42369         Reported by Jim Meyering.
42370
42371 2008-04-01  Bruno Haible  <bruno@clisp.org>
42372
42373         Fix test to work on IRIX 6.5 with cc.
42374         * tests/test-math.c (numeric_equal): New function.
42375         (main): Use it.
42376
42377 2008-04-01  Bruno Haible  <bruno@clisp.org>
42378
42379         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42380
42381 2008-04-01  Bruno Haible  <bruno@clisp.org>
42382
42383         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42384         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42385         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42386         (Depends-on): Remove math.
42387
42388         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42389         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42390         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42391         (Depends-on): Remove math.
42392
42393         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42394         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42395         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42396         (Depends-on): Remove math.
42397         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42398         (Depends-on): Remove math.
42399
42400         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42401         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42402         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42403         (Depends-on): Remove math.
42404         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42405         (Depends-on): Remove math.
42406
42407         * tests/test-round1.c: Include nan.h.
42408         (main): Use NaNd instead of NAN.
42409         * modules/round-tests (Files): Add tests/nan.h.
42410
42411         * tests/test-trunc1.c: Include nan.h.
42412         (main): Use NaNd instead of NAN.
42413         * modules/trunc-tests (Files): Add tests/nan.h.
42414
42415         * tests/test-roundf1.c: Include nan.h.
42416         (main): Use NaNf instead of NAN.
42417         * modules/roundf-tests (Files): Add tests/nan.h.
42418
42419         * tests/test-truncf1.c: Include nan.h.
42420         (main): Use NaNf instead of NAN.
42421         * modules/truncf-tests (Files): Add tests/nan.h.
42422
42423         * tests/test-ceilf1.c: Include nan.h.
42424         (main): Use NaNf instead of NAN.
42425         * modules/ceilf-tests (Files): Add tests/nan.h.
42426
42427         * tests/test-floorf1.c: Include nan.h.
42428         (main): Use NaNf instead of NAN.
42429         * modules/floorf-tests (Files): Add tests/nan.h.
42430
42431         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42432         (main): Use NaNf instead of NAN.
42433         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42434
42435         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42436         (main): Use NaNd instead of NAN.
42437         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42438
42439         * tests/test-frexp.c: Include nan.h.
42440         (main): Use NaNd instead of NAN.
42441         * modules/frexp-tests (Files): Add tests/nan.h.
42442
42443         * lib/isnan.c: Don't include <math.h>.
42444         (FUNC): Don't use NAN macro.
42445         * modules/isnand-nolibm (Depends-on): Remove math.
42446         * modules/isnanf-nolibm (Depends-on): Remove math.
42447         * modules/isnanl (Depends-on): Remove math.
42448         * modules/isnanl-nolibm (Depends-on): Remove math.
42449
42450         * tests/nan.h: New file.
42451
42452 2008-04-01  Eric Blake  <ebb9@byu.net>
42453
42454         Fix typos.
42455         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42456         values to be the right type.
42457
42458         For now, cater to gnulib strtod inaccuracies.
42459         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42460         fractional results.  While not as nice from a QoI perspective, it
42461         is a quicker patch than correctly implementing decimal to binary
42462         rounding.
42463
42464 2008-03-31  Eric Blake  <ebb9@byu.net>
42465
42466         Guarantee a definition of NAN.
42467         * lib/math.in.h (NAN): Define if missing.
42468         * tests/test-math.c (main): Test it.
42469         * doc/posix-headers/math.texi (math.h): Document this.
42470         * lib/isnan.c (rpl_isnand): Use it.
42471         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42472         * tests/test-floorf1.c (NaN): Likewise.
42473         * tests/test-frexp.c (NaN): Likewise.
42474         * tests/test-isnand.c (NaN): Likewise.
42475         * tests/test-isnanf.c (NaN): Likewise.
42476         * tests/test-round1.c (NaN): Likewise.
42477         * tests/test-roundf1.c (NaN): Likewise.
42478         * tests/test-snprintf-posix.h (NaN): Likewise.
42479         * tests/test-sprintf-posix.h (NaN): Likewise.
42480         * tests/test-trunc1.c (NaN): Likewise.
42481         * tests/test-truncf1.c (NaN): Likewise.
42482         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42483         * tests/test-vasprintf-posix.c (NaN): Likewise.
42484         * modules/isnand-nolibm (Depends-on): Add math.
42485         * modules/isnanf-nolibm (Depends-on): Likewise.
42486         * modules/isnanl (Depends-on): Likewise.
42487         * modules/isnanl-nolibm (Depends-on): Likewise.
42488         * modules/snprintf-posix-tests (Depends-on): Likewise.
42489         * modules/sprintf-posix-tests (Depends-on): Likewise.
42490         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42491         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42492         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42493         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42494
42495 2008-03-31  Bruno Haible  <bruno@clisp.org>
42496
42497         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42498         * doc/posix-functions/strtod.texi: Likewise.
42499
42500 2008-03-31  Bruno Haible  <bruno@clisp.org>
42501
42502         * tests/test-strtod.c (main): Don't use C99 syntax.
42503
42504 2008-03-31  Bruno Haible  <bruno@clisp.org>
42505
42506         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42507         Reported by Eric Blake.
42508
42509 2008-03-31  Jim Meyering  <meyering@redhat.com>
42510
42511         Don't compare actual signbit return values.
42512         * tests/test-strtod.c (main): Rather, compare only their
42513         zero/non-zero nature.
42514
42515 2008-03-31  Eric Blake  <ebb9@byu.net>
42516
42517         More strtod documentation.
42518         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42519         failures as distinct bugs.
42520
42521 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42522
42523         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42524         Problem reported by Erik Benada in
42525         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42526
42527 2008-03-30  Bruno Haible  <bruno@clisp.org>
42528
42529         * tests/test-strtod.c: Add comments about which assertion fails on which
42530         platform.
42531         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42532
42533 2008-03-30  Eric Blake  <ebb9@byu.net>
42534
42535         Test signbit behavior on zeros.
42536         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42537         (test_signbitd, test_signbitl): Likewise.
42538
42539         More strtod touchups.
42540         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42541         sign of negative underflow, for now.  Use .5, not .1.
42542         * doc/posix-functions/strtod.texi (strtod): Mention these
42543         limitations.
42544         Reported by Jim Meyering.
42545
42546 2008-03-30  Bruno Haible  <bruno@clisp.org>
42547
42548         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42549         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42550
42551 2008-03-30  Bruno Haible  <bruno@clisp.org>
42552
42553         Avoid failure when attempting to return empty iconv results on some
42554         platforms.
42555         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42556         allocation, don't report ENOMEM when the resulting string is empty.
42557
42558 2008-03-30  Bruno Haible  <bruno@clisp.org>
42559
42560         Fix buffer overrun.
42561         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42562         Don't consider the width for tmp_length. Check count against tmp_length
42563         before doing the padding. Ensure enough allocation during padding.
42564
42565 2008-03-30  Eric Blake  <ebb9@byu.net>
42566
42567         strtod touchups.
42568         * lib/strtod.c (strtod): Avoid compiler warnings.
42569         Reported by Jim Meyering.
42570
42571 2008-03-30  Bruno Haible  <bruno@clisp.org>
42572
42573         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42574         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42575         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42576         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42577         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42578         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42579         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42580         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42581
42582         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42583         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42584         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42585         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42586         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42587         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42588         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42589         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42590
42591         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42592         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42593         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42594         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42595         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42596         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42597         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42598         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42599
42600         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42601         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42602
42603         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42604         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42605
42606         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42607         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42608
42609         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42611         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42612
42613         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42615         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42616
42617         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42619         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42620
42621         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42622         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42623         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42624
42625         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42626         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42627         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42628         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42629         (Depends-on): Add EOVERFLOW.
42630         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42631         (Depends-on): Add EOVERFLOW.
42632         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42633         (Depends-on): Add EOVERFLOW.
42634         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42635         (Depends-on): Add EOVERFLOW.
42636         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42637         (Depends-on): Add EOVERFLOW.
42638         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42639         (Depends-on): Add EOVERFLOW.
42640         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42641         (Depends-on): Add EOVERFLOW.
42642         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42643         (Depends-on): Add EOVERFLOW.
42644
42645         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42646         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42647         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42648
42649         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42651         * modules/snprintf (Depends-on): Add EOVERFLOW.
42652
42653         * lib/poll.c (EOVERFLOW): Remove fallback.
42654         * modules/poll (Depends-on): Add EOVERFLOW.
42655
42656         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42657         * modules/getugroups (Depends-on): Add EOVERFLOW.
42658
42659         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42660         * modules/getdelim (Depends-on): Add EOVERFLOW.
42661
42662         * lib/ftell.c (EOVERFLOW): Remove fallback.
42663         * modules/ftell (Depends-on): Add EOVERFLOW.
42664
42665         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42667         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42668
42669         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42670
42671         * modules/EOVERFLOW-tests: New file.
42672         * tests/test-EOVERFLOW.c: New file.
42673
42674         * modules/EOVERFLOW: New file.
42675         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42676
42677 2008-03-30  Bruno Haible  <bruno@clisp.org>
42678
42679         Fix bug introduced on 2007-06-10.
42680         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42681         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42682
42683 2008-03-30  Bruno Haible  <bruno@clisp.org>
42684
42685         Improve freadseek's efficiency after ungetc.
42686         * lib/freadseek.c: Include freadahead.h.
42687         (freadptrinc): New function, extracted from freadseek.
42688         (freadseek): Use it in a loop. Use freadahead to determine the number
42689         of loop iterations.
42690         * modules/freadseek (Depends-on): Add freadahead.
42691         (configure.ac): Require AC_C_INLINE.
42692
42693 2008-03-30  Bruno Haible  <bruno@clisp.org>
42694
42695         * lib/freadseek.c (freadseek): Don't ignore the return value of
42696         freadptr.
42697
42698 2008-03-29  Eric Blake  <ebb9@byu.net>
42699
42700         Add hex float support.
42701         * modules/strtod (Depends-on): Add c-ctype.
42702         (Link): Mention POW_LIB.
42703         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42704         whitespace between 'e' and exponent.
42705         * tests/test-strtod.c (main): Enable hex float tests.
42706         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42707         now provides.
42708
42709         Document various strtod bugs, with some fixes.
42710         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42711         "-0x", "inf", "nan", and hex constants.
42712         * doc/posix-functions/atof.texi (atof): Likewise.
42713         * modules/stdlib (Makefile.am): Support strtod.
42714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42715         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42716         detect additional strtod bugs.
42717         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42718         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42719         bool where appropriate.  Parse 'inf' and 'nan'.
42720         * tests/test-strtod.c: New file.
42721         * modules/strtod (Depends-on): Add stdbool, stdlib.
42722         (configure.ac): Turn on module indicator.
42723         * modules/strtod-tests: New module.
42724
42725 2008-03-29  Eric Blake  <ebb9@byu.net>
42726
42727         Fix ftell on mingw.
42728         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42729         * modules/ftell-tests (Depends-on): Add binary-io.
42730         * modules/ftello-tests (Depends-on): Likewise.
42731         * tests/test-ftell.c (main): Enhance test to cover behavior after
42732         ungetc.  Enforce binary mode.
42733         * tests/test-ftello.c (main): Likewise.
42734
42735         Pass test-freadseek on cygwin.
42736         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42737         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42738         ungetc buffer.
42739
42740         * tests/test-fflush2.c (main): Fix typo.
42741
42742 2008-03-29  Bruno Haible  <bruno@clisp.org>
42743
42744         * tests/test-fflush2.c (main): Temporarily disable the contents of
42745         this test.
42746         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42747         Reported by Eric Blake.
42748
42749 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42750
42751         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42752         (GC_SHA224_DIGEST_SIZE): Add.
42753
42754         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42755         (gc_hash_digest_length): Likewise.
42756         (gc_hash_buffer): Likewise.
42757
42758 2008-03-25  Bruno Haible  <bruno@clisp.org>
42759
42760         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42761         detail which gettext release to use.
42762         Reported by Simon Josefsson.
42763
42764 2008-03-26  Jim Meyering  <meyering@redhat.com>
42765
42766         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42767         * modules/gnumakefile (clean-GNUmakefile): Also, use
42768         test ... && ... || : syntax rather than if-then ... fi.
42769
42770         gnumakefile: Don't double-quote-expand $(VPATH) value.
42771         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42772
42773 2008-03-24  Eric Blake  <ebb9@byu.net>
42774
42775         Alter GNUmakefile to install into top directory.
42776         * modules/maintainer-makefile: Split, and add dependency...
42777         * modules/gnumakefile: to this new module.
42778         * build-aux/GNUmakefile: Move...
42779         * top/GNUmakefile: ...here.
42780         * build-aux/maint.mk: Move...
42781         * top/maint.mk: ...here.
42782         * MODULES.html.sh (Support for maintaining...): Document new
42783         module.
42784
42785 2008-03-23  Bruno Haible  <bruno@clisp.org>
42786
42787         * gnulib-tool: New options --vc-files, --no-vc-files.
42788         (func_usage): Document them.
42789         (vc_files): New variable.
42790         (func_import): Consider vc_files.
42791         (func_create_testdir): Set vc_files to empty.
42792         Suggested by Jim Meyering and Karl Berry.
42793
42794 2008-03-23  Bruno Haible  <bruno@clisp.org>
42795
42796         Fix regex compilation error on HP-UX 11.
42797         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42798         * modules/regex (Files): Add m4/mbstate_t.m4.
42799         Reported by Ton Voon <ton.voon@altinity.com>.
42800
42801 2008-03-23  Bruno Haible  <bruno@clisp.org>
42802
42803         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42804
42805 2008-03-23  Eric Blake  <ebb9@byu.net>
42806             Bruno Haible  <bruno@clisp.org>
42807
42808         Install files from top/ in the destination directory.
42809         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42810         augmentation also for the files from top/.
42811         (func_import, func_create_testdir): Rewrite file names:
42812         top/filename -> filename.
42813
42814 2008-03-23  Bruno Haible  <bruno@clisp.org>
42815
42816         Tweak "gnulib --version" output.
42817         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42818
42819 2008-03-23  Bruno Haible  <bruno@clisp.org>
42820
42821         Tweak "gnulib --version" output.
42822         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42823         rather than contents of ChangeLog, when possible.
42824
42825 2008-03-21  Eric Blake  <ebb9@byu.net>
42826
42827         More --version tweaks.
42828         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42829         date of last ChangeLog entry.
42830
42831 2008-03-21  Jim Meyering  <meyering@redhat.com>
42832
42833         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42834
42835 2008-03-20  Eric Blake  <ebb9@byu.net>
42836
42837         VPATH fix.
42838         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42839
42840 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42841
42842         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42843         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42844
42845 2008-03-20  Eric Blake  <ebb9@byu.net>
42846
42847         Sync GNUmakefile with coreutils.
42848         * build-aux/GNUmakefile (have-Makefile): Rename...
42849         (_have-Makefile): ...to this, for namespace consideration.
42850         (GNUmakefile.cfg): Include, if present.
42851         (_autoreconf): Define a default.
42852         (_is-dist-target): New rule for rebuilds to pick up intra-release
42853         version.
42854         (maint-cfg.mk): Rename...
42855         (cfg.mk): ...to this.
42856
42857 2008-03-18  Jim Meyering  <meyering@redhat.com>
42858
42859         New script and module: mktempd
42860         * MODULES.html.sh (maint+release support): Add mktempd.
42861         * build-aux/mktempd: New file.
42862         * modules/mktempd: New file.
42863
42864 2008-03-15  Jim Meyering  <meyering@redhat.com>
42865
42866         Undo last change.
42867         * lib/sha1.c, lib/md5.c: 63 != ~63.
42868         Reported by Andreas Schwab.
42869
42870         sha1.c, md5.c: Hoist a redundant expression.
42871         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42872         "ctx->buflen" only once, before calling *_process_block.
42873         * lib/md5.c (md5_process_bytes): Likewise.
42874
42875 2008-03-14  Eric Blake  <ebb9@byu.net>
42876
42877         Bump copyright year in files generated by gnulib-tool.
42878         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42879         gnulib-tool, rather than hard-coding it.
42880
42881         Fix 'gnulib-tool --version' output to work with git.
42882         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42883         (startup): ...here.
42884         (func_version): Use it to invoke git-version-gen, rather than
42885         relying on CVS keyword expansion.  Modernize wording.
42886         (cvsdatestamp, last_checkin_date, version): Kill unused
42887         variables.
42888
42889 2008-03-12  Jim Meyering  <meyering@redhat.com>
42890
42891         Recognize optional cast of the argument to free.
42892         * build-aux/useless-if-before-free: Update regexps.
42893
42894         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42895
42896 2008-03-11  Bruno Haible  <bruno@clisp.org>
42897
42898         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42899         by a single package.
42900         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42901         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42902         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42903         Reported by Sam Steingold <sds@gnu.org>.
42904
42905 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42906
42907         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42908         repositories.
42909
42910 2008-03-11  Bruno Haible  <bruno@clisp.org>
42911
42912         Avoid conflicts between local macro definitions.
42913         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42914         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42915
42916 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42917             Bruno Haible  <bruno@clisp.org>
42918
42919         Make va_copy work with some version of xlc on AIX 5.1.
42920         * lib/stdarg.in.h: New file.
42921         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42922         On AIX, use a <stdarg.h> file substitute.
42923         * modules/stdarg (Files): Add lib/stdarg.in.h.
42924         (Depends-on): Add include_next.
42925         (Makefile.am): Build a stdarg.h substitute if requested.
42926         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42927
42928 2008-03-10  Bruno Haible  <bruno@clisp.org>
42929
42930         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42931         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42932         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42933
42934 2008-03-10  Bruno Haible  <bruno@clisp.org>
42935
42936         * modules/stdlib (Depends-on): Add include_next, remove
42937         absolute-header.
42938
42939 2008-03-09  Bruno Haible  <bruno@clisp.org>
42940
42941         * lib/freadahead.h (freadahead): Document more precisely.
42942         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42943         the sum of both buffer sizes.
42944         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42945         * NEWS: Document the change.
42946
42947 2008-03-09  Bruno Haible  <bruno@clisp.org>
42948
42949         Extend freadptr to return also the buffer size.
42950         * lib/freadptr.h (freadptr): Add sizep argument.
42951         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42952         (freadptr): Add sizep argument. Determine buffer size like freadahead
42953         does.
42954         * tests/test-freadptr.c: Don't include freadahead.h.
42955         (main): Adapt for new calling convention of freadptr.
42956         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42957         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42958         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42959         tests/test-freadptr2.sh.
42960         (Depends): Remove freadahead.
42961         (TESTS): Add test-freadptr2.sh.
42962         (check_PROGRAMS): Add test-freadptr2.
42963
42964 2008-03-09  Bruno Haible  <bruno@clisp.org>
42965
42966         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42967         Report and solution by Simon Josefsson.
42968
42969 2008-03-06  Bruno Haible  <bruno@clisp.org>
42970
42971         Make fflush after ungetc work on BSD platforms.
42972         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42973         * tests/test-fflush2.c: New file.
42974         * tests/test-fflush2.sh: New file.
42975         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42976         tests/test-fflush2.c.
42977         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42978         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42979
42980 2008-03-06  Eric Blake  <ebb9@byu.net>
42981
42982         Likewise for ftello.
42983         * modules/ftello (Dependencies): Add extensions.
42984         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42985
42986 2008-03-06  Bruno Haible  <bruno@clisp.org>
42987
42988         * modules/fseeko (Dependencies): Add extensions.
42989         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42990         Needed on glibc systems.
42991
42992 2008-03-06  Bruno Haible  <bruno@clisp.org>
42993
42994         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42995         email address.
42996         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42997
42998 2008-03-06  Bruno Haible  <bruno@clisp.org>
42999
43000         * users.txt: Add libgnupdf.
43001
43002 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43003
43004         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43005         (Header File Substitutes, Function Substitutes,
43006         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43007         (Build robot for gnulib): Fix typo.
43008
43009 2008-03-06  Bruno Haible  <bruno@clisp.org>
43010
43011         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43012         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43013
43014 2008-03-06  Bruno Haible  <bruno@clisp.org>
43015
43016         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43017         * doc/gnulib.texi: Include it.
43018
43019 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43020
43021         * modules/func (License): Change license to unlimited; there was
43022         no LGPL parts in the module anyway.
43023
43024 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43025
43026         * modules/__func__: Renamed to modules/func.
43027         * modules/__func__-tests: Renamed to modules/func-tests.
43028         * tests/test-__func__.c: Renamed to tests/test-func.c.
43029         * m4/__func__.m4: Renamed to m4/func.m4.
43030         * doc/gnulib.texi (__func__): Section renamed to func.
43031         Suggested by Eric Blake <ebb9@byu.net>.
43032
43033 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43034
43035         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43036         about __func__.  Make example self-contained.  Suggested by Eric
43037         Blake <ebb9@byu.net>.
43038
43039         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43040         Suggested by Eric Blake <ebb9@byu.net>.
43041
43042 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43043
43044         * modules/__func__: New file.
43045         * modules/__func__-tests: New file.
43046         * tests/test-__func__.c: New file.
43047         * m4/__func__.m4: New file.
43048         * doc/gnulib.texi (__func__): Document __func__ module.
43049
43050 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43051
43052         * modules/byteswap (License): Re-license as LGPLv2+.
43053
43054 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43055
43056         * doc/Makefile: Add pdf target.
43057
43058 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43059
43060         * modules/inline (License): Use 'unlimited', since there are only
43061         *.m4 files in this module.
43062
43063 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43064             Bruno Haible  <bruno@clisp.org>
43065
43066         Add support for HP C 7.1 on OpenVMS 8.3.
43067         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43068
43069 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43070
43071         Update VMS specifics.
43072         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43073
43074 2008-03-02  Jim Meyering  <meyering@redhat.com>
43075
43076         Remove the last dependency on the "free" module.
43077         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43078         Reported by Bob Proulx.
43079
43080         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43081
43082         Remove useless "if" tests before free.  Deprecate "free" module.
43083         * doc/posix-functions/free.texi: Mention that this
43084         module is no longer useful.
43085         * modules/free (Notice): Say this module is obsolete.
43086         * modules/readutmp (Depends-on): Remove free.
43087         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43088         * lib/putenv.c (putenv): Likewise.
43089         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43090         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43091         * tests/test-c-strcasestr.c (main): Likewise.
43092         * tests/test-c-strstr.c (main): Likewise.
43093         * tests/test-mbscasestr1.c (main): Likewise.
43094         * tests/test-mbscasestr2.c (main): Likewise.
43095         * tests/test-mbsstr1.c (main): Likewise.
43096         * tests/test-mbsstr2.c (main): Likewise.
43097         * tests/test-memmem.c (main): Likewise.
43098         * tests/test-strcasestr.c (main): Likewise.
43099         * tests/test-striconv.c (main): Likewise.
43100         * tests/test-striconveh.c (main): Likewise.
43101         * tests/test-striconveha.c (main): Likewise.
43102         * tests/test-strstr.c (main): Likewise.
43103
43104         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43105
43106         bootstrap: sync from coreutils again
43107         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43108
43109 2008-03-01  Jim Meyering  <meyering@redhat.com>
43110
43111         bootstrap: sync from coreutils
43112         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43113         also when the target doesn't exist.
43114
43115 2008-03-01  Eric Blake  <ebb9@byu.net>
43116
43117         Fix bugs in last patch.
43118         * lib/memchr2.c (memchr2): Fix typo.
43119         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43120         extension.
43121         Reported by Bruce Korb.
43122
43123         New module 'memchr2'.
43124         * modules/memchr2: New file.
43125         * modules/memchr2-tests: Likewise.
43126         * lib/memchr2.h: Likewise.
43127         * lib/memchr2.c: Likewise, based on memchr.c.
43128         * tests/test-memchr2.c: New test.
43129         * MODULES.html.sh (String handling): Add memchr2.
43130
43131 2008-02-29  Bruno Haible  <bruno@clisp.org>
43132
43133         * modules/freadseek-tests: New file.
43134         * tests/test-freadseek.sh: New file.
43135         * tests/test-freadseek.c: New file.
43136
43137         New module 'freadseek'.
43138         * modules/freadseek: New file.
43139         * lib/freadseek.h: New file.
43140         * lib/freadseek.c: New file.
43141         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43142
43143 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43144
43145         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43146         wydawca.
43147
43148         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43149         program_invocation_name and program_invocation_short_name are
43150         present.
43151
43152 2008-02-28  Bruno Haible  <bruno@clisp.org>
43153
43154         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43155         * tests/test-freadptr.sh: Also test non-seekable stdin.
43156
43157 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43158
43159         * build-aux/bootstrap (source_base, m4_base)
43160         (doc_base, tests_base): New variables.
43161         (gnulib_tool_options): Do not hardcode base directories, use
43162         the above variables instead.
43163
43164 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43165
43166         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43167
43168 2008-02-28  Bruno Haible  <bruno@clisp.org>
43169
43170         * modules/freadptr-tests: New file.
43171         * tests/test-freadptr.sh: New file.
43172         * tests/test-freadptr.c: New file.
43173
43174         New module 'freadptr'.
43175         * modules/freadptr: New file.
43176         * lib/freadptr.h: New file.
43177         * lib/freadptr.c: New file.
43178         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43179
43180 2008-02-26  Karl Berry  <karl@freefriends.org>
43181
43182         Sync from Libtool:
43183         * libltdl/argz.c (argz_add, argz_count): New functions.
43184         * libltdl/argz.in.h: Declare them.
43185         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43186
43187 2008-02-22  Bruno Haible  <bruno@clisp.org>
43188
43189         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43190         is a pointer type.  Needed for HP-UX 10.
43191         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43192         * doc/posix-functions/gmtime_r.texi: Likewise.
43193         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43194
43195 2008-02-24  Bruno Haible  <bruno@clisp.org>
43196
43197         * modules/environ-tests: New file.
43198         * tests/test-environ.c: New file.
43199
43200         New module 'environ'.
43201         * modules/environ: New file.
43202         * lib/unistd.in.h (environ): New declaration.
43203         * m4/environ.m4: New file.
43204         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43205         after use.
43206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43207         HAVE_DECL_ENVIRON.
43208         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43209         HAVE_DECL_ENVIRON.
43210         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43211         wrong claim that 'environ' is missing on some systems.
43212         * modules/execute (Depends-on): Add environ.
43213         * lib/execute.c (environ): Remove fallback declaration.
43214         * modules/pipe (Depends-on): Add environ.
43215         * lib/pipe.c (environ): Remove fallback declaration.
43216         * modules/setenv (Depends-on): Add environ.
43217         * lib/setenv.c (environ): Remove fallback declaration.
43218         * modules/unsetenv (Depends-on): Add environ.
43219         * lib/unsetenv.c (environ): Remove fallback declaration.
43220         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43221         m4/environ.m4.
43222         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43223         (gl_PREREQ_UNSETENV): Likewise.
43224
43225 2008-02-24  Bruno Haible  <bruno@clisp.org>
43226
43227         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43228
43229 2008-02-20  Bob Proulx  <bob@proulx.com>
43230
43231         Enable use of older two part flavor 'git describe'.
43232         * build-aux/git-version-gen: If using the older two part flavor of
43233         git version then recreate the third part now present in the
43234         newer three part flavor of git describe.
43235
43236 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43237
43238         * lib/fts.c (fts_build): Typo correction to comment.
43239
43240 2008-02-17  Bruno Haible  <bruno@clisp.org>
43241
43242         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43243         generating no-op conflicts.
43244
43245 2008-02-17  Bruno Haible  <bruno@clisp.org>
43246
43247         Speed up by 10%.
43248         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43249         result_entries, rather than an index-based loop.
43250
43251 2008-02-17  Bruno Haible  <bruno@clisp.org>
43252
43253         Speed up by 25%.
43254         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43255         'hashcode_cached'.
43256         (entry_create): New function.
43257         (entry_hashcode): Use the cached hashcode if possible.
43258         (read_changelog_file, try_split_merged_entry): Use entry_create.
43259
43260 2008-02-17  Bruno Haible  <bruno@clisp.org>
43261
43262         Speed up from O(n^2) to O(n) for long ChangeLog files.
43263         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43264         (read_changelog_file): Change implementation of entries_reversed list
43265         to rbtreehash.
43266         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43267
43268 2008-02-17  Bruno Haible  <bruno@clisp.org>
43269
43270         New option --split-merged-entry.
43271         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43272         (find_paragraph_end, try_split_merged_entry): New functions.
43273         (long_options): Add option --split-merged-entry.
43274         (usage): Document option --split-merged-entry.
43275         (main): Implement option --split-merged-entry.
43276         Reported by Eric Blake.
43277
43278 2008-02-17  Bruno Haible  <bruno@clisp.org>
43279
43280         * lib/git-merge-changelog.c: Include c-strstr.h.
43281         (main): Support the "git pull --rebase" situation.
43282         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43283         Reported by Eric Blake.
43284
43285 2008-02-16  Eric Blake  <ebb9@byu.net>
43286
43287         Avoid doubling \ in common case of "c-maybe" quoting style.
43288         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43289         eliding outer quotes.
43290         * lib/quotearg.h: Document this.
43291         * tests/test-quotearg.c (result_strings, inputs, results_g)
43292         (flag_results, locale_results): Test it by adding a new string to
43293         each test group.
43294         (compare_strings): Test new string.
43295
43296 2008-02-13  Eric Blake  <ebb9@byu.net>
43297
43298         Avoid trigraph quoting in default output.
43299         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43300         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43301         unless explicitly requested.
43302         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43303
43304 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43305
43306         Don't rely on signed integer overflowing to negative value.
43307         * lib/getugroups.c (getugroups): Include <limits.h>.
43308         Instead, compare against INT_MAX, and increment only if the test passes.
43309
43310 2008-02-13  Jim Meyering  <meyering@redhat.com>
43311         and Eric Blake  <ebb9@byu.net>
43312
43313         Avoid shadowing warning and compile errors on Linux.
43314         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43315         forwarding macros on Linux.
43316         (dcgettext): Define a stub, for Linux.
43317         (results_g, main): Avoid warnings.
43318
43319 2008-02-12  Eric Blake  <ebb9@byu.net>
43320
43321         Silence warning in last patch.
43322         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43323
43324         Quotearg part 4: add tests, fix c-maybe colon quoting.
43325         * lib/quotearg.h: Improve documentation.
43326         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43327         escapes when adding outer quotes.  When quoting trigraphs, use
43328         valid C notation.  When quoting NUL, omit extra characters if next
43329         character is not digit.  Alter prototype.
43330         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43331         callers.
43332         * modules/quotearg-tests: New module.
43333         * tests/test-quotearg.c: New test.
43334
43335 2008-02-07  Eric Blake  <ebb9@byu.net>
43336
43337         Quotearg part 3: add flag to control outer quote elision.
43338         * lib/quotearg.h (c_maybe_quoting_style): New style.
43339         (enum quoting_flags): Better documentation of flags.
43340         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43341         c-maybe style.
43342         (quotearg_buffer_restyled): Handle new flag to elide outer
43343         quotes.
43344
43345         Quotearg part 2: add flag that can control NUL elision.
43346         * lib/quotearg.h (set_quoting_flags): New prototype.
43347         * lib/quotearg.c (struct quoting_options): Add flag field.
43348         (set_quoting_flags): New function.
43349         (quotearg_buffer_restyled): Add flags parameter.
43350         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43351         (quotearg_n_options): Set the flag, since length cannot be
43352         returned.
43353         (quoting_options_from_style): Default flags correctly.
43354
43355         Quotearg part 1: more wrappers, restore quotearg_char state.
43356         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43357         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43358         (quotearg_colon_mem): New wrappers.
43359         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43360         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43361         functions.
43362         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43363         (quotearg_colon_mem): New functions.
43364
43365 2008-02-11  Bruno Haible  <bruno@clisp.org>
43366
43367         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43368         library in the current directory: it does not work with parallel make.
43369         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43370
43371 2008-02-11  Bruno Haible  <bruno@clisp.org>
43372
43373         * .gitattributes: New file.
43374
43375 2008-02-11  Jim Meyering  <meyering@redhat.com>
43376
43377         useless-if-before-free: Fix reversed exit values.
43378         * build-aux/useless-if-before-free: Use correct values
43379         for EXIT_MATCH and EXIT_NO_MATCH.
43380
43381         * build-aux/useless-if-before-free: Close stdout carefully.
43382
43383 2008-02-10  Bruno Haible  <bruno@clisp.org>
43384
43385         New module 'git-merge-changelog'.
43386         * modules/git-merge-changelog: New file.
43387         * lib/git-merge-changelog.c: New file.
43388
43389 2008-02-10  Jim Meyering  <meyering@redhat.com>
43390
43391         useless-if-before-free: New option: --list (-l).
43392
43393         useless-if-before-free: Don't exit immediately upon open failure.
43394         * build-aux/useless-if-before-free: Exit 2 for errors.
43395         Upon failure to open a file, don't exit immediately.
43396         Rather, just warn and continue with any remaining files.
43397
43398 2008-02-10  Bruno Haible  <bruno@clisp.org>
43399
43400         New abstract list operation 'node_set_value'.
43401         * lib/gl_list.h (gl_list_node_set_value): New function.
43402         (struct gl_list_implementation): New field node_set_value.
43403         * lib/gl_list.c (gl_list_node_set_value): New function.
43404         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43405         (gl_array_list_implementation): Update.
43406         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43407         (gl_carray_list_implementation): Update.
43408         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43409         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43410         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43411         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43412         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43413         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43414         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43415         Update.
43416         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43417         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43418         (gl_sublist_list_implementation): Update.
43419
43420 2008-02-10  Bruno Haible  <bruno@clisp.org>
43421
43422         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43423         Needed when ELEMENT is #defined to 'some_type *'.
43424
43425 2008-02-10  Jim Meyering  <meyering@redhat.com>
43426
43427         New script and module: useless-if-before-free
43428         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43429         * build-aux/useless-if-before-free: New file.
43430         * modules/useless-if-before-free: New file.
43431
43432         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43433
43434         xstrtol_error: Fix typo.
43435         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43436         s/exit_failure/exit_status/.
43437
43438 2008-02-09  Jim Meyering  <meyering@redhat.com>
43439
43440         New script and module: gitlog-to-changelog
43441         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43442         * modules/gitlog-to-changelog: New file.
43443         * build-aux/gitlog-to-changelog: New file.
43444
43445 2008-02-08  Jim Meyering  <meyering@redhat.com>
43446
43447         Avoid two "parameter unused" warnings.
43448         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43449         Mark "st" as used.
43450
43451         Use "git COMMAND", not "git-COMMAND".
43452         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43453         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43454         * build-aux/git-version-gen: Use "git status", not "git-status".
43455
43456 2008-02-07  Bruno Haible  <bruno@clisp.org>
43457
43458         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43459         Avoids a crash on Windows Vista.
43460         Reported by Adam Strzelecki <ono@java.pl> via
43461         Simon Josefsson <simon@josefsson.org>.
43462
43463 2008-02-06  Bruno Haible  <bruno@clisp.org>
43464
43465         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43466         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43467         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43469         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43470         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43471         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43472         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43474         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43480         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43481         left-adjust flag.
43482         * tests/test-snprintf-posix.h (test_function): Likewise.
43483         * tests/test-sprintf-posix.h (test_function): Likewise.
43484         * tests/test-vasprintf-posix.c (test_function): Likewise.
43485         * doc/posix-functions/fprintf.texi: Update.
43486         * doc/posix-functions/printf.texi: Update.
43487         * doc/posix-functions/snprintf.texi: Update.
43488         * doc/posix-functions/sprintf.texi: Update.
43489         * doc/posix-functions/vfprintf.texi: Update.
43490         * doc/posix-functions/vprintf.texi: Update.
43491         * doc/posix-functions/vsnprintf.texi: Update.
43492         * doc/posix-functions/vsprintf.texi: Update.
43493         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43494
43495 2008-02-06  Bruno Haible  <bruno@clisp.org>
43496
43497         Fix bug introduced on 2008-01-26.
43498         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43499
43500 2008-02-06  Bruno Haible  <bruno@clisp.org>
43501
43502         Fix bug introduced on 2007-06-10.
43503         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43504         !NEED_PRINTF_FLAG_ZERO.
43505
43506 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43507
43508         getloadavg: use libperfstat on AIX5
43509         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43510
43511 2008-02-03  Bruno Haible  <bruno@clisp.org>
43512
43513         * lib/diffseq.h: Add comments about required #includes.
43514         Reported by Michael Biggs <gnulib@doubleplum.net>.
43515
43516 2008-02-01  Bruno Haible  <bruno@clisp.org>
43517
43518         * users.txt: Add gnuit.
43519
43520 2008-01-31  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/md4.c (set_uint32): Mark as inline.
43523         * lib/md5.c (set_uint32): Likewise.
43524         * lib/sha1.c (set_uint32): Likewise.
43525         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43526         * m4/md5.m4 (gl_MD5): Likewise.
43527         * m4/sha1.m4 (gl_SHA1): Likewise.
43528
43529 2008-01-31  Jim Meyering  <meyering@redhat.com>
43530
43531         Use "sizeof VAR", rather than a literal "4".
43532         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43533         * lib/md4.c (md4_read_ctx): Likewise.
43534         * lib/sha1.c (sha1_read_ctx): Likewise.
43535
43536 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43537
43538         * tests/test-sha1.c: New file, based on test-md5.c.
43539
43540         * modules/crypto/sha1-tests: New file.
43541
43542 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43543
43544         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43545
43546 2008-01-31  Jim Meyering  <meyering@redhat.com>
43547
43548         Prefer "sizeof v" over the equivalent "4".
43549         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43550         * lib/md5.c (set_uint32): Likewise.
43551         * lib/sha1.c (set_uint32): Likewise.
43552
43553 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43554
43555         * lib/sha1.c (set_uint32): Mark function as static.
43556
43557 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43558
43559         md2: clarify comments to say that alignment is not required.
43560         * lib/md2.h: Remove warning about alignment in comment.
43561         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43562         never been required.
43563
43564 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43565
43566         md4: adapt alignment constraint fix from sha1.
43567         * lib/md4.c (set_uint32): New function, from sha1.c
43568         (md4_read_ctx): Use it.
43569         (md4_finish_ctx): Doc fix.
43570         * lib/md4.h: Doc fix.
43571
43572 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43573
43574         md5: adapt alignment constraint fix from sha1.
43575         * lib/md5.c (set_uint32): New function, from sha1.c
43576         (md5_read_ctx): Use it.
43577         (md5_finish_ctx): Doc fix.
43578         * lib/md5.h: Doc fix.
43579
43580 2008-01-30  Peter Palfrader  <weasel@debian.org>
43581
43582         sha1: remove the result buffer alignment constraint
43583         * lib/sha1.c (set_uint32): New function.
43584         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43585         constraint.
43586         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43587         * lib/sha1.h: Likewise.
43588
43589 2008-01-30  Andreas Schwab  <schwab@suse.de>
43590             Bruno Haible  <bruno@clisp.org>
43591
43592         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43593         correct definition of LDBL_MIN_EXP.
43594
43595 2008-01-30  Karl Berry  <karl@gnu.org>
43596
43597         * config/srclist-update: try to preserve x bit on updates.
43598         * config/srclistvars.sh: update for karl.
43599
43600 2008-01-29  Jim Meyering  <meyering@redhat.com>
43601
43602         vasnprintf.c: Avoid warning about unused label
43603         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43604         "overflow" label definition and associated code with the
43605         same cpp condition that guards the sole use of that label.
43606
43607 2008-01-26  Bruno Haible  <bruno@clisp.org>
43608
43609         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43610         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43611         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43612         * lib/isnanl-nolibm.h (isnanl): Likewise.
43613         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43614
43615 2008-01-26  Bruno Haible  <bruno@clisp.org>
43616
43617         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43618         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43619
43620 2008-01-26  Bruno Haible  <bruno@clisp.org>
43621
43622         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43623         GCC >= 4.0 built-in.
43624         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43625
43626 2008-01-26  Bruno Haible  <bruno@clisp.org>
43627
43628         Rename isnan, applicable to 'double' only, to isnand.
43629         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43630         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43631         (configure.ac): Update.
43632         (Include): Replace "isnan.h" with "isnand.h".
43633         * m4/isnand.m4: Renamed from m4/isnan.m4.
43634         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43635         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43636         instead of isnan.c.
43637         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43638         instead of HAVE_ISNAN_IN_LIBC.
43639         (isnand): Renamed from isnan.
43640         * lib/isnand.c: New file.
43641         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43642         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43643         (Makefile.am): Update.
43644         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43645         Include isnand.h instead of isnan.h.
43646         (main): Test isnand instead of isnan.
43647         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43648         isnan-nolibm.
43649         * modules/frexp (Depends-on): Likewise.
43650         * modules/frexp-tests (Depends-on): Likewise.
43651         * modules/frexp-nolibm (Depends-on): Likewise.
43652         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43653         * modules/isfinite (Depends-on): Likewise.
43654         * modules/round-tests (Depends-on): Likewise.
43655         * modules/signbit (Depends-on): Likewise.
43656         * modules/signbit-tests (Depends-on): Likewise.
43657         * modules/snprintf-posix (Depends-on): Likewise.
43658         * modules/sprintf-posix (Depends-on): Likewise.
43659         * modules/trunc-tests (Depends-on): Likewise.
43660         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43661         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43662         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43663         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43664         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43665         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43666         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43667         * modules/vasnprintf-posix (Depends-on): Likewise.
43668         * modules/vasprintf-posix (Depends-on): Likewise.
43669         * modules/vfprintf-posix (Depends-on): Likewise.
43670         * modules/vsnprintf-posix (Depends-on): Likewise.
43671         * modules/vsprintf-posix (Depends-on): Likewise.
43672         * lib/frexp.c: Include isnand.h instead of isnan.h.
43673         (ISNAN): Set to isnand instead of isnan.
43674         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43675         (gl_isfinited): Use isnand instead of isnan.
43676         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43677         (gl_signbitd): Use isnand instead of isnan.
43678         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43679         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43680         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43681         (main): Use isnand instead of isnan.
43682         * tests/test-round1.c: Include isnand.h.
43683         (main): Use isnand instead of isnan.
43684         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43685         (ISNAN): Set to isnand instead of isnan.
43686         * tests/test-trunc1.c: Include isnand.h.
43687         (main): Use isnand instead of isnan.
43688         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43689         (equal): Use isnand instead of isnan.
43690         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43691         isnand-nolibm.
43692         * NEWS: Mention the change.
43693
43694 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43695             Bruno Haible  <bruno@clisp.org>
43696
43697         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43698         the GCC builtins for signbits are present and set
43699         REPLACE_SIGNBIT_USING_GCC if so.
43700         * lib/math.in.h (signbit): Define using GCC builtins if
43701         REPLACE_SIGNBIT_USING_GCC is set.
43702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43703         REPLACE_SIGNBIT_USING_GCC.
43704         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43705
43706 2008-01-25  Jim Meyering  <meyering@redhat.com>
43707
43708         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43709         * lib/poll.c: Include <config.h>, not "config.h".
43710         * tests/test-getaddrinfo.c: Likewise.
43711
43712 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43713
43714         * modules/sockets-tests: New file.
43715
43716 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43717
43718         * modules/sockets: New module, can be used to call WSA_Startup and
43719         WSA_Cleanup when needed.
43720
43721         * lib/sockets.h, lib/sockets.c: New files.
43722
43723         * m4/sockets.m4: New file.
43724
43725         * tests/test-sockets.c: New file.
43726
43727 2008-01-19  Bruno Haible  <bruno@clisp.org>
43728
43729         * doc/posix-headers: Renamed from doc/headers.
43730         * doc/posix-functions: Renamed from doc/functions.
43731         * doc/gnulib.texi: Update.
43732
43733 2008-01-19  Bruno Haible  <bruno@clisp.org>
43734
43735         * doc/glibc-functions/strcasestr.texi: Include contents of
43736         doc/functions/strcasestr.texi, fixing the list of platforms.
43737         * doc/functions/strcasestr.texi: Remove file.
43738
43739 2008-01-19  Bruno Haible  <bruno@clisp.org>
43740
43741         * doc/glibc-functions/memmem.texi: Include contents of
43742         doc/functions/memmem.texi.
43743         * doc/functions/memmem.texi: Remove file.
43744
43745 2008-01-18  Bruno Haible  <bruno@clisp.org>
43746
43747         * doc/glibc-functions/*.texi: New files.
43748         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43749         to use the new files.
43750
43751 2008-01-17  Bruno Haible  <bruno@clisp.org>
43752
43753         * tests/test-gethostname.c (main): Fix printf statement.
43754
43755 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43756
43757         * modules/gethostname-tests: New file.
43758
43759         * tests/test-gethostname.c: New file.
43760
43761 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43762
43763         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43764         used by the UNAME case.  Reported by Bruno Haible
43765         <bruno@clisp.org>.
43766
43767 2008-01-17  Eric Blake  <ebb9@byu.net>
43768
43769         Convert c-strcasestr to be more efficient.
43770         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43771         (Depends-on): Add c-strcase, remove malloca, strnlen.
43772         * tests/test-c-strcasestr.c (main): Enhance test.
43773         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43774
43775 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43776
43777         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43778         Use it in creating po/Makevars.
43779
43780 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43781
43782         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43783         Applications that requires it should initialize libgcrypt
43784         manually.
43785
43786 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43787
43788         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43789
43790 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43791
43792         Fix problem with getdate on mingw32 reported by Simon Josefsson
43793         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43794         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43795         tzname", when deciding whether to declare tzname.
43796         * lib/strftime.c (tzname): Likewise.
43797
43798 2008-01-15  Bruno Haible  <bruno@clisp.org>
43799
43800         Work around a MacOS X 10.5 bug in frexpl().
43801         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43802         * doc/functions/frexpl.texi: Document the bug.
43803         Reported by Elias Pipping <pipping@gentoo.org>.
43804
43805 2008-01-14  Eric Blake  <ebb9@byu.net>
43806
43807         Touch up previous patch.
43808         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43809         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43810
43811         Convert strcasestr module to use Two-Way algorithm.
43812         * modules/strcasestr-simple: New module, based on the old
43813         strcasestr, but with Two-Way rather than KMP.
43814         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43815         * lib/string.in.h (rpl_strcasestr): Declare.
43816         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43817         performance.
43818         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43819         * modules/string (Makefile.am): Support strcasestr.
43820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43821         * modules/strcasestr-tests (Depends-on): Check for alarm.
43822         * tests/test-strcasestr.c: Augment test.
43823         * lib/str-two-way.h: Clean up stray macro.
43824         * NEWS: Document new module.
43825         * MODULES.html.sh (string handling): Likewise.
43826         * doc/functions/strcasestr.texi: New file.
43827         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43828         here, since it is not a POSIX function.
43829
43830 2008-01-14  Colin Watson  <cjwatson@debian.org>
43831             Bruno Haible  <bruno@clisp.org>
43832
43833         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43834         works fine; if not, set REPLACE_STRSIGNAL.
43835         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43837         REPLACE_STRSIGNAL.
43838         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43839         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43840         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43841
43842 2008-01-14  Bruno Haible  <bruno@clisp.org>
43843
43844         * modules/strsignal (Include): Change to <string.h>.
43845
43846 2008-01-14  Colin Watson  <cjwatson@debian.org>
43847
43848         * modules/argp (Notice): Add a notice recommending to change
43849         XGETTEXT_OPTIONS.
43850         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43851
43852 2008-01-13  Colin Watson  <cjwatson@debian.org>
43853
43854         * modules/strsignal-tests: New file.
43855         * tests/test-strsignal.c: New file.
43856
43857         * lib/strsignal.c: New file, from glibc with modifications.
43858         * lib/siglist.h: New file, from glibc with modifications.
43859         * lib/string.in.h (strsignal): New declaration.
43860         * m4/strsignal.m4: New file.
43861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43862         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43863         * modules/strsignal: New file.
43864         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43865         HAVE_DECL_STRSIGNAL.
43866
43867 2008-01-13  Bruno Haible  <bruno@clisp.org>
43868
43869         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43870         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43871         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43872         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43873
43874 2008-01-13  Bruno Haible  <bruno@clisp.org>
43875
43876         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43877         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43878         * lib/argp.h (__attribute__): Likewise.
43879         * lib/c-stack.c (__attribute__): Likewise.
43880         * lib/error.h (__attribute__): Likewise.
43881         * lib/fts.c (__attribute__): Likewise.
43882         * lib/openat.h (__attribute__): Likewise.
43883         * lib/stdio.in.h (__attribute__): Likewise.
43884         * lib/string.in.h (__attribute__): Likewise.
43885         * lib/utimens.c (__attribute__): Likewise.
43886         * lib/vasnprintf.h (__attribute__): Likewise.
43887         * lib/xalloc.h (__attribute__): Likewise.
43888         * lib/xprintf.h (__attribute__): Likewise.
43889         * lib/xstrtol.h (__attribute__): Likewise.
43890         * lib/xvasprintf.h (__attribute__): Likewise.
43891
43892 2008-01-12  Bruno Haible  <bruno@clisp.org>
43893
43894         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43895         * doc/glibc-headers/a.out.texi: New file.
43896         * doc/glibc-headers/aliases.texi: New file.
43897         * doc/glibc-headers/alloca.texi: New file.
43898         * doc/glibc-headers/ar.texi: New file.
43899         * doc/glibc-headers/argp.texi: New file.
43900         * doc/glibc-headers/argz.texi: New file.
43901         * doc/glibc-headers/byteswap.texi: New file.
43902         * doc/glibc-headers/crypt.texi: New file.
43903         * doc/glibc-headers/endian.texi: New file.
43904         * doc/glibc-headers/envz.texi: New file.
43905         * doc/glibc-headers/err.texi: New file.
43906         * doc/glibc-headers/error.texi: New file.
43907         * doc/glibc-headers/execinfo.texi: New file.
43908         * doc/glibc-headers/fpu_control.texi: New file.
43909         * doc/glibc-headers/fstab.texi: New file.
43910         * doc/glibc-headers/fts.texi: New file.
43911         * doc/glibc-headers/getopt.texi: New file.
43912         * doc/glibc-headers/ieee754.texi: New file.
43913         * doc/glibc-headers/ifaddrs.texi: New file.
43914         * doc/glibc-headers/libintl.texi: New file.
43915         * doc/glibc-headers/mcheck.texi: New file.
43916         * doc/glibc-headers/mntent.texi: New file.
43917         * doc/glibc-headers/obstack.texi: New file.
43918         * doc/glibc-headers/paths.texi: New file.
43919         * doc/glibc-headers/printf.texi: New file.
43920         * doc/glibc-headers/pty.texi: New file.
43921         * doc/glibc-headers/resolv.texi: New file.
43922         * doc/glibc-headers/shadow.texi: New file.
43923         * doc/glibc-headers/sysexits.texi: New file.
43924         * doc/glibc-headers/ttyent.texi: New file.
43925
43926 2008-01-12  Jim Meyering  <meyering@redhat.com>
43927
43928         announce-gen: emit Gnulib's git-based version string.
43929         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43930         New option --gnulib-version=V, where V is expected to be
43931         the output of running git describe in the gnulib directory.
43932         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43933         not useful, and plan to stop publishing an xdelta file with each
43934         coreutils release.
43935
43936         * build-aux/announce-gen: Also check for lzma-compressed files.
43937
43938 2008-01-11  Bruno Haible  <bruno@clisp.org>
43939
43940         * tests/test-memmem.c (main): Increase maximum allowed time.
43941         * tests/test-strstr.c (main): Likewise.
43942
43943 2008-01-11  Bruno Haible  <bruno@clisp.org>
43944
43945         * doc/functions/memmem.texi: Add more precisions about platforms.
43946         * doc/functions/strstr.texi: Likewise.
43947
43948 2008-01-10  Eric Blake  <ebb9@byu.net>
43949
43950         * m4/strstr.m4: Delete cruft from copy-n-paste.
43951         Reported by Bruno Haible.
43952
43953 2008-01-10  Bruno Haible  <bruno@clisp.org>
43954
43955         Make c-strstr rely on strstr.
43956         * lib/c-strstr.c: Don't include str-kmp.h.
43957         (c_strstr): Define in terms of strstr.
43958         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43959         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43960
43961 2008-01-10  Bruno Haible  <bruno@clisp.org>
43962
43963         * doc/gnulib.texi (String Functions in C Locale): New section.
43964         * doc/c-ctype.texi: New file.
43965         * doc/c-strcase.texi: New file.
43966         * doc/c-strcaseeq.texi: New file.
43967         * doc/c-strcasestr.texi: New file.
43968         * doc/c-strstr.texi: New file.
43969         * doc/c-strtod.texi: New file.
43970         * doc/c-strtold.texi: New file.
43971
43972 2008-01-10  Eric Blake  <ebb9@byu.net>
43973
43974         * lib/relocatable.h: Fix a comment.
43975
43976 2008-01-10  Eric Blake  <ebb9@byu.net>
43977
43978         Share two-way algorithm.
43979         * lib/str-two-way.h: New file, merged from...
43980         * lib/memmem.c: ...here...
43981         * lib/strstr.c: ...and here.
43982         * modules/memmem (Files): Use it.
43983         * modules/strstr (Files): Likewise.
43984
43985         Avoid quadratic strstr implementations.
43986         * lib/strstr.c: New file.
43987         * m4/strstr.m4: Likewise.
43988         * modules/strstr: Likewise.
43989         * modules/strstr-tests: Likewise.
43990         * tests/test-strstr.c: Likewise.
43991         * lib/string.in.h (rpl_strstr): Declare.
43992         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43994         * modules/string (Makefile.am): Likewise.
43995         * MODULES.html.sh (string handling): Mention new module.
43996         * doc/functions/strstr.texi (strstr): Document the bug.
43997
43998 2008-01-10  Bruno Haible  <bruno@clisp.org>
43999
44000         * lib/relocatable.h (relocate): State whether result is freshly
44001         allocated or not.
44002         * lib/relocatable.c (relocate): Return a freshly allocated string
44003         instead of a pointer to a privately held string.
44004         Reported by Sylvain Beucler <beuc@gnu.org>.
44005
44006 2008-01-10  Colin Watson  <cjwatson@debian.org>
44007
44008         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44009         s/S_ISNLK/S_ISLNK/.
44010
44011 2008-01-09  Bruno Haible  <bruno@clisp.org>
44012
44013         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44014         and other files.
44015         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44016         if it's only a guess.
44017         * modules/memmem: Simplify by depending on memmem-simple.
44018
44019 2008-01-09  Bruno Haible  <bruno@clisp.org>
44020
44021         Work around OpenBSD 4.0 tdelete() bug.
44022         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44023         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44024         macros and don't redefine the enum values.
44025         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44026         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44027         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44028
44029 2008-01-09  Bruno Haible  <bruno@clisp.org>
44030
44031         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44032         (main): Don't perform the tests if setlocale did not install a UTF-8
44033         locale. Needed on OpenBSD 4.0.
44034         * modules/wcwidth-tests (Depends-on): Add localcharset.
44035
44036 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44037
44038         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44039         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44040         * NEWS: announce this.
44041         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44042
44043 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44044         and Eric Blake  <ebb9@byu.net>
44045
44046         Add memmem-simple module.
44047         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44048         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44049         * modules/memmem-simple: New file.
44050         * modules/memmem (Description): Tweak.
44051         * MODULES.html.sh (string handling): Mention new module.
44052         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44053         addressed by memmem-simple.
44054         * NEWS: Document the difference.
44055
44056 2008-01-09  Eric Blake  <ebb9@byu.net>
44057
44058         Give gcc some memmem optimization hints.
44059         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44060         (strcasestr): Declare as pure.
44061         * modules/memmem (Maintainer): Claim my implementation.
44062
44063 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44064
44065         Support AIX 6.1 and higher.
44066         * build-aux/config.libpath: Likewise.
44067         * build-aux/config.rpath: Likewise.
44068
44069 2008-01-08  Jim Meyering  <meyering@redhat.com>
44070             Bruno Haible  <bruno@clisp.org>
44071
44072         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44073         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44074         Reported by Peter Fales in
44075         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44076
44077 2008-01-08  Bruno Haible  <bruno@clisp.org>
44078
44079         * modules/unictype/category-of (Depends-on): Add
44080         unictype/category-none.
44081         * modules/unictype/category-and-tests (Depends-on): Add
44082         unictype/category-{L,N,Lu,Nd}.
44083         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44084         * modules/unictype/category-or-tests (Depends-on): Add
44085         unictype/category-{L,N}.
44086         * modules/unictype/category-name-tests (Depends-on): Add
44087         unictype/category-{Z,Nl}.
44088         Reported by Simon Josefsson.
44089
44090 2008-01-08  Bruno Haible  <bruno@clisp.org>
44091
44092         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44093         convention better.
44094         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44095         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44096         Reported by Peter Miller <millerp@canb.auug.org.au>.
44097
44098 2008-01-08  Eric Blake  <ebb9@byu.net>
44099
44100         Rewrite memmem to guarantee linear complexity without malloc.
44101         * lib/memmem.c (memmem): Use Two-Way rather than
44102         Knuth-Morris-Pratt, to allow O(1) space usage.
44103         (critical_factorization, two_way_short_needle)
44104         (two_way_long_needle): New functions.
44105         (knuth_morris_pratt): Delete.
44106         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44107         Add stdint.
44108         * tests/test-memmem.c (main): Add tests for periodic needle and
44109         sublinear performance.
44110         * doc/functions/memmem.texi (memmem): Document other deficiencies
44111         in cygwin and older glibc.
44112
44113 2008-01-08  Bruno Haible  <bruno@clisp.org>
44114
44115         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44116         augmentation.
44117
44118 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44119
44120         Add a configure time option: --disable-acl.
44121         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44122         AC_ARG_ENABLE(acl).
44123
44124 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44125
44126         * tests/test-localename.c: Don't include obsolete "setenv.h".
44127
44128         * modules/localename-tests (Depends-on): Need unsetenv.
44129
44130 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44131
44132         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44133
44134 2008-01-06  Colin Watson  <cjwatson@debian.org>
44135
44136         * users.txt: Add man-db.
44137
44138 2008-01-07  Bruno Haible  <bruno@clisp.org>
44139
44140         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44141         previous section name.
44142
44143 2008-01-07  Bruno Haible  <bruno@clisp.org>
44144
44145         * lib/progname.c (set_program_name): Don't strip off a leading
44146         "lt-" prefix outside a .libs directory.
44147         Suggested by Paul Eggert.
44148
44149 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44150             Bruno Haible  <bruno@clisp.org>
44151
44152         Improve memory cleanup in 'relocatable' module.
44153         * lib/relocatable.h (compute_curr_prefix): Change return type to
44154         'char *'.
44155         * lib/relocatable.c (compute_curr_prefix): Change return type to
44156         'char *'. Free curr_installdir after use.
44157         (relocate): Free curr_prefix_better after use.
44158         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44159
44160 2008-01-01  Bruno Haible  <bruno@clisp.org>
44161
44162         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44163         failure on older glibc systems.
44164         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44165
44166 2008-01-05  Eric Blake  <ebb9@byu.net>
44167
44168         Avoid quadratic system memmem.
44169         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44170         Reported by Ralf Wildenhues.
44171
44172         Fix memmem test for mingw.
44173         * modules/memmem-tests (configure.ac): Check for alarm.
44174         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44175         it.
44176         * doc/functions/memmem.texi: New file.
44177         * doc/gnulib.texi (Function Substitutes): Add memmem.
44178         Reported by Bruno Haible.
44179
44180 2008-01-04  Bruno Haible  <bruno@clisp.org>
44181
44182         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44183         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44184         gl_HEADER_STRING_H_DEFAULTS.
44185
44186 2008-01-04  Eric Blake  <ebb9@byu.net>
44187
44188         Shorten duration of memmem test.
44189         * tests/test-memmem.c (main): Use alarm to declare failure if test
44190         is taking too long.
44191         Reported by Ralf Wildenhues.
44192
44193 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44194
44195         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44196         string, needed by strerror.
44197
44198 2008-01-03  Colin Watson  <cjwatson@debian.org>
44199             Bruno Haible  <bruno@clisp.org>
44200
44201         * doc/gnulib-tool.texi (Localization): New section.
44202
44203 2008-01-02  Bruno Haible  <bruno@clisp.org>
44204
44205         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44206         variables to 'unsigned char *' type.
44207         Reported by Paul Eggert.
44208
44209 2008-01-02  Jim Meyering  <jim@meyering.net>
44210
44211         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44212
44213 2007-12-31  Jim Meyering  <jim@meyering.net>
44214
44215         Avoid use of private FTS type name.
44216         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44217
44218 2007-12-30  Karl Berry  <karl@gnu.org>
44219
44220         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44221         work around defect in Texinfo and/or the standalone Info browser.
44222
44223 2007-12-30  Bruno Haible  <bruno@clisp.org>
44224
44225         Unify 5 copies of the KMP code.
44226         * lib/str-kmp.h: New file.
44227         * lib/c-strcasestr.c: Include str-kmp.h.
44228         (knuth_morris_pratt): Remove function.
44229         (c_strcasestr): Update.
44230         * lib/c-strstr.c: Include str-kmp.h.
44231         (knuth_morris_pratt): Remove function.
44232         (c_strcasestr): Update.
44233         * lib/mbscasestr.c: Include str-kmp.h.
44234         (knuth_morris_pratt_unibyte): Remove function.
44235         * lib/mbsstr.c: Include str-kmp.h.
44236         (knuth_morris_pratt_unibyte): Remove function.
44237         * lib/strcasestr.c: Include str-kmp.h.
44238         (knuth_morris_pratt): Remove function.
44239         (strcasestr): Update.
44240         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44241         * modules/c-strstr (Files): Likewise.
44242         * modules/mbscasestr (Files): Likewise.
44243         * modules/mbsstr (Files): Likewise.
44244         * modules/strcasestr (Files): Likewise.
44245         Suggested by Paul Eggert.
44246
44247 2007-12-30  Bruno Haible  <bruno@clisp.org>
44248
44249         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44250         defined.
44251
44252 2007-12-30  Bruno Haible  <bruno@clisp.org>
44253
44254         * lib/xmalloca.h: Include xalloc.h.
44255         (xnmalloca): New macro.
44256
44257 2007-12-30  Bruno Haible  <bruno@clisp.org>
44258
44259         * lib/malloca.h (nmalloca): New macro.
44260         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44261         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44262         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44263         knuth_morris_pratt_multibyte): Likewise.
44264         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44265         knuth_morris_pratt_multibyte): Likewise.
44266         * lib/memmem.c (knuth_morris_pratt): Likewise.
44267         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44268
44269 2007-12-25  Bruno Haible  <bruno@clisp.org>
44270
44271         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44272         * lib/glob.c: Don't include openat.h.
44273         (link_exists2_p): Add back the code that deals with the
44274         !GLOB_ALTDIRFUNC case.
44275         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44276         let it do the filename concatenation.
44277         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44278         * modules/glob (Depends-on): Remove openat.
44279
44280 2007-12-31  Bruno Haible  <bruno@clisp.org>
44281
44282         * modules/dirfd (License): Change to LGPLv2+.
44283         Approved by Jim Meyering.
44284
44285 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44286
44287         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44288         when multiplying M by sizeof (size_t).
44289
44290 2007-12-10  Martin Lambers  <marlam@marlam.de>
44291
44292         Override getpagesize on mingw.
44293         * lib/getpagesize.c: New file.
44294         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44295         * modules/getpagesize (Files): Add lib/getpagesize.c.
44296         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44298         REPLACE_GETPAGESIZE.
44299         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44300
44301 2007-12-25  Bruno Haible  <bruno@clisp.org>
44302
44303         * modules/localcharset (Notice): New field.
44304         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44305         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44306
44307 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44308             Bruno Haible  <bruno@clisp.org>
44309
44310         Avoid using the syntax symbol() in formatted documentation.
44311         * MODULES.html.sh (func_module): When replacing symbol() with a
44312         hyperlink, remove the parentheses. Show an error if some remain.
44313         Recognize and render the '...' syntax.
44314         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44315         Rework. Add paragraph about GCC's inlining.
44316         * doc/alloca.texi: Likewise.
44317         * doc/error.texi: Remove parentheses from symbol reference.
44318         * doc/gnulib-intro.texi: Likewise.
44319         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44320         * modules/fnmatch (Description): Reword to say "the ... function".
44321         * modules/full-read (Description): Likewise.
44322         * modules/full-write (Description): Likewise.
44323         * modules/safe-read (Description): Likewise.
44324         * modules/safe-write (Description): Likewise.
44325         * modules/strchrnul (Description): Likewise.
44326         * modules/trim (Description): Likewise.
44327         * modules/error (Description): Remove parentheses from symbol
44328         references.
44329         * modules/verror (Description): Likewise.
44330         Reported by Karl Berry.
44331
44332 2007-12-25  Bruno Haible  <bruno@clisp.org>
44333
44334         Fixup after 2007-10-16 commit.
44335         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44336
44337 2007-12-24  Bruno Haible  <bruno@clisp.org>
44338
44339         Make --enable-relocatable work with DESTDIR.
44340         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44341         to compute installdir from destprog.
44342         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44343         also set the RELOC_DESTDIR variable.
44344         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44345
44346 2007-12-24  Bruno Haible  <bruno@clisp.org>
44347
44348         Fix link error due to xalloc_die().
44349         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44350         of xreadlink.
44351         * lib/relocwrapper.c: Update comments.
44352         * build-aux/install-reloc: Remove xreadlink.c from file list.
44353         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44354         xreadlink.c.
44355         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44356
44357 2007-12-24  Bruno Haible  <bruno@clisp.org>
44358
44359         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44360         * lib/setenv.h: Remove file.
44361         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44362         lib/setenv.h.
44363         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44364         (Depends-on): Add stdlib.
44365         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44366         gl_FUNC_UNSETENV.
44367         (Include): Replace setenv.h with <stdlib.h>.
44368         * modules/unsetenv: New file.
44369         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44370         * lib/unsetenv.c: Include <stdlib.h> first.
44371         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44372         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44373         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44374         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44375         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44376         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44378         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44379         * doc/functions/unsetenv.texi: Update.
44380         * modules/xsetenv (Depends-on): Add unsetenv.
44381         * modules/getdate (Depends-on): Likewise.
44382         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44383         * lib/xsetenv.c: Don't include setenv.h.
44384         * lib/getdate.y: Likewise.
44385         * lib/relocwrapper.c: Likewise.
44386         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44387         (Depends-on): Add stdlib.
44388         * NEWS: Mention the changes.
44389         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44390
44391 2007-12-23  Bruno Haible  <bruno@clisp.org>
44392
44393         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44394         indentation.
44395
44396 2007-12-23  Bruno Haible  <bruno@clisp.org>
44397
44398         * lib/c-strcasestr.c: Add more comments.
44399         * lib/c-strstr.c: Likewise.
44400         * lib/mbscasestr.c: Likewise.
44401         * lib/mbsstr.c: Likewise.
44402         * lib/strcasestr.c: Likewise.
44403         * lib/memmem.c: Likewise.
44404
44405 2007-12-23  Bruno Haible  <bruno@clisp.org>
44406
44407         * tests/test-memmem.c: Include <string.h> first.
44408
44409 2007-12-22  Bruno Haible  <bruno@clisp.org>
44410
44411         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44412         the contents of $testsbase.
44413         Reported by Ralf Wildenhues.
44414
44415 2007-12-22  Bruno Haible  <bruno@clisp.org>
44416
44417         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44418         two variables local_ldadd_before, local_ldadd_last.
44419
44420 2007-12-20  Eric Blake  <ebb9@byu.net>
44421
44422         Work around circular library issue when cross-compiling.
44423         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44424         that progname.o does not need to pull in rpl_memcmp.
44425
44426 2007-12-19  Eric Blake  <ebb9@byu.net>
44427
44428         Fix memmem to avoid O(n^2) worst-case complexity.
44429         * lib/memmem.c (knuth_morris_pratt): New function.
44430         (memmem): Use it if first few naive iterations fail.
44431         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44432         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44433         * modules/memchr (License): Likewise.
44434         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44435         malloca.
44436         * tests/test-memmem.c: Rewrite, borrowing ideas from
44437         test-mbsstr1.c; the old version wouldn't even compile!
44438         * modules/memmem-tests: New file.
44439         * lib/string.in.h (rpl_memmem): Add declaration.
44440         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44442         REPLACE_MEMMEM.
44443
44444 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44445
44446         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44447         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44448         before any system include files, and undef after them all.  This
44449         should fix a problem on VMS reported by John E. Malmberg in
44450         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44451
44452 2007-12-17  Eric Blake  <ebb9@byu.net>
44453
44454         Revert addition of verify, for BSD/OS.
44455         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44456         can't handle large files, for the sake of obsolete platforms.
44457         * modules/fseeko (Depends-on): Remove verify.
44458         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44459         * doc/functions/ftello.texi (ftello): Likewise.
44460         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44461         Reported by Larry Jones.
44462
44463 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44464
44465         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44466         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44467
44468 2007-12-17  Jim Meyering  <meyering@redhat.com>
44469
44470         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44471         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44472         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44473         * modules/getcwd (Depends-on): Add openat.
44474         Reported by Petr Salinger.
44475
44476 2007-12-17  Bruno Haible  <bruno@clisp.org>
44477
44478         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44479         avoid a segmentation fault of the configure test on x86_64 systems.
44480
44481 2007-12-15  Jim Meyering  <meyering@redhat.com>
44482
44483         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44484
44485 2007-12-13  Eric Blake  <ebb9@byu.net>
44486
44487         Another fseek test.
44488         * tests/test-fseek.c (main): Also test ungetc handling.
44489         * tests/test-fseeko.c (main): Likewise.
44490         * modules/fseeko (Depends-on): Add verify.
44491         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44492         large.
44493         Reported by Larry Jones.
44494
44495         Fix fseeko on mingw.
44496         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44497         seek.
44498
44499         Beef up fseek tests.
44500         * tests/test-fseek.c (main): Also test eof handling.
44501         * tests/test-fseeko.c (main): Likewise.
44502         Reported by Larry Jones.
44503
44504 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44505
44506         Fix fseeko on BSD-based platforms.
44507         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44508         successful seek.
44509
44510 2007-12-12  Eric Blake  <ebb9@byu.net>
44511
44512         Allow circular dependency of separate libtests.a
44513         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44514         when use_libtests.
44515
44516 2007-12-11  Eric Blake  <ebb9@byu.net>
44517
44518         Fix bug with -0.0L in previous patch.
44519         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44520         * tests/test-isnan.c (main): Also test on zeroes.
44521         * tests/test-isnanf.c (main): Likewise.
44522         * tests/test-isnanl.h (main): Likewise.
44523
44524         Detect pseudo-denormals on x86 even when cross-compiling.
44525         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44526         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44527         invalid bit patterns that happen to satisfy ==.
44528
44529         Avoid link failures with separate libtests.a.
44530         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44531         last, to satisfy circular dependencies.
44532
44533 2007-12-11  Eric Blake  <ebb9@byu.net>
44534         and Bruno Haible  <bruno@clisp.org>
44535
44536         Fix OpenBSD 4.0 <float.h> handling of long double.
44537         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44538         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44539         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44540
44541 2007-12-11  Jim Meyering  <meyering@redhat.com>
44542
44543         * users.txt: Add libvirt.
44544
44545         Support versions of autoconf prior to 2.59c.
44546         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44547         if it is not already defined.
44548
44549 2007-12-09  Bruno Haible  <bruno@clisp.org>
44550
44551         Let 'gnulib-tool --import' collect sources needed for the tests in
44552         tests/ rather than in lib/.
44553         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44554         argument. If true, add rules to generate libtests.a, and put libtests.a
44555         into $(LDADD). Consider source files in subdirectories and set
44556         uses_subdirs.
44557         (func_emit_initmacro_start, func_emit_initmacro_end,
44558         func_emit_initmacro_done): Pass all arguments explicitly.
44559         (func_import): Determine two module lists main_modules,
44560         testsrelated_modules. Determine use_libtests. Determine two variables
44561         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44562         instead of just sed_transform_lib_file. Determine two variables
44563         main_files and testsrelated_files. Compute 'files' as the union of
44564         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44565         func_add_or_update. In the generated gnulib-comp.m4, collect the
44566         object files for tests/ in different variables than those for lib/.
44567         Substitute LIBTESTS_LIBDEPS.
44568         (func_create_testdir): Combine the uses_subdirs results from
44569         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44570
44571 2007-12-09  Bruno Haible  <bruno@clisp.org>
44572
44573         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44574         the build-aux directory.
44575
44576 2007-12-09  Bruno Haible  <bruno@clisp.org>
44577
44578         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44579         introduced on 2006-09-09.
44580
44581 2007-12-07  Jim Meyering  <meyering@redhat.com>
44582
44583         Let these macros work also with autoconf-2.59.
44584         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44585         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44586         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44587
44588 2007-12-06  Jim Meyering  <meyering@redhat.com>
44589
44590         Avoid a configure-time syntax error in gl_FUNC_ACL.
44591         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44592         function in each branch, before testing the cache variable.
44593
44594 2007-12-04  Eric Blake  <ebb9@byu.net>
44595
44596         Make scripts executable.
44597         * build-aux/config.guess: Add execute permissions.
44598         * build-aux/config.sub: Likewise.
44599         * build-aux/gendocs.sh: Likewise.
44600
44601         Fix frexp on mingw.
44602         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44603         cross-compiling.
44604         * doc/functions/frexp.texi (frexp): Document the bug.
44605
44606         Make cygwin fseeko check more reliable.
44607         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44608         version numbers, rather than unrelated feature check.
44609         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44610         * doc/functions/ftello.texi (ftello): Likewise.
44611         Reported by Bruno Haible.
44612
44613         * m4/strerror.m4: Bump version number.
44614
44615 2007-12-03  Bruno Haible  <bruno@clisp.org>
44616
44617         * doc/functions/mprotect.texi: Mention the mingw problem.
44618
44619 2007-12-03  Eric Blake  <ebb9@byu.net>
44620
44621         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44622         REPLACE_STRERROR is initialized before this macro.
44623
44624 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44625
44626         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44627         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44628         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44629         put -lsec in even for programs other than 'ls'.  This fixes a problem
44630         for gettext reported by Bruno Haible in
44631         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44632         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44633         Add support for Solaris 10.  This isn't efficient, but should get the
44634         job done for now.
44635
44636 2007-12-03  James Youngman  <jay@gnu.org>
44637
44638         * doc/regexprops-generic.texi: change "an close-group" to "a
44639         close-group" and "illegal" to "not allowed".
44640
44641 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44642
44643         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44644         pr_byname.h. Needed for the rare case when the maintainer has done
44645         "make maintainer-clean" in the source directory and then attempts a
44646         build outside the source directory.
44647         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44648         scripts_byname.h.
44649
44650 2007-12-02  Martin Lambers <marlam@marlam.de>
44651             Bruno Haible  <bruno@clisp.org>
44652
44653         * lib/getpagesize.h: Remove file.
44654         * lib/unistd.in.h: Include declaration of getpagesize here.
44655         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44656         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44657         HAVE_SYS_PARAM_H.
44658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44659         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44660         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44661         (Depends-on): Add unistd.
44662         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44663         (Include): Use <unistd.h> instead of getpagesize.h.
44664         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44665         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44666         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44667         gl_GETPAGESIZE invocation, already handled by module dependency.
44668         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44669
44670 2007-12-02  Bruno Haible  <bruno@clisp.org>
44671
44672         * modules/strings-tests: New file.
44673         * tests/test-strings.c: New file.
44674
44675         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44676         * lib/strings.in.h: New file.
44677         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44678         * m4/strings_h.m4: New file.
44679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44680         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44681         * modules/strings: New file.
44682         * modules/string (Makefile.am): Update.
44683         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44684         Reported by Karl Berry.
44685
44686 2007-12-01  Eric Blake  <ebb9@byu.net>
44687
44688         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44689         accomodate fix in cygwin 1.5.25.
44690
44691 2007-12-01  Jim Meyering  <meyering@redhat.com>
44692
44693         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44694         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44695         that would inhibit utf8-optimization of a regexp containing line-
44696         or buffer-anchors, e.g., `^', `$'.
44697
44698 2007-11-30  Bruno Haible  <bruno@clisp.org>
44699
44700         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44701         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44702         glthread_recursive_lock_init.
44703         * lib/lock.c (glthread_recursive_lock_init)
44704         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44705         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44706
44707 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44708
44709         New function qset_acl, like set_acl but with syscall semantics.
44710         * lib/acl.h (qset_acl): New decl.
44711         * lib/acl.c (qset_acl): New function.
44712         (set_acl): Use new function.  Use more-consistent diagnostics.
44713
44714 2007-11-28  Jim Meyering  <meyering@redhat.com>
44715
44716         * modules/physmem (License): Change from GPL to LGPLv2+.
44717
44718 2007-11-26  Bruno Haible  <bruno@clisp.org>
44719
44720         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44721         'long double' type has excess precision.
44722         Reported by Jim Meyering in
44723         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44724
44725 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44726
44727         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44728         Sync from <http://gnu.org/licenses>.
44729         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44730         with license text from same location.
44731         * doc/maintain.texi, doc/standards.texi:  Sync from
44732         <http://savannah.gnu.org/projects/gnustandards>.
44733
44734 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44735         and Jim Meyering  <meyering@redhat.com>
44736
44737         Adjust getdate' grammar to accept a slightly more regular language.
44738         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44739         Before, the former was rejected.
44740         * lib/getdate.y (digits_to_date_time): New function, factored
44741         out of ...
44742         (number): ...here.  Just call digits_to_date_time.
44743         (hybrid): New non-terminal to handle an <unsigned number,
44744         signed relative offset> sequence consistently.
44745
44746 2007-11-18  Jim Meyering  <meyering@redhat.com>
44747
44748         Pull my changes from coreutils:
44749         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44750         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44751         use of $gnulib_tool_option_extras, so that it's separated from the
44752         preceding argument.
44753
44754         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44755         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44756         parent destination directories before copying a file into place.
44757
44758 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44759
44760         bootstrap: work also with 4-argument variant of AC_INIT
44761         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44762
44763 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44764
44765         Port test-getaddrinfo to Solaris.
44766         Problem reported by Bruno Haible in
44767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44768         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44769         explanation of setting 'hints'.
44770         Don't reject an implementation merely because it returns EAI_SERVICE.
44771         (EAI_SERVICE): Define to 0 if not defined.
44772
44773 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44774
44775         The license of gnu-make and posix-shell is now "GPLed build tool".
44776         * modules/gnu-make (License): Likewise.
44777         * modules/posix-shell (License): Likewise.
44778
44779         New module posix-shell, for determining a POSIX shell
44780         or perhaps something that is close enough to a POSIX shell.
44781         * m4/posix-shell.m4: New file.
44782         * modules/posix-shell: New file.
44783
44784         * MODULES.html.sh: Mention new module.
44785
44786         New module gnu-make, for determining whether we're using GNU Make.
44787         * m4/gnu-make.m4: New file.
44788         * modules/gnu-make: New file.
44789         * MODULES.html.sh: Mention new module.
44790
44791 2007-11-14  Jim Meyering  <meyering@redhat.com>
44792
44793         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44794         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44795         use this macro to create a function _definition_.
44796         Remove useless "#undef ARGMATCH_DIE".
44797
44798 2007-11-14  Bruno Haible  <bruno@clisp.org>
44799
44800         * lib/config.charset: Update for OpenBSD 4.1.
44801         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44802
44803 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44804
44805         Document 64-bit #if problems in stdint.texi.
44806         * doc/headers/stdint.texi (stdint.h): Mention problems with
44807         64-bit-#if, and how to work around them.
44808
44809         Don't insist on 'long long int' support in the preprocessor.  It
44810         breaks too many things.  For example, PRIdMAX still uses a 'long
44811         long int' format with the latest Sun compiler, even though
44812         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44813         preprocessor problem.  This causes the latest coreutils to dump
44814         core on Solaris 10 sparc with the Sun C compiler.
44815         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44816         the troublesome expressions at configure-time, not at #if-time.
44817         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44818         preprocessor.
44819         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44820         compile-time C checks, done at 'configure'-time.
44821         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44822         * modules/inttypes (Makefile): Substitute the new symbols that
44823         gl_INTTYPES_H now generates.
44824         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44825
44826 2007-11-12  Bruno Haible  <bruno@clisp.org>
44827
44828         Tests for Unicode character classification functions.
44829
44830         * modules/unictype/bidicategory-byname-tests: New file.
44831         * modules/unictype/bidicategory-name-tests: New file.
44832         * modules/unictype/bidicategory-of-tests: New file.
44833         * modules/unictype/bidicategory-test-tests: New file.
44834         * modules/unictype/block-list-tests: New file.
44835         * modules/unictype/block-of-tests: New file.
44836         * modules/unictype/block-test-tests: New file.
44837         * modules/unictype/category-C-tests: New file.
44838         * modules/unictype/category-Cc-tests: New file.
44839         * modules/unictype/category-Cf-tests: New file.
44840         * modules/unictype/category-Cn-tests: New file.
44841         * modules/unictype/category-Co-tests: New file.
44842         * modules/unictype/category-Cs-tests: New file.
44843         * modules/unictype/category-L-tests: New file.
44844         * modules/unictype/category-Ll-tests: New file.
44845         * modules/unictype/category-Lm-tests: New file.
44846         * modules/unictype/category-Lo-tests: New file.
44847         * modules/unictype/category-Lt-tests: New file.
44848         * modules/unictype/category-Lu-tests: New file.
44849         * modules/unictype/category-M-tests: New file.
44850         * modules/unictype/category-Mc-tests: New file.
44851         * modules/unictype/category-Me-tests: New file.
44852         * modules/unictype/category-Mn-tests: New file.
44853         * modules/unictype/category-N-tests: New file.
44854         * modules/unictype/category-Nd-tests: New file.
44855         * modules/unictype/category-Nl-tests: New file.
44856         * modules/unictype/category-No-tests: New file.
44857         * modules/unictype/category-P-tests: New file.
44858         * modules/unictype/category-Pc-tests: New file.
44859         * modules/unictype/category-Pd-tests: New file.
44860         * modules/unictype/category-Pe-tests: New file.
44861         * modules/unictype/category-Pf-tests: New file.
44862         * modules/unictype/category-Pi-tests: New file.
44863         * modules/unictype/category-Po-tests: New file.
44864         * modules/unictype/category-Ps-tests: New file.
44865         * modules/unictype/category-S-tests: New file.
44866         * modules/unictype/category-Sc-tests: New file.
44867         * modules/unictype/category-Sk-tests: New file.
44868         * modules/unictype/category-Sm-tests: New file.
44869         * modules/unictype/category-So-tests: New file.
44870         * modules/unictype/category-Z-tests: New file.
44871         * modules/unictype/category-Zl-tests: New file.
44872         * modules/unictype/category-Zp-tests: New file.
44873         * modules/unictype/category-Zs-tests: New file.
44874         * modules/unictype/category-and-not-tests: New file.
44875         * modules/unictype/category-and-tests: New file.
44876         * modules/unictype/category-byname-tests: New file.
44877         * modules/unictype/category-name-tests: New file.
44878         * modules/unictype/category-none-tests: New file.
44879         * modules/unictype/category-of-tests: New file.
44880         * modules/unictype/category-or-tests: New file.
44881         * modules/unictype/category-test-withtable-tests: New file.
44882         * modules/unictype/combining-class-tests: New file.
44883         * modules/unictype/ctype-alnum-tests: New file.
44884         * modules/unictype/ctype-alpha-tests: New file.
44885         * modules/unictype/ctype-blank-tests: New file.
44886         * modules/unictype/ctype-cntrl-tests: New file.
44887         * modules/unictype/ctype-digit-tests: New file.
44888         * modules/unictype/ctype-graph-tests: New file.
44889         * modules/unictype/ctype-lower-tests: New file.
44890         * modules/unictype/ctype-print-tests: New file.
44891         * modules/unictype/ctype-punct-tests: New file.
44892         * modules/unictype/ctype-space-tests: New file.
44893         * modules/unictype/ctype-upper-tests: New file.
44894         * modules/unictype/ctype-xdigit-tests: New file.
44895         * modules/unictype/decimal-digit-tests: New file.
44896         * modules/unictype/digit-tests: New file.
44897         * modules/unictype/mirror-tests: New file.
44898         * modules/unictype/numeric-tests: New file.
44899         * modules/unictype/property-alphabetic-tests: New file.
44900         * modules/unictype/property-ascii-hex-digit-tests: New file.
44901         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44902         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44903         * modules/unictype/property-bidi-block-separator-tests: New file.
44904         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44905         * modules/unictype/property-bidi-common-separator-tests: New file.
44906         * modules/unictype/property-bidi-control-tests: New file.
44907         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44908         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44909         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44910         * modules/unictype/property-bidi-european-digit-tests: New file.
44911         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44912         * modules/unictype/property-bidi-left-to-right-tests: New file.
44913         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44914         * modules/unictype/property-bidi-other-neutral-tests: New file.
44915         * modules/unictype/property-bidi-pdf-tests: New file.
44916         * modules/unictype/property-bidi-segment-separator-tests: New file.
44917         * modules/unictype/property-bidi-whitespace-tests: New file.
44918         * modules/unictype/property-byname-tests: New file.
44919         * modules/unictype/property-combining-tests: New file.
44920         * modules/unictype/property-composite-tests: New file.
44921         * modules/unictype/property-currency-symbol-tests: New file.
44922         * modules/unictype/property-dash-tests: New file.
44923         * modules/unictype/property-decimal-digit-tests: New file.
44924         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44925         * modules/unictype/property-deprecated-tests: New file.
44926         * modules/unictype/property-diacritic-tests: New file.
44927         * modules/unictype/property-extender-tests: New file.
44928         * modules/unictype/property-format-control-tests: New file.
44929         * modules/unictype/property-grapheme-base-tests: New file.
44930         * modules/unictype/property-grapheme-extend-tests: New file.
44931         * modules/unictype/property-grapheme-link-tests: New file.
44932         * modules/unictype/property-hex-digit-tests: New file.
44933         * modules/unictype/property-hyphen-tests: New file.
44934         * modules/unictype/property-id-continue-tests: New file.
44935         * modules/unictype/property-id-start-tests: New file.
44936         * modules/unictype/property-ideographic-tests: New file.
44937         * modules/unictype/property-ids-binary-operator-tests: New file.
44938         * modules/unictype/property-ids-trinary-operator-tests: New file.
44939         * modules/unictype/property-ignorable-control-tests: New file.
44940         * modules/unictype/property-iso-control-tests: New file.
44941         * modules/unictype/property-join-control-tests: New file.
44942         * modules/unictype/property-left-of-pair-tests: New file.
44943         * modules/unictype/property-line-separator-tests: New file.
44944         * modules/unictype/property-logical-order-exception-tests: New file.
44945         * modules/unictype/property-lowercase-tests: New file.
44946         * modules/unictype/property-math-tests: New file.
44947         * modules/unictype/property-non-break-tests: New file.
44948         * modules/unictype/property-not-a-character-tests: New file.
44949         * modules/unictype/property-numeric-tests: New file.
44950         * modules/unictype/property-other-alphabetic-tests: New file.
44951         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44952         * modules/unictype/property-other-grapheme-extend-tests: New file.
44953         * modules/unictype/property-other-id-continue-tests: New file.
44954         * modules/unictype/property-other-id-start-tests: New file.
44955         * modules/unictype/property-other-lowercase-tests: New file.
44956         * modules/unictype/property-other-math-tests: New file.
44957         * modules/unictype/property-other-uppercase-tests: New file.
44958         * modules/unictype/property-paired-punctuation-tests: New file.
44959         * modules/unictype/property-paragraph-separator-tests: New file.
44960         * modules/unictype/property-pattern-syntax-tests: New file.
44961         * modules/unictype/property-pattern-white-space-tests: New file.
44962         * modules/unictype/property-private-use-tests: New file.
44963         * modules/unictype/property-punctuation-tests: New file.
44964         * modules/unictype/property-quotation-mark-tests: New file.
44965         * modules/unictype/property-radical-tests: New file.
44966         * modules/unictype/property-sentence-terminal-tests: New file.
44967         * modules/unictype/property-soft-dotted-tests: New file.
44968         * modules/unictype/property-space-tests: New file.
44969         * modules/unictype/property-terminal-punctuation-tests: New file.
44970         * modules/unictype/property-test-tests: New file.
44971         * modules/unictype/property-titlecase-tests: New file.
44972         * modules/unictype/property-unassigned-code-value-tests: New file.
44973         * modules/unictype/property-unified-ideograph-tests: New file.
44974         * modules/unictype/property-uppercase-tests: New file.
44975         * modules/unictype/property-variation-selector-tests: New file.
44976         * modules/unictype/property-white-space-tests: New file.
44977         * modules/unictype/property-xid-continue-tests: New file.
44978         * modules/unictype/property-xid-start-tests: New file.
44979         * modules/unictype/property-zero-width-tests: New file.
44980         * modules/unictype/scripts-tests: New file.
44981         * modules/unictype/syntax-c-ident-tests: New file.
44982         * modules/unictype/syntax-c-whitespace-tests: New file.
44983         * modules/unictype/syntax-java-ident-tests: New file.
44984         * modules/unictype/syntax-java-whitespace-tests: New file.
44985         * tests/unictype/test-bidi_byname.c: New file.
44986         * tests/unictype/test-bidi_name.c: New file.
44987         * tests/unictype/test-bidi_of.c: New file.
44988         * tests/unictype/test-bidi_test.c: New file.
44989         * tests/unictype/test-block_list.c: New file.
44990         * tests/unictype/test-block_of.c: New file.
44991         * tests/unictype/test-block_test.c: New file.
44992         * tests/unictype/test-categ_and.c: New file.
44993         * tests/unictype/test-categ_and_not.c: New file.
44994         * tests/unictype/test-categ_byname.c: New file.
44995         * tests/unictype/test-categ_name.c: New file.
44996         * tests/unictype/test-categ_none.c: New file.
44997         * tests/unictype/test-categ_of.c: New file.
44998         * tests/unictype/test-categ_or.c: New file.
44999         * tests/unictype/test-categ_test_withtable.c: New file.
45000         * tests/unictype/test-combining.c: New file.
45001         * tests/unictype/test-decdigit.c: New file.
45002         * tests/unictype/test-digit.c: New file.
45003         * tests/unictype/test-mirror.c: New file.
45004         * tests/unictype/test-numeric.c: New file.
45005         * tests/unictype/test-pr_byname.c: New file.
45006         * tests/unictype/test-pr_test.c: New file.
45007         * tests/unictype/test-predicate-part1.h: New file.
45008         * tests/unictype/test-predicate-part2.h: New file.
45009         * tests/unictype/test-scripts.c: New file.
45010         * tests/unictype/test-sy_c_ident.c: New file.
45011         * tests/unictype/test-sy_java_ident.c: New file.
45012
45013         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45014         for Unicode 5.0.0.
45015         * tests/unictype/test-categ_Cc.c: Likewise.
45016         * tests/unictype/test-categ_Cf.c: Likewise.
45017         * tests/unictype/test-categ_Cn.c: Likewise.
45018         * tests/unictype/test-categ_Co.c: Likewise.
45019         * tests/unictype/test-categ_Cs.c: Likewise.
45020         * tests/unictype/test-categ_L.c: Likewise.
45021         * tests/unictype/test-categ_Ll.c: Likewise.
45022         * tests/unictype/test-categ_Lm.c: Likewise.
45023         * tests/unictype/test-categ_Lo.c: Likewise.
45024         * tests/unictype/test-categ_Lt.c: Likewise.
45025         * tests/unictype/test-categ_Lu.c: Likewise.
45026         * tests/unictype/test-categ_M.c: Likewise.
45027         * tests/unictype/test-categ_Mc.c: Likewise.
45028         * tests/unictype/test-categ_Me.c: Likewise.
45029         * tests/unictype/test-categ_Mn.c: Likewise.
45030         * tests/unictype/test-categ_N.c: Likewise.
45031         * tests/unictype/test-categ_Nd.c: Likewise.
45032         * tests/unictype/test-categ_Nl.c: Likewise.
45033         * tests/unictype/test-categ_No.c: Likewise.
45034         * tests/unictype/test-categ_P.c: Likewise.
45035         * tests/unictype/test-categ_Pc.c: Likewise.
45036         * tests/unictype/test-categ_Pd.c: Likewise.
45037         * tests/unictype/test-categ_Pe.c: Likewise.
45038         * tests/unictype/test-categ_Pf.c: Likewise.
45039         * tests/unictype/test-categ_Pi.c: Likewise.
45040         * tests/unictype/test-categ_Po.c: Likewise.
45041         * tests/unictype/test-categ_Ps.c: Likewise.
45042         * tests/unictype/test-categ_S.c: Likewise.
45043         * tests/unictype/test-categ_Sc.c: Likewise.
45044         * tests/unictype/test-categ_Sk.c: Likewise.
45045         * tests/unictype/test-categ_Sm.c: Likewise.
45046         * tests/unictype/test-categ_So.c: Likewise.
45047         * tests/unictype/test-categ_Z.c: Likewise.
45048         * tests/unictype/test-categ_Zl.c: Likewise.
45049         * tests/unictype/test-categ_Zp.c: Likewise.
45050         * tests/unictype/test-categ_Zs.c: Likewise.
45051         * tests/unictype/test-ctype_alnum.c: Likewise.
45052         * tests/unictype/test-ctype_alpha.c: Likewise.
45053         * tests/unictype/test-ctype_blank.c: Likewise.
45054         * tests/unictype/test-ctype_cntrl.c: Likewise.
45055         * tests/unictype/test-ctype_digit.c: Likewise.
45056         * tests/unictype/test-ctype_graph.c: Likewise.
45057         * tests/unictype/test-ctype_lower.c: Likewise.
45058         * tests/unictype/test-ctype_print.c: Likewise.
45059         * tests/unictype/test-ctype_punct.c: Likewise.
45060         * tests/unictype/test-ctype_space.c: Likewise.
45061         * tests/unictype/test-ctype_upper.c: Likewise.
45062         * tests/unictype/test-ctype_xdigit.c: Likewise.
45063         * tests/unictype/test-decdigit.h: Likewise.
45064         * tests/unictype/test-digit.h: Likewise.
45065         * tests/unictype/test-numeric.h: Likewise.
45066         * tests/unictype/test-pr_alphabetic.c: Likewise.
45067         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45068         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45069         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45070         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45071         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45072         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45073         * tests/unictype/test-pr_bidi_control.c: Likewise.
45074         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45075         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45076         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45077         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45078         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45079         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45080         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45081         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45082         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45083         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45084         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45085         * tests/unictype/test-pr_combining.c: Likewise.
45086         * tests/unictype/test-pr_composite.c: Likewise.
45087         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45088         * tests/unictype/test-pr_dash.c: Likewise.
45089         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45090         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45091         * tests/unictype/test-pr_deprecated.c: Likewise.
45092         * tests/unictype/test-pr_diacritic.c: Likewise.
45093         * tests/unictype/test-pr_extender.c: Likewise.
45094         * tests/unictype/test-pr_format_control.c: Likewise.
45095         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45096         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45097         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45098         * tests/unictype/test-pr_hex_digit.c: Likewise.
45099         * tests/unictype/test-pr_hyphen.c: Likewise.
45100         * tests/unictype/test-pr_id_continue.c: Likewise.
45101         * tests/unictype/test-pr_id_start.c: Likewise.
45102         * tests/unictype/test-pr_ideographic.c: Likewise.
45103         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45104         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45105         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45106         * tests/unictype/test-pr_iso_control.c: Likewise.
45107         * tests/unictype/test-pr_join_control.c: Likewise.
45108         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45109         * tests/unictype/test-pr_line_separator.c: Likewise.
45110         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45111         * tests/unictype/test-pr_lowercase.c: Likewise.
45112         * tests/unictype/test-pr_math.c: Likewise.
45113         * tests/unictype/test-pr_non_break.c: Likewise.
45114         * tests/unictype/test-pr_not_a_character.c: Likewise.
45115         * tests/unictype/test-pr_numeric.c: Likewise.
45116         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45117         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45118         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45119         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45120         * tests/unictype/test-pr_other_id_start.c: Likewise.
45121         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45122         * tests/unictype/test-pr_other_math.c: Likewise.
45123         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45124         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45125         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45126         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45127         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45128         * tests/unictype/test-pr_private_use.c: Likewise.
45129         * tests/unictype/test-pr_punctuation.c: Likewise.
45130         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45131         * tests/unictype/test-pr_radical.c: Likewise.
45132         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45133         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45134         * tests/unictype/test-pr_space.c: Likewise.
45135         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45136         * tests/unictype/test-pr_titlecase.c: Likewise.
45137         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45138         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45139         * tests/unictype/test-pr_uppercase.c: Likewise.
45140         * tests/unictype/test-pr_variation_selector.c: Likewise.
45141         * tests/unictype/test-pr_white_space.c: Likewise.
45142         * tests/unictype/test-pr_xid_continue.c: Likewise.
45143         * tests/unictype/test-pr_xid_start.c: Likewise.
45144         * tests/unictype/test-pr_zero_width.c: Likewise.
45145         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45146         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45147
45148 2007-11-12  Bruno Haible  <bruno@clisp.org>
45149
45150         Unicode character classification functions.
45151         * lib/unictype.h: New file.
45152         * modules/unictype/base: New file.
45153         * modules/unictype/category-L: New file.
45154         * modules/unictype/category-Lu: New file.
45155         * modules/unictype/category-Ll: New file.
45156         * modules/unictype/category-Lt: New file.
45157         * modules/unictype/category-Lm: New file.
45158         * modules/unictype/category-Lo: New file.
45159         * modules/unictype/category-M: New file.
45160         * modules/unictype/category-Mn: New file.
45161         * modules/unictype/category-Mc: New file.
45162         * modules/unictype/category-Me: New file.
45163         * modules/unictype/category-N: New file.
45164         * modules/unictype/category-Nd: New file.
45165         * modules/unictype/category-Nl: New file.
45166         * modules/unictype/category-No: New file.
45167         * modules/unictype/category-P: New file.
45168         * modules/unictype/category-Pc: New file.
45169         * modules/unictype/category-Pd: New file.
45170         * modules/unictype/category-Ps: New file.
45171         * modules/unictype/category-Pe: New file.
45172         * modules/unictype/category-Pi: New file.
45173         * modules/unictype/category-Pf: New file.
45174         * modules/unictype/category-Po: New file.
45175         * modules/unictype/category-S: New file.
45176         * modules/unictype/category-Sm: New file.
45177         * modules/unictype/category-Sc: New file.
45178         * modules/unictype/category-Sk: New file.
45179         * modules/unictype/category-So: New file.
45180         * modules/unictype/category-Z: New file.
45181         * modules/unictype/category-Zs: New file.
45182         * modules/unictype/category-Zl: New file.
45183         * modules/unictype/category-Zp: New file.
45184         * modules/unictype/category-C: New file.
45185         * modules/unictype/category-Cc: New file.
45186         * modules/unictype/category-Cf: New file.
45187         * modules/unictype/category-Cs: New file.
45188         * modules/unictype/category-Co: New file.
45189         * modules/unictype/category-Cn: New file.
45190         * modules/unictype/category-or: New file.
45191         * modules/unictype/category-of: New file.
45192         * modules/unictype/category-test: New file.
45193         * modules/unictype/category-test-withtable: New file.
45194         * modules/unictype/category-byname: New file.
45195         * modules/unictype/category-none: New file.
45196         * modules/unictype/category-and: New file.
45197         * modules/unictype/category-and-not: New file.
45198         * modules/unictype/category-name: New file.
45199         * modules/unictype/combining-class: New file.
45200         * modules/unictype/category-all: New file.
45201         * modules/unictype/bidicategory-all: New file.
45202         * modules/unictype/bidicategory-byname: New file.
45203         * modules/unictype/bidicategory-name: New file.
45204         * modules/unictype/bidicategory-of: New file.
45205         * modules/unictype/bidicategory-test: New file.
45206         * modules/unictype/decimal-digit: New file.
45207         * modules/unictype/digit: New file.
45208         * modules/unictype/numeric: New file.
45209         * modules/unictype/mirror: New file.
45210         * modules/unictype/property-white-space: New file.
45211         * modules/unictype/property-alphabetic: New file.
45212         * modules/unictype/property-other-alphabetic: New file.
45213         * modules/unictype/property-not-a-character: New file.
45214         * modules/unictype/property-default-ignorable-code-point: New file.
45215         * modules/unictype/property-other-default-ignorable-code-point: New
45216         file.
45217         * modules/unictype/property-deprecated: New file.
45218         * modules/unictype/property-logical-order-exception: New file.
45219         * modules/unictype/property-variation-selector: New file.
45220         * modules/unictype/property-private-use: New file.
45221         * modules/unictype/property-unassigned-code-value: New file.
45222         * modules/unictype/property-uppercase: New file.
45223         * modules/unictype/property-other-uppercase: New file.
45224         * modules/unictype/property-lowercase: New file.
45225         * modules/unictype/property-other-lowercase: New file.
45226         * modules/unictype/property-titlecase: New file.
45227         * modules/unictype/property-soft-dotted: New file.
45228         * modules/unictype/property-id-start: New file.
45229         * modules/unictype/property-other-id-start: New file.
45230         * modules/unictype/property-id-continue: New file.
45231         * modules/unictype/property-other-id-continue: New file.
45232         * modules/unictype/property-xid-start: New file.
45233         * modules/unictype/property-xid-continue: New file.
45234         * modules/unictype/property-pattern-white-space: New file.
45235         * modules/unictype/property-pattern-syntax: New file.
45236         * modules/unictype/property-join-control: New file.
45237         * modules/unictype/property-grapheme-base: New file.
45238         * modules/unictype/property-grapheme-extend: New file.
45239         * modules/unictype/property-other-grapheme-extend: New file.
45240         * modules/unictype/property-grapheme-link: New file.
45241         * modules/unictype/property-bidi-control: New file.
45242         * modules/unictype/property-bidi-left-to-right: New file.
45243         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45244         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45245         * modules/unictype/property-bidi-european-digit: New file.
45246         * modules/unictype/property-bidi-eur-num-separator: New file.
45247         * modules/unictype/property-bidi-eur-num-terminator: New file.
45248         * modules/unictype/property-bidi-arabic-digit: New file.
45249         * modules/unictype/property-bidi-common-separator: New file.
45250         * modules/unictype/property-bidi-block-separator: New file.
45251         * modules/unictype/property-bidi-segment-separator: New file.
45252         * modules/unictype/property-bidi-whitespace: New file.
45253         * modules/unictype/property-bidi-non-spacing-mark: New file.
45254         * modules/unictype/property-bidi-boundary-neutral: New file.
45255         * modules/unictype/property-bidi-pdf: New file.
45256         * modules/unictype/property-bidi-embedding-or-override: New file.
45257         * modules/unictype/property-bidi-other-neutral: New file.
45258         * modules/unictype/property-hex-digit: New file.
45259         * modules/unictype/property-ascii-hex-digit: New file.
45260         * modules/unictype/property-ideographic: New file.
45261         * modules/unictype/property-unified-ideograph: New file.
45262         * modules/unictype/property-radical: New file.
45263         * modules/unictype/property-ids-binary-operator: New file.
45264         * modules/unictype/property-ids-trinary-operator: New file.
45265         * modules/unictype/property-zero-width: New file.
45266         * modules/unictype/property-space: New file.
45267         * modules/unictype/property-non-break: New file.
45268         * modules/unictype/property-iso-control: New file.
45269         * modules/unictype/property-format-control: New file.
45270         * modules/unictype/property-dash: New file.
45271         * modules/unictype/property-hyphen: New file.
45272         * modules/unictype/property-punctuation: New file.
45273         * modules/unictype/property-line-separator: New file.
45274         * modules/unictype/property-paragraph-separator: New file.
45275         * modules/unictype/property-quotation-mark: New file.
45276         * modules/unictype/property-sentence-terminal: New file.
45277         * modules/unictype/property-terminal-punctuation: New file.
45278         * modules/unictype/property-currency-symbol: New file.
45279         * modules/unictype/property-math: New file.
45280         * modules/unictype/property-other-math: New file.
45281         * modules/unictype/property-paired-punctuation: New file.
45282         * modules/unictype/property-left-of-pair: New file.
45283         * modules/unictype/property-combining: New file.
45284         * modules/unictype/property-composite: New file.
45285         * modules/unictype/property-decimal-digit: New file.
45286         * modules/unictype/property-numeric: New file.
45287         * modules/unictype/property-diacritic: New file.
45288         * modules/unictype/property-extender: New file.
45289         * modules/unictype/property-ignorable-control: New file.
45290         * modules/unictype/property-test: New file.
45291         * modules/unictype/property-byname: New file.
45292         * modules/unictype/property-all: New file.
45293         * modules/unictype/scripts: New file.
45294         * modules/unictype/scripts-all: New file.
45295         * modules/unictype/block-of: New file.
45296         * modules/unictype/block-test: New file.
45297         * modules/unictype/block-list: New file.
45298         * modules/unictype/block-all: New file.
45299         * modules/unictype/syntax-c-whitespace: New file.
45300         * modules/unictype/syntax-java-whitespace: New file.
45301         * modules/unictype/syntax-c-ident: New file.
45302         * modules/unictype/syntax-java-ident: New file.
45303         * modules/unictype/ctype-alnum: New file.
45304         * modules/unictype/ctype-alpha: New file.
45305         * modules/unictype/ctype-cntrl: New file.
45306         * modules/unictype/ctype-digit: New file.
45307         * modules/unictype/ctype-graph: New file.
45308         * modules/unictype/ctype-lower: New file.
45309         * modules/unictype/ctype-print: New file.
45310         * modules/unictype/ctype-punct: New file.
45311         * modules/unictype/ctype-space: New file.
45312         * modules/unictype/ctype-upper: New file.
45313         * modules/unictype/ctype-xdigit: New file.
45314         * modules/unictype/ctype-blank: New file.
45315         * lib/unictype/bidi_byname.c: New file.
45316         * lib/unictype/bidi_name.c: New file.
45317         * lib/unictype/bidi_of.c: New file.
45318         * lib/unictype/bidi_test.c: New file.
45319         * lib/unictype/bitmap.h: New file.
45320         * lib/unictype/block_test.c: New file.
45321         * lib/unictype/blocks.c: New file.
45322         * lib/unictype/categ_C.c: New file.
45323         * lib/unictype/categ_Cc.c: New file.
45324         * lib/unictype/categ_Cf.c: New file.
45325         * lib/unictype/categ_Cn.c: New file.
45326         * lib/unictype/categ_Co.c: New file.
45327         * lib/unictype/categ_Cs.c: New file.
45328         * lib/unictype/categ_L.c: New file.
45329         * lib/unictype/categ_Ll.c: New file.
45330         * lib/unictype/categ_Lm.c: New file.
45331         * lib/unictype/categ_Lo.c: New file.
45332         * lib/unictype/categ_Lt.c: New file.
45333         * lib/unictype/categ_Lu.c: New file.
45334         * lib/unictype/categ_M.c: New file.
45335         * lib/unictype/categ_Mc.c: New file.
45336         * lib/unictype/categ_Me.c: New file.
45337         * lib/unictype/categ_Mn.c: New file.
45338         * lib/unictype/categ_N.c: New file.
45339         * lib/unictype/categ_Nd.c: New file.
45340         * lib/unictype/categ_Nl.c: New file.
45341         * lib/unictype/categ_No.c: New file.
45342         * lib/unictype/categ_P.c: New file.
45343         * lib/unictype/categ_Pc.c: New file.
45344         * lib/unictype/categ_Pd.c: New file.
45345         * lib/unictype/categ_Pe.c: New file.
45346         * lib/unictype/categ_Pf.c: New file.
45347         * lib/unictype/categ_Pi.c: New file.
45348         * lib/unictype/categ_Po.c: New file.
45349         * lib/unictype/categ_Ps.c: New file.
45350         * lib/unictype/categ_S.c: New file.
45351         * lib/unictype/categ_Sc.c: New file.
45352         * lib/unictype/categ_Sk.c: New file.
45353         * lib/unictype/categ_Sm.c: New file.
45354         * lib/unictype/categ_So.c: New file.
45355         * lib/unictype/categ_Z.c: New file.
45356         * lib/unictype/categ_Zl.c: New file.
45357         * lib/unictype/categ_Zp.c: New file.
45358         * lib/unictype/categ_Zs.c: New file.
45359         * lib/unictype/categ_and.c: New file.
45360         * lib/unictype/categ_and_not.c: New file.
45361         * lib/unictype/categ_byname.c: New file.
45362         * lib/unictype/categ_name.c: New file.
45363         * lib/unictype/categ_none.c: New file.
45364         * lib/unictype/categ_of.c: New file.
45365         * lib/unictype/categ_or.c: New file.
45366         * lib/unictype/categ_test.c: New file.
45367         * lib/unictype/combining.c: New file.
45368         * lib/unictype/ctype_alnum.c: New file.
45369         * lib/unictype/ctype_alpha.c: New file.
45370         * lib/unictype/ctype_blank.c: New file.
45371         * lib/unictype/ctype_cntrl.c: New file.
45372         * lib/unictype/ctype_digit.c: New file.
45373         * lib/unictype/ctype_graph.c: New file.
45374         * lib/unictype/ctype_lower.c: New file.
45375         * lib/unictype/ctype_print.c: New file.
45376         * lib/unictype/ctype_punct.c: New file.
45377         * lib/unictype/ctype_space.c: New file.
45378         * lib/unictype/ctype_upper.c: New file.
45379         * lib/unictype/ctype_xdigit.c: New file.
45380         * lib/unictype/decdigit.c: New file.
45381         * lib/unictype/digit.c: New file.
45382         * lib/unictype/identsyntaxmap.h: New file.
45383         * lib/unictype/mirror.c: New file.
45384         * lib/unictype/numeric.c: New file.
45385         * lib/unictype/pr_alphabetic.c: New file.
45386         * lib/unictype/pr_ascii_hex_digit.c: New file.
45387         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45388         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45389         * lib/unictype/pr_bidi_block_separator.c: New file.
45390         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45391         * lib/unictype/pr_bidi_common_separator.c: New file.
45392         * lib/unictype/pr_bidi_control.c: New file.
45393         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45394         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45395         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45396         * lib/unictype/pr_bidi_european_digit.c: New file.
45397         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45398         * lib/unictype/pr_bidi_left_to_right.c: New file.
45399         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45400         * lib/unictype/pr_bidi_other_neutral.c: New file.
45401         * lib/unictype/pr_bidi_pdf.c: New file.
45402         * lib/unictype/pr_bidi_segment_separator.c: New file.
45403         * lib/unictype/pr_bidi_whitespace.c: New file.
45404         * lib/unictype/pr_byname.c: New file.
45405         * lib/unictype/pr_byname.gperf: New file.
45406         * lib/unictype/pr_combining.c: New file.
45407         * lib/unictype/pr_composite.c: New file.
45408         * lib/unictype/pr_currency_symbol.c: New file.
45409         * lib/unictype/pr_dash.c: New file.
45410         * lib/unictype/pr_decimal_digit.c: New file.
45411         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45412         * lib/unictype/pr_deprecated.c: New file.
45413         * lib/unictype/pr_diacritic.c: New file.
45414         * lib/unictype/pr_extender.c: New file.
45415         * lib/unictype/pr_format_control.c: New file.
45416         * lib/unictype/pr_grapheme_base.c: New file.
45417         * lib/unictype/pr_grapheme_extend.c: New file.
45418         * lib/unictype/pr_grapheme_link.c: New file.
45419         * lib/unictype/pr_hex_digit.c: New file.
45420         * lib/unictype/pr_hyphen.c: New file.
45421         * lib/unictype/pr_id_continue.c: New file.
45422         * lib/unictype/pr_id_start.c: New file.
45423         * lib/unictype/pr_ideographic.c: New file.
45424         * lib/unictype/pr_ids_binary_operator.c: New file.
45425         * lib/unictype/pr_ids_trinary_operator.c: New file.
45426         * lib/unictype/pr_ignorable_control.c: New file.
45427         * lib/unictype/pr_iso_control.c: New file.
45428         * lib/unictype/pr_join_control.c: New file.
45429         * lib/unictype/pr_left_of_pair.c: New file.
45430         * lib/unictype/pr_line_separator.c: New file.
45431         * lib/unictype/pr_logical_order_exception.c: New file.
45432         * lib/unictype/pr_lowercase.c: New file.
45433         * lib/unictype/pr_math.c: New file.
45434         * lib/unictype/pr_non_break.c: New file.
45435         * lib/unictype/pr_not_a_character.c: New file.
45436         * lib/unictype/pr_numeric.c: New file.
45437         * lib/unictype/pr_other_alphabetic.c: New file.
45438         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45439         * lib/unictype/pr_other_grapheme_extend.c: New file.
45440         * lib/unictype/pr_other_id_continue.c: New file.
45441         * lib/unictype/pr_other_id_start.c: New file.
45442         * lib/unictype/pr_other_lowercase.c: New file.
45443         * lib/unictype/pr_other_math.c: New file.
45444         * lib/unictype/pr_other_uppercase.c: New file.
45445         * lib/unictype/pr_paired_punctuation.c: New file.
45446         * lib/unictype/pr_paragraph_separator.c: New file.
45447         * lib/unictype/pr_pattern_syntax.c: New file.
45448         * lib/unictype/pr_pattern_white_space.c: New file.
45449         * lib/unictype/pr_private_use.c: New file.
45450         * lib/unictype/pr_punctuation.c: New file.
45451         * lib/unictype/pr_quotation_mark.c: New file.
45452         * lib/unictype/pr_radical.c: New file.
45453         * lib/unictype/pr_sentence_terminal.c: New file.
45454         * lib/unictype/pr_soft_dotted.c: New file.
45455         * lib/unictype/pr_space.c: New file.
45456         * lib/unictype/pr_terminal_punctuation.c: New file.
45457         * lib/unictype/pr_test.c: New file.
45458         * lib/unictype/pr_titlecase.c: New file.
45459         * lib/unictype/pr_unassigned_code_value.c: New file.
45460         * lib/unictype/pr_unified_ideograph.c: New file.
45461         * lib/unictype/pr_uppercase.c: New file.
45462         * lib/unictype/pr_variation_selector.c: New file.
45463         * lib/unictype/pr_white_space.c: New file.
45464         * lib/unictype/pr_xid_continue.c: New file.
45465         * lib/unictype/pr_xid_start.c: New file.
45466         * lib/unictype/pr_zero_width.c: New file.
45467         * lib/unictype/scripts.c: New file.
45468         * lib/unictype/sy_c_ident.c: New file.
45469         * lib/unictype/sy_c_whitespace.c: New file.
45470         * lib/unictype/sy_java_ident.c: New file.
45471         * lib/unictype/sy_java_whitespace.c: New file.
45472
45473         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45474         Unicode 5.0.0.
45475         * lib/unictype/blocks.h: Likewise.
45476         * lib/unictype/categ_C.h: Likewise.
45477         * lib/unictype/categ_Cc.h: Likewise.
45478         * lib/unictype/categ_Cf.h: Likewise.
45479         * lib/unictype/categ_Cn.h: Likewise.
45480         * lib/unictype/categ_Co.h: Likewise.
45481         * lib/unictype/categ_Cs.h: Likewise.
45482         * lib/unictype/categ_L.h: Likewise.
45483         * lib/unictype/categ_Ll.h: Likewise.
45484         * lib/unictype/categ_Lm.h: Likewise.
45485         * lib/unictype/categ_Lo.h: Likewise.
45486         * lib/unictype/categ_Lt.h: Likewise.
45487         * lib/unictype/categ_Lu.h: Likewise.
45488         * lib/unictype/categ_M.h: Likewise.
45489         * lib/unictype/categ_Mc.h: Likewise.
45490         * lib/unictype/categ_Me.h: Likewise.
45491         * lib/unictype/categ_Mn.h: Likewise.
45492         * lib/unictype/categ_N.h: Likewise.
45493         * lib/unictype/categ_Nd.h: Likewise.
45494         * lib/unictype/categ_Nl.h: Likewise.
45495         * lib/unictype/categ_No.h: Likewise.
45496         * lib/unictype/categ_P.h: Likewise.
45497         * lib/unictype/categ_Pc.h: Likewise.
45498         * lib/unictype/categ_Pd.h: Likewise.
45499         * lib/unictype/categ_Pe.h: Likewise.
45500         * lib/unictype/categ_Pf.h: Likewise.
45501         * lib/unictype/categ_Pi.h: Likewise.
45502         * lib/unictype/categ_Po.h: Likewise.
45503         * lib/unictype/categ_Ps.h: Likewise.
45504         * lib/unictype/categ_S.h: Likewise.
45505         * lib/unictype/categ_Sc.h: Likewise.
45506         * lib/unictype/categ_Sk.h: Likewise.
45507         * lib/unictype/categ_Sm.h: Likewise.
45508         * lib/unictype/categ_So.h: Likewise.
45509         * lib/unictype/categ_Z.h: Likewise.
45510         * lib/unictype/categ_Zl.h: Likewise.
45511         * lib/unictype/categ_Zp.h: Likewise.
45512         * lib/unictype/categ_Zs.h: Likewise.
45513         * lib/unictype/categ_of.h: Likewise.
45514         * lib/unictype/combining.h: Likewise.
45515         * lib/unictype/ctype_alnum.h: Likewise.
45516         * lib/unictype/ctype_alpha.h: Likewise.
45517         * lib/unictype/ctype_blank.h: Likewise.
45518         * lib/unictype/ctype_cntrl.h: Likewise.
45519         * lib/unictype/ctype_digit.h: Likewise.
45520         * lib/unictype/ctype_graph.h: Likewise.
45521         * lib/unictype/ctype_lower.h: Likewise.
45522         * lib/unictype/ctype_print.h: Likewise.
45523         * lib/unictype/ctype_punct.h: Likewise.
45524         * lib/unictype/ctype_space.h: Likewise.
45525         * lib/unictype/ctype_upper.h: Likewise.
45526         * lib/unictype/ctype_xdigit.h: Likewise.
45527         * lib/unictype/decdigit.h: Likewise.
45528         * lib/unictype/digit.h: Likewise.
45529         * lib/unictype/mirror.h: Likewise.
45530         * lib/unictype/numeric.h: Likewise.
45531         * lib/unictype/pr_alphabetic.h: Likewise.
45532         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45533         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45534         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45535         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45536         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45537         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45538         * lib/unictype/pr_bidi_control.h: Likewise.
45539         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45540         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45541         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45542         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45543         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45544         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45545         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45546         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45547         * lib/unictype/pr_bidi_pdf.h: Likewise.
45548         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45549         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45550         * lib/unictype/pr_combining.h: Likewise.
45551         * lib/unictype/pr_composite.h: Likewise.
45552         * lib/unictype/pr_currency_symbol.h: Likewise.
45553         * lib/unictype/pr_dash.h: Likewise.
45554         * lib/unictype/pr_decimal_digit.h: Likewise.
45555         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45556         * lib/unictype/pr_deprecated.h: Likewise.
45557         * lib/unictype/pr_diacritic.h: Likewise.
45558         * lib/unictype/pr_extender.h: Likewise.
45559         * lib/unictype/pr_format_control.h: Likewise.
45560         * lib/unictype/pr_grapheme_base.h: Likewise.
45561         * lib/unictype/pr_grapheme_extend.h: Likewise.
45562         * lib/unictype/pr_grapheme_link.h: Likewise.
45563         * lib/unictype/pr_hex_digit.h: Likewise.
45564         * lib/unictype/pr_hyphen.h: Likewise.
45565         * lib/unictype/pr_id_continue.h: Likewise.
45566         * lib/unictype/pr_id_start.h: Likewise.
45567         * lib/unictype/pr_ideographic.h: Likewise.
45568         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45569         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45570         * lib/unictype/pr_ignorable_control.h: Likewise.
45571         * lib/unictype/pr_iso_control.h: Likewise.
45572         * lib/unictype/pr_join_control.h: Likewise.
45573         * lib/unictype/pr_left_of_pair.h: Likewise.
45574         * lib/unictype/pr_line_separator.h: Likewise.
45575         * lib/unictype/pr_logical_order_exception.h: Likewise.
45576         * lib/unictype/pr_lowercase.h: Likewise.
45577         * lib/unictype/pr_math.h: Likewise.
45578         * lib/unictype/pr_non_break.h: Likewise.
45579         * lib/unictype/pr_not_a_character.h: Likewise.
45580         * lib/unictype/pr_numeric.h: Likewise.
45581         * lib/unictype/pr_other_alphabetic.h: Likewise.
45582         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45583         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45584         * lib/unictype/pr_other_id_continue.h: Likewise.
45585         * lib/unictype/pr_other_id_start.h: Likewise.
45586         * lib/unictype/pr_other_lowercase.h: Likewise.
45587         * lib/unictype/pr_other_math.h: Likewise.
45588         * lib/unictype/pr_other_uppercase.h: Likewise.
45589         * lib/unictype/pr_paired_punctuation.h: Likewise.
45590         * lib/unictype/pr_paragraph_separator.h: Likewise.
45591         * lib/unictype/pr_pattern_syntax.h: Likewise.
45592         * lib/unictype/pr_pattern_white_space.h: Likewise.
45593         * lib/unictype/pr_private_use.h: Likewise.
45594         * lib/unictype/pr_punctuation.h: Likewise.
45595         * lib/unictype/pr_quotation_mark.h: Likewise.
45596         * lib/unictype/pr_radical.h: Likewise.
45597         * lib/unictype/pr_sentence_terminal.h: Likewise.
45598         * lib/unictype/pr_soft_dotted.h: Likewise.
45599         * lib/unictype/pr_space.h: Likewise.
45600         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45601         * lib/unictype/pr_titlecase.h: Likewise.
45602         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45603         * lib/unictype/pr_unified_ideograph.h: Likewise.
45604         * lib/unictype/pr_uppercase.h: Likewise.
45605         * lib/unictype/pr_variation_selector.h: Likewise.
45606         * lib/unictype/pr_white_space.h: Likewise.
45607         * lib/unictype/pr_xid_continue.h: Likewise.
45608         * lib/unictype/pr_xid_start.h: Likewise.
45609         * lib/unictype/pr_zero_width.h: Likewise.
45610         * lib/unictype/scripts.h: Likewise.
45611         * lib/unictype/scripts_byname.gperf: Likewise.
45612         * lib/unictype/sy_c_ident.h: Likewise.
45613         * lib/unictype/sy_c_whitespace.h: Likewise.
45614         * lib/unictype/sy_java_ident.h: Likewise.
45615         * lib/unictype/sy_java_whitespace.h: Likewise.
45616
45617         * lib/unictype/Makefile: New file.
45618         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45619         glibc.
45620         * lib/unictype/3level.h: New file, copied from glibc.
45621         * lib/unictype/3levelbit.h: New file.
45622
45623 2007-11-11  Bruno Haible  <bruno@clisp.org>
45624
45625         * modules/gperf: New file.
45626         * modules/iconv_open (Depends-on): Add it.
45627         (Makefile.am): Remove the GPERF definition.
45628
45629 2007-11-11  Bruno Haible  <bruno@clisp.org>
45630
45631         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45632         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45633
45634 2007-11-11  Bruno Haible  <bruno@clisp.org>
45635
45636         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45637         (usage): Remove function.
45638
45639 2007-11-11  Bruno Haible  <bruno@clisp.org>
45640
45641         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45642         gl_FUNC_CEILF_LIBS.
45643         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45644         gl_FUNC_CEIL_LIBS.
45645         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45646         gl_FUNC_CEILL_LIBS.
45647         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45648         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45649         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45650
45651 2007-11-11  Bruno Haible  <bruno@clisp.org>
45652
45653         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45654         roundf were declared but do not exist on functions.
45655         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45656         roundl were declared but do not exist on functions.
45657         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45658         HAVE_FLOORL_AND_CEILL, respectively.
45659         Needed for Sun C on Solaris 10.
45660
45661 2007-11-11  Bruno Haible  <bruno@clisp.org>
45662
45663         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45664         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45665         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45666         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45667         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45668         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45669         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45670         HAVE_DECL_ROUNDF.
45671         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45672         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45674         of HAVE_DECL_ROUND*.
45675         * modules/math (Makefile.am): Update.
45676
45677 2007-11-10  Bruno Haible  <bruno@clisp.org>
45678
45679         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45680         ptrdiff_t as m4/intl.m4.
45681
45682 2007-11-10  Jim Meyering  <meyering@redhat.com>
45683
45684         Avoid link failure for the argmatch test.
45685         * tests/test-argmatch.c (usage): Define function to avoid a link
45686         failure: argmatch_die requires a usage function.
45687
45688 2007-11-09  Bruno Haible  <bruno@clisp.org>
45689
45690         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45691         * doc/functions/vsnprintf.texi: Likewise.
45692         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45693         with a size argument < 2.
45694
45695 2007-11-09  Bruno Haible  <bruno@clisp.org>
45696
45697         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45698         buffer. Fixes an inefficiency introduced on 2007-11-03.
45699
45700 2007-11-09  Bruno Haible  <bruno@clisp.org>
45701
45702         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45703         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45704
45705 2007-11-08  Jim Meyering  <meyering@redhat.com>
45706
45707         Change cache variable name prefix "jm_" to "gl_" everywhere.
45708         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45709         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45710         * m4/uptime.m4: s/gl_/jm_/
45711
45712 2007-11-07  Bruno Haible  <bruno@clisp.org>
45713
45714         Update to GNU gettext 0.17.
45715         * m4/intl.m4: Update to GNU gettext 0.17.
45716         * m4/po.m4: Likewise.
45717         * modules/gettext (Files): Remove m4/ulonglong.m4.
45718         (configure.ac): Require gettext infrastructure from version 0.17.
45719
45720 2007-11-06  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45723         symbolic values are not defined in a public header.
45724         * lib/freadable.c (freadable) [QNX]: Likewise.
45725         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45726         * lib/freading.c (freading) [QNX]: Likewise.
45727         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45728         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45729         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45730         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45731         Reported by Alain Magloire.
45732
45733         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45734
45735 2007-11-05  Bruno Haible  <bruno@clisp.org>
45736
45737         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45738         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45739         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45740         Reported by Eric Blake.
45741
45742 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45743             Bruno Haible  <bruno@clisp.org>
45744
45745         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45746         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45747         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45748         (malloc): Undefine also before including <stdlib.h>.
45749         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45750         Needed on OSF/1 4.0.
45751
45752 2007-11-05  Jim Meyering  <meyering@redhat.com>
45753
45754         git-version-gen: sync from coreutils.
45755         * build-aux/git-version-gen: Add comments.
45756         Change the first '-' to '.' in the snapshot version string,
45757         e.g., 6.9-377-08144 -> 6.9.377-08144
45758         Remove first parameter.
45759         Don't declare a version "-dirty" merely because a time
45760         stamp has changed.
45761
45762 2007-11-04  Bruno Haible  <bruno@clisp.org>
45763
45764         * lib/lock.h: Protect all macro definitions containing an 'if'
45765         statement through a "do { ... } while (0)".
45766         * lib/tls.h: Likewise.
45767
45768 2007-11-04  Bruno Haible  <bruno@clisp.org>
45769
45770         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45771
45772 2007-11-04  Bruno Haible  <bruno@clisp.org>
45773
45774         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45775         * modules/fprintf-posix (Depends-on): Add nocrash.
45776         * modules/snprintf-posix (Depends-on): Likewise.
45777         * modules/sprintf-posix (Depends-on): Likewise.
45778         * modules/vasnprintf-posix (Depends-on): Likewise.
45779         * modules/vasprintf-posix (Depends-on): Likewise.
45780         * modules/vfprintf-posix (Depends-on): Likewise.
45781         * modules/vsnprintf-posix (Depends-on): Likewise.
45782         * modules/vsprintf-posix (Depends-on): Likewise.
45783         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45784         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45785         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45786         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45787         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45788         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45789         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45790
45791 2007-11-04  Bruno Haible  <bruno@clisp.org>
45792
45793         * modules/nocrash: New file.
45794         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45795         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45796
45797 2007-11-04  Bruno Haible  <bruno@clisp.org>
45798
45799         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45800         precision handling.
45801         * tests/test-vasprintf-posix.c (test_function): Likewise.
45802         * tests/test-snprintf-posix.h (test_function): Likewise.
45803         * tests/test-sprintf-posix.h (test_function): Likewise.
45804
45805         Fix *printf behaviour for large precisions on mingw and BeOS.
45806         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45807         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45809         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45810         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45811         gl_PRINTF_PRECISION and test its result. Invoke
45812         gl_PREREQ_VASNPRINTF_PRECISION.
45813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45814         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45819         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45820         * doc/functions/fprintf.texi: Update.
45821         * doc/functions/printf.texi: Update.
45822         * doc/functions/snprintf.texi: Update.
45823         * doc/functions/sprintf.texi: Update.
45824         * doc/functions/vfprintf.texi: Update.
45825         * doc/functions/vprintf.texi: Update.
45826         * doc/functions/vsnprintf.texi: Update.
45827         * doc/functions/vsprintf.texi: Update.
45828
45829 2007-11-04  Bruno Haible  <bruno@clisp.org>
45830
45831         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45832
45833 2007-11-04  Bruno Haible  <bruno@clisp.org>
45834
45835         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45836         Reported by Sylvain Beucler <beuc@gnu.org>.
45837
45838 2007-11-03  Bruno Haible  <bruno@clisp.org>
45839
45840         * tests/test-fprintf-posix2.sh: New file.
45841         * tests/test-fprintf-posix2.c: New file.
45842         * modules/fprintf-posix-tests (Files): Add them.
45843         (TESTS): Add test-fprintf-posix2.sh.
45844         (configure.ac): Check for getrlimit and setrlimit.
45845         (check_PROGRAMS): Add test-fprintf-posix2.
45846
45847         * tests/test-printf-posix2.sh: New file.
45848         * tests/test-printf-posix2.c: New file.
45849         * modules/printf-posix-tests (Files): Add them.
45850         (TESTS): Add test-printf-posix2.sh.
45851         (configure.ac): Check for getrlimit and setrlimit.
45852         (check_PROGRAMS): Add test-printf-posix2.
45853
45854         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45855         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45856         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45857         (decode_double): New function, copied from decode_long_double.
45858         (scale10_round_decimal_decoded): New function, extracted from
45859         scale10_round_decimal_long_double.
45860         (scale10_round_decimal_long_double): Use it.
45861         (scale10_round_decimal_double): New function.
45862         (floorlog10): New function.
45863         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45864         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45865         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45866         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45867         gl_PRINTF_ENOMEM and test its result. Invoke
45868         gl_PREREQ_VASNPRINTF_ENOMEM.
45869         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45870         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45871         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45873         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45874         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45875         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45876         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45877         * modules/snprintf-posix (Depends-on): Likewise.
45878         * modules/sprintf-posix (Depends-on): Likewise.
45879         * modules/vasnprintf-posix (Depends-on): Likewise.
45880         * modules/vasprintf-posix (Depends-on): Likewise.
45881         * modules/vfprintf-posix (Depends-on): Likewise.
45882         * modules/vsnprintf-posix (Depends-on): Likewise.
45883         * modules/vsprintf-posix (Depends-on): Likewise.
45884         * doc/functions/fprintf.texi: Update.
45885         * doc/functions/printf.texi: Update.
45886         * doc/functions/snprintf.texi: Update.
45887         * doc/functions/sprintf.texi: Update.
45888         * doc/functions/vfprintf.texi: Update.
45889         * doc/functions/vprintf.texi: Update.
45890         * doc/functions/vsnprintf.texi: Update.
45891         * doc/functions/vsprintf.texi: Update.
45892
45893 2007-11-03  Bruno Haible  <bruno@clisp.org>
45894
45895         * modules/frexp-nolibm-tests: New file.
45896
45897         * modules/frexp-nolibm: New file.
45898         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45899
45900 2007-11-03  Bruno Haible  <bruno@clisp.org>
45901
45902         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45903         value is C99 compliant.
45904         Needed for OSF/1 5.1.
45905
45906 2007-11-03  Bruno Haible  <bruno@clisp.org>
45907
45908         Fix out-of-memory handling of vasnprintf.
45909         * lib/printf-parse.c: Include <errno.h>.
45910         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45911         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45912         is already set.
45913
45914 2007-11-02  Eric Blake  <ebb9@byu.net>
45915
45916         Fix tests on cygwin.
45917         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45918
45919 2007-11-01  Bruno Haible  <bruno@clisp.org>
45920
45921         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45922         warning.
45923         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45924         needed for POSIX compatibility.
45925
45926 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45927
45928         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45929         for compatibility with GNU.
45930
45931 2007-11-01  Bruno Haible  <bruno@clisp.org>
45932
45933         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45934         (putenv): Renamed from rpl_putenv. Change argument type from
45935         'const char *' to 'char *'.
45936         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45937         of defining putenv in config.h, just set REPLACE_PUTENV.
45938         * modules/putenv (Depends-on): Add stdlib.
45939         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45940         (Include): Use <stdlib.h>.
45941         * lib/stdlib.in.h (putenv): New declaration.
45942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45943         REPLACE_PUTENV.
45944         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45945         REPLACE_PUTENV.
45946         Needed for MacOS X 10.5.0.
45947         Reported by Peter O'Gorman <peter@pogma.com>.
45948
45949 2007-11-01  Jim Meyering  <meyering@redhat.com>
45950
45951         Treat an empty date string exactly like "0".
45952         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45953         if the remaining date string (to be parsed) is empty, use "0".
45954         Reported by Mischa Molhoek and discussed in this thread:
45955         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45956
45957 2007-10-31  Bruno Haible  <bruno@clisp.org>
45958
45959         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45960         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45961         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45962         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45963         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45964         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45965
45966 2007-10-31  Bruno Haible  <bruno@clisp.org>
45967
45968         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45969         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45970         (AC_TYPE_LONG_LONG_INT): Use it.
45971         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45972         it as well.
45973         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45974         to m4/longlong.m4.
45975         * modules/stdint (Files): Remove m4/ulonglong.m4.
45976         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45977         m4/ulonglong.m4.
45978         * modules/strtoumax (Files): Likewise.
45979
45980 2007-10-30  Bruno Haible  <bruno@clisp.org>
45981
45982         * modules/xvasprintf-posix: New file.
45983         Suggested by Eric Blake.
45984
45985 2007-10-30  Bruno Haible  <bruno@clisp.org>
45986
45987         * modules/xprintf-posix-tests: New file.
45988         * tests/test-xprintf-posix.sh: New file.
45989         * tests/test-xprintf-posix.c: New file.
45990         * tests/test-xfprintf-posix.c: New file.
45991
45992         * modules/xprintf-posix: New file.
45993
45994 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45995
45996         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45997         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45998         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45999
46000 2007-10-29  Bruno Haible  <bruno@clisp.org>
46001
46002         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46003         contain the special marker '_cv_'.
46004         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46005         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46006         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46007         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46008         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46009         Reported by Ralf Wildenhues.
46010
46011 2007-10-29  Bruno Haible  <bruno@clisp.org>
46012
46013         * gnulib-tool (func_import): When --lgpl is not specified, set
46014         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46015         GPLv3.
46016         Reported by Simon Josefsson.
46017
46018 2007-10-28  Bruno Haible  <bruno@clisp.org>
46019
46020         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46021         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46022         HAVE_DECL_ISFINITE.
46023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46024         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46025         HAVE_DECL_ISFINITE.
46026
46027 2007-10-28  Bruno Haible  <bruno@clisp.org>
46028
46029         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46030         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46031
46032 2007-10-28  Bruno Haible  <bruno@clisp.org>
46033
46034         Fix link errors with Sun C 5.0 on Solaris 10.
46035         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46036         function is declared but not present in the compiler's libm.
46037         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46038         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46039         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46040         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46041         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46042         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46043         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46045         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46046         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46047         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46048         HAVE_DECL_FLOORL.
46049
46050 2007-10-28  Bruno Haible  <bruno@clisp.org>
46051
46052         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46053         gl_FUNC_FLOORL. Cache the result.
46054         (gl_FUNC_FLOORL): Use it.
46055         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46056         gl_FUNC_CEILL. Cache the result.
46057         (gl_FUNC_CEILL): Use it.
46058
46059         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46060         gl_FUNC_FLOOR. Cache the result.
46061         (gl_FUNC_FLOOR): Use it.
46062         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46063         gl_FUNC_CEIL. Cache the result.
46064         (gl_FUNC_CEIL): Use it.
46065
46066         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46067         gl_FUNC_FLOORF. Cache the result.
46068         (gl_FUNC_FLOORF): Use it.
46069         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46070         gl_FUNC_CEILF. Cache the result.
46071         (gl_FUNC_CEILF): Use it.
46072
46073 2007-10-28  Bruno Haible  <bruno@clisp.org>
46074
46075         * gnulib-tool: Allow specifying the LGPL version number through
46076         --lgpl=2 or --lgpl=3.
46077         (func_usage): Document --lgpl with argument.
46078         Handle --lgpl=... arguments.
46079         (func_import): Recognize also gl_LGPL calls with an argument. When
46080         --lgpl=2 is used and the module's license is just LGPL, report an
46081         error. Set sed_transform_lib_file according to the lgpl variable. In
46082         the generated files, use --lgpl or gl_LGPL invocations with argument,
46083         if necessary.
46084         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46085         an LGPv2+ license.
46086         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46087         gl_LGPL macro.
46088
46089 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46090             Bruno Haible  <bruno@clisp.org>
46091
46092         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46093         (u16_uctomb_aux): Likewise.
46094         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46095         !HAVE_INLINE.
46096         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46097
46098 2007-10-28  Bruno Haible  <bruno@clisp.org>
46099
46100         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46101         Invoke AM_GETTEXT_OPTION if it exists.
46102         * modules/vasprintf: Likewise.
46103         * modules/verror: Likewise.
46104         * modules/xprintf: Likewise.
46105         * modules/xvasprintf: Likewise.
46106
46107 2007-10-27  Ben Pfaff  <blp@gnu.org>
46108
46109         * lib/math.in.h: Define isfinite macro and prototypes for
46110         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46111         implementations.
46112         * m4/math_h.m4: New substitutions for isfinite module.
46113         * lib/isfinite.c: New file.
46114         * m4/isfinite.m4: New file.
46115         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46116         * modules/isfinite: New file.
46117         * modules/isfinite-tests: New file.
46118         * tests/tests-isfinite.c: New file.
46119         * doc/functions/isfinite.texi: Mention isfinite module.
46120         * MODULES.html.sh: Mention new module.
46121
46122 2007-10-27  Ben Pfaff  <blp@gnu.org>
46123
46124         Ralf Wildenhues reported that Tru64 4.0D declares the round
46125         functions but does not have definitions.
46126         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46127         cannot be found in any library, set the output variable to
46128         "missing" instead of "".
46129         * m4/round.m4: Also use our substitute if we cannot find round in
46130         any library, even if it is declared.
46131         * m4/roundf.m4: Likewise for roundf.
46132         * m4/roundl.m4: Likewise for roundl.
46133         * lib/math.in.h: Undefine roundf, round, roundl before defining
46134         their replacements, to allow for hypothetical systems where these
46135         may be defined as macros but not available in libraries.
46136
46137 2007-10-27  Bruno Haible  <bruno@clisp.org>
46138
46139         * doc/gnulib.texi: Invoke @firstparagraphindent.
46140         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46141         changes in gnulib.
46142         (Source changes): New section.
46143
46144 2007-10-26  Bruno Haible  <bruno@clisp.org>
46145
46146         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46147         borrowed from autoconf.
46148
46149 2007-10-26  Bruno Haible  <bruno@clisp.org>
46150
46151         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46152         strerror returned the empty string. Needed on HP-UX 11.00.
46153
46154 2007-10-24  Micah Cowan  <micah@cowan.name>
46155
46156         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46157         * build-aux/bootstrap: Remove support for now-unnecessary option,
46158         --cvs-user, and envvars CVS_USER, CVS_RSH.
46159
46160 2007-10-24  Jim Meyering  <meyering@redhat.com>
46161
46162         Avoid diagnostics from sha1sum when there is no cached checksum.
46163         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46164         if the po.s1 file hasn't been created yet.
46165
46166         * build-aux/bootstrap: Sync from coreutils:
46167         2007-10-24  Jim Meyering  <meyering@redhat.com>
46168         Get gnulib from the git repository, not from an obsolete cvs one.
46169         * build-aux/bootstrap: Suggestion from Micah Cowan.
46170         2007-10-04  Jim Meyering  <jim@meyering.net>
46171         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46172         (update_po_files): Work also when there are no .po files in po/.
46173
46174 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46175
46176         * README: Append ".git" to git and cg examples.
46177         Problem reported by Benoit Sigoure.
46178
46179 2007-10-23  Micah Cowan  <micah@cowan.name>
46180
46181         * users.txt: Add wget.
46182
46183 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46184
46185         Fix linking of some unistdio tests on FreeBSD.
46186         * modules/unistdio/u16-vsnprintf-tests
46187         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46188         * modules/unistdio/u16-vsprintf-tests
46189         (test_u16_vsnprintf1_LDADD): Likewise.
46190         * modules/unistdio/u32-vsnprintf-tests
46191         (test_u32_vsnprintf1_LDADD): Likewise.
46192         * modules/unistdio/u32-vsprintf-tests
46193         (test_u32_vsprintf1_LDADD): Likewise.
46194         * modules/unistdio/u8-vsnprintf-tests
46195         (test_u8_vsnprintf1_LDADD): Likewise.
46196         * modules/unistdio/u8-vsprintf-tests
46197         (test_u8_vsprintf1_LDADD): Likewise.
46198         * modules/unistdio/ulc-vsnprintf-tests
46199         (test_ulc_vsnprintf1_LDADD): Likewise.
46200         * modules/unistdio/ulc-vsprintf-tests
46201         (test_ulc_vsprintf1_LDADD): Likewise.
46202
46203         Fix linking of some uniconv tests on FreeBSD.
46204         * modules/uniconv/u16-conv-from-enc-tests
46205         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46206         * modules/uniconv/u16-conv-to-enc-tests
46207         (test_u16_conv_to_enc_LDADD): Likewise.
46208         * modules/uniconv/u16-strconv-from-enc-tests
46209         (test_u16_strconv_from_enc_LDADD): Likewise.
46210         * modules/uniconv/u16-strconv-to-enc-tests
46211         (test_u16_strconv_to_enc_LDADD): Likewise.
46212         * modules/uniconv/u32-conv-from-enc-tests
46213         (test_u32_conv_from_enc_LDADD): Likewise.
46214         * modules/uniconv/u32-conv-to-enc-tests
46215         (test_u32_conv_to_enc_LDADD): Likewise.
46216         * modules/uniconv/u32-strconv-from-enc-tests
46217         (test_u32_strconv_from_enc_LDADD): Likewise.
46218         * modules/uniconv/u32-strconv-to-enc-tests
46219         (test_u32_strconv_to_enc_LDADD): Likewise.
46220         * modules/uniconv/u8-conv-from-enc-tests
46221         (test_u8_conv_from_enc_LDADD): Likewise.
46222         * modules/uniconv/u8-conv-to-enc-tests
46223         (test_u8_conv_to_enc_LDADD): Likewise.
46224         * modules/uniconv/u8-strconv-from-enc-tests
46225         (test_u8_strconv_from_enc_LDADD): Likewise.
46226         * modules/uniconv/u8-strconv-to-enc-tests
46227         (test_u8_strconv_to_enc_LDADD): Likewise.
46228
46229 2007-10-22  Bruno Haible  <bruno@clisp.org>
46230
46231         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46232         size.
46233
46234 2007-10-22  Eric Blake  <ebb9@byu.net>
46235
46236         Tweak x*printf documentation.
46237         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46238         variable name and comments.
46239         Suggested by Bruno Haible.
46240
46241 2007-10-22  Bruno Haible  <bruno@clisp.org>
46242
46243         * lib/acl.c (copy_acl): Fix file name in comment.
46244
46245 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46246
46247         Fix Tru64 problem with stdbool.h.
46248         * lib/stdbool.in.h (false, true):
46249         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46250         Don't declare as an enum in this situation; it runs afoul of Tru64.
46251         Problem reported by Steven M. Schweda in
46252         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46253
46254 2007-10-22  Eric Blake  <ebb9@byu.net>
46255
46256         Also wrap vf?printf.
46257         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46258         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46259         (xvprintf, xvfprintf): New functions.
46260
46261 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46262
46263         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46264         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46265
46266         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46267         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46268
46269 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46270
46271         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46272         by Bruno Haible.
46273
46274 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46275
46276         * lib/getloadavg.c
46277         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46278         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46279
46280         * tests/test-i-ring.c: Work for C89.
46281
46282 2007-10-22  Bruno Haible  <bruno@clisp.org>
46283
46284         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46285         -1u, in preprocessor expression, so that we don't test for the bug
46286         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46287         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46288
46289 2007-10-22  Eric Blake  <ebb9@byu.net>
46290
46291         * tests/test-yesno.sh: Silence stderr during test.
46292
46293 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46294
46295         * modules/crypto/gc-camellia: New file.
46296
46297         * m4/gc-camellia.m4: New file.
46298
46299         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46300
46301         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46302
46303 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46304
46305         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46306         --help to stdout.  Reported by sms@antinode.org (Steven
46307         M. Schweda).
46308
46309 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46310
46311         * users.txt: Fix link to libksba.
46312
46313 2007-10-21  Ben Pfaff  <blp@gnu.org>
46314
46315         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46316         round.c roundf implementation that depends on floorf and ceilf to
46317         be tested unconditionally.
46318
46319 2007-10-21  Ben Pfaff  <blp@gnu.org>
46320
46321         * m4/check-libm-func.m4: Removed.
46322         * m4/check-math-lib.m4: New file.
46323         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46324         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46325         definition and lack of AC_LIBOBJ([roundf]).
46326         * m4/roundl.m4: Ditto, and similarly for roundl.
46327         * modules/round: Reference new m4 file.
46328         * modules/roundf: Ditto.
46329         * modules/roundl: Ditto.
46330         * tests/test-round2.c (main): Use ROUND instead of round.
46331         Bug report from Bruno Haible.
46332
46333 2007-10-21  Bruno Haible  <bruno@clisp.org>
46334
46335         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46336         context.
46337
46338 2007-10-21  Bruno Haible  <bruno@clisp.org>
46339
46340         * tests/test-wcwidth.c (main): Allow negative result for some control
46341         characters.
46342
46343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46344         Needed on OSF/1 5.1.
46345
46346 2007-10-21  Bruno Haible  <bruno@clisp.org>
46347
46348         * tests/test-floorf1.c: Include isnanf.h.
46349         (main): Use isnanf() instead of isnan().
46350         * tests/test-ceilf1.c: Include isnanf.h.
46351         (main): Use isnanf() instead of isnan().
46352         * tests/test-truncf1.c: Include isnanf.h.
46353         (main): Use isnanf() instead of isnan().
46354         * tests/test-roundf1.c: Include isnanf.h.
46355         (main): Use isnanf() instead of isnan().
46356
46357 2007-10-21  Eric Blake  <ebb9@byu.net>
46358
46359         * users.txt: Update URL for m4.
46360
46361 2007-10-21  Bruno Haible  <bruno@clisp.org>
46362
46363         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46364
46365 2007-10-21  Bruno Haible  <bruno@clisp.org>
46366
46367         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46368         Git's management files if the CVS files are not present.
46369
46370 2007-10-20  Bruno Haible  <bruno@clisp.org>
46371
46372         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46373         gcc-3.4.x.
46374
46375 2007-10-20  Ben Pfaff  <blp@gnu.org>
46376
46377         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46378         implementations.
46379         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46380         * lib/round.c: New file.
46381         * lib/roundf.c: New file.
46382         * lib/roundl.c: New file.
46383         * m4/round.m4: New file.
46384         * m4/roundf.m4: New file.
46385         * m4/roundl.m4: New file.
46386         * m4/check-libm-func-m4: New file.
46387         * modules/math: Replace round, roundf, roundl related @VARS@ in
46388         math.in.h.
46389         * modules/round: New file.
46390         * modules/round-tests: New file.
46391         * modules/roundf: New file.
46392         * modules/roundf-tests: New file.
46393         * modules/roundl: New file.
46394         * modules/roundl-tests: New file.
46395         * tests/test-round1.c: New file.
46396         * tests/test-round2.c: New file.
46397         * tests/test-roundf1.c: New file.
46398         * tests/test-roundf2.c: New file.
46399         * tests/test-roundl.c: New file.
46400         * doc/functions/round.texi: Mention round module.
46401         * doc/functions/roundf.texi: Mention roundf module.
46402         * doc/functions/roundl.texi: Mention roundl module.
46403         * MODULES.html.sh: Mention new modules.
46404         Thanks to Bruno Haible for suggestions.
46405
46406 2007-10-20  Jim Meyering  <meyering@redhat.com>
46407
46408         * lib/xprintf.c: Include <config.h> unconditionally.
46409
46410         Change xprintf's license to GPL.
46411         * modules/xprintf (License): s/LGPL/GPL/, since this module
46412         depends on modules (exit and exitfail) which are GPL.
46413         Suggestion from Bruno Haible.
46414
46415         xprintf fixes.
46416         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46417         Use a clearer diagnostic.
46418         Patch from Bruno Haible.
46419
46420 2007-10-20  Bruno Haible  <bruno@clisp.org>
46421
46422         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46423         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46424         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46425
46426 2007-10-20  Bruno Haible  <bruno@clisp.org>
46427
46428         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46429         precision in the comparison result > x - 1 or similar.
46430         * tests/test-ceilf2.c (correct_result_p): Likewise.
46431         * tests/test-truncf2.c (correct_result_p): Likewise.
46432         * tests/test-trunc2.c (correct_result_p): Likewise.
46433         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46434
46435 2007-10-20  Bruno Haible  <bruno@clisp.org>
46436
46437         * modules/ceil: New file.
46438         * m4/ceil.m4: New file.
46439         * doc/functions/ceil.texi: Mention the 'ceil' module.
46440
46441 2007-10-20  Bruno Haible  <bruno@clisp.org>
46442
46443         * modules/floor: New file.
46444         * m4/floor.m4: New file.
46445         * doc/functions/floor.texi: Mention the 'floor' module.
46446
46447 2007-10-20  Bruno Haible  <bruno@clisp.org>
46448
46449         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46450         of %a.
46451         * modules/floorf-tests (Depends-on): Likewise.
46452         * modules/truncf-tests (Depends-on): Likewise.
46453         * modules/trunc-tests (Depends-on): Likewise.
46454         Reported by Ben Pfaff.
46455
46456 2007-10-19  Jim Meyering  <meyering@redhat.com>
46457
46458         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46459         Don't bother testing specific errno values.  Just test ferror.
46460
46461         New module: xprintf
46462         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46463
46464 2007-10-19  Bruno Haible  <bruno@clisp.org>
46465
46466         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46467         syntax.
46468         * modules/javaexec (Makefile.am): Likewise.
46469         * modules/relocatable-prog (Makefile.am): Likewise.
46470         Suggested by Jim Meyering.
46471
46472 2007-10-18  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46475         Reported by Jim Meyering.
46476
46477 2007-10-18  Eric Blake  <ebb9@byu.net>
46478
46479         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46480
46481 2007-10-18  Bruno Haible  <bruno@clisp.org>
46482
46483         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46484         the format string into writable memory. Needed in Fortify conditions.
46485
46486 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46487             Bruno Haible  <bruno@clisp.org>
46488
46489         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46490         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46491         * modules/trim (Depends-on): Add mbchar.
46492         (configure.ac): Add gl_FUNC_MBRTOWC.
46493         (Makefile.am): Augment lib_SOURCES.
46494
46495 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46496
46497         Modify glob.c to use fstatat and dirfd, to simplify it.
46498         Suggested by Eric Blake.
46499         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46500         Don't include <stdbool.h>; not used.
46501         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46502         (link_exists_p): Simplify implementation, since we can now assume
46503         dirfd and fstatat.
46504         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46505
46506 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46507
46508         * gnulib-tool (func_get_dependencies): Fix sed script to
46509         match only tests.
46510
46511 2007-10-17  Bruno Haible  <bruno@clisp.org>
46512
46513         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46514         allow locale names without encoding suffix.
46515         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46516         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46517
46518 2007-10-16  Bruno Haible  <bruno@clisp.org>
46519
46520         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46521         * lib/getgroups.c (getgroups): Likewise.
46522         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46523
46524 2007-10-16  Bruno Haible  <bruno@clisp.org>
46525
46526         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46527         * modules/malloc-posix (License): Likewise.
46528         * modules/realloc-posix (License): Likewise.
46529         * modules/calloc-posix (License): Likewise.
46530         * modules/intprops (License): Change from GPL to LGPL, with
46531         Paul Eggert's approval.
46532
46533 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46534
46535         Merge glibc changes into lib/glob.c.
46536
46537         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46538         2007-10-15 04:59:03 UTC.  Here are the changes:
46539
46540         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46541
46542         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46543
46544         * lib/glob.c: Add some branch prediction throughout.
46545
46546         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46547
46548         [BZ #5103]
46549         * lib/glob.c (glob): Recognize patterns starting \/.
46550
46551         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46552
46553         [BZ #3996]
46554         * lib/glob.c (attribute_hidden): Define if not defined.
46555         (glob): Unescape dirname, filename or username when needed and not
46556         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46557         is NULL.  Handle unescaped [ in pattern without closing ].
46558         Don't pass GLOB_CHECK down to recursive glob for directories.
46559         (__glob_pattern_type): New function.
46560         (__glob_pattern_p): Implement using __glob_pattern_type.
46561         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46562         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46563         Remove unreachable code.
46564
46565         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46566
46567         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46568         explain why there are no leaks.
46569
46570         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46571
46572         [BZ #3253]
46573         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46574         time, rather allocate increasingly bigger arrays of pointers, if
46575         possible with alloca, if too large with malloc.
46576
46577 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46578
46579         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46580         Problem reported by H.Merijn Brand in
46581         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46582         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46583         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46584
46585 2007-10-15  Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46588         with explicit rpl_ prefix.
46589         * lib/fopen.c (fopen): Likewise.
46590         * lib/freopen.c (freopen): Likewise.
46591         * lib/iconv.c (iconv): Likewise.
46592         * lib/iconv_close.c (iconv_close): Likewise.
46593
46594 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46595
46596         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46597
46598 2007-10-15  Bruno Haible  <bruno@clisp.org>
46599
46600         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46601         <stddef.h> instead of <stdlib.h> since we only need NULL.
46602         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46603
46604 2007-10-15  Bruno Haible  <bruno@clisp.org>
46605
46606         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46607         Replace paragraph talking about LIBOBJS.
46608         Reported by Colin Watson <cjwatson@debian.org>.
46609
46610 2007-10-15  Bruno Haible  <bruno@clisp.org>
46611
46612         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46613         <stdlib.h> before using NULL.
46614
46615 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46616
46617         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46618         Reported by Albert Chin <china@thewrittenword.com>.
46619
46620 2007-10-14  Bruno Haible  <bruno@clisp.org>
46621
46622         * modules/iconv_open-utf-tests: New file.
46623         * tests/test-iconv-utf.c: New file.
46624
46625         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46626         * modules/iconv_open-utf: New file.
46627         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46628         (iconv, iconv_close): New declarations.
46629         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46630         be defined.
46631         (iconv_open): Add special handling of conversion between UTF-8 and
46632         UTF-{16,32}{BE,LE}.
46633         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46634         * lib/iconv_close.c: New file.
46635         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46636         gl_FUNC_ICONV_OPEN.
46637         (gl_FUNC_ICONV_OPEN): Use it.
46638         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46639         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46640         and REPLACE_ICONV_UTF.
46641         * modules/iconv_open (Depends-on): Add c-strcase.
46642         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46643         ICONV_CONST.
46644         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46645
46646 2007-10-13  Albert Chin  <china@thewrittenword.com>
46647             Bruno Haible  <bruno@clisp.org>
46648
46649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46650         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46651
46652 2007-10-13  Bruno Haible  <bruno@clisp.org>
46653
46654         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46655         defined, use the ISO C99 inline semantics.
46656         * lib/argp.h (ARGP_EI): Likewise.
46657
46658 2007-10-13  Bruno Haible  <bruno@clisp.org>
46659
46660         Handle 'inline' change in gcc 4.3.0.
46661         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46662         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46663         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46664         argp_fmtstream_point): Disable 'extern' declaration if the function
46665         definition is going to be provided inline.
46666         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46667         semantics, not the ISO C99 inline semantics.
46668         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46669         'extern' declaration if the function definition is going to be provided
46670         inline.
46671         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46672         the GNU C inline semantics, not the ISO C99 inline semantics. With
46673         GCC 4.2, avoid a warning.
46674
46675 2007-10-13  Bruno Haible  <bruno@clisp.org>
46676
46677         * lib/freading.h (freading): Enable the use of __freading for
46678         glibc >= 2.7.
46679         * lib/freading.c (freading): Likewise.
46680
46681 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46682
46683         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46684         "warning: C99 inline functions are not supported; using GNU89".
46685
46686 2007-10-12  Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46689         of 2.
46690         * tests/test-ceilf2.c: New file.
46691         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46692
46693         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46694         * modules/ceilf-tests: Update.
46695
46696 2007-10-12  Bruno Haible  <bruno@clisp.org>
46697
46698         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46699         of 2.
46700         * tests/test-floorf2.c: New file.
46701         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46702
46703         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46704         * modules/floorf-tests: Update.
46705
46706 2007-10-12  Bruno Haible  <bruno@clisp.org>
46707
46708         * tests/test-trunc2.c: New file.
46709         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46710
46711         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46712         * modules/trunc-tests: Update.
46713
46714 2007-10-12  Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46717         of 2.
46718         * tests/test-truncf2.c: New file.
46719         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46720
46721         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46722         * modules/truncf-tests: Update.
46723
46724 2007-10-11  Eric Blake  <ebb9@byu.net>
46725
46726         Don't claim strerror is broken on Interix.
46727         * doc/functions/strerror.texi (strerror): Known broken systems are
46728         now Solaris 8, and not Interix.
46729         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46730         Interix on cross-compile.
46731         Reported by Martin Koeppe in
46732         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46733
46734 2007-10-11  Bruno Haible  <bruno@clisp.org>
46735
46736         * modules/i-ring-tests: New file.
46737         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46738         instead of assert.
46739
46740 2007-10-11  Bruno Haible  <bruno@clisp.org>
46741
46742         * modules/filenamecat-tests: New file.
46743         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46744         * lib/filenamecat.c: Remove test code.
46745
46746 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46747
46748         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46749
46750         * lib/strerror.c: Include <string.h> always, to test interface,
46751         and to remove the need for the dummy.
46752         Include intprops.h to compute width instead of doing it ourselves
46753         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46754         (strerror): Define it to return NULL if there's no system strerror.
46755         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46756         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46757         ancient pre-strerror Unix systems well any more.  Saying "unknown
46758         system error" is enough.
46759         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46760         simpler strerror.c implementation.
46761         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46762         Simplify the tests to reflect the simpler strerror implementation.
46763         * modules/strerror (Depends-on): Add intprops.
46764
46765 2007-10-09  Eric Blake  <ebb9@byu.net>
46766
46767         Silence test-fpending.
46768         * modules/fpending-tests (Files): Add wrapper script.
46769         * tests/test-fpending.sh: New file.
46770
46771 2007-10-09  Bruno Haible  <bruno@clisp.org>
46772
46773         * MODULES.html.sh (func_module): Don't create a hyperlink for
46774         function names like 'printf_frexp'.
46775         (Misc): Add crc, memxor.
46776         (Characteristics of floating types): New section.
46777         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46778         isnanf-nolibm, signbit, trunc, truncf, truncl.
46779         (Enhancements for ISO C 99 functions): New subsection Input/output.
46780         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46781         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46782         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46783         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46784         (Enhancements for POSIX:2001 functions): Add chdir-long.
46785         (File system functions): Add areadlink, chdir-safer, read-file.
46786         Remove cycle-check.
46787         (File system as inode set): New section.
46788         (Date and time): Add gethrxtime.
46789         (Multithreading): Add openmp.
46790         (Internationalization functions): Add localename.
46791         (Unicode string functions): Add unistr/u*-mbsnlen.
46792         (Support for maintaining and releasing projects): Add git-version-gen.
46793         (Lone files): Remove directories.
46794
46795 2007-10-08  Ben Pfaff  <blp@gnu.org>
46796
46797         * lib/xmalloca.h: Fix typo in comment.
46798
46799 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46800
46801         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46802         when avoiding problems with integer overflow.  Use a portable test
46803         instead.
46804
46805 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46806
46807         * modules/dummy (License): Change to LGPLv2+.
46808         * modules/float (License): Likewise
46809         * modules/realloc (License): Likewise
46810         * modules/stdlib (License): Likewise
46811
46812 2007-10-07  Bruno Haible  <bruno@clisp.org>
46813
46814         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46815         * floor.c (TWO_MANT_DIG): Likewise.
46816         * ceil.c (TWO_MANT_DIG): Likewise.
46817         Reported by Ben Pfaff.
46818
46819 2007-10-07  Bruno Haible  <bruno@clisp.org>
46820
46821         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46822         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46823         * lib/frexp.c (FUNC): Likewise.
46824         * lib/printf-frexp.h (printf_frexp): Likewise.
46825         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46826         * lib/printf-frexp.c (FUNC): Likewise.
46827         Suggested by Jim Meyering.
46828
46829 2007-10-07  Jim Meyering  <meyering@redhat.com>
46830
46831         Make xnanosleep's integer overflow test more robust.
46832         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46833         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46834
46835 2007-10-07  Bruno Haible  <bruno@clisp.org>
46836
46837         * NEWS: Mention the license change.
46838
46839         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46840         abbreviations in the modules files.
46841
46842         Change copyright notice from GPLv2+ to GPLv3+.
46843         * README: Change copyright notice.
46844         * MODULES.html.sh: Likewise.
46845         * build-aux/bootstrap.conf: Likewise.
46846         * build-aux/config.libpath: Likewise.
46847         * build-aux/csharpcomp.sh.in: Likewise.
46848         * build-aux/csharpexec.sh.in: Likewise.
46849         * build-aux/install-reloc: Likewise.
46850         * build-aux/javacomp.sh.in: Likewise.
46851         * build-aux/javaexec.sh.in: Likewise.
46852         * build-aux/ldd.sh.in: Likewise.
46853         * build-aux/reloc-ldflags: Likewise.
46854         * build-aux/relocatable.sh.in: Likewise.
46855         * build-aux/x-to-1.in: Likewise.
46856         * check-module: Likewise.
46857         * config/srclistvars.sh: Likewise.
46858         * gnulib-tool: Likewise.
46859         * lib/acl-internal.h: Likewise.
46860         * lib/acl.c: Likewise.
46861         * lib/acl.h: Likewise.
46862         * lib/acl_entries.c: Likewise.
46863         * lib/areadlink-with-size.c: Likewise.
46864         * lib/areadlink.c: Likewise.
46865         * lib/areadlink.h: Likewise.
46866         * lib/argmatch.c: Likewise.
46867         * lib/argmatch.h: Likewise.
46868         * lib/argp-ba.c: Likewise.
46869         * lib/argp-eexst.c: Likewise.
46870         * lib/argp-fmtstream.c: Likewise.
46871         * lib/argp-fmtstream.h: Likewise.
46872         * lib/argp-fs-xinl.c: Likewise.
46873         * lib/argp-help.c: Likewise.
46874         * lib/argp-namefrob.h: Likewise.
46875         * lib/argp-parse.c: Likewise.
46876         * lib/argp-pin.c: Likewise.
46877         * lib/argp-pv.c: Likewise.
46878         * lib/argp-pvh.c: Likewise.
46879         * lib/argp-xinl.c: Likewise.
46880         * lib/argp.h: Likewise.
46881         * lib/at-func.c: Likewise.
46882         * lib/atanl.c: Likewise.
46883         * lib/backupfile.c: Likewise.
46884         * lib/backupfile.h: Likewise.
46885         * lib/basename.c: Likewise.
46886         * lib/binary-io.h: Likewise.
46887         * lib/byteswap.in.h: Likewise.
46888         * lib/c-stack.c: Likewise.
46889         * lib/c-stack.h: Likewise.
46890         * lib/c-strcasestr.c: Likewise.
46891         * lib/c-strcasestr.h: Likewise.
46892         * lib/c-strstr.c: Likewise.
46893         * lib/c-strstr.h: Likewise.
46894         * lib/c-strtod.c: Likewise.
46895         * lib/calloc.c: Likewise.
46896         * lib/canon-host.c: Likewise.
46897         * lib/canon-host.h: Likewise.
46898         * lib/canonicalize-lgpl.c: Likewise.
46899         * lib/canonicalize.c: Likewise.
46900         * lib/canonicalize.h: Likewise.
46901         * lib/ceil.c: Likewise.
46902         * lib/ceilf.c: Likewise.
46903         * lib/ceill.c: Likewise.
46904         * lib/chdir-long.c: Likewise.
46905         * lib/chdir-long.h: Likewise.
46906         * lib/chdir-safer.c: Likewise.
46907         * lib/chdir-safer.h: Likewise.
46908         * lib/chown.c: Likewise.
46909         * lib/classpath.c: Likewise.
46910         * lib/classpath.h: Likewise.
46911         * lib/clean-temp.c: Likewise.
46912         * lib/clean-temp.h: Likewise.
46913         * lib/cloexec.c: Likewise.
46914         * lib/close-stream.c: Likewise.
46915         * lib/closein.c: Likewise.
46916         * lib/closein.h: Likewise.
46917         * lib/closeout.c: Likewise.
46918         * lib/closeout.h: Likewise.
46919         * lib/concat-filename.c: Likewise.
46920         * lib/copy-file.c: Likewise.
46921         * lib/copy-file.h: Likewise.
46922         * lib/count-one-bits.h: Likewise.
46923         * lib/crc.c: Likewise.
46924         * lib/crc.h: Likewise.
46925         * lib/creat-safer.c: Likewise.
46926         * lib/csharpcomp.c: Likewise.
46927         * lib/csharpcomp.h: Likewise.
46928         * lib/csharpexec.c: Likewise.
46929         * lib/csharpexec.h: Likewise.
46930         * lib/cycle-check.c: Likewise.
46931         * lib/cycle-check.h: Likewise.
46932         * lib/diacrit.c: Likewise.
46933         * lib/diacrit.h: Likewise.
46934         * lib/diffseq.h: Likewise.
46935         * lib/dirchownmod.c: Likewise.
46936         * lib/dirent.in.h: Likewise.
46937         * lib/dirfd.c: Likewise.
46938         * lib/dirfd.h: Likewise.
46939         * lib/dirname.c: Likewise.
46940         * lib/dirname.h: Likewise.
46941         * lib/dummy.c: Likewise.
46942         * lib/dup-safer.c: Likewise.
46943         * lib/dup2.c: Likewise.
46944         * lib/eealloc.h: Likewise.
46945         * lib/error.c: Likewise.
46946         * lib/error.h: Likewise.
46947         * lib/euidaccess.c: Likewise.
46948         * lib/exclude.c: Likewise.
46949         * lib/exclude.h: Likewise.
46950         * lib/execute.c: Likewise.
46951         * lib/execute.h: Likewise.
46952         * lib/exitfail.c: Likewise.
46953         * lib/exitfail.h: Likewise.
46954         * lib/expl.c: Likewise.
46955         * lib/fatal-signal.c: Likewise.
46956         * lib/fatal-signal.h: Likewise.
46957         * lib/fbufmode.c: Likewise.
46958         * lib/fbufmode.h: Likewise.
46959         * lib/fchdir.c: Likewise.
46960         * lib/fchmodat.c: Likewise.
46961         * lib/fchownat.c: Likewise.
46962         * lib/fcntl--.h: Likewise.
46963         * lib/fcntl-safer.h: Likewise.
46964         * lib/fcntl.in.h: Likewise.
46965         * lib/fd-safer.c: Likewise.
46966         * lib/fflush.c: Likewise.
46967         * lib/file-has-acl.c: Likewise.
46968         * lib/file-set.c: Likewise.
46969         * lib/file-type.c: Likewise.
46970         * lib/file-type.h: Likewise.
46971         * lib/fileblocks.c: Likewise.
46972         * lib/filemode.c: Likewise.
46973         * lib/filemode.h: Likewise.
46974         * lib/filename.h: Likewise.
46975         * lib/filenamecat.c: Likewise.
46976         * lib/filenamecat.h: Likewise.
46977         * lib/findprog.c: Likewise.
46978         * lib/findprog.h: Likewise.
46979         * lib/float.in.h: Likewise.
46980         * lib/floor.c: Likewise.
46981         * lib/floorf.c: Likewise.
46982         * lib/floorl.c: Likewise.
46983         * lib/fopen-safer.c: Likewise.
46984         * lib/fopen.c: Likewise.
46985         * lib/fpending.c: Likewise.
46986         * lib/fpending.h: Likewise.
46987         * lib/fprintf.c: Likewise.
46988         * lib/fprintftime.h: Likewise.
46989         * lib/fpucw.h: Likewise.
46990         * lib/fpurge.c: Likewise.
46991         * lib/fpurge.h: Likewise.
46992         * lib/freadable.c: Likewise.
46993         * lib/freadable.h: Likewise.
46994         * lib/freadahead.c: Likewise.
46995         * lib/freadahead.h: Likewise.
46996         * lib/freading.c: Likewise.
46997         * lib/freading.h: Likewise.
46998         * lib/free.c: Likewise.
46999         * lib/freopen.c: Likewise.
47000         * lib/frexp.c: Likewise.
47001         * lib/frexpl.c: Likewise.
47002         * lib/fseek.c: Likewise.
47003         * lib/fseterr.c: Likewise.
47004         * lib/fseterr.h: Likewise.
47005         * lib/fstatat.c: Likewise.
47006         * lib/fstrcmp.c: Likewise.
47007         * lib/fstrcmp.h: Likewise.
47008         * lib/fsusage.c: Likewise.
47009         * lib/fsusage.h: Likewise.
47010         * lib/ftell.c: Likewise.
47011         * lib/ftello.c: Likewise.
47012         * lib/fts-cycle.c: Likewise.
47013         * lib/fts.c: Likewise.
47014         * lib/fts_.h: Likewise.
47015         * lib/full-read.c: Likewise.
47016         * lib/full-read.h: Likewise.
47017         * lib/full-write.c: Likewise.
47018         * lib/full-write.h: Likewise.
47019         * lib/fwritable.c: Likewise.
47020         * lib/fwritable.h: Likewise.
47021         * lib/fwriteerror.c: Likewise.
47022         * lib/fwriteerror.h: Likewise.
47023         * lib/fwriting.c: Likewise.
47024         * lib/fwriting.h: Likewise.
47025         * lib/gcd.c: Likewise.
47026         * lib/gcd.h: Likewise.
47027         * lib/getcwd.c: Likewise.
47028         * lib/getdate.h: Likewise.
47029         * lib/getdate.y: Likewise.
47030         * lib/getdomainname.c: Likewise.
47031         * lib/getdomainname.h: Likewise.
47032         * lib/getgroups.c: Likewise.
47033         * lib/gethostname.c: Likewise.
47034         * lib/gethrxtime.c: Likewise.
47035         * lib/gethrxtime.h: Likewise.
47036         * lib/getloadavg.c: Likewise.
47037         * lib/getndelim2.c: Likewise.
47038         * lib/getndelim2.h: Likewise.
47039         * lib/getnline.c: Likewise.
47040         * lib/getnline.h: Likewise.
47041         * lib/getopt.c: Likewise.
47042         * lib/getopt.in.h: Likewise.
47043         * lib/getopt1.c: Likewise.
47044         * lib/getopt_int.h: Likewise.
47045         * lib/getpagesize.h: Likewise.
47046         * lib/getsubopt.c: Likewise.
47047         * lib/gettime.c: Likewise.
47048         * lib/getugroups.c: Likewise.
47049         * lib/getugroups.h: Likewise.
47050         * lib/getusershell.c: Likewise.
47051         * lib/gl_anyavltree_list1.h: Likewise.
47052         * lib/gl_anyavltree_list2.h: Likewise.
47053         * lib/gl_anyhash_list1.h: Likewise.
47054         * lib/gl_anyhash_list2.h: Likewise.
47055         * lib/gl_anylinked_list1.h: Likewise.
47056         * lib/gl_anylinked_list2.h: Likewise.
47057         * lib/gl_anyrbtree_list1.h: Likewise.
47058         * lib/gl_anyrbtree_list2.h: Likewise.
47059         * lib/gl_anytree_list1.h: Likewise.
47060         * lib/gl_anytree_list2.h: Likewise.
47061         * lib/gl_anytree_oset.h: Likewise.
47062         * lib/gl_anytreehash_list1.h: Likewise.
47063         * lib/gl_anytreehash_list2.h: Likewise.
47064         * lib/gl_array_list.c: Likewise.
47065         * lib/gl_array_list.h: Likewise.
47066         * lib/gl_array_oset.c: Likewise.
47067         * lib/gl_array_oset.h: Likewise.
47068         * lib/gl_avltree_list.c: Likewise.
47069         * lib/gl_avltree_list.h: Likewise.
47070         * lib/gl_avltree_oset.c: Likewise.
47071         * lib/gl_avltree_oset.h: Likewise.
47072         * lib/gl_avltreehash_list.c: Likewise.
47073         * lib/gl_avltreehash_list.h: Likewise.
47074         * lib/gl_carray_list.c: Likewise.
47075         * lib/gl_carray_list.h: Likewise.
47076         * lib/gl_linked_list.c: Likewise.
47077         * lib/gl_linked_list.h: Likewise.
47078         * lib/gl_linkedhash_list.c: Likewise.
47079         * lib/gl_linkedhash_list.h: Likewise.
47080         * lib/gl_list.c: Likewise.
47081         * lib/gl_list.h: Likewise.
47082         * lib/gl_oset.c: Likewise.
47083         * lib/gl_oset.h: Likewise.
47084         * lib/gl_rbtree_list.c: Likewise.
47085         * lib/gl_rbtree_list.h: Likewise.
47086         * lib/gl_rbtree_oset.c: Likewise.
47087         * lib/gl_rbtree_oset.h: Likewise.
47088         * lib/gl_rbtreehash_list.c: Likewise.
47089         * lib/gl_rbtreehash_list.h: Likewise.
47090         * lib/gl_sublist.c: Likewise.
47091         * lib/gl_sublist.h: Likewise.
47092         * lib/group-member.c: Likewise.
47093         * lib/group-member.h: Likewise.
47094         * lib/hard-locale.c: Likewise.
47095         * lib/hard-locale.h: Likewise.
47096         * lib/hash-pjw.c: Likewise.
47097         * lib/hash-pjw.h: Likewise.
47098         * lib/hash-triple.c: Likewise.
47099         * lib/hash.c: Likewise.
47100         * lib/hash.h: Likewise.
47101         * lib/human.c: Likewise.
47102         * lib/human.h: Likewise.
47103         * lib/i-ring.c: Likewise.
47104         * lib/i-ring.h: Likewise.
47105         * lib/idcache.c: Likewise.
47106         * lib/imaxabs.c: Likewise.
47107         * lib/imaxdiv.c: Likewise.
47108         * lib/inet_pton.c: Likewise.
47109         * lib/inet_pton.h: Likewise.
47110         * lib/intprops.h: Likewise.
47111         * lib/inttostr.c: Likewise.
47112         * lib/inttostr.h: Likewise.
47113         * lib/inttypes.in.h: Likewise.
47114         * lib/isapipe.c: Likewise.
47115         * lib/isdir.c: Likewise.
47116         * lib/isnan.c: Likewise.
47117         * lib/isnan.h: Likewise.
47118         * lib/isnanf.c: Likewise.
47119         * lib/isnanf.h: Likewise.
47120         * lib/isnanl-nolibm.h: Likewise.
47121         * lib/isnanl.c: Likewise.
47122         * lib/isnanl.h: Likewise.
47123         * lib/javacomp.c: Likewise.
47124         * lib/javacomp.h: Likewise.
47125         * lib/javaexec.c: Likewise.
47126         * lib/javaexec.h: Likewise.
47127         * lib/javaversion.c: Likewise.
47128         * lib/javaversion.h: Likewise.
47129         * lib/javaversion.java: Likewise.
47130         * lib/lbrkprop.h: Likewise.
47131         * lib/lchmod.h: Likewise.
47132         * lib/lchown.c: Likewise.
47133         * lib/ldexpl.c: Likewise.
47134         * lib/linebreak.c: Likewise.
47135         * lib/linebreak.h: Likewise.
47136         * lib/linebuffer.c: Likewise.
47137         * lib/linebuffer.h: Likewise.
47138         * lib/locale.in.h: Likewise.
47139         * lib/logl.c: Likewise.
47140         * lib/long-options.c: Likewise.
47141         * lib/long-options.h: Likewise.
47142         * lib/lstat.c: Likewise.
47143         * lib/lstat.h: Likewise.
47144         * lib/math.in.h: Likewise.
47145         * lib/mbchar.c: Likewise.
47146         * lib/mbchar.h: Likewise.
47147         * lib/mbfile.h: Likewise.
47148         * lib/mbiter.h: Likewise.
47149         * lib/mbscasecmp.c: Likewise.
47150         * lib/mbscasestr.c: Likewise.
47151         * lib/mbschr.c: Likewise.
47152         * lib/mbscspn.c: Likewise.
47153         * lib/mbslen.c: Likewise.
47154         * lib/mbsncasecmp.c: Likewise.
47155         * lib/mbsnlen.c: Likewise.
47156         * lib/mbspbrk.c: Likewise.
47157         * lib/mbspcasecmp.c: Likewise.
47158         * lib/mbsrchr.c: Likewise.
47159         * lib/mbssep.c: Likewise.
47160         * lib/mbsspn.c: Likewise.
47161         * lib/mbsstr.c: Likewise.
47162         * lib/mbstok_r.c: Likewise.
47163         * lib/mbswidth.c: Likewise.
47164         * lib/mbswidth.h: Likewise.
47165         * lib/mbuiter.h: Likewise.
47166         * lib/memcasecmp.c: Likewise.
47167         * lib/memcasecmp.h: Likewise.
47168         * lib/memchr.c: Likewise.
47169         * lib/memcmp.c: Likewise.
47170         * lib/memcoll.c: Likewise.
47171         * lib/memcoll.h: Likewise.
47172         * lib/memcpy.c: Likewise.
47173         * lib/memrchr.c: Likewise.
47174         * lib/mkancesdirs.c: Likewise.
47175         * lib/mkdir-p.c: Likewise.
47176         * lib/mkdir-p.h: Likewise.
47177         * lib/mkdir.c: Likewise.
47178         * lib/mkdirat.c: Likewise.
47179         * lib/mkdtemp.c: Likewise.
47180         * lib/mkstemp-safer.c: Likewise.
47181         * lib/mkstemp.c: Likewise.
47182         * lib/modechange.c: Likewise.
47183         * lib/modechange.h: Likewise.
47184         * lib/mountlist.c: Likewise.
47185         * lib/mountlist.h: Likewise.
47186         * lib/mpsort.c: Likewise.
47187         * lib/nanosleep.c: Likewise.
47188         * lib/obstack.c: Likewise.
47189         * lib/obstack.h: Likewise.
47190         * lib/open-safer.c: Likewise.
47191         * lib/open.c: Likewise.
47192         * lib/openat-die.c: Likewise.
47193         * lib/openat-priv.h: Likewise.
47194         * lib/openat-proc.c: Likewise.
47195         * lib/openat.c: Likewise.
47196         * lib/openat.h: Likewise.
47197         * lib/pagealign_alloc.c: Likewise.
47198         * lib/pagealign_alloc.h: Likewise.
47199         * lib/physmem.c: Likewise.
47200         * lib/physmem.h: Likewise.
47201         * lib/pipe-safer.c: Likewise.
47202         * lib/pipe.c: Likewise.
47203         * lib/pipe.h: Likewise.
47204         * lib/posixtm.c: Likewise.
47205         * lib/posixtm.h: Likewise.
47206         * lib/posixver.c: Likewise.
47207         * lib/printf-frexp.c: Likewise.
47208         * lib/printf-frexp.h: Likewise.
47209         * lib/printf-frexpl.c: Likewise.
47210         * lib/printf-frexpl.h: Likewise.
47211         * lib/printf.c: Likewise.
47212         * lib/progname.c: Likewise.
47213         * lib/progname.h: Likewise.
47214         * lib/progreloc.c: Likewise.
47215         * lib/putenv.c: Likewise.
47216         * lib/quote.c: Likewise.
47217         * lib/quote.h: Likewise.
47218         * lib/quotearg.c: Likewise.
47219         * lib/quotearg.h: Likewise.
47220         * lib/raise.c: Likewise.
47221         * lib/readline.c: Likewise.
47222         * lib/readline.h: Likewise.
47223         * lib/readlink.c: Likewise.
47224         * lib/readtokens.c: Likewise.
47225         * lib/readtokens.h: Likewise.
47226         * lib/readtokens0.c: Likewise.
47227         * lib/readtokens0.h: Likewise.
47228         * lib/readutmp.c: Likewise.
47229         * lib/readutmp.h: Likewise.
47230         * lib/realloc.c: Likewise.
47231         * lib/relocwrapper.c: Likewise.
47232         * lib/rename-dest-slash.c: Likewise.
47233         * lib/rename.c: Likewise.
47234         * lib/rmdir.c: Likewise.
47235         * lib/rpmatch.c: Likewise.
47236         * lib/safe-read.c: Likewise.
47237         * lib/safe-read.h: Likewise.
47238         * lib/safe-write.c: Likewise.
47239         * lib/safe-write.h: Likewise.
47240         * lib/same-inode.h: Likewise.
47241         * lib/same.c: Likewise.
47242         * lib/same.h: Likewise.
47243         * lib/save-cwd.c: Likewise.
47244         * lib/save-cwd.h: Likewise.
47245         * lib/savedir.c: Likewise.
47246         * lib/savedir.h: Likewise.
47247         * lib/savewd.c: Likewise.
47248         * lib/savewd.h: Likewise.
47249         * lib/search.in.h: Likewise.
47250         * lib/setenv.c: Likewise.
47251         * lib/setenv.h: Likewise.
47252         * lib/settime.c: Likewise.
47253         * lib/sh-quote.c: Likewise.
47254         * lib/sh-quote.h: Likewise.
47255         * lib/sig2str.c: Likewise.
47256         * lib/sig2str.h: Likewise.
47257         * lib/signal.in.h: Likewise.
47258         * lib/signbitd.c: Likewise.
47259         * lib/signbitf.c: Likewise.
47260         * lib/signbitl.c: Likewise.
47261         * lib/sigprocmask.c: Likewise.
47262         * lib/sincosl.c: Likewise.
47263         * lib/sleep.c: Likewise.
47264         * lib/sprintf.c: Likewise.
47265         * lib/sqrtl.c: Likewise.
47266         * lib/stat-time.h: Likewise.
47267         * lib/stdio--.h: Likewise.
47268         * lib/stdio-safer.h: Likewise.
47269         * lib/stdlib--.h: Likewise.
47270         * lib/stdlib-safer.h: Likewise.
47271         * lib/stdlib.in.h: Likewise.
47272         * lib/stpcpy.c: Likewise.
47273         * lib/stpncpy.c: Likewise.
47274         * lib/strchrnul.c: Likewise.
47275         * lib/strcspn.c: Likewise.
47276         * lib/strerror.c: Likewise.
47277         * lib/strftime.c: Likewise.
47278         * lib/strftime.h: Likewise.
47279         * lib/striconveh.c: Likewise.
47280         * lib/striconveh.h: Likewise.
47281         * lib/striconveha.c: Likewise.
47282         * lib/striconveha.h: Likewise.
47283         * lib/stripslash.c: Likewise.
47284         * lib/strnlen1.c: Likewise.
47285         * lib/strnlen1.h: Likewise.
47286         * lib/strtod.c: Likewise.
47287         * lib/strtoimax.c: Likewise.
47288         * lib/strtok_r.c: Likewise.
47289         * lib/strtol.c: Likewise.
47290         * lib/strtoll.c: Likewise.
47291         * lib/strtoul.c: Likewise.
47292         * lib/strtoull.c: Likewise.
47293         * lib/sysexits.in.h: Likewise.
47294         * lib/tempname.c: Likewise.
47295         * lib/tempname.h: Likewise.
47296         * lib/timespec.h: Likewise.
47297         * lib/tls.c: Likewise.
47298         * lib/tls.h: Likewise.
47299         * lib/tmpdir.c: Likewise.
47300         * lib/tmpdir.h: Likewise.
47301         * lib/tmpfile-safer.c: Likewise.
47302         * lib/tmpfile.c: Likewise.
47303         * lib/trigl.c: Likewise.
47304         * lib/trigl.h: Likewise.
47305         * lib/trim.c: Likewise.
47306         * lib/trim.h: Likewise.
47307         * lib/trunc.c: Likewise.
47308         * lib/truncf.c: Likewise.
47309         * lib/truncl.c: Likewise.
47310         * lib/tsearch.c: Likewise.
47311         * lib/unicodeio.c: Likewise.
47312         * lib/unicodeio.h: Likewise.
47313         * lib/unistd--.h: Likewise.
47314         * lib/unistd-safer.h: Likewise.
47315         * lib/unistdio/ulc-fprintf.c: Likewise.
47316         * lib/unistdio/ulc-vfprintf.c: Likewise.
47317         * lib/unlinkdir.c: Likewise.
47318         * lib/unlinkdir.h: Likewise.
47319         * lib/unlocked-io.h: Likewise.
47320         * lib/unsetenv.c: Likewise.
47321         * lib/userspec.c: Likewise.
47322         * lib/utime.c: Likewise.
47323         * lib/utimecmp.c: Likewise.
47324         * lib/utimecmp.h: Likewise.
47325         * lib/utimens.c: Likewise.
47326         * lib/verify.h: Likewise.
47327         * lib/verror.c: Likewise.
47328         * lib/verror.h: Likewise.
47329         * lib/version-etc-fsf.c: Likewise.
47330         * lib/version-etc.c: Likewise.
47331         * lib/version-etc.h: Likewise.
47332         * lib/vfprintf.c: Likewise.
47333         * lib/vprintf.c: Likewise.
47334         * lib/vsprintf.c: Likewise.
47335         * lib/w32spawn.h: Likewise.
47336         * lib/wait-process.c: Likewise.
47337         * lib/wait-process.h: Likewise.
47338         * lib/wcwidth.c: Likewise.
47339         * lib/write-any-file.c: Likewise.
47340         * lib/xalloc-die.c: Likewise.
47341         * lib/xalloc.h: Likewise.
47342         * lib/xasprintf.c: Likewise.
47343         * lib/xgetcwd.c: Likewise.
47344         * lib/xgetcwd.h: Likewise.
47345         * lib/xgetdomainname.c: Likewise.
47346         * lib/xgetdomainname.h: Likewise.
47347         * lib/xgethostname.c: Likewise.
47348         * lib/xmalloc.c: Likewise.
47349         * lib/xmalloca.c: Likewise.
47350         * lib/xmalloca.h: Likewise.
47351         * lib/xmemcoll.c: Likewise.
47352         * lib/xnanosleep.c: Likewise.
47353         * lib/xreadlink.c: Likewise.
47354         * lib/xreadlink.h: Likewise.
47355         * lib/xsetenv.c: Likewise.
47356         * lib/xsetenv.h: Likewise.
47357         * lib/xstriconv.c: Likewise.
47358         * lib/xstriconv.h: Likewise.
47359         * lib/xstrndup.c: Likewise.
47360         * lib/xstrndup.h: Likewise.
47361         * lib/xstrtod.c: Likewise.
47362         * lib/xstrtod.h: Likewise.
47363         * lib/xstrtol-error.c: Likewise.
47364         * lib/xstrtol.c: Likewise.
47365         * lib/xstrtol.h: Likewise.
47366         * lib/xtime.h: Likewise.
47367         * lib/xvasprintf.c: Likewise.
47368         * lib/xvasprintf.h: Likewise.
47369         * lib/yesno.c: Likewise.
47370         * lib/yesno.h: Likewise.
47371         * posix-modules: Likewise.
47372         * tests/test-alloca-opt.c: Likewise.
47373         * tests/test-arcfour.c: Likewise.
47374         * tests/test-arctwo.c: Likewise.
47375         * tests/test-argmatch.c: Likewise.
47376         * tests/test-argp-2.sh: Likewise.
47377         * tests/test-argp.c: Likewise.
47378         * tests/test-arpa_inet.c: Likewise.
47379         * tests/test-array_list.c: Likewise.
47380         * tests/test-array_oset.c: Likewise.
47381         * tests/test-atexit.c: Likewise.
47382         * tests/test-avltree_list.c: Likewise.
47383         * tests/test-avltree_oset.c: Likewise.
47384         * tests/test-avltreehash_list.c: Likewise.
47385         * tests/test-base64.c: Likewise.
47386         * tests/test-binary-io.c: Likewise.
47387         * tests/test-byteswap.c: Likewise.
47388         * tests/test-c-ctype.c: Likewise.
47389         * tests/test-c-strcasecmp.c: Likewise.
47390         * tests/test-c-strcasestr.c: Likewise.
47391         * tests/test-c-strncasecmp.c: Likewise.
47392         * tests/test-c-strstr.c: Likewise.
47393         * tests/test-canonicalize-lgpl.c: Likewise.
47394         * tests/test-canonicalize.c: Likewise.
47395         * tests/test-carray_list.c: Likewise.
47396         * tests/test-ceilf.c: Likewise.
47397         * tests/test-ceill.c: Likewise.
47398         * tests/test-count-one-bits.c: Likewise.
47399         * tests/test-crc.c: Likewise.
47400         * tests/test-dirname.c: Likewise.
47401         * tests/test-fbufmode.c: Likewise.
47402         * tests/test-fcntl.c: Likewise.
47403         * tests/test-fflush.c: Likewise.
47404         * tests/test-floorf.c: Likewise.
47405         * tests/test-floorl.c: Likewise.
47406         * tests/test-fopen.c: Likewise.
47407         * tests/test-fprintf-posix.c: Likewise.
47408         * tests/test-fprintf-posix.h: Likewise.
47409         * tests/test-fpurge.c: Likewise.
47410         * tests/test-freadable.c: Likewise.
47411         * tests/test-freadahead.c: Likewise.
47412         * tests/test-freading.c: Likewise.
47413         * tests/test-freopen.c: Likewise.
47414         * tests/test-frexp.c: Likewise.
47415         * tests/test-frexpl.c: Likewise.
47416         * tests/test-fseek.c: Likewise.
47417         * tests/test-fseeko.c: Likewise.
47418         * tests/test-fseterr.c: Likewise.
47419         * tests/test-fstrcmp.c: Likewise.
47420         * tests/test-ftell.c: Likewise.
47421         * tests/test-ftello.c: Likewise.
47422         * tests/test-fwritable.c: Likewise.
47423         * tests/test-fwriting.c: Likewise.
47424         * tests/test-getaddrinfo.c: Likewise.
47425         * tests/test-getpass.c: Likewise.
47426         * tests/test-gettimeofday.c: Likewise.
47427         * tests/test-hmac-md5.c: Likewise.
47428         * tests/test-hmac-sha1.c: Likewise.
47429         * tests/test-iconv.c: Likewise.
47430         * tests/test-iconvme.c: Likewise.
47431         * tests/test-inttypes.c: Likewise.
47432         * tests/test-isnan.c: Likewise.
47433         * tests/test-isnanf.c: Likewise.
47434         * tests/test-isnanl-nolibm.c: Likewise.
47435         * tests/test-isnanl.c: Likewise.
47436         * tests/test-isnanl.h: Likewise.
47437         * tests/test-ldexpl.c: Likewise.
47438         * tests/test-linked_list.c: Likewise.
47439         * tests/test-linkedhash_list.c: Likewise.
47440         * tests/test-locale.c: Likewise.
47441         * tests/test-localename.c: Likewise.
47442         * tests/test-lock.c: Likewise.
47443         * tests/test-lseek.c: Likewise.
47444         * tests/test-malloca.c: Likewise.
47445         * tests/test-math.c: Likewise.
47446         * tests/test-mbscasecmp.c: Likewise.
47447         * tests/test-mbscasestr1.c: Likewise.
47448         * tests/test-mbscasestr2.c: Likewise.
47449         * tests/test-mbscasestr3.c: Likewise.
47450         * tests/test-mbscasestr4.c: Likewise.
47451         * tests/test-mbschr.c: Likewise.
47452         * tests/test-mbscspn.c: Likewise.
47453         * tests/test-mbsncasecmp.c: Likewise.
47454         * tests/test-mbspbrk.c: Likewise.
47455         * tests/test-mbspcasecmp.c: Likewise.
47456         * tests/test-mbsrchr.c: Likewise.
47457         * tests/test-mbsspn.c: Likewise.
47458         * tests/test-mbsstr1.c: Likewise.
47459         * tests/test-mbsstr2.c: Likewise.
47460         * tests/test-mbsstr3.c: Likewise.
47461         * tests/test-md5.c: Likewise.
47462         * tests/test-memmem.c: Likewise.
47463         * tests/test-netinet_in.c: Likewise.
47464         * tests/test-open.c: Likewise.
47465         * tests/test-printf-frexp.c: Likewise.
47466         * tests/test-printf-frexpl.c: Likewise.
47467         * tests/test-printf-posix.c: Likewise.
47468         * tests/test-printf-posix.h: Likewise.
47469         * tests/test-rbtree_list.c: Likewise.
47470         * tests/test-rbtree_oset.c: Likewise.
47471         * tests/test-rbtreehash_list.c: Likewise.
47472         * tests/test-read-file.c: Likewise.
47473         * tests/test-rijndael.c: Likewise.
47474         * tests/test-search.c: Likewise.
47475         * tests/test-signbit.c: Likewise.
47476         * tests/test-sleep.c: Likewise.
47477         * tests/test-snprintf-posix.c: Likewise.
47478         * tests/test-snprintf-posix.h: Likewise.
47479         * tests/test-snprintf.c: Likewise.
47480         * tests/test-sprintf-posix.c: Likewise.
47481         * tests/test-sprintf-posix.h: Likewise.
47482         * tests/test-stat-time.c: Likewise.
47483         * tests/test-stdbool.c: Likewise.
47484         * tests/test-stdint.c: Likewise.
47485         * tests/test-stdio.c: Likewise.
47486         * tests/test-stdlib.c: Likewise.
47487         * tests/test-stpncpy.c: Likewise.
47488         * tests/test-strcasestr.c: Likewise.
47489         * tests/test-striconv.c: Likewise.
47490         * tests/test-striconveh.c: Likewise.
47491         * tests/test-striconveha.c: Likewise.
47492         * tests/test-string.c: Likewise.
47493         * tests/test-sys_select.c: Likewise.
47494         * tests/test-sys_socket.c: Likewise.
47495         * tests/test-sys_stat.c: Likewise.
47496         * tests/test-sys_time.c: Likewise.
47497         * tests/test-sysexits.c: Likewise.
47498         * tests/test-time.c: Likewise.
47499         * tests/test-tls.c: Likewise.
47500         * tests/test-trunc.c: Likewise.
47501         * tests/test-truncf.c: Likewise.
47502         * tests/test-truncl.c: Likewise.
47503         * tests/test-unistd.c: Likewise.
47504         * tests/test-vasnprintf-posix.c: Likewise.
47505         * tests/test-vasnprintf-posix2.c: Likewise.
47506         * tests/test-vasnprintf.c: Likewise.
47507         * tests/test-vasprintf-posix.c: Likewise.
47508         * tests/test-vasprintf.c: Likewise.
47509         * tests/test-verify.c: Likewise.
47510         * tests/test-vfprintf-posix.c: Likewise.
47511         * tests/test-vprintf-posix.c: Likewise.
47512         * tests/test-vsnprintf-posix.c: Likewise.
47513         * tests/test-vsnprintf.c: Likewise.
47514         * tests/test-vsprintf-posix.c: Likewise.
47515         * tests/test-wchar.c: Likewise.
47516         * tests/test-wctype.c: Likewise.
47517         * tests/test-wcwidth.c: Likewise.
47518         * tests/test-xstrtol.c: Likewise.
47519         * tests/test-xvasprintf.c: Likewise.
47520         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47521         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47522         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47523         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47524         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47525         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47526         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47527         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47528         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47529         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47530         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47531         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47532         * tests/uniname/test-uninames.c: Likewise.
47533         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47534         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47535         * tests/unistdio/test-u16-printf1.h: Likewise.
47536         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47537         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47538         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47539         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47540         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47541         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47542         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47543         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47544         * tests/unistdio/test-u32-printf1.h: Likewise.
47545         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47546         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47547         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47548         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47549         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47550         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47551         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47552         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47553         * tests/unistdio/test-u8-printf1.h: Likewise.
47554         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47555         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47556         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47557         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47558         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47559         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47560         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47561         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47562         * tests/unistdio/test-ulc-printf1.h: Likewise.
47563         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47564         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47565         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47566         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47567         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47568         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47569         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47570         * tests/uniwidth/test-u16-width.c: Likewise.
47571         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47572         * tests/uniwidth/test-u32-width.c: Likewise.
47573         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47574         * tests/uniwidth/test-u8-width.c: Likewise.
47575         * tests/uniwidth/test-uc_width.c: Likewise.
47576         * config/srclist-update: Likewise.
47577         (fixlicense): Update to GPLv3+.
47578
47579         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47580         * tests/test-tsearch.c: Change copyright notice.
47581
47582         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47583         * lib/c-strcaseeq.h: Change copyright notice.
47584         * lib/streq.h: Likewise.
47585         * lib/uniconv.h: Likewise.
47586         * lib/uniconv/u-conv-from-enc.h: Likewise.
47587         * lib/uniconv/u-conv-to-enc.h: Likewise.
47588         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47589         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47590         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47591         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47592         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47593         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47594         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47595         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47596         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47597         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47598         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47599         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47600         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47601         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47602         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47603         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47604         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47605         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47606         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47607         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47608         * lib/uniname.h: Likewise.
47609         * lib/uniname/uniname.c: Likewise.
47610         * lib/unistdio.h: Likewise.
47611         * lib/unistdio/u-asnprintf.h: Likewise.
47612         * lib/unistdio/u-asprintf.h: Likewise.
47613         * lib/unistdio/u-printf-args.c: Likewise.
47614         * lib/unistdio/u-printf-args.h: Likewise.
47615         * lib/unistdio/u-printf-parse.h: Likewise.
47616         * lib/unistdio/u-snprintf.h: Likewise.
47617         * lib/unistdio/u-sprintf.h: Likewise.
47618         * lib/unistdio/u-vasprintf.h: Likewise.
47619         * lib/unistdio/u-vsnprintf.h: Likewise.
47620         * lib/unistdio/u-vsprintf.h: Likewise.
47621         * lib/unistdio/u16-asnprintf.c: Likewise.
47622         * lib/unistdio/u16-asprintf.c: Likewise.
47623         * lib/unistdio/u16-printf-parse.c: Likewise.
47624         * lib/unistdio/u16-snprintf.c: Likewise.
47625         * lib/unistdio/u16-sprintf.c: Likewise.
47626         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47627         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47628         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47629         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47630         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47631         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47632         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47633         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47634         * lib/unistdio/u16-vasnprintf.c: Likewise.
47635         * lib/unistdio/u16-vasprintf.c: Likewise.
47636         * lib/unistdio/u16-vsnprintf.c: Likewise.
47637         * lib/unistdio/u16-vsprintf.c: Likewise.
47638         * lib/unistdio/u32-asnprintf.c: Likewise.
47639         * lib/unistdio/u32-asprintf.c: Likewise.
47640         * lib/unistdio/u32-printf-parse.c: Likewise.
47641         * lib/unistdio/u32-snprintf.c: Likewise.
47642         * lib/unistdio/u32-sprintf.c: Likewise.
47643         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47644         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47645         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47646         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47647         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47648         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47649         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47650         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47651         * lib/unistdio/u32-vasnprintf.c: Likewise.
47652         * lib/unistdio/u32-vasprintf.c: Likewise.
47653         * lib/unistdio/u32-vsnprintf.c: Likewise.
47654         * lib/unistdio/u32-vsprintf.c: Likewise.
47655         * lib/unistdio/u8-asnprintf.c: Likewise.
47656         * lib/unistdio/u8-asprintf.c: Likewise.
47657         * lib/unistdio/u8-printf-parse.c: Likewise.
47658         * lib/unistdio/u8-snprintf.c: Likewise.
47659         * lib/unistdio/u8-sprintf.c: Likewise.
47660         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47661         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47662         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47663         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47664         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47665         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47666         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47667         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47668         * lib/unistdio/u8-vasnprintf.c: Likewise.
47669         * lib/unistdio/u8-vasprintf.c: Likewise.
47670         * lib/unistdio/u8-vsnprintf.c: Likewise.
47671         * lib/unistdio/u8-vsprintf.c: Likewise.
47672         * lib/unistdio/ulc-asnprintf.c: Likewise.
47673         * lib/unistdio/ulc-asprintf.c: Likewise.
47674         * lib/unistdio/ulc-printf-parse.c: Likewise.
47675         * lib/unistdio/ulc-snprintf.c: Likewise.
47676         * lib/unistdio/ulc-sprintf.c: Likewise.
47677         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47678         * lib/unistdio/ulc-vasprintf.c: Likewise.
47679         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47680         * lib/unistdio/ulc-vsprintf.c: Likewise.
47681         * lib/unistr.h: Likewise.
47682         * lib/unistr/u-cpy-alloc.h: Likewise.
47683         * lib/unistr/u-cpy.h: Likewise.
47684         * lib/unistr/u-endswith.h: Likewise.
47685         * lib/unistr/u-move.h: Likewise.
47686         * lib/unistr/u-set.h: Likewise.
47687         * lib/unistr/u-startswith.h: Likewise.
47688         * lib/unistr/u-stpcpy.h: Likewise.
47689         * lib/unistr/u-stpncpy.h: Likewise.
47690         * lib/unistr/u-strcat.h: Likewise.
47691         * lib/unistr/u-strcpy.h: Likewise.
47692         * lib/unistr/u-strcspn.h: Likewise.
47693         * lib/unistr/u-strdup.h: Likewise.
47694         * lib/unistr/u-strlen.h: Likewise.
47695         * lib/unistr/u-strncat.h: Likewise.
47696         * lib/unistr/u-strncpy.h: Likewise.
47697         * lib/unistr/u-strnlen.h: Likewise.
47698         * lib/unistr/u-strpbrk.h: Likewise.
47699         * lib/unistr/u-strspn.h: Likewise.
47700         * lib/unistr/u-strstr.h: Likewise.
47701         * lib/unistr/u-strtok.h: Likewise.
47702         * lib/unistr/u16-check.c: Likewise.
47703         * lib/unistr/u16-chr.c: Likewise.
47704         * lib/unistr/u16-cmp.c: Likewise.
47705         * lib/unistr/u16-cpy-alloc.c: Likewise.
47706         * lib/unistr/u16-cpy.c: Likewise.
47707         * lib/unistr/u16-endswith.c: Likewise.
47708         * lib/unistr/u16-mblen.c: Likewise.
47709         * lib/unistr/u16-mbsnlen.c: Likewise.
47710         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47711         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47712         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47713         * lib/unistr/u16-mbtouc.c: Likewise.
47714         * lib/unistr/u16-mbtoucr.c: Likewise.
47715         * lib/unistr/u16-move.c: Likewise.
47716         * lib/unistr/u16-next.c: Likewise.
47717         * lib/unistr/u16-prev.c: Likewise.
47718         * lib/unistr/u16-set.c: Likewise.
47719         * lib/unistr/u16-startswith.c: Likewise.
47720         * lib/unistr/u16-stpcpy.c: Likewise.
47721         * lib/unistr/u16-stpncpy.c: Likewise.
47722         * lib/unistr/u16-strcat.c: Likewise.
47723         * lib/unistr/u16-strchr.c: Likewise.
47724         * lib/unistr/u16-strcmp.c: Likewise.
47725         * lib/unistr/u16-strcpy.c: Likewise.
47726         * lib/unistr/u16-strcspn.c: Likewise.
47727         * lib/unistr/u16-strdup.c: Likewise.
47728         * lib/unistr/u16-strlen.c: Likewise.
47729         * lib/unistr/u16-strmblen.c: Likewise.
47730         * lib/unistr/u16-strmbtouc.c: Likewise.
47731         * lib/unistr/u16-strncat.c: Likewise.
47732         * lib/unistr/u16-strncmp.c: Likewise.
47733         * lib/unistr/u16-strncpy.c: Likewise.
47734         * lib/unistr/u16-strnlen.c: Likewise.
47735         * lib/unistr/u16-strpbrk.c: Likewise.
47736         * lib/unistr/u16-strrchr.c: Likewise.
47737         * lib/unistr/u16-strspn.c: Likewise.
47738         * lib/unistr/u16-strstr.c: Likewise.
47739         * lib/unistr/u16-strtok.c: Likewise.
47740         * lib/unistr/u16-to-u32.c: Likewise.
47741         * lib/unistr/u16-to-u8.c: Likewise.
47742         * lib/unistr/u16-uctomb-aux.c: Likewise.
47743         * lib/unistr/u16-uctomb.c: Likewise.
47744         * lib/unistr/u32-check.c: Likewise.
47745         * lib/unistr/u32-chr.c: Likewise.
47746         * lib/unistr/u32-cmp.c: Likewise.
47747         * lib/unistr/u32-cpy-alloc.c: Likewise.
47748         * lib/unistr/u32-cpy.c: Likewise.
47749         * lib/unistr/u32-endswith.c: Likewise.
47750         * lib/unistr/u32-mblen.c: Likewise.
47751         * lib/unistr/u32-mbsnlen.c: Likewise.
47752         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47753         * lib/unistr/u32-mbtouc.c: Likewise.
47754         * lib/unistr/u32-mbtoucr.c: Likewise.
47755         * lib/unistr/u32-move.c: Likewise.
47756         * lib/unistr/u32-next.c: Likewise.
47757         * lib/unistr/u32-prev.c: Likewise.
47758         * lib/unistr/u32-set.c: Likewise.
47759         * lib/unistr/u32-startswith.c: Likewise.
47760         * lib/unistr/u32-stpcpy.c: Likewise.
47761         * lib/unistr/u32-stpncpy.c: Likewise.
47762         * lib/unistr/u32-strcat.c: Likewise.
47763         * lib/unistr/u32-strchr.c: Likewise.
47764         * lib/unistr/u32-strcmp.c: Likewise.
47765         * lib/unistr/u32-strcpy.c: Likewise.
47766         * lib/unistr/u32-strcspn.c: Likewise.
47767         * lib/unistr/u32-strdup.c: Likewise.
47768         * lib/unistr/u32-strlen.c: Likewise.
47769         * lib/unistr/u32-strmblen.c: Likewise.
47770         * lib/unistr/u32-strmbtouc.c: Likewise.
47771         * lib/unistr/u32-strncat.c: Likewise.
47772         * lib/unistr/u32-strncmp.c: Likewise.
47773         * lib/unistr/u32-strncpy.c: Likewise.
47774         * lib/unistr/u32-strnlen.c: Likewise.
47775         * lib/unistr/u32-strpbrk.c: Likewise.
47776         * lib/unistr/u32-strrchr.c: Likewise.
47777         * lib/unistr/u32-strspn.c: Likewise.
47778         * lib/unistr/u32-strstr.c: Likewise.
47779         * lib/unistr/u32-strtok.c: Likewise.
47780         * lib/unistr/u32-to-u16.c: Likewise.
47781         * lib/unistr/u32-to-u8.c: Likewise.
47782         * lib/unistr/u32-uctomb.c: Likewise.
47783         * lib/unistr/u8-check.c: Likewise.
47784         * lib/unistr/u8-chr.c: Likewise.
47785         * lib/unistr/u8-cmp.c: Likewise.
47786         * lib/unistr/u8-cpy-alloc.c: Likewise.
47787         * lib/unistr/u8-cpy.c: Likewise.
47788         * lib/unistr/u8-endswith.c: Likewise.
47789         * lib/unistr/u8-mblen.c: Likewise.
47790         * lib/unistr/u8-mbsnlen.c: Likewise.
47791         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47792         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47793         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47794         * lib/unistr/u8-mbtouc.c: Likewise.
47795         * lib/unistr/u8-mbtoucr.c: Likewise.
47796         * lib/unistr/u8-move.c: Likewise.
47797         * lib/unistr/u8-next.c: Likewise.
47798         * lib/unistr/u8-prev.c: Likewise.
47799         * lib/unistr/u8-set.c: Likewise.
47800         * lib/unistr/u8-startswith.c: Likewise.
47801         * lib/unistr/u8-stpcpy.c: Likewise.
47802         * lib/unistr/u8-stpncpy.c: Likewise.
47803         * lib/unistr/u8-strcat.c: Likewise.
47804         * lib/unistr/u8-strchr.c: Likewise.
47805         * lib/unistr/u8-strcmp.c: Likewise.
47806         * lib/unistr/u8-strcpy.c: Likewise.
47807         * lib/unistr/u8-strcspn.c: Likewise.
47808         * lib/unistr/u8-strdup.c: Likewise.
47809         * lib/unistr/u8-strlen.c: Likewise.
47810         * lib/unistr/u8-strmblen.c: Likewise.
47811         * lib/unistr/u8-strmbtouc.c: Likewise.
47812         * lib/unistr/u8-strncat.c: Likewise.
47813         * lib/unistr/u8-strncmp.c: Likewise.
47814         * lib/unistr/u8-strncpy.c: Likewise.
47815         * lib/unistr/u8-strnlen.c: Likewise.
47816         * lib/unistr/u8-strpbrk.c: Likewise.
47817         * lib/unistr/u8-strrchr.c: Likewise.
47818         * lib/unistr/u8-strspn.c: Likewise.
47819         * lib/unistr/u8-strstr.c: Likewise.
47820         * lib/unistr/u8-strtok.c: Likewise.
47821         * lib/unistr/u8-to-u16.c: Likewise.
47822         * lib/unistr/u8-to-u32.c: Likewise.
47823         * lib/unistr/u8-uctomb-aux.c: Likewise.
47824         * lib/unistr/u8-uctomb.c: Likewise.
47825         * lib/unitypes.h: Likewise.
47826         * lib/uniwidth.h: Likewise.
47827         * lib/uniwidth/cjk.h: Likewise.
47828         * lib/uniwidth/u16-strwidth.c: Likewise.
47829         * lib/uniwidth/u16-width.c: Likewise.
47830         * lib/uniwidth/u32-strwidth.c: Likewise.
47831         * lib/uniwidth/u32-width.c: Likewise.
47832         * lib/uniwidth/u8-strwidth.c: Likewise.
47833         * lib/uniwidth/u8-width.c: Likewise.
47834         * lib/uniwidth/width.c: Likewise.
47835
47836 2007-10-07  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47839         The file is still under LGPL (see modules/inttypes).
47840
47841 2007-10-06  Bruno Haible  <bruno@clisp.org>
47842
47843         * modules/trunc (Dependencies): Add 'extensions'.
47844         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47845         Reported by Ben Pfaff <blp@gnu.org>.
47846
47847 2007-10-06  Bruno Haible  <bruno@clisp.org>
47848
47849         * modules/freopen-tests: New file.
47850         * tests/test-freopen.c: New file.
47851
47852         * modules/fopen-tests: New file.
47853         * tests/test-fopen.c: New file.
47854
47855         * modules/fopen: New file.
47856         * lib/fopen.c: New file.
47857         * m4/fopen.m4: New file.
47858         * modules/freopen: New file.
47859         * lib/freopen.c: New file.
47860         * m4/freopen.m4: New file.
47861         * lib/stdio.in.h (fopen, freopen): New declarations.
47862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47863         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47864         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47865         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47866         * doc/functions/fopen.texi: Mention the 'fopen' module.
47867         * doc/functions/freopen.texi: Mention the 'freopen' module.
47868
47869 2007-10-06  Bruno Haible  <bruno@clisp.org>
47870
47871         * modules/open-tests: New file.
47872         * tests/test-open.c: New file.
47873
47874         * modules/open: New file.
47875         * lib/open.c: New file.
47876         * m4/open.m4: New file.
47877         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47878         lib/open.c does.
47879         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47880         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47881         macros.
47882         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47883         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47884         REPLACE_OPEN.
47885         * doc/functions/open.texi: Mention the 'open' module.
47886
47887 2007-10-04  Bruno Haible  <bruno@clisp.org>
47888
47889         * modules/ceill-tests: New file.
47890         * tests/test-ceill.c: New file.
47891
47892         * modules/ceill: New file.
47893         * lib/ceill.c: Replace entire file.
47894         * m4/ceill.m4: New file.
47895         * lib/math.in.h (ceill): Replace declaration.
47896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47897         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47898         * doc/functions/ceill.texi: Mention the 'ceill' module.
47899         * modules/mathl (Files): Remove lib/ceill.c.
47900         (Depends-on): Add ceill.
47901
47902 2007-10-04  Bruno Haible  <bruno@clisp.org>
47903
47904         * modules/ceilf-tests: New file.
47905         * tests/test-ceilf.c: New file.
47906
47907         * modules/ceilf: New file.
47908         * lib/ceil.c: New file.
47909         * lib/ceilf.c: New file.
47910         * m4/ceilf.m4: New file.
47911         * lib/math.in.h (ceilf): New declaration.
47912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47913         HAVE_DECL_CEILF.
47914         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47915         HAVE_DECL_CEILF.
47916         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47917
47918 2007-10-04  Bruno Haible  <bruno@clisp.org>
47919
47920         * modules/floorl-tests: New file.
47921         * tests/test-floorl.c: New file.
47922
47923         * modules/floorl: New file.
47924         * lib/floorl.c: Replace entire file.
47925         * m4/floorl.m4: New file.
47926         * lib/math.in.h (floorl): Replace declaration.
47927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47928         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47929         * doc/functions/floorl.texi: Mention the 'floorl' module.
47930         * modules/mathl (Files): Remove lib/floorl.c.
47931         (Depends-on): Add floorl.
47932
47933 2007-10-04  Bruno Haible  <bruno@clisp.org>
47934
47935         * modules/floorf-tests: New file.
47936         * tests/test-floorf.c: New file.
47937
47938         * modules/floorf: New file.
47939         * lib/floor.c: New file.
47940         * lib/floorf.c: New file.
47941         * m4/floorf.m4: New file.
47942         * lib/math.in.h (floorf): New declaration.
47943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47944         HAVE_DECL_FLOORF.
47945         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47946         HAVE_DECL_FLOORF.
47947         * doc/functions/floorf.texi: Mention the 'floorf' module.
47948
47949 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47950             Bruno Haible  <bruno@clisp.org>
47951
47952         Advertise for the Git server instead of the CVS server.
47953         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47954         repository instead of the CVS one.
47955         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47956         about all VCS systems generically.
47957         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47958
47959 2007-10-04  Bruno Haible  <bruno@clisp.org>
47960
47961         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47962         means.
47963         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47964
47965 2007-10-04  Bruno Haible  <bruno@clisp.org>
47966
47967         * modules/truncl-tests: New file.
47968         * tests/test-truncl.c: New file.
47969
47970         * modules/truncl: New file.
47971         * lib/truncl.c: New file.
47972         * m4/truncl.m4: New file.
47973         * lib/math.in.h (truncl): New declaration.
47974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47975         HAVE_DECL_TRUNCL.
47976         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47977         HAVE_DECL_TRUNCL.
47978         * doc/functions/truncl.texi: Mention the 'truncl' module.
47979
47980 2007-10-04  Bruno Haible  <bruno@clisp.org>
47981
47982         * modules/truncf-tests: New file.
47983         * tests/test-truncf.c: New file.
47984
47985         * modules/truncf: New file.
47986         * lib/trunc.c: Make paramerizable through USE_* macros.
47987         * lib/truncf.c: New file.
47988         * m4/truncf.m4: New file.
47989         * lib/math.in.h (truncf): New declaration.
47990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47991         HAVE_DECL_TRUNCF.
47992         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47993         HAVE_DECL_TRUNCF.
47994         * doc/functions/truncf.texi: Mention the 'truncf' module.
47995
47996 2007-10-03  Bruno Haible  <bruno@clisp.org>
47997
47998         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47999         augmentation also for tests modules.
48000         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48001         * modules/atexit-tests (Makefile.am): Likewise.
48002         * modules/binary-io-tests (Makefile.am): Likewise.
48003         * modules/c-strcase-tests (Makefile.am): Likewise.
48004         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48005         * modules/canonicalize-tests (Makefile.am): Likewise.
48006         * modules/closein-tests (Makefile.am): Likewise.
48007         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48008         * modules/freadahead-tests (Makefile.am): Likewise.
48009         * modules/fseek-tests (Makefile.am): Likewise.
48010         * modules/fseeko-tests (Makefile.am): Likewise.
48011         * modules/ftell-tests (Makefile.am): Likewise.
48012         * modules/ftello-tests (Makefile.am): Likewise.
48013         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48014         * modules/isnanl-tests (Makefile.am): Likewise.
48015         * modules/lseek-tests (Makefile.am): Likewise.
48016         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48017         * modules/mbscasestr-tests (Makefile.am): Likewise.
48018         * modules/mbschr-tests (Makefile.am): Likewise.
48019         * modules/mbscspn-tests (Makefile.am): Likewise.
48020         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48021         * modules/mbspbrk-tests (Makefile.am): Likewise.
48022         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48023         * modules/mbsrchr-tests (Makefile.am): Likewise.
48024         * modules/mbsspn-tests (Makefile.am): Likewise.
48025         * modules/mbsstr-tests (Makefile.am): Likewise.
48026         * modules/printf-posix-tests (Makefile.am): Likewise.
48027         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48028         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48029         * modules/tsearch-tests (Makefile.am): Likewise.
48030         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48031         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48032         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48033         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48034         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48035         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48036         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48037         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48038         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48039         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48040         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48041         * modules/xstrtol-tests (Makefile.am): Likewise.
48042         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48043         * modules/yesno-tests (Makefile.am): Likewise.
48044
48045 2007-10-03  Bruno Haible  <bruno@clisp.org>
48046
48047         * modules/trunc-tests: New file.
48048         * tests/test-trunc.c: New file.
48049
48050         * modules/trunc: New file.
48051         * lib/trunc.c: New file.
48052         * m4/trunc.m4: New file.
48053         * lib/math.in.h (trunc): New declaration.
48054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48055         HAVE_DECL_TRUNC.
48056         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48057         HAVE_DECL_TRUNC.
48058         * doc/functions/trunc.texi: Mention the 'trunc' module.
48059
48060 2007-10-03  Bruno Haible  <bruno@clisp.org>
48061
48062         * tests/test-fpending.c: New file, mostly copied
48063         from coreutils/lib/t-fpending.c.
48064         * modules/fpending-tests: New file.
48065
48066 2007-10-03  Bruno Haible  <bruno@clisp.org>
48067
48068         Port the stdio extensions to QNX (untested).
48069         * lib/fseterr.c (fseterr): Add support for QNX.
48070         * lib/fbufmode.c (fbufmode): Likewise.
48071         * lib/freadable.c (freadable): Likewise.
48072         * lib/fwritable.c (fwritable): Likewise.
48073         * lib/freading.c (freading): Likewise.
48074         * lib/fwriting.c (fwriting): Likewise.
48075         * lib/freadahead.c (freadahed): Likewise.
48076         * lib/fpurge.c (fpurge): Likewise.
48077         * lib/fseeko.c (rpl_fseeko): Likewise.
48078
48079 2007-10-03  Bruno Haible  <bruno@clisp.org>
48080             Jim Meyering  <jim@meyering.net>
48081             Eric Blake  <ebb9@byu.net>
48082
48083         * doc/relocatable.texi: Use @command instead of @program.
48084
48085 2007-10-02  Jim Meyering  <jim@meyering.net>
48086
48087         Perform one more "_.h" -> ".in.h" substitution.
48088         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48089         instead of unistd_.h here, too.
48090
48091 2007-10-01  Bruno Haible  <bruno@clisp.org>
48092
48093         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48094         Needed for the alloca-opt module.
48095
48096 2007-09-30  Bruno Haible  <bruno@clisp.org>
48097
48098         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48099         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48100         alloca_.h.
48101         * lib/argz.in.h: Renamed from lib/argz_.h.
48102         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48103         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48104         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48105         byteswap_.h.
48106         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48107         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48108         dirent_.h.
48109         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48110         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48111         fcntl_.h.
48112         * lib/float.in.h: Renamed from lib/float_.h.
48113         * modules/float (Files, Makefile.am): Use float.in.h instead of
48114         float_.h.
48115         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48116         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48117         fnmatch_.h.
48118         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48119         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48120         getopt_.h.
48121         * lib/glob.in.h: Renamed from lib/glob_.h.
48122         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48123         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48124         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48125         iconv_.h.
48126         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48127         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48128         inttypes_.h.
48129         * lib/locale.in.h: Renamed from lib/locale_.h.
48130         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48131         locale_.h.
48132         * lib/math.in.h: Renamed from lib/math_.h.
48133         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48134         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48135         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48136         of netinet_in_.h. Add dependency.
48137         * lib/poll.in.h: Renamed from lib/poll_.h.
48138         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48139         * lib/search.in.h: Renamed from lib/search_.h.
48140         * modules/search (Files, Makefile.am): Use search.in.h instead of
48141         search_.h.
48142         * lib/signal.in.h: Renamed from lib/signal_.h.
48143         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48144         _signal.h.
48145         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48146         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48147         stdbool_.h.
48148         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48149         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48150         stdint_.h.
48151         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48152         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48153         stdio_.h.
48154         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48155         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48156         stdlib_.h.
48157         * lib/string.in.h: Renamed from lib/string_.h.
48158         * modules/string (Files, Makefile.am): Use string.in.h instead of
48159         string_.h.
48160         * doc/gnulib-tool.texi (Initial import): Update.
48161         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48162         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48163         of sys_select_.h. Add dependency.
48164         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48165         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48166         of sys_socket_.h.
48167         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48168         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48169         sys_stat_.h.
48170         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48171         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48172         sys_time_.h.
48173         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48174         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48175         sysexits_.h.
48176         * lib/time.in.h: Renamed from lib/time_.h.
48177         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48178         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48179         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48180         unistd_.h.
48181         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48182         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48183         wchar_.h.
48184         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48185         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48186         wctype_.h.
48187         * build-aux/bootstrap (slurp): Update.
48188         * lib/.cppi-disable: Update.
48189
48190 2007-09-30  Bruno Haible  <bruno@clisp.org>
48191
48192         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48193         Needed on BeOS.
48194
48195 2007-09-30  Bruno Haible  <bruno@clisp.org>
48196
48197         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48198
48199 2007-09-29  Bruno Haible  <bruno@clisp.org>
48200
48201         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48202
48203 2007-09-29  Bruno Haible  <bruno@clisp.org>
48204
48205         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48206         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48207         * build-aux/install-reloc: Compile also areadlink.c.
48208         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48209
48210 2007-09-29  Bruno Haible  <bruno@clisp.org>
48211
48212         * gnulib-tool (func_emit_initmacro_done): Indentation.
48213
48214 2007-09-29  Bruno Haible  <bruno@clisp.org>
48215
48216         * README: Add CVS checkout update instructions.
48217         Info from Bob Proulx <bob@proulx.com>.
48218
48219 2007-09-28  Eric Blake  <ebb9@byu.net>
48220
48221         Provide move-if-change.
48222         * build-aux/move-if-change: New file, based on best practice
48223         rather than any canonical upstream location.
48224
48225 2007-09-28  Jim Meyering  <jim@meyering.net>
48226
48227         Fix canonicalize loop-detection corner case.
48228         Do not attempt to stat the symlink values stored via seen_triple.
48229         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48230         on linux-2.6.18, (but not 2.6.22).
48231         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48232         triple_compare.  The former compares dev,ino,filename, while the latter
48233         would actually stat dirname(filename) when dev and ino were equal.
48234         * lib/hash-triple.c: Install <string.h>.
48235         (STREQ): Define.
48236         (triple_compare_ino_str): New function.
48237         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48238
48239 2007-09-28  Eric Blake  <ebb9@byu.net>
48240
48241         Enforce that AC_REPLACE_FUNCS files exist.
48242         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48243         override check for typos.
48244
48245         Fix test-closein on Solaris 10.
48246         * tests/test-closein.c (main): Don't assume stdin can be inherited
48247         closed on all systems.
48248         * tests/test-closein.sh: Likewise.
48249         Reported by Piotr Tarnowski.
48250
48251 2007-09-28  Jim Meyering  <jim@meyering.net>
48252
48253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48254
48255 2007-09-27  Jim Meyering  <jim@meyering.net>
48256
48257         canonicalize: Avoid a false-positive cycle failure.
48258         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48259         Sort.  Remove cycle-check.
48260         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48261         not cycle-check.h.
48262         (seen_triple): New function.
48263         (canonicalize_filename_mode): Use it instead of cycle-check.
48264         * tests/test-canonicalize.c: Add a test for this bug.
48265         * tests/test-canonicalize.sh: Set up and run the test.
48266
48267         New module, file-set, from coreutils.
48268         * modules/file-set: Define it.
48269         * lib/file-set.c, lib/file-set.h: Implement.
48270
48271         New module, hash-triple, from coreutils.
48272         * modules/hash-triple: Define it.
48273         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48274
48275 2007-09-25  Eric Blake  <ebb9@byu.net>
48276
48277         Fix strerror on Interix.
48278         * lib/string_.h (strerror): Declare replacement.
48279         * doc/functions/strerror.texi (strerror): Document the Interix
48280         shortcoming.
48281         * modules/string (Makefile.am): Support new hooks.
48282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48283         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48284         gl_FUNC_STRERROR_SEPARATE.
48285         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48286         * lib/strerror.c (rpl_strerror): Provide replacement.
48287         * modules/strerror (Depends-on): Add string.
48288         (configure.ac): Detect use of module.
48289         * tests/test-strerror.c: New file.
48290         * modules/strerror-tests: New test module.
48291         * modules/argp (Depends-on): Add strerror.
48292         * modules/error (Depends-on): Likewise.
48293         Reported by Martin Koeppe.
48294
48295 2007-09-24  Bruno Haible  <bruno@clisp.org>
48296
48297         * README: Update git instructions.
48298
48299 2007-09-24  Eric Blake  <ebb9@byu.net>
48300
48301         Revert fpending breakage from 2007-09-08.
48302         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48303         __fpending.c.
48304
48305 2007-09-24  Jim Meyering  <jim@meyering.net>
48306
48307         filenamecat.c: Add a test.
48308         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48309         showing how the function works when DIR is the empty string.
48310
48311 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48312
48313         * tests/test-canonicalize.sh: Turn on executable bit.
48314
48315 2007-09-19  Eric Blake  <ebb9@byu.net>
48316
48317         * README: Update CVS instructions.
48318
48319 2007-09-18  Bruno Haible  <bruno@clisp.org>
48320
48321         * modules/areadlink: New file.
48322         * lib/areadlink.h (areadlink): New declaration.
48323         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48324
48325 2007-09-17  Jim Meyering  <jim@meyering.net>
48326
48327         * lib/savewd.c (ESTALE) [!defined]: Define.
48328         Reported to be required on Interix by Martin Koeppe.
48329
48330 2007-09-17  Bruno Haible  <bruno@clisp.org>
48331
48332         * gnulib-tool (func_version): Use $version.
48333
48334 2007-09-16  Bruno Haible  <bruno@clisp.org>
48335
48336         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48337         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48338         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48339         Reported by Greg Schafer <gschafer@zip.com.au>.
48340
48341 2007-09-15  Bruno Haible  <bruno@clisp.org>
48342
48343         * gnulib-tool (sed): Try a little harder to make bash understand the
48344         alias.
48345         Reported by Bruce Korb <bruce.korb@gmail.com>.
48346
48347 2007-09-13  Eric Blake  <ebb9@byu.net>
48348
48349         * ChangeLog: Remove conflict markers.
48350
48351 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48352
48353         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48354         Reported by Bruno Haible <bruno@clisp.org>.
48355
48356 2007-09-12  Bruno Haible  <bruno@clisp.org>
48357
48358         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48359         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48360         is not defined.
48361
48362 2007-09-12  Eric Blake  <ebb9@byu.net>
48363
48364         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48365         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48366         Autoconf definition.
48367         * modules/euidaccess (Depends-on): Add extensions, for
48368         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48369         * modules/fnmatch (Depends-on): Likewise.
48370         * modules/getaddrinfo (Depends-on): Likewise.
48371         * modules/getdelim (Depends-on): Likewise.
48372         * modules/getline (Depends-on): Likewise.
48373         * modules/getsubopt (Depends-on): Likewise.
48374         * modules/gettext (Depends-on): Likewise.
48375         * modules/group-member (Depends-on): Likewise.
48376         * modules/mbchar (Depends-on): Likewise.
48377         * modules/memmem (Depends-on): Likewise.
48378         * modules/mempcpy (Depends-on): Likewise.
48379         * modules/memrchr (Depends-on): Likewise.
48380         * modules/pagealign_alloc (Depends-on): Likewise.
48381         * modules/readutmp (Depends-on): Likewise.
48382         * modules/stpcpy (Depends-on): Likewise.
48383         * modules/stpncpy (Depends-on): Likewise.
48384         * modules/strchrnul (Depends-on): Likewise.
48385         * modules/strndup (Depends-on): Likewise.
48386         * modules/strsep (Depends-on): Likewise.
48387         * modules/strverscmp (Depends-on): Likewise.
48388         * modules/vasprintf (Depends-on): Likewise.
48389         * modules/wcwidth (Depends-on): Likewise.
48390         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48391         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48392         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48393         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48394         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48395         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48396         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48397         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48398         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48399         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48400         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48401         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48402         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48403         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48404         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48405         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48406         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48407         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48408         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48409         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48410         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48411         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48412         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48413         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48414         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48416         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48417         so that lock.m4 can be used in gettext without extensions module.
48418
48419 2007-09-11  Bruno Haible  <bruno@clisp.org>
48420
48421         * m4/isc-posix.m4: Remove file.
48422         Suggested by Eric Blake.
48423
48424 2007-09-11  Eric Blake  <ebb9@byu.net>
48425
48426         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48427
48428 2007-09-10  Bruno Haible  <bruno@clisp.org>
48429
48430         * posix-modules: Fix typo in error message.
48431         Reported by Matt <mkraai@beckman.com>.
48432
48433 2007-09-09  Bruno Haible  <bruno@clisp.org>
48434
48435         * doc/functions/getdelim.texi: Update list of platforms lacking the
48436         function.
48437         * doc/functions/getline.texi: Likewise.
48438
48439 2007-09-09  Jim Meyering  <jim@meyering.net>
48440
48441         * lib/hash.c (hash_initialize): Detect calloc failure.
48442         Reported by Bruno Haible.
48443
48444 2007-09-09  Bruno Haible  <bruno@clisp.org>
48445
48446         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48447         malloc or realloc fails.
48448
48449 2007-09-09  Bruno Haible  <bruno@clisp.org>
48450
48451         * modules/getcwd (Depends-on): Add malloc-posix.
48452         * modules/glob (Depends-on): Likewise.
48453         * modules/putenv (Depends-on): Likewise.
48454         * modules/strdup (Depends-on): Likewise.
48455         * modules/getdelim (Depends-on): Add realloc-posix.
48456         * modules/read-file (Depends-on): Likewise.
48457
48458 2007-09-09  Bruno Haible  <bruno@clisp.org>
48459
48460         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48461         (gl_FUNC_MALLOC_POSIX): Require it.
48462         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48463         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48464         * modules/realloc (Files): Add m4/malloc.m4.
48465         * modules/calloc (Files): Likewise.
48466
48467 2007-09-09  Bruno Haible  <bruno@clisp.org>
48468
48469         * modules/malloc-posix: New file.
48470         * modules/malloc (Depends-on): Add malloc-posix.
48471         * lib/malloc.c: Include errno.h.
48472         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48473         and a POSIX-compatible malloc into a single function. Set ENOMEM
48474         when returning NULL.
48475         * m4/malloc.m4: New file.
48476         * doc/functions/malloc.texi: Mention the malloc-posix module.
48477         * lib/stdlib_.h (malloc): New declaration.
48478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48479         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48480         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48481         and HAVE_MALLOC_POSIX.
48482
48483 2007-09-09  Bruno Haible  <bruno@clisp.org>
48484
48485         * modules/realloc-posix: New file.
48486         * modules/realloc (Depends-on): Add realloc-posix.
48487         * lib/realloc.c: Include errno.h.
48488         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48489         and a POSIX-compatible realloc into a single function. Set ENOMEM
48490         when returning NULL.
48491         * m4/realloc.m4: New file.
48492         * doc/functions/realloc.texi: Mention the realloc-posix module.
48493         * lib/stdlib_.h (realloc): New declaration.
48494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48495         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48496         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48497         and HAVE_REALLOC_POSIX.
48498
48499 2007-09-09  Bruno Haible  <bruno@clisp.org>
48500
48501         * modules/calloc-posix: New file.
48502         * modules/calloc (Depends-on): Add calloc-posix.
48503         * lib/calloc.c: Include errno.h.
48504         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48505         and a POSIX-compatible calloc into a single function. Set ENOMEM
48506         when returning NULL.
48507         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48508         * doc/functions/calloc.texi: Mention the calloc-posix module.
48509         * lib/stdlib_.h (calloc): New declaration.
48510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48511         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48512         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48513         and HAVE_CALLOC_POSIX.
48514
48515 2007-09-09  Bruno Haible  <bruno@clisp.org>
48516
48517         Allow for modules to show an arbitrary notice.
48518         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48519         * gnulib-tool: New option --extract-notice.
48520         (func_usage): Document it.
48521         (sed_extract_prog): Update.
48522         (func_get_notice): New function.
48523         (func_modules_notice): New function.
48524         (func_import, func_create_testdir): Invoke it.
48525         Suggested by Jim Meyering.
48526
48527 2007-09-09  Bruno Haible  <bruno@clisp.org>
48528
48529         * gnulib-tool: New options --verbose, --quiet.
48530         (func_usage): Document them.
48531         (verbose): New variable.
48532         (func_execute_command): New function.
48533         (func_import): Don't show the module list and the file list if
48534         $verbose < 0.
48535         (func_create_testdir): Likewise. Use func_execute_command.
48536         (func_create_megatestdir): Use func_execute_command.
48537
48538 2007-09-08  Bruno Haible  <bruno@clisp.org>
48539
48540         * gnulib-tool (func_import): Prefer rsync over wget when available,
48541         for fetching the PO files.
48542
48543 2007-09-08  Bruno Haible  <bruno@clisp.org>
48544
48545         * posix-modules: New file. Portions copied from gnulib-tool.
48546         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48547
48548 2007-09-08  Jim Meyering  <jim@meyering.net>
48549
48550         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48551         * lib/fpending.h: Rename from __fpending.h.
48552         * lib/fpending.c: Rename from __fpending.c.
48553         Include "fpending.h", not "__fpending.h".
48554         * lib/__fpending.h, lib/__fpending.c: Remove files.
48555         * modules/fpending (Files): Reflect new file names.
48556         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48557
48558 2007-09-08  Bruno Haible  <bruno@clisp.org>
48559
48560         * m4/inttypes-h.m4: Remove stub file.
48561
48562 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48563
48564         * doc/headers/stdint.texi: Discuss #include_next issue.
48565
48566 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48567
48568         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48569
48570 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48571
48572         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48573         in variable name.
48574
48575 2007-09-03  Jim Meyering  <jim@meyering.net>
48576
48577         New module: git-version-gen.
48578         * modules/git-version-gen: New file.
48579
48580         Import changes from coreutils for bootstrap script.
48581
48582         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48583
48584         bootstrap: uses rsync to download the .po files
48585         * build-aux/bootstrap (po_download_command_format): New global.
48586         (download_po_files): Use rsync.
48587         (update_po_files): Don't remove .po files after download,
48588         so future rsync runs can take advantage of the copies.
48589
48590         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48591
48592         Solve the unnecessary-.po-file-regeneration problem once and for all.
48593         * build-aux/bootstrap (download_po_files): New function, renamed from
48594         get_translations.  Now, downloads, but doesn't update LINGUAS.
48595         (update_po_files): New function.
48596
48597         bootstrap: Ignore more.
48598         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48599         uniwidth to e.g., lib/.gitignore.
48600         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48601
48602         * build-aux/bootstrap: New setting: vc_ignore.
48603         (insert_sorted_if_absent): Create $file if absent.
48604         Adapt to new, possibly empty, list: $vc_ignore.
48605
48606         bootstrap: generate more ignorable names
48607         * build-aux/bootstrap (slurp): When generating ignorable names,
48608         also map .sin to .sed, .gperf to .c, and .y to .c.
48609
48610 2007-09-03  Jim Meyering  <jim@meyering.net>
48611
48612         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48613         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48614
48615 2007-09-02  Bruno Haible  <bruno@clisp.org>
48616
48617         Fix mis-recognition of 'mcs' on QNX 6.
48618         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48619         output contains the string "Mono".
48620         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48621         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48622
48623 2007-09-01  Bruno Haible  <bruno@clisp.org>
48624
48625         Fix collision between uniwidth/* and linebreak modules.
48626         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48627         u32_width): Remove declarations.
48628         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48629         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48630         streq3, streq2, streq1, streq0): Remove functions.
48631         (STREQ): Remove macro.
48632         (is_cjk_encoding): Remove function.
48633         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48634         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48635         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48636         * NEWS: Document the change.
48637
48638 2007-09-01  Bruno Haible  <bruno@clisp.org>
48639
48640         * lib/streq.h: Add double-inclusion guard.
48641
48642 2007-09-01  Karl Berry  <karl@gnu.org>
48643
48644         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48645
48646 2007-08-28  Jim Meyering  <jim@meyering.net>
48647
48648         Rename mreadlink_with_size to areadlink_with_size.
48649         * NEWS: Document the change.
48650         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48651         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48652         * lib/mreadlink.h: Rename this to...
48653         * lib/areadlink.h: ...this.
48654         * modules/mreadlink-with-size: Rename this to...
48655         * modules/areadlink-with-size: ...this.
48656         * lib/canonicalize.c: Reflect the renaming.
48657         * modules/canonicalize: Likewise.
48658
48659 2007-08-26  Bruno Haible  <bruno@clisp.org>
48660
48661         * gnulib-tool (func_import): When deciding which files to remove,
48662         consider also dangling symbolic links.
48663         Reported by Eric Blake.
48664
48665 2007-08-26  Bruno Haible  <bruno@clisp.org>
48666
48667         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48668
48669 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48670
48671         * lib/readline.c: Don't include getline.h, the prototype is now
48672         found in stdio.h.
48673
48674 2007-08-23  Jim Meyering  <jim@meyering.net>
48675
48676         Getdelim touchup.
48677         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48678         around the funlockfile call, since funlockfile never sets errno.
48679         Don't set errno upon failed realloc.
48680
48681 2007-08-22  Eric Blake  <ebb9@byu.net>
48682
48683         Getline touchups.
48684         * lib/getdelim.c (getdelim): Revert regression that required *n to
48685         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48686         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48687         getdelim, rather than whether implementation is missing.
48688         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48689         * lib/stdio_.h (getline): Also declare if replacement is
48690         required.
48691         * doc/functions/getdelim.texi: New file.
48692         * doc/functions/getline.texi: Likewise.
48693         * doc/gnulib.texi (Function Substitutes): Add new files.
48694         Reported by Bruno Haible.
48695
48696 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48697
48698         * users.txt: Add Guile.
48699
48700 2007-08-22  Eric Blake  <ebb9@byu.net>
48701
48702         * tests/test-getdelim.c (main): Use remove, not unlink.
48703         * tests/test-getline.c (main): Likewise.
48704
48705         Move getline and getdelim into stdio.h, per POSIX 200x.
48706         * modules/getline (Files): Remove getline.h.
48707         (Depends-on): Add stdio.
48708         (configure.ac): Add module indicator.
48709         * modules/getdelim (Files): Remove getdelim.h.
48710         (Depends-on): Add stdio.
48711         (configure.ac): Add module indicator.
48712         * modules/stdio (Makefile.am): Work with new indicators.
48713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48714         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48715         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48716         * lib/getdelim.h: Delete.
48717         * lib/getline.h: Delete.
48718         * lib/stdio_.h (getdelim, getline): Declare.
48719         * modules/getdelim-tests: New module.
48720         * modules/getline-tests: Likewise.
48721         * tests/test-getdelim.c: New file.
48722         * tests/test-getline.c: Likewise.
48723         * NEWS: Document the change.
48724         * lib/getline.c: Update choice of header.
48725         * lib/csharpcomp.c: Likewise.
48726         * lib/getpass.c: Likewise.
48727         * lib/javacomp.c: Likewise.
48728         * lib/javaversion.c: Likewise.
48729         * lib/yesno.c: Likewise.
48730         * lib/getdelim.c: Likewise.
48731         (getdelim): Set errno on failure, and avoid memory leak.
48732
48733 2007-08-19  Bruno Haible  <bruno@clisp.org>
48734
48735         * modules/closein (Depends-on): Add freadahead.
48736         * lib/closein.c: Include freadahead.h.
48737         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48738         is zero.
48739
48740 2007-08-19  Bruno Haible  <bruno@clisp.org>
48741
48742         * modules/freadahead-tests: New file.
48743         * tests/test-freadahead.sh: New file.
48744         * tests/test-freadahead.c: New file.
48745
48746         * modules/freadahead: New file.
48747         * lib/freadahead.h: New file.
48748         * lib/freadahead.c: New file.
48749         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48750         fbufmode, fpurge, freadable, fwritable.
48751
48752 2007-08-19  Eric Blake  <ebb9@byu.net>
48753
48754         Test yesno in combination with closein.
48755         * lib/yesno.c (yesno): Document use of stdin.
48756         * modules/yesno-tests (Files): New module.
48757         * tests/test-yesno.c (main): New file.
48758         * tests/test-yesno.sh: Likewise.
48759
48760 2007-08-19  Bruno Haible  <bruno@clisp.org>
48761
48762         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48763         * lib/fseeko.c (rpl_fseeko): Likewise.
48764         * lib/fseterr.c (fseterr): Likewise.
48765
48766 2007-08-19  Bruno Haible  <bruno@clisp.org>
48767
48768         * tests/test-lseek.c (main): Disable a test for BeOS.
48769         * doc/functions/lseek.texi: Document the BeOS bug.
48770
48771 2007-08-19  Bruno Haible  <bruno@clisp.org>
48772             Eric Blake  <ebb9@byu.net>
48773
48774         * lib/lseek.c: Include <sys/stat.h>.
48775         (rpl_lseek): Add workaround code also for Unix platforms.
48776         Needed for BeOS.
48777         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48778         * doc/functions/lseek.texi: Document BeOS definiency.
48779
48780 2007-08-18  Bruno Haible  <bruno@clisp.org>
48781
48782         * modules/fstrcmp-tests: New file.
48783         * tests/test-fstrcmp.c: New file.
48784
48785 2007-08-18  Bruno Haible  <bruno@clisp.org>
48786
48787         * modules/fstrcmp: New file, from GNU gettext with modifications.
48788         * lib/fstrcmp.h: New file, from GNU gettext.
48789         * lib/fstrcmp.c: New file, from GNU gettext.
48790         * MODULES.html.sh (String handling): Add fstrcmp.
48791
48792 2007-08-18  Bruno Haible  <bruno@clisp.org>
48793
48794         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48795         'bool'.
48796         (diag, compareseq): Remove const from the ctxt argument.
48797         (USE_HEURISTIC): Undefine at the end.
48798
48799 2007-08-18  Jim Meyering  <jim@meyering.net>
48800
48801         New file: lib/idcache.h
48802         * NEWS: Mention the addition.
48803         * modules/idcache (Files): Add lib/idcache.h
48804         * lib/idcache.c: Include "idcache.h".
48805         Don't include <sys/types.h>.
48806         Add a FIXME comment.
48807         Move file-scoped "static" declarations to the top.
48808         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48809
48810 2007-08-17  Bruno Haible  <bruno@clisp.org>
48811         and Paul Eggert  <eggert@cs.ucla.edu>
48812
48813         * MODULES.html.sh: Add diffseq.
48814         * modules/diffseq: New file.
48815         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48816         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48817
48818 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48819
48820         Import changes from coreutils for bootstrap script.
48821
48822         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48823
48824         * build-aux/bootstrap (slurp): Work even in environments where
48825         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48826         current code does not slurp files whose names start with ".", and
48827         this looks like it might be a troublesome area.
48828
48829         2007-07-11  Jim Meyering  <jim@meyering.net>
48830
48831         If there's a GPL vN copyright comment, require that N == 3.
48832
48833         2007-07-08  Jim Meyering  <jim@meyering.net>
48834
48835         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48836         * build-aux/bootstrap (mam_template): Move definition out of loop.
48837
48838         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48839
48840         * build-aux/bootstrap (symlink_to_dir): Rename function from
48841         symlink_to_gnulib.  Add a directory parameter.  Update all
48842         callers.
48843         (cp_mark_as_generated): Also check for -- and link to -- files in
48844         gl/.
48845
48846         2007-07-08  Jim Meyering  <jim@meyering.net>
48847
48848         Adapt to deeper hierarchy in gnulib.
48849         * build-aux/bootstrap (symlink_to_dir): If the destination
48850         directory doesn't exist, create it. This is required at least for
48851         "lib/uniwidth/cjk.h".
48852
48853         2007-05-15  Jim Meyering  <jim@meyering.net>
48854
48855         * build-aux/bootstrap: Now that generated Makefile.am files
48856         are no longer under version control, they must be created at
48857         bootstrap time.
48858
48859 2007-08-14  Ben Pfaff  <blp@gnu.org>
48860
48861         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48862
48863 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48864
48865         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48866         given the changes below.
48867         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48868         even on hosts that have padding bits beyond the supported 64.
48869
48870 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48871
48872         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48873         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48874         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48875         depends on it.
48876         (xstrtol_error): Remove.
48877         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48878         but with a different signature.
48879         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48880         * lib/xstrtol-error.c: Include exitfail.h.
48881         (xstrtol_fatal): New function, with a different signature from the
48882         old xstrtol_error, so that the caller need not worry about passing
48883         in an exit status, or about storage management of the option argument.
48884         (xstrtol_error): Now a static function.  Redo signature to
48885         implement xstrtol_fatal.  Output the correct number of hyphens in
48886         front of the option so that the caller need not worry about
48887         storage management.
48888         (N_): New macro.
48889         (_): Remove; not used now.
48890         * modules/xstrtol: Depend on getopt.
48891         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48892         of old STRTOL_FATAL_ERROR macro.
48893         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48894         of test program.
48895         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48896         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48897
48898 2007-08-08  Eric Blake  <ebb9@byu.net>
48899
48900         * lib/xstrtol-error.c: Add missing include.
48901
48902         Move xstrtol messages into gnulib domain, when --pobase is used.
48903         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48904         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48905         * modules/xstrtol (Files): Distribute new file.
48906         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48907         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48908         * tests/test-xstrtol.c: ...into new file.
48909         * tests/test-xstrtoul.c: Also test xstrtoul.
48910         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48911         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48912         * tests/test-xstrtol.sh: Drive the tests.
48913         * tests/test-xstrtoimax.sh: Likewise.
48914         * tests/test-xstrtoumax.sh: Likewise.
48915         * modules/xstrtol-tests: New module.
48916         * modules/xstrtoimax-tests: Likewise.
48917         * modules/xstrtoumax-tests: Likewise.
48918
48919 2007-08-08  Jim Meyering  <jim@meyering.net>
48920
48921         New function: mfile_name_concat.
48922         * lib/filenamecat.c (mfile_name_concat): New function, just like
48923         file_name_concat, but return NULL upon failure rather than exiting
48924         with a diagnostic.
48925         * lib/filenamecat.h: Declare it.
48926
48927 2007-08-07  Bruno Haible  <bruno@clisp.org>
48928
48929         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48930         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48931         warning from gcc.
48932         Reported by Eric Blake.
48933
48934 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48935
48936         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48937         * modules/crypto/arcfour (License): Likewise.
48938         * modules/crypto/des-tests (License): Likewise.
48939         * modules/crypto/gc-arctwo-tests (License): Likewise.
48940         * modules/crypto/gc-des-tests (License): Likewise.
48941         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48942         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48943         * modules/crypto/gc-md2-tests (License): Likewise.
48944         * modules/crypto/gc-md4-tests (License): Likewise.
48945         * modules/crypto/gc-md5-tests (License): Likewise.
48946         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48947         * modules/crypto/gc-rijndael-tests (License): Likewise.
48948         * modules/crypto/gc-sha1-tests (License): Likewise.
48949         * modules/crypto/gc-tests (License): Likewise.
48950         * modules/crypto/hmac-md5 (License): Likewise.
48951         * modules/crypto/hmac-sha1 (License): Likewise.
48952         * modules/crypto/md2-tests (License): Likewise.
48953         * modules/crypto/md4-tests (License): Likewise.
48954         * modules/crypto/md5 (License): Likewise.
48955         * modules/crypto/rijndael (License): Likewise.
48956         * modules/crypto/sha1 (License): Likewise.
48957         * modules/memxor (License): Likewise.
48958
48959 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48960         and Bruno Haible  <bruno@clisp.org>
48961
48962         * NEWS: Describe interface changes to human, xstrtol.
48963         * lib/human.h: Include <xstrtol.h>.
48964         (human_options): Return enum strtol_error, not int.  Remove
48965         bool arg; take int * instead.
48966         * lib/human.c: Don't include "gettext.h".
48967         (_): Remove; no longer used.
48968         Don't include <xstrtol.h>, since human.h does it.
48969         (human_options): Adjust to abovementioned interface changes.
48970         Do not report error to stderr; that's now the caller's
48971         responsibility.
48972         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48973         interface change.
48974         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48975         Str, Argument_type_string.  All uses changed.  Put " argument"
48976         in diagnostics to make them clearer.  Change wording of suffix
48977         message for clarity.
48978         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48979         Argument_type_string.
48980         (STRTOL_FATAL_WARN): Remove; no longer used.
48981         * modules/human (Depends-on): Remove gettext-h.
48982
48983 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48984
48985         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48986
48987 2007-07-31  Bruno Haible  <bruno@clisp.org>
48988
48989         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48990         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48991         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48992
48993 2007-07-31  Bruno Haible  <bruno@clisp.org>
48994
48995         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48996         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48997
48998 2007-07-30  Bruno Haible  <bruno@clisp.org>
48999
49000         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49001         * modules/c-ctype (License): Likewise.
49002         * modules/c-strcase (License): Likewise.
49003         * modules/check-version (License): Likewise.
49004         * modules/iconv (License): Likewise.
49005         * modules/iconv_open (License): Likewise.
49006         * modules/read-file (License): Likewise.
49007         * modules/striconv (License): Likewise.
49008         * modules/strverscmp (License): Likewise.
49009         * modules/vasprintf (License): Likewise.
49010         * modules/crypto/des (License): Likewise.
49011         * modules/crypto/gc (License): Likewise.
49012         * modules/crypto/gc-arcfour (License): Likewise.
49013         * modules/crypto/gc-arctwo (License): Likewise.
49014         * modules/crypto/gc-des (License): Likewise.
49015         * modules/crypto/gc-hmac-md5 (License): Likewise.
49016         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49017         * modules/crypto/gc-md2 (License): Likewise.
49018         * modules/crypto/gc-md4 (License): Likewise.
49019         * modules/crypto/gc-md5 (License): Likewise.
49020         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49021         * modules/crypto/gc-random (License): Likewise.
49022         * modules/crypto/gc-rijndael (License): Likewise.
49023         * modules/crypto/gc-sha1 (License): Likewise.
49024         * modules/crypto/md2 (License): Likewise.
49025         * modules/crypto/md4 (License): Likewise.
49026
49027 2007-07-30  Jim Meyering  <jim@meyering.net>
49028
49029         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49030         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49031         it has valid stat data.  This bug would cause du not to count the
49032         sizes of inaccessible directories.
49033         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49034         in <http://bugzilla.redhat.com/250077>.
49035
49036 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49037             Bruno Haible  <bruno@clisp.org>
49038
49039         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49040         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49041         #include_next, gives a diagnostic about it, but reports no error in
49042         the exit code.
49043         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49044
49045 2007-07-24  Ben Pfaff  <blp@gnu.org>
49046
49047         Improve name: "count-one-bits" is better than "popcount".
49048         * MODULES.html.sh: Update name.
49049         * lib/popcount.h: Renamed lib/count-one-bits.h.
49050         (popcount): Renamed count_one_bits.
49051         (popcountl): Renamed count_one_bits_l.
49052         (popcountll): Renamed count_one_bits_ll.
49053         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49054         * modules/popcount: Renamed module/count-one-bits.
49055         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49056         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49057
49058 2007-07-23  Ben Pfaff  <blp@gnu.org>
49059
49060         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49061         better code generation, and add U to large constants to avoid
49062         warnings, in non-GCC case.
49063         Suggested by Bruno Haible.
49064
49065 2007-07-23  Ben Pfaff  <blp@gnu.org>
49066
49067         * lib/popcount.h: Use verify_true instead of if...abort.
49068         * modules/popcount: Depend on verify module.
49069         Suggested by Jim Meyering.
49070
49071 2007-07-23  Bruno Haible  <bruno@clisp.org>
49072
49073         * gnulib-tool (func_import): Create a .cvsignore file also when the
49074         directory is not yet in CVS but the toplevel directory is. When
49075         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49076         Reported by Karl Berry.
49077
49078 2007-07-22  Ben Pfaff  <blp@gnu.org>
49079
49080         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49081         case.
49082         Suggested by Eric Blake.
49083
49084 2007-07-22  Ben Pfaff  <blp@gnu.org>
49085
49086         New module: popcount.
49087         * MODULES.html.sh: Add popcount.
49088         * modules/popcount: New file.
49089         * modules/popcount-tests: New file.
49090         * tests/test-popcount.c: New file.
49091         * lib/popcount.h: New file.
49092         * m4/popcount.m4: New file.
49093
49094 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49095
49096         * build-aux/announce-gen: Update to GPLv3.
49097
49098         * build-aux/config.guess: Update from config.
49099
49100 2007-07-21  Bruno Haible  <bruno@clisp.org>
49101
49102         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49103         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49104
49105 2007-07-20  Jim Meyering  <jim@meyering.net>
49106
49107         * check-module: Diagnose a self-dependency.
49108
49109 2007-07-19  Bruno Haible  <bruno@clisp.org>
49110
49111         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49112         empty.
49113         Reported by Eric Blake.
49114
49115 2007-07-18  Bruno Haible  <bruno@clisp.org>
49116
49117         * gnulib-tool: New options --po-base, --po-domain.
49118         (func_usage): Document them.
49119         (pobase, po_domain): New variables.
49120         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49121         DEFAULT_TEXT_DOMAIN.
49122         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49123         (func_import): Consider pobase and po_domain. Create a po/ directory.
49124         (func_create_testdir): Set pobase and po_domain to empty.
49125         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49126         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49127
49128 2007-07-18  Bruno Haible  <bruno@clisp.org>
49129
49130         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49131         EXTRA_DIST augmentation for files in build-aux/.
49132
49133 2007-07-16  Bruno Haible  <bruno@clisp.org>
49134
49135         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49136         * modules/getdelim (License): Likewise.
49137
49138 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49139
49140         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49141         * modules/d-type (License): Likewise.
49142         * modules/extensions (License): Likewise.
49143         * modules/fnmatch (License): Likewise.
49144         * modules/fseeko (License): Likewise.
49145         * modules/getaddrinfo (License): Likewise.
49146         * modules/getline (License): Likewise.
49147         * modules/getlogin_r (License): Likewise.
49148         * modules/getpass (License): Likewise.
49149         * modules/gettimeofday (License): Likewise.
49150         * modules/glob (License): Likewise.
49151         * modules/inet_ntop (License): Likewise.
49152         * modules/malloc (License): Likewise.
49153         * modules/malloca (License): Likewise.
49154         * modules/memmem (License): Likewise.
49155         * modules/mempcpy (License): Likewise.
49156         * modules/memset (License): Likewise.
49157         * modules/minmax (License): Likewise.
49158         * modules/mktime (License): Likewise.
49159         * modules/netinet_in (License): Likewise.
49160         * modules/pathmax (License): Likewise.
49161         * modules/poll (License): Likewise.
49162         * modules/regex (License): Likewise.
49163         * modules/snprintf (License): Likewise.
49164         * modules/stdbool (License): Likewise.
49165         * modules/stdint (License): Likewise.
49166         * modules/stdio (License): Likewise.
49167         * modules/strcase (License): Likewise.
49168         * modules/strcasestr (License): Likewise.
49169         * modules/strdup (License): Likewise.
49170         * modules/string (License): Likewise.
49171         * modules/strndup (License): Likewise.
49172         * modules/strnlen (License): Likewise.
49173         * modules/strpbrk (License): Likewise.
49174         * modules/strptime (License): Likewise.
49175         * modules/strsep (License): Likewise.
49176         * modules/sys_select (License): Likewise.
49177         * modules/sys_socket (License): Likewise.
49178         * modules/sys_stat (License): Likewise.
49179         * modules/sys_time (License): Likewise.
49180         * modules/time (License): Likewise.
49181         * modules/time_r (License): Likewise.
49182         * modules/timegm (License): Likewise.
49183         * modules/unistd (License): Likewise.
49184         * modules/vsnprintf (License): Likewise.
49185         * modules/wctype (License): Likewise.
49186
49187 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49188
49189         * modules/argz (License): LGPLv2+.
49190
49191 2007-07-15  Karl Berry  <karl@gnu.org>
49192
49193         * doc/gnulib.texi: revise node structure per new fdl.texi.
49194
49195 2007-07-14  Bruno Haible  <bruno@clisp.org>
49196
49197         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49198         the output file.
49199         * lib/uniname/uninames.h: Regenerated.
49200
49201 2007-07-14  Karl Berry  <karl@gnu.org>
49202
49203         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49204         omitting sectioning and index commands.
49205
49206 2007-07-13  Bruno Haible  <bruno@clisp.org>
49207
49208         New gnulib-tool option --more-symlinks.
49209         * gnulib-tool (func_usage): Document --more-symlinks.
49210         (do_copyrights): New variable.
49211         Recognize option --more-symlinks.
49212         (func_import): Don't add a copyright notice transform to
49213         sed_transform_lib_file if do_copyrights is empty.
49214
49215 2007-07-13  Bruno Haible  <bruno@clisp.org>
49216
49217         * lib/vasnprintf.c (decimal_point_char): Define also if
49218         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49219         && !NEED_PRINTF_DIRECTIVE_A.
49220         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49221         Gary V. Vaughan <gary@gnu.org>.
49222
49223 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49224
49225         * lib/inttypes_.h: Undo previous change, since it was fixed
49226         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49227
49228 2007-07-13  Bruno Haible  <bruno@clisp.org>
49229
49230         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49231         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49232
49233 2007-07-13  Jim Meyering  <jim@meyering.net>
49234
49235         df: Don't fail for Tru64's "file-on-file mount".
49236         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49237         so we fall through and use statfs instead.  Details here:
49238         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49239         Reported by Albert Chin.
49240
49241 2007-07-13  Bruno Haible  <bruno@clisp.org>
49242
49243         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49244         * modules/configmake (License): Likewise.
49245         * modules/gettext (License): Likewise.
49246         * modules/gettext-h (License): Likewise.
49247         * modules/include_next (License): Likewise.
49248         * modules/link-warning (License): Likewise.
49249         * modules/localcharset (License): Likewise.
49250         * modules/localename (License): Likewise.
49251         * modules/lock (License): Likewise.
49252         * modules/relocatable-lib-lgpl (License): Likewise.
49253         * modules/size_max (License): Likewise.
49254         * modules/vasnprintf (License): Likewise.
49255         * modules/wchar (License): Likewise.
49256         * modules/xsize (License): Likewise.
49257
49258 2007-07-13  Bruno Haible  <bruno@clisp.org>
49259
49260         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49261         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49262
49263 2007-07-12  Bruno Haible  <bruno@clisp.org>
49264
49265         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49266         in the modules files.
49267
49268 2007-07-11  Karl Berry  <karl@gnu.org>
49269
49270         * MODULES.html.sh (func_module): use
49271          sed -e '\|^'"${includefile}"'$|d'
49272          instead of /.../d, to avoid errors on $includefile's containing /.
49273
49274 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49275
49276         * gnulib-tool (func_import): Avoid duplication of --avoid
49277         statements
49278         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49279         names to `_' in variable names.
49280
49281 2007-07-10  Eric Blake  <ebb9@byu.net>
49282
49283         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49284         * NEWS: Document this change.
49285
49286 2007-07-08  Bruno Haible  <bruno@clisp.org>
49287
49288         Update to Unicode 5.0.
49289         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49290         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49291         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49292         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49293         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49294         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49295         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49296         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49297         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49298         U+10A3F, U+1D242..U+1D244.
49299         (nonspacing_table_ind): Update.
49300         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49301         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49302
49303 2007-07-08  Bruno Haible  <bruno@clisp.org>
49304
49305         Update to Unicode 5.0.
49306         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49307         code transform. Extend the name index field of unicode_name_to_code and
49308         unicode_code_to_name from 16 to 24 bits.
49309         * lib/uniname/uniname.c (unicode_character_name,
49310         unicode_name_character): Add the range 0x12xxx to the code transform.
49311         * lib/uniname/uninames.h: Regenerated.
49312         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49313
49314 2007-07-07  Bruno Haible  <bruno@clisp.org>
49315
49316         * modules/wcwidth-tests: New file.
49317         * tests/test-wcwidth.c: New file.
49318
49319         Work around MacOS X wcwidth() bug.
49320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49321         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49322         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49323         original wcwidth in non-UTF-8 locales.
49324         * modules/wcwidth (Depends-on): Add localcharset, streq,
49325         uniwidth/width.
49326         * doc/functions/wcwidth.texi: Update.
49327
49328 2007-07-07  Bruno Haible  <bruno@clisp.org>
49329
49330         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49331         (wcwidth): New declaration.
49332         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49333         macros.
49334         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49335         here. Prepare for creating <wchar.h> unconditionally.
49336         * modules/wchar (Depends-on): Add link-warning.
49337         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49338         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49339         * lib/wcwidth.h: Remove file.
49340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49341         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49342         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49343         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49344         (Include): Replace wcwidth.h with <wchar.h>.
49345         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49346         * lib/mbchar.h: Don't include wcwidth.h.
49347         * lib/mbswidth.c: Likewise.
49348         * NEWS: Mention the change.
49349
49350 2007-07-07  Bruno Haible  <bruno@clisp.org>
49351
49352         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49353         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49354         definition with an external declaration.
49355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49356         defined as a function. Remove AC_C_INLINE requirement.
49357         * modules/wcwidth (Files): Add lib/wcwidth.c.
49358         (Makefile.am): Remove redundant statement.
49359
49360 2007-07-07  Bruno Haible  <bruno@clisp.org>
49361
49362         * MODULES.html.sh (Unicode string functions): Add the new modules.
49363
49364         * tests/uniwidth/test-u32-strwidth.c: New file.
49365         * modules/uniwidth/u32-strwidth-tests: New file.
49366
49367         * lib/uniwidth/u32-strwidth.c: New file.
49368         * modules/uniwidth/u32-strwidth: New file.
49369
49370         * tests/uniwidth/test-u16-strwidth.c: New file.
49371         * modules/uniwidth/u16-strwidth-tests: New file.
49372
49373         * lib/uniwidth/u16-strwidth.c: New file.
49374         * modules/uniwidth/u16-strwidth: New file.
49375
49376         * tests/uniwidth/test-u8-strwidth.c: New file.
49377         * modules/uniwidth/u8-strwidth-tests: New file.
49378
49379         * lib/uniwidth/u8-strwidth.c: New file.
49380         * modules/uniwidth/u8-strwidth: New file.
49381
49382         * tests/uniwidth/test-u32-width.c: New file.
49383         * modules/uniwidth/u32-width-tests: New file.
49384
49385         * lib/uniwidth/u32-width.c: New file.
49386         * modules/uniwidth/u32-width: New file.
49387
49388         * tests/uniwidth/test-u16-width.c: New file.
49389         * modules/uniwidth/u16-width-tests: New file.
49390
49391         * lib/uniwidth/u16-width.c: New file.
49392         * modules/uniwidth/u16-width: New file.
49393
49394         * tests/uniwidth/test-u8-width.c: New file.
49395         * modules/uniwidth/u8-width-tests: New file.
49396
49397         * lib/uniwidth/u8-width.c: New file.
49398         * modules/uniwidth/u8-width: New file.
49399
49400         * tests/uniwidth/test-uc_width.c: New file.
49401         * modules/uniwidth/width-tests: New file.
49402
49403         * lib/uniwidth/width.c: New file, from GNU libiconv.
49404         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49405         * modules/uniwidth/width: New file.
49406
49407         * lib/uniwidth.h: New file, from GNU libiconv.
49408         * modules/uniwidth/base: New file.
49409
49410 2007-07-07  Bruno Haible  <bruno@clisp.org>
49411
49412         * lib/uniname.h: New file, from GNU gettext.
49413         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49414         * lib/uniname/uninames.h: New file, from GNU gettext.
49415         * lib/uniname/uniname.c: New file, from GNU gettext.
49416         * tests/uniname/test-uninames.sh: New file.
49417         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49418         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49419         * modules/uniname/base: New file.
49420         * modules/uniname/uniname: New file.
49421         * modules/uniname/uniname-tests: New file.
49422         * MODULES.html.sh (Unicode string functions): Add the new modules.
49423
49424 2007-07-06  Bruno Haible  <bruno@clisp.org>
49425
49426         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49427
49428 2007-07-06  Bruno Haible  <bruno@clisp.org>
49429
49430         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49431         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49432         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49433         include <sys/time.h>.
49434         Reported by Eric Blake.
49435
49436 2007-07-06  Eric Blake  <ebb9@byu.net>
49437
49438         Fix testing canonicalize on cygwin.
49439         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49440         Revert patch from 2007-06-19.
49441         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49442         canonicalize module is also in use.
49443         * tests/test-canonicalize.c: New file.
49444         * tests/test-canonicalize.sh: Likewise.
49445         * modules/canonicalize-tests: Likewise.
49446
49447 2007-07-06  Jim Meyering  <jim@meyering.net>
49448
49449         * lib/getugroups.c (getugroups): Detect getgrent failure.
49450         Adjust comment to reflect reality: this function may return -1.
49451
49452 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49453
49454         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49455         the new TP address.
49456         (usage): Fix typo
49457         (gnulib_mk): New variable.
49458
49459 2007-07-05  Jim Meyering  <jim@meyering.net>
49460
49461         Don't let endgrent clobber errno, no matter how improbable.
49462         * lib/getugroups.c (getugroups): Save and restore errno around
49463         endgrent call.
49464
49465         Close the group DB even when failing with 2^31 or more members.
49466         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49467
49468 2007-07-04  Jim Meyering  <jim@meyering.net>
49469
49470         * lib/getugroups.h: New file.
49471         * lib/getugroups.c: Include "getugroups.h".
49472         Remove uses of "register" keyword.
49473         Move local variable, "cp", down into scope where used.
49474         Give "username" parameter the "const" attribute.
49475         * modules/getugroups (Files): Add lib/getugroups.h
49476
49477 2007-07-04  Karl Berry  <karl@gnu.org>
49478
49479         * MODULES.html.sh (func_all_modules): Complete rename of
49480         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49481
49482 2007-07-02  Bruno Haible  <bruno@clisp.org>
49483
49484         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49485         mode, when inttypes.h comes from gnulib.
49486         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49487
49488 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49489
49490         * NEWS: Mention lgpl module name change.
49491
49492         * modules/lgpl-2.1: Renamed from lgpl.
49493
49494         * NEWS: Mention gpl module name change.
49495
49496         * modules/gpl-3.0: New file, based on gpl-2.0.
49497
49498         * modules/gpl-2.0: Renamed from gpl.
49499
49500         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49501         doc/gpl-2.0.texi.
49502
49503 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49504
49505         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49506         #define __STDC_LIMIT_MACROS temporarily while including
49507         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49508         Problem reported by Joel E. Denny in
49509         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49510
49511 2007-07-01  Bruno Haible  <bruno@clisp.org>
49512
49513         * lib/unistdio.h: New file.
49514         * lib/unistdio/u-asnprintf.h: New file.
49515         * lib/unistdio/u-asprintf.h: New file.
49516         * lib/unistdio/u-printf-args.c: New file.
49517         * lib/unistdio/u-printf-args.h: New file.
49518         * lib/unistdio/u-printf-parse.h: New file.
49519         * lib/unistdio/u-snprintf.h: New file.
49520         * lib/unistdio/u-sprintf.h: New file.
49521         * lib/unistdio/u-vasprintf.h: New file.
49522         * lib/unistdio/u-vsnprintf.h: New file.
49523         * lib/unistdio/u-vsprintf.h: New file.
49524         * lib/unistdio/ulc-asnprintf.c: New file.
49525         * lib/unistdio/ulc-asprintf.c: New file.
49526         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49527         * lib/unistdio/ulc-printf-parse.c: New file.
49528         * lib/unistdio/ulc-snprintf.c: New file.
49529         * lib/unistdio/ulc-sprintf.c: New file.
49530         * lib/unistdio/ulc-vasnprintf.c: New file.
49531         * lib/unistdio/ulc-vasprintf.c: New file.
49532         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49533         * lib/unistdio/ulc-vsnprintf.c: New file.
49534         * lib/unistdio/ulc-vsprintf.c: New file.
49535         * lib/unistdio/u8-asnprintf.c: New file.
49536         * lib/unistdio/u8-asprintf.c: New file.
49537         * lib/unistdio/u8-printf-parse.c: New file.
49538         * lib/unistdio/u8-snprintf.c: New file.
49539         * lib/unistdio/u8-sprintf.c: New file.
49540         * lib/unistdio/u8-vasnprintf.c: New file.
49541         * lib/unistdio/u8-vasprintf.c: New file.
49542         * lib/unistdio/u8-vsnprintf.c: New file.
49543         * lib/unistdio/u8-vsprintf.c: New file.
49544         * lib/unistdio/u8-u8-asnprintf.c: New file.
49545         * lib/unistdio/u8-u8-asprintf.c: New file.
49546         * lib/unistdio/u8-u8-snprintf.c: New file.
49547         * lib/unistdio/u8-u8-sprintf.c: New file.
49548         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49549         * lib/unistdio/u8-u8-vasprintf.c: New file.
49550         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49551         * lib/unistdio/u8-u8-vsprintf.c: New file.
49552         * lib/unistdio/u16-asnprintf.c: New file.
49553         * lib/unistdio/u16-asprintf.c: New file.
49554         * lib/unistdio/u16-printf-parse.c: New file.
49555         * lib/unistdio/u16-snprintf.c: New file.
49556         * lib/unistdio/u16-sprintf.c: New file.
49557         * lib/unistdio/u16-vasnprintf.c: New file.
49558         * lib/unistdio/u16-vasprintf.c: New file.
49559         * lib/unistdio/u16-vsnprintf.c: New file.
49560         * lib/unistdio/u16-vsprintf.c: New file.
49561         * lib/unistdio/u16-u16-asnprintf.c: New file.
49562         * lib/unistdio/u16-u16-asprintf.c: New file.
49563         * lib/unistdio/u16-u16-snprintf.c: New file.
49564         * lib/unistdio/u16-u16-sprintf.c: New file.
49565         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49566         * lib/unistdio/u16-u16-vasprintf.c: New file.
49567         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49568         * lib/unistdio/u16-u16-vsprintf.c: New file.
49569         * lib/unistdio/u32-asnprintf.c: New file.
49570         * lib/unistdio/u32-asprintf.c: New file.
49571         * lib/unistdio/u32-printf-parse.c: New file.
49572         * lib/unistdio/u32-snprintf.c: New file.
49573         * lib/unistdio/u32-sprintf.c: New file.
49574         * lib/unistdio/u32-vasnprintf.c: New file.
49575         * lib/unistdio/u32-vasprintf.c: New file.
49576         * lib/unistdio/u32-vsnprintf.c: New file.
49577         * lib/unistdio/u32-vsprintf.c: New file.
49578         * lib/unistdio/u32-u32-asnprintf.c: New file.
49579         * lib/unistdio/u32-u32-asprintf.c: New file.
49580         * lib/unistdio/u32-u32-snprintf.c: New file.
49581         * lib/unistdio/u32-u32-sprintf.c: New file.
49582         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49583         * lib/unistdio/u32-u32-vasprintf.c: New file.
49584         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49585         * lib/unistdio/u32-u32-vsprintf.c: New file.
49586         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49587         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49588         * tests/unistdio/test-ulc-printf1.h: New file.
49589         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49590         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49591         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49592         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49593         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49594         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49595         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49596         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49597         * tests/unistdio/test-u8-asnprintf1.c: New file.
49598         * tests/unistdio/test-u8-asnprintf1.h: New file.
49599         * tests/unistdio/test-u8-printf1.h: New file.
49600         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49601         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49602         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49603         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49604         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49605         * tests/unistdio/test-u8-vasprintf1.c: New file.
49606         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49607         * tests/unistdio/test-u8-vsprintf1.c: New file.
49608         * tests/unistdio/test-u16-asnprintf1.c: New file.
49609         * tests/unistdio/test-u16-asnprintf1.h: New file.
49610         * tests/unistdio/test-u16-printf1.h: New file.
49611         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49612         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49613         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49614         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49615         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49616         * tests/unistdio/test-u16-vasprintf1.c: New file.
49617         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49618         * tests/unistdio/test-u16-vsprintf1.c: New file.
49619         * tests/unistdio/test-u32-asnprintf1.c: New file.
49620         * tests/unistdio/test-u32-asnprintf1.h: New file.
49621         * tests/unistdio/test-u32-printf1.h: New file.
49622         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49623         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49624         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49625         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49626         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49627         * tests/unistdio/test-u32-vasprintf1.c: New file.
49628         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49629         * tests/unistdio/test-u32-vsprintf1.c: New file.
49630         * modules/unistdio/base: New file.
49631         * modules/unistdio/u-printf-args: New file.
49632         * modules/unistdio/ulc-asnprintf: New file.
49633         * modules/unistdio/ulc-asprintf: New file.
49634         * modules/unistdio/ulc-fprintf: New file.
49635         * modules/unistdio/ulc-printf-parse: New file.
49636         * modules/unistdio/ulc-snprintf: New file.
49637         * modules/unistdio/ulc-sprintf: New file.
49638         * modules/unistdio/ulc-vasnprintf: New file.
49639         * modules/unistdio/ulc-vasprintf: New file.
49640         * modules/unistdio/ulc-vfprintf: New file.
49641         * modules/unistdio/ulc-vsnprintf: New file.
49642         * modules/unistdio/ulc-vsprintf: New file.
49643         * modules/unistdio/u8-asnprintf: New file.
49644         * modules/unistdio/u8-asprintf: New file.
49645         * modules/unistdio/u8-printf-parse: New file.
49646         * modules/unistdio/u8-snprintf: New file.
49647         * modules/unistdio/u8-sprintf: New file.
49648         * modules/unistdio/u8-vasnprintf: New file.
49649         * modules/unistdio/u8-vasprintf: New file.
49650         * modules/unistdio/u8-vsnprintf: New file.
49651         * modules/unistdio/u8-vsprintf: New file.
49652         * modules/unistdio/u8-u8-asnprintf: New file.
49653         * modules/unistdio/u8-u8-asprintf: New file.
49654         * modules/unistdio/u8-u8-snprintf: New file.
49655         * modules/unistdio/u8-u8-sprintf: New file.
49656         * modules/unistdio/u8-u8-vasnprintf: New file.
49657         * modules/unistdio/u8-u8-vasprintf: New file.
49658         * modules/unistdio/u8-u8-vsnprintf: New file.
49659         * modules/unistdio/u8-u8-vsprintf: New file.
49660         * modules/unistdio/u16-asnprintf: New file.
49661         * modules/unistdio/u16-asprintf: New file.
49662         * modules/unistdio/u16-printf-parse: New file.
49663         * modules/unistdio/u16-snprintf: New file.
49664         * modules/unistdio/u16-sprintf: New file.
49665         * modules/unistdio/u16-vasnprintf: New file.
49666         * modules/unistdio/u16-vasprintf: New file.
49667         * modules/unistdio/u16-vsnprintf: New file.
49668         * modules/unistdio/u16-vsprintf: New file.
49669         * modules/unistdio/u16-u16-asnprintf: New file.
49670         * modules/unistdio/u16-u16-asprintf: New file.
49671         * modules/unistdio/u16-u16-snprintf: New file.
49672         * modules/unistdio/u16-u16-sprintf: New file.
49673         * modules/unistdio/u16-u16-vasnprintf: New file.
49674         * modules/unistdio/u16-u16-vasprintf: New file.
49675         * modules/unistdio/u16-u16-vsnprintf: New file.
49676         * modules/unistdio/u16-u16-vsprintf: New file.
49677         * modules/unistdio/u32-asnprintf: New file.
49678         * modules/unistdio/u32-asprintf: New file.
49679         * modules/unistdio/u32-printf-parse: New file.
49680         * modules/unistdio/u32-snprintf: New file.
49681         * modules/unistdio/u32-sprintf: New file.
49682         * modules/unistdio/u32-vasnprintf: New file.
49683         * modules/unistdio/u32-vasprintf: New file.
49684         * modules/unistdio/u32-vsnprintf: New file.
49685         * modules/unistdio/u32-vsprintf: New file.
49686         * modules/unistdio/u32-u32-asnprintf: New file.
49687         * modules/unistdio/u32-u32-asprintf: New file.
49688         * modules/unistdio/u32-u32-snprintf: New file.
49689         * modules/unistdio/u32-u32-sprintf: New file.
49690         * modules/unistdio/u32-u32-vasnprintf: New file.
49691         * modules/unistdio/u32-u32-vasprintf: New file.
49692         * modules/unistdio/u32-u32-vsnprintf: New file.
49693         * modules/unistdio/u32-u32-vsprintf: New file.
49694         * modules/unistdio/ulc-asnprintf-tests: New file.
49695         * modules/unistdio/ulc-vasnprintf-tests: New file.
49696         * modules/unistdio/ulc-vasprintf-tests: New file.
49697         * modules/unistdio/ulc-vsnprintf-tests: New file.
49698         * modules/unistdio/ulc-vsprintf-tests: New file.
49699         * modules/unistdio/u8-asnprintf-tests: New file.
49700         * modules/unistdio/u8-vasnprintf-tests: New file.
49701         * modules/unistdio/u8-vasprintf-tests: New file.
49702         * modules/unistdio/u8-vsnprintf-tests: New file.
49703         * modules/unistdio/u8-vsprintf-tests: New file.
49704         * modules/unistdio/u16-asnprintf-tests: New file.
49705         * modules/unistdio/u16-vasnprintf-tests: New file.
49706         * modules/unistdio/u16-vasprintf-tests: New file.
49707         * modules/unistdio/u16-vsnprintf-tests: New file.
49708         * modules/unistdio/u16-vsprintf-tests: New file.
49709         * modules/unistdio/u32-asnprintf-tests: New file.
49710         * modules/unistdio/u32-vasnprintf-tests: New file.
49711         * modules/unistdio/u32-vasprintf-tests: New file.
49712         * modules/unistdio/u32-vsnprintf-tests: New file.
49713         * modules/unistdio/u32-vsprintf-tests: New file.
49714         * MODULES.html.sh (Unicode string functions): Add the new modules.
49715
49716 2007-07-01  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/sprintf.c (sprintf): Limit the available length estimation,
49719         to avoid address wraparound.
49720         * lib/vsprintf.c (vsprintf): Likewise.
49721         * modules/sprintf-posix (Dependencies): Add stdint.
49722         * modules/vsprintf-posix (Dependencies): Likewise.
49723
49724 2007-07-01  Bruno Haible  <bruno@clisp.org>
49725
49726         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49727         Windows PATH as well. Conservative double-quoting. Comments.
49728
49729 2007-07-01  Bruno Haible  <bruno@clisp.org>
49730             Eric Blake  <ebb9@byu.net>
49731             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49732
49733         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49734         empty components in $PATH, denoting '.'.
49735
49736 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49737
49738         * gnulib-tool: Fix indentation.
49739         (func_create_megatestdir): Likewise.
49740         Report by Bruno Haible.
49741
49742 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49743
49744         Sync from Automake.
49745         * build-aux/gnupload: Fix shell portability issues with for loops.
49746         Report by Karl Berry.
49747
49748 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49749
49750         * build-aux/maint.mk (POURL): Use translationproject.org.
49751
49752 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49753             Bruno Haible  <bruno@clisp.org>
49754
49755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49756         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49757         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49758         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49759         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49760
49761 2007-06-27  Bruno Haible  <bruno@clisp.org>
49762
49763         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49764         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49765
49766 2007-06-26  Karl Berry  <karl@gnu.org>
49767
49768         * MODULES.html.sh: remove xreadlink-with-size.
49769
49770 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49771
49772         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49773         method that I hope also handles the double-include problem noted
49774         by Bruno Haible in
49775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49776
49777 2007-06-23  Bruno Haible  <bruno@clisp.org>
49778
49779         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49780         Don't let the 'mostlyclean' target fail if the last subdirectory could
49781         not be removed.
49782         Reported by Karl Berry.
49783
49784 2007-06-23  Bruno Haible  <bruno@clisp.org>
49785
49786         * gnulib-tool (echo): Add a speedier workaround for ksh.
49787         * tests/test-echo.sh: Likewise.
49788
49789 2007-06-23  Bruno Haible  <bruno@clisp.org>
49790
49791         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49792         * tests/test-echo.sh: Likewise.
49793
49794 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49795
49796         * gnulib-tool (IFS): Initialize early, so we don't set it to
49797         empty later.
49798         (self_abspathname): Rewrite algorithm to set it, reindent.
49799         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49800         (func_create_megatestdir): Merge some sed scripts.
49801
49802 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49803
49804         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49805         exposed by Sun Studio 11 cc on Solaris 8.
49806
49807 2007-06-22  Bruno Haible  <bruno@clisp.org>
49808
49809         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49810         backslashes.
49811         * tests/test-echo.sh: New file.
49812
49813 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49814
49815         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49816         simplify `sed_replace_build_aux' scripts, they are portable but
49817         echoing them with `echo' is not.
49818         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49819
49820 2007-06-21  Karl Berry  <karl@gnu.org>
49821
49822         * config/srclist.txt: guess we can't handle the licenses via
49823         srclist at the moment.
49824
49825 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49826
49827         * MODULES.html.sh: Add include_next.
49828         * modules/include_next: New file.
49829
49830 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49831
49832         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49833         INCLUDE_NEXT.
49834         (gl_CHECK_NEXT_HEADERS): New macro.
49835         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49836         the obsolescent gl_ABSOLUTE_HEADER.
49837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49838         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49839         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49840         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49841         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49842         * m4/math_h.m4 (gl_MATH_H): Likewise.
49843         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49844         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49845         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49846         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49847         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49848         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49849         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49851         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49852         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49853         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49854         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49855         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49856         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49857         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49858         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49859         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49860         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49861         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49862         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49863         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49864         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49865         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49866         * lib/float_.h: Likewise.
49867         * lib/inttypes_.h: Likewise.
49868         * lib/math_.h: Likewise.
49869         * lib/search_.h: Likewise.
49870         * lib/signal_.h: Likewise.
49871         * lib/stdint_.h: Likewise.
49872         * lib/stdio_.h: Likewise.
49873         * lib/stdlib_.h: Likewise.
49874         * lib/string_.h: Likewise.
49875         * lib/sys_stat_.h: Likewise.
49876         * lib/sys_time_.h: Likewise.
49877         * lib/time_.h: Likewise.
49878         * lib/unistd_.h: Likewise.
49879         * lib/wchar_.h: Likewise.
49880         * lib/wctype_.h: Likewise.
49881         * lib/dirent_.h: Likewise.
49882         * lib/iconv_.h: Likewise.
49883         * lib/locale_.h: Likewise.
49884         * lib/netinet_in_.h: Likewise.
49885         * lib/sys_select_.h: Likewise.
49886         * lib/sys_socket_.h: Likewise.
49887         * lib/sysexits_.h: Likewise.
49888         * modules/fcntl (Depends-on): Depend on include_next, not
49889         absolute_header.
49890         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49891         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49892         * modules/fchdir: Likewise.
49893         * modules/float: Likewise.
49894         * modules/iconv_open: Likewise.
49895         * modules/inttypes: Likewise.
49896         * modules/locale: Likewise.
49897         * modules/math: Likewise.
49898         * modules/netinet_in: Likewise.
49899         * modules/search: Likewise.
49900         * modules/signal: Likewise.
49901         * modules/stdint: Likewise.
49902         * modules/stdio: Likewise.
49903         * modules/stdlib: Likewise.
49904         * modules/string: Likewise.
49905         * modules/sys_select: Likewise.
49906         * modules/sys_socket: Likewise.
49907         * modules/sys_stat: Likewise.
49908         * modules/sys_time: Likewise.
49909         * modules/sysexits: Likewise.
49910         * modules/time: Likewise.
49911         * modules/unistd: Likewise.
49912         * modules/wchar: Likewise.
49913         * modules/wctype: Likewise.
49914         * modules/sys_stat: Change maintainer to "all".
49915         * modules/unistd: Likewise.
49916
49917 2007-06-20  Karl Berry  <karl@gnu.org>
49918
49919         * config/srclist.txt: track www changes in license files.
49920
49921 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49922
49923         * build-aux/bootstrap: Remove stray dot.
49924         Make sure build_aux settings are honored when linking
49925         gnulib_extra_files.
49926
49927 2007-06-19  Eric Blake  <ebb9@byu.net>
49928
49929         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49930         Allow compilation on cygwin.
49931
49932 2007-06-19  Jim Meyering  <jim@meyering.net>
49933
49934         xreadlink-with-size: Remove module.  No longer used.
49935         Ex-callers now use xreadlink or mreadlink-with-size.
49936         * modules/xreadlink-with-size: Remove module.
49937         * lib/xreadlink-with-size.c: Remove file.
49938         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49939         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49940         just before the function definition *is* accurate.
49941
49942         Eliminate one way canonicalize_filename_mode could exit.
49943         * lib/canonicalize.c (canonicalize_filename_mode):
49944         Use mreadlink_with_size, not xreadlink_with_size.
49945
49946 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49947
49948         Detect porting problems to FreeBSD/arm, which has time_t wider than
49949         long int.  Original problem reported for GNU diff by Xin Li in
49950         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49951         * modules/getdate (Depends-on): Add intprops, verify.
49952         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49953         is an integer type no wider than long int.
49954
49955 2007-06-18  Jim Meyering  <jim@meyering.net>
49956
49957         New module: mreadlink-with-size.
49958         * MODULES.html.sh: Add mreadlink-with-size.
49959         * modules/mreadlink-with-size: New module
49960         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49961         not xreadlink-with-size.
49962         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49963
49964 2007-06-16  Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49967         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49968         Reported by Gary V. Vaughan <gary@gnu.org>.
49969
49970 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49971
49972         Revamp lchown so that it lives in unistd.h where it belongs.
49973         * lib/lchown.h: Remove.
49974         * lib/dirchownmod.c: Don't include lib/lchown.h.
49975         * lib/fchownat.c: Likewise.
49976         * lib/openat.c: Likewise.
49977         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49978         does not follow symlinks.
49979         (EOPNOTSUPP): Define if not defined.
49980         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49981         is defined to 0.
49982         (lchown): New decl.
49983         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49984         Do not check for lchown decl.
49985         Set REPLACE_LCHOWN.
49986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49987         REPLACE_LCHOWN.
49988         * modules/chown: Make it clear it follows symlinks.
49989         * modules/lchown: Make it clear it doesn't follow symlinks.
49990         (Files): Remove lib/lchown.h
49991         (Depends-on): Add unistd.
49992         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49993         (Include): Include <unistd.h>, not "lchown.h".
49994         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49995         REPLACE_LCHOWN.
49996
49997 2007-06-15  Jim Meyering  <jim@meyering.net>
49998
49999         Change license (GPL to LGPL) of fsusage and dependents.
50000         * modules/fsusage (License): Change to LGPL.
50001         * modules/full-read (License): Likewise.
50002         * modules/full-write (License): Likewise.
50003         * modules/safe-read (License): Likewise.
50004         * modules/safe-write (License): Likewise.
50005
50006 2007-06-14  Ben Pfaff  <blp@gnu.org>
50007
50008         Missing part of allocsa -> malloca transition.
50009         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50010         gl_MALLOCA.
50011
50012 2007-06-12  Bruno Haible  <bruno@clisp.org>
50013
50014         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50015         to ia64, x86_64, i386.
50016         Reported by Eric Blake.
50017
50018 2007-06-12  Bruno Haible  <bruno@clisp.org>
50019
50020         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50021         cross-compiling to x86_64.
50022
50023 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50024
50025         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50026         glitch reported by Ralf Wildenhues in
50027         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50028
50029         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50030         Vin Shelton.
50031
50032 2007-06-11  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50035         replacement string.
50036         Reported by Eric Blake.
50037
50038 2007-06-10  Bruno Haible  <bruno@clisp.org>
50039
50040         Prepare vasnprintf code for use with Unicode strings.
50041         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50042         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50043         TYPE_U32_STRING.
50044         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50045         a_u32_string variants.
50046         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50047         * lib/printf-args.c: Don't include config.h and the specification
50048         header if PRINTF_FETCHARGS is already defined.
50049         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50050         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50051         TYPE_U16_STRING, TYPE_U32_STRING.
50052         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50053         u16_directive, u16_directives, u32_directive, u32_directives): New
50054         types.
50055         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50056         New declarations.
50057         * lib/printf-parse.c: Don't include config.h and the specification
50058         header if PRINTF_PARSE is already defined. Eliminate the set of
50059         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50060         them now. Include c-ctype.h.
50061         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50062         directive and CHAR_T_ONLY_ASCII.
50063         * lib/vasnprintf.c: Don't include config.h and the specification header
50064         if VASNPRINTF is already defined.
50065         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50066         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50067         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50068         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50069         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50070         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50071         code accordingly.
50072         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50073         pad_ourselves also in this case, with the 'c' and 's' directives, and
50074         with a different notion of "width".
50075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50076
50077 2007-06-10  Bruno Haible  <bruno@clisp.org>
50078
50079         * modules/unistr/u32-mbsnlen: New file.
50080         * lib/unistr/u32-mbsnlen.c: New file.
50081
50082         * modules/unistr/u16-mbsnlen: New file.
50083         * lib/unistr/u16-mbsnlen.c: New file.
50084
50085         * modules/unistr/u8-mbsnlen: New file.
50086         * lib/unistr/u8-mbsnlen.c: New file.
50087
50088         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50089         declarations.
50090
50091 2007-06-10  Bruno Haible  <bruno@clisp.org>
50092
50093         * lib/string_.h (mbsnlen): New declaration.
50094         * lib/mbsnlen.c: New file.
50095         * m4/mbsnlen.m4: New file.
50096         * modules/mbsnlen: New file.
50097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50098         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50099         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50100
50101 2007-06-10  Bruno Haible  <bruno@clisp.org>
50102
50103         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50104
50105 2007-06-10  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50108         * lib/mbuiter.h: Likewise.
50109
50110 2007-06-10  Bruno Haible  <bruno@clisp.org>
50111
50112         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50113         declaration.
50114
50115 2007-06-10  Karl Berry  <karl@gnu.org>
50116
50117         * config/srclist.txt: remove gettext entries, Bruno prefers
50118         to update individually.
50119
50120 2007-06-10  Bruno Haible  <bruno@clisp.org>
50121
50122         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50123         'maxlen'. Ensure only length + width bytes are allocated, not
50124         length + 1 + width.
50125
50126 2007-06-09  Bruno Haible  <bruno@clisp.org>
50127
50128         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50129         (CHAR_T): Remove macro.
50130         (VASNPRINTF): Update.
50131
50132 2007-06-09  Bruno Haible  <bruno@clisp.org>
50133
50134         * MODULES.html.sh (Unicode string functions): Add the new modules.
50135
50136         * modules/uniconv/u32-conv-to-enc: New file.
50137         * lib/uniconv/u32-conv-to-enc.c: New file.
50138         * modules/uniconv/u32-conv-to-enc-tests: New file.
50139         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50140
50141         * modules/uniconv/u16-conv-to-enc: New file.
50142         * lib/uniconv/u16-conv-to-enc.c: New file.
50143         * lib/uniconv/u-conv-to-enc.h: New file.
50144         * modules/uniconv/u16-conv-to-enc-tests: New file.
50145         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50146
50147         * modules/uniconv/u8-conv-to-enc: New file.
50148         * lib/uniconv/u8-conv-to-enc.c: New file.
50149         * modules/uniconv/u8-conv-to-enc-tests: New file.
50150         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50151
50152         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50153         u32_conv_to_encoding): New declarations.
50154
50155 2007-06-09  Bruno Haible  <bruno@clisp.org>
50156
50157         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50158
50159 2007-06-09  Bruno Haible  <bruno@clisp.org>
50160
50161         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50162         * modules/malloca: Renamed from modules/allocsa, updated.
50163         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50164         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50165         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50166         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50167         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50168         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50169         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50170         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50171         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50172         * modules/c-strcasestr (Depends-on): Update.
50173         * lib/c-strcasestr.c: Update.
50174         * modules/c-strstr (Depends-on): Update.
50175         * lib/c-strstr.c: Update.
50176         * modules/canonicalize-lgpl (Depends-on): Update.
50177         * lib/canonicalize-lgpl.c: Update.
50178         * modules/clean-temp (Depends-on): Update.
50179         * lib/clean-temp.c: Update.
50180         * modules/csharpcomp (Depends-on): Update.
50181         * lib/csharpcomp.c: Update.
50182         * modules/csharpexec (Depends-on): Update.
50183         * lib/csharpexec.c: Update.
50184         * modules/javacomp (Depends-on): Update.
50185         * lib/javacomp.c: Update.
50186         * modules/javaexec (Depends-on): Update.
50187         * lib/javaexec.c: Update.
50188         * modules/mbscasestr (Depends-on): Update.
50189         * lib/mbscasestr.c: Update.
50190         * modules/mbsstr (Depends-on): Update.
50191         * lib/mbsstr.c: Update.
50192         * modules/setenv (Depends-on): Update.
50193         * lib/setenv.c: Update.
50194         * modules/strcasestr (Depends-on): Update.
50195         * lib/strcasestr.c: Update.
50196         * modules/striconveha (Depends-on): Update.
50197         * lib/striconveha.c: Update.
50198         * modules/relocatable-prog-wrapper (Files): Update.
50199         * lib/relocwrapper.c: Update.
50200         * build-aux/install-reloc: Update.
50201         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50202
50203 2007-06-08  Bruno Haible  <bruno@clisp.org>
50204
50205         Port to uClibc.
50206         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50207         * lib/fpurge.c (fpurge): Likewise.
50208         * lib/freading.c (freading): Likewise.
50209         * lib/fseeko.c (rpl_fseeko): Likewise.
50210         * lib/fseterr.c (fseterr): Likewise.
50211         * lib/fwriting.c (fwriting): Likewise.
50212         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50213
50214 2007-06-08  Bruno Haible  <bruno@clisp.org>
50215
50216         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50217         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50218         * modules/gettext (Files): Add m4/intlmacosx.m4.
50219
50220 2007-06-07  Bruno Haible  <bruno@clisp.org>
50221
50222         * modules/localename-tests: New file.
50223         * tests/test-localename.c: New file.
50224
50225         New module 'localename'.
50226         * lib/localename.h: New file.
50227         * lib/localename.c: New file, from GNU gettext.
50228         * m4/localename.m4: New file.
50229         * modules/localename: New file.
50230
50231 2007-06-07  Bruno Haible  <bruno@clisp.org>
50232
50233         Work around the lack of <wchar.h> on some builds of uClibc.
50234         * doc/headers/wchar.texi: Update.
50235         * lib/wchar_.h: Include <wchar.h> only if it exists.
50236         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50237         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50238         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50239         doesn't exist.
50240         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50241         * modules/mbfile (Depends-on): Add wchar.
50242         * modules/mbiter (Depends-on): Likewise.
50243         * modules/mbuiter (Depends-on): Likewise.
50244         Reported by Simon Josefsson.
50245
50246 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50247
50248         Work around problem reported by Steven M. Schweda in
50249         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50250         Tru64 5.1B with the Compaq compiler environment installed declares
50251         an 'isblank' function but does not define it in the C library.
50252         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50253         * lib/regex_internal.h (isblank): Likewise.
50254         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50255         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50256
50257 2007-06-05  Bruno Haible  <bruno@clisp.org>
50258
50259         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50260         ia64.
50261         * modules/printf-safe: New file.
50262         * modules/fprintf-posix (Depends-on): Add printf-safe.
50263         * modules/printf-posix (Depends-on): Likewise.
50264         * modules/snprintf-posix (Depends-on): Likewise.
50265         * modules/sprintf-posix (Depends-on): Likewise.
50266         * modules/vasnprintf-posix (Depends-on): Likewise.
50267         * modules/vasprintf-posix (Depends-on): Likewise.
50268         * modules/vfprintf-posix (Depends-on): Likewise.
50269         * modules/vprintf-posix (Depends-on): Likewise.
50270         * modules/vsnprintf-posix (Depends-on): Likewise.
50271         * modules/vsprintf-posix (Depends-on): Likewise.
50272         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50273         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50274         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50275         "no" on i386, x86_64, ia64.
50276         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50277         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50278         on i386, x86_64, ia64.
50279         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50280         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50281         on i386, x86_64, ia64.
50282         * tests/test-vasnprintf-posix.c: Include float.h.
50283         (LDBL80_WORDS): New macro.
50284         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50285         on i386, x86_64, ia64.
50286         * tests/test-vasprintf-posix.c: Include float.h.
50287         (LDBL80_WORDS): New macro.
50288         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50289         on i386, x86_64, ia64.
50290         * tests/test-snprintf-posix.c: Include float.h.
50291         * tests/test-sprintf-posix.c: Likewise.
50292         * tests/test-vsnprintf-posix.c: Likewise.
50293         * tests/test-vsprintf-posix.c: Likewise.
50294
50295 2007-06-05  Bruno Haible  <bruno@clisp.org>
50296
50297         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50298         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50299         non-IEEE numbers on i386, x86_64, ia64.
50300         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50301         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50302         * tests/test-isnanl.h: Include float.h.
50303         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50304
50305 2007-06-05  Bruno Haible  <bruno@clisp.org>
50306
50307         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50308         also the %a / %A. Handle the %a / %A code before this extra handling.
50309
50310 2007-06-05  Bruno Haible  <bruno@clisp.org>
50311
50312         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50313         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50314
50315 2007-06-05  Bruno Haible  <bruno@clisp.org>
50316
50317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50318         typo in variable name.
50319
50320 2007-06-05  Eric Blake  <ebb9@byu.net>
50321
50322         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50323         Reported by Simon Josefsson.
50324
50325 2007-06-04  Bruno Haible  <bruno@clisp.org>
50326
50327         Avoid test failures on some PowerPC platforms.
50328         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50329         Define differently for PowerPC.
50330         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50331         Reported by Gary V. Vaughan <gary@gnu.org>.
50332
50333 2007-06-02  Bruno Haible  <bruno@clisp.org>
50334
50335         Fix test-stdint failure on FreeBSD/ia64.
50336         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50337         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50338         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50339         * doc/headers/stdint.texi: Update.
50340
50341 2007-06-01  Bruno Haible  <bruno@clisp.org>
50342
50343         * tests/test-binary-io.c (main): Pass a third argument to open().
50344         Reported by Gary V. Vaughan <gary@gnu.org>.
50345
50346 2007-06-01  Bruno Haible  <bruno@clisp.org>
50347
50348         * doc/functions/frexpl.texi: Update for mingw.
50349
50350 2007-06-01  Bruno Haible  <bruno@clisp.org>
50351
50352         * tests/test-lseek.c (main): Disable test of errno for invalid third
50353         argument.
50354         * doc/functions/lseek.texi: Update.
50355         Reported by Gary V. Vaughan <gary@gnu.org>.
50356
50357 2007-05-28  Bruno Haible  <bruno@clisp.org>
50358
50359         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50360
50361 2007-05-31  Eric Blake  <ebb9@byu.net>
50362
50363         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50364         cross compiling.
50365
50366 2007-05-30  Eric Blake  <ebb9@byu.net>
50367         and Bruno Haible  <bruno@clisp.org>
50368
50369         Work around mingw test failures exposed by m4-1.4.9b.
50370         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50371         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50372         moment.
50373
50374 2007-05-30  Bruno Haible  <bruno@clisp.org>
50375
50376         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50377         assuming that they are closed. Needed on HP-UX 11.
50378
50379 2007-05-29  Bruno Haible  <bruno@clisp.org>
50380
50381         Fix a problem with #include_next.
50382         * lib/dirent_.h: Split the double-inclusion guard.
50383         * lib/fcntl_.h: Likewise.
50384         * lib/float_.h: Likewise.
50385         * lib/iconv_.h: Likewise.
50386         * lib/inttypes_.h: Likewise.
50387         * lib/locale_.h: Likewise.
50388         * lib/math_.h: Likewise.
50389         * lib/netinet_in_.h: Likewise.
50390         * lib/search_.h: Likewise.
50391         * lib/signal_.h: Likewise.
50392         * lib/stdint_.h: Likewise.
50393         * lib/stdio_.h: Likewise.
50394         * lib/stdlib_.h: Likewise.
50395         * lib/string_.h: Likewise.
50396         * lib/sys_select_.h: Likewise.
50397         * lib/sys_socket_.h: Likewise.
50398         * lib/sys_stat_.h: Likewise.
50399         * lib/sys_time_.h: Likewise.
50400         * lib/sysexits_.h: Likewise.
50401         * lib/time_.h: Likewise.
50402         * lib/unistd_.h: Likewise.
50403         * lib/wchar_.h: Likewise.
50404         * lib/wctype_.h: Likewise.
50405
50406 2007-05-29  Bruno Haible  <bruno@clisp.org>
50407
50408         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50409         for the moment.
50410
50411 2007-05-29  Bruno Haible  <bruno@clisp.org>
50412
50413         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50414         invocation.
50415         Reported by Eric Blake.
50416
50417 2007-05-29  Bruno Haible  <bruno@clisp.org>
50418
50419         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50420         compiling case.
50421
50422 2007-05-29  Eric Blake  <ebb9@byu.net>
50423             Bruno Haible  <bruno@clisp.org>
50424
50425         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50426         cross compiles.
50427
50428 2007-05-28  Eric Blake  <ebb9@byu.net>
50429
50430         * modules/closein-tests (test_closein_LDADD): Support test on
50431         cygwin with libtool.
50432
50433 2007-05-28  Bruno Haible  <bruno@clisp.org>
50434
50435         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50436         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50437         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50438         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50439         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50440         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50441         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50442         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50443         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50444
50445 2007-05-28  Eric Blake  <ebb9@byu.net>
50446
50447         Unconditionally include <config.h> in unit tests.
50448         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50449         * tests/test-allocsa.c, tests/test-arcfour.c,
50450         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50451         tests/test-array_list.c, tests/test-array_oset.c,
50452         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50453         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50454         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50455         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50456         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50457         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50458         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50459         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50460         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50461         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50462         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50463         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50464         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50465         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50466         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50467         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50468         test-md5.c, test-memmem.c, test-printf-posix.c,
50469         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50470         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50471         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50472         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50473         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50474         test-vasnprintf-posix2.c, test-vasnprintf.c,
50475         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50476         test-vfprintf-posix.c, test-vprintf-posix.c,
50477         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50478         test-xvasprintf.c: Likewise.
50479
50480 2007-05-28  Bruno Haible  <bruno@clisp.org>
50481
50482         * gnulib-tool (func_import): Remember the --with-tests command-line
50483         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50484         Reported by Eric Blake.
50485
50486 2007-05-28  Bruno Haible  <bruno@clisp.org>
50487
50488         * modules/ftell-tests: New file.
50489         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50490         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50491
50492         * lib/ftell.c: New file.
50493         * modules/ftell: New file.
50494         * m4/ftell.m4: New file.
50495         * doc/functions/ftell.texi: Update.
50496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50497         REPLACE_FTELL.
50498         * lib/stdio_.h (rpl_ftell): New declaration.
50499         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50500         REPLACE_FTELL.
50501
50502 2007-05-28  Eric Blake  <ebb9@byu.net>
50503
50504         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50505
50506 2007-05-28  Bruno Haible  <bruno@clisp.org>
50507
50508         * modules/fseek-tests: New file.
50509         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50510         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50511
50512         * lib/fseek.c: New file.
50513         * modules/fseek: New file.
50514         * m4/fseek.m4: New file.
50515         * doc/functions/fseek.texi: Update.
50516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50517         REPLACE_FSEEK.
50518         * lib/stdio_.h (rpl_fseek): New declaration.
50519         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50520         REPLACE_FSEEK.
50521
50522 2007-05-28  Bruno Haible  <bruno@clisp.org>
50523
50524         * lib/stdio_.h (fflush): More comments.
50525
50526 2007-05-28  Bruno Haible  <bruno@clisp.org>
50527
50528         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50529         runtime test.
50530
50531 2007-05-28  Eric Blake  <ebb9@byu.net>
50532
50533         Improve lseek module.
50534         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50535         * lib/unistd_.h (lseek): Scale back link warning message.
50536         * tests/test-lseek.c: Beef up test.
50537         * tests/test-lseek.sh: Exercise more facets of lseek.
50538         Reported by Bruno Haible.
50539
50540 2007-05-28  Bruno Haible  <bruno@clisp.org>
50541
50542         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50543         to define.
50544
50545 2007-05-27  Bruno Haible  <bruno@clisp.org>
50546
50547         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50548
50549 2007-05-27  Bruno Haible  <bruno@clisp.org>
50550
50551         * modules/openmp: New file.
50552         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50553         Noah Misch.
50554
50555 2007-05-26  Bruno Haible  <bruno@clisp.org>
50556
50557         * modules/chdir-long (Depends-on): Add fchdir.
50558         * modules/chdir-safer (Depends-on): Likewise.
50559         * modules/fts (Depends-on): Likewise.
50560         * modules/fts-lgpl (Depends-on): Likewise.
50561         * modules/openat (Depends-on): Likewise.
50562         * modules/savewd (Depends-on): Likewise.
50563
50564 2007-05-24  Eric Blake  <ebb9@byu.net>
50565
50566         Fix lseek on mingw.
50567         * modules/lseek: New module.
50568         * m4/lseek.m4: New file.
50569         * lib/lseek.c: New file.
50570         * modules/lseek-tests: New file.
50571         * tests/test-lseek.c: New file.
50572         * tests/test-lseek.sh: New file.
50573         * MODULES.html.sh: Document lseek module.
50574         * modules/fflush (Depends-on): Add lseek, fseeko.
50575         * modules/fseeko (Depends-on): Likewise.
50576         * modules/ftello (Depends-on): Likewise.
50577         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50578         broken.
50579         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50580         broken.
50581         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50582         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50583         * lib/ftello.c (rpl_ftello): Likewise.
50584         * tests/test-fseeko.c (main): Test this.
50585         * tests/test-fseeko.sh: Likewise.
50586         * tests/test-ftello.c (main): Likewise.
50587         * tests/test-ftello.sh: Likewise.
50588         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50589         implies replacing fseek.
50590         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50591         HAVE_FTELLO.
50592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50593         * modules/unistd (Makefile.am): Likewise.
50594         * lib/unistd_.h (lseek): Declare a replacement.
50595         * doc/functions/lseek.texi (lseek): Document this fix.
50596         * doc/functions/fseek.texi (fseek): Likewise.
50597         * doc/functions/ftell.texi (ftell): Likewise.
50598
50599 2007-05-24  Bruno Haible  <bruno@clisp.org>
50600
50601         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50602         in the printed representation of a NaN.
50603         * tests/test-vasprintf-posix.c (test_function): Likewise.
50604         * tests/test-snprintf-posix.h (test_function): Likewise.
50605         * tests/test-sprintf-posix.h (test_function): Likewise.
50606         Reported by Eric Blake.
50607
50608 2007-05-23  Eric Blake  <ebb9@byu.net>
50609
50610         Fix fseeko/ftello on cygwin 1.5.24.
50611         * doc/functions/fseeko.texi (fseeko): Document the fix.
50612         * doc/functions/ftello.texi (ftello): Document the fix.
50613         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50614         * doc/functions/stdout.text (stdout): New file.
50615         * doc/functions/stderr.text (stderr): New file.
50616         * doc/gnulib.texi (Function Substitutes): Use new files.
50617         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50618         prior to 1.7.0.
50619         * tests/test-ftello.c (main): Likewise for ftello.
50620         * tests/test-fseeko.sh: New file.
50621         * tests/test-ftello.sh: New file.
50622         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50623         with seekable stdin.
50624         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50625         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50626         (gl_REPLACE_FSEEKO): New macro.
50627         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50628         * modules/fseeko (Files): Distribute fseeko.c.
50629         * modules/ftello (Files): Distribute ftello.c.
50630         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50631         mode.
50632         * lib/ftello.c (rpl_ftello): New file.
50633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50634         fseeko, ftello.
50635         (gl_STDIN_LARGE_OFFSET): New macro.
50636         * modules/stdio (Makefile.am): Perform the replacement.
50637         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50638
50639 2007-05-23  Bruno Haible  <bruno@clisp.org>
50640
50641         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50642         GNULIB_POSIXCHECK is defined.
50643
50644 2007-05-21  Bruno Haible  <bruno@clisp.org>
50645
50646         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50647         Check also the output for NaN arguments. When cross-compiling, guess
50648         no on IRIX.
50649         * lib/vasnprintf.c: Update comments.
50650         * tests/test-vasnprintf-posix.c (strisnan): New function.
50651         (test_function): Use it.
50652         * tests/test-vasprintf-posix.c (strisnan): New function.
50653         (test_function): Use it.
50654         * tests/test-snprintf-posix.h (strisnan): New function.
50655         (test_function): Use it.
50656         * tests/test-sprintf-posix.h (strisnan): New function.
50657         (test_function): Use it.
50658         Reported by Eric Blake.
50659
50660 2007-05-20  Bruno Haible  <bruno@clisp.org>
50661
50662         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50663         numbers that fails on BeOS.
50664         * doc/functions/frexpl.texi: Update.
50665
50666 2007-05-20  Jim Meyering  <jim@meyering.net>
50667
50668         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50669         forced upon us by glibc-2.6.
50670
50671 2007-05-20  Bruno Haible  <bruno@clisp.org>
50672
50673         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50674         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50675         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50676         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50677         NEED_PRINTF_INFINITE.
50678         (is_infinitel): New function.
50679         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50681         gl_PREREQ_VASNPRINTF_INFINITE.
50682         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50683         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50684         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50685         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50686         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50687         gl_PREREQ_VASNPRINTF_INFINITE.
50688         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50689         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50690         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50691         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50693         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50694         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50695         * doc/functions/fprintf.texi: Update.
50696         * doc/functions/printf.texi: Update.
50697         * doc/functions/snprintf.texi: Update.
50698         * doc/functions/sprintf.texi: Update.
50699         * doc/functions/vfprintf.texi: Update.
50700         * doc/functions/vprintf.texi: Update.
50701         * doc/functions/vsnprintf.texi: Update.
50702         * doc/functions/vsprintf.texi: Update.
50703
50704 2007-05-20  Bruno Haible  <bruno@clisp.org>
50705
50706         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50707         was not found in libc.
50708         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50709
50710 2007-05-20  Bruno Haible  <bruno@clisp.org>
50711
50712         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50713         printed as "-nan" instead of "nan".
50714         * tests/test-vasprintf-posix.c (test_function): Likewise.
50715         * tests/test-snprintf-posix.h (test_function): Likewise.
50716         * tests/test-sprintf-posix.h (test_function): Likewise.
50717         Needed for HP-UX 11.
50718
50719 2007-05-20  Jim Meyering  <jim@meyering.net>
50720
50721         Fix buggy test for the fchownat-deref bug.
50722         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50723         symlink required for the run-test.  Without it, this test would
50724         always declare that fchownat doesn't work, and client code would
50725         unnecessarily use the replacement function with fixed libc.
50726         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50727         Reported by Greg Schafer.
50728
50729 2007-05-19  Bruno Haible  <bruno@clisp.org>
50730
50731         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50732         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50733         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50734         Needed for IRIX 6.5 and Solaris 2.5.1.
50735
50736 2007-05-19  Bruno Haible  <bruno@clisp.org>
50737
50738         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50739         (test_function): Skip tests involving -0.0 on platforms where
50740         -0.0 = 0.0.
50741         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50742         (test_function): Skip tests involving -0.0 on platforms where
50743         -0.0 = 0.0.
50744         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50745         (test_function): Skip tests involving -0.0 on platforms where
50746         -0.0 = 0.0.
50747         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50748         (test_function): Skip tests involving -0.0 on platforms where
50749         -0.0 = 0.0.
50750         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50751         tests.
50752         * tests/test-printf-posix.h (test_function): Likewise.
50753         * tests/test-printf-posix.output: Remove all -0.0 related results.
50754         Needed for IRIX 6.5.
50755
50756 2007-05-19  Bruno Haible  <bruno@clisp.org>
50757
50758         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50759         printed as "nan0x7fffffff" instead of "nan".
50760         * tests/test-vasprintf-posix.c (test_function): Likewise.
50761         * tests/test-snprintf-posix.h (test_function): Likewise.
50762         * tests/test-sprintf-posix.h (test_function): Likewise.
50763         * tests/test-fprintf-posix.h (NaN): Remove macro.
50764         (test_function): Remove all NaN related tests.
50765         * tests/test-printf-posix.h (NaN): Remove macro.
50766         (test_function): Remove all NaN related tests.
50767         * tests/test-printf-posix.output: Remove all NaN related results.
50768         Needed for IRIX 6.5.
50769
50770 2007-05-19  Bruno Haible  <bruno@clisp.org>
50771
50772         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50773         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50774
50775 2007-05-19  Bruno Haible  <bruno@clisp.org>
50776
50777         * lib/float_.h: New file.
50778         * m4/float_h.m4: New file.
50779         * modules/float: New file.
50780         * modules/isnanl (Dependencies): Add float.
50781         * modules/isnanl-nolibm (Dependencies): Likewise.
50782         * modules/mathl (Dependencies): Likewise.
50783         * modules/printf-frexpl (Dependencies): Likewise.
50784         * modules/signbit (Dependencies): Likewise.
50785         * modules/vasnprintf (Dependencies): Likewise.
50786         * doc/headers/float.texi: Update.
50787
50788 2007-05-19  Jim Meyering  <jim@meyering.net>
50789
50790         * lib/utimens.c (gl_futimens): Rename from futimens,
50791         now that glibc-2.6 declares futimens.
50792         * lib/utimens.h: Likewise.
50793
50794 2007-05-19  Bruno Haible  <bruno@clisp.org>
50795
50796         Avoid test failures on mingw.
50797         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50798         * tests/test-printf-posix.sh: Likewise.
50799         * tests/test-vfprintf-posix.sh: Likewise.
50800         * tests/test-vprintf-posix.sh: Likewise.
50801
50802 2007-05-19  Bruno Haible  <bruno@clisp.org>
50803
50804         Fix *printf result for NaN, Inf, -0.0 on mingw.
50805         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50806         * lib/vasnprintf.c: Include math.h and isnan.h.
50807         (is_infinite_or_zero): New function.
50808         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50809         values in the %f, %F, %e, %E, %g, %G directives.
50810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50812         gl_PRINTF_INFINITE and test its result. Invoke
50813         gl_PREREQ_VASNPRINTF_INFINITE.
50814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50815         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50816         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50817         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50820         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50821         * doc/functions/fprintf.texi: Update.
50822         * doc/functions/printf.texi: Update.
50823         * doc/functions/snprintf.texi: Update.
50824         * doc/functions/sprintf.texi: Update.
50825         * doc/functions/vfprintf.texi: Update.
50826         * doc/functions/vprintf.texi: Update.
50827         * doc/functions/vsnprintf.texi: Update.
50828         * doc/functions/vsprintf.texi: Update.
50829
50830 2007-05-19  Bruno Haible  <bruno@clisp.org>
50831
50832         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50833         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50834         Instead of multiplying with 10^k, set extra_zeroes to k.
50835         (scale10_round_long_double): Remove function.
50836
50837 2007-05-18  Bruno Haible  <bruno@clisp.org>
50838
50839         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50840         introduced on 2007-05-06.
50841
50842 2007-05-18  Bruno Haible  <bruno@clisp.org>
50843
50844         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50845         %g directives.
50846         * tests/test-vasprintf-posix.c (test_function): Likewise.
50847         * tests/test-snprintf-posix.h (test_function): Likewise.
50848         * tests/test-sprintf-posix.h (test_function): Likewise.
50849
50850 2007-05-18  Bruno Haible  <bruno@clisp.org>
50851
50852         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50853         (strmatch): New function.
50854         (test_function): Test the %f directive on numbers of various exponents.
50855         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50856         (strmatch): New function.
50857         (test_function): Test the %f directive on numbers of various exponents.
50858         * tests/test-snprintf-posix.h (strmatch): New function.
50859         (test_function): Test the %f directive on numbers of various exponents.
50860         * tests/test-sprintf-posix.h (strmatch): New function.
50861         (test_function): Test the %f directive on numbers of various exponents.
50862         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50863         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50864         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50865         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50866
50867 2007-05-18  Bruno Haible  <bruno@clisp.org>
50868
50869         Add support for 'long double' number output.
50870         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50871         * lib/vasnprintf.c: Include math.h and float+.h.
50872         (mp_limb_t): New type.
50873         (GMP_LIMB_BITS): New macro.
50874         (mp_twolimb_t): New type.
50875         (GMP_TWOLIMB_BITS): New macro.
50876         (mpn_t): New type.
50877         (multiply, divide, convert_to_decimal, decode_long_double,
50878         scale10_round_long_double, scale10_round_decimal_long_double,
50879         floorlog10l): New functions.
50880         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50881         for the %f, %F, %e, %E, %g, %G directives.
50882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50883         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50884         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50885         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50893         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50894         * modules/snprintf-posix (Depends-on): Likewise.
50895         * modules/sprintf-posix (Depends-on): Likewise.
50896         * modules/vasnprintf-posix (Depends-on): Likewise.
50897         * modules/vasprintf-posix (Depends-on): Likewise.
50898         * modules/vfprintf-posix (Depends-on): Likewise.
50899         * modules/vsnprintf-posix (Depends-on): Likewise.
50900         * modules/vsprintf-posix (Depends-on): Likewise.
50901         * modules/vasnprintf (Files): Add lib/float+.h.
50902         * doc/functions/fprintf.texi: Update.
50903         * doc/functions/printf.texi: Update.
50904         * doc/functions/snprintf.texi: Update.
50905         * doc/functions/sprintf.texi: Update.
50906         * doc/functions/vfprintf.texi: Update.
50907         * doc/functions/vprintf.texi: Update.
50908         * doc/functions/vsnprintf.texi: Update.
50909         * doc/functions/vsprintf.texi: Update.
50910
50911 2007-05-18  Bruno Haible  <bruno@clisp.org>
50912
50913         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50914
50915 2007-05-18  Bruno Haible  <bruno@clisp.org>
50916
50917         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50918         for printing 64-bit integers. Needed for mingw.
50919
50920 2007-05-18  Bruno Haible  <bruno@clisp.org>
50921
50922         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50923         gl_FUNC_FREXPL_WORKS.
50924         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50925
50926 2007-05-18  Bruno Haible  <bruno@clisp.org>
50927
50928         * modules/frexpl-nolibm-tests: New file.
50929
50930         * modules/frexpl-nolibm: New file.
50931         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50932
50933 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50934
50935         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50936         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50937         GCC 4.2, which otherwise issues a lot of warnings.
50938         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50939         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50940         Likewise.
50941         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50942         * modules/iconv_open (iconv.h): Likewise.
50943         * modules/locale (locale.h): Likewise.
50944         * modules/netinet_in (netinet/in.h): Likewise.
50945         * modules/sys_select (sys_select.h): Likewise.
50946         * modules/sys_socket (sys/socket.h): Likewise.
50947         * modules/sys_stat (sys/stat.h): Likewise.
50948         * modules/sysexits (sysexits.h): Likewise.
50949         * modules/unistd (unistd.h): Likewise.
50950
50951 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50952
50953         * modules/closein-tests (Makefile.am): Distribute
50954         `test-closein.sh'.
50955
50956 2007-05-17  Bruno Haible  <bruno@clisp.org>
50957
50958         * tests/test-printf-posix.output: Renamed from
50959         tests/test-fprintf-posix.out.
50960         * modules/fprintf-posix-tests: Update.
50961         * modules/printf-posix-tests: Update.
50962         * modules/vfprintf-posix-tests: Update.
50963         * modules/vprintf-posix-tests: Update.
50964         * tests/test-fprintf-posix.sh: Update.
50965         * tests/test-printf-posix.sh: Update.
50966         * tests/test-vfprintf-posix.sh: Update.
50967         * tests/test-vprintf-posix.sh: Update.
50968         Reported by Ralf Wildenhues.
50969
50970 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50971
50972         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50973         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50974         GCC 4.2, which otherwise issues a lot of warnings.
50975         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50976         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50977         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50978         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50979         it should no longer be needed.
50980         * lib/string_.h: Likewise.
50981         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50982         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50983         * modules/inttypes (inttypes.h): Likewise.
50984         * modules/math (math.h): Likewise.
50985         * modules/search (search.h): Likewise.
50986         * modules/signal (signal.h): Likewise.
50987         * modules/stdint (stdint.h): Likewise.
50988         * modules/stdio (stdio.h): Likewise.
50989         * modules/stdlib (stdlib.h): Likewise.
50990         * modules/string (string.h): Likewise.
50991         * modules/sys_time (sys/time.h): Likewise.
50992         * modules/time (time.h): Likewise.
50993         * modules/wchar (wchar.h): Likewise.
50994         * modules/wctype (wtype.h): Likewise.
50995
50996 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50997
50998         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50999
51000 2007-05-13  Bruno Haible  <bruno@clisp.org>
51001
51002         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51003         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51004         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51005         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51006         (gl_PREREQ_STRTOK_R): Don't require it here.
51007
51008 2007-05-13  Bruno Haible  <bruno@clisp.org>
51009
51010         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51011         when used in C++ mode.
51012
51013 2007-05-12  Bruno Haible  <bruno@clisp.org>
51014
51015         * lib/linebuffer.h: Tweak doc.
51016         * lib/linebuffer.c: Likewise.
51017
51018 2007-05-12  James Youngman  <jay@gnu.org>
51019
51020         * lib/linebuffer.c (readlinebuffer_delim): New function,
51021         like readlinebuffer, but use a caller-specified delimiter.
51022         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51023         as the delimiter.
51024         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51025
51026 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51027
51028         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51029         * modules/openat (Files): Remove openat-die.c.
51030         (Depends-on): Add openat-die.
51031         * modules/openat-die: New module.
51032
51033 2007-05-06  Bruno Haible  <bruno@clisp.org>
51034
51035         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51036         Update with info about Cygwin.
51037         * doc/functions/fprintf.texi: Update.
51038         * doc/functions/printf.texi: Update.
51039         * doc/functions/snprintf.texi: Update.
51040         * doc/functions/sprintf.texi: Update.
51041         * doc/functions/vfprintf.texi: Update.
51042         * doc/functions/vprintf.texi: Update.
51043         * doc/functions/vsnprintf.texi: Update.
51044         * doc/functions/vsprintf.texi: Update.
51045         Reported by Eric Blake.
51046
51047 2007-05-06  Bruno Haible  <bruno@clisp.org>
51048
51049         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51050         padding ourselves for the floating-point directives.
51051         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51052         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51054         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51055         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51056         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51057         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51059         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51060         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51061         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51062         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51063         * tests/test-snprintf-posix.h (test_function): Also check the width
51064         and some flags in the %f directive.
51065         * tests/test-sprintf-posix.h (test_function): Likewise.
51066         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51067         * tests/test-vasprintf-posix.c (test_function): Likewise.
51068         * doc/functions/fprintf.texi: Update.
51069         * doc/functions/printf.texi: Update.
51070         * doc/functions/snprintf.texi: Update.
51071         * doc/functions/sprintf.texi: Update.
51072         * doc/functions/vfprintf.texi: Update.
51073         * doc/functions/vprintf.texi: Update.
51074         * doc/functions/vsnprintf.texi: Update.
51075         * doc/functions/vsprintf.texi: Update.
51076
51077 2007-05-06  Bruno Haible  <bruno@clisp.org>
51078
51079         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51080         pass the ' flag character to sprintf or snprintf.
51081         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51082         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51083         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51084         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51085         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51086         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51088         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51090         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51092         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51093         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51094         flag.
51095         * tests/test-sprintf-posix.h (test_function): Likewise.
51096         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51097         * tests/test-vasprintf-posix.c (test_function): Likewise.
51098         * doc/functions/fprintf.texi: Update.
51099         * doc/functions/printf.texi: Update.
51100         * doc/functions/snprintf.texi: Update.
51101         * doc/functions/sprintf.texi: Update.
51102         * doc/functions/vfprintf.texi: Update.
51103         * doc/functions/vprintf.texi: Update.
51104         * doc/functions/vsnprintf.texi: Update.
51105         * doc/functions/vsprintf.texi: Update.
51106
51107 2007-05-01  Bruno Haible  <bruno@clisp.org>
51108
51109         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51110
51111 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51112
51113         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51114         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51115
51116 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51117
51118         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51119         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51121
51122 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51123
51124         * lib/argp-help.c (struct hol_entry): New member `ord'.
51125         (HOL_ENTRY_PTRCMP): Use ord for comparison
51126         (hol_sort): Initialize ord.
51127
51128 2007-05-01  Bruno Haible  <bruno@clisp.org>
51129
51130         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51131         Reported by Eric Blake.
51132         * doc/gnulib.texi (Function Substitutes): Update.
51133
51134 2007-05-01  Bruno Haible  <bruno@clisp.org>
51135
51136         * doc/functions.texi: Remove file, now redundant through
51137         doc/functions/*.texi.
51138
51139 2007-05-01  Bruno Haible  <bruno@clisp.org>
51140
51141         * modules/argp (Depends-on): Add sleep.
51142
51143 2007-05-01  Bruno Haible  <bruno@clisp.org>
51144
51145         * modules/sleep-tests: New file.
51146         * tests/test-sleep.c: New file.
51147
51148         * modules/sleep: New file.
51149         * lib/sleep.c: New file.
51150         * m4/sleep.m4: New file.
51151         * lib/unistd_.h (sleep): New declaration.
51152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51153         HAVE_SLEEP.
51154         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51155         * doc/functions/sleep.texi: Document the sleep module.
51156
51157 2007-05-01  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/sigprocmask.h: Remove file.
51160         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51161         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51162         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51163         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51164         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51165         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51166         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51167         HAVE_SIGSET_T as a shell variable.
51168         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51169         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51170         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51171         (Depends-on): Add signal. Remove verify.
51172         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51173         (Include): Mention <signal.h> instead of sigprocmask.h.
51174         * NEWS: Mention the change.
51175         * lib/fatal-signal.c: Don't include sigprocmask.h.
51176
51177 2007-05-01  Bruno Haible  <bruno@clisp.org>
51178
51179         * modules/signal: New file.
51180         * lib/signal_.h: New file.
51181         * m4/signal_h.m4: New file.
51182
51183 2007-05-01  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51186         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51187         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51188         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51189
51190 2007-05-01  Bruno Haible  <bruno@clisp.org>
51191
51192         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51193         configure time.
51194         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51195         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51196         * modules/sys_stat (Makefile.am): Substitute their values into
51197         sys/stat.h.
51198
51199 2007-05-01  Bruno Haible  <bruno@clisp.org>
51200
51201         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51202         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51203         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51204
51205 2007-05-01  Bruno Haible  <bruno@clisp.org>
51206
51207         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51208         'assert' module here.
51209
51210 2007-05-01  Bruno Haible  <bruno@clisp.org>
51211
51212         * doc/functions/*.texi: New files.
51213         * doc/functions/google-ranking.txt: New file.
51214         * doc/gnulib.texi (Function Substitutes): New chapter.
51215         (ctime, inet_ntoa): Remove sections.
51216         * doc/ctime.texi: Remove file.
51217         * doc/inet_ntoa.texi: Remove file.
51218         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51219         dependencies.
51220         (%.info): New rule, specifying a --reference-limit.
51221
51222 2007-05-01  Bruno Haible  <bruno@clisp.org>
51223
51224         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51225
51226 2007-05-01  Bruno Haible  <bruno@clisp.org>
51227
51228         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51229         the portability of 'mkdir' to mingw systems.
51230
51231 2007-05-01  Bruno Haible  <bruno@clisp.org>
51232
51233         * doc/headers/google-ranking.txt: New file.
51234
51235 2007-04-30  Eric Blake  <ebb9@byu.net>
51236
51237         Prefer fseeko to fseek.
51238         * modules/getpass (Depends-on): Add fseeko.
51239         * lib/getpass.c (getpass): Use fseeko, not fseek.
51240
51241 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51242
51243         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51244         assumes the sorting is stable, while most qsort implementations
51245         are not.  Use argument addresses to ensure they never compare as
51246         equal.
51247
51248         * tests/test-argp-2.sh (usage-indent test): Fix output
51249         (func_compare): Restore diff options
51250         * tests/test-argp.c: Restore #include "progname.h"
51251
51252 2007-04-29  Bruno Haible  <bruno@clisp.org>
51253
51254         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51256         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51257         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51258         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51259         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51260         (TESTS, check_PROGRAMS): Add test-snprintf.
51261         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51262         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51263         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51264         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51265         assertions that fail on HP-UX, OSF/1, or IRIX.
51266         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51267
51268 2007-04-29  Bruno Haible  <bruno@clisp.org>
51269
51270         * MODULES.html.sh (posix_functions): Remove 'contents'.
51271
51272 2007-04-29  Karl Berry  <karl@gnu.org>
51273
51274         * config/srclist.txt (gendocs_template_min): new entry.
51275
51276 2007-04-29  Bruno Haible  <bruno@clisp.org>
51277
51278         Work around fpurge bug on BSD systems.
51279         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51280         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51281         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51282         fpurge to rpl_fpurge if the system already has this function.
51283         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51284         the case where the system already has this function. Correct invariants
51285         on BSD systems.
51286         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51287         BSD systems.
51288
51289 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51290
51291         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51292         proposed by Sven Verdoolaege.
51293
51294         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51295         options.
51296         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51297         (usage and help tests): Update
51298
51299 2007-04-29  Bruno Haible  <bruno@clisp.org>
51300
51301         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51302         Print more information in case of failure. Disable a test on BeOS.
51303
51304 2007-04-29  Bruno Haible  <bruno@clisp.org>
51305
51306         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51307         This helps debugging on systems on which no gdb is available.
51308
51309 2007-04-29  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/freading.h: Improve comments.
51312         * lib/fwriting.h: Likewise.
51313         * tests/test-freading.c (main): Don't check freading immediately after
51314         repositioning. Needed for glibc.
51315
51316 2007-04-29  Bruno Haible  <bruno@clisp.org>
51317
51318         * lib/freading.c (freading): Trivial simplification.
51319
51320 2007-04-28  Bruno Haible  <bruno@clisp.org>
51321
51322         * tests/test-fwriting.c (main): Also test the interaction between
51323         fflush and fwriting.
51324         * modules/fwriting-tests (Depends-on): Add fflush.
51325
51326         * tests/test-freading.c (main): Also test the interaction between
51327         fflush and freading.
51328         * modules/freading-tests (Depends-on): Add fflush.
51329
51330 2007-04-28  Bruno Haible  <bruno@clisp.org>
51331
51332         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51333         fseeko and ftello.
51334         Suggested by Eric Blake.
51335
51336 2007-04-28  Jim Meyering  <jim@meyering.net>
51337
51338         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51339         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51340         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51341
51342 2007-04-27  Eric Blake  <ebb9@byu.net>
51343
51344         * doc/headers/assert.texi (assert.h): Document assert module use.
51345
51346 2007-04-27  Bruno Haible  <bruno@clisp.org>
51347
51348         * doc/headers/*.texi: New files.
51349         * doc/gnulib.texi (Header File Substitutes): New chapter.
51350         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51351         dependencies.
51352         (standards.info ,standards.html, standards.dvi): Update dependencies.
51353         (mostlyclean, clean): New targets.
51354
51355 2007-04-27  Bruno Haible  <bruno@clisp.org>
51356
51357         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51358         * modules/sysexits (Files, Makefile.am): Update.
51359
51360         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51361         * modules/sys_socket (Files, Makefile.am): Update.
51362
51363         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51364         * modules/sys_stat (Files, Makefile.am): Update.
51365
51366 2007-04-27  Eric Blake  <ebb9@byu.net>
51367
51368         * lib/freading.h: Improve comments.
51369         * lib/fwriting.h: Likewise.
51370         * lib/fflush.c: Likewise.
51371
51372         Fix closein for mingw.
51373         * modules/closein-tests: Add tests for closein.
51374         * tests/test-closein.c: New file.
51375         * tests/test-closein.sh: Likewise.
51376         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51377         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51378
51379 2007-04-27  Bruno Haible  <bruno@clisp.org>
51380
51381         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51382         version is < 6.
51383         * lib/math_.h [__DECC]: Likewise.
51384         * lib/stdio_.h [__DECC]: Likewise.
51385         * lib/stdlib_.h [__DECC]: Likewise.
51386         * lib/string_.h [__DECC]: Likewise.
51387         * lib/time_.h [__DECC]: Likewise.
51388         * lib/wchar_.h [__DECC]: Likewise.
51389         * lib/wctype_.h [__DECC]: Likewise.
51390
51391 2007-04-27  Bruno Haible  <bruno@clisp.org>
51392
51393         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51394
51395 2007-04-27  Bruno Haible  <bruno@clisp.org>
51396
51397         * lib/fflush.c: Add comments.
51398         * modules/fpurge-tests (Depends-on): Add fflush.
51399         * modules/freadable-tests (Depends-on): Likewise.
51400         * modules/fwritable-tests (Depends-on): Likewise.
51401
51402 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51403
51404         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51405         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51406         Report by Bruno Haible <bruno@clisp.org>.
51407
51408 2007-04-26  Eric Blake  <ebb9@byu.net>
51409
51410         Fix fflush on mingw.
51411         * modules/fflush (Depends-on): Add freading.
51412         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51413         but unread data.
51414
51415 2007-04-26  Eric Blake  <ebb9@byu.net>
51416         and Bruno Haible  <bruno@clisp.org>
51417
51418         Implement freading and fwriting.
51419         * lib/freading.c: New file.
51420         * lib/freading.h: Likewise.
51421         * m4/freading.m4: Likewise.
51422         * modules/freading: Likewise.
51423         * modules/freading-tests: Likewise.
51424         * tests/test-freading.c: Likewise.
51425         * lib/fwriting.c: New file.
51426         * lib/fwriting.h: Likewise.
51427         * m4/fwriting.m4: Likewise.
51428         * modules/fwriting: Likewise.
51429         * modules/fwriting-tests: Likewise.
51430         * tests/test-fwriting.c: Likewise.
51431         * MODULES.html.sh (File stream based Input/Output): Mention them.
51432
51433 2007-04-26  Bruno Haible  <bruno@clisp.org>
51434
51435         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51436         'long' when we assume it.
51437         Suggested by Eric Blake.
51438
51439 2007-04-26  Bruno Haible  <bruno@clisp.org>
51440
51441         Ensure fseeko, ftello are declared on glibc systems.
51442         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51443         * modules/fseeko (configure.ac-early): Likewise.
51444         * modules/ftello (configure.ac-early): Likewise.
51445         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51446         AC_FUNC_FSEEKO for this.
51447         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51448         (gl_CHECK_FSEEKO): Remove macro.
51449
51450 2007-04-26  Bruno Haible  <bruno@clisp.org>
51451
51452         * tests/test-fflush.c (main): Also check the ftell result after
51453         fflush and fseek/fseeko.
51454         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51455         file descriptor position cache in the stream.
51456         * lib/fseeko.c (rpl_fseeko): Likewise.
51457
51458 2007-04-26  Bruno Haible  <bruno@clisp.org>
51459
51460         * modules/fflush-tests (Depends-on): Add fseeko.
51461
51462 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51463             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51464
51465         * lib/argz_.h: ensure error_t definition is obtained in same
51466         mechanism system argz.h would have.
51467         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51468         argz facilities are known bad.  Err on the side of caution if
51469         cross-compiling.
51470
51471 2007-04-25  Eric Blake  <ebb9@byu.net>
51472
51473         * lib/fpurge.c (includes): Use stdlib.h for free.
51474         * tests/test-fflush.c (main): Also test fflush-fseeko.
51475
51476 2007-04-25  Bruno Haible  <bruno@clisp.org>
51477
51478         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51479         * lib/fseeko.c: New file.
51480         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51481         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51482         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51483         gl_FUNC_FSEEKO.
51484         (gl_FUNC_FSEEKO): Invoke it.
51485         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51486         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51487         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51488
51489 2007-04-25  Bruno Haible  <bruno@clisp.org>
51490
51491         * modules/fflush (Depends-on): Add ftello.
51492
51493 2007-04-25  Bruno Haible  <bruno@clisp.org>
51494
51495         * modules/ftello-tests: New file.
51496         * tests/test-ftello.c: New file.
51497
51498         * modules/ftello: New file.
51499         * m4/ftello.m4: New file.
51500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51501         HAVE_FTELLO.
51502         * lib/stdio_.h (ftello): New declaration.
51503         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51504         HAVE_FTELLO.
51505
51506 2007-04-25  Bruno Haible  <bruno@clisp.org>
51507
51508         * modules/fseeko-tests: New file.
51509         * tests/test-fseeko.c: New file.
51510
51511         * modules/fseeko: New file.
51512         * m4/fseeko.m4: New file.
51513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51514         HAVE_FSEEKO.
51515         * lib/stdio_.h (fseeko): New declaration.
51516         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51517         HAVE_FSEEKO.
51518
51519 2007-04-25  Bruno Haible  <bruno@clisp.org>
51520
51521         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51522
51523 2007-04-25  Bruno Haible  <bruno@clisp.org>
51524
51525         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51526         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51527         * tests/test-unistd.c: Likewise.
51528         * tests/test-fcntl.c: Likewise.
51529
51530 2007-04-23  Eric Blake  <ebb9@byu.net>
51531
51532         * lib/fflush.c: Fix missing include.
51533         Reported by Bruno Haible.
51534
51535 2007-04-23  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51538         Reported by Eric Blake.
51539
51540 2007-04-23  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51543
51544 2007-04-23  Bruno Haible  <bruno@clisp.org>
51545
51546         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51547
51548 2007-04-23  Bruno Haible  <bruno@clisp.org>
51549
51550         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51551         Needed on HP-UX 11.
51552
51553 2007-04-16  Eric Blake  <ebb9@byu.net>
51554
51555         Make fflush rely on fpurge.
51556         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51557         open coding all variants.
51558         * modules/fflush (Depends-on): Add fpurge and unistd.
51559         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51560         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51561
51562         Fix --with-tests compilation on cygwin.
51563         * modules/argmatch-tests (Makefile.am): List gnulib library first
51564         in LDADD.
51565         * modules/argp-tests (Makefile.am): Likewise.
51566         * modules/array-list-tests (Makefile.am): Likewise.
51567         * modules/array-oset-tests (Makefile.am): Likewise.
51568         * modules/avltree-list-tests (Makefile.am): Likewise.
51569         * modules/avltree-oset-tests (Makefile.am): Likewise.
51570         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51571         * modules/carray-list-tests (Makefile.am): Likewise.
51572         * modules/dirname-tests (Makefile.am): Likewise.
51573         * modules/frexp-tests (Makefile.am): Likewise.
51574         * modules/isnanl-tests (Makefile.am): Likewise.
51575         * modules/linked-list-tests (Makefile.am): Likewise.
51576         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51577         * modules/lock-tests (Makefile.am): Likewise.
51578         * modules/rbtree-list-tests (Makefile.am): Likewise.
51579         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51580         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51581         * modules/tls-tests (Makefile.am): Likewise.
51582         * modules/tsearch-tests (Makefile.am): Likewise.
51583         * modules/xvasprintf-tests (Makefile.am): Likewise.
51584
51585         Fix fpurge for cygwin.
51586         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51587         value.
51588         * modules/fpurge-tests (Depends-on): Clean up trash.
51589
51590 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51591
51592         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51593
51594         * m4/autobuild.m4: Re-indent.
51595
51596 2007-04-13  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/fpurge-tests: New file.
51599         * tests/test-fpurge.c: New file.
51600
51601         * modules/fpurge: New file.
51602         * lib/fpurge.h: New file.
51603         * lib/fpurge.c: New file.
51604         * m4/fpurge.m4: New file.
51605
51606 2007-04-13  Bruno Haible  <bruno@clisp.org>
51607
51608         * modules/fbufmode-tests: New file.
51609         * tests/test-fbufmode.c: New file.
51610
51611         * modules/fbufmode: New file.
51612         * lib/fbufmode.h: New file.
51613         * lib/fbufmode.c: New file.
51614         * m4/fbufmode.m4: New file.
51615
51616 2007-04-13  Bruno Haible  <bruno@clisp.org>
51617
51618         * modules/fwritable-tests: New file.
51619         * tests/test-fwritable.c: New file.
51620
51621         * modules/fwritable: New file.
51622         * lib/fwritable.h: New file.
51623         * lib/fwritable.c: New file.
51624         * m4/fwritable.m4: New file.
51625
51626 2007-04-13  Bruno Haible  <bruno@clisp.org>
51627
51628         * modules/freadable-tests: New file.
51629         * tests/test-freadable.c: New file.
51630
51631         * modules/freadable: New file.
51632         * lib/freadable.h: New file.
51633         * lib/freadable.c: New file.
51634         * m4/freadable.m4: New file.
51635
51636 2007-04-13  Bruno Haible  <bruno@clisp.org>
51637
51638         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51639         MOSTLYCLEANFILES.
51640
51641 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51642
51643         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51644         gzip bootstrap.conf to avoid dragging in i18n machinery.
51645         (gnulib_tool_option): Use it.
51646
51647 2007-04-13  Bruno Haible  <bruno@clisp.org>
51648
51649         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51650         %F directives.
51651         * tests/test-vasprintf-posix.c (test_function): Likewise.
51652         * tests/test-snprintf-posix.h (test_function): Likewise.
51653         * tests/test-sprintf-posix.h (test_function): Likewise.
51654         * tests/test-fprintf-posix.h (test_function): Likewise.
51655         * tests/test-printf-posix.h (test_function): Likewise.
51656         * tests/test-fprintf-posix.out: Likewise.
51657
51658 2007-04-13  Bruno Haible  <bruno@clisp.org>
51659
51660         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51661         * modules/tls-tests (configure.ac): Likewise.
51662         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51663
51664 2007-04-13  Bruno Haible  <bruno@clisp.org>
51665
51666         * lib/tls.c (glthread_tls_get): Fix return type.
51667         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51668
51669 2007-04-12  Eric Blake  <ebb9@byu.net>
51670
51671         * modules/gettime (Depends-on): Remove gettime.
51672         Reported by Dmitry V. Levin.
51673
51674 2007-04-12  Bruno Haible  <bruno@clisp.org>
51675
51676         * modules/fflush (Include): Mention <stdio.h>.
51677         * modules/strtoimax (Include): Mention <inttypes.h>.
51678         * modules/strtoumax (Include): Likewise.
51679
51680 2007-04-12  Eric Blake  <ebb9@byu.net>
51681
51682         * .cvsignore: New file.
51683         * .gitignore: Likewise.
51684
51685 2007-04-12  Bruno Haible  <bruno@clisp.org>
51686
51687         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51688         not before, since $(LDADD) often contains libgnu.a.
51689         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51690         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51691         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51692         Needed on Cygwin.
51693
51694 2007-04-12  Eric Blake  <ebb9@byu.net>
51695
51696         Work around glibc's failure to flush stdin on fclose.
51697         * lib/closein.c (close_stdin): Flush stdin before closing.
51698
51699         Work around glibc's failure to reset seekable stdin on exit.
51700         * modules/closein: New module.
51701         * lib/closein.c: New file.
51702         * lib/closein.h: Likewise.
51703         * m4/closein.m4: Likewise.
51704         * MODULES.html.sh (File stream based Input/Output): Document it.
51705
51706 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51707
51708         * gnulib-tool: Rename generated 'autobuild' script to
51709         'do-autobuild' in --create-megatestdir output.
51710
51711         * doc/gnulib.texi (Build robot for gnulib): Fix.
51712
51713 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51714
51715         * modules/sysexits (Depends-on): Add absolute-header.
51716
51717 2007-04-12  Eric Blake  <ebb9@byu.net>
51718
51719         No need to preserve errno on success.
51720         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51721         Reported by Bruno Haible.
51722
51723 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51724
51725         * MODULES.html.sh (Support for maintaining and releasing
51726         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51727
51728 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51729
51730         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51731
51732 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51733
51734         * modules/autobuild: New module.
51735
51736         * m4/autobuild.m4: New file.
51737
51738 2007-04-11  Bruno Haible  <bruno@clisp.org>
51739
51740         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51741         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51742         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51745         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51746         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51748         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51749         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51750         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51751         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51752         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51753         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51754         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51755         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51756         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51757         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51758         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51759         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51760         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51761         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51762         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51763         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51764         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51765         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51766         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51767         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51768         Reported by Eric Blake.
51769
51770 2007-04-11  Bruno Haible  <bruno@clisp.org>
51771
51772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51773
51774 2007-04-10  Bruno Haible  <bruno@clisp.org>
51775
51776         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51777         for NaN and Infinity. Needed on FreeBSD 6.1.
51778         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51779         regarding results for "%010a" of Infinity and NaN.
51780         * tests/test-vasprintf-posix.c (test_function): Likewise.
51781         * tests/test-snprintf-posix.h (test_function): Likewise.
51782         * tests/test-sprintf-posix.h (test_function): Likewise.
51783         * tests/test-fprintf-posix.h (test_function): Likewise.
51784         * tests/test-printf-posix.h (test_function): Likewise.
51785         * tests/test-fprintf-posix.out: Likewise.
51786
51787 2007-04-10  Bruno Haible  <bruno@clisp.org>
51788
51789         * modules/locale-tests: New file.
51790         * tests/test-locale.c: New file.
51791
51792         * modules/locale: New file.
51793         * lib/locale_.h: New file.
51794         * m4/locale_h.m4: New file.
51795
51796 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51797             Bruno Haible  <bruno@clisp.org>
51798
51799         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51800         be determined, test for availability of the copysignf, copysign,
51801         copysignl functions.
51802         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51803         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51804         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51805
51806 2007-04-09  Eric Blake  <ebb9@byu.net>
51807
51808         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51809         * modules/stdio (Makefile.am): Support fflush.
51810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51811         * modules/fflush: New file.
51812         * lib/fflush.c: Likewise.
51813         * m4/fflush.m4: Likewise.
51814         * modules/fflush-tests: New test.
51815         * tests/test-fflush.c: Likewise.
51816         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51817
51818 2007-04-06  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51821         (VASNPRINTF): Use signbit for faster determination whether to print a
51822         minus sign.
51823         * modules/vasnprintf (Files): Remove lib/float+.h.
51824         * modules/fprintf-posix (Depends-on): Add signbit.
51825         * modules/snprintf-posix (Depends-on): Likewise.
51826         * modules/sprintf-posix (Depends-on): Likewise.
51827         * modules/vasnprintf-posix (Depends-on): Likewise.
51828         * modules/vasprintf-posix (Depends-on): Likewise.
51829         * modules/vfprintf-posix (Depends-on): Likewise.
51830         * modules/vsnprintf-posix (Depends-on): Likewise.
51831         * modules/vsprintf-posix (Depends-on): Likewise.
51832
51833 2007-04-06  Bruno Haible  <bruno@clisp.org>
51834
51835         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51836         * tests/test-frexpl.c (main): Likewise.
51837         * tests/test-ldexpl.c (main): Likewise.
51838         * modules/frexp-tests (Depends-on): Add signbit.
51839         * modules/frexpl-tests (Depdends-on): Likewise.
51840         * modules/ldexpl-tests (Depdends-on): Likewise.
51841
51842 2007-04-06  Bruno Haible  <bruno@clisp.org>
51843
51844         * modules/signbit-tests: New file.
51845         * tests/test-signbit.c: New file.
51846
51847         * modules/signbit: New file.
51848         * lib/signbitf.c: New file.
51849         * lib/signbitd.c: New file.
51850         * lib/signbitl.c: New file.
51851         * m4/signbit.m4: New file.
51852         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51853         (signbit): New macro.
51854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51855         REPLACE_SIGNBIT.
51856         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51857         REPLACE_FREXPL into math.h.
51858
51859 2007-04-06  Bruno Haible  <bruno@clisp.org>
51860
51861         * modules/isnanf-nolibm-tests: New file.
51862         * tests/test-isnanf.c: New file.
51863
51864         * modules/isnanf-nolibm: New file.
51865         * lib/isnanf.h: New file.
51866         * lib/isnanf.c: New file.
51867         * lib/isnan.c: Consider the USE_FLOAT macro.
51868         * m4/isnanf.m4: New file.
51869
51870 2007-04-06  Bruno Haible  <bruno@clisp.org>
51871
51872         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51873         (Link): New section.
51874
51875         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51876
51877 2007-04-06  Bruno Haible  <bruno@clisp.org>
51878
51879         Assume the 'long double' type.
51880         * m4/longdouble.m4: Remove file.
51881         * config/srclist.txt: Don't mention longdouble.m4.
51882         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51883         * lib/float+.h: Likewise.
51884         * lib/frexp.c: Likewise.
51885         * lib/printf-args.h: Likewise.
51886         * lib/printf-args.c: Likewise.
51887         * lib/printf-frexp.c: Likewise.
51888         * lib/printf-parse.c: Likewise.
51889         * lib/vasnprintf.c: Likewise.
51890         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51891         * m4/intl.m4: Likewise.
51892         * m4/isnanl.m4: Likewise.
51893         * m4/printf.m4: Likewise.
51894         * m4/printf-frexpl.m4: Likewise.
51895         * m4/vasnprintf.m4: Likewise.
51896         * modules/allocsa (Files): Remove m4/longdouble.m4.
51897         * modules/gettext (Files): Likewise.
51898         * modules/relocatable-prog-wrapper (Files): Likewise.
51899         * modules/vasnprintf (Files): Likewise.
51900         * modules/isnanl (Files): Likewise.
51901         (Include): Simplify.
51902         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51903         (Include): Simplify.
51904         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51905         (Include): Simplify.
51906         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51907         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51908         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51909         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51910         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51911         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51912         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51913         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51914         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51915         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51916         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51917         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51918         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51919         * tests/test-isnanl.c: Likewise.
51920         * tests/test-snprintf-posix.h: Likewise.
51921         * tests/test-sprintf-posix.h: Likewise.
51922         * tests/test-vasnprintf-posix.c: Likewise.
51923         * tests/test-vasnprintf-posix2.c: Likewise.
51924         * tests/test-vasprintf-posix.c: Likewise.
51925
51926 2007-04-06  Bruno Haible  <bruno@clisp.org>
51927
51928         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51929         * lib/math_.h [__DECC]: Include the overridden include file through
51930         #include_next, outside the double-inclusion guard.
51931         * lib/stdio_.h [__DECC]: Likewise.
51932         * lib/stdlib_.h [__DECC]: Likewise.
51933         * lib/string_.h [__DECC]: Likewise.
51934         * lib/time_.h [__DECC]: Likewise.
51935         * lib/wchar_.h [__DECC]: Likewise.
51936         * lib/wctype_.h [__DECC]: Likewise.
51937         * lib/inttypes_.h [__DECC]: Likewise.
51938         Reported by Albert Chin <china@thewrittenword.com> in
51939         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51940
51941 2007-04-04  Eric Blake  <ebb9@byu.net>
51942
51943         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51944         1.5.x.
51945
51946 2007-04-04  Bruno Haible  <bruno@clisp.org>
51947
51948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51949         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51950
51951 2007-04-04  Bruno Haible  <bruno@clisp.org>
51952
51953         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51954         results for "%010a" of Infinity and NaN.
51955         * tests/test-vasprintf-posix.c (test_function): Likewise.
51956         * tests/test-snprintf-posix.h (test_function): Likewise.
51957         * tests/test-sprintf-posix.h (test_function): Likewise.
51958         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51959         * tests/test-printf-posix.h (test_function): Likewise.
51960         * tests/test-fprintf-posix.out: Update.
51961         Needed for FreeBSD 6.1.
51962
51963 2007-04-04  Bruno Haible  <bruno@clisp.org>
51964
51965         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51966         directly used by the gnulib modules nor by gnulib-tool.
51967
51968 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51969
51970         * DEPENDENCIES: Give overall description of version dependency
51971         desirability.  Use more-typical names for apps.
51972         Add shell, coreutils, diffutils, grep, tar, gzip.
51973
51974 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51975
51976         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51977
51978 2007-04-04  Karl Berry  <karl@gnu.org>
51979
51980         * MODULES.html.sh (func_module): missing '.
51981
51982 2007-04-03  Bruno Haible  <bruno@clisp.org>
51983
51984         * modules/argmatch-tests (Makefile.am): New variable
51985         test_argmatch_LDADD.
51986         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51987         * modules/array-list-tests (Makefile.am): New variable
51988         test_array_list_LDADD.
51989         * modules/array-oset-tests (Makefile.am): New variable
51990         test_array_oset_LDADD.
51991         * modules/avltree-list-tests (Makefile.am): New variable
51992         test_avltree_list_LDADD.
51993         * modules/avltree-oset-tests (Makefile.am): New variable
51994         test_avltree_oset_LDADD.
51995         * modules/avltreehash-list-tests (Makefile.am): New variable
51996         test_avltreehash_list_LDADD.
51997         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51998         test_canonicalize_lgpl_LDADD.
51999         * modules/carray-list-tests (Makefile.am): New variable
52000         test_carray_list_LDADD.
52001         * modules/dirname-tests (Makefile.am): New variable
52002         test_dirname_LDADD.
52003         * modules/linked-list-tests (Makefile.am): New variable
52004         test_linked_list_LDADD.
52005         * modules/linkedhash-list-tests (Makefile.am): New variable
52006         test_linkedhash_list_LDADD.
52007         * modules/rbtree-list-tests (Makefile.am): New variable
52008         test_rbtree_list_LDADD.
52009         * modules/rbtree-oset-tests (Makefile.am): New variable
52010         test_rbtree_oset_LDADD.
52011         * modules/rbtreehash-list-tests (Makefile.am): New variable
52012         test_rbtreehash_list_LDADD.
52013         * modules/xvasprintf-tests (Makefile.am): New variable
52014         test_xvasprintf_LDADD.
52015         Reported by Eric Blake.
52016
52017 2007-04-03  Eric Blake  <ebb9@byu.net>
52018
52019         * DEPENDENCIES: Weaken m4 requirements.
52020
52021 2007-04-03  Bruno Haible  <bruno@clisp.org>
52022
52023         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52024         * modules/isnanl-tests (configure.ac): Likewise.
52025
52026 2007-04-03  Ben Pfaff  <blp@gnu.org>
52027
52028         * modules/iconv_open: Add $(srcdir)/ to source directory
52029         references in Makefile fragments that call gperf, to fix VPATH
52030         builds.
52031
52032 2007-04-03  Bruno Haible  <bruno@clisp.org>
52033
52034         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52035         * lib/ldexpl.c: Undo last change.
52036
52037 2007-04-03  Bruno Haible  <bruno@clisp.org>
52038
52039         * modules/printf-frexpl (Depends-on): Undo last change.
52040         (Files): Add m4/ldexpl.m4.
52041
52042 2007-04-03  Bruno Haible  <bruno@clisp.org>
52043
52044         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52045         * modules/isnanl (Link): New section.
52046
52047         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52048         * modules/frexp (Link): New section.
52049
52050         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52051         * modules/frexpl (Link): New section.
52052
52053         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52054         * modules/ldexpl (Link): New section.
52055
52056 2007-04-03  Bruno Haible  <bruno@clisp.org>
52057
52058         * modules/TEMPLATE-EXTENDED: New file.
52059         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52060
52061 2007-04-03  Bruno Haible  <bruno@clisp.org>
52062
52063         * DEPENDENCIES: New file.
52064         Suggested by Simon Josefsson.
52065
52066 2007-04-03  Bruno Haible  <bruno@clisp.org>
52067
52068         * doc/gnulib.texi: Escape @.
52069
52070 2007-04-03  James Youngman  <jay@gnu.org>
52071         and Paul Eggert  <eggert@cs.ucla.edu>
52072
52073         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52074         birthtime on all systems that have birthtime, not just those which
52075         use st_birthtimensec rather than st_birthtim.  Putting zero in
52076         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52077         that the birth time is not available for files on an NFS mount.
52078
52079 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52080
52081         * modules/memxor: Move back from crypto/, suggested by Bruno.
52082         * modules/crypto/hmac-sha1: Fix memxor dependency.
52083
52084         * modules/crypto/gc: Moved from ../.
52085
52086 2007-04-02  Eric Blake  <ebb9@byu.net>
52087
52088         * lib/ldexpl.c (includes): Avoid libm.
52089
52090         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52091
52092 2007-04-02  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52095         on IRIX.
52096
52097 2007-04-02  Bruno Haible  <bruno@clisp.org>
52098
52099         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52100         x86 or x86_64 platforms running MacOS X.
52101         Reported by Ryan Schmidt <@ryandesign.com>.
52102
52103 2007-04-02  Bruno Haible  <bruno@clisp.org>
52104
52105         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52106         i386.
52107
52108 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52109
52110         * modules/crypto/arcfour: Moved from ../.
52111         * modules/crypto/arcfour-tests: Moved from ../.
52112         * modules/crypto/arctwo: Moved from ../.
52113         * modules/crypto/arctwo-tests: Moved from ../.
52114         * modules/crypto/des: Moved from ../.
52115         * modules/crypto/des-tests: Moved from ../.
52116         * modules/crypto/gc-arcfour: Moved from ../.
52117         * modules/crypto/gc-arcfour-tests: Moved from ../.
52118         * modules/crypto/gc-arctwo: Moved from ../.
52119         * modules/crypto/gc-arctwo-tests: Moved from ../.
52120         * modules/crypto/gc-des: Moved from ../.
52121         * modules/crypto/gc-des-tests: Moved from ../.
52122         * modules/crypto/gc-hmac-md5: Moved from ../.
52123         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52124         * modules/crypto/gc-hmac-sha1: Moved from ../.
52125         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52126         * modules/crypto/gc-md2: Moved from ../.
52127         * modules/crypto/gc-md2-tests: Moved from ../.
52128         * modules/crypto/gc-md4: Moved from ../.
52129         * modules/crypto/gc-md4-tests: Moved from ../.
52130         * modules/crypto/gc-md5: Moved from ../.
52131         * modules/crypto/gc-md5-tests: Moved from ../.
52132         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52133         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52134         * modules/crypto/gc-random: Moved from ../.
52135         * modules/crypto/gc-rijndael: Moved from ../.
52136         * modules/crypto/gc-rijndael-tests: Moved from ../.
52137         * modules/crypto/gc-sha1: Moved from ../.
52138         * modules/crypto/gc-sha1-tests: Moved from ../.
52139         * modules/crypto/gc-tests: Moved from ../.
52140         * modules/crypto/hmac-md5: Moved from ../.
52141         * modules/crypto/hmac-md5-tests: Moved from ../.
52142         * modules/crypto/hmac-sha1: Moved from ../.
52143         * modules/crypto/hmac-sha1-tests: Moved from ../.
52144         * modules/crypto/md2: Moved from ../.
52145         * modules/crypto/md2-tests: Moved from ../.
52146         * modules/crypto/md4: Moved from ../.
52147         * modules/crypto/md4-tests: Moved from ../.
52148         * modules/crypto/md5: Moved from ../.
52149         * modules/crypto/md5-tests: Moved from ../.
52150         * modules/crypto/memxor: Moved from ../.
52151         * modules/crypto/rijndael: Moved from ../.
52152         * modules/crypto/rijndael-tests: Moved from ../.
52153         * modules/crypto/sha1: Moved from ../.
52154
52155 2007-03-30  James Youngman  <jay@gnu.org>
52156
52157         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52158         rename() to change the ctime of a file (because ctime is unaffected
52159         by rename on jfs2 on AIX 5.1).
52160         (main): Start by doing cleanup, in case a previous run failed leaving
52161         test files behind.
52162
52163 2007-03-31  Bruno Haible  <bruno@clisp.org>
52164
52165         Support old proprietary implementations of iconv.
52166         * modules/iconv_open: New file.
52167         * lib/iconv_.h: New file.
52168         * m4/iconv_h.m4: New file.
52169         * lib/iconv_open.c: New file.
52170         * lib/iconv_open-aix.gperf: New file.
52171         * lib/iconv_open-hpux.gperf: New file.
52172         * lib/iconv_open-irix.gperf: New file.
52173         * lib/iconv_open-osf.gperf: New file.
52174         * m4/iconv_open.m4: New file.
52175         * modules/linebreak (Depends-on): Add iconv_open.
52176         * modules/striconv (Depends-on): Likewise.
52177         * modules/striconveh (Depends-on): Likewise.
52178         * modules/unicodeio (Depends-on): Likewise.
52179         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52180         (iconv_t)(-1).
52181         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52182         conversion if cd is (iconv_t)(-1).
52183         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52184         is not possible.
52185
52186 2007-03-31  Bruno Haible  <bruno@clisp.org>
52187
52188         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52189         work on Solaris either. Protect also second use of "autodetect_jp".
52190
52191 2007-03-31  Bruno Haible  <bruno@clisp.org>
52192
52193         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52194         the function is not present.
52195
52196 2007-03-31  Bruno Haible  <bruno@clisp.org>
52197
52198         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52199         the function is not present.
52200
52201 2007-03-31  Bruno Haible  <bruno@clisp.org>
52202
52203         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52204         a bug in HP-UX iconv_open().
52205
52206 2007-03-31  Bruno Haible  <bruno@clisp.org>
52207
52208         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52209         (Mathematics <math.h>): New section, add fpieee.
52210         (Input/output <stdio.h>): Add fseterr.
52211         (Mathematics <math.h>): New section, add printf-frexp.
52212         (Container data structures): Add sublist.
52213         (Core language properties): Add fpucw, inline.
52214         (Functions for greatest-width integer types <inttypes.h>): Add
52215         imaxabs, imaxdiv, inttypes.
52216         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52217         isnanl-nolibm, ldexp.
52218         (Mathematics <math.h>): New section, add printf-frexpl.
52219         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52220         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52221         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52222         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52223         (Unicode string functions): Add unistr/u*-mbtoucr.
52224         (Java): Add javacomp-script, javaexec-script.
52225         (C#): Add csharpcomp-script, csharpexec-script.
52226         (Support for building libraries and executables): Add havelib,
52227         relocatable-*.
52228         (Support for maintaining and releasing projects): Renamed from
52229         'Support for maintaining and release projects'. Add announce-gen.
52230
52231 2007-03-31  Bruno Haible  <bruno@clisp.org>
52232
52233         * README: Talk primarily about git.
52234         (git and CVS): Renamed from CVS.
52235         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52236         gnulib is available through git.
52237         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52238
52239 2007-03-30  Bruno Haible  <bruno@clisp.org>
52240
52241         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52242         * lib/poll_.h: Likewise.
52243         * lib/stat_.h: Likewise.
52244         * lib/sys_time_.h: Likewise.
52245         * lib/sysexit_.h: Likewise.
52246         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52247         * lib/stdbool_.h: Likewise.
52248         * lib/byteswap_.h: Add double-inclusion guard.
52249
52250 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52251
52252         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52253
52254 2007-03-30  Karl Berry  <karl@gnu.org>
52255
52256         * config/srclist-update: double space after USA in the license
52257         substitution, since that's how it's usually (?) written.
52258
52259 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52260
52261         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52262         reported by Bruno Haible.
52263
52264 2007-03-29  Bruno Haible  <bruno@clisp.org>
52265
52266         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52267         a bug in AIX iconv().
52268
52269 2007-03-29  Bruno Haible  <bruno@clisp.org>
52270
52271         * modules/ldexpl-tests: New file.
52272         * tests/test-ldexpl.c: New file.
52273
52274 2007-03-29  Bruno Haible  <bruno@clisp.org>
52275
52276         * lib/ldexpl.c: Include fpucw.h.
52277         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52278         multiplication.
52279         * modules/ldexpl (Depends-on): Add fpucw.
52280
52281 2007-03-29  Bruno Haible  <bruno@clisp.org>
52282
52283         * modules/ldexpl: New file.
52284         * m4/ldexpl.m4: New file.
52285         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52286         set.
52287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52288         REPLACE_LDEXPL.
52289         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52290         REPLACE_LDEXPL.
52291         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52292         gl_FUNC_LDEXPL_WORKS.
52293         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52294         * modules/mathl (Files): Remove lib/ldexpl.c.
52295         (Depends-on): Add ldexpl.
52296
52297 2007-03-29  Bruno Haible  <bruno@clisp.org>
52298
52299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52300
52301 2007-03-29  Bruno Haible  <bruno@clisp.org>
52302
52303         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52304         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52305         and possibly also HP-UX.
52306         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52307         work on AIX, IRIX, HP-UX, OSF/1.
52308         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52309         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52310         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52311         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52312         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52313         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52314
52315 2007-03-29  Bruno Haible  <bruno@clisp.org>
52316
52317         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52318
52319 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52320
52321         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52322         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52323
52324 2007-03-29  Eric Blake  <ebb9@byu.net>
52325
52326         * lib/acl-internal.h: Remove redundant include.
52327         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52328         Cygwin when a file is locked.
52329
52330 2007-03-29  Bruno Haible  <bruno@clisp.org>
52331
52332         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52333         file.
52334         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52335
52336 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52337
52338         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52339         try to remove a parent directory if the child couldn't be removed
52340         (except for the first rmdir, which could fail because the child
52341         doesn't exist).  Problem reported by Jeff Blaine in
52342         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52343
52344 2007-03-28  Bruno Haible  <bruno@clisp.org>
52345
52346         * lib/striconveh.c (utf8conv_carefully): New function.
52347         (mem_cd_iconveh_internal): Invoke it.
52348
52349 2007-03-28  Bruno Haible  <bruno@clisp.org>
52350
52351         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52352         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52353         input.
52354         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52355         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52356         unistr/u8-uctomb.
52357
52358 2007-03-28  Bruno Haible  <bruno@clisp.org>
52359
52360         * modules/unistr/u8-mbtoucr: New file.
52361         * lib/unistr/u8-mbtoucr.c: New file.
52362         * modules/unistr/u16-mbtoucr: New file.
52363         * lib/unistr/u16-mbtoucr.c: New file.
52364         * modules/unistr/u16-mbtoucr: New file.
52365         * lib/unistr/u16-mbtoucr.c: New file.
52366         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52367
52368 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52369             Bruno Haible  <bruno@clisp.org>
52370
52371         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52372         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52373         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52374
52375         * m4/stdio_h.m4: Add stubs for vasprintf too.
52376
52377         * modules/stdio: Support vasprintf in sed command.
52378
52379         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52380         vasprintf.h.  Add stdio module indicator.
52381
52382         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52383         vasprintf.h.
52384
52385         * lib/vasprintf.h: File removed.
52386
52387         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52388         * lib/vasprintf.c: Ditto.
52389         * lib/xvasprintf.c: Ditto.
52390         * tests/test-vasprintf-posix.c: Ditto.
52391         * tests/test-vasprintf.c: Ditto.
52392
52393 2007-03-27  Bruno Haible  <bruno@clisp.org>
52394
52395         Make vasnprintf multithread-safe.
52396         * lib/vasnprintf.c (decimal_point_char): New function.
52397         (VASNPRINTF): Use it.
52398         Suggested by Simon Josefsson.
52399
52400 2007-03-27  Eric Blake  <ebb9@byu.net>
52401
52402         Support sub-second birthtime on cygwin.
52403         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52404         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52405         (get_stat_birthtime): Also work with st_birthtim.
52406
52407 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52408
52409         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52410         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52411         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52412         (get_stat_birthtime_ns): Simplify compile-time tests.
52413         (get_stat_birthtime): Change the API to look like
52414         get_stat_mtime etc., except return a negative tv_nsec on error.
52415         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52416         Don't check for "spare" fields.
52417         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52418         or for struct stat.st_birthtime, as these tests aren't used.
52419         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52420
52421 2007-03-27  Bruno Haible  <bruno@clisp.org>
52422
52423         * lib/stat-time.h: Include <sys/stat.h>.
52424
52425 2007-03-27  James Youngman  <jay@gnu.org>
52426
52427         * lib/stat-time.h (get_stat_birthtime): New function for
52428           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52429         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52430           and its variants.
52431         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52432         * modules/stat-time-test: New file.
52433         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52434
52435 2007-03-26  Bruno Haible  <bruno@clisp.org>
52436
52437         Better support of signalling NaNs.
52438         * lib/atanl.c: Include isnanl.h.
52439         (atanl): Perform test for NaN at the beginning of the function and
52440         through a call to isnanl.
52441         * lib/cosl.c: Include isnanl.h.
52442         (cosl): Perform test for NaN at the beginning of the function and
52443         through a call to isnanl.
52444         * lib/ldexpl.c: Include isnanl.h.
52445         (ldexpl): Perform test for NaN through a call to isnanl.
52446         * lib/logl.c: Include isnanl.h.
52447         (logl): Perform test for NaN at the beginning of the function and
52448         through a call to isnanl.
52449         * lib/sinl.c: Include isnanl.h.
52450         (sinl): Perform test for NaN at the beginning of the function and
52451         through a call to isnanl.
52452         * lib/sqrtl.c: Include isnanl.h.
52453         (sqrtl): Perform test for NaN at the beginning of the function and
52454         through a call to isnanl.
52455         * lib/tanl.c: Include isnanl.h.
52456         (tanl): Perform test for NaN at the beginning of the function and
52457         through a call to isnanl.
52458         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52459         * modules/mathl (Depends-on): Add isnanl.
52460
52461 2007-03-26  Eric Blake  <ebb9@byu.net>
52462
52463         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52464         regression in logic sense of previous patch.
52465
52466 2007-03-26  Bruno Haible  <bruno@clisp.org>
52467
52468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52469         unportable shell command "if ! ...".
52470         Reported by Ralf Wildenhues.
52471
52472 2007-03-25  Bruno Haible  <bruno@clisp.org>
52473
52474         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52475         <sysexits.h> file, and only add EX_CONFIG.
52476         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52477         absolute file name and whether it is sufficient. Substitute also
52478         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52479         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52480         ABSOLUTE_SYSEXITS_H into sysexits.h.
52481
52482 2007-03-25  Bruno Haible  <bruno@clisp.org>
52483
52484         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52485         hints is NULL.
52486
52487 2007-03-25  Bruno Haible  <bruno@clisp.org>
52488
52489         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52490         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52491
52492 2007-03-25  Bruno Haible  <bruno@clisp.org>
52493
52494         * lib/vasnprintf.c: Include langinfo.h.
52495         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52496         multithread-safe.
52497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52498         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52506         Reported by Simon Josefsson.
52507
52508 2007-03-25  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52511         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52512         * modules/vasnprintf (Depends-on): Add stdint.
52513
52514 2007-03-25  Bruno Haible  <bruno@clisp.org>
52515
52516         * modules/fpieee: New file.
52517         * m4/fpieee.m4: New file.
52518         * modules/isnan-nolibm (Depends-on): Add fpieee.
52519         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52520         * modules/isnanl (Depends-on): Add fpieee.
52521
52522 2007-03-25  Bruno Haible  <bruno@clisp.org>
52523
52524         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52525
52526 2007-03-25  Bruno Haible  <bruno@clisp.org>
52527
52528         Avoid test failures on IRIX 6.5.
52529         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52530         (main): Use it.
52531         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52532         macros.
52533         (main): Use them.
52534
52535 2007-03-25  Bruno Haible  <bruno@clisp.org>
52536
52537         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52538         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52539         exists but doesn't work.
52540         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52541         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52543         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52544         math.h.
52545
52546 2007-03-25  Bruno Haible  <bruno@clisp.org>
52547
52548         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52549         returns inf. Needed on IRIX 6.5.
52550
52551 2007-03-25  Bruno Haible  <bruno@clisp.org>
52552
52553         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52554         (main): Use isnanl instead of x != x idiom.
52555         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52556
52557         * tests/test-frexp.c: Include isnan.h.
52558         (main): Use isnan instead of x != x idiom.
52559         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52560
52561 2007-03-25  Bruno Haible  <bruno@clisp.org>
52562
52563         * tests/test-frexp.c (NaN): New function/macro.
52564         (main): Use it instead of 0.0 / 0.0.
52565         * tests/test-isnan.c (NaN): New function/macro.
52566         (main): Use it instead of 0.0 / 0.0.
52567         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52568         (test_function): Use it instead of 0.0 / 0.0.
52569         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52570         (test_function): Use it instead of 0.0 / 0.0.
52571         * tests/test-snprintf-posix.h (NaN): New function/macro.
52572         (test_function): Use it instead of 0.0 / 0.0.
52573         * tests/test-sprintf-posix.h (NaN): New function/macro.
52574         (test_function): Use it instead of 0.0 / 0.0.
52575         * tests/test-fprintf-posix.h (NaN): New function/macro.
52576         (test_function): Use it instead of 0.0 / 0.0.
52577         * tests/test-printf-posix.h (NaN): New function/macro.
52578         (test_function): Use it instead of 0.0 / 0.0.
52579
52580         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52581
52582 2007-03-25  Bruno Haible  <bruno@clisp.org>
52583
52584         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52585
52586 2007-03-25  Bruno Haible  <bruno@clisp.org>
52587
52588         * lib/regexec.c (merge_state_with_log): Make static.
52589
52590 2007-03-25  Bruno Haible  <bruno@clisp.org>
52591
52592         * lib/trigl.c (kernel_rem_pio2): Make static.
52593
52594 2007-03-25  Bruno Haible  <bruno@clisp.org>
52595
52596         * lib/sincosl.c (sincosl_table): Make static.
52597
52598 2007-03-25  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52601         if the compiler does not support C99.
52602
52603 2007-03-25  Bruno Haible  <bruno@clisp.org>
52604
52605         * modules/time (Makefile.am): Ensure all rule action lines start with a
52606         tab.
52607
52608 2007-03-24  Bruno Haible  <bruno@clisp.org>
52609
52610         * modules/tsearch-tests: New file.
52611         * tests/test-tsearch.sh: New file.
52612         * tests/test-tsearch.c: New file, mostly copied from glibc.
52613
52614         * modules/search-tests: New file.
52615         * tests/test-search.c: New file.
52616
52617         * modules/search: New file.
52618         * lib/search_.h: New file, incorporating lib/tsearch.h.
52619         * m4/search_h.m4: New file.
52620         * lib/tsearch.h: Remove file.
52621         * lib/tsearch.c: Include search.h instead of tsearch.h.
52622         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52623         HAVE_TSEARCH.
52624         * modules/tsearch (Files): Remove lib/tsearch.h.
52625         (Depends-on): Add search.
52626         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52627         (Include): Change tsearch.h into search.h.
52628
52629 2007-03-24  Bruno Haible  <bruno@clisp.org>
52630
52631         * modules/fpucw: New file.
52632         * lib/fpucw.h: New file.
52633         * lib/frexp.c: Include fpucw.h.
52634         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52635         (FUNC): Use them.
52636         * lib/printf-frexp.c: Include fpucw.h.
52637         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52638         (FUNC): Use them.
52639         * lib/vasnprintf.c: Include fpucw.h.
52640         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52641         'long double' calculations.
52642         * tests/test-frexpl.c: Include fpucw.h.
52643         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52644         * tests/test-printf-frexpl.c: Include fpucw.h.
52645         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52646         * modules/frexpl (Depends-on): Add fpucw.
52647         * modules/printf-frexpl (Depends-on): Likewise.
52648         * modules/fprintf-posix (Depends-on): Likewise.
52649         * modules/snprintf-posix (Depends-on): Likewise.
52650         * modules/sprintf-posix (Depends-on): Likewise.
52651         * modules/vasnprintf-posix (Depends-on): Likewise.
52652         * modules/vasprintf-posix (Depends-on): Likewise.
52653         * modules/vfprintf-posix (Depends-on): Likewise.
52654         * modules/vsnprintf-posix (Depends-on): Likewise.
52655         * modules/vsprintf-posix (Depends-on): Likewise.
52656         * modules/frexpl-tests (Depends-on): Likewise.
52657         * modules/printf-frexpl-tests (Depends-on): Likewise.
52658
52659 2007-03-24  Bruno Haible  <bruno@clisp.org>
52660
52661         * lib/float+.h: New file.
52662         * lib/isnan.c: Include float+.h.
52663         (SIZE): New macro.
52664         (FUNC): Compare only SIZE bytes of the value.
52665         * lib/vasnprintf.c: Include float+.h.
52666         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52667         SIZEOF_LDBL or SIZEOF_DBL bytes.
52668         * modules/isnan-nolibm (Files): Add lib/float+.h.
52669         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52670         * modules/isnanl (Files): Add lib/float+.h.
52671         * modules/vasnprintf (Files): Add lib/float+.h.
52672
52673 2007-03-24  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52676         include isnanl-nolibm.h.
52677
52678 2007-03-24  Bruno Haible  <bruno@clisp.org>
52679
52680         * tests/test-read-file.c (main): Don't produce spurious output for
52681         expected situations. Make the test fail if it encountered unexpected
52682         results.
52683
52684 2007-03-24  Bruno Haible  <bruno@clisp.org>
52685
52686         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52687         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52688
52689 2007-03-24  Bruno Haible  <bruno@clisp.org>
52690
52691         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52692
52693 2007-03-24  Bruno Haible  <bruno@clisp.org>
52694
52695         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52696         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52697
52698         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52699         * modules/utf8-ucs4: Turn into a symbolic link to module
52700         unistr/u8-mbtouc.
52701
52702         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52703         utf8-ucs4-unsafe.
52704         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52705         unistr/u8-mbtouc-unsafe.
52706
52707         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52708         * modules/utf16-ucs4: Turn into a symbolic link to module
52709         unistr/u16-mbtouc.
52710
52711         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52712         utf16-ucs4-unsafe.
52713         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52714         unistr/u16-mbtouc-unsafe.
52715
52716         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52717         * modules/ucs4-utf8: Turn into a symbolic link to module
52718         unistr/u8-ubtomb.
52719
52720         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52721         * modules/ucs4-utf16: Turn into a symbolic link to module
52722         unistr/u16-ubtomb.
52723
52724 2007-03-24  Bruno Haible  <bruno@clisp.org>
52725
52726         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52727         Enable the function only if HAVE_INLINE.
52728         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52729         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52730         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52731         Enable the function only if HAVE_INLINE.
52732         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52733         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52734         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52735         Enable the function only if HAVE_INLINE.
52736         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52737         Enable the function only if HAVE_INLINE.
52738         * modules/utf8-ucs4: Update.
52739         * modules/utf8-ucs4-unsafe: Update.
52740         * modules/utf16-ucs4: Update.
52741         * modules/utf16-ucs4-unsafe: Update.
52742         * modules/ucs4-utf8: Update.
52743         * modules/ucs4-utf16: Update.
52744
52745 2007-03-24  Bruno Haible  <bruno@clisp.org>
52746
52747         * lib/utf8-ucs4.h: Remove file.
52748         * lib/utf8-ucs4-unsafe.h: Remove file.
52749         * lib/utf16-ucs4.h: Remove file.
52750         * lib/utf16-ucs4-unsafe.h: Remove file.
52751         * lib/ucs4-utf8.h: Remove file.
52752         * lib/ucs4-utf16.h: Remove file.
52753         * lib/unistr.h: Include their previous contents.
52754         * m4/utf-ucs4.m4: Remove file.
52755         * m4/ucs4-utf.m4: Remove file.
52756         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52757         (Depends-on): Add unistr/base.
52758         (configure.ac): Remove gl_UTF_UCS4.
52759         (Makefile.am): Update.
52760         (Include): Change to unistr.h.
52761         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52762         (Depends-on): Add unistr/base.
52763         (configure.ac): Remove gl_UTF_UCS4.
52764         (Makefile.am): Update.
52765         (Include): Change to unistr.h.
52766         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52767         (Depends-on): Add unistr/base.
52768         (configure.ac): Remove gl_UTF_UCS4.
52769         (Makefile.am): Update.
52770         (Include): Change to unistr.h.
52771         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52772         (Depends-on): Add unistr/base.
52773         (configure.ac): Remove gl_UTF_UCS4.
52774         (Makefile.am): Update.
52775         (Include): Change to unistr.h.
52776         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52777         (Depends-on): Add unistr/base.
52778         (configure.ac): Remove gl_UCS4_UTF.
52779         (Makefile.am): Update.
52780         (Include): Change to unistr.h.
52781         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52782         (Depends-on): Add unistr/base.
52783         (configure.ac): Remove gl_UCS4_UTF.
52784         (Makefile.am): Update.
52785         (Include): Change to unistr.h.
52786         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52787         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52788         utf8-ucs4-unsafe.h.
52789         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52790         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52791         utf16-ucs4-unsafe.h.
52792         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52793         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52794         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52795         * lib/unistr/u8-strchr.c: Likewise.
52796         * lib/unistr/u8-strrchr.c: Likewise.
52797         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52798         * lib/unistr/u16-strchr.c: Likewise.
52799         * lib/unistr/u16-strrchr.c: Likewise.
52800         * lib/striconveh.c: Update.
52801         * lib/linebreak.c: Update.
52802
52803 2007-03-24  Bruno Haible  <bruno@clisp.org>
52804
52805         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52806         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52807
52808 2007-03-22  Bruno Haible  <bruno@clisp.org>
52809
52810         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52811
52812 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52813
52814         * MODULES.html.sh (File system functions): New module write-any-file.
52815         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52816         * m4/write-any-file.m4: New files.
52817
52818 2007-03-23  Eric Blake  <ebb9@byu.net>
52819
52820         * gnulib-tool: Rearrange space-tab sequences, since some editors
52821         like to eat them.
52822
52823 2007-03-23  Eric Blake  <ebb9@byu.net>
52824
52825         * lib/version-etc.c (version_etc_va): Update license wording to
52826         be more concise.  Recommended by Richard Stallman.
52827
52828 2007-03-22  Bruno Haible  <bruno@clisp.org>
52829
52830         * lib/poll.c (MSG_PEEK): New fallback definition.
52831
52832 2007-03-22  Bruno Haible  <bruno@clisp.org>
52833
52834         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52835         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52836         (main): Update.
52837         Fixes a compilation error on BeOS.
52838
52839 2007-03-22  Bruno Haible  <bruno@clisp.org>
52840
52841         * modules/frexpl-tests: New file.
52842         * tests/test-frexpl.c: New file.
52843
52844         * modules/frexpl: New file.
52845         * m4/frexpl.m4: New file.
52846         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52847         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52849         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52850         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52851         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52852
52853 2007-03-22  Bruno Haible  <bruno@clisp.org>
52854
52855         * lib/frexpl.c: Share code with lib/frexp.c.
52856         * modules/mathl (Files): Add lib/frexp.c.
52857         (Depends-on): Add isnanl-nolibm.
52858
52859 2007-03-22  Bruno Haible  <bruno@clisp.org>
52860
52861         * modules/printf-frexp (Files): Add m4/frexp.m4.
52862         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52863         only if the found frexp function actually works.
52864
52865 2007-03-22  Bruno Haible  <bruno@clisp.org>
52866
52867         * lib/frexp.c: Remove older implementation that uses divisions.
52868
52869 2007-03-21  Bruno Haible  <bruno@clisp.org>
52870
52871         * modules/frexp-tests: New file.
52872         * tests/test-frexp.c: New file.
52873
52874         * modules/frexp: New file.
52875         * lib/frexp.c: New file.
52876         * m4/frexp.m4: New file.
52877         * lib/math_.h (frexp): New declaration.
52878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52879         REPLACE_FREXP.
52880         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52881
52882 2007-03-21  Bruno Haible  <bruno@clisp.org>
52883
52884         * modules/isnanl-tests: New file.
52885         * tests/test-isnanl.c: New file.
52886
52887         * modules/isnanl: New file.
52888         * lib/isnanl.h: New file.
52889         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52890         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52891         gl_FUNC_ISNANL_WORKS.
52892         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52893         New macros.
52894
52895 2007-03-21  Bruno Haible  <bruno@clisp.org>
52896
52897         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52898         lib/isnanl.h.
52899         (Include): Update.
52900         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52901         * lib/vasnprintf.c: Update.
52902         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52903         tests/test-isnanl.h, remove tests/test-isnanl.c.
52904         (Makefile.am): Update.
52905         * tests/test-isnanl-nolibm.c: New file.
52906         * tests/test-isnanl.h: New file.
52907         * tests/test-isnanl.c: Remove file.
52908
52909 2007-03-21  Jim Meyering  <jim@meyering.net>
52910
52911         When trying to open ".", treat ESTALE like EACCES.
52912         * lib/savewd.c (savewd_save): Resort to forking not just upon
52913         failure with EACCES, but also when errno is ESTALE.
52914
52915 2007-03-20  Bruno Haible  <bruno@clisp.org>
52916
52917         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52918         Needed on AIX 5.1. Reported by Matthew Woehlke.
52919
52920 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52921
52922         Suggestions by Bruno Haible:
52923         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52924         our own.
52925         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52926         * modules/acl (Depends-on): Add gettext.
52927
52928 2007-03-19  Bruno Haible  <bruno@clisp.org>
52929
52930         * modules/iconvme: Remove file.
52931         * lib/iconvme.h: Remove file.
52932         * lib/iconvme.c: Remove file.
52933         * m4/iconvme.m4: Remove file.
52934
52935 2007-03-19  Bruno Haible  <bruno@clisp.org>
52936
52937         * doc/relocatable-maint.texi: Break long shell script line.
52938         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52939
52940 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52941
52942         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52943         handle file_has_acl.
52944         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52945         * lib/acl.c: Move header inclusions and related macro defns into
52946         lib/acl-internal.h.
52947         (S_ISLNK): Remove defn, since that's now done for us.
52948         (file_has_acl): Move to lib/file-has-acl.c.
52949         Call acl_trivial if available.  This is the crucial part of the fix.
52950         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52951         shared within the library.  Rewrite a bit, partly to make it compatible
52952         with the GNU coding style.
52953         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52954         Remove unnecessary double-quotes.
52955         Don't test for acl_to_text; the build will catch that.
52956         Replace acl_entries if it doesn't exist and it is needed.
52957         Check for -lsec and acl_trivial (as used on Solaris 10).
52958         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52959         lib/file-has-acl.c.
52960         (Depends-on): Add sys_stat, for S_ISLNK.
52961
52962 2007-03-19  Ben Pfaff  <blp@gnu.org>
52963
52964         * doc/gnulib.texi: Fix typos.
52965         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52966
52967 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52968
52969         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52970         If size is zero here, buf must be zero.
52971
52972 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52973
52974         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52975         <bruno@clisp.org>.
52976
52977 2007-03-18  Bruno Haible  <bruno@clisp.org>
52978
52979         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52980         Suggested by Eric Blake.
52981
52982 2007-03-18  Ben Pfaff  <blp@gnu.org>
52983
52984         * doc/relocatable.texi: Recommend using as prefix a directory
52985         that does not exist and will never be created.  Based on
52986         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52987         and others.
52988
52989 2007-03-17  Bruno Haible  <bruno@clisp.org>
52990
52991         * lib/fchownat.c: Include lchown.h.
52992
52993 2007-03-17  Bruno Haible  <bruno@clisp.org>
52994
52995         Fix endless loop when the given allocated size was > INT_MAX.
52996         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52997         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52998         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52999         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53000         * lib/sprintf.c (sprintf): Likewise.
53001
53002 2007-03-17  Bruno Haible  <bruno@clisp.org>
53003
53004         * tests/test-argp-2.sh (func_compare): Output a context diff.
53005
53006 2007-03-17  Bruno Haible  <bruno@clisp.org>
53007
53008         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53009         locale's decimal-point character.
53010
53011 2007-03-17  Bruno Haible  <bruno@clisp.org>
53012
53013         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53014         before comparing it. Needed because on some platforms (e.g. x86) a
53015         'long double' occupies less bytes than sizeof (long double).
53016
53017 2007-03-17  Bruno Haible  <bruno@clisp.org>
53018
53019         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53020         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53021         * tests/test-getaddrinfo.c (simple): Likewise.
53022         * tests/test-read-file.c (main): Likewise.
53023
53024 2007-03-17  Bruno Haible  <bruno@clisp.org>
53025
53026         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53027
53028 2007-03-17  Bruno Haible  <bruno@clisp.org>
53029
53030         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53031         unused variable.
53032
53033 2007-03-17  Bruno Haible  <bruno@clisp.org>
53034
53035         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53036         * tests/test-c-strncasecmp.c: Likewise.
53037
53038 2007-03-17  Bruno Haible  <bruno@clisp.org>
53039
53040         * modules/stdlib (Depends-on): Add unistd.
53041         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53042         Needed for MacOS X 10.3.
53043
53044 2007-03-17  Bruno Haible  <bruno@clisp.org>
53045
53046         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53047
53048 2007-03-17  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53051
53052 2007-03-17  Bruno Haible  <bruno@clisp.org>
53053
53054         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53055         to reflect files copied from gnulib (with or without modifications).
53056         Suggested by Jim Meyering.
53057
53058 2007-03-17  Eric Blake  <ebb9@byu.net>
53059
53060         * NEWS: Document stdlib change from 2007-02-18.
53061
53062 2007-03-17  Jim Meyering  <jim@meyering.net>
53063
53064         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53065         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53066         someone uses a name containing shell meta-characters.
53067         Reported by Alfred M. Szmidt.
53068
53069         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53070
53071 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53072
53073         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53074         and copy gettext configuration files only if configure.ac contains
53075         a use of AM_GNU_GETTEXT_VERSION.
53076
53077 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53078
53079         * build-aux/bootstrap (gnulib_name): New variable.
53080         (gnulib_tool_options): Use it.
53081
53082 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53083
53084         * tests/test-des.c: Use new namespace.
53085
53086 2007-03-15  Bruno Haible  <bruno@clisp.org>
53087
53088         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53089         Reported by James Youngman <jay@gnu.org>.
53090
53091 2007-03-15  Bruno Haible  <bruno@clisp.org>
53092
53093         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53094         declared prototype. Needed with cc on OSF/1 5.1.
53095
53096 2007-03-15  Bruno Haible  <bruno@clisp.org>
53097
53098         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53099         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53100         (struct gl_list_implementation): Add dispose_fn argument to the
53101         'create_empty', 'create' methods.
53102         (struct gl_list_impl_base): Add field 'dispose_fn'.
53103         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53104         argument.
53105         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53106         dispose_fn argument.
53107         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53108         dispose_fn on the dropped values.
53109         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53110         dispose_fn argument.
53111         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53112         dropped values.
53113         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53114         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53115         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53116         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53117         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53118         argument.
53119         (gl_tree_list_free): Call dispose_fn on the dropped values.
53120         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53121         the dropped values.
53122         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53123         Add dispose_fn argument.
53124         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53125         Call dispose_fn on the dropped values.
53126         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53127         Add dispose_fn argument.
53128         (gl_sublist_create): Initialize the 'dispose_fn' field.
53129         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53130         * tests/test-array_list.c (main): Update.
53131         * tests/test-carray_list.c (main): Update.
53132         * tests/test-avltree_list.c (main): Update.
53133         * tests/test-rbtree_list.c (main): Update.
53134         * tests/test-avltreehash_list.c (main): Update.
53135         * tests/test-rbtreehash_list.c (main): Update.
53136         * tests/test-linked_list.c (main): Update.
53137         * tests/test-linkedhash_list.c (main): Update.
53138         * tests/test-array_oset.c (main): Update.
53139
53140 2007-03-15  Bruno Haible  <bruno@clisp.org>
53141
53142         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53143         (gl_oset_create_empty): Add dispose_fn argument.
53144         (struct gl_oset_implementation): Add dispose_fn argument to
53145         'create_empty' method.
53146         (struct gl_oset_impl_base): Add dispose_fn field.
53147         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53148         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53149         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53150         values.
53151         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53152         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53153         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53154         dropped value.
53155         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53156         dropped value.
53157         * tests/test-array_oset.c (main): Update.
53158         * tests/test-avltree_oset.c (main): Update.
53159         * tests/test-rbtree_oset.c (main): Update.
53160         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53161
53162 2007-03-13  Bruno Haible  <bruno@clisp.org>
53163
53164         * tests/test-stdbool.c (i): Update after last patch.
53165
53166 2007-03-12  Bruno Haible  <bruno@clisp.org>
53167
53168         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53169         the iswprint macro. Needed on Solaris 2.5.1.
53170
53171 2007-03-12  Bruno Haible  <bruno@clisp.org>
53172
53173         * tests/test-printf-frexp.c (main): Declare x as volatile.
53174
53175 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53176
53177         * doc/gnulib.texi (Build robot for gnulib): New section.
53178
53179 2007-03-12  Jim Meyering  <jim@meyering.net>
53180
53181         * build-aux/bootstrap: New file.
53182         * build-aux/bootstrap.conf: New file, from coreutils.
53183
53184 2007-03-11  Bruno Haible  <bruno@clisp.org>
53185
53186         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53187
53188 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53189
53190         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53191         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53192         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53193
53194 2007-03-11  Bruno Haible  <bruno@clisp.org>
53195
53196         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53197         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53198
53199 2007-03-11  Bruno Haible  <bruno@clisp.org>
53200
53201         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53202         formula. Needed for SunPRO C 5.0.
53203
53204 2007-03-11  Bruno Haible  <bruno@clisp.org>
53205
53206         * modules/long-options (Depends-on): Add getopt.
53207
53208 2007-03-11  Bruno Haible  <bruno@clisp.org>
53209
53210         * modules/modechange (Depends-on): Add stdbool.
53211
53212 2007-03-11  Bruno Haible  <bruno@clisp.org>
53213
53214         * modules/i-ring (Depends-on): Add stdbool.
53215
53216 2007-03-11  Bruno Haible  <bruno@clisp.org>
53217
53218         * modules/gc-des (Depends-on): Add stdbool.
53219
53220 2007-03-11  Bruno Haible  <bruno@clisp.org>
53221
53222         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53223
53224 2007-03-11  Bruno Haible  <bruno@clisp.org>
53225
53226         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53227
53228 2007-03-11  Bruno Haible  <bruno@clisp.org>
53229
53230         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53231
53232 2007-03-11  Bruno Haible  <bruno@clisp.org>
53233
53234         * lib/vasnprintf.c (sprintf): Undefine.
53235
53236 2007-03-11  Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53239         initializers in SunPRO C and Compaq C compilers.
53240
53241 2007-03-11  Bruno Haible  <bruno@clisp.org>
53242
53243         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53244         decrementing code ANSI C compliant.
53245
53246 2007-03-11  Bruno Haible  <bruno@clisp.org>
53247
53248         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53249         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53250
53251 2007-03-11  Bruno Haible  <bruno@clisp.org>
53252
53253         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53254         <stdbool.h> substitute doesn't pass.
53255
53256 2007-03-11  Bruno Haible  <bruno@clisp.org>
53257
53258         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53259
53260 2007-03-11  Bruno Haible  <bruno@clisp.org>
53261
53262         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53263         script, for submission to autobuild.josefsson.org.
53264
53265 2007-03-10  Bruno Haible  <bruno@clisp.org>
53266
53267         * modules/canonicalize-lgpl-tests: New file.
53268         * tests/test-canonicalize-lgpl.sh: New file.
53269         * tests/test-canonicalize-lgpl.c: New file.
53270
53271         * modules/c-strcase-tests: New file.
53272         * tests/test-c-strcase.sh: New file.
53273         * tests/test-c-strcasecmp.c: New file.
53274         * tests/test-c-strncasecmp.c: New file.
53275
53276         * modules/atexit-tests: New file.
53277         * tests/test-atexit.sh: New file.
53278         * tests/test-atexit.c: New file.
53279
53280 2007-03-10  Bruno Haible  <bruno@clisp.org>
53281
53282         * tests/test-binary-io.sh: Use temporary filenames that are not so
53283         likely to clash with those of other tests (in a parallel make).
53284         * tests/test-binary-io.c: Likewise.
53285
53286 2007-03-10  Bruno Haible  <bruno@clisp.org>
53287
53288         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53289         fallback; use #error instead.
53290         Suggested by Simon Josefsson.
53291
53292 2007-03-10  Bruno Haible  <bruno@clisp.org>
53293
53294         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53295         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53296         first and the last.
53297
53298 2007-03-10  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53301
53302 2007-03-10  Bruno Haible  <bruno@clisp.org>
53303
53304         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53305         "make distcheck".
53306         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53307         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53308         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53309
53310 2007-03-10  Bruno Haible  <bruno@clisp.org>
53311
53312         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53313         variable.
53314         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53315         variable.
53316
53317 2007-03-09  Eric Blake  <ebb9@byu.net>
53318         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53319
53320         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53321         types are not being provided by gnulib.
53322         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53323         types are supported.
53324
53325 2007-03-10  Bruno Haible  <bruno@clisp.org>
53326
53327         * lib/stdio_.h (__attribute__): New macro.
53328         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53329         vsprintf): Specify __attribute__ __format__ for GCC.
53330         Suggested by Eric Blake.
53331
53332 2007-03-09  Bruno Haible  <bruno@clisp.org>
53333
53334         * modules/printf-posix-tests: New file.
53335         * tests/test-printf-posix.sh: New file.
53336         * tests/test-printf-posix.c: New file.
53337
53338         * modules/printf-posix: New file.
53339         * lib/printf.c: New file.
53340         * m4/printf-posix-rpl.m4: New file.
53341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53342         REPLACE_PRINTF.
53343         * lib/stdio_.h (printf): New declaration.
53344         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53345         ____strfmon____): New macros.
53346         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53347         REPLACE_PRINTF.
53348
53349 2007-03-09  Bruno Haible  <bruno@clisp.org>
53350
53351         * tests/test-vasnprintf-posix2.sh: New file.
53352         * tests/test-vasnprintf-posix2.c: New file.
53353         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53354         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53355         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53356
53357         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53358         a locale dependent decimal point, rather than always '.'.
53359
53360 2007-03-09  Eric Blake  <ebb9@byu.net>
53361
53362         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53363         spite of platforms like Tandem/NSK that define it to -1.
53364
53365 2007-03-08  Bruno Haible  <bruno@clisp.org>
53366
53367         * modules/vprintf-posix-tests: New file.
53368         * tests/test-vprintf-posix.sh: New file.
53369         * tests/test-vprintf-posix.c: New file.
53370         * tests/test-printf-posix.h: New file.
53371
53372         * modules/vprintf-posix: New file.
53373         * lib/vprintf.c: New file.
53374         * m4/vprintf-posix.m4: New file.
53375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53376         REPLACE_VPRINTF.
53377         * lib/stdio_.h (vprintf): New declaration.
53378         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53379         REPLACE_VPRINTF.
53380
53381 2007-03-08  Bruno Haible  <bruno@clisp.org>
53382
53383         * modules/fprintf-posix-tests: New file.
53384         * tests/test-fprintf-posix.sh: New file.
53385         * tests/test-fprintf-posix.c: New file.
53386
53387         * modules/fprintf-posix: New file.
53388         * lib/fprintf.c: New file.
53389         * m4/fprintf-posix.m4: New file.
53390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53391         REPLACE_FPRINTF.
53392         * lib/stdio_.h (fprintf): New declaration.
53393         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53394         REPLACE_FPRINTF.
53395
53396 2007-03-08  Bruno Haible  <bruno@clisp.org>
53397
53398         * modules/vfprintf-posix-tests: New file.
53399         * tests/test-vfprintf-posix.sh: New file.
53400         * tests/test-vfprintf-posix.c: New file.
53401         * tests/test-fprintf-posix.h: New file.
53402         * tests/test-fprintf-posix.out: New file.
53403
53404         * modules/vfprintf-posix: New file.
53405         * lib/vfprintf.c: New file.
53406         * m4/vfprintf-posix.m4: New file.
53407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53408         REPLACE_VFPRINTF.
53409         * lib/stdio_.h (vfprintf): New declaration.
53410         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53411         REPLACE_VFPRINTF.
53412
53413 2007-03-08  Bruno Haible  <bruno@clisp.org>
53414
53415         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53416
53417 2007-03-08  Bruno Haible  <bruno@clisp.org>
53418
53419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53420         instead of 'expr' invocations.
53421         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53422         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53423         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53426         Suggested by Paul Eggert.
53427
53428 2007-03-08  Bruno Haible  <bruno@clisp.org>
53429
53430         * modules/fseterr-tests: New file.
53431         * tests/test-fseterr.c: New file.
53432
53433         * modules/fseterr: New file.
53434         * lib/fseterr.h: New file.
53435         * lib/fseterr.c: New file.
53436
53437 2007-03-08  Bruno Haible  <bruno@clisp.org>
53438
53439         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53440         * lib/getopt_.h: Likewise.
53441         * lib/mbswidth.h: Likewise.
53442         * lib/setenv.h: Likewise.
53443         * lib/vasnprintf.h: Likewise.
53444         * lib/vasprintf.h: Likewise.
53445         * lib/verror.h: Likewise.
53446         * lib/xsetenv.h: Likewise.
53447         * lib/xvasprintf.h: Likewise.
53448
53449 2007-03-08  Jim Meyering  <jim@meyering.net>
53450
53451         * users.txt: Add parted.
53452
53453         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53454
53455 2007-03-07  Bruno Haible  <bruno@clisp.org>
53456
53457         * m4/printf.m4: Make the shell script snippets copy&pastable.
53458
53459 2007-03-02  Bruno Haible  <bruno@clisp.org>
53460
53461         * lib/netinet_in_.h: New file.
53462         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53463         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53464         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53465         (Depends-on): Add absolute-header.
53466         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53467         into netinet/in.h.
53468
53469 2007-03-03  Bruno Haible  <bruno@clisp.org>
53470
53471         * lib/sys_select_.h: New file.
53472         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53473         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53474         * modules/sys_select (Files): Add lib/sys_select_.h.
53475         (Depends-on): Add absolute-header.
53476         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53477         into sys/select.h.
53478
53479 2007-03-02  Bruno Haible  <bruno@clisp.org>
53480
53481         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53482         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53483         values.
53484         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53485         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53486         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53487         * modules/sys_socket (Depends-on): Add absolute-header.
53488         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53489         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53490         (Include): Remove requirement of inclusion of <sys/types.h>.
53491
53492 2007-03-02  Bruno Haible  <bruno@clisp.org>
53493
53494         * lib/byteswap_.h (bswap_32): Fix formula.
53495
53496 2007-03-06  Bruno Haible  <bruno@clisp.org>
53497
53498         * modules/sprintf-posix-tests: New file.
53499         * tests/test-sprintf-posix.c: New file.
53500
53501         * modules/sprintf-posix: New file.
53502         * lib/sprintf.c: New file.
53503         * m4/sprintf-posix.m4: New file.
53504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53505         REPLACE_SPRINTF.
53506         * lib/stdio_.h (sprintf): New declaration.
53507         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53508         REPLACE_SPRINTF.
53509
53510 2007-03-06  Bruno Haible  <bruno@clisp.org>
53511
53512         * modules/vsprintf-posix-tests: New file.
53513         * tests/test-vsprintf-posix.c: New file.
53514         * tests/test-sprintf-posix.h: New file.
53515
53516         * modules/vsprintf-posix: New file.
53517         * lib/vsprintf.c: New file.
53518         * m4/vsprintf-posix.m4: New file.
53519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53520         REPLACE_VSPRINTF.
53521         * lib/stdio_.h (vsprintf): New declaration.
53522         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53523         REPLACE_VSPRINTF.
53524
53525 2007-03-06  Bruno Haible  <bruno@clisp.org>
53526
53527         * modules/vsnprintf (Depend-on): Remove minmax.
53528
53529 2007-03-06  Bruno Haible  <bruno@clisp.org>
53530
53531         * modules/snprintf-posix-tests: New file.
53532         * tests/test-snprintf-posix.c: New file.
53533
53534         * modules/snprintf-posix: New file.
53535         * m4/snprintf-posix.m4: New file.
53536         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53537         gl_FUNC_SNPRINTF.
53538         (gl_FUNC_SNPRINTF): Invoke it.
53539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53540         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53541         is set.
53542         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53543
53544 2007-03-06  Bruno Haible  <bruno@clisp.org>
53545
53546         * modules/vsnprintf-posix-tests: New file.
53547         * tests/test-vsnprintf-posix.c: New file.
53548         * tests/test-snprintf-posix.h: New file.
53549
53550         * modules/vsnprintf-posix: New file.
53551         * m4/vsnprintf-posix.m4: New file.
53552         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53553         gl_FUNC_VSNPRINTF.
53554         (gl_FUNC_VSNPRINTF): Invoke it.
53555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53556         * lib/stdio_.h (vsnprintf): Define as a replacement if
53557         REPLACE_VSNPRINTF is set.
53558         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53559
53560 2007-03-06  Bruno Haible  <bruno@clisp.org>
53561
53562         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53563         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53564
53565 2007-03-06  Bruno Haible  <bruno@clisp.org>
53566
53567         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53568         (asinl): Declare also if HAVE_DECL_ASINL is set.
53569         (atanl): Declare also if HAVE_DECL_ATANL is set.
53570         (ceill): Declare also if HAVE_DECL_CEILL is set.
53571         (cosl): Declare also if HAVE_DECL_COSL is set.
53572         (expl): Declare also if HAVE_DECL_EXPL is set.
53573         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53574         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53575         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53576         (logl): Declare also if HAVE_DECL_LOGL is set.
53577         (sinl): Declare also if HAVE_DECL_SINL is set.
53578         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53579         (tanl): Declare also if HAVE_DECL_TANL is set.
53580         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53582         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53583         declaration of frexpl, ldexpl.
53584         * modules/printf-frexpl (Depends-on): Add math.
53585         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53586
53587 2007-03-05  Bruno Haible  <bruno@clisp.org>
53588
53589         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53590         frexpl and ldexpl are declared.
53591         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53592
53593 2007-03-05  Bruno Haible  <bruno@clisp.org>
53594
53595         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53596         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53597
53598 2007-03-05  Bruno Haible  <bruno@clisp.org>
53599
53600         * lib/stdio_.h: Include <stddef.h>.
53601
53602 2007-03-05  Bruno Haible  <bruno@clisp.org>
53603
53604         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53605
53606 2007-03-05  Bruno Haible  <bruno@clisp.org>
53607
53608         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53609         NetBSD 4, from Ralf Wildenhues.
53610
53611 2007-03-04  Bruno Haible  <bruno@clisp.org>
53612
53613         * lib/vasprintf.h: Update #if logic for the case when the functions
53614         exist but are overridden.
53615
53616 2007-03-04  Bruno Haible  <bruno@clisp.org>
53617
53618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53619         implementations: glibc-2.4 and MacOS X 10.3.
53620         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53621         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53622         * tests/test-vasprintf-posix.c (test_function): Likewise.
53623
53624 2007-03-04  Bruno Haible  <bruno@clisp.org>
53625
53626         * modules/vasprintf-posix-tests: New file.
53627         * tests/test-vasprintf-posix.c: New file.
53628
53629         * modules/vasprintf-posix: New file.
53630         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53631         defined.
53632         * m4/vasprintf-posix.m4: New file.
53633         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53634         gl_FUNC_VASPRINTF.
53635         (gl_FUNC_VASPRINTF): Invoke it.
53636         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53637         here.
53638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53639
53640 2007-03-04  Bruno Haible  <bruno@clisp.org>
53641
53642         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53643         REPLACE_GETTIMEOFDAY.
53644         * modules/sys_time (Makefile.am): Likewise.
53645         * m4/sys_time_h.m4: Likewise.
53646         * m4/gettimeofday.m4: Likewise.
53647
53648 2007-03-04  Bruno Haible  <bruno@clisp.org>
53649
53650         * modules/vasnprintf-posix-tests: New file.
53651         * tests/test-vasnprintf-posix.c: New file.
53652
53653         * modules/vasnprintf-posix: New file.
53654         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53655         printf-frexpl.h.
53656         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53657         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53658         REPLACE_VASNPRINTF is defined.
53659         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53660         gl_FUNC_VASNPRINTF.
53661         (gl_FUNC_VASNPRINTF): Invoke it.
53662         * m4/vasnprintf-posix.m4: New file.
53663         * m4/printf.m4: New file.
53664
53665 2007-03-04  Bruno Haible  <bruno@clisp.org>
53666
53667         Compile progreloc.c only if --enable-relocatable is specified.
53668         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53669         if --enable-relocatable was specified.
53670         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53671         lib_SOURCES.
53672
53673 2007-03-04  Jim Meyering  <jim@meyering.net>
53674
53675         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53676         Use it consistently, rather than enumerating errno constants.
53677
53678 2007-03-04  Bruno Haible  <bruno@clisp.org>
53679
53680         * modules/xvasprintf-tests: New file.
53681         * tests/test-xvasprintf.c: New file.
53682
53683         * modules/vasprintf-tests: New file.
53684         * tests/test-vasprintf.c: New file.
53685
53686         * modules/vasnprintf-tests: New file.
53687         * tests/test-vasnprintf.c: New file.
53688
53689         * modules/vsnprintf-tests: New file.
53690         * tests/test-vsnprintf.c: New file.
53691
53692         * modules/snprintf-tests: New file.
53693         * tests/test-snprintf.c: New file.
53694
53695 2007-03-04  Bruno Haible  <bruno@clisp.org>
53696
53697         Compile relocatable.c only if --enable-relocatable is specified.
53698         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53699         gl_RELOCATABLE_LIBRARY.
53700         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53701         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53702         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53703         gl_RELOCATABLE_LIBRARY.
53704         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53705         (Makefile.am): Remove lib_SOURCES.
53706         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53707         gl_RELOCATABLE_LIBRARY.
53708         (Makefile.am): Remove lib_SOURCES.
53709         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53710         always.
53711         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53712         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53713
53714 2007-03-04  Bruno Haible  <bruno@clisp.org>
53715
53716         * modules/argmatch-tests: New file.
53717         * tests/test-argmatch.c: New file.
53718
53719         * tests/test-allocsa.c (main): Halve the number of loop runs.
53720
53721         * modules/alloca-opt-tests: New file.
53722         * tests/test-alloca-opt.c: New file.
53723
53724 2007-03-04  Jim Meyering  <jim@meyering.net>
53725
53726         Work around difference between Linux ACLs and Solaris 10 ZFS.
53727         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53728         for EINVAL.
53729
53730 2007-03-03  Bruno Haible  <bruno@clisp.org>
53731
53732         * modules/relocatable-prog (Depends-on): Add back progreloc's
53733         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53734
53735 2007-03-03  Bruno Haible  <bruno@clisp.org>
53736
53737         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53738         * modules/relocatable-lib: New file.
53739
53740 2007-03-03  Bruno Haible  <bruno@clisp.org>
53741
53742         * modules/relocatable-prog: Renamed from modules/relocatable.
53743         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53744
53745 2007-03-03  Bruno Haible  <bruno@clisp.org>
53746
53747         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53748         m4/relocatable-lib.m4.
53749         (Depends-on): Remove 'relocatable'.
53750         (configure.ac): Add gl_RELOCATABLE_NOP.
53751
53752 2007-03-03  Bruno Haible  <bruno@clisp.org>
53753
53754         * modules/relocatable-prog-wrapper: New file.
53755         * modules/relocatable (Depends-on): Add it. Remove all other
53756         dependencies except progname.
53757         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53758
53759         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53760         (gl_FUNC_STRERROR): Nop.
53761         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53762
53763         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53764         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53765
53766         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53767         (gl_FUNC_READLINK): Update.
53768
53769         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53770
53771 2007-03-03  Bruno Haible  <bruno@clisp.org>
53772
53773         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53774         * modules/xreadlink (Depends-on): Add unistd.
53775         * modules/xreadlink-with-size (Depends-on): Likewise.
53776
53777 2007-03-03  Bruno Haible  <bruno@clisp.org>
53778
53779         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53780         extracted from gt_FUNC_SETENV.
53781         (gt_FUNC_SETENV): Remove macro.
53782         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53783         remove gt_FUNC_SETENV.
53784
53785 2007-03-03  Bruno Haible  <bruno@clisp.org>
53786
53787         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53788         ENABLE_RELOCATABLE here.
53789         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53790
53791 2007-03-03  Bruno Haible  <bruno@clisp.org>
53792
53793         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53794         * tests/test-rbtreehash_list.c: Include progname.h.
53795         (main): Call set_program_name.
53796
53797         * modules/rbtree-oset-tests (Depends-on): Add progname.
53798         * tests/test-rbtree_oset.c: Include progname.h.
53799         (main): Call set_program_name.
53800
53801         * modules/rbtree-list-tests (Depends-on): Add progname.
53802         * tests/test-rbtree_list.c: Include progname.h.
53803         (main): Call set_program_name.
53804
53805         * modules/linked-list-tests (Depends-on): Add progname.
53806         * tests/test-linked_list.c: Include progname.h.
53807         (main): Call set_program_name.
53808
53809 2007-03-03  Bruno Haible  <bruno@clisp.org>
53810
53811         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53812         All uses of __restrict changed to _Restrict_.
53813         * lib/glob_.h (__restrict): Remove macro.
53814
53815 2007-03-02  Bruno Haible  <bruno@clisp.org>
53816
53817         * modules/gettext (configure.ac): Require gettext infrastructure
53818         from version 0.16.1.
53819
53820 2007-03-02  Bruno Haible  <bruno@clisp.org>
53821
53822         * modules/linkedhash-list-tests (Depends-on): Add progname.
53823         * tests/test-linkedhash_list.c: Include progname.h.
53824         (main): Call set_program_name.
53825
53826         * modules/carray-list-tests (Depends-on): Add progname.
53827         * tests/test-carray_list.c: Include progname.h.
53828         (main): Call set_program_name.
53829
53830         * modules/avltreehash-list-tests (Depends-on): Add progname.
53831         * tests/test-avltreehash_list.c: Include progname.h.
53832         (main): Call set_program_name.
53833
53834         * modules/avltree-oset-tests (Depends-on): Add progname.
53835         * tests/test-avltree_oset.c: Include progname.h.
53836         (main): Call set_program_name.
53837
53838         * modules/avltree-list-tests (Depends-on): Add progname.
53839         * tests/test-avltree_list.c: Include progname.h.
53840         (main): Call set_program_name.
53841
53842         * modules/array-oset-tests (Depends-on): Add progname.
53843         * tests/test-array_oset.c: Include progname.h.
53844         (main): Call set_program_name.
53845
53846         * modules/array-list-tests (Depends-on): Add progname.
53847         * tests/test-array_list.c: Include progname.h.
53848         (main): Call set_program_name.
53849
53850         * modules/argp-tests (Depends-on): Add progname.
53851         * tests/test-argp.c: Include argp.h first. Include progname.h.
53852         (main): Call set_program_name.
53853
53854 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * doc/gnulib-tool.texi (Initial import): Reword description of
53857         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53858         limited effect even if defined after the first system include.
53859
53860 2007-03-01  Bruno Haible  <bruno@clisp.org>
53861
53862         * build-aux/config.libpath: Update to libtool-1.5.22.
53863         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53864
53865 2007-03-01  Bruno Haible  <bruno@clisp.org>
53866
53867         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53868         foo_CFLAGS.
53869         Reported by Ralf Wildenhues.
53870
53871 2007-03-01  Bruno Haible  <bruno@clisp.org>
53872
53873         * build-aux/install-reloc: Remove object files left over by some
53874         compilers.
53875         Reported by Ralf Wildenhues.
53876
53877 2007-03-01  Bruno Haible  <bruno@clisp.org>
53878
53879         * build-aux/install-reloc: Break long lines.
53880
53881 2007-03-01  Bruno Haible  <bruno@clisp.org>
53882
53883         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53884         Reported by Ralf Wildenhues.
53885
53886 2007-03-01  Bruno Haible  <bruno@clisp.org>
53887
53888         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53889         include ordering constraints.
53890
53891 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53892
53893         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53895         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53896         as another example.
53897         * lib/time_.h: Fix misspelling.
53898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53899         Require gl_HEADER_TIME_H_DEFAULTS.
53900         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53901         * m4/time_r.m4 (gl_TIME_R): Likewise.
53902         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53903
53904 2007-03-01  Bruno Haible  <bruno@clisp.org>
53905
53906         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53907         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53908
53909 2007-03-01  Jim Meyering  <jim@meyering.net>
53910
53911         * modules/xreadlink (Maintainer): Add my name.
53912         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53913
53914 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53915             Bruno Haible  <bruno@clisp.org>
53916
53917         * build-aux/install-reloc: Compile also c-ctype.c.
53918         * build-aux/relocatable.sh.in: New file.
53919         * doc/relocatable.texi: New file.
53920         * doc/relocatable-maint.texi: New file.
53921         * doc/gnulib.texi: Include relocatable-maint.texi.
53922         * lib/progreloc.c: Include unistd.h unconditionally.
53923         * lib/relocwrapper.c: Include unistd.h unconditionally.
53924         Include c-ctype.h.
53925         (add_dotbin): Use c_tolower.
53926         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53927         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53928         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53929         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53930         to m4/relocatable-lib.m4.
53931         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53932         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53933         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53934         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53935         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53936         * modules/relocatable: New file.
53937         * modules/relocatable-lib: New file.
53938         * modules/relocatable-script: New file.
53939
53940 2007-02-28  Bruno Haible  <bruno@clisp.org>
53941
53942         Import --enable-relocatable infrastructure.
53943         * build-aux/config.libpath: New file, from GNU gettext.
53944         * build-aux/install-reloc: New file, from GNU gettext.
53945         * build-aux/reloc-ldflags: New file, from GNU gettext.
53946         * lib/relocatable.h: New file, from GNU gettext.
53947         * lib/relocatable.c: New file, from GNU gettext.
53948         * lib/relocwrapper.c: New file, from GNU gettext.
53949         * m4/relocatable.m4: New file, from GNU gettext.
53950
53951 2007-02-28  Bruno Haible  <bruno@clisp.org>
53952
53953         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53954
53955         * modules/xreadlink: New file, from GNU gettext with modifications.
53956         * lib/xreadlink.c: New file, from GNU gettext.
53957         * lib/xreadlink.h: Add comments.
53958         (xreadlink): New declaration.
53959
53960         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53961         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53962         lib/xreadlink-with-size.c.
53963         (configure.ac): Remove gl_XREADLINK invocation.
53964         (Makefile.am): Augment lib_SOURCES.
53965         * m4/xreadlink.m4: Remove file.
53966         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53967         (xreadlink_with_size): Renamed from xreadink.
53968         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53969         * modules/canonicalize (Depends-on): Replace xreadlink with
53970         xreadlink-with-size.
53971         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53972
53973 2007-02-25  Jim Meyering  <jim@meyering.net>
53974
53975         * build-aux/announce-gen: When complaining about excess arguments,
53976         list them.
53977
53978 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53979
53980         * README: Document signed integer overflow situation more
53981         accurately.
53982
53983 2007-02-25  Bruno Haible  <bruno@clisp.org>
53984
53985         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53986         'a' or 'A' conversion.
53987
53988 2007-02-25  Bruno Haible  <bruno@clisp.org>
53989
53990         * modules/filename: Renamed from modules/pathname.
53991         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53992         lib/concatpath.c with lib/concat-filename.c.
53993         (Makefile.am): Update.
53994         (Include): Replace pathname.h with filename.h.
53995         * lib/filename.h: Renamed from lib/pathname.h.
53996         (concatenated_filename): Renamed from concatenated_pathname.
53997         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53998         (concatenated_filename): Renamed from concatenated_pathname.
53999         * lib/findprog.c: Include filename.h instead of pathname.h.
54000         (find_in_path): Update.
54001         * lib/javacomp.c: Include filename.h instead of pathname.h.
54002         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54003         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54004         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54005         is_oldgcj_14_13_usable, is_javac_usable): Update.
54006         * lib/javaexec.c: Include filename.h instead of pathname.h.
54007         (execute_java_class): Update.
54008         * modules/findprog: Update.
54009         * modules/javacomp: Update.
54010         * modules/javaexec: Update.
54011         * MODULES.html.sh (File system functions): Add 'filename', remove
54012         'pathname'.
54013
54014 2007-02-25  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/printf-frexpl-tests: New file.
54017         * tests/test-printf-frexpl.c: New file.
54018
54019         * modules/printf-frexpl: New file.
54020         * lib/printf-frexpl.h: New file.
54021         * lib/printf-frexpl.c: New file.
54022         * m4/printf-frexpl.m4: New file.
54023
54024 2007-02-25  Bruno Haible  <bruno@clisp.org>
54025
54026         * modules/printf-frexp-tests: New file.
54027         * tests/test-printf-frexp.c: New file.
54028
54029         * modules/printf-frexp: New file.
54030         * lib/printf-frexp.h: New file.
54031         * lib/printf-frexp.c: New file.
54032         * m4/printf-frexp.m4: New file.
54033
54034 2007-02-25  Bruno Haible  <bruno@clisp.org>
54035
54036         Assume automake >= 1.10 for the tests.
54037         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54038         * modules/arctwo-tests: Likewise.
54039         * modules/argp-tests: Likewise.
54040         * modules/avltree-list-tests: Likewise.
54041         * modules/avltree-oset-tests: Likewise.
54042         * modules/avltreehash-list-tests: Likewise.
54043         * modules/carray-list-tests: Likewise.
54044         * modules/crc-tests: Likewise.
54045         * modules/des-tests: Likewise.
54046         * modules/gc-arcfour-tests: Likewise.
54047         * modules/gc-arctwo-tests: Likewise.
54048         * modules/gc-des-tests: Likewise.
54049         * modules/gc-hmac-md5-tests: Likewise.
54050         * modules/gc-hmac-sha1-tests: Likewise.
54051         * modules/gc-md2-tests: Likewise.
54052         * modules/gc-md4-tests: Likewise.
54053         * modules/gc-md5-tests: Likewise.
54054         * modules/gc-pbkdf2-sha1-tests: Likewise.
54055         * modules/gc-rijndael-tests: Likewise.
54056         * modules/gc-sha1-tests: Likewise.
54057         * modules/gc-tests: Likewise.
54058         * modules/getaddrinfo-tests: Likewise.
54059         * modules/hmac-md5-tests: Likewise.
54060         * modules/hmac-sha1-tests: Likewise.
54061         * modules/linked-list-tests: Likewise.
54062         * modules/linkedhash-list-tests: Likewise.
54063         * modules/lock-tests: Likewise.
54064         * modules/md2-tests: Likewise.
54065         * modules/md4-tests: Likewise.
54066         * modules/md5-tests: Likewise.
54067         * modules/rbtree-list-tests: Likewise.
54068         * modules/rbtree-oset-tests: Likewise.
54069         * modules/rbtreehash-list-tests: Likewise.
54070         * modules/read-file-tests: Likewise.
54071         * modules/rijndael-tests: Likewise.
54072         * modules/stdint-tests: Likewise.
54073         * modules/tls-tests: Likewise.
54074
54075 2007-02-24  Bruno Haible  <bruno@clisp.org>
54076
54077         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54078         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54079         function; instead check whether isnan with a double argument links.
54080         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54081         function; instead check whether isnan with a 'long double' argument
54082         links.
54083         Reported by Eric Blake <ebb9@byu.net>.
54084
54085 2007-02-24  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54088         defined.
54089         * lib/isnanl.c: Remove all code. Just include isnan.c.
54090         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54091
54092 2007-02-25  Jim Meyering  <jim@meyering.net>
54093
54094         Avoid conflicting types for 'unsetenv' on FreeBSD.
54095         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54096         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54097         in stdlib.h.
54098
54099 2007-02-24  Bruno Haible  <bruno@clisp.org>
54100
54101         * modules/isnanl-nolibm-tests: New file.
54102         * tests/test-isnanl.c: New file.
54103
54104         * modules/isnanl-nolibm: New file.
54105         * lib/isnanl.h: New file.
54106         * lib/isnanl.c: New file.
54107         * m4/isnanl.m4: New file.
54108
54109 2007-02-24  Bruno Haible  <bruno@clisp.org>
54110
54111         * modules/isnan-nolibm-tests: New file.
54112         * tests/test-isnan.c: New file.
54113
54114         * modules/isnan-nolibm: New file.
54115         * lib/isnan.h: New file.
54116         * lib/isnan.c: New file.
54117         * m4/isnan.m4: New file.
54118
54119 2007-02-24  Bruno Haible  <bruno@clisp.org>
54120
54121         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54122         assume that an exponent fits in 20 bits.
54123
54124 2007-02-24  Jim Meyering  <jim@meyering.net>
54125
54126         * m4/regex.m4: Update the description of the configure-time option,
54127         --without-included-regex, to state accurately what the defaults are,
54128         and perhaps to give people an idea why using this option is risky.
54129
54130 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54131
54132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54133         loops on small arguments.  This attempts to avoid the problem
54134         Bruno Haible reported for AIX 4.3.2 in
54135         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54136
54137 2007-02-23  Bruno Haible  <bruno@clisp.org>
54138
54139         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54140         Needed for help2man.
54141
54142 2007-02-23  Karl Berry  <karl@gnu.org>
54143
54144         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54145         exists, foo.h should be cvs-ignored, not committed.
54146
54147 2007-02-23  Eric Blake  <ebb9@byu.net>
54148
54149         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54150         * lib/stat-time.h (includes): Likewise.
54151         * lib/utimecmp.c (includes): Likewise.
54152         * lib/utimens.h (includes): Likewise.
54153         * lib/getdate.y (includes): Also include "timespec.h" for use
54154         internal to the module.
54155         * modules/utimens (Depends-on): Revert yesterday's patch.
54156         * modules/nanosleep (Depends-on): Add missing dependency.
54157
54158 2007-02-22  Bruno Haible  <bruno@clisp.org>
54159
54160         * lib/glob.c: Don't include getlogin_r.h.
54161
54162 2007-02-22  Jim Meyering  <jim@meyering.net>
54163
54164         * modules/utimens (Depends-on): Add timespec, required for
54165         utimens.h's inclusion of timespec.h.
54166
54167 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54168
54169         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54170         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54171         Schwab in
54172         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54173         I'll try to think of a better way to fix the Solaris problem.
54174
54175         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54176         like glibc; on Solaris 10, it fails with errno == EINVAL.
54177         POSIX says the behavior is unspecified if the first argument is NULL,
54178         so play it safe and never pass NULL to the system getcwd.
54179
54180 2007-02-21  Jim Meyering  <jim@meyering.net>
54181
54182         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54183         of gettimeofday.  It would conflict with the one now always
54184         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54185         an IRIX 6.5 build failure.
54186
54187 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54188
54189         Minor fixups to port to Solaris 10 with Sun C 5.8.
54190         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54191         * modules/getcwd (Depends-on): Add dirfd.
54192         * lib/putenv.c (putenv): #undef it.
54193         (rpl_putenv): New decl.
54194         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54195
54196 2007-02-20  Bruno Haible  <bruno@clisp.org>
54197
54198         * modules/stdio-tests: New file.
54199         * tests/test-stdio.c: New file.
54200
54201         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54202         (Depends-on): Add stdio.
54203         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54204         (Include): Use <stdio.h> instead of vsnprintf.h.
54205         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54206         HAVE_DECL_VSNPRINTF.
54207         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54208
54209         * modules/snprintf (Files): Remove lib/snprintf.h.
54210         (Depends-on): Add stdio.
54211         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54212         (Include): Use <stdio.h> instead of snprintf.h.
54213         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54214         HAVE_DECL_SNPRINTF.
54215         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54216         * lib/getaddrinfo.c: Likewise.
54217
54218         * modules/stdio: New file.
54219         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54220         * lib/snprintf.h: Remove file.
54221         * lib/vsnprintf.h: Remove file.
54222         * lib/.cppi-disable: Remove snprintf.h.
54223         * m4/stdio_h.m4: New file.
54224         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54225
54226 2007-02-20  Jim Meyering  <jim@meyering.net>
54227
54228         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54229         used by e.g., mingw.  From Bruno Haible.
54230
54231 2007-02-19  Bruno Haible  <bruno@clisp.org>
54232
54233         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54234         warnings.
54235         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54236
54237 2007-02-19  Bruno Haible  <bruno@clisp.org>
54238
54239         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54240         from mingw users.
54241
54242 2007-02-19  Bruno Haible  <bruno@clisp.org>
54243
54244         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54245         warnings.
54246         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54247
54248 2007-02-19  Jim Meyering  <jim@meyering.net>
54249
54250         Don't use FD after a successful "fdopendir (fd)".
54251         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54252         Reset it by calling dirfd on the just-obtained DIR*.
54253
54254         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54255         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54256
54257 2007-02-18  Bruno Haible  <bruno@clisp.org>
54258
54259         * lib/readlink.c: Include <unistd.h>.
54260         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54261         HAVE_READLINK.
54262         * modules/readlink (Depends-on): Add unistd.
54263         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54264         (Include): Add <unistd.h>.
54265
54266         * lib/getlogin_r.h: Remove file.
54267         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54268         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54269         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54270         HAVE_DECL_GETLOGIN_R.
54271         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54273         (Include): Use <unistd.h> instead of getlogin_r.h.
54274
54275         * lib/getcwd.h: Remove file.
54276         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54277         * lib/xgetcwd.c: Likewise.
54278         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54279         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54280         * modules/getcwd (Files): Remove lib/getcwd.h.
54281         (Depends-on): Add unistd.
54282         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54283         (Include): Use <unistd.h> instad of getcwd.h.
54284
54285         * lib/ftruncate.c: Include <unistd.h> first.
54286         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54287         Set HAVE_FTRUNCATE.
54288         * modules/ftruncate (Depends-on): Add unistd.
54289         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54290
54291         * lib/fchdir.c: Include <unistd.h> first.
54292         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54294         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54295         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54296         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54297
54298         * lib/dup2.c: Include <unistd.h> first.
54299         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54300         HAVE_DUP2.
54301         * modules/dup2 (Depends-on): Add unistd.
54302         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54303
54304         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54305         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54306         REPLACE_CHOWN. Don't define chown as a macro here.
54307         * modules/chown (Depends-on): Add unistd.
54308         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54309
54310         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54311         Add definition for GL_LINK_WARNING.
54312         (chown, dup2): New declarations.
54313         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54314         link warning.
54315         (ftruncate): New declaration.
54316         (getcwd): New declaration, taken from old getcwd.h.
54317         (getlogin_r): New declaration, taken from old getlogin_r.h.
54318         (readlink): New declaration.
54319         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54320         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54321         (gl_PREREQ_UNISTD): Remove macro.
54322         (gl_UNISTD_MODULE_INDICATOR): New macro.
54323         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54324         many new variables. Don't set UNISTD_H.
54325         * modules/unistd (Description): Change.
54326         (Depends-on): Add link-warning.
54327         (configure.ac): Update.
54328         (Makefile.am): Create unistd.h always. Substitute many new variables
54329         into it.
54330
54331 2007-02-18  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54334         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54335         HAVE_GETSUBOPT.
54336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54337         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54338         * lib/getsubopt.h: Remove file.
54339         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54340         (Depends-on): Add stdlib.
54341         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54342         (Includes): Use <stdlib.h> instead of getsubopt.h.
54343         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54344         Set HAVE_GETSUBOPT.
54345         * lib/getsubopt.c: Don't include getsubopt.h.
54346
54347 2007-02-18  Bruno Haible  <bruno@clisp.org>
54348
54349         * modules/fchdir (Depends-on): Add dup2.
54350
54351 2007-02-18  Bruno Haible  <bruno@clisp.org>
54352
54353         * lib/stdlib_.h: Handle glibc's special invocation convention
54354         specially.
54355
54356 2007-02-18  Bruno Haible  <bruno@clisp.org>
54357
54358         * modules/stdlib-tests: New file.
54359         * tests/test-stdlib.c: New file.
54360
54361         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54362         (Depends-on): Add stdlib.
54363         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54364         (Includes): Use <stdlib.h> instead of mkstemp.h.
54365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54366         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54367         * lib/mkstemp.c: Don't include mkstemp.h.
54368         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54369         * lib/stdlib--.h: Don't include mkstemp.h.
54370
54371         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54372         (Depends-on): Add stdlib.
54373         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54374         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54375         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54376         HAVE_MKDTEMP.
54377         * lib/mkdtemp.c: Don't include mkdtemp.h.
54378         * lib/clean-temp.c: Don't include mkdtemp.h.
54379
54380         * modules/exit (Files): Remove lib/exit.h.
54381         (Depends-on): Add stdlib.
54382         (Makefile.am): Remove lib_SOURCES.
54383         (Include): Use <stdlib.h> instead of exit.h.
54384         * lib/argmatch.c: Don't include exit.h.
54385         * lib/execute.c: Likewise.
54386         * lib/pagealign_alloc.c: Likewise.
54387         * lib/pipe.c: Likewise.
54388         * lib/wait-process.c: Likewise.
54389         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54390         * lib/exitfail.c: Likewise.
54391         * lib/savewd.c: Likewise.
54392         * lib/xsetenv.c: Likewise.
54393
54394         * modules/stdlib: New file.
54395         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54396         and extra comments about mkstemp().
54397         * lib/exit.h: Remove file.
54398         * lib/mkdtemp.h: Remove file.
54399         * lib/mkstemp.h: Remove file.
54400         * m4/stdlib_h.m4: New file.
54401         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54402
54403 2007-02-18  Bruno Haible  <bruno@clisp.org>
54404
54405         * modules/math-tests: New file.
54406         * tests/test-math.c: New file.
54407
54408         * modules/math: New file.
54409         * modules/mathl (Files): Remove lib/mathl.h.
54410         (Depends-on): Add math.
54411         (Makefile.am): Don't mention mathl.h.
54412         (Include): Use <math.h> instead of mathl.h.
54413         * lib/math_.h: New file.
54414         * lib/mathl.h: Remove file.
54415         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54416         mathl.h.
54417         * lib/asinl.c: Likewise.
54418         * lib/atanl.c: Likewise.
54419         * lib/ceill.c: Likewise.
54420         * lib/cosl.c: Likewise.
54421         * lib/expl.c: Likewise.
54422         * lib/floorl.c: Likewise.
54423         * lib/frexpl.c: Likewise.
54424         * lib/ldexpl.c: Likewise.
54425         * lib/logl.c: Likewise.
54426         * lib/sincosl.c: Likewise.
54427         * lib/sinl.c: Likewise.
54428         * lib/sqrtl.c: Likewise.
54429         * lib/tanl.c: Likewise.
54430         * lib/trigl.c: Likewise.
54431         * m4/math_h.m4: New file.
54432         * MODULES.html.sh (Mathematics): Add math.
54433
54434 2007-02-17  Bruno Haible  <bruno@clisp.org>
54435
54436         * modules/wctype-tests: New file.
54437         * tests/test-wctype.c: New file.
54438
54439         * modules/wchar-tests: New file.
54440         * tests/test-wchar.c: New file.
54441
54442         * modules/unistd-tests: New file.
54443         * tests/test-unistd.c: New file.
54444
54445         * modules/time-tests: New file.
54446         * tests/test-time.c: New file.
54447
54448         * modules/sysexits-tests: New file.
54449         * tests/test-sysexits.c: New file.
54450
54451         * modules/sys_time-tests: New file.
54452         * tests/test-sys_time.c: New file.
54453
54454         * modules/sys_stat-tests: New file.
54455         * tests/test-sys_stat.c: New file.
54456
54457         * modules/sys_socket-tests: New file.
54458         * tests/test-sys_socket.c: New file.
54459
54460         * modules/sys_select-tests: New file.
54461         * tests/test-sys_select.c: New file.
54462
54463         * modules/string-tests: New file.
54464         * tests/test-string.c: New file.
54465
54466         * modules/stdbool-tests: New file.
54467         * tests/test-stdbool.c: New file.
54468
54469         * modules/netinet_in-tests: New file.
54470         * tests/test-netinet_in.c: New file.
54471
54472         * modules/inttypes-tests: New file.
54473         * tests/test-inttypes.c: New file.
54474
54475         * modules/fcntl-tests: New file.
54476         * tests/test-fcntl.c: New file.
54477
54478         * modules/byteswap-tests: New file.
54479         * tests/test-byteswap.c: New file.
54480
54481         * modules/arpa_inet-tests: New file.
54482         * tests/test-arpa_inet.c: New file.
54483
54484 2007-02-17  Bruno Haible  <bruno@clisp.org>
54485
54486         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54487         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54488         if the corresponding module is not enabled. Emit link warnings if
54489         the function is used nevertheless.
54490         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54491         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54492         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54493         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54494         * modules/inttypes (Depends-on): Add link-warning.
54495         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54496         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54497         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54498         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54499         * modules/imaxdiv (configure.ac): Likewise.
54500         * modules/strtoimax (configure.ac): Likewise.
54501         * modules/strtoumax (configure.ac): Likewise.
54502
54503 2007-02-17  Bruno Haible  <bruno@clisp.org>
54504
54505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54506         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54507         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54508         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54509
54510 2007-02-17  Bruno Haible  <bruno@clisp.org>
54511
54512         * modules/link-warning: New file.
54513         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54514         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54515         * modules/string (Depends-on): Add link-warning.
54516         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54517         string.h.
54518         * MODULES.html.sh (Support for building libraries and executables): Add
54519         link-warning.
54520
54521 2007-02-17  Bruno Haible  <bruno@clisp.org>
54522
54523         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54524         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54525         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54526         long lines.
54527
54528 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54529             Bruno Haible  <bruno@clisp.org>
54530
54531         * modules/tmpfile: New file.
54532         * lib/tmpfile.c: New file.
54533         * m4/tmpfile.m4: New file.
54534         * MODULES.html.sh (func_all_modules): New section "Input/output".
54535
54536 2007-02-15  Bruno Haible  <bruno@clisp.org>
54537
54538         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54539         (supports_delete_on_close): New function.
54540         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54541
54542 2007-02-14  Bruno Haible  <bruno@clisp.org>
54543
54544         * modules/mbspcasecmp-tests: New file.
54545         * tests/test-mbspcasecmp.sh: New file.
54546         * tests/test-mbspcasecmp.c: New file.
54547
54548         New module mbspcasecmp.
54549         * modules/mbspcasecmp: New file.
54550         * lib/mbspcasecmp.c: New file.
54551         * lib/string_.h (strncasecmp): Change warning message.
54552         (mbspcasecmp): New declaration.
54553         * m4/mbspcasecmp.m4: New file.
54554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54555         GNULIB_MBSPCASECMP.
54556         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54557         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54558
54559 2007-02-14  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/mbsncasecmp-tests: New file.
54562         * tests/test-mbsncasecmp.sh: New file.
54563         * tests/test-mbsncasecmp.c: New file.
54564
54565         New module mbsncasecmp.
54566         * modules/mbsncasecmp: New file.
54567         * lib/mbsncasecmp.c: New file.
54568         * lib/string_.h (mbsncasecmp): New declaration.
54569         * m4/mbsncasecmp.m4: New file.
54570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54571         GNULIB_MBSNCASECMP.
54572         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54573         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54574
54575 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54576
54577         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54578         Verify that it doesn't overlap with our flags.
54579         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54580         do not have the desired effect in multibyte locales; instead, use
54581         mbscasecmp.
54582         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54583         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54584         we don't require GNU fnmatch ourselves (if our users require it, they
54585         should do so explicitly).
54586
54587         Fix regex code so it doesn't rely on strcasecmp.
54588         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54589         Otherwise, include gnulib's langinfo.h.
54590         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54591         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54592         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54593         * modules/regex (FILES): Remove m4/codeset.m4.
54594         (Depends-on): Add localcharset.  Remove strcase.
54595
54596 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54597
54598         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54599         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54600
54601 2007-02-13  Bruno Haible  <bruno@clisp.org>
54602
54603         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54605
54606 2007-02-12  Bruno Haible  <bruno@clisp.org>
54607
54608         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54609         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54610         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54611         time warning rather than a link error.
54612
54613 2007-02-12  Bruno Haible  <bruno@clisp.org>
54614
54615         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54616         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54617         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54618
54619 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54622         args, not 2.
54623
54624 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54625
54626         New module 'time', so that apps can include <time.h> as per
54627         POSIX and GNU instead of separate include files like time_r.h
54628         and timegm.h.  This implementation tries out a simpler approach
54629         for replacing decls in standard include files (as compared to
54630         the string module), somewhat as an experiment.
54631
54632         * config/srclist.txt: Comment out mktime.c for now.
54633         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54634         since it doesn't apply any more.  Use generic wording instead.
54635         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54636         'time'.
54637         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54638         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54639         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54640         Don't include <sys/types.h>; no longer needed since we assume C89.
54641         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54642         * lib/strftime.c: Likewise.
54643         * lib/time_r.c: Likewise.
54644         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54645         * lib/nanosleep.c: Include <time.h> first, to check interface.
54646         * lib/strptime.c: Likewise.
54647         * lib/time_r.c: Likewise.
54648         * lib/timegm.c: Likewise.
54649         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54650         needed.
54651         * lib/timegm.c: Don't include timegm.h; no longer needed.
54652         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54653         time.h now handles any problems in that area.
54654         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54655         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54656         that time.h defines struct timespec.
54657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54658         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54659         handles that.
54660         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54661         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54662         needed.  Set REPLACE_LOCALTIME.
54663         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54664         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54665         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54666         nanosleep; time_h.m4 now does that.  Don't require
54667         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54668         module handles this now.
54669         * modules/getdate (Depends-on): Remove timespec.  Add time.
54670         * modules/nanosleep (Depends-on): Likewise.
54671         * modules/stat-time (Depends-on): Likewise.
54672         * modules/nanosleep (Include): Include time.h, not timespec.h.
54673         * modules/strptime (Files): Remove lib/strptime.h.
54674         (Depends-on): Add extensions, time.
54675         (Include): Include time.h, not strptime.h.
54676         * modules/time_r (Files): Remove lib/time_r.h.
54677         (Depends-on): Add time.
54678         (Include): Include time.h, not time_r.h.
54679         * modules/timegm: Likewise.
54680         * modules/timespec (Description): Now does timespec-related decls
54681         of our own, instead of struct timespec itself.
54682         (Depends-on): Add time; remove extensions.
54683         (Maintainer): Add self.
54684         * modules/utimecmp (Depends-on): Add time; remove timespec.
54685         * modules/utimens (Depends-on): Likewise.
54686         * modules/xnanosleep (Depends-on): Likewise.
54687
54688 2007-02-11  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/c-strstr.c: Include allocsa.h.
54691         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54692         * lib/c-strcasestr.c: Include allocsa.h.
54693         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54694         * lib/strcasestr.c: Include allocsa.h.
54695         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54696         * lib/mbsstr.c: Include allocsa.h.
54697         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54698         allocsa/freesa instead of malloc/free.
54699         * lib/mbscasestr.c: Include allocsa.h.
54700         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54701         allocsa/freesa instead of malloc/free.
54702         * modules/c-strstr (Depends-on): Add allocsa.
54703         * modules/c-strcasestr (Depends-on): Likewise.
54704         * modules/strcasestr (Depends-on): Likewise.
54705         * modules/mbsstr (Depends-on): Likewise.
54706         * modules/mbscasestr (Depends-on): Likewise.
54707
54708 2007-02-11  Bruno Haible  <bruno@clisp.org>
54709
54710         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54711
54712         * modules/mbsspn-tests: New file.
54713         * tests/test-mbsspn.sh: New file.
54714         * tests/test-mbsspn.c: New file.
54715
54716 2007-02-11  Bruno Haible  <bruno@clisp.org>
54717
54718         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54719
54720         * modules/mbspbrk-tests: New file.
54721         * tests/test-mbspbrk.sh: New file.
54722         * tests/test-mbspbrk.c: New file.
54723
54724 2007-02-11  Bruno Haible  <bruno@clisp.org>
54725
54726         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54727         unneeded cast.
54728
54729         * modules/mbscspn-tests: New file.
54730         * tests/test-mbscspn.sh: New file.
54731         * tests/test-mbscspn.c: New file.
54732
54733 2007-02-11  Bruno Haible  <bruno@clisp.org>
54734
54735         * modules/mbscasecmp-tests: New file.
54736         * tests/test-mbscasecmp.sh: New file.
54737         * tests/test-mbscasecmp.c: New file.
54738
54739 2007-02-11  Bruno Haible  <bruno@clisp.org>
54740
54741         Ensure O(n) worst-case complexity of mbscasestr.
54742         * lib/mbscasestr.c: Include stdbool.h.
54743         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54744         functions.
54745         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54746         the bookkeeping indicates that it's worth it.
54747         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54748
54749         * modules/mbscasestr-tests: New file.
54750         * tests/test-mbscasestr1.c: New file.
54751         * tests/test-mbscasestr2.sh: New file.
54752         * tests/test-mbscasestr2.c: New file.
54753         * tests/test-mbscasestr3.sh: New file.
54754         * tests/test-mbscasestr3.c: New file.
54755         * tests/test-mbscasestr4.sh: New file.
54756         * tests/test-mbscasestr4.c: New file.
54757         * m4/locale-tr.m4: New file.
54758
54759 2007-02-11  Bruno Haible  <bruno@clisp.org>
54760
54761         Ensure O(n) worst-case complexity of mbsstr.
54762         * lib/mbsstr.c: Include stdbool.h.
54763         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54764         functions.
54765         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54766         bookkeeping indicates that it's worth it.
54767         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54768
54769         * modules/mbsstr-tests: New file.
54770         * tests/test-mbsstr1.c: New file.
54771         * tests/test-mbsstr2.sh: New file.
54772         * tests/test-mbsstr2.c: New file.
54773         * tests/test-mbsstr3.sh: New file.
54774         * tests/test-mbsstr3.c: New file.
54775         * m4/locale-fr.m4: New file.
54776
54777 2007-02-11  Bruno Haible  <bruno@clisp.org>
54778
54779         * lib/mbsrchr.c (mbsrchr): Fix bug.
54780
54781         * modules/mbsrchr-tests: New file.
54782         * tests/test-mbsrchr.sh: New file.
54783         * tests/test-mbsrchr.c: New file.
54784
54785 2007-02-11  Bruno Haible  <bruno@clisp.org>
54786
54787         * lib/mbschr.c (mbschr): Fix bug.
54788
54789         * modules/mbschr-tests: New file.
54790         * tests/test-mbschr.sh: New file.
54791         * tests/test-mbschr.c: New file.
54792         * m4/locale-zh.m4: New file.
54793
54794 2007-02-11  Bruno Haible  <bruno@clisp.org>
54795
54796         Support for copying multibyte string iterators.
54797         * lib/mbiter.h: Include <string.h>.
54798         (mbiter_multi_copy): New function.
54799         (mbi_copy): New macro.
54800         * lib/mbuiter.h: Include <string.h>.
54801         (mbuiter_multi_copy): New function.
54802         (mbui_copy): New macro.
54803
54804 2007-02-11  Bruno Haible  <bruno@clisp.org>
54805
54806         New module mbslen.
54807         * modules/mbslen: New file.
54808         * lib/mbslen.c: New file.
54809         * lib/string_.h (mbslen): New declaration.
54810         * m4/mbslen.m4: New file.
54811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54812         GNULIB_MBSLEN.
54813         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54814         * MODULES.html.sh (Internationalization functions): Add mbslen.
54815
54816 2007-02-11  Bruno Haible  <bruno@clisp.org>
54817
54818         Ensure O(n) worst-case complexity of strcasestr substitute.
54819         * lib/strcasestr.c: Include stdbool.h.
54820         (knuth_morris_pratt): New function.
54821         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54822         bookkeeping indicates that it's worth it.
54823         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54824
54825         * modules/strcasestr-tests: New file.
54826         * tests/test-strcasestr.c: New file.
54827
54828 2007-02-11  Bruno Haible  <bruno@clisp.org>
54829
54830         Ensure O(n) worst-case complexity of c_strcasestr.
54831         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54832         (knuth_morris_pratt): New function.
54833         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54834         the bookkeeping indicates that it's worth it.
54835         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54836
54837         * modules/c-strcasestr-tests: New file.
54838         * tests/test-c-strcasestr.c: New file.
54839
54840 2007-02-11  Bruno Haible  <bruno@clisp.org>
54841
54842         Ensure O(n) worst-case complexity of c_strstr.
54843         * lib/c-strstr.c: Include stdbool.h, string.h.
54844         (knuth_morris_pratt): New function.
54845         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54846         bookkeeping indicates that it's worth it.
54847         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54848
54849         * lib/c-strstr.c: Complete rewrite for maintainability.
54850
54851         * modules/c-strstr-tests: New file.
54852         * tests/test-c-strstr.c: New file.
54853
54854 2007-02-11  Bruno Haible  <bruno@clisp.org>
54855
54856         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54857         5.2.1 and earlier, whereby \055 was treated just like the range
54858         delimiter '-'.
54859         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54860
54861 2007-02-08  Bruno Haible  <bruno@clisp.org>
54862
54863         * modules/regex (Depends-on): Add stdbool.
54864         Reported by Dalibor Topic <robilad@kaffe.org>.
54865
54866 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54869         Prefer returning from main to exiting from it.
54870         Remove unnecessary parens after sizeof.
54871
54872 2007-02-05  Bruno Haible  <bruno@clisp.org>
54873
54874         New module mbssep.
54875         * modules/mbssep: New file.
54876         * lib/mbssep.c: New file.
54877         * lib/string_.h (strsep): Add a conditional link warning.
54878         (mbssep): New declaration.
54879         * m4/mbssep.m4: New file.
54880         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54881         GNULIB_MBSSEP.
54882         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54883         * MODULES.html.sh (Internationalization functions): Add mbssep.
54884
54885 2007-02-05  Bruno Haible  <bruno@clisp.org>
54886
54887         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54888         Optimize search in case of 1 delimiter.
54889
54890 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54891
54892         * lib/acl.h: Include sys/types.h before sys/acl.h.
54893
54894 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54895
54896         Merge upstream fix for glibc bugzilla #3957:
54897
54898         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54899
54900         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54901         bit for RE_HAT_LISTS_NOT_NEWLINE.
54902         (build_charclass_op): Remove bogus comment.
54903
54904 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54905
54906         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54907
54908 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54909
54910         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54911         * lib/memmem.c [!defined _LIBC]: Include config.h.
54912
54913 2007-02-04  Bruno Haible  <bruno@clisp.org>
54914
54915         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54916         warning message.
54917
54918 2007-02-04  Bruno Haible  <bruno@clisp.org>
54919
54920         New module mbstok_r.
54921         * modules/mbstok_r: New file.
54922         * lib/mbstok_r.c: New file.
54923         * lib/string_.h (strtok_r): Change argument names to match the
54924         comments. Add a conditional link warning.
54925         (mbstok_r): New declaration.
54926         * m4/mbstok_r.m4: New file.
54927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54928         GNULIB_MBSTOK_R.
54929         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54930         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54931
54932 2007-02-04  Bruno Haible  <bruno@clisp.org>
54933
54934         New module mbsspn.
54935         * modules/mbsspn: New file.
54936         * lib/mbsspn.c: New file.
54937         * lib/string_.h (strspn): Add a conditional link warning.
54938         (mbsspn): New declaration.
54939         * m4/mbsspn.m4: New file.
54940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54941         GNULIB_MBSSPN.
54942         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54943         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54944
54945 2007-02-04  Bruno Haible  <bruno@clisp.org>
54946
54947         New module mbspbrk.
54948         * modules/mbspbrk: New file.
54949         * lib/mbspbrk.c: New file.
54950         * lib/string_.h (strpbrk): Add a conditional link warning.
54951         (mbspbrk): New declaration.
54952         * m4/mbspbrk.m4: New file.
54953         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54954         GNULIB_MBSPBRK.
54955         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54956         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54957
54958 2007-02-04  Bruno Haible  <bruno@clisp.org>
54959
54960         New module mbscspn.
54961         * modules/mbscspn: New file.
54962         * lib/mbscspn.c: New file.
54963         * lib/string_.h (strcspn): Add a conditional link warning.
54964         (mbscspn): New declaration.
54965         * m4/mbscspn.m4: New file.
54966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54967         GNULIB_MBSCSPN.
54968         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54969         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54970
54971 2007-02-04  Bruno Haible  <bruno@clisp.org>
54972
54973         New module mbscasestr, reduced goal of strcasestr.
54974         * modules/mbscasestr: New file.
54975         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54976         (mbscasestr): Renamed from strcasestr.
54977         * lib/strcasestr.c: Don't include mbuiter.h.
54978         (strcasestr): Remove support for multibyte locales.
54979         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54980         Change the conditional link warning.
54981         (mbscasestr): New declaration.
54982         * m4/mbscasestr.m4: New file.
54983         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54984         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54985         REPLACE_STRCASESTR.
54986         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54988         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54989         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54990         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54991         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54992         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54993         (Depends-on): Remove mbuiter.
54994         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54995
54996 2007-02-04  Bruno Haible  <bruno@clisp.org>
54997
54998         Simplify handling of strncasecmp.
54999         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55000         the conditional link warning.
55001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55002         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55003         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55004         * modules/strcase (configure.ac): Don't invoke
55005         gl_STRING_MODULE_INDICATOR.
55006         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55007
55008 2007-02-04  Bruno Haible  <bruno@clisp.org>
55009
55010         New module mbscasecmp, reduced goal of strcasecmp.
55011         * modules/mbscasecmp: New file.
55012         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55013         (mbscasecmp): Renamed from strcasecmp.
55014         * lib/strcasecmp.c: Don't include mbuiter.h.
55015         (strcasecmp): Remove support for multibyte locales.
55016         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55017         Change the conditional link warning.
55018         (mbscasecmp): New declaration.
55019         * m4/mbscasecmp.m4: New file.
55020         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55021         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55022         REPLACE_STRCASECMP.
55023         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55025         GNULIB_MBSCASECMP.
55026         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55027         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55028         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55029         (Depends-on): Remove mbuiter.
55030         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55031
55032 2007-02-04  Bruno Haible  <bruno@clisp.org>
55033
55034         New module mbsstr. Remove module strstr.
55035         * modules/mbsstr: New file.
55036         * modules/strstr: Remove file.
55037         * lib/mbsstr.c: Renamed from lib/strstr.c.
55038         (mbsstr): Renamed from strstr.
55039         * lib/string_.h (strstr): Remove declaration. Change the conditional
55040         link warning.
55041         (mbsstr): New declaration.
55042         * m4/mbsstr.m4: New file.
55043         * m4/strstr.m4: Remove file.
55044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55045         REPLACE_STRSTR.
55046         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55047         Don't initialize GNULIB_STRSTR.
55048         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55049         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55050         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55051         (Support for systems lacking ANSI C 89): Remove strstr.
55052
55053 2007-02-04  Bruno Haible  <bruno@clisp.org>
55054
55055         New module mbsrchr.
55056         * modules/mbsrchr: New file.
55057         * lib/mbsrchr.c: New file.
55058         * lib/string_.h (strrchr): Add a conditional link warning.
55059         (mbsrchr): New declaration.
55060         * m4/mbsrchr.m4: New file.
55061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55062         GNULIB_MBSRCHR.
55063         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55064         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55065
55066 2007-02-04  Bruno Haible  <bruno@clisp.org>
55067
55068         New module mbschr.
55069         * modules/mbschr: New file.
55070         * lib/mbschr.c: New file.
55071         * lib/string_.h (strchr): Add a conditional link warning.
55072         (mbschr): New declaration.
55073         * m4/mbschr.m4: New file.
55074         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55075         GNULIB_MBSCHR.
55076         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55077         * MODULES.html.sh (Internationalization functions): Add mbschr.
55078
55079 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55080
55081         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55082
55083         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55084
55085 2007-02-04  Bruno Haible  <bruno@clisp.org>
55086
55087         New module description section 'configure.ac-early'.
55088         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55089         (func_get_autoconf_early_snippet): New function.
55090         (func_import, func_create_testdir): Use it. Remove special cases for
55091         modules 'extensions' and 'lock'.
55092         * modules/extensions (configure.ac-early): Require
55093         gl_USE_SYSTEM_EXTENSIONS.
55094         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55095
55096 2007-02-04  Bruno Haible  <bruno@clisp.org>
55097
55098         Make use of gcj-4.3's -fsource and -ftarget option.
55099         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55100         and if so try the options -fsource and -ftarget.
55101         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55102         source_version, ftarget_option, target_version arguments.
55103         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55104         (is_envjavac_oldgcj_14_14_usable): Renamed from
55105         is_envjavac_gcj_14_14_usable.
55106         (is_envjavac_oldgcj_14_13_usable): Renamed from
55107         is_envjavac_gcj_14_13_usable.
55108         (is_gcj_present): Update.
55109         (is_gcj_43, is_gcj43_usable): New functions.
55110         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55111         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55112         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55113         try the options -fsource and -ftarget.
55114
55115 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55116
55117         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55118         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55119         larger value.
55120
55121 2007-02-03  Jim Meyering  <jim@meyering.net>
55122
55123         Give tools a better chance to allocate space for very large buffers.
55124         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55125
55126         Make pwd and readlink work also when run with an unreadable parent dir
55127         on systems with openat support.
55128         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55129         provided getcwd function, even when we have openat support.
55130         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55131
55132 2007-02-02  Bruno Haible  <bruno@clisp.org>
55133
55134         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55135         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55136         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55137         portability problems if one of these functions is only used on specific
55138         platforms.
55139         Reported by Paul Eggert.
55140
55141 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55144         is causing more trouble than it's curing.
55145         * lib/regex_internal.h (__mempcpy): Remove.
55146         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55147         (and make the code a tad smaller to boot).
55148         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55149
55150 2007-02-02  Jim Meyering  <jim@meyering.net>
55151
55152         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55153         section, not in the Makefile.am: one.
55154
55155 2007-02-02  Eric Blake  <ebb9@byu.net>
55156
55157         * lib/strchrnul.c: Always include config.h first.
55158
55159         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55160         gnulib strstr is not necessary here.
55161
55162 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55163
55164         * m4/socklen.m4: Fix typo.
55165
55166 2007-02-02  Eric Blake  <ebb9@byu.net>
55167
55168         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55169         * modules/netinet_in (Makefile.am): Likewise.
55170
55171 2007-02-01  Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/string_.h (GL_LINK_WARNING): New macro.
55174         (strcasecmp, strstr, strcasestr): If provided by the system,
55175         conditionally define as a macro that leads to a warning instead of to
55176         an error.
55177         (strncasecmp): Conditionally define as a macro that leads to a warning.
55178
55179 2007-02-01  Karl Berry  <karl@gnu.org>
55180
55181         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55182
55183 2007-02-01  Bruno Haible  <bruno@clisp.org>
55184
55185         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55186         renamings.
55187
55188 2007-02-01  Eric Blake  <ebb9@byu.net>
55189
55190         * modules/regex (Depends-on): Revert dependence on mempcpy.
55191         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55192         module's definition of mempcpy.
55193         Reported by Paul Eggert.
55194
55195 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55196
55197         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55198         the symbol XYZ before redefining it.  This fixes a problem with
55199         programs that don't use XYZ, when compiled on systems that define
55200         XYZ to something else.
55201
55202 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55203
55204         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55205         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55206         writeable to group or other and (2) is intended to have a special
55207         mode bit that is set or cleared.  In such a case, the directory
55208         should be neither group- nor other-writeable until the special
55209         mode bits are right.
55210
55211 2007-01-31  Eric Blake  <ebb9@byu.net>
55212
55213         * modules/mountlist (Depends-on): Add strstr.
55214
55215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55216         bug.
55217         * modules/string (Makefile.am): Remove redundant replacement.
55218         * modules/regex (Depends-on): Add mempcpy.
55219
55220 2007-01-31  Bruno Haible  <bruno@clisp.org>
55221
55222         New module description field 'Link'.
55223         * gnulib-tool (func_usage): Document --extract-link-directive.
55224         (sed_extract_prog): Recognize 'Link' directive.
55225         (func_get_link_directive): New function.
55226         (func_import): Show summary of link directives.
55227         Handle --extract-link-directive option.
55228         * modules/acl (Link): New section.
55229         * modules/clock-time (Link): New section.
55230         * modules/euidaccess (Link): New section.
55231         * modules/gettext (Link): New section.
55232         * modules/iconv (Link): New section.
55233         * modules/lock (Link): New section.
55234         * modules/nanosleep (Link): New section.
55235         * modules/readline (Link): New section.
55236
55237 2007-01-27  Bruno Haible  <bruno@clisp.org>
55238
55239         Enforce the use of gnulib modules for unportable <string.h> functions.
55240         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55241         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55242         (gl_HEADER_STRING_H_BODY): Require it.
55243         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55244         the symbol XYZ to one that gives a link error.
55245         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55246         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55247         * modules/mempcpy (configure.ac): Likewise.
55248         * modules/memrchr (configure.ac): Likewise.
55249         * modules/stpcpy (configure.ac): Likewise.
55250         * modules/stpncpy (configure.ac): Likewise.
55251         * modules/strcase (configure.ac): Likewise.
55252         * modules/strcasestr (configure.ac): Likewise.
55253         * modules/strchrnul (configure.ac): Likewise.
55254         * modules/strdup (configure.ac): Likewise.
55255         * modules/strndup (configure.ac): Likewise.
55256         * modules/strnlen (configure.ac): Likewise.
55257         * modules/strpbrk (configure.ac): Likewise.
55258         * modules/strsep (configure.ac): Likewise.
55259         * modules/strstr (configure.ac): Likewise.
55260         * modules/strtok_r (configure.ac): Likewise.
55261
55262 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55263
55264         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55265
55266 2007-01-30  Jim Meyering  <jim@meyering.net>
55267
55268         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55269
55270 2007-01-29  Bruno Haible  <bruno@clisp.org>
55271
55272         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55273         * lib/execute.c: Likewise.
55274         * lib/pipe.c: Likewise.
55275         * lib/printf-args.h: Likewise.
55276         * lib/printf-args.c: Likewise.
55277         * lib/printf-parse.c: Likewise.
55278         * lib/vasnprintf.c: Likewise.
55279
55280 2007-01-29  Eric Blake  <ebb9@byu.net>
55281
55282         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55283         declaration.
55284
55285 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55286
55287         * lib/strptime.h (strptime): Use 'restrict' for args where
55288         POSIX requires this.
55289         * lib/strptime.c (strptime): Likewise.
55290         Change license notice from LGPL to GPL, since gnulib-tool will
55291         change this as needed.
55292         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55293         defined.
55294         Include "strptime.h" first, to check interface.
55295         Do not #undef _LIBC and _NL_CURRENT.
55296         Do not include <stdlib.h>; no longer needed.
55297         Include "time_r.h" and declare ptime_locale_status
55298         only if _LIBC is not defined.
55299         (__P): Remove unused macro.
55300         (match_string): Bring back glibc version, but use it only if _LIBC
55301         is defined.
55302         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55303         Remove unnecessary assertion and abort() call.
55304         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55305         * m4/strptime.m4: Fix serial number comment.
55306         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55307         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55308         (Depends-on): Add time_r.
55309
55310 2007-01-29  Bruno Haible  <bruno@clisp.org>
55311
55312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55313         strptime.
55314         * modules/strptime (Depends-on): Add stdbool.
55315         * lib/strptime.h: Include <time.h> always. Add comments.
55316
55317 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55318
55319         * modules/strptime: New file.
55320         * lib/strptime.h: New file.
55321         * lib/strptime.c: New file.
55322         * m4/strptime.m4: New file.
55323
55324 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55325
55326         * MODULES.html.sh: New module mpsort.
55327         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55328
55329         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55330         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55332         All uses changed.
55333         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55334         All uses changed.
55335         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55336         to _Restrict_.
55337         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55338         the parameter matches the prototype.
55339
55340 2007-01-28  Jim Meyering  <jim@meyering.net>
55341
55342         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55343         sys/time.h here, reverting that part of the previous patch:
55344         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55345
55346 2007-01-28  Bruno Haible  <bruno@clisp.org>
55347
55348         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55349         value of $(SYS_TIME_H).
55350         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55351         remove it conditionally, too. [added by Jim Meyering]
55352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55353         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55354         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55355         GETTIMEOFDAY_REPLACEMENT to 1.
55356
55357 2007-01-28  Bruno Haible  <bruno@clisp.org>
55358
55359         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55360         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55362         Set UNISTD_H instead of UNISTD_H2.
55363         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55364
55365 2007-01-28  Bruno Haible  <bruno@clisp.org>
55366
55367         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55368         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55369
55370 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55371
55372         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55373         (func_create_testdir): Ensure C locale for `grep' and `tr'
55374         character ranges.
55375         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55376         ACLOCAL_AMFLAGS parsing state machine.
55377
55378 2007-01-27  Bruno Haible  <bruno@clisp.org>
55379
55380         * modules/unistr/base: Update.
55381
55382 2007-01-27  Bruno Haible  <bruno@clisp.org>
55383
55384         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55385         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55386         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55387         modules/unistr/u32-mbtouc.
55388         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55389         * lib/unistr.h: Update.
55390         * lib/linebreak.c: Update.
55391         * modules/unistr/u32-mbtouc: Renamed from
55392         modules/unistr/u32-mbtouc-safe.
55393         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55394         * lib/unistr.h: Update.
55395         * lib/unistr/u32-to-u8.c: Update.
55396         * lib/unistr/u32-to-u16.c: Update.
55397
55398 2007-01-27  Bruno Haible  <bruno@clisp.org>
55399
55400         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55401         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55402         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55403         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55404         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55405         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55406         modules/unistr/u16-mbtouc.
55407         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55408         * lib/unistr.h: Update.
55409         * lib/linebreak.c: Update.
55410         * modules/linebreak: Update.
55411         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55412         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55413         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55414         * modules/unistr/u16-mbtouc: Renamed from
55415         modules/unistr/u16-mbtouc-safe.
55416         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55417         * lib/unistr.h: Update.
55418         * lib/unistr/u16-to-u8.c: Update.
55419         * modules/unistr/u16-to-u8: Update.
55420         * lib/unistr/u16-to-u32.c: Update.
55421         * modules/unistr/u16-to-u32: Update.
55422
55423 2007-01-27  Bruno Haible  <bruno@clisp.org>
55424
55425         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55426         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55427         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55428         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55429         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55430         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55431         modules/unistr/u8-mbtouc.
55432         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55433         * lib/unistr.h: Update.
55434         * lib/striconveh.c: Update.
55435         * modules/striconveh: Update.
55436         * lib/linebreak.c: Update.
55437         * modules/linebreak: Update.
55438         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55439         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55440         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55441         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55442         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55443         * lib/unistr.h: Update.
55444         * lib/striconveh.c: Update.
55445         * modules/striconveh: Update.
55446         * lib/unistr/u8-to-u16.c: Update.
55447         * modules/unistr/u8-to-u16: Update.
55448         * lib/unistr/u8-to-u32.c: Update.
55449         * modules/unistr/u8-to-u32: Update.
55450
55451 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55452
55453         Sync from Libtool.
55454         * lib/argz.c: Do not include strings.h nor memory.h, include
55455         string.h unconditionally.  Patch by Simon Josefsson.
55456
55457 2007-01-27  Bruno Haible  <bruno@clisp.org>
55458
55459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55460         from gl_HEADER_STRING_H_BODY.
55461         (gl_HEADER_STRING_H_BODY): Require it.
55462         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55463         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55464         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55465         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55466         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55467         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55468         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55469         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55470         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55471         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55472         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55473         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55474         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55475         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55476         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55477
55478 2007-01-27  Bruno Haible  <bruno@clisp.org>
55479
55480         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55481         check_PROGRAMS into noinst_PROGRAMS.
55482         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55483         check_PROGRAMS in this case.
55484         (func_import): Set for_test to false.
55485         (func_create_testdir): Set for_test to true.
55486
55487 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55488             Bruno Haible  <bruno@clisp.org>
55489
55490         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55491         (Depends-on): Add string.
55492         (Includes): Use <string.h> instead of strcasestr.h.
55493         * modules/string (Makefile.am): Also substitute the value of
55494         REPLACE_STRCASESTR.
55495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55496         assume strcasestr is declared in <string.h> not <strings.h>. Also
55497         set REPLACE_STRCASESTR.
55498         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55499         REPLACE_STRCASESTR.
55500         * lib/strcasestr.h: Remove file.
55501         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55502         * lib/string_.h (strcasestr): New declaration.
55503
55504 2007-01-27  Bruno Haible  <bruno@clisp.org>
55505
55506         * lib/string_.h: Use 'extern'.
55507
55508 2007-01-27  Jim Meyering  <jim@meyering.net>
55509
55510         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55511         of set-but-not-used local, "q".
55512
55513         * lib/mempcpy.c: Include <config.h> before <string.h>.
55514         This fixes a compilation error on HP-UX, due to the system's
55515         "restrict"-using mempcpy prototype.
55516
55517 2007-01-26  Bruno Haible  <bruno@clisp.org>
55518
55519         Small optimization.
55520         * lib/javacomp.c: Include c-strstr.h.
55521          (is_envjavac_gcj): Use c_strstr instead of strstr.
55522         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55523
55524 2007-01-26  Bruno Haible  <bruno@clisp.org>
55525
55526         * MODULES.html.sh (Unicode string functions): Add the new modules.
55527
55528         * modules/uniconv/u32-strconv-to-locale: New file.
55529         * lib/uniconv/u32-strconv-to-locale.c: New file.
55530
55531         * modules/uniconv/u16-strconv-to-locale: New file.
55532         * lib/uniconv/u16-strconv-to-locale.c: New file.
55533
55534         * modules/uniconv/u8-strconv-to-locale: New file.
55535         * lib/uniconv/u8-strconv-to-locale.c: New file.
55536
55537         * modules/uniconv/u32-strconv-from-locale: New file.
55538         * lib/uniconv/u32-strconv-from-locale.c: New file.
55539
55540         * modules/uniconv/u16-strconv-from-locale: New file.
55541         * lib/uniconv/u16-strconv-from-locale.c: New file.
55542
55543         * modules/uniconv/u8-strconv-from-locale: New file.
55544         * lib/uniconv/u8-strconv-from-locale.c: New file.
55545
55546         * modules/uniconv/u32-strconv-to-enc: New file.
55547         * lib/uniconv/u32-strconv-to-enc.c: New file.
55548         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55549         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55550
55551         * modules/uniconv/u16-strconv-to-enc: New file.
55552         * lib/uniconv/u16-strconv-to-enc.c: New file.
55553         * lib/uniconv/u-strconv-to-enc.h: New file.
55554         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55555         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55556
55557         * modules/uniconv/u8-strconv-to-enc: New file.
55558         * lib/uniconv/u8-strconv-to-enc.c: New file.
55559         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55560         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55561
55562         * modules/uniconv/u32-strconv-from-enc: New file.
55563         * lib/uniconv/u32-strconv-from-enc.c: New file.
55564         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55565         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55566
55567         * modules/uniconv/u16-strconv-from-enc: New file.
55568         * lib/uniconv/u16-strconv-from-enc.c: New file.
55569         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55570         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55571
55572         * modules/uniconv/u8-strconv-from-enc: New file.
55573         * lib/uniconv/u8-strconv-from-enc.c: New file.
55574         * lib/uniconv/u-strconv-from-enc.h: New file.
55575         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55576         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55577
55578         * modules/uniconv/u32-conv-from-enc: New file.
55579         * lib/uniconv/u32-conv-from-enc.c: New file.
55580         * modules/uniconv/u32-conv-from-enc-tests: New file.
55581         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55582
55583         * modules/uniconv/u16-conv-from-enc: New file.
55584         * lib/uniconv/u16-conv-from-enc.c: New file.
55585         * lib/uniconv/u-conv-from-enc.h: New file.
55586         * modules/uniconv/u16-conv-from-enc-tests: New file.
55587         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55588
55589         * modules/uniconv/u8-conv-from-enc: New file.
55590         * lib/uniconv/u8-conv-from-enc.c: New file.
55591         * modules/uniconv/u8-conv-from-enc-tests: New file.
55592         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55593
55594         * modules/uniconv/base: New file.
55595         * lib/uniconv.h: New file.
55596
55597 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55598
55599         * doc/gnulib-tool.texi (Initial import): Update to match current
55600         behavior with strdup module.
55601         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55602         * lib/memmem.h: Remove; all uses removed.  This is now done
55603         by <string.h>.
55604         * lib/mempcpy.h: Likewise.
55605         * lib/memrchr.h: Likewise.
55606         * lib/stpcpy.h: Likewise.
55607         * lib/stpncpy.h: Likewise.
55608         * lib/strcase.h: Likewise.
55609         * lib/strchrnul.h: Likewise.
55610         * lib/strdup.h: Likewise.
55611         * lib/strndup.h: Likewise.
55612         * lib/strnlen.h: Likewise.
55613         * lib/strpbrk.h: Likewise.
55614         * lib/strsep.h: Likewise.
55615         * lib/strstr.h: Likewise.
55616         * lib/strtok_r.h: Likewise.
55617         * lib/string_.h: New file.
55618         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55619         Rely on <string.h> instead.
55620         * lib/canon-host.c: Likewise.
55621         * lib/chdir-long.c: Likewise.
55622         * lib/concatpath.c: Likewise.
55623         * lib/exclude.c: Likewise.
55624         * lib/fchdir.c: Likewise.
55625         * lib/getaddrinfo.c: Likewise.
55626         * lib/getcwd.c: Likewise.
55627         * lib/getsubopt.c: Likewise.
55628         * lib/glob.c: Likewise.
55629         * lib/hard-locale.c: Likewise.
55630         * lib/iconvme.c: Likewise.
55631         * lib/javacomp.c: Likewise.
55632         * lib/mempcpy.c: Likewise.
55633         * lib/memrchr.c: Likewise.
55634         * lib/regex_internal.h: Likewise.
55635         * lib/stpncpy.c: Likewise.
55636         * lib/strcasecmp.c: Likewise.
55637         * lib/strchrnul.c: Likewise.
55638         * lib/strdup.c: Likewise.
55639         * lib/striconv.c: Likewise.
55640         * lib/striconveh.c: Likewise.
55641         * lib/striconveha.c: Likewise.
55642         * lib/strncasecmp.c: Likewise.
55643         * lib/strndup.c: Likewise.
55644         * lib/strnlen.c: Likewise.
55645         * lib/strsep.c: Likewise.
55646         * lib/strstr.c: Likewise.
55647         * lib/strtok_r.c: Likewise.
55648         * lib/userspec.c: Likewise.
55649         * lib/w32spawn.h: Likewise.
55650         * lib/xstrndup.c: Likewise.
55651         * lib/mountlist.c (strstr): Remove decl.
55652         * m4/string_h.m4: New file.
55653         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55654         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55655         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55656         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55657         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55658         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55659         Set REPLACE_STRCASECMP if necessary.
55660         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55661         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55662         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55663         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55664         HAVE_DECL_STRDUP if necessary.
55665         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55666         since gl_FUNC_STRNDUP does that now.
55667         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55668         Check for decl here...
55669         (gl_PREREQ_STRNLEN): ... not here.
55670         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55671         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55672         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55673         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55674         necessary.
55675         * modules/string: New file.
55676         * modules/memmem (Files): Remove special-purpose include file.
55677         (Depends-on): Add string.
55678         (Include): Include <string.h>, not the removed file.
55679         * modules/mempcpy: Likewise.
55680         * modules/memrchr: Likewise.
55681         * modules/stpcpy: Likewise.
55682         * modules/stpncpy: Likewise.
55683         * modules/strcase: Likewise.
55684         * modules/strchrnul: Likewise.
55685         * modules/strdup: Likewise.
55686         * modules/strndup: Likewise.
55687         * modules/strnlen: Likewise.
55688         * modules/strpbrk: Likewise.
55689         * modules/strsep: Likewise.
55690         * modules/strstr: Likewise.
55691         * modules/strtok_r: Likewise.
55692         * tests/test-dirname.c: Don't include "strdup.h", since
55693         <string.h> now suffices.
55694         * tests/test-memmem.c: Don't include "memmem.h", since
55695         <string.h> now suffices.
55696
55697 2007-01-25  Bruno Haible  <bruno@clisp.org>
55698
55699         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55700         *resultp is 0.
55701
55702         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55703         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55704         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55705         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55706
55707         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55708         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55709         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55710         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55711         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55712         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55713
55714 2007-01-24  Bruno Haible  <bruno@clisp.org>
55715
55716         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55717         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55718         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55719         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55720         gl_FUNC_FTS_CORE.
55721         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55722         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55723         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55724         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55725         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55726         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55727         gl_FUNC_FCHOWNAT.
55728         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55729         gl_FUNC_STRFTIME.
55730         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55731         Reported by Ralf Wildenhues.
55732
55733 2007-01-24  Bruno Haible  <bruno@clisp.org>
55734
55735         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55736         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55737         gl_GETADDRINFO.
55738         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55739         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55740         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55741
55742 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55743
55744         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55745         Don't use 'exit'; just return from 'main'.
55746         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55747
55748         * lib/fnmatch_.h: Readjust white space and comments to match
55749         glibc, to avoid spurious diffs.
55750
55751 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55752
55753         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55754         2004-12-01 change by Jakub Jelinek, since this code won't compile
55755         if !LIBC.  Problem reported by Bob Proulx.
55756
55757 2007-01-23  Bruno Haible  <bruno@clisp.org>
55758
55759         * lib/striconveh.c: Include c-strcaseeq.h.
55760         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55761         * modules/striconveh (Depends-on): Add c-strcaseeq.
55762
55763 2007-01-23  Bruno Haible  <bruno@clisp.org>
55764
55765         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55766
55767         * modules/c-strcaseeq: New file.
55768         * lib/c-strcaseeq.h: New file.
55769
55770         * modules/streq: New file.
55771         * lib/streq.h: New file.
55772
55773 2007-01-23  Bruno Haible  <bruno@clisp.org>
55774
55775         * modules/striconveha-tests: New file.
55776         * tests/test-striconveha.c: New file.
55777
55778         * lib/striconveha.h: Include <stdbool.h>.
55779         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55780         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55781         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55782         (mem_iconveha): New function.
55783         (str_iconveha_notranslit): Renamed from str_iconveha.
55784         (str_iconveha): New function.
55785         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55786         c-strcase.
55787
55788 2007-01-23  Bruno Haible  <bruno@clisp.org>
55789
55790         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55791         encodings without forgiving before trying any encoding with handler.
55792         (str_iconveha): Try all encodings without forgiving before trying any
55793         encoding with handler.
55794
55795 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55796
55797         Import the following changes from libc.
55798
55799         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55800
55801         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55802
55803         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55804
55805         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55806         normal_bracket label.
55807
55808         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55809
55810         [BZ #361]
55811         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55812         to normal_bracket after fetching the next character.
55813
55814 2007-01-22  Bruno Haible  <bruno@clisp.org>
55815
55816         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55817         argument.
55818         * lib/striconveh.c (iconv_carefully_1): New function.
55819         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55820         argument.
55821         (str_cd_iconveh): Update.
55822         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55823         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55824         * tests/test-striconveh.c (MAGIC): New macro.
55825         (new_offsets): New function.
55826         (main): Test call with and without offsets.
55827
55828 2007-01-22  Bruno Haible  <bruno@clisp.org>
55829
55830         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55831         * modules/sys_select (Makefile.am): Likewise.
55832         * modules/sys_socket (Makefile.am): Likewise.
55833         * modules/sys_time (Makefile.am): Likewise.
55834
55835 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55836
55837         * modules/gettimeofday (License): Change from GPL to LGPL, since
55838         gettimeofday is a library function.
55839
55840 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55841
55842         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55843
55844 2007-01-21  Bruno Haible  <bruno@clisp.org>
55845
55846         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55847
55848 2007-01-21  Bruno Haible  <bruno@clisp.org>
55849
55850         * modules/striconveha: New file.
55851         * lib/striconveha.h: New file.
55852         * lib/striconveha.c: New file.
55853         * MODULES.html.sh (Internationalization functions): Add striconveha.
55854         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55855         string.
55856         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55857
55858 2007-01-21  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55861         * lib/striconveh.c (str_iconveh): Likewise.
55862
55863 2007-01-21  Bruno Haible  <bruno@clisp.org>
55864
55865         * lib/striconveh.h (mem_iconveh): New declaration.
55866         * lib/striconveh.c (mem_iconveh): New function.
55867         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55868
55869 2007-01-21  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55872
55873         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55874         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55875         original result buffer.
55876         (str_cd_iconveh): Update.
55877         * tests/test-striconveh.c (main): Update.
55878
55879         * lib/striconv.h (mem_cd_iconv): Change specification.
55880         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55881         result buffer.
55882         (str_cd_iconv): Update.
55883         * tests/test-striconv.c (main): Update.
55884
55885 2007-01-21  Bruno Haible  <bruno@clisp.org>
55886
55887         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55888
55889 2007-01-20  Jim Meyering  <jim@meyering.net>
55890
55891         * lib/userspec.c (parse_with_separator): If a user or group string
55892         starts with "+", skip the corresponding name-to-ID look-up, since
55893         such a look-up must fail: user and group names may not include "+".
55894
55895 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55896
55897         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55898         since we now assume the sys_time module.
55899         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55900         check for sys/time.h; no longer needed.
55901         * modules/poll (Depends-on): Depend on sys_time.
55902
55903 2007-01-18  Bruno Haible  <bruno@clisp.org>
55904
55905         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55906         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55907
55908         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55909         gettimeofday.
55910
55911         * tests/test-gettimeofday.c: Include <time.h>.
55912         (dummy): Remove variable.
55913
55914         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55915         gl_HEADER_SYS_TIME_H.
55916         (gl_HEADER_SYS_TIME_H): New macro.
55917
55918         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55919         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55920         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55921         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55922         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55924         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55925         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55926         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55927         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55928         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55929
55930         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55931         last change; it caused a compilation error when cross-compiling to
55932         Cygwin.
55933
55934 2007-01-18  Jim Meyering  <jim@meyering.net>
55935
55936         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55937         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55938         than the race-prone "test -d sys || mkdir sys".
55939         (configure.ac): Use AC_PROG_MKDIR_P.
55940         * modules/sys_select: Likewise.
55941         * modules/sys_socket: Likewise.
55942         * modules/sys_time: Likewise.
55943
55944 2007-01-18  Eric Blake  <ebb9@byu.net>
55945
55946         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55947         replace gettimeofday.
55948         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55949         name, to avoid infinite recursion.
55950
55951 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55952
55953         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55954         module sys_time.
55955         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55956         assume timespec.h defines struct timeval.
55957         * lib/settime.c: Likewise.
55958         * lib/utimens.c: Likewise.
55959         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55960         since we now assume the gettimeofday module.
55961         * lib/tempname.c (__gen_tempname): Likewise.
55962         * lib/gettimeofday.h: Remove.
55963         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55964         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55965         Include <time.h>, for 'time()'.
55966         (localtime_buffer_addr): Also use this workaround if
55967         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55968         to simplify the uses.  All uses changed.
55969         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55970         that #undef is inside {}, and 'const' follows type name consistently.
55971         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55972         (gettimeofday): Do not use the maximum possible value for
55973         tv->tv_usec, since that might break usages other than ls.c.
55974         Instead, we'll leave ls.c alone.  This undoes today's patch
55975         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55976         we've never observed the problem but might as well keep the
55977         canary.
55978         * lib/nanosleep.c: Include timespec.h first, for interface check.
55979         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55980         now assume the sys_time module.
55981         * lib/tempname.c: Likewise.
55982         * lib/timespec.h: Likewise.
55983         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55984         needed.
55985         * lib/strftime.c: Likewise.
55986         * lib/timespec.h: Likewise.
55987         * lib/posixtm.c: Include posixtm.h first, for interface check.
55988         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55989         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55990         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55991         * lib/sys_time_.h: New file.
55992         * lib/timespec.h (struct timespec): Use long int, not long.
55993         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55994         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55995         Remove obsolescent call to AC_HEADER_TIME.
55996         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55998         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55999         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56000         Likewise.
56001         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56002         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56003         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56004         into the sys_time module.  Check for gettimeofday just once.
56005         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56006         for gettimeofday signature to just check the signature.  Merely
56007         compile it, since linking doesn't test signature.  Improve test for
56008         whether gettimeofday.o is actually needed.
56009         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56010         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56011         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56012         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56013         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56014         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56015         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56016         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56017         than worrying about sys/time.h.
56018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56019         Don't bother worrying about TIME_WITH_SYS_TIME.
56020         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56021         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56022         * m4/sys_time_h.m4: New file.
56023         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56024         Don't include sys/time.h.  Return from main rather than exiting.
56025         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56026         all uses changed.
56027         * modules/gethrxtime (Depends-on): Add sys_time.
56028         * modules/gettime (Depends-on): Likewise.
56029         * modules/gettimeofday (Depends-on): Likewise.
56030         * modules/nanosleep (Depends-on): Likewise.
56031         * modules/settime (Depends-on): Likewise.
56032         * modules/tempname (Depends-on): Likewise.
56033         * modules/utimens (Depends-on): Likewise.
56034         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56035         (Include): Change back to <sys/time.h>.
56036         (Maintainer): Add self.
56037         * modules/sys_time: New file.
56038         * modules/tempname (Depends-on): Add gettimeofday.
56039         * tests/test-gettimeofday.c: Include <sys/time.h>
56040         rather than gettimeofday.h.
56041
56042 2007-01-17  Bruno Haible  <bruno@clisp.org>
56043
56044         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56045         the license default to GPL.
56046         (func_create_testdir): Don't complain if a module is LGPL and its
56047         tests module depends on GPLed modules.
56048
56049 2007-01-17  Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/gettimeofday.c (gettimeofday): Add code for the case
56052         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56053         maximum possible value for tv->tv_usec, rather than the minimum one.
56054
56055 2005-10-08  Martin Lambers  <marlam@marlam.de>
56056 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56057 2007-01-16  Bruno Haible  <bruno@clisp.org>
56058
56059         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56060         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56061         gl_FUNC_GETTIMEOFDAY.
56062         (Include): Add gettimeofday.h.
56063         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56064         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56065         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56066         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56067         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56068         * lib/gettimeofday.h: New file.
56069         * lib/gettimeofday.c: Include <sys/timeb.h>.
56070         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56071         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56072         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56073         fall back on time().
56074
56075         * tests/test-gettimeofday.c: New file.
56076         * modules/gettimeofday-tests: New file.
56077
56078 2007-01-16  Eric Blake  <ebb9@byu.net>
56079
56080         * modules/fnmatch (Depends-on): Depend on wchar.
56081         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56082         * m4/fnmatch.m4: Likewise.
56083         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56084         * m4/mbchar.m4: Likewise.
56085         * modules/mbswidth (Depends-on): Depend on wchar.
56086         * lib/mbswidth.c: Assume <wchar.h>.
56087         * m4/mbswidth.m4: Likewise.
56088         * modules/quotearg (Depends-on): Depend on wchar.
56089         * lib/quotearg.c: Assume <wchar.h>.
56090         * m4/quotearg.m4: Likewise.
56091         * modules/regex (Depends-on): Depend on wchar.
56092         * lib/regex_internal.h: Assume <wchar.h>.
56093         * m4/regex.m4: Likewise.
56094         * modules/stdint (Depends-on): Depend on wchar.
56095         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56096         * m4/stdint.m4: Likewise.
56097         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56098         * modules/strftime (Depends-on): Depend on wchar.
56099         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56100         * modules/strtol (Depends-on): Depend on wchar.
56101         * lib/strtol.c: Assume <wchar.h>.
56102         * modules/wcwidth (Depends-on): Depend on wchar.
56103         * lib/wcwidth.h: Assume <wchar.h>.
56104         * m4/wcwidth.m4: Likewise.
56105
56106 2007-01-16  Bruno Haible  <bruno@clisp.org>
56107
56108         * modules/csharpexec-script: New, created from...
56109         * modules/csharpexec: ... this.
56110
56111 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56112
56113         * modules/javaexec-script: New, created from...
56114         * modules/javaexec: ... this.
56115
56116 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56117
56118         * modules/poll (Dependencies): Add sys_select.
56119
56120 2007-01-15  Jim Meyering  <jim@meyering.net>
56121
56122         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56123         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56124         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56125         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56126
56127 2007-01-15  Bruno Haible  <bruno@clisp.org>
56128
56129         * modules/striconveh: New file.
56130         * lib/striconveh.h: New file.
56131         * lib/striconveh.c: New file.
56132         * MODULES.html.sh (Internationalization functions): Add striconveh.
56133
56134         * modules/striconveh-tests: New file.
56135         * tests/test-striconveh.c: New file.
56136
56137 2007-01-15  Bruno Haible  <bruno@clisp.org>
56138
56139         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56140         not from GNU libiconv or GNU libc.
56141
56142 2007-01-15  Bruno Haible  <bruno@clisp.org>
56143
56144         * doc/gnulib-intro.texi (Copyright): Explain the different license
56145         terms for module descriptions, autoconf macros, tests, documentation.
56146
56147 2007-01-14  Bruno Haible  <bruno@clisp.org>
56148
56149         * modules/striconv-tests: New file.
56150         * tests/test-striconv.c: New file.
56151
56152 2007-01-14  Bruno Haible  <bruno@clisp.org>
56153
56154         * modules/iconv-tests: New file.
56155         * tests/test-iconv.c: New file.
56156
56157 2007-01-14  Bruno Haible  <bruno@clisp.org>
56158
56159         * gnulib-tool (func_get_license): For test modules, use the license of
56160         the main module.
56161
56162 2007-01-14  Bruno Haible  <bruno@clisp.org>
56163
56164         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56165         if iconv is found to exist.
56166
56167 2007-01-14  Bruno Haible  <bruno@clisp.org>
56168
56169         * modules/c-ctype-tests: New file.
56170         * tests/test-c-ctype.c: New file.
56171
56172 2007-01-14  Bruno Haible  <bruno@clisp.org>
56173
56174         * modules/binary-io-tests: New file.
56175         * tests/test-binary-io.sh: New file.
56176         * tests/test-binary-io.c: New file.
56177
56178 2007-01-14  Bruno Haible  <bruno@clisp.org>
56179
56180         * modules/array-oset-tests: New file.
56181         * tests/test-array_oset.c: New file.
56182
56183 2007-01-14  Bruno Haible  <bruno@clisp.org>
56184
56185         * modules/array-list-tests: New file.
56186         * tests/test-array_list.c: New file.
56187
56188 2007-01-14  Bruno Haible  <bruno@clisp.org>
56189
56190         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56191         and make.
56192         Reported by Simon Josefsson in
56193         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56194
56195 2007-01-14  Bruno Haible  <bruno@clisp.org>
56196
56197         * modules/allocsa-tests: New file.
56198         * tests/test-allocsa.c: New file.
56199
56200 2007-01-14  Bruno Haible  <bruno@clisp.org>
56201
56202         * modules/fchdir (Depends-on): Add absolute-header.
56203         * modules/unistd (Depends-on): Likewise.
56204
56205 2006-12-30  Bruno Haible  <bruno@clisp.org>
56206
56207         * modules/fchdir: New file.
56208         * modules/unistd (Files): Add lib/unistd_.h.
56209         (Makefile.am): Generate unistd.h from unistd_.h.
56210         * lib/fchdir.c: New file.
56211         * lib/dirent_.h: New file.
56212         * lib/unistd_.h: New file.
56213         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56214         * m4/fchdir.m4: New file.
56215         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56216         (gl_HEADER_UNISTD): Invoke it.
56217         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56218         function.
56219         * lib/backupfile.c (opendir, closedir): Undefine.
56220         * lib/chown.c (open, close): Undefine.
56221         * lib/clean-temp.c (open, close): Undefine.
56222         * lib/copy-file.c (open, close): Undefine.
56223         * lib/execute.c (open, close): Undefine.
56224         * lib/fsusage.c (open, close): Undefine.
56225         * lib/gc-gnulib.c (open, close): Undefine.
56226         * lib/getcwd.c (opendir, closedir): Undefine.
56227         * lib/glob.c (opendir, closedir): Undefine.
56228         * lib/javacomp.c (open, close): Undefine.
56229         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56230         * lib/openat-proc.c (open, close): Undefine.
56231         * lib/pagealign_alloc.c (open, close): Undefine.
56232         * lib/pipe.c (open, close): Undefine.
56233         * lib/progreloc.c (open, close): Undefine.
56234         * lib/savedir.c (opendir, closedir): Undefine.
56235         * lib/utime.c (open, close): Undefine.
56236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56237
56238 2007-01-10  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56241
56242 2007-01-12  Eric Blake  <ebb9@byu.net>
56243
56244         Provide a robust <wchar.h>.  Further simplifications are now
56245         possible in other modules, but not included here.
56246         * modules/wchar: New module.
56247         * m4/wchar.m4: New file.
56248         * lib/wchar_.h: Likewise.
56249         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56250         of the new module.
56251         * MODULES.html.sh (Extended multibyte and wide character utilities):
56252         New section.
56253
56254 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56255
56256         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56257         to a reasonable default for memory allocation.
56258         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56259         file system that reports garbage st_size values for symlinks.
56260         Problem reported by Liyang Hu.
56261
56262 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56263
56264         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56265         Emacs .#* auto-save files).
56266
56267 2007-01-11  Bruno Haible  <bruno@clisp.org>
56268
56269         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56270         directory.
56271
56272 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56273
56274         Use @...@ consistently in lib/wctype_.h.
56275         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56276         on it being set to 1 or 0.
56277         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56278         go back to AC_SUBSTing it.
56279         * modules/wctype (Makefile.am): Undo previous change.
56280
56281 2007-01-10  Eric Blake  <ebb9@byu.net>
56282
56283         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56284         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56285         * modules/wctype (Makefile.am): Likewise.
56286         Reported by Chris McGuire.
56287
56288 2007-01-10  Jim Meyering  <jim@meyering.net>
56289
56290         fts.c: a small readability/maintainability improvement
56291         * lib/fts.c (fts_read): Make this code slightly more readable and
56292         maintainable by hoisting the "sp->fts_cur = p" assignments to
56293         immediately follow the statements that set P.  Derived from
56294         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56295
56296 2007-01-10  Eric Blake  <ebb9@byu.net>
56297
56298         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56299         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56301         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56302         Reported by Chris McGuire.
56303
56304 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56305
56306         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56307         in sed script.
56308
56309 2007-01-09  Bruno Haible  <bruno@clisp.org>
56310
56311         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56312         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56313         variables.
56314         (func_module): Use them.
56315
56316 2007-01-09  Bruno Haible  <bruno@clisp.org>
56317
56318         * modules/unistr/base: New file.
56319         * lib/unistr.h: New file.
56320
56321         * modules/unistr/u8-to-u16: New file.
56322         * lib/unistr/u8-to-u16.c: New file.
56323
56324         * modules/unistr/u8-to-u32: New file.
56325         * lib/unistr/u8-to-u32.c: New file.
56326
56327         * modules/unistr/u16-to-u8: New file.
56328         * lib/unistr/u16-to-u8.c: New file.
56329
56330         * modules/unistr/u16-to-u32: New file.
56331         * lib/unistr/u16-to-u32.c: New file.
56332
56333         * modules/unistr/u32-to-u8: New file.
56334         * lib/unistr/u32-to-u8.c: New file.
56335
56336         * modules/unistr/u32-to-u16: New file.
56337         * lib/unistr/u32-to-u16.c: New file.
56338
56339         * modules/unistr/u8-check: New file.
56340         * modules/unistr/u16-check: New file.
56341         * modules/unistr/u32-check: New file.
56342         * lib/unistr/u8-check.c: New file.
56343         * lib/unistr/u16-check.c: New file.
56344         * lib/unistr/u32-check.c: New file.
56345
56346         * modules/unistr/u8-chr: New file.
56347         * modules/unistr/u16-chr: New file.
56348         * modules/unistr/u32-chr: New file.
56349         * lib/unistr/u8-chr.c: New file.
56350         * lib/unistr/u16-chr.c: New file.
56351         * lib/unistr/u32-chr.c: New file.
56352
56353         * modules/unistr/u8-cmp: New file.
56354         * modules/unistr/u16-cmp: New file.
56355         * modules/unistr/u32-cmp: New file.
56356         * lib/unistr/u8-cmp.c: New file.
56357         * lib/unistr/u16-cmp.c: New file.
56358         * lib/unistr/u32-cmp.c: New file.
56359
56360         * modules/unistr/u8-cpy: New file.
56361         * modules/unistr/u16-cpy: New file.
56362         * modules/unistr/u32-cpy: New file.
56363         * lib/unistr/u8-cpy.c: New file.
56364         * lib/unistr/u16-cpy.c: New file.
56365         * lib/unistr/u32-cpy.c: New file.
56366         * lib/unistr/u-cpy.h: New file.
56367
56368         * modules/unistr/u8-cpy-alloc: New file.
56369         * modules/unistr/u16-cpy-alloc: New file.
56370         * modules/unistr/u32-cpy-alloc: New file.
56371         * lib/unistr/u8-cpy-alloc.c: New file.
56372         * lib/unistr/u16-cpy-alloc.c: New file.
56373         * lib/unistr/u32-cpy-alloc.c: New file.
56374         * lib/unistr/u-cpy-alloc.h: New file.
56375
56376         * modules/unistr/u8-endswith: New file.
56377         * modules/unistr/u16-endswith: New file.
56378         * modules/unistr/u32-endswith: New file.
56379         * lib/unistr/u8-endswith.c: New file.
56380         * lib/unistr/u16-endswith.c: New file.
56381         * lib/unistr/u32-endswith.c: New file.
56382         * lib/unistr/u-endswith.h: New file.
56383
56384         * modules/unistr/u8-mblen: New file.
56385         * modules/unistr/u16-mblen: New file.
56386         * modules/unistr/u32-mblen: New file.
56387         * lib/unistr/u8-mblen.c: New file.
56388         * lib/unistr/u16-mblen.c: New file.
56389         * lib/unistr/u32-mblen.c: New file.
56390
56391         * modules/unistr/u8-mbtouc: New file.
56392         * modules/unistr/u16-mbtouc: New file.
56393         * modules/unistr/u32-mbtouc: New file.
56394         * lib/unistr/u8-mbtouc.c: New file.
56395         * lib/unistr/u16-mbtouc.c: New file.
56396         * lib/unistr/u32-mbtouc.c: New file.
56397
56398         * modules/unistr/u8-mbtouc-safe: New file.
56399         * modules/unistr/u16-mbtouc-safe: New file.
56400         * modules/unistr/u32-mbtouc-safe: New file.
56401         * lib/unistr/u8-mbtouc-safe.c: New file.
56402         * lib/unistr/u16-mbtouc-safe.c: New file.
56403         * lib/unistr/u32-mbtouc-safe.c: New file.
56404
56405         * modules/unistr/u8-move: New file.
56406         * modules/unistr/u16-move: New file.
56407         * modules/unistr/u32-move: New file.
56408         * lib/unistr/u8-move.c: New file.
56409         * lib/unistr/u16-move.c: New file.
56410         * lib/unistr/u32-move.c: New file.
56411         * lib/unistr/u-move.h: New file.
56412
56413         * modules/unistr/u8-next: New file.
56414         * modules/unistr/u16-next: New file.
56415         * modules/unistr/u32-next: New file.
56416         * lib/unistr/u8-next.c: New file.
56417         * lib/unistr/u16-next.c: New file.
56418         * lib/unistr/u32-next.c: New file.
56419
56420         * modules/unistr/u8-prev: New file.
56421         * modules/unistr/u16-prev: New file.
56422         * modules/unistr/u32-prev: New file.
56423         * lib/unistr/u8-prev.c: New file.
56424         * lib/unistr/u16-prev.c: New file.
56425         * lib/unistr/u32-prev.c: New file.
56426
56427         * modules/unistr/u8-set: New file.
56428         * modules/unistr/u16-set: New file.
56429         * modules/unistr/u32-set: New file.
56430         * lib/unistr/u8-set.c: New file.
56431         * lib/unistr/u16-set.c: New file.
56432         * lib/unistr/u32-set.c: New file.
56433         * lib/unistr/u-set.h: New file.
56434
56435         * modules/unistr/u8-startswith: New file.
56436         * modules/unistr/u16-startswith: New file.
56437         * modules/unistr/u32-startswith: New file.
56438         * lib/unistr/u8-startswith.c: New file.
56439         * lib/unistr/u16-startswith.c: New file.
56440         * lib/unistr/u32-startswith.c: New file.
56441         * lib/unistr/u-startswith.h: New file.
56442
56443         * modules/unistr/u8-stpcpy: New file.
56444         * modules/unistr/u16-stpcpy: New file.
56445         * modules/unistr/u32-stpcpy: New file.
56446         * lib/unistr/u8-stpcpy.c: New file.
56447         * lib/unistr/u16-stpcpy.c: New file.
56448         * lib/unistr/u32-stpcpy.c: New file.
56449         * lib/unistr/u-stpcpy.h: New file.
56450
56451         * modules/unistr/u8-stpncpy: New file.
56452         * modules/unistr/u16-stpncpy: New file.
56453         * modules/unistr/u32-stpncpy: New file.
56454         * lib/unistr/u8-stpncpy.c: New file.
56455         * lib/unistr/u16-stpncpy.c: New file.
56456         * lib/unistr/u32-stpncpy.c: New file.
56457         * lib/unistr/u-stpncpy.h: New file.
56458
56459         * modules/unistr/u8-strcat: New file.
56460         * modules/unistr/u16-strcat: New file.
56461         * modules/unistr/u32-strcat: New file.
56462         * lib/unistr/u8-strcat.c: New file.
56463         * lib/unistr/u16-strcat.c: New file.
56464         * lib/unistr/u32-strcat.c: New file.
56465         * lib/unistr/u-strcat.h: New file.
56466
56467         * modules/unistr/u8-strchr: New file.
56468         * modules/unistr/u16-strchr: New file.
56469         * modules/unistr/u32-strchr: New file.
56470         * lib/unistr/u8-strchr.c: New file.
56471         * lib/unistr/u16-strchr.c: New file.
56472         * lib/unistr/u32-strchr.c: New file.
56473
56474         * modules/unistr/u8-strcmp: New file.
56475         * modules/unistr/u16-strcmp: New file.
56476         * modules/unistr/u32-strcmp: New file.
56477         * lib/unistr/u8-strcmp.c: New file.
56478         * lib/unistr/u16-strcmp.c: New file.
56479         * lib/unistr/u32-strcmp.c: New file.
56480
56481         * modules/unistr/u8-strcpy: New file.
56482         * modules/unistr/u16-strcpy: New file.
56483         * modules/unistr/u32-strcpy: New file.
56484         * lib/unistr/u8-strcpy.c: New file.
56485         * lib/unistr/u16-strcpy.c: New file.
56486         * lib/unistr/u32-strcpy.c: New file.
56487         * lib/unistr/u-strcpy.h: New file.
56488
56489         * modules/unistr/u8-strcspn: New file.
56490         * modules/unistr/u16-strcspn: New file.
56491         * modules/unistr/u32-strcspn: New file.
56492         * lib/unistr/u8-strcspn.c: New file.
56493         * lib/unistr/u16-strcspn.c: New file.
56494         * lib/unistr/u32-strcspn.c: New file.
56495         * lib/unistr/u-strcspn.h: New file.
56496
56497         * modules/unistr/u8-strdup: New file.
56498         * modules/unistr/u16-strdup: New file.
56499         * modules/unistr/u32-strdup: New file.
56500         * lib/unistr/u8-strdup.c: New file.
56501         * lib/unistr/u16-strdup.c: New file.
56502         * lib/unistr/u32-strdup.c: New file.
56503         * lib/unistr/u-strdup.h: New file.
56504
56505         * modules/unistr/u8-strlen: New file.
56506         * modules/unistr/u16-strlen: New file.
56507         * modules/unistr/u32-strlen: New file.
56508         * lib/unistr/u8-strlen.c: New file.
56509         * lib/unistr/u16-strlen.c: New file.
56510         * lib/unistr/u32-strlen.c: New file.
56511         * lib/unistr/u-strlen.h: New file.
56512
56513         * modules/unistr/u8-strmblen: New file.
56514         * modules/unistr/u16-strmblen: New file.
56515         * modules/unistr/u32-strmblen: New file.
56516         * lib/unistr/u8-strmblen.c: New file.
56517         * lib/unistr/u16-strmblen.c: New file.
56518         * lib/unistr/u32-strmblen.c: New file.
56519
56520         * modules/unistr/u8-strmbtouc: New file.
56521         * modules/unistr/u16-strmbtouc: New file.
56522         * modules/unistr/u32-strmbtouc: New file.
56523         * lib/unistr/u8-strmbtouc.c: New file.
56524         * lib/unistr/u16-strmbtouc.c: New file.
56525         * lib/unistr/u32-strmbtouc.c: New file.
56526
56527         * modules/unistr/u8-strncat: New file.
56528         * modules/unistr/u16-strncat: New file.
56529         * modules/unistr/u32-strncat: New file.
56530         * lib/unistr/u8-strncat.c: New file.
56531         * lib/unistr/u16-strncat.c: New file.
56532         * lib/unistr/u32-strncat.c: New file.
56533         * lib/unistr/u-strncat.h: New file.
56534
56535         * modules/unistr/u8-strncmp: New file.
56536         * modules/unistr/u16-strncmp: New file.
56537         * modules/unistr/u32-strncmp: New file.
56538         * lib/unistr/u8-strncmp.c: New file.
56539         * lib/unistr/u16-strncmp.c: New file.
56540         * lib/unistr/u32-strncmp.c: New file.
56541
56542         * modules/unistr/u8-strncpy: New file.
56543         * modules/unistr/u16-strncpy: New file.
56544         * modules/unistr/u32-strncpy: New file.
56545         * lib/unistr/u8-strncpy.c: New file.
56546         * lib/unistr/u16-strncpy.c: New file.
56547         * lib/unistr/u32-strncpy.c: New file.
56548         * lib/unistr/u-strncpy.h: New file.
56549
56550         * modules/unistr/u8-strnlen: New file.
56551         * modules/unistr/u16-strnlen: New file.
56552         * modules/unistr/u32-strnlen: New file.
56553         * lib/unistr/u8-strnlen.c: New file.
56554         * lib/unistr/u16-strnlen.c: New file.
56555         * lib/unistr/u32-strnlen.c: New file.
56556         * lib/unistr/u-strnlen.h: New file.
56557
56558         * modules/unistr/u8-strpbrk: New file.
56559         * modules/unistr/u16-strpbrk: New file.
56560         * modules/unistr/u32-strpbrk: New file.
56561         * lib/unistr/u8-strpbrk.c: New file.
56562         * lib/unistr/u16-strpbrk.c: New file.
56563         * lib/unistr/u32-strpbrk.c: New file.
56564         * lib/unistr/u-strpbrk.h: New file.
56565
56566         * modules/unistr/u8-strrchr: New file.
56567         * modules/unistr/u16-strrchr: New file.
56568         * modules/unistr/u32-strrchr: New file.
56569         * lib/unistr/u8-strrchr.c: New file.
56570         * lib/unistr/u16-strrchr.c: New file.
56571         * lib/unistr/u32-strrchr.c: New file.
56572
56573         * modules/unistr/u8-strspn: New file.
56574         * modules/unistr/u16-strspn: New file.
56575         * modules/unistr/u32-strspn: New file.
56576         * lib/unistr/u8-strspn.c: New file.
56577         * lib/unistr/u16-strspn.c: New file.
56578         * lib/unistr/u32-strspn.c: New file.
56579         * lib/unistr/u-strspn.h: New file.
56580
56581         * modules/unistr/u8-strstr: New file.
56582         * modules/unistr/u16-strstr: New file.
56583         * modules/unistr/u32-strstr: New file.
56584         * lib/unistr/u8-strstr.c: New file.
56585         * lib/unistr/u16-strstr.c: New file.
56586         * lib/unistr/u32-strstr.c: New file.
56587         * lib/unistr/u-strstr.h: New file.
56588
56589         * modules/unistr/u8-strtok: New file.
56590         * modules/unistr/u16-strtok: New file.
56591         * modules/unistr/u32-strtok: New file.
56592         * lib/unistr/u8-strtok.c: New file.
56593         * lib/unistr/u16-strtok.c: New file.
56594         * lib/unistr/u32-strtok.c: New file.
56595         * lib/unistr/u-strtok.h: New file.
56596
56597         * modules/unistr/u8-uctomb: New file.
56598         * modules/unistr/u16-uctomb: New file.
56599         * modules/unistr/u32-uctomb: New file.
56600         * lib/unistr/u8-uctomb.c: New file.
56601         * lib/unistr/u16-uctomb.c: New file.
56602         * lib/unistr/u32-uctomb.c: New file.
56603
56604         * MODULES.html.sh (Unicode string functions): Add the new modules.
56605
56606 2007-01-08  Bruno Haible  <bruno@clisp.org>
56607
56608         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56609         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56610         subdirectories.
56611
56612 2007-01-08  Karl Berry  <karl@gnu.org>
56613
56614         * doc/error.texi: mention that main() fns must set program_name
56615         when progname is used.
56616
56617 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56618
56619         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56620         WCTYPE_H is empty, for the benefit of builds from non-distclean
56621         directories.  Problem reported by Eric Blake in
56622         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56623
56624 2007-01-08  Bruno Haible  <bruno@clisp.org>
56625
56626         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56627         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56628         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56629         PROVIDE_CANONICALIZE_FILENAME_MODE.
56630         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56631
56632 2007-01-08  Bruno Haible  <bruno@clisp.org>
56633
56634         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56635         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56636         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56637         * lib/fts.c: Likewise.
56638         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56639
56640 2006-12-25  Bruno Haible  <bruno@clisp.org>
56641
56642         * modules/utf8-ucs4-safe: New file.
56643         * lib/utf8-ucs4-safe.h: New file.
56644         * lib/unistr/utf8-ucs4-safe.c: New file.
56645
56646         * modules/utf16-ucs4-safe: New file.
56647         * lib/utf16-ucs4-safe.h: New file.
56648         * lib/unistr/utf16-ucs4-safe.c: New file.
56649
56650         * MODULES.html.sh (Unicode string functions): Add the new modules.
56651
56652 2007-01-08  Bruno Haible  <bruno@clisp.org>
56653
56654         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56655         (Depends-on): Add unitypes.
56656         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56657         (u8_mbtouc_aux): Move out to separate file.
56658         (u8_mbtouc): Use ucs4_t, uint8_t types.
56659         * lib/unistr/utf8-ucs4.c: New file.
56660
56661         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56662         (Depends-on): Add unitypes.
56663         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56664         (u16_mbtouc_aux): Move out to separate file.
56665         (u16_mbtouc): Use ucs4_t, uint16_t types.
56666         * lib/unistr/utf16-ucs4.c: New file.
56667
56668         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56669         (Depends-on): Add unitypes.
56670         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56671         (u8_uctomb_aux): Move out to separate file.
56672         (u8_uctomb): Use ucs4_t, uint8_t types.
56673         * lib/unistr/ucs4-utf8.c: New file.
56674
56675         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56676         (Depends-on): Add unitypes.
56677         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56678         (u16_uctomb_aux): Move out to separate file.
56679         (u16_uctomb): Use ucs4_t, uint16_t types.
56680         * lib/unistr/ucs4-utf16.c: New file.
56681
56682 2006-12-25  Bruno Haible  <bruno@clisp.org>
56683
56684         * modules/unitypes: New file.
56685         * lib/unitypes.h: New file.
56686         * MODULES.html.sh (func_all_modules): New section "Unicode string
56687         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56688         this section. Add unitypes.
56689
56690 2007-01-08  Bruno Haible  <bruno@clisp.org>
56691
56692         Avoid variable names that conflict with those from libtool.
56693         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56694         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56695         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56696         library_names_spec to acl_library_names_spec, hardcode_* to
56697         acl_hardcode_*.
56698         Reported by Ralf Wildenhues.
56699
56700 2007-01-08  Bruno Haible  <bruno@clisp.org>
56701
56702         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56703         definition.
56704         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56705         definition.
56706         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56707         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56708         definition.
56709         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56710         definition.
56711         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56712         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56713         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56714         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56715         definition.
56716         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56717         definition.
56718         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56719         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56720         GC_USE_<algorithm>.
56721         * lib/gc-libgcrypt.c: Likewise.
56722         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56723         * modules/gc-arctwo (configure.ac): Likewise.
56724         * modules/gc-des (configure.ac): Likewise.
56725         * modules/gc-hmac-md5 (configure.ac): Likewise.
56726         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56727         * modules/gc-md2 (configure.ac): Likewise.
56728         * modules/gc-md4 (configure.ac): Likewise.
56729         * modules/gc-md5 (configure.ac): Likewise.
56730         * modules/gc-random (configure.ac): Likewise.
56731         * modules/gc-rijndael (configure.ac): Likewise.
56732         * modules/gc-sha1 (configure.ac): Likewise.
56733
56734 2007-01-08  Bruno Haible  <bruno@clisp.org>
56735
56736         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56737         macro definition.
56738         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56739         definition.
56740         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56741         definition.
56742         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56743         * modules/fcntl-safer (configure.ac): Likewise.
56744         * modules/fopen-safer (configure.ac): Likewise.
56745         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56746         GNULIB_FWRITEERROR macro definition.
56747
56748 2007-01-08  Bruno Haible  <bruno@clisp.org>
56749
56750         * m4/gnulib-common.m4: New file.
56751         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56752         (func_get_filelist): Add m4/gnulib-common.m4.
56753
56754 2007-01-08  Bruno Haible  <bruno@clisp.org>
56755
56756         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56757         command.
56758
56759 2007-01-08  Jim Meyering  <jim@meyering.net>
56760
56761         Use a more robust test for a "can't happen" condition.
56762         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56763         narrowed the st_size value.  Presuming the "can't happen" condition
56764         is true, that narrowing could conceivably convert an invalid st_size
56765         value into a valid one.  Instead, use a change based on Matthew
56766         Woehlke's original patch.
56767
56768         Slight readability improvement: use an assert-like macro
56769         in place of literal "abort ()" uses.
56770         * lib/fts.c (fts_assert): Define.
56771         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56772         Use this macro instead of a bare 'abort'.
56773
56774 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56775
56776         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56777         simply work around them.
56778         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56779         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56780         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56781         declaring.
56782         Don't bother to define as macros, since the standard doesn't require it.
56783         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56784         longer worry about IRIX 5.3.
56785         (HAVE_WCTYPE_CTMP_BUG): Remove.
56786
56787 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56788
56789         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56790         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56791         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56792         Problems reported by Georg Schwarz for IRIX 5.3.
56793
56794         * gnulib-tool (autoconf_minversion): Take the maximum version number
56795         found, not the minimum.  Problem reported by James Youngman.
56796
56797 2007-01-03  Karl Berry  <karl@gnu.org>
56798
56799         * doc/error.texi: new file, explaining interaction with progname.
56800         * doc/gnulib.texi: include it.  Update copyright.
56801
56802 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56803
56804         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56805         AC_CANONICAL_HOST, to improve autobuild outputs.
56806
56807 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56808             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56809
56810         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56811         sockets, server sockets, and other file descriptors.  Count errors
56812         to compute the return value.  Reorder the code a bit to be easier
56813         to follow.  Don't set event bits that were not requested (except
56814         POLLERR and POLLHUP).
56815
56816 2007-01-01  Bruno Haible  <bruno@clisp.org>
56817
56818         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56819
56820 2007-01-03  Jim Meyering  <jim@meyering.net>
56821
56822         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56823
56824 2007-01-02  Bruno Haible  <bruno@clisp.org>
56825
56826         * modules/settime (Include): Require timespec.h.
56827         * modules/nanosleep (Include): Likewise.
56828
56829 2007-01-01  Bruno Haible  <bruno@clisp.org>
56830
56831         * gnulib-tool (func_emit_copyright_notice): Bump year.
56832         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56833
56834 2007-01-01  Bruno Haible  <bruno@clisp.org>
56835
56836         Improve support for OpenBSD.
56837         * build-aux/config.rpath (libname_spec): Export.
56838         (library_names_spec): New variable. Export.
56839         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56840         library_names_spec from the config.rpath output. Locate shared library
56841         through the name pattern in library_names_spec.
56842
56843 2007-01-01  Eric Blake  <ebb9@byu.net>
56844
56845         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56846
56847 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56848
56849         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56850         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56851         assume the C locale, and avoid an "eval" that could cause trouble.
56852         Problem with SORT reported by Bob Proulx.
56853
56854         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56855         Define.  Trivial patch from Henning Nielsen Lund, originally
56856         sent to bug-grep@gnu.org today.
56857
56858 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56859
56860         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56861         struct stat.  Problem reported by Henning Nielsen Lund.
56862         * lib/acl.c: Include acl.h first, to check interface.  Don't
56863         bother to include sys/types.h and sys/stat.h again.
56864
56865 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56866
56867         Import the following change from libc; problem reported by
56868         Sven Verdoolaege.
56869
56870         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56871
56872         [BZ #1373]
56873         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56874
56875 2006-12-28  Jim Meyering  <jim@meyering.net>
56876
56877         * build-aux/announce-gen: Do not assume that the package
56878         builds any of tar.gz, tar.bz2, and .xdelta files.
56879         Suggestion from Simon Josefsson.
56880
56881 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56882
56883         * modules/announce-gen: New file.
56884
56885 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56886
56887         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56888         handles its gotchas now.
56889         * lib/mbswidth.c: Likewise.
56890         * lib/wcwidth.h: Likewise.
56891         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56892         and iswcntrl; the wctype module does this stuff now.
56893         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56894         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56895         * modules/mbchar (Depends-on): Add wctype.
56896         * modules/mbswidth (Depends-on): Likewise.
56897         * modules/wcwidth (Depends-on): Likewise.
56898
56899 2006-12-27  Eric Blake  <ebb9@byu.net>
56900
56901         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56902         module uses more than what <wctype.h> is required to provide.
56903
56904 2006-12-26  Eric Blake  <ebb9@byu.net>
56905
56906         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56907
56908 2006-12-26  Eric Blake  <ebb9@byu.net>
56909
56910         * modules/absolute-header: New module.
56911         * modules/fcntl (Depends-on): Depend on it.
56912         * modules/inttypes (Depends-on): Likewise.
56913         * modules/stdint (Depends-on): Likewise.
56914         * modules/sys_stat (Depends-on): Likewise.
56915         * modules/wctype (Depends-on): Likewise.
56916         * MODULES.html.sh (Support for building libraries and
56917         executables): Document it.
56918
56919 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56920
56921         * gnulib-tool (SED): Remove, undoing previous change.
56922         The problem was that it broke coreutils on Solaris, because
56923         "sed --posix" leaked into a makefile.
56924         (sed): New alias, if 'alias' and GNU sed.
56925
56926 2006-12-24  Jim Meyering  <jim@meyering.net>
56927
56928         Work around an fchownat bug in glibc-2.4:
56929         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56930         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56931         in spite of the -P option.
56932         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56933         New macros.
56934         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56935         * modules/openat (Files): Add lib/fchownat.c.
56936         * lib/openat.c (fchownat): Don't define here.  Move to...
56937         * lib/fchownat.c: ...this new file.
56938
56939 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56940
56941         Fix bug reported by Bruno Haible in
56942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56943         where quotearg.c didn't compile on Mac OS X 10.2 because it
56944         lacks <wchar.h> and wint_t.
56945         * lib/wctype_.h (__wctype_wint_t): New type.
56946         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56947         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56948         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56949         Arg is now of type __wctype_wint_t, not wint_t.
56950         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56951         substitute HAVE_WINT_T.
56952         * modules/wctype (Files): Add m4/wint_t.m4.
56953         (wctype.h): Substitute HAVE_WINT_T.
56954
56955 2006-12-23  Bruno Haible  <bruno@clisp.org>
56956
56957         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56958
56959 2006-12-23  Bruno Haible  <bruno@clisp.org>
56960
56961         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56962         S_ISLNK.
56963         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56964         mingw.
56965
56966 2006-12-22  Bruno Haible  <bruno@clisp.org>
56967
56968         * lib/copy-file.c: Include acl.h.
56969         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56970         Close the file descriptors only after being done with copy_acl.
56971         * modules/copy-file (Depends-on): Add acl.
56972
56973 2006-12-22  Bruno Haible  <bruno@clisp.org>
56974
56975         * gnulib-tool (SED): New variable.
56976         Use $SED instead of sed everywhere.
56977
56978 2006-12-22  Bruno Haible  <bruno@clisp.org>
56979
56980         * modules/no-c++: New file.
56981         * m4/no-c++.m4: New file.
56982         * MODULES.html.sh (Support for building libraries and executables):
56983         Add no-c++.
56984
56985 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56986
56987         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56988         Include <limits.h>, and use its INT_MAX to rewrite the
56989         j loop so that it does not overflow 'int'.  Problem reported by
56990         Ralf Wildenhues in
56991         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56992         Play it safe by shifting left by 1 rather than multiplying by 2,
56993         as GCC is less likely to optimize this away when the value
56994         is signed (when it assumes overflow leads to undefined behavior).
56995         Also, don't assume time_t uses two's complement.
56996
56997 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56998
56999         * MODULES.html.sh: New module wctype.
57000         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57001         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57002         <wctype.h>, since the new wctype module should fix this.
57003         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57004         the wctype module should arrange for it.
57005         * lib/regex_internal.h: Likewise.
57006         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57007         since the wctype module should handle this now.
57008         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57009         * modules/fnmatch (Depends-on): Add wctype.
57010         * modules/quotearg (Depends-on): Likewise.
57011         * modules/regex (Depends-on): Likewise.
57012
57013 2006-12-19  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57016         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57017
57018 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57019
57020         * modules/savewd (Depends-on): Fix dependency on fcntl.
57021
57022 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57023
57024         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57025         conforms to C99, rather than relying on the user's environment
57026         setting of STDINT_H.
57027
57028 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57029         and Eric Blake  <ebb9@byu.net>
57030
57031         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57032         This is more consistent with the other defines here.
57033         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57034         Port to z/OS.  Problem reported by Paul Gilmartin.
57035         Change local vars to use gl_ prefix rather than ac_.
57036         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57037         with other defines.
57038         * modules/double-slash-root: New module.
57039         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57040         (Depends-on): Add double-slash-root.
57041         * MODULES.html.sh (File system functions): Mention new module.
57042
57043 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57044
57045         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57046         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57047         This is for the benefit of gzip, which doesn't do i18n.
57048
57049 2006-12-12  Jim Meyering  <jim@meyering.net>
57050
57051         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57052         Reported by Andreas Schwab <schwab@suse.de>.
57053
57054 2006-12-12  Bruno Haible  <bruno@clisp.org>
57055
57056         Merge these changes.
57057         2006-09-05  Bruno Haible  <bruno@clisp.org>
57058         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57059         iconv_alloc succeeded.
57060         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57061         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57062         test for " && dest " at the end - dest is always != NULL there. Call
57063         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57064         with 2xNULL arguments, also to flush the state storage. Handle the
57065         IRIX iconv behaviour. Realloc the final result, to throw away unused
57066         memory.
57067
57068 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57071         and fchmodat unconditionally, since glibc 2.4 has them.
57072         Problem reported by Arkadiusz Miskiewicz.
57073
57074 2006-12-10  Bruno Haible  <bruno@clisp.org>
57075
57076         * gnulib-tool (func_import): Show the include files only for those
57077         modules that are copied and specified.
57078         Reported by Karl Berry.
57079
57080 2006-12-08  Jim Meyering  <jim@meyering.net>
57081
57082         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57083         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57084
57085         * build-aux/announce-gen: Add two new options, both optional:
57086         --bootstrap-tools=TOOL_LIST
57087               a comma-separated list of tools, e.g.,
57088               autoconf,automake,bison,gnulib
57089         --gnulib-snapshot-date=DATE
57090               if gnulib is in the bootstrap tool list,
57091               then report this as the snapshot date.
57092               If not specified, use the current date/time.
57093               If you specify a date here, be sure it's UTC.
57094
57095 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57096
57097         * tests/test-argp-2.sh: Fix test to match actual output.
57098         (func_compare): Fix sed script to be portable.
57099
57100 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57101
57102         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57103         workaround for this case.  It is not autoconfigured now; offhand
57104         it's hard to see how to autoconfigure it.
57105
57106 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57107
57108         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57109         a directory that is about to be chowned.  Such a directory's
57110         initial file permissions should permit the owner only and this
57111         should not be changed until after the chown, since the group and
57112         other bits would be incorrect if they granted permission before
57113         the chown.
57114
57115         Fix porting problem for iswctype reported by Georg Schwarz in:
57116         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57117         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57118         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57119         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57120         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57121
57122 2006-12-03  Jim Meyering  <jim@meyering.net>
57123
57124         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57125         p->fts_statp may not yet be defined.
57126         (fts_read): Instead, set it in the caller, once p->fts_statp is
57127         sure to be defined, and corresponds to a top-level directory.
57128         This bug made du -x fail.  Here's the coreutils test case:
57129         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57130         Reported by Mike Frysinger.
57131
57132 2006-12-01  Jim Meyering  <jim@meyering.net>
57133
57134         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57135         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57136         Reported by Simon Josefsson.
57137
57138 2006-11-30  Jim Meyering  <jim@meyering.net>
57139
57140         * m4/warning.m4: Use the all-permissive copyright notice
57141         recommended by RMS (rather than LGPL).
57142         * m4/vararrays.m4: Likewise.
57143         * m4/flexmember.m4: Likewise.
57144
57145 2006-11-29  Bruno Haible  <bruno@clisp.org>
57146
57147         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57148         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57149         using +=.
57150         Reported by Simon Josefsson <simon@josefsson.org>.
57151
57152 2006-11-28  James Youngman <jay@gnu.org>
57153
57154         * README: Advise users that they might find the bug-gnulib@gnu.org
57155         and autotools-announce@gnu.org mailing lists useful.
57156
57157 2006-11-28  Bruno Haible  <bruno@clisp.org>
57158
57159         * m4/ptrdiff_max.m4: Remove file.
57160
57161 2006-11-21  Bruno Haible  <bruno@clisp.org>
57162
57163         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57164         _AC_COMPUTE_INT.
57165         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57166         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57167         _AC_COMPUTE_INT.
57168         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57169         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57170         _AC_COMPUTE_INT.
57171         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57172
57173 2006-11-28  Jim Meyering  <jim@meyering.net>
57174
57175         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57176         warning from "gcc -Wshadow" about shadowing the builtin.
57177
57178 2006-11-27  Bruno Haible  <bruno@clisp.org>
57179
57180         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57181         _AC_COMPUTE_INT.
57182         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57183
57184 2006-11-27  Bruno Haible  <bruno@clisp.org>
57185             Paul Eggert  <eggert@cs.ucla.edu>
57186
57187         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57188
57189 2006-11-26  Bruno Haible  <bruno@clisp.org>
57190
57191         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57192         noinst_LTLIBRARIES.
57193
57194 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57195             Bruno Haible  <bruno@clisp.org>
57196
57197         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57198         if compiling with "gcc -ansi".
57199
57200 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57201
57202         Fix some incompatibilities with gcc -ansi -pedantic.
57203         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57204         if compiling pedantically with GCC, unless it's C99 or later.
57205         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57206         it mishandles gcc -ansi -pedantic as well.
57207         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57208         if gcc -pedantic.
57209         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57210         initializers for struct if -pedantic, unless it's C99 or later.
57211
57212 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57213
57214         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57215         Don't close an fd more than once. Identical atimes indicate
57216         success, not failure.
57217
57218 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57219
57220         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57221
57222 2006-11-23  Jim Meyering  <jim@meyering.net>
57223
57224         * build-aux/announce-gen: New file.  From coreutils.
57225
57226 2006-11-22  Jim Meyering  <jim@meyering.net>
57227
57228         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57229         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57230         (fts_read): Use a temporary to narrow the overused st_size member
57231         before using it in a switch statement.  Reported by Matthew Woehlke.
57232
57233         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57234         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57235
57236 2006-11-20  Bruno Haible  <bruno@clisp.org>
57237
57238         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57239         changequote instead of pairs of brackets.
57240         Reported by Andreas Schwab <schwab@suse.de>.
57241
57242 2006-11-21  Jim Meyering  <jim@meyering.net>
57243
57244         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57245         so as to remain compatible with older compilers.
57246         Patch from Michael Deutschmann.
57247
57248 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57249
57250         * MODULES.html.sh (File system functions): Add openat.
57251
57252         * lib/openat.h (rpl_fstatat): New macro, if
57253         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57254         (fstatat): Define to rpl_fstatat under the same conditions,
57255         unless COMPILING_FSTATAT.
57256         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57257         seems to have the bug.
57258         * lib/fstatat.c: New file.
57259         * modules/openat (Files): Add it.
57260
57261 2006-11-20  Bruno Haible  <bruno@clisp.org>
57262
57263         * Makefile: New file.
57264
57265 2006-11-20  Jim Meyering  <jim@meyering.net>
57266
57267         The beginnings of syntax-related checks for gnulib.
57268         * lib/Makefile: New file.
57269         * lib/t-idcache: New script.  Ensure that the two halves of
57270         idcache.c stay in sync.
57271
57272         * lib/idcache.c: Adjust comments in user- and group- portions to
57273         be more accurate, and to be consistent with one another.
57274
57275 2006-11-20  Jim Meyering  <jim@meyering.net>
57276
57277         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57278         continue using the flexible array member (thus, this module performs
57279         half as many malloc calls), with the addition that...
57280         (getgroup, getuser): Consistently record a non-match via an empty
57281         "name" string, and map an empty string match to a NULL return value.
57282         * modules/idcache (Depends-on): Re-add flexmember.
57283
57284         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57285         (getuidbyname, getgroup, getgidbyname): Likewise.
57286
57287         Use cleaner syntax: NULL rather than 0.
57288         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57289
57290 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57291
57292         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57293         It mishandled the case where the group was missing.
57294         Problem reported by Greg Schafer.
57295         * modules/idcache: Likewise.
57296
57297 2006-11-18  Jim Meyering  <jim@meyering.net>
57298
57299         * check-module (%exempt_header): Add exception for some
57300         conditionally-included headers.
57301
57302         * modules/i-ring (Depends-on): Add verify.
57303         (License): Change to LGPL.
57304
57305 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57306
57307         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57308         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57309         and inttostr.h.  Use snprintf rather than uinttostr, so that
57310         LGPLed code doesn't depend on GPLed.
57311
57312 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57313
57314         * modules/inline (License): Change from GPL to LGPL.
57315
57316 2006-11-17  Jim Meyering  <jim@meyering.net>
57317
57318         * modules/d-type (License): Switch to LGPL.
57319
57320 2006-11-15  Bruno Haible  <bruno@clisp.org>
57321
57322         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57323
57324 2006-11-15  Eric Blake  <ebb9@byu.net>
57325
57326         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57327         the module dependency.
57328
57329 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57330             Bruno Haible  <bruno@clisp.org>
57331
57332         * gnulib-tool (func_create_testdir): Add license consistency check.
57333
57334 2006-11-15  Eric Blake  <ebb9@byu.net>
57335
57336         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57337         random "(cached)" in configure output.
57338
57339 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57340
57341         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57342         test for conforming inttypes.h is both announced and cached.
57343
57344         * MODULES.html.sh (seen_modules, seen_files): New variables.
57345         (func_module): Rewrite to use a few less gnulib-tool and sed
57346         invocations.  Avoid a couple of quadratic algorithms for ...
57347         (missed_modules, missed_files): ... these, with ...
57348         (func_append, func_tmpdir): ... these new functions, from
57349         gnulib-tool.  Analogously, install traps for cleanup.
57350
57351         * tests/test-gc.c (main): Remove unused variables.
57352         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57353
57354 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57355
57356         * modules/inttostr (License): Change to LGPL.
57357
57358 2006-11-14  Eric Blake  <ebb9@byu.net>
57359
57360         * modules/tempname (License): Change to LGPL.
57361
57362 2006-11-14  Eric Blake  <ebb9@byu.net>
57363
57364         * doc/functions.texi (Function Portability): *printf functions on
57365         Cygwin now understand all POSIX size specifiers.
57366
57367 2006-11-14  Bruno Haible  <bruno@clisp.org>
57368
57369         * modules/c-ctype (License): Change to LGPL.
57370
57371 2006-11-12  Bruno Haible  <bruno@clisp.org>
57372
57373         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57374         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57375         for GNOME libraries, for which the include files are installed in
57376         subdirectories of $prefix/include.
57377
57378 2006-11-12  Bruno Haible  <bruno@clisp.org>
57379
57380         * m4/lib-link.m4: Require at least autoconf-2.54.
57381         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57382         name to underscores for the --with option.
57383
57384 2006-11-13  Bruno Haible  <bruno@clisp.org>
57385
57386         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57387         the tests directory.
57388         Reported by Ralf Wildenhues.
57389
57390 2006-11-13  Bruno Haible  <bruno@clisp.org>
57391
57392         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57393         (func_emit_initmacro_end): Undo the override here.
57394         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57395         Works around the famous automake error in coreutils.
57396
57397 2006-11-13  Eric Blake  <ebb9@byu.net>
57398
57399         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57400         element, not its node.
57401
57402 2006-11-12  Bruno Haible  <bruno@clisp.org>
57403
57404         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57405         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57406
57407 2006-11-12  Bruno Haible  <bruno@clisp.org>
57408
57409         * gnulib-tool: New option --local-symlink.
57410         (func_usage): Document it.
57411         (lsymbolic): New variable.
57412         (func_import, func_create_testdir): If --symlink was not specified,
57413         test whether --local-symlink was specified and the file comes from
57414         the local_gnulib_dir.
57415
57416 2006-11-12  Bruno Haible  <bruno@clisp.org>
57417
57418         * gnulib-tool (func_ln): New function.
57419         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57420
57421 2006-11-12  Bruno Haible  <bruno@clisp.org>
57422
57423         Finish support for source files in subdirectories.
57424         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57425         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57426         AUTOMAKE_OPTIONS.
57427         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57428
57429 2006-11-12  Bruno Haible  <bruno@clisp.org>
57430
57431         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57432         EXTRA_lib_SOURCES augmentation.
57433         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57434
57435 2006-11-12  Jim Meyering  <jim@meyering.net>
57436
57437         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57438         file descriptors.  This also averts a failure on systems with
57439         native openat support when a traversed directory lacks "x" access.
57440         * lib/fts_.h: Include "i-ring.h"
57441         (struct FTS) [fts_fd_ring]: New member.
57442         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57443         (FCHDIR): Add parentheses.
57444         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57445         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57446         When descending, rather than simply closing the previous
57447         fts_cwd_fd value, push that file descriptor onto the ring.
57448         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57449         (fts_open): Initialize the new fd_ring member.
57450         (fts_close): Clear the ring.
57451         (fts_safe_changedir): When possible, use our new fd_ring to skip
57452         the diropen and fstat and dev/ino comparison that would normally
57453         accompany a virtual `chdir ("..")'.
57454
57455         * modules/fts (Depends-on): Add i-ring.
57456         * modules/i-ring: New module.
57457         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57458         * m4/i-ring.m4: New file.
57459
57460 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57461
57462         * gnulib-tool (func_create_testdir): Fix replacement of
57463         `build-aux' in configure.ac.  Run autotools in gltests
57464         subdirectory.
57465         (func_create_testdir, func_create_megatestdir, test): There is
57466         no need for '--force' in most autotool invocations in a new
57467         tree.  Actually fail the whole test if any of the tools, or the
57468         configure or make stages fail.
57469
57470         Sync from Automake.
57471         * build-aux/gnupload: Revert last change.  Add pointer to upload
57472         instructions of the GNU Maintenance Instructions.
57473         Suggestion by Karl Berry.
57474
57475 2006-11-10  Jim Meyering  <jim@meyering.net>
57476
57477         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57478
57479 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57480
57481         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57482         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57483         (bind_textdomain_codeset) [! ENABLE_NLS]:
57484         Evaluate all the arguments.  That way, callers get compatible behavior
57485         if the arguments have side effects.  Also, it avoids some GCC
57486         diagnostics in some cases; Joel E. Denny reported problems when Bison
57487         was configured with --enable-gcc-warnigs.
57488
57489 2006-11-10  Jim Meyering  <jim@meyering.net>
57490
57491         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57492         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57493         account.
57494
57495 2006-11-10  Jim Meyering  <jim@meyering.net>
57496
57497         * modules/inline: New file/module.
57498         * modules/xalloc (Files): Remove m4/inline.m4.
57499         (Depends-on): Add inline, instead.
57500         * modules/oset: Likewise.
57501         * modules/list: Likewise.
57502
57503 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57506         Problem reported by Matthew Woehlke.
57507
57508 2006-11-09  Bruno Haible  <bruno@clisp.org>
57509
57510         * lib/tempname.c (gen_tempname): Remove variant that invokes
57511         __gen_tempname.
57512         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57513         __gen_tempname.
57514
57515 2006-11-08  Bruno Haible  <bruno@clisp.org>
57516
57517         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57518         to 'yes' instead of 'cross-compiling'.
57519
57520 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57521
57522         * lib/quotearg.h (quotearg_free): New decl.
57523         * lib/quotearg.c (quotearg_free): New function.
57524         (slot0, nslots, slotvec0, slotvec):
57525         Now file-scope so that quotearg_free can get at them.
57526
57527 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57528
57529         Sync from Automake.
57530         * build-aux/gnupload: Add missing 'gnu' to example URL.
57531         Report by Karl Berry.
57532
57533 2006-11-08  Bruno Haible  <bruno@clisp.org>
57534
57535         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57536         Suggested by Paul Eggert.
57537
57538 2006-11-08  Jim Meyering  <jim@meyering.net>
57539
57540         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57541         It's already included if !_LIBC.
57542         (fts_safe_changedir): Add a comment.
57543
57544 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57545
57546         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57547         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57548         Matthew Woehlke.
57549
57550         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57551         definitions up, to avoid colliding with change below.
57552         (static_inline) [HAVE_INLINE]: New macro.
57553         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57554         Provide extern decls when !HAVE_INLINE.  Do not define unless
57555         static_inline is defined, either by us or by xmalloc.c.  Use
57556         static_inline rather than static inline.
57557         (XCALLOC): Optimize sizeof(T) = 1 case.
57558         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57559
57560 2006-11-07  Bruno Haible  <bruno@clisp.org>
57561
57562         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57563         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57564         AC_C_INLINE.
57565         * modules/xalloc (Files): Add m4/inline.m4.
57566
57567 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57568
57569         * README: Fix typo.
57570         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57571         (Miscellanous Notes): ...from this.
57572
57573 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57574
57575         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57576         Mention that offsetof should be used instead of sizeof.
57577         From Bruno Haible.
57578
57579 2006-11-07  Bruno Haible  <bruno@clisp.org>
57580
57581         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57582
57583 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57584
57585         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57586         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57587         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57588         (gl_tree_add_before, gl_tree_add_after):
57589         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57590         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57591         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57592         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57593         (gl_linked_add_after, gl_linked_add_at): Likewise.
57594         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57595         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57596         (gl_tree_add_before, gl_tree_add_after): Likewise.
57597         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57598         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57599         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57600
57601 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57602
57603         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57604
57605 2006-11-06  Bruno Haible  <bruno@clisp.org>
57606
57607         * m4/inline.m4: New file.
57608         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57609         * modules/list (Files): Add m4/inline.m4.
57610         * modules/oset (Files): Likewise.
57611
57612 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57613
57614         * lib/idcache.c: Include <stddef.h>, for offsetof.
57615         (struct userid.name): Change from char * to a flexible array member.
57616         All uses changed.
57617         * modules/idcache (Depends-on): Add flexmember.
57618
57619         * MODULES.html.sh (Core language properties): New module flexmember.
57620         * modules/flexmember, m4/flexmember.m4: New files.
57621
57622         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57623         inline functions that are identical with the old xnmalloc_inline,
57624         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57625         that we can avoid some unnecessary integer multiplications and
57626         divisions in the common case where the element size is known at
57627         compile time.
57628         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57629         needed.
57630         (xnboundedmalloc): Remove.
57631         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57632         arguments, for consistency with rest of this header.
57633         (xcharalloc): Rewrite using XNMALLOC.
57634         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57635         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57636         versions have been moved to lib/xalloc.h and renamed to be the
57637         non-*_inline versions.
57638         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57639         and xnrealloc functions, since those functions are now inline and
57640         now call us.
57641         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57642         renaming described above.
57643         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57644         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57645         captures the dependency in AC_C_INLINE.
57646
57647         New module canonicalize-lgpl, proposed by Charles Wilson in
57648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57649         with a few small changes afterwards.
57650         * MODULES.html.sh (File system functions): New module
57651         canonicalize-lgpl.
57652         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57653         and canonicalize_file_name.
57654         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57655         * modules/canonicalize-lgpl: New files.
57656
57657 2006-11-05  Bruno Haible  <bruno@clisp.org>
57658
57659         * gnulib-tool (func_import, func_create_testdir): Create directories
57660         also for files in subdirectories of lib/.
57661
57662 2006-11-05  Bruno Haible  <bruno@clisp.org>
57663
57664         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57665         ANSI C compliant.
57666
57667 2006-11-03  Bruno Haible  <bruno@clisp.org>
57668
57669         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57670         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57671         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57672         (xnboundedmalloc): New inline function.
57673         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57674         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57675         xmalloc.
57676         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57677         xmalloc.
57678         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57679         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57680         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57681         xmalloc.
57682         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57683         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57684         xmalloc.
57685         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57686         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57687         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57688         xmalloc.
57689         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57690         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57691         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57692         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57693         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57694         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57695         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57696
57697 2006-11-03  Bruno Haible  <bruno@clisp.org>
57698
57699         * lib/c-ctype.h [C++]: Define functions without name mangling.
57700         * lib/fwriteerror.h [C++]: Likewise.
57701         * lib/gcd.h [C++]: Likewise.
57702         * lib/linebreak.h [C++]: Likewise.
57703
57704 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57705
57706         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57707         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57708         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57709         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57710         Check for functions and headers just once.
57711         Check for declaration of canonicalize_file_name.
57712         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57713
57714 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57715
57716         * gnulib-tool (func_import): Fix typo in actioncmd.
57717
57718 2006-11-02  Bruno Haible  <bruno@clisp.org>
57719
57720         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57721         newline sequence in the Makefile.am snippet as a space, like "make"
57722         does.
57723         Reported by Roger Persson <perrog@gmail.com>.
57724
57725 2006-11-01  Bruno Haible  <bruno@clisp.org>
57726
57727         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57728         already declared in <string.h>.
57729         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57730
57731 2006-11-01  Bruno Haible  <bruno@clisp.org>
57732
57733         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57734         * lib/strcase.h: Include <string.h>.
57735         (strcasecmp): Define to rpl_strcasecmp here.
57736
57737 2006-11-01  Bruno Haible  <bruno@clisp.org>
57738
57739         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57740
57741 2006-11-01  Eric Blake  <ebb9@byu.net>
57742
57743         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57744
57745         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57746
57747 2006-10-29  Bruno Haible  <bruno@clisp.org>
57748
57749         Make it compile in C++ mode.
57750         * lib/full-write.c (full_rw): Add a cast.
57751
57752 2006-11-01  Bruno Haible  <bruno@clisp.org>
57753
57754         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57755         be POSIX compliant.
57756         Reported by Roger Persson <perrog@gmail.com>.
57757
57758 2006-11-01  Eric Blake  <ebb9@byu.net>
57759
57760         * lib/getopt_.h: Fix comments.
57761
57762 2006-10-31  Eric Blake  <ebb9@byu.net>
57763
57764         * modules/tmpdir (Depends-on): Add sys_stat.
57765         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57766         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57767         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57768         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57769         tempname.
57770
57771 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57772
57773         Avoid some C++ diagnostics reported by Bruno Haible.
57774         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57775         xmalloc.
57776         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57777         (struct slotvec): Move to top level.
57778         (quotearg_n_options): Rewrite to avoid xmalloc.
57779         * lib/xalloc.h (xcharalloc): New function.
57780         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57781         [defined __cplusplus]: Add function template that provides result
57782         type propagation.  This part of the change is from Bruno Haible.
57783
57784 2006-10-29  Bruno Haible  <bruno@clisp.org>
57785
57786         Make it compile in C++ mode.
57787         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57788         * lib/strnlen1.c (strnlen1): Cast memchr result.
57789         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57790         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57791         (create_temp_dir): Rename local variable 'template'.
57792         (compile_csharp_using_sscli): Add cast.
57793         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57794         * lib/findprog.c (find_in_path): Likewise.
57795         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57796         * lib/wait-process.c (register_slave_subprocess): Likewise.
57797
57798 2006-10-22  Bruno Haible  <bruno@clisp.org>
57799
57800         * modules/tsearch: New file.
57801         * lib/tsearch.h: New file.
57802         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57803         * m4/tsearch.m4: New file.
57804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57805
57806 2006-10-29  Eric Blake  <ebb9@byu.net>
57807
57808         * lib/arcfour.c: Assume config.h.
57809         * lib/arctwo.c: Likewise.
57810         * lib/base64.c: Likewise.
57811         * lib/check-version.c: Likewise.
57812         * lib/crc.c: Likewise.
57813         * lib/des.c: Likewise.
57814         * lib/gc-gnulib.c: Likewise.
57815         * lib/gc-libgcrypt.c: Likewise.
57816         * lib/gc-pbkdf2-sha1.c: Likewise.
57817         * lib/getaddrinfo.c: Likewise.
57818         * lib/getdelim.c: Likewise.
57819         * lib/getline.c: Likewise.
57820         * lib/hmac-md5.c: Likewise.
57821         * lib/hmac-sha1.c: Likewise.
57822         * lib/iconvme.c: Likewise.
57823         * lib/md2.c: Likewise.
57824         * lib/md4.c: Likewise.
57825         * lib/memxor.c: Likewise.
57826         * lib/read-file.c: Likewise.
57827         * lib/readline.c: Likewise.
57828         * lib/rijndael-alg-fst.c: Likewise.
57829         * lib/rijndael-api-fst.c: Likewise.
57830         * lib/xgetdomainname.c: Likewise.
57831
57832 2006-10-28  Eric Blake  <ebb9@byu.net>
57833
57834         * lib/xstrndup.c: Assume config.h.
57835
57836 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57837
57838         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57839         stat-macros.h is now for our own macros, whereas stat_h is for
57840         macros in the <sys/stat.h> name space.
57841         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57842         (STAT_MACROS_H): Remove.
57843         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57844         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57845         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57846         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57847         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57848         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57849         Move these macros to ...
57850         * lib/stat_.h: here.  Don't include stat-macros.h.
57851         * lib/canonicalize.c: Don't include stat-macros.h.
57852         * lib/chown.c: Likewise.
57853         * lib/euidaccess.c: Likewise.
57854         * lib/file-type.c: Likewise.
57855         * lib/filemode.c: Likewise.
57856         * lib/glob.c: Likewise.
57857         * lib/isapipe.c: Likewise.
57858         * lib/lchown.c: Likewise.
57859         * lib/lstat.c: Likewise.
57860         * lib/mkdir-p.c: Likewise.
57861         * lib/rmdir.c: Likewise.
57862         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57863         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57864         unless mkdir isn't declared, to speed up 'configure'.
57865         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57866         would define all the S_* symbols.
57867         * modules/canonicalize (Depends-on):
57868         Depend on sys_stat, not stat-macros.
57869         * modules/chown: Likewise.
57870         * modules/euidaccess: Likewise.
57871         * modules/filemode: Likewise.
57872         * modules/file-type: Likewise.
57873         * modules/glob: Likewise.
57874         * modules/isapipe: Likewise.
57875         * modules/lchown: Likewise.
57876         * modules/lstat: Likewise.
57877         * modules/mkancesdirs: Likewise.
57878         * modules/rmdir: Likewise.
57879         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57880         * modules/modechange: Likewise.
57881         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57882         (configure.ac): Remove gl_STAT_MACROS.
57883         * modules/sys_stat (Depends-on): Remove stat-macros.
57884
57885 2006-10-27  Bruno Haible  <bruno@clisp.org>
57886
57887         * m4/signed.m4: Remove file.
57888         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57889         invocation.
57890         * modules/vasnprintf (Files): Remove m4/signed.m4.
57891
57892 2006-10-27  Bruno Haible  <bruno@clisp.org>
57893
57894         Update to GNU gettext 0.16.
57895         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57896         m4/inttypes-h.m4, m4/signed.m4.
57897         * m4/gettext.m4: Update to GNU gettext 0.16.
57898         * m4/intl.m4: New file, from GNU gettext.
57899         * m4/intldir.m4: New file, from GNU gettext.
57900         * config/srclist.txt: Update
57901
57902 2006-10-27  Eric Blake  <ebb9@byu.net>
57903
57904         * MODULES.html.sh: Document tempname.
57905         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57906         dependencies.
57907         (Files): Move lib/tempname.c...
57908         * modules/tempname: ...to this new module.
57909         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57910         (gl_PREREQ_TEMPNAME): Move...
57911         * m4/tempname.m4: ...to this new file.
57912         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57913         * modules/sys_stat (Depends-on): Add stat-macros.
57914         * lib/stat_.h (includes): Pick up stat macros.
57915         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57916         if stat macros are broken.
57917         * lib/tempname.c (includes): No need to include "stat-macros.h".
57918         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57919         (direxists, __path_search) [!_LIBC]: Don't compile these in
57920         gnulib; the tmpdir module covers that.
57921         * lib/tempname.h: New file.
57922
57923 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         * COPYING: Explain how gnulib-tool converts licence headers.
57926         Almost all wording by Eric Blake.
57927
57928 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57929
57930         * lib/mbchar.h (is_basic_table): Make read-only.
57931         * lib/mbchar.c (is_basic_table): Likewise.
57932         Reported by John Darrington.
57933
57934 2006-10-25  Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/progname.h (set_program_name): Undefine before defining.
57937
57938 2006-10-25  Bruno Haible  <bruno@clisp.org>
57939
57940         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57941         false for non-gcc C++ compilers.
57942         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57943
57944 2006-10-24  Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57947         iconv implementations like Irix iconv.
57948
57949 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57950
57951         * modules/vararrays: New file.
57952         * m4/vararrays.m4: New file, taken from diffutils.
57953         * MODULES.html.sh: New module vararrays.
57954
57955 2006-10-24  Karl Berry  <karl@gnu.org>
57956
57957         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57958         Don't call GNU Unix.
57959
57960 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57961
57962         * users.txt: Add Libtool.
57963
57964         Sync from Libtool:
57965
57966         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57967
57968         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57969         to gnulib's policy of including config.h unconditionally.
57970
57971 2006-10-24  Bruno Haible  <bruno@clisp.org>
57972
57973         * modules/wcwidth (Files): Add m4/wint_t.m4.
57974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57975         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57976
57977 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57978
57979         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57980         to pacify GCC with some -W flags enabled.  Problem reported by
57981         Bruno Haible.
57982
57983 2006-10-24  Jim Meyering  <jim@meyering.net>
57984
57985         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57986         Reported by Karl Berry.
57987
57988 2006-10-23  Bruno Haible  <bruno@clisp.org>
57989
57990         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57991
57992 2006-10-24  Bruno Haible  <bruno@clisp.org>
57993
57994         * lib/gl_list.h: Use C comment style, not C++ comment style.
57995
57996 2006-10-23  Eric Blake  <ebb9@byu.net>
57997
57998         * lib/getaddrinfo.c (includes): Add missing include.
57999
58000 2006-10-23  Bruno Haible  <bruno@clisp.org>
58001             Paul Eggert  <eggert@cs.ucla.edu>
58002
58003         Ability to rename obstack_free.
58004         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58005         obstack_free.
58006         (obstack_free): Invoke the __obstack_free macro.
58007         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58008
58009 2006-10-23  Bruno Haible  <bruno@clisp.org>
58010             Paul Eggert  <eggert@cs.ucla.edu>
58011
58012         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58013         __argc, __argv from the declaration. (They are defined as macros on
58014         mingw.)
58015
58016 2006-10-22  Bruno Haible  <bruno@clisp.org>
58017
58018         * doc/gnulib-intro.texi: New file.
58019         * doc/gnulib.texi: Include it.
58020
58021 2006-10-21  Bruno Haible  <bruno@clisp.org>
58022
58023         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58024         "Introduction", "Miscellanous Notes", "Particular Modules".
58025
58026 2006-10-21  Bruno Haible  <bruno@clisp.org>
58027
58028         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58029         Change mostlyclean-local rule to avoid sh syntax error from bash
58030         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58031
58032 2006-10-23  Jim Meyering  <jim@meyering.net>
58033
58034         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58035         in place of snprintf.
58036
58037         * modules/inttostr (Files): Add lib/uinttostr.c.
58038         * lib/uinttostr.c (inttostr): New file/function.
58039         * lib/inttostr.h (uinttostr): Declare.
58040         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58041         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58042         Add uinttostr.
58043         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58044
58045 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58046
58047         * lib/canonicalize.c (ELOOP): Define if not already defined.
58048         Problem reported by Bruno Haible in
58049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58050
58051 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58052
58053         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58054         Problem reported by Perry Smith and Ville Laurikari.
58055
58056         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58057         uses.
58058
58059 2006-10-19  Bruno Haible  <bruno@clisp.org>
58060
58061         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58062         for mingw.
58063
58064 2006-10-19  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58067         Needed for mingw.
58068
58069 2006-10-19  Bruno Haible  <bruno@clisp.org>
58070
58071         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58072
58073 2006-10-19  Bruno Haible  <bruno@clisp.org>
58074
58075         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58076         it.
58077
58078 2006-10-19  Bruno Haible  <bruno@clisp.org>
58079
58080         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58081         invocation.
58082
58083 2006-10-19  Bruno Haible  <bruno@clisp.org>
58084
58085         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58086         mountlist by default.
58087
58088 2006-10-16  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/c-strstr.c: Include c-strstr.h.
58091
58092 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58093
58094         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58095         in a slash.
58096
58097 2006-10-18  Bruno Haible  <bruno@clisp.org>
58098
58099         * lib/lock.h [C++]: Wrap definitions in extern "C".
58100
58101 2006-10-18  Bruno Haible  <bruno@clisp.org>
58102
58103         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58104         gl_LIBOBJS list.
58105
58106 2006-10-18  Bruno Haible  <bruno@clisp.org>
58107
58108         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58109
58110 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58111
58112         * lib/xstrtol.h: Include gettext.h.
58113         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58114         Problem reported by Eric Blake.
58115         * modules/xstrtol (Depends-on): Add gettext-h.
58116
58117 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58118
58119         * lib/strftime.c (advance): New macro.
58120         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58121         incomplete type, so you can't add 0 to it.  Problem and patch
58122         reported by Eelco Dolstra for dietlibc.
58123
58124 2006-10-18  Jim Meyering  <jim@meyering.net>
58125
58126         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58127         type for a local, and rename it: s/up/user_proc/.
58128
58129 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58130
58131         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58132         READ_UTMP_USER_PROCESS.
58133         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58134
58135 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58136
58137         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58138         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58139
58140 2006-10-17  Eric Blake  <ebb9@byu.net>
58141
58142         * lib/sigprocmask.c (sigprocmask): Fix typo.
58143
58144         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58145
58146         * modules/clean-temp (Makefile.am): Don't add to make output...
58147         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58148         config.h.
58149
58150 2006-10-17  Bruno Haible  <bruno@clisp.org>
58151
58152         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58153         differently if DEFAULT_TEXT_DOMAIN is set.
58154
58155 2006-10-16  Bruno Haible  <bruno@clisp.org>
58156
58157         * lib/clean-temp.c: Include fwriteerror.h.
58158
58159 2006-10-16  Bruno Haible  <bruno@clisp.org>
58160
58161         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58162
58163 2006-10-16  Bruno Haible  <bruno@clisp.org>
58164
58165         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58166         * lib/sigprocmask.h: Include <sys/types.h>.
58167         (sigset_t): Use the system's definition if present.
58168
58169 2006-10-17  Eric Blake  <ebb9@byu.net>
58170
58171         * lib/xvasprintf.c (includes): Assume config.h.
58172         * lib/xasprintf.c (includes): Likewise.
58173
58174 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58175
58176         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58177         at least as wide as intmax_t.
58178
58179 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58180
58181         (Imported from Automake.)
58182         * build-aux/gnupload: Update to version 1.1 of directive file.
58183
58184 2006-10-16  Eric Blake  <ebb9@byu.net>
58185
58186         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58187         match Automake 1.10a.
58188
58189 2006-10-14  Bruno Haible  <bruno@clisp.org>
58190
58191         * modules/sigprocmask: New file.
58192         * lib/sigprocmask.h: New file.
58193         * lib/sigprocmask.c: New file.
58194         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58195         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58196         request sigprocmask.o.
58197         (gl_PREREQ_SIGPROCMASK): New macro.
58198         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58199         (Depends-on): Add sigprocmask.
58200         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58201         gt_SIGNALBLOCKING. Test for 'raise' only once.
58202         * lib/fatal-signal.c: Include sigprocmask.h.
58203         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58204         unblock_fatal_signals): Define always.
58205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58206         sigprocmask.
58207
58208 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58209
58210         Sync from Automake.
58211         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58212         which incorrectly sets the mode of an existing destination
58213         directory.  In some cases the unpatched install-sh could do the
58214         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58215         system.  We hope this is rare in practice, but it's clearly worth
58216         fixing.  Problem reported by Alex Unleashed in
58217         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58218         Also, don't bother to check for -m bugs unless we're using -m;
58219         suggested by Stepan Kasal.
58220
58221 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58222
58223         Sync from Automake.
58224         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58225         `-c' flag, so they appear at the same position as in %FASTDEP%
58226         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58227         which ignores unknown options only after the first non-option.
58228         Bug report against M4 by Nelson H. F. Beebe.
58229
58230 2006-10-13  Jim Meyering  <jim@meyering.net>
58231
58232         Fix a bug in yesterday's change.
58233         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58234         p->fts_statp->st_dev would be used uninitialized.
58235         Ensures that we always call fts_stat on the very first entry.
58236         Miklos Szeredi reported that find -xdev stopped working.
58237
58238 2006-10-12  Bruno Haible  <bruno@clisp.org>
58239
58240         * gnulib-tool (func_get_automake_snippet): Append an automatically
58241         computed EXTRA_DIST augmentation.
58242         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58243         * modules/alloca-opt (Makefile.am): Likewise.
58244         * modules/allocsa (Makefile.am): Likewise.
58245         * modules/arcfour (Makefile.am): Likewise.
58246         * modules/arctwo (Makefile.am): Likewise.
58247         * modules/argmatch (Makefile.am): Likewise.
58248         * modules/argz (Makefile.am): Likewise.
58249         * modules/atexit (Makefile.am): Likewise.
58250         * modules/backupfile (Makefile.am): Likewise.
58251         * modules/byteswap (Makefile.am): Likewise.
58252         * modules/c-strtod (Makefile.am): Likewise.
58253         * modules/c-strtold (Makefile.am): Likewise.
58254         * modules/calloc (Makefile.am): Likewise.
58255         * modules/canon-host (Makefile.am): Likewise.
58256         * modules/canonicalize (Makefile.am): Likewise.
58257         * modules/chdir-long (Makefile.am): Likewise.
58258         * modules/chdir-safer (Makefile.am): Likewise.
58259         * modules/check-version (Makefile.am): Likewise.
58260         * modules/chown (Makefile.am): Likewise.
58261         * modules/cloexec (Makefile.am): Likewise.
58262         * modules/close-stream (Makefile.am): Likewise.
58263         * modules/closeout (Makefile.am): Likewise.
58264         * modules/crc (Makefile.am): Likewise.
58265         * modules/csharpexec (Makefile.am): Likewise.
58266         * modules/cycle-check (Makefile.am): Likewise.
58267         * modules/des (Makefile.am): Likewise.
58268         * modules/dev-ino (Makefile.am): Likewise.
58269         * modules/dirfd (Makefile.am): Likewise.
58270         * modules/dirname (Makefile.am): Likewise.
58271         * modules/dup2 (Makefile.am): Likewise.
58272         * modules/eealloc (Makefile.am): Likewise.
58273         * modules/error (Makefile.am): Likewise.
58274         * modules/euidaccess (Makefile.am): Likewise.
58275         * modules/exclude (Makefile.am): Likewise.
58276         * modules/exitfail (Makefile.am): Likewise.
58277         * modules/fcntl-safer (Makefile.am): Likewise.
58278         * modules/fcntl (Makefile.am): Likewise.
58279         * modules/file-type (Makefile.am): Likewise.
58280         * modules/fileblocks (Makefile.am): Likewise.
58281         * modules/filemode (Makefile.am): Likewise.
58282         * modules/filenamecat (Makefile.am): Likewise.
58283         * modules/fnmatch (Makefile.am): Likewise.
58284         * modules/fopen-safer (Makefile.am): Likewise.
58285         * modules/fpending (Makefile.am): Likewise.
58286         * modules/fprintftime (Makefile.am): Likewise.
58287         * modules/free (Makefile.am): Likewise.
58288         * modules/fsusage (Makefile.am): Likewise.
58289         * modules/ftruncate (Makefile.am): Likewise.
58290         * modules/fts (Makefile.am): Likewise.
58291         * modules/gc-arcfour (Makefile.am): Likewise.
58292         * modules/gc-des (Makefile.am): Likewise.
58293         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58294         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58295         * modules/gc-md4 (Makefile.am): Likewise.
58296         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58297         * modules/gc-sha1 (Makefile.am): Likewise.
58298         * modules/gc (Makefile.am): Likewise.
58299         * modules/getaddrinfo (Makefile.am): Likewise.
58300         * modules/getcwd (Makefile.am): Likewise.
58301         * modules/getdelim (Makefile.am): Likewise.
58302         * modules/getdomainname (Makefile.am): Likewise.
58303         * modules/getgroups (Makefile.am): Likewise.
58304         * modules/gethostname (Makefile.am): Likewise.
58305         * modules/gethrxtime (Makefile.am): Likewise.
58306         * modules/getline (Makefile.am): Likewise.
58307         * modules/getloadavg (Makefile.am): Likewise.
58308         * modules/getlogin_r (Makefile.am): Likewise.
58309         * modules/getndelim2 (Makefile.am): Likewise.
58310         * modules/getopt (Makefile.am): Likewise.
58311         * modules/getpagesize (Makefile.am): Likewise.
58312         * modules/getpass-gnu (Makefile.am): Likewise.
58313         * modules/getpass (Makefile.am): Likewise.
58314         * modules/getsubopt (Makefile.am): Likewise.
58315         * modules/gettime (Makefile.am): Likewise.
58316         * modules/gettimeofday (Makefile.am): Likewise.
58317         * modules/getugroups (Makefile.am): Likewise.
58318         * modules/getusershell (Makefile.am): Likewise.
58319         * modules/glob (Makefile.am): Likewise.
58320         * modules/group-member (Makefile.am): Likewise.
58321         * modules/hard-locale (Makefile.am): Likewise.
58322         * modules/hash (Makefile.am): Likewise.
58323         * modules/hmac-md5 (Makefile.am): Likewise.
58324         * modules/hmac-sha1 (Makefile.am): Likewise.
58325         * modules/human (Makefile.am): Likewise.
58326         * modules/idcache (Makefile.am): Likewise.
58327         * modules/imaxabs (Makefile.am): Likewise.
58328         * modules/imaxdiv (Makefile.am): Likewise.
58329         * modules/inet_ntop (Makefile.am): Likewise.
58330         * modules/inet_pton (Makefile.am): Likewise.
58331         * modules/intprops (Makefile.am): Likewise.
58332         * modules/inttostr (Makefile.am): Likewise.
58333         * modules/inttypes (Makefile.am): Likewise.
58334         * modules/isapipe (Makefile.am): Likewise.
58335         * modules/javaversion (Makefile.am): Likewise.
58336         * modules/lchmod (Makefile.am): Likewise.
58337         * modules/lchown (Makefile.am): Likewise.
58338         * modules/localcharset (Makefile.am): Likewise.
58339         * modules/long-options (Makefile.am): Likewise.
58340         * modules/lstat (Makefile.am): Likewise.
58341         * modules/malloc (Makefile.am): Likewise.
58342         * modules/mathl (Makefile.am): Likewise.
58343         * modules/mbchar (Makefile.am): Likewise.
58344         * modules/md2 (Makefile.am): Likewise.
58345         * modules/md4 (Makefile.am): Likewise.
58346         * modules/md5 (Makefile.am): Likewise.
58347         * modules/memcasecmp (Makefile.am): Likewise.
58348         * modules/memchr (Makefile.am): Likewise.
58349         * modules/memcmp (Makefile.am): Likewise.
58350         * modules/memcoll (Makefile.am): Likewise.
58351         * modules/memcpy (Makefile.am): Likewise.
58352         * modules/memmem (Makefile.am): Likewise.
58353         * modules/memmove (Makefile.am): Likewise.
58354         * modules/mempcpy (Makefile.am): Likewise.
58355         * modules/memrchr (Makefile.am): Likewise.
58356         * modules/memset (Makefile.am): Likewise.
58357         * modules/memxor (Makefile.am): Likewise.
58358         * modules/mkancesdirs (Makefile.am): Likewise.
58359         * modules/mkdir-p (Makefile.am): Likewise.
58360         * modules/mkdir (Makefile.am): Likewise.
58361         * modules/mkdtemp (Makefile.am): Likewise.
58362         * modules/mkstemp (Makefile.am): Likewise.
58363         * modules/mktime (Makefile.am): Likewise.
58364         * modules/modechange (Makefile.am): Likewise.
58365         * modules/mountlist (Makefile.am): Likewise.
58366         * modules/nanosleep (Makefile.am): Likewise.
58367         * modules/obstack (Makefile.am): Likewise.
58368         * modules/openat (Makefile.am): Likewise.
58369         * modules/pagealign_alloc (Makefile.am): Likewise.
58370         * modules/pathmax (Makefile.am): Likewise.
58371         * modules/physmem (Makefile.am): Likewise.
58372         * modules/poll (Makefile.am): Likewise.
58373         * modules/posixtm (Makefile.am): Likewise.
58374         * modules/posixver (Makefile.am): Likewise.
58375         * modules/putenv (Makefile.am): Likewise.
58376         * modules/quote (Makefile.am): Likewise.
58377         * modules/quotearg (Makefile.am): Likewise.
58378         * modules/raise (Makefile.am): Likewise.
58379         * modules/read-file (Makefile.am): Likewise.
58380         * modules/readline (Makefile.am): Likewise.
58381         * modules/readlink (Makefile.am): Likewise.
58382         * modules/readtokens (Makefile.am): Likewise.
58383         * modules/readutmp (Makefile.am): Likewise.
58384         * modules/realloc (Makefile.am): Likewise.
58385         * modules/regex (Makefile.am): Likewise.
58386         * modules/rename-dest-slash (Makefile.am): Likewise.
58387         * modules/rename (Makefile.am): Likewise.
58388         * modules/rijndael (Makefile.am): Likewise.
58389         * modules/rmdir (Makefile.am): Likewise.
58390         * modules/rpmatch (Makefile.am): Likewise.
58391         * modules/safe-read (Makefile.am): Likewise.
58392         * modules/safe-write (Makefile.am): Likewise.
58393         * modules/same-inode (Makefile.am): Likewise.
58394         * modules/same (Makefile.am): Likewise.
58395         * modules/save-cwd (Makefile.am): Likewise.
58396         * modules/savedir (Makefile.am): Likewise.
58397         * modules/setenv (Makefile.am): Likewise.
58398         * modules/settime (Makefile.am): Likewise.
58399         * modules/sha1 (Makefile.am): Likewise.
58400         * modules/sig2str (Makefile.am): Likewise.
58401         * modules/snprintf (Makefile.am): Likewise.
58402         * modules/stat-macros (Makefile.am): Likewise.
58403         * modules/stat-time (Makefile.am): Likewise.
58404         * modules/stdbool (Makefile.am): Likewise.
58405         * modules/stdint (Makefile.am): Likewise.
58406         * modules/stdlib-safer (Makefile.am): Likewise.
58407         * modules/stpcpy (Makefile.am): Likewise.
58408         * modules/stpncpy (Makefile.am): Likewise.
58409         * modules/strcase (Makefile.am): Likewise.
58410         * modules/strcasestr (Makefile.am): Likewise.
58411         * modules/strchrnul (Makefile.am): Likewise.
58412         * modules/strcspn (Makefile.am): Likewise.
58413         * modules/strdup (Makefile.am): Likewise.
58414         * modules/strerror (Makefile.am): Likewise.
58415         * modules/strftime (Makefile.am): Likewise.
58416         * modules/strndup (Makefile.am): Likewise.
58417         * modules/strnlen (Makefile.am): Likewise.
58418         * modules/strpbrk (Makefile.am): Likewise.
58419         * modules/strsep (Makefile.am): Likewise.
58420         * modules/strstr (Makefile.am): Likewise.
58421         * modules/strtod (Makefile.am): Likewise.
58422         * modules/strtoimax (Makefile.am): Likewise.
58423         * modules/strtok_r (Makefile.am): Likewise.
58424         * modules/strtol (Makefile.am): Likewise.
58425         * modules/strtoll (Makefile.am): Likewise.
58426         * modules/strtoul (Makefile.am): Likewise.
58427         * modules/strtoull (Makefile.am): Likewise.
58428         * modules/strtoumax (Makefile.am): Likewise.
58429         * modules/strverscmp (Makefile.am): Likewise.
58430         * modules/sys_socket (Makefile.am): Likewise.
58431         * modules/sys_stat (Makefile.am): Likewise.
58432         * modules/sysexits (Makefile.am): Likewise.
58433         * modules/time_r (Makefile.am): Likewise.
58434         * modules/timegm (Makefile.am): Likewise.
58435         * modules/timespec (Makefile.am): Likewise.
58436         * modules/tmpfile-safer (Makefile.am): Likewise.
58437         * modules/trim (Makefile.am): Likewise.
58438         * modules/unistd-safer (Makefile.am): Likewise.
58439         * modules/unlinkdir (Makefile.am): Likewise.
58440         * modules/unlocked-io (Makefile.am): Likewise.
58441         * modules/userspec (Makefile.am): Likewise.
58442         * modules/utime (Makefile.am): Likewise.
58443         * modules/utimecmp (Makefile.am): Likewise.
58444         * modules/utimens (Makefile.am): Likewise.
58445         * modules/vasnprintf (Makefile.am): Likewise.
58446         * modules/vasprintf (Makefile.am): Likewise.
58447         * modules/vsnprintf (Makefile.am): Likewise.
58448         * modules/xalloc (Makefile.am): Likewise.
58449         * modules/xgetcwd (Makefile.am): Likewise.
58450         * modules/xnanosleep (Makefile.am): Likewise.
58451         * modules/xreadlink (Makefile.am): Likewise.
58452         * modules/xstrtod (Makefile.am): Likewise.
58453         * modules/xstrtol (Makefile.am): Likewise.
58454         * modules/xstrtold (Makefile.am): Likewise.
58455         * modules/yesno (Makefile.am): Likewise.
58456         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58457
58458 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58459
58460         * modules/error (Makefile.am): Distribute files through
58461         EXTRA_DIST, not lib_SOURCES.
58462
58463 2006-10-12  Eric Blake  <ebb9@byu.net>
58464
58465         * modules/error (Makefile.am): Distribute files in /lib.
58466         * modules/obstack (Makefile.am): Likewise.
58467
58468 2006-10-12  Bruno Haible  <bruno@clisp.org>
58469
58470         * modules/acl (Makefile.am): Distribute all files in lib/ through
58471         EXTRA_DIST.
58472         * modules/arcfour (Makefile.am): Likewise.
58473         * modules/arctwo (Makefile.am): Likewise.
58474         * modules/argmatch (Makefile.am): Likewise.
58475         * modules/argz (Makefile.am): Likewise.
58476         * modules/atexit (Makefile.am): Likewise.
58477         * modules/backupfile (Makefile.am): Likewise.
58478         * modules/c-strtod (Makefile.am): Likewise.
58479         * modules/c-strtold (Makefile.am): Likewise.
58480         * modules/calloc (Makefile.am): Likewise.
58481         * modules/canon-host (Makefile.am): Likewise.
58482         * modules/canonicalize (Makefile.am): Likewise.
58483         * modules/chdir-long (Makefile.am): Likewise.
58484         * modules/chdir-safer (Makefile.am): Likewise.
58485         * modules/check-version (Makefile.am): Likewise.
58486         * modules/chown (Makefile.am): Likewise.
58487         * modules/cloexec (Makefile.am): Likewise.
58488         * modules/close-stream (Makefile.am): Likewise.
58489         * modules/closeout (Makefile.am): Likewise.
58490         * modules/crc (Makefile.am): Likewise.
58491         * modules/cycle-check (Makefile.am): Likewise.
58492         * modules/des (Makefile.am): Likewise.
58493         * modules/dirfd (Makefile.am): Likewise.
58494         * modules/dirname (Makefile.am): Likewise.
58495         * modules/dup2 (Makefile.am): Likewise.
58496         * modules/euidaccess (Makefile.am): Likewise.
58497         * modules/exclude (Makefile.am): Likewise.
58498         * modules/exitfail (Makefile.am): Likewise.
58499         * modules/fcntl-safer (Makefile.am): Likewise.
58500         * modules/file-type (Makefile.am): Likewise.
58501         * modules/fileblocks (Makefile.am): Likewise.
58502         * modules/filemode (Makefile.am): Likewise.
58503         * modules/filenamecat (Makefile.am): Likewise.
58504         * modules/fnmatch (Makefile.am): Likewise.
58505         * modules/fopen-safer (Makefile.am): Likewise.
58506         * modules/fpending (Makefile.am): Likewise.
58507         * modules/fprintftime (Makefile.am): Likewise.
58508         * modules/free (Makefile.am): Likewise.
58509         * modules/fsusage (Makefile.am): Likewise.
58510         * modules/ftruncate (Makefile.am): Likewise.
58511         * modules/fts (Makefile.am): Likewise.
58512         * modules/gc (Makefile.am): Likewise.
58513         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58514         * modules/getaddrinfo (Makefile.am): Likewise.
58515         * modules/getcwd (Makefile.am): Likewise.
58516         * modules/getdelim (Makefile.am): Likewise.
58517         * modules/getdomainname (Makefile.am): Likewise.
58518         * modules/getgroups (Makefile.am): Likewise.
58519         * modules/gethostname (Makefile.am): Likewise.
58520         * modules/gethrxtime (Makefile.am): Likewise.
58521         * modules/getline (Makefile.am): Likewise.
58522         * modules/getloadavg (Makefile.am): Likewise.
58523         * modules/getlogin_r (Makefile.am): Likewise.
58524         * modules/getopt (Makefile.am): Likewise.
58525         * modules/getpass (Makefile.am): Likewise.
58526         * modules/getpass-gnu (Makefile.am): Likewise.
58527         * modules/getsubopt (Makefile.am): Likewise.
58528         * modules/gettime (Makefile.am): Likewise.
58529         * modules/gettimeofday (Makefile.am): Likewise.
58530         * modules/getugroups (Makefile.am): Likewise.
58531         * modules/getusershell (Makefile.am): Likewise.
58532         * modules/glob (Makefile.am): Likewise.
58533         * modules/group-member (Makefile.am): Likewise.
58534         * modules/hard-locale (Makefile.am): Likewise.
58535         * modules/hash (Makefile.am): Likewise.
58536         * modules/hmac-md5 (Makefile.am): Likewise.
58537         * modules/hmac-sha1 (Makefile.am): Likewise.
58538         * modules/human (Makefile.am): Likewise.
58539         * modules/idcache (Makefile.am): Likewise.
58540         * modules/imaxabs (Makefile.am): Likewise.
58541         * modules/imaxdiv (Makefile.am): Likewise.
58542         * modules/inet_ntop (Makefile.am): Likewise.
58543         * modules/inet_pton (Makefile.am): Likewise.
58544         * modules/inttostr (Makefile.am): Likewise.
58545         * modules/isapipe (Makefile.am): Likewise.
58546         * modules/lchown (Makefile.am): Likewise.
58547         * modules/long-options (Makefile.am): Likewise.
58548         * modules/lstat (Makefile.am): Likewise.
58549         * modules/malloc (Makefile.am): Likewise.
58550         * modules/mathl (Makefile.am): Likewise.
58551         * modules/mbchar (Makefile.am): Likewise.
58552         * modules/md2 (Makefile.am): Likewise.
58553         * modules/md4 (Makefile.am): Likewise.
58554         * modules/md5 (Makefile.am): Likewise.
58555         * modules/memcasecmp (Makefile.am): Likewise.
58556         * modules/memchr (Makefile.am): Likewise.
58557         * modules/memcmp (Makefile.am): Likewise.
58558         * modules/memcoll (Makefile.am): Likewise.
58559         * modules/memcpy (Makefile.am): Likewise.
58560         * modules/memmem (Makefile.am): Likewise.
58561         * modules/memmove (Makefile.am): Likewise.
58562         * modules/mempcpy (Makefile.am): Likewise.
58563         * modules/memrchr (Makefile.am): Likewise.
58564         * modules/memset (Makefile.am): Likewise.
58565         * modules/memxor (Makefile.am): Likewise.
58566         * modules/mkancesdirs (Makefile.am): Likewise.
58567         * modules/mkdir (Makefile.am): Likewise.
58568         * modules/mkdir-p (Makefile.am): Likewise.
58569         * modules/mkdtemp (Makefile.am): Likewise.
58570         * modules/mkstemp (Makefile.am): Likewise.
58571         * modules/mktime (Makefile.am): Likewise.
58572         * modules/modechange (Makefile.am): Likewise.
58573         * modules/mountlist (Makefile.am): Likewise.
58574         * modules/nanosleep (Makefile.am): Likewise.
58575         * modules/openat (Makefile.am): Likewise.
58576         * modules/pagealign_alloc (Makefile.am): Likewise.
58577         * modules/physmem (Makefile.am): Likewise.
58578         * modules/poll (Makefile.am): Likewise.
58579         * modules/posixtm (Makefile.am): Likewise.
58580         * modules/posixver (Makefile.am): Likewise.
58581         * modules/putenv (Makefile.am): Likewise.
58582         * modules/quote (Makefile.am): Likewise.
58583         * modules/quotearg (Makefile.am): Likewise.
58584         * modules/raise (Makefile.am): Likewise.
58585         * modules/read-file (Makefile.am): Likewise.
58586         * modules/readline (Makefile.am): Likewise.
58587         * modules/readlink (Makefile.am): Likewise.
58588         * modules/readtokens (Makefile.am): Likewise.
58589         * modules/readutmp (Makefile.am): Likewise.
58590         * modules/realloc (Makefile.am): Likewise.
58591         * modules/regex (Makefile.am): Likewise.
58592         * modules/rename (Makefile.am): Likewise.
58593         * modules/rename-dest-slash (Makefile.am): Likewise.
58594         * modules/rijndael (Makefile.am): Likewise.
58595         * modules/rmdir (Makefile.am): Likewise.
58596         * modules/rpmatch (Makefile.am): Likewise.
58597         * modules/safe-read (Makefile.am): Likewise.
58598         * modules/safe-write (Makefile.am): Likewise.
58599         * modules/same (Makefile.am): Likewise.
58600         * modules/save-cwd (Makefile.am): Likewise.
58601         * modules/savedir (Makefile.am): Likewise.
58602         * modules/setenv (Makefile.am): Likewise.
58603         * modules/settime (Makefile.am): Likewise.
58604         * modules/sha1 (Makefile.am): Likewise.
58605         * modules/sig2str (Makefile.am): Likewise.
58606         * modules/snprintf (Makefile.am): Likewise.
58607         * modules/stdlib-safer (Makefile.am): Likewise.
58608         * modules/stpcpy (Makefile.am): Likewise.
58609         * modules/stpncpy (Makefile.am): Likewise.
58610         * modules/strcase (Makefile.am): Likewise.
58611         * modules/strcasestr (Makefile.am): Likewise.
58612         * modules/strchrnul (Makefile.am): Likewise.
58613         * modules/strcspn (Makefile.am): Likewise.
58614         * modules/strdup (Makefile.am): Likewise.
58615         * modules/strerror (Makefile.am): Likewise.
58616         * modules/strftime (Makefile.am): Likewise.
58617         * modules/strndup (Makefile.am): Likewise.
58618         * modules/strnlen (Makefile.am): Likewise.
58619         * modules/strpbrk (Makefile.am): Likewise.
58620         * modules/strsep (Makefile.am): Likewise.
58621         * modules/strstr (Makefile.am): Likewise.
58622         * modules/strtod (Makefile.am): Likewise.
58623         * modules/strtoimax (Makefile.am): Likewise.
58624         * modules/strtok_r (Makefile.am): Likewise.
58625         * modules/strtol (Makefile.am): Likewise.
58626         * modules/strtoll (Makefile.am): Likewise.
58627         * modules/strtoul (Makefile.am): Likewise.
58628         * modules/strtoull (Makefile.am): Likewise.
58629         * modules/strtoumax (Makefile.am): Likewise.
58630         * modules/strverscmp (Makefile.am): Likewise.
58631         * modules/time_r (Makefile.am): Likewise.
58632         * modules/timegm (Makefile.am): Likewise.
58633         * modules/tmpfile-safer (Makefile.am): Likewise.
58634         * modules/unistd-safer (Makefile.am): Likewise.
58635         * modules/unlinkdir (Makefile.am): Likewise.
58636         * modules/userspec (Makefile.am): Likewise.
58637         * modules/utime (Makefile.am): Likewise.
58638         * modules/utimecmp (Makefile.am): Likewise.
58639         * modules/utimens (Makefile.am): Likewise.
58640         * modules/vasnprintf (Makefile.am): Likewise.
58641         * modules/vasprintf (Makefile.am): Likewise.
58642         * modules/vsnprintf (Makefile.am): Likewise.
58643         * modules/xalloc (Makefile.am): Likewise.
58644         * modules/xgetcwd (Makefile.am): Likewise.
58645         * modules/xnanosleep (Makefile.am): Likewise.
58646         * modules/xreadlink (Makefile.am): Likewise.
58647         * modules/xstrtod (Makefile.am): Likewise.
58648         * modules/xstrtol (Makefile.am): Likewise.
58649         * modules/xstrtold (Makefile.am): Likewise.
58650         * modules/yesno (Makefile.am): Likewise.
58651
58652 2006-10-12  Jim Meyering  <jim@meyering.net>
58653
58654         * m4/getloadavg.m4: Revert the change below.
58655
58656         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58657         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58658         fail with a symlink, which is what coreutils' ./bootstrap now
58659         creates by default.
58660
58661 2006-10-12  Bruno Haible  <bruno@clisp.org>
58662
58663         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58664         mingw.
58665         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58666         MSVC and mingw explicitly.
58667
58668 2006-10-11  Simon Josefsson  <jas@extundo.com>
58669             Bruno Haible  <bruno@clisp.org>
58670
58671         Add support for multiple gnulib-tool invocations in the scope of a
58672         single configure.ac file.
58673         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58674         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58675         with the same contents as the _LIBADD variable.
58676         (func_emit_initmacro_start, func_emit_initmacro_end,
58677         func_emit_initmacro_done): New functions.
58678         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58679         gl_LIBOBJS and gl_LTLIBOBJS.
58680
58681 2006-10-11  Bruno Haible  <bruno@clisp.org>
58682
58683         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58684         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58685         autoreconf. Instead, invoke autopoint explicitly but move back the
58686         *.m4 files from gnulib.
58687
58688 2006-10-11  Bruno Haible  <bruno@clisp.org>
58689
58690         * gnulib-tool (func_usage): Make module names after --create-testdir
58691         optional.
58692         (func_create_testdir): If no module was specified, use nearly all
58693         modules.
58694
58695 2006-10-12  Jim Meyering  <jim@meyering.net>
58696
58697         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58698         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58699         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58700         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58701         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58702         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58703         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58704         (fts_set_stat_required): New function.
58705         (fts_open): Defer the calls to fts_stat, if possible or requested.
58706         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58707         into fts_stat itself.
58708         (fts_read): Perform any required (deferred) fts_stat call.
58709         (fts_build): Likewise, for the directory we're about to open and read.
58710         In the readdir loop, carefully decide whether each entry will require
58711         an eventual call to fts_stat, using dirent.d_type info if available.
58712         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58713         a command line argument into this function.  Update all callers.
58714         Map a return value of FTS_DOT to FTS_D for a command line argument.
58715         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58716         Thanks to Miklos Szeredi for his tenacity and for the initial
58717         bug report about "find" failing on a FUSE-based file system.
58718
58719         * lib/fts.c (fts_open): Use consistent indentation.
58720
58721 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58722
58723         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58724         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58725         reported by Jim Meyering.  All uses of cache variables renamed
58726         to match Autoconf's.
58727         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58728         the other one.
58729
58730         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58731         Fix misspelling in diagnostic.
58732
58733 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58734
58735         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58736         defined.  Problem reported by Matthew Woehlke.
58737
58738         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58739         Add support for Tandem NonStop R series.
58740         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58741         Use new macro.
58742
58743         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58744         (has_trailing_slash): Omit size arg; all callers changed.
58745         Omit 'inline', since it doesn't help performance and we'd
58746         need to configure it.
58747         Don't count //, ///, etc. as having a trailing slash.
58748         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58749         (rpl_rename_dest_slash): On failure, use rename's errno rather
58750         than (in some cases) an incorrect or junk errno.
58751         Simplify code by removing need to compute length; this does
58752         cause it to make two passes instead of one over the file name,
58753         but it's worth it.
58754
58755         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58756         change, since Autoconf's version may no longer be appropriate now
58757         that we are using CVS Autoconf's version.  Add support for Tandem.
58758
58759 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58760             Bruno Haible  <bruno@clisp.org>
58761
58762         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58763         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58764         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58765         gl_AC_TYPE_LONG_LONG.
58766
58767         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58768         instead of HAVE_LONG_LONG.
58769         * lib/printf-args.c (printf_fetchargs): Likewise.
58770         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58771         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58772         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58773         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58774         gl_AC_TYPE_LONG_LONG.
58775
58776 2006-10-11  Bruno Haible  <bruno@clisp.org>
58777
58778         * m4/longlong.m4: Add comments.
58779         * m4/ulonglong.m4: Likewise.
58780
58781 2006-10-10  Bruno Haible  <bruno@clisp.org>
58782
58783         Make it possible to #define stpcpy, strdup to aliases.
58784         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58785         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58786
58787 2006-10-10  Bruno Haible  <bruno@clisp.org>
58788
58789         Make it possible to #define gcd to an alias.
58790         * lib/gcd.c: Include config.h.
58791
58792 2006-10-10  Bruno Haible  <bruno@clisp.org>
58793
58794         Make it possible to #define c_isascii to an alias.
58795         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58796         defined. Undefine the macros before defining them, to avoid gcc
58797         warnings.
58798         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58799         define NO_C_CTYPE_MACROS early.
58800
58801 2006-10-10  Bruno Haible  <bruno@clisp.org>
58802
58803         Make it possible to #define set_program_name to an alias.
58804         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58805         ENABLE_RELOCATABLE early.
58806
58807 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58808
58809         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58810         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58811         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58812         More generally, don't assume that 64-bit signed int is available
58813         if unsigned int is, and vice versa.
58814         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58815         unsigned symbols, not on their signed counterparts.
58816         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58817         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58818         (UINT64_C, UINTMAX_C):
58819         Likewise.
58820         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58821         unsigned counterparts.
58822         (Have_long_long, Unsigned): New macros.
58823         (Int): Renamed from INT.
58824         (strtoimax): Use the new macros.
58825         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58826         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58827         * modules/inttypes (inttypes.h): Substitute
58828         HAVE_UNSIGNED_LONG_LONG_INT.
58829         * modules/stdint (stdint.h): Likewise.
58830         (Files): Add m4/ulonglong.m4.
58831
58832 2006-10-10  Bruno Haible  <bruno@clisp.org>
58833
58834         Fix a gcc -Wshadow warning.
58835         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58836         to 'bucket'.
58837         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58838         gl_linked_indexof_from_to): Likewise.
58839         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58840         Likewise.
58841         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58842         Likewise.
58843         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58844         Reported by Eric Blake.
58845
58846 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58847
58848         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58849         for NetBSD.  Problem reported by Bruno Haible.
58850
58851 2006-10-09  Jim Meyering  <jim@meyering.net>
58852
58853         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58854         Patch from Bruno Haible.
58855
58856 2006-10-09  Jim Meyering  <jim@meyering.net>
58857
58858         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58859         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58860         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58861
58862 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58863
58864         Don't include <config.h> twice; this doesn't work in some cases,
58865         e.g., when config.h has "#define intmax_t long long int" and
58866         we include <config.h>, <inttypes.h>, <config.h> in that order.
58867         Problem reported by Matthew Woehlke in:
58868         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58869         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58870         * lib/fts-cycle.c: Don't include config.h.
58871         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58872         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58873         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58874         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58875         inttypes.h.
58876         * lib/xstrtoumax.c: Likewise.
58877         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58878         __strtol and the like, so that this module is more like its siblings.
58879         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58880         Remove; no longer needed now that we assume gnulib inttypes.h.
58881
58882 2006-10-08  Bruno Haible  <bruno@clisp.org>
58883
58884         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58885         option.
58886
58887 2006-10-07  Jim Meyering  <jim@meyering.net>
58888
58889         * modules/inttypes (inttypes.h): Revert what seems to have been
58890         an inadvertent part of today's change: use "|", not "/" in the
58891         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58892
58893 2006-10-07  Bruno Haible  <bruno@clisp.org>
58894
58895         * modules/sublist: New file.
58896
58897 2006-10-07  Bruno Haible  <bruno@clisp.org>
58898
58899         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58900         * modules/argz (argz.h): Likewise.
58901         * modules/arpa_inet (arpa/inet.h): Likewise.
58902         * modules/byteswap (byteswap.h): Likewise.
58903         * modules/configmake (configmake.h): Likewise.
58904         * modules/fcntl (fcntl.h): Likewise.
58905         * modules/fnmatch (fnmatch.h): Likewise.
58906         * modules/getopt (getopt.h): Likewise.
58907         * modules/glob (glob.h): Likewise.
58908         * modules/inttypes (inttypes.h): Likewise.
58909         * modules/netinet_in (netinet/in.h): Likewise.
58910         * modules/poll (poll.h): Likewise.
58911         * modules/stdbool (stdbool.h): Likewise.
58912         * modules/stdint (stdint.h): Likewise.
58913         * modules/sys_select (sys/select.h): Likewise.
58914         * modules/sys_socket (sys/socket.h): Likewise.
58915         * modules/sys_stat (sys/stat.h): Likewise.
58916         * modules/sysexits (sysexits.h): Likewise.
58917         * modules/unistd (unistd.h): Likewise.
58918         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58919         Add a "DO NOT EDIT" comment to the generated file.
58920         (func_import): Likewise for gnulib-comp.m4.
58921
58922 2006-10-07  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/gl_sublist.h: New file.
58925         * lib/gl_sublist.c: New file.
58926
58927 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58928
58929         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58930         name (relative to the original working directory) and the file
58931         name component (relative to the temporary working directory).  All
58932         callers changed.
58933         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58934         * lib/mkdir-p.c (make_dir_parents): Likewise.
58935         * lib/mkdir-p.h (make_dir_parents): Likewise.
58936
58937 2006-10-06  Eric Blake  <ebb9@byu.net>
58938
58939         Define several macros for use by the clean-temp module.
58940         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58941         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58942         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58943
58944         * lib/clean-temp.h (close_stream_temp): New declaration.
58945         * lib/clean-temp.c (includes): Pull in headers according to what
58946         other modules are in use.
58947         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58948
58949 2006-10-06  Bruno Haible  <bruno@clisp.org>
58950
58951         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58952         instead of fopen, fwriteerror.
58953
58954 2006-10-06  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58957         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58958         int.
58959         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58960         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58961         Return an error indicator.
58962         Suggested by Eric Blake.
58963
58964 2006-10-06  Bruno Haible  <bruno@clisp.org>
58965
58966         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58967         Reported by Eric Blake.
58968
58969 2006-10-06  Bruno Haible  <bruno@clisp.org>
58970
58971         * modules/closeout (Description): Mention stderr too.
58972
58973 2006-10-06  Bruno Haible  <bruno@clisp.org>
58974         and Paul Eggert  <eggert@cs.ucla.edu>
58975
58976         * lib/closeout.c (close_stdout): Also close stderr.
58977         * lib/closeout.h: Update comment.
58978
58979 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58980
58981         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58982         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58983         * lib/dirchownmod.c: Include lchown.h.
58984         * lib/lchown.c: Don't include files that lchown.h now includes.
58985         Don't declare chown, since lchown.h now does that.
58986         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58987         (lchown): Define to rpl_chown if lchown is declared but
58988         does not exist.  Declare using a prototype if lchown is not
58989         declared.  Add a copyright notice.
58990         * lib/mkstemp.h: Include <unistd.h>.
58991         * lib/openat.c: Include lchown.h.
58992
58993         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58994         we now test for that separately.
58995         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58996         rather than O_NOFOLLOW, when testing whether it's possible to
58997         avoid a race condition reliably.
58998         * lib/savewd.c (savewd_chdir): Likewise.
58999
59000         Remove macros that are no longer needed now that stdint.h is
59001         reliable.
59002         * lib/fsusage.c (UINTMAX_MAX): Remove.
59003         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59004         * lib/utimecmp.c (SIZE_MAX): Remove.
59005
59006         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59007
59008         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59009         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59010         O_NOATIME works.
59011
59012 2006-10-05  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/gl_list.h (gl_sortedlist_search_from_to,
59015         gl_sortedlist_indexof_from_to): New declarations.
59016         (gl_list_implementation): New fields sortedlist_search_from_to,
59017         sortedlist_indexof_from_to.
59018         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59019         inline functions.
59020         * lib/gl_list.c (gl_sortedlist_search_from_to,
59021         gl_sortedlist_indexof_from_to): New functions.
59022         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59023         function.
59024         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59025         (gl_array_sortedlist_search_from_to): New function.
59026         (gl_array_list_implementation): Update.
59027         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59028         function.
59029         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59030         (gl_carray_sortedlist_search_from_to): New function.
59031         (gl_carray_list_implementation): Update.
59032         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59033         gl_linked_sortedlist_indexof_from_to): New functions.
59034         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59035         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59036         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59037         gl_tree_sortedlist_indexof_from_to): New functions.
59038         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59039         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59040         Update.
59041         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59042         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59043         Update.
59044
59045 2006-10-05  Bruno Haible  <bruno@clisp.org>
59046
59047         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59048         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59049         (struct gl_list_implementation): Add fields search_from_to,
59050         indexof_from_to. Remove fields search, indexof.
59051         (gl_list_search): Use the search_from_to method.
59052         (gl_list_search_from, gl_list_search_from_to): New functions.
59053         (gl_list_indexof): Use the indexof_from_to method.
59054         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59055         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59056         (gl_list_search_from, gl_list_search_from_to): New functions.
59057         (gl_list_indexof): Use the indexof_from_to method.
59058         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59059         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59060         gl_array_indexof. Add start_index, end_index arguments.
59061         (gl_array_search_from_to): Renamed from gl_array_search. Add
59062         start_index, end_index arguments.
59063         (gl_array_remove, gl_array_list_implementation): Update.
59064         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59065         gl_carray_indexof. Add start_index, end_index arguments.
59066         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59067         start_index, end_index arguments.
59068         (gl_carray_remove, gl_carray_list_implementation): Update.
59069         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59070         gl_linked_search. Add start_index, end_index arguments.
59071         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59072         start_index, end_index arguments.
59073         (gl_linked_remove): Update.
59074         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59075         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59076         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59077         field to 'size_t'.
59078         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59079         gl_tree_search. Add start_index, end_index arguments.
59080         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59081         start_index, end_index arguments.
59082         (gl_tree_remove): Update.
59083         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59084         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59085         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59086         function.
59087         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59088         gl_tree_search. Add start_index, end_index arguments.
59089         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59090         start_index, end_index arguments.
59091         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59092         Update.
59093         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59094
59095 2006-10-05  Bruno Haible  <bruno@clisp.org>
59096
59097         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59098
59099         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59100         fwriteerror_temp): New declarations.
59101         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59102         (descriptors): New variable.
59103         (cleanup): First, close the descriptors.
59104         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59105         fclose_temp, fwriteerror_temp): New functions.
59106
59107 2006-10-04  Jim Meyering  <jim@meyering.net>
59108
59109         * lib/fts.c (fts_open): Tiny comment change.
59110
59111 2006-10-04  Bruno Haible  <bruno@clisp.org>
59112
59113         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59114         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59115         gl_LOCK_BODY.
59116         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59117         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59118         gl_LOCK_EARLY_BODY.
59119         (gl_LOCK): Require gl_LOCK_BODY.
59120
59121 2006-10-04  Bruno Haible  <bruno@clisp.org>
59122
59123         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59124         (gl_oset_search_atleast): New declaration.
59125         (struct gl_oset_implementation): Add field 'search_atleast'.
59126         (gl_oset_search_atleast): New inline function.
59127         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59128         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59129         (gl_array_oset_implementation): Update.
59130         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59131         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59132         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59133
59134 2006-10-04  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59137
59138 2006-10-03  Bruno Haible  <bruno@clisp.org>
59139
59140         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59141         from gl_avltreehash_list_implementation.
59142
59143 2006-10-03  Bruno Haible  <bruno@clisp.org>
59144
59145         * lib/gl_oset.c (gl_oset_add): Fix return type.
59146
59147 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59148
59149         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59150
59151 2006-10-02  Eric Blake  <ebb9@byu.net>
59152
59153         * modules/strnlen (Depends-on): Add extensions.
59154
59155 2006-10-02  Eric Blake  <ebb9@byu.net>
59156
59157         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59158         definition in 2.60+.
59159
59160 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59161
59162         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59163         checks.
59164
59165 2006-10-02  Bruno Haible  <bruno@clisp.org>
59166
59167         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59168         to the AUTOMAKE_OPTIONS.
59169         Reported by Jim Meyering.
59170
59171 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59172
59173         Work around bug in Solaris 10 /proc file system:
59174         /proc/self/fd/NNN/.. isn't the parent directory of
59175         the directory whose file descriptor is NNN.  This needs to
59176         be worked around at run time, not compile time, since a
59177         program might be built on Solaris 8, where things work, and
59178         run on Solaris 10.
59179         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59180         to use the following interface instead:
59181         (OPENAT_BUFFER_SIZE): New macro.
59182         (openat_proc_name): New function.
59183         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59184         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59185         Likewise.
59186         * lib/openat-proc.c: New file.
59187         * modules/openat (Files): Add lib/openat-proc.c.
59188         (Depends-on): Add same-inode, stdbool.
59189         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59190
59191 2006-09-29  Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59194         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59195         argument. Set stdout_closed before testing for ferror, not after.
59196         (fwriteerror, fwriteerror_no_ebadf): New functions.
59197
59198 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59199
59200         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59201
59202 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59203
59204         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59205         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59206
59207 2006-09-28  Jim Meyering  <jim@meyering.net>
59208
59209         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59210         Include <unistd.h>.
59211
59212 2006-09-28  Bruno Haible  <bruno@clisp.org>
59213
59214         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59215         * modules/linkedhash-list (Depends-on): Likewise.
59216         * modules/rbtreehash-list (Depends-on): Likewise.
59217
59218 2006-09-28  Bruno Haible  <bruno@clisp.org>
59219
59220         * lib/strndup.h: Simplify the redefinition of strndup.
59221         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59222         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59223
59224 2006-09-28  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59227         * lib/gl_linkedhash_list.c: Likewise.
59228         * lib/gl_rbtreehash_list.c: Likewise.
59229
59230 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59231
59232         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59233         getaddrinfo.
59234
59235         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59236         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59237         it causes <stdio_ext.h> to cause a compile-time error.
59238         Problem reported by Nelson H. F. Beebe.
59239         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59240         of HAVE_DECL___PENDING.
59241
59242         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59243         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59244         declaration.
59245
59246 2006-09-27  Jim Meyering  <jim@meyering.net>
59247
59248         This file could end up with a definition for a function
59249         named __strndup, rather than rpl_strndup on a system with
59250         incomplete weak_alias support.
59251         * lib/strndup.c (strndup): Rename from __strndup.
59252         Remove #defines that used to map __strndup to strndup.
59253         Don't use K&R prototypes.
59254         Remove LIBC-related code, since this file is not sync'd with glibc.
59255         * lib/strndup.h: Revamp, accordingly.
59256         * m4/strndup.m4: Modernize.
59257
59258 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59259
59260         * modules/savewd (Depends-on): Add 'raise'.
59261         * lib/savewd.c: Include <signal.h>, for 'raise'.
59262
59263 2006-09-26  Jim Meyering  <jim@meyering.net>
59264
59265         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59266         when we detect Darwin 8.7.0's acl_get_file bug.
59267         Rearrange to perform the new (below) run-test while $LIBS
59268         contains any acl-related library.  Set USE_ACL at the end.
59269         (gl_ACL_GET_FILE): New function.
59270
59271 2006-09-26  Eric Blake  <ebb9@byu.net>
59272
59273         * lib/verror.c: Include <config.h> unconditionally.
59274
59275 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59276
59277         * modules/clock-time (Maintainer): Add self.
59278         * modules/getlogin_r (Depends-on): Add extensions.
59279
59280 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59281
59282         * modules/clock-time: New module.
59283         * modules/nanosleep (Depends-on): Add clock-time.
59284         * modules/gethrxtime (Depends-on): Likewise.
59285         * modules/gettime (Depends-on): Likewise.
59286         * modules/settime (Depends-on): Likewise.
59287
59288         * modules/fts-lgpl: Depend on openat.
59289         * modules/mkancesdirs: Depend on savewd.
59290         * modules/mkdir-p: Likewise.
59291
59292 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59293
59294         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59295
59296         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59297         `gl_have_arbitrary_file_name_length_limit' to
59298         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59299         actually works between configure runs.
59300
59301 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59302             Bruno Haible  <bruno@clisp.org>
59303
59304         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59305
59306 2006-09-25  Jim Meyering  <jim@meyering.net>
59307
59308         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59309         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59310
59311 2006-09-25  Eric Blake  <ebb9@byu.net>
59312
59313         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59314         exec's in 2006-09-18 patch when shuffling fds.
59315
59316 2006-09-25  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59319         Reported by Jim Meyering.
59320
59321 2006-09-24  Jim Meyering  <jim@meyering.net>
59322
59323         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59324         compare a pointer against a literal "0".  That caused failures with
59325         at least HP-UX's hpcc.
59326
59327 2006-09-22  Simon Josefsson  <jas@extundo.com>
59328
59329         * modules/gc-sha1:
59330         * modules/gc-md4:
59331         * modules/gc-hmac-sha1:
59332         * modules/gc-hmac-md5:
59333         * modules/gc-des:
59334         * modules/gc-arcfour: Distribute more files.
59335
59336 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59337
59338         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59339         (gl_linked_iterator_from_to): Initialize struct completely.
59340         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59341         (gl_tree_iterator_from_to): Likewise
59342         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59343         * lib/gl_array_list.c [lint] (gl_array_iterator)
59344         (gl_array_iterator_from_to): Likewise.
59345         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59346         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59347         (gl_carray_iterator_from_to): Likewise.
59348
59349         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59350         * lib/md4.c (md4_process_block): Remove unused variable.
59351         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59352         parentheses for clarity.
59353
59354 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59355
59356         * modules/bison-i18n (Depends-on): Add gettext.
59357
59358 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59359
59360         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59361         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59362         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59363         also add missing comma that caused broken test.
59364         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59365         stdlib.h, for `abort'.
59366         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59367         variables.
59368         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59369         include unistd.h if present, for `rmdir'.
59370         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59371         variables.
59372         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59373         in the process include standard headers for prototypes.
59374         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59375         gets declared on GNU/Linux.
59376         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59377         unistd.h, for `rmdir'.
59378         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59379
59380         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59381         always true.
59382         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59383
59384         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59385
59386 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59387
59388         * gnulib-tool (func_version): Create output all at once.  This
59389         may help avoid triggering unnecessary SIGPIPEs, and at any
59390         rate it doesn't hurt.
59391
59392 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59393             Bruno Haible  <bruno@clisp.org>
59394
59395         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59396         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59397         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59398
59399         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59400         (gl_FUNC_VASPRINTF): Invoke it.
59401
59402 2006-09-22  Bruno Haible  <bruno@clisp.org>
59403
59404         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59405         getloadavg.c as first argument.
59406
59407 2006-09-22  Bruno Haible  <bruno@clisp.org>
59408
59409         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59410         at the beginning of the gl_INIT macro.
59411         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59412         gl_GETLOADAVG.
59413
59414 2006-09-22  Bruno Haible  <bruno@clisp.org>
59415
59416         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59417         module.
59418         Suggested by Ralf Wildenhues.
59419
59420 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59421
59422         Import this patch from libc:
59423
59424         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59425
59426         * lib/regex_internal.c (re_string_reconstruct): Handle
59427         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59428         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59429         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59430         re_string_context_at.
59431
59432         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59433         now requires it.
59434         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59435         gl_REGEX now does it for us.
59436         (gl_REGEX): Add test taken from
59437         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59438
59439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59440         Check that large offsets work.  Modernize Autoconf usages.
59441         Prefer "yes" to mean a good thing rather than a bad.
59442         Don't put "#define mkstemp" in config.h, as this might interfere
59443         with standard system headers that "#define mkstemp mkstemp64".
59444
59445         * modules/mkstemp (Depends-on): Add extensions, so that
59446         mkstemp is visible on some platforms.
59447         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59448         (Include): Change to "mkstemp.h" from <stdlib.h>.
59449         (Files): Add mkstemp.h.
59450
59451         * lib/mkstemp.h: New file, since some standard headers
59452         #define mkstemp.
59453         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59454         Include "mkstemp.h".
59455         Make the _LIBC code resemble glibc original more,
59456         e.g., use K&R style.
59457         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59458         (mkstemp): Remove, since mkstemp.h does this for us.
59459         * lib/stdlib--.h: Include mkstemp.h.
59460
59461         Import this patch from libc:
59462
59463         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59464
59465         * lib/tempname.c (__gen_tempname): Change attempts_min
59466         into a macro.  Use preprocessor to decide how to initialize
59467         attempts [Coverity CID 67].
59468
59469 2006-09-20  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/mkdtemp.c: Import from libc.
59472         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59473                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59474                 attempts_min into a macro.  Use preprocessor to decide how to
59475                 initialize attempts [Coverity CID 67].
59476         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59477                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59478                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59479
59480 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59481
59482         * gnulib-tool (func_exit): New function, to allow to pass the
59483         exit status portably through the trap.  Use everywhere.
59484         (--help, --version): Signal a write error.
59485         (trap): catch SIGPIPE, for write errors.
59486         Exit at the end of the trap, with the correct exit status.
59487
59488 2006-09-19  Karl Berry  <karl@gnu.org>
59489
59490         * doc/gnulib.texi: note about the license texinfo files.
59491
59492 2006-09-19  Eric Blake  <ebb9@byu.net>
59493
59494         * gnulib-tool: Avoid space-tab.
59495
59496 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59497
59498         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59499         that prevented coreutils 6.1 from building.  Problem reported
59500         by Petter Reinholdtsen.
59501
59502 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59503
59504         * gnulib-tool (avoidlist): Fix typo that broke options like
59505         --avoid=lock that are used by coreutils bootstrap.
59506
59507 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59508
59509         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59510         more systematically.
59511
59512 2006-09-18  Jim Meyering  <jim@meyering.net>
59513
59514         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59515
59516 2006-09-18  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59519
59520 2006-09-18  Bruno Haible  <bruno@clisp.org>
59521
59522         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59523         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59524         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59525         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59526         * m4/gettext.m4: Require autoconf >= 2.52.
59527         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59528         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59529         of gl_cv_header_inttypes_h.
59530
59531 2006-09-18  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/javaversion.c: Include configmake.h.
59534
59535 2006-09-18  Bruno Haible  <bruno@clisp.org>
59536
59537         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59538         avoid that the while loops be executed in a subshell.
59539
59540 2006-09-18  Bruno Haible  <bruno@clisp.org>
59541
59542         * MODULES.html.sh (func_module): Break long lines.
59543         Suggested by Bruce Korb <bkorb@gnu.org>.
59544
59545 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59546
59547         Speed up by a factor of 1.12.
59548         * gnulib-tool (nl): New variable.
59549         (func_import): Rewrite include directive extraction to only read each
59550         directive once.
59551
59552 2006-09-17  Bruno Haible  <bruno@clisp.org>
59553
59554         * modules/javaversion (Makefile.am): Remove DEFS setting.
59555         (Depends-on): Add configmake, for PKGDATADIR definition.
59556
59557 2006-09-17  Bruno Haible  <bruno@clisp.org>
59558
59559         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59560
59561 2006-09-17  Bruno Haible  <bruno@clisp.org>
59562
59563         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59564         (func_modules_transitive_closure, func_modules_add_dummy,
59565         func_modules_to_filelist, func_import, func_create_testdir,
59566         func_create_megatestdir, ...): Use it wherever possible.
59567         Suggested by Ralf Wildenhues.
59568
59569 2006-09-16  Karl Berry  <karl@gnu.org>
59570
59571         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59572         to avoid sectioning errors.
59573         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59574         [ifinfo]: blank line after @center-ed titles.
59575         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59576         Spell FSF address consistently with others.
59577         (These changes approved by rms.)
59578
59579 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59580
59581         Speed up by a factor of 1.61.
59582         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59583         already checked module names again.
59584
59585 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59586
59587         Speed up by a factor of 1.13.
59588         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59589         for new_files, and the input to func_add_or_update.
59590
59591 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59592
59593         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59594         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59595
59596 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59597
59598         * modules/mkancesdirs (Depends-on): Add fcntl.
59599         * modules/savewd: New file.
59600         * MODULES.html.sh (File system functions): Add savewd.
59601
59602         * modules/configmake (Makefile.am): Add support for the
59603         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59604
59605 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         * m4/savewd.m4: New file.
59608
59609 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59610
59611         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59612         (dirchownmod): New arg FD.  All callers changed.
59613         Use FD rather than opening the directory ourself, as opening is
59614         now the caller's responsibility.
59615         * lib/dirchownmod.h: Likewise.
59616         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59617         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59618         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59619         (test_dir): Remove.
59620         (mkancesdirs): Return length of prefix of FILE that has already
59621         been made, or -2 if there is a child doing the work.  Redo
59622         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59623         ".", and treat ".." specially since it might stray back into
59624         already-created areas.  Use a subprocess if necessary.  New arg
59625         WD; all users changed.  MAKE_DIR function should now return 1
59626         if it creates a directory that is not readable.  Return -2 if
59627         a child process is spun off.
59628         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59629         Adjust signature to match code.
59630         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59631         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59632         all users changed.
59633         * lib/savewd.c, lib/savewd.h: New files.
59634
59635 2006-09-15  Jim Meyering  <jim@meyering.net>
59636
59637         * modules/rename-dest-slash: New module.
59638         * MODULES.html.sh (posix_compat): Add it here.
59639
59640         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59641
59642 2006-09-15  Jim Meyering  <jim@meyering.net>
59643
59644         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59645         file.
59646
59647         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59648
59649 2006-09-15  Jim Meyering  <jim@meyering.net>
59650
59651         * lib/rename-dest-slash.c (has_trailing_slash): Use
59652         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59653         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59654         test before testing whether SRC is a directory.
59655         Suggestions from Bruno Haible.
59656
59657         Avoid a warning about an unused variable.
59658         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59659         into the #ifdef block where it's used.
59660
59661         * lib/rename-dest-slash.c: New file.
59662
59663 2006-09-14  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/allocsa.c: Include <config.h> unconditionally.
59666         * lib/asnprintf.c: Likewise.
59667         * lib/asprintf.c: Likewise.
59668         * lib/c-strcasecmp.c: Likewise.
59669         * lib/c-strcasestr.c: Likewise.
59670         * lib/c-strncasecmp.c: Likewise.
59671         * lib/c-strstr.c: Likewise.
59672         * lib/classpath.c: Likewise.
59673         * lib/clean-temp.c: Likewise.
59674         * lib/concatpath.c: Likewise.
59675         * lib/copy-file.c: Likewise.
59676         * lib/csharpcomp.c: Likewise.
59677         * lib/csharpexec.c: Likewise.
59678         * lib/execute.c: Likewise.
59679         * lib/fatal-signal.c: Likewise.
59680         * lib/findprog.c: Likewise.
59681         * lib/fwriteerror.c: Likewise.
59682         * lib/gl_array_list.c: Likewise.
59683         * lib/gl_array_oset.c: Likewise.
59684         * lib/gl_avltree_list.c: Likewise.
59685         * lib/gl_avltree_oset.c: Likewise.
59686         * lib/gl_avltreehash_list.c: Likewise.
59687         * lib/gl_carray_list.c: Likewise.
59688         * lib/gl_linked_list.c: Likewise.
59689         * lib/gl_linkedhash_list.c: Likewise.
59690         * lib/gl_list.c: Likewise.
59691         * lib/gl_oset.c: Likewise.
59692         * lib/gl_rbtree_list.c: Likewise.
59693         * lib/gl_rbtree_oset.c: Likewise.
59694         * lib/gl_rbtreehash_list.c: Likewise.
59695         * lib/imaxabs.c: Likewise.
59696         * lib/imaxdiv.c: Likewise.
59697         * lib/javacomp.c: Likewise.
59698         * lib/javaexec.c: Likewise.
59699         * lib/javaversion.c: Likewise.
59700         * lib/linebreak.c: Likewise.
59701         * lib/localcharset.c: Likewise.
59702         * lib/lock.c: Likewise.
59703         * lib/mbchar.c: Likewise.
59704         * lib/mbswidth.c: Likewise.
59705         * lib/mkdtemp.c: Likewise.
59706         * lib/pipe.c: Likewise.
59707         * lib/printf-args.c: Likewise.
59708         * lib/printf-parse.c: Likewise.
59709         * lib/progname.c: Likewise.
59710         * lib/progreloc.c: Likewise.
59711         * lib/readlink.c: Likewise.
59712         * lib/sh-quote.c: Likewise.
59713         * lib/stpcpy.c: Likewise.
59714         * lib/stpncpy.c: Likewise.
59715         * lib/strcasecmp.c: Likewise.
59716         * lib/strcasestr.c: Likewise.
59717         * lib/strcspn.c: Likewise.
59718         * lib/striconv.c: Likewise.
59719         * lib/strncasecmp.c: Likewise.
59720         * lib/strnlen1.c: Likewise.
59721         * lib/strstr.c: Likewise.
59722         * lib/strtok_r.c: Likewise.
59723         * lib/tls.c: Likewise.
59724         * lib/tmpdir.c: Likewise.
59725         * lib/unicodeio.c: Likewise.
59726         * lib/unsetenv.c: Likewise.
59727         * lib/vasnprintf.c: Likewise.
59728         * lib/vasprintf.c: Likewise.
59729         * lib/wait-process.c: Likewise.
59730         * lib/xallocsa.c: Likewise.
59731         * lib/xsetenv.c: Likewise.
59732         * lib/xstriconv.c: Likewise.
59733
59734 2006-09-13  Simon Josefsson  <jas@extundo.com>
59735
59736         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59737         that internally, suggested by Ralf Wildenhues
59738         <Ralf.Wildenhues@gmx.de>.
59739
59740 2006-09-13  Simon Josefsson  <jas@extundo.com>
59741
59742         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59743         @LIBOBJS@.
59744         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59745
59746 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59747
59748         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59749         longer worry about uses that don't define HAVE_CONFIG_H.
59750         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59751         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59752         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59753         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59754         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59755         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59756         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59757         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59758         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59759         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59760         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59761         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59762         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59763         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59764         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59765         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59766         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59767         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59768         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59769         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59770         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59771         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59772         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59773         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59774         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59775         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59776         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59777         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59778         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59779         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59780         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59781         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59782         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59783         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59784         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59785         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59786         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59787         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59788         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59789         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59790         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59791         Likewise.
59792
59793 2006-09-13  Eric Blake  <ebb9@byu.net>
59794
59795         * lib/getopt.c: Fix typo in last commit.
59796
59797 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59798
59799         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59800         dgettext.
59801
59802 2006-09-12  Jim Meyering  <jim@meyering.net>
59803
59804         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59805         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59806         Reported by Nelson H. F. Beebe.
59807
59808 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59809
59810         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59811         program_invocation_name and program_invocation_short_name are
59812         initialized.
59813         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59814         and program_invocation_short_name to argp.h, so they are visible
59815         to user programs.
59816         * lib/argp.h: Likewise
59817
59818 2006-09-10  Bruno Haible  <bruno@clisp.org>
59819
59820         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59821         m4/inttypes_h.m4, m4/uintmax_t.m4.
59822
59823 2006-09-10  Bruno Haible  <bruno@clisp.org>
59824
59825         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59826         gl_AC_TYPE_UINTMAX_T.
59827
59828 2006-09-10  Bruno Haible  <bruno@clisp.org>
59829
59830         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59831
59832 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59833
59834         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59835         convention.  Text proposed by Bruno Haible.
59836         (struct argp_option): Document the use of N_() wrappers.
59837
59838         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59839         '\v', and translate the two parts separately, instead of feeding
59840         the whole string to gettext.  This allows to exclude
59841         '\v' from the strings visible to the translator by writing doc
59842         strings as N_("..") "\v" N_("..").
59843
59844 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59845
59846         * config/srclist.txt: Undo latest change; the bug was fixed.
59847
59848 2006-09-09  Bruno Haible  <bruno@clisp.org>
59849
59850         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59851         assignments if building a library without libtool.
59852         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59853         in func_emit_lib_Makefile_am.
59854         (func_import): When building a static library libfoo.a, arrange to
59855         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59856         (func_create_testdir): Likewise.
59857         * modules/gc (configure.ac, Makefile.am): If building statically,
59858         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59859         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59860         * modules/striconv (configure.ac, Makefile.am): Likewise.
59861         Based on a suggestion by Ralf Wildenhues.
59862
59863 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59864
59865         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59866         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59867         Also:
59868
59869         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59870         Add year_2050_test to catch glibc bug 2821
59871         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59872
59873         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59874         Prefer #ifdef to #if.
59875
59876         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59877         Return from 'main' instead of calling 'exit'.
59878
59879 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59880
59881         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59882         returned the maximum time_t value rather than (time_t) -1.
59883         Problem originally reported by William Bardwell
59884         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59885
59886         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59887         Moved to here ...
59888         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59889         ... from here.
59890
59891 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59892
59893         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59894         2821 is fixed.
59895
59896 2006-09-08  Jim Meyering  <jim@meyering.net>
59897
59898         Don't make generated files read-only.  That would bother too many
59899         people.  However, do retain the ability to work when targets are
59900         read-only: remove the destination and temporary files before writing
59901         them (when generated via sed or echo), or by using the -f option for
59902         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59903         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59904         * modules/byteswap, modules/configmake, modules/fcntl:
59905         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59906         * modules/localcharset, modules/netinet_in, modules/poll:
59907         * modules/stdbool, modules/stdint, modules/sys_select:
59908         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59909
59910 2006-09-08  Jim Meyering  <jim@meyering.net>
59911
59912         Avoid new build failure on FreeBSD 6.0.
59913         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59914         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59915         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59916
59917 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59918
59919         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59920
59921 2006-09-07  Jim Meyering  <jim@meyering.net>
59922
59923         Fix global typo in last change: use chmod u-w, not chmod u-x.
59924         Spotted by Paul Eggert and Bruce Korb.
59925         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59926         * modules/byteswap, modules/configmake, modules/fcntl:
59927         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59928         * modules/localcharset, modules/netinet_in, modules/poll:
59929         * modules/stdbool, modules/stdint, modules/sys_select:
59930         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59931
59932 2006-09-06  Jim Meyering  <jim@meyering.net>
59933
59934         Make generated files be read-only.
59935         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59936         Ensure that each generated file is now read-only.
59937         * modules/argz: Likewise.
59938         * modules/arpa_inet: Likewise.
59939         * modules/byteswap: Likewise.
59940         * modules/configmake: Likewise.
59941         * modules/fcntl: Likewise.
59942         * modules/fnmatch: Likewise.
59943         * modules/getopt: Likewise.
59944         * modules/glob: Likewise.
59945         * modules/inttypes: Likewise.
59946         * modules/netinet_in: Likewise.
59947         * modules/poll: Likewise.
59948         * modules/stdbool: Likewise.
59949         * modules/stdint: Likewise.
59950         * modules/sys_select: Likewise.
59951         * modules/sys_socket: Likewise.
59952         * modules/sys_stat: Likewise.
59953         * modules/sysexits: Likewise.
59954         * modules/localcharset: Same as above, but continue using temporary
59955         file named "t-$@" (why different?) rather than the "$@-t" used
59956         everywhere else.
59957
59958         * modules/sysexits (Makefile.am): Replace literal occurrences
59959         of "sysexit.h" more readable, and more consistent, "$@".
59960
59961 2006-09-06  Bruno Haible  <bruno@clisp.org>
59962
59963         * modules/striconv: New file.
59964         * modules/xstriconv: New file.
59965         * MODULES.html.sh (Internationalization functions): Add striconv,
59966         xstriconv.
59967
59968 2006-09-06  Bruno Haible  <bruno@clisp.org>
59969
59970         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59971         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59972         not using libtool correctly.
59973
59974 2006-09-06  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/striconv.h: New file.
59977         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59978         iconvstring.c.
59979         * lib/xstriconv.h: New file.
59980         * lib/xstriconv.c: New file.
59981
59982 2006-09-06  Bruno Haible  <bruno@clisp.org>
59983
59984         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59985         lib_..._LDFLAGS.
59986
59987 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59988
59989         * lib/argz_.h: Sync from Libtool.
59990
59991         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59992                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59993
59994         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59995
59996 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59997
59998         * modules/trim: New file.
59999
60000 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60001
60002         * lib/trim.h: New file.
60003         * lib/trim.c: New file.
60004
60005 2006-09-05  Bruno Haible  <bruno@clisp.org>
60006
60007         * MODULES.html.sh (String handling): Add trim.
60008
60009 2006-09-04  Karl Berry  <karl@gnu.org>
60010
60011         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60012         until next release.
60013
60014 2006-09-03  Bruno Haible  <bruno@clisp.org>
60015
60016         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60017         correctly.
60018
60019 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60022         not gl_GETLOADAVG.  Omit unneeded semicolons.
60023         Problems reported by Ralf Wildenhues in
60024         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60025         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60026         at the end, which is the usual gnulib style.
60027
60028         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60029         of doing all the work ourselves.
60030         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60031         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60032
60033 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60036         Problem reported by Ralf Wildenhues in
60037         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60038
60039         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60040         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60041
60042 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60045         yesterday's patch by changing test -n to test -z.
60046
60047 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60050         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60051         the former is now obsolescent.
60052
60053         * modules/chdir-long (Depends-on): Add fcntl.
60054
60055 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60058         obsolescent, and programs should use gnulib instead.
60059         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60060         but with prefixes changed.
60061
60062 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60063
60064         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60065         or stdbool.h, because they might not exist while configuring.
60066
60067         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60068         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60069         does that for us.
60070         (O_DIRECTORY): Remove.
60071
60072 2006-08-31  Eric Blake  <ebb9@byu.net>
60073
60074         * gnulib-tool: Don't let emacs change spaces to TAB.
60075
60076 2006-08-31  Bruno Haible  <bruno@clisp.org>
60077
60078         * gnulib-tool: When calling func_import more than once, do it in a
60079         subshell.
60080         Reported by Eric Blake <ebb9@byu.net>.
60081
60082 2006-08-31  Bruno Haible  <bruno@clisp.org>
60083
60084         * gnulib-tool (nl): Remove variable.
60085         (sed_transform_lib_file): Use more robust test for config-h module.
60086         (func_import): Fix typo in 2006-08-25 patch.
60087
60088 2006-08-31  Bruno Haible  <bruno@clisp.org>
60089
60090         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60091         specified, augment Makefile.am variables instead of assigning them.
60092
60093 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60094
60095         Work around a bug in both the Linux and SunOS 64-bit kernels:
60096         nanosleep mishandles sleeps for longer than 2**31 seconds.
60097         Problem reported by Frank v Waveren in
60098         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60100         Check for nanosleep bug.
60101         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60102
60103 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60104
60105         Work around a bug in both the Linux and SunOS 64-bit kernels:
60106         nanosleep mishandles sleeps for longer than 2**31 seconds.
60107         Problem reported by Frank v Waveren in
60108         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60109         * lib/nanosleep.c (BILLION): New constant.
60110         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60111         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60112         implementation.
60113
60114 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60115
60116         * modules/nanosleep (Depends-on): Add gettime.
60117
60118 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60119         and Simon Josefsson  <jas@extundo.com>
60120         and Oskar Liljeblad  <oskar@osk.mine.nu>
60121
60122         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60123         * gnulib-tool (func_import): New license type 'unmodifiable license
60124         text'.
60125         * modules/fdl: Use it.  Longer description.
60126         * module/gpl, module/lgpl: New files.
60127
60128 2006-08-30  Jim Meyering  <jim@meyering.net>
60129
60130         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60131         shadowing the parameter.
60132
60133 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60134
60135         Sync from Libtool:
60136
60137         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60138
60139         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60140         sharing with gnulib.  Report by Eric Blake.
60141
60142 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60143
60144         * modules/isapipe: New file.
60145         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60146
60147 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60148
60149         * modules/configmake (Makefile.am): Add a comment, and omit
60150         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60151         by Bruno Haible.
60152
60153 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60154
60155         * m4/isapipe.m4: New file.
60156
60157 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60158
60159         * lib/isapipe.c, lib/isapipe.h: New files.
60160
60161 2006-08-29  Jim Meyering  <jim@meyering.net>
60162
60163         * modules/configmake (Makefile.am): Make configmake.h depend on
60164         Makefile.  Otherwise, a stale configmake.h could hang around.
60165
60166 2006-08-29  Eric Blake  <ebb9@byu.net>
60167
60168         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60169         resolution of upstream bug 3044.
60170
60171 2006-08-29  Bruno Haible  <bruno@clisp.org>
60172
60173         * modules/localcharset (Depends-on): Add configmake.
60174         (Makefile.am): Remove setting of LIBDIR through DEFS.
60175
60176 2006-08-29  Bruno Haible  <bruno@clisp.org>
60177
60178         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60179         defined.
60180
60181 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60182
60183         * modules/fcntl: New file.
60184         * modules/chdir-safer (Depends-on): Add fcntl.
60185         * modules/fts: Likewise.
60186         * modules/mkdir-p: Likewise.
60187
60188         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60189         This undoes the most recent change, since we're now addressing the
60190         problem in a different way.
60191
60192         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60193         into output, since the output might be called Makefile.am even
60194         if $makefile_name is something different.
60195         (func_import): Use $makefile_am rather than
60196         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60197         empty.
60198
60199         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60200
60201 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60202
60203         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60204         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60205         recent change to stdint.m4, since we're now addressing the problem in a
60206         different way.
60207
60208 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * m4/fcntl_h.m4: New file.
60211
60212 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60213
60214         * lib/fcntl_.h: New file.
60215         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60216         the fcntl module.
60217         * lib/dirchownmod.c: Likewise.
60218         * lib/fts.c: Likewise.
60219
60220         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60221         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60222         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60223         just before including <inttypes.h>, to avoid circular inclusion.
60224
60225 2006-08-28  Jim Meyering  <jim@meyering.net>
60226
60227         * doc/visibility.texi: Actually read and correct the grammar of the
60228         sentence affected by yesterday's change.
60229
60230 2006-08-28  Eric Blake  <ebb9@byu.net>
60231
60232         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60233         needs wrapper.
60234
60235 2006-08-28  Eric Blake  <ebb9@byu.net>
60236
60237         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60238
60239 2006-08-28  Eric Blake  <ebb9@byu.net>
60240
60241         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60242
60243 2006-08-28  Bruno Haible  <bruno@clisp.org>
60244
60245         * modules/c-strstr: New file, from GNU gettext.
60246         * MODULES.html.sh (String handling): Add c-strstr.
60247
60248 2006-08-28  Bruno Haible  <bruno@clisp.org>
60249
60250         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60251         macros.
60252         Reported by Eric Blake.
60253
60254 2006-08-28  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60257         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60258         * lib/vasprintf.c: Include errno.h, limits.h.
60259         (EOVERFLOW): New fallback definition.
60260         (vasprintf): Test here whether the string length is > INT_MAX.
60261         * lib/vsnprintf.c: Include errno.h, limits.h.
60262         (EOVERFLOW): New fallback definition.
60263         (vsnprintf): Fix bug when generated string was too long for the buffer.
60264         Test here whether the string length is > INT_MAX.
60265
60266 2006-08-28  Bruno Haible  <bruno@clisp.org>
60267
60268         * lib/inttypes_.h (SCNX*): Remove definitions.
60269         Reported by Eric Blake.
60270
60271 2006-08-28  Bruno Haible  <bruno@clisp.org>
60272
60273         * lib/c-strstr.h: New file, from GNU gettext.
60274         * lib/c-strstr.c: New file, from GNU gettext.
60275
60276 2006-08-28  Bruno Haible  <bruno@clisp.org>
60277
60278         * gnulib-tool: Reorder some statements.
60279
60280 2006-08-28  Bruno Haible  <bruno@clisp.org>
60281
60282         * gnulib-tool: New option --makefile-name.
60283         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60284         $makefile_name.
60285         (func_import): Write $makefile_name to the cache file, and read it from
60286         there unless explicitly specified. Use $makefile_name as file name
60287         instead of Makefile.am. Adjust the recommendations accordingly.
60288
60289 2006-08-28  Bruno Haible  <bruno@clisp.org>
60290
60291         * gnulib-tool (func_verify_module): Check against misapplying patch.
60292
60293 2006-08-28  Bruno Haible  <bruno@clisp.org>
60294
60295         * gnulib-tool (func_relativize, func_relconcat): New functions.
60296         Give an error if --local-dir is given with --update.
60297         Remove trailing slashes from $local_gnulib_dir.
60298         (func_import): Store the relativized $local_gnulib_dir in
60299         gnulib-cache.m4, and read it from there if not specified explicitly.
60300
60301 2006-08-28  Bruno Haible  <bruno@clisp.org>
60302
60303         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60304         is the current directory. Respect also $local_gnulib_dir.
60305
60306 2006-08-28  Bruno Haible  <bruno@clisp.org>
60307             Simon Josefsson  <jas@extundo.com>
60308
60309         BeOS portability.
60310         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60311
60312 2006-08-27  Jim Meyering  <jim@meyering.net>
60313
60314         * doc/visibility.texi: Remove duplicate word: "pointer".
60315
60316 2006-08-26  Bruno Haible  <bruno@clisp.org>
60317
60318         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60319         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60320         (Makefile.am): Create inttypes.h from inttypes_.h.
60321         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60322
60323         * modules/imaxabs: New file.
60324
60325         * modules/imaxdiv: New file.
60326
60327 2006-08-26  Bruno Haible  <bruno@clisp.org>
60328
60329         * m4/inttypes.m4: New file.
60330         * m4/_inttypes_h.m4: Remove file.
60331         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60332         PRI_MACROS_BROKEN.
60333         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60334
60335         * m4/imaxabs.m4: New file.
60336
60337         * m4/imaxdiv.m4: New file.
60338
60339 2006-08-26  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/inttypes_.h: New file.
60342         * lib/inttypes.h: Remove file.
60343         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60344
60345         * lib/imaxabs.c: New file.
60346
60347         * lib/imaxdiv.c: New file.
60348
60349 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60350
60351         New config-h module, so that "make" output needn't be cluttered
60352         by -DHAVE_CONFIG_H.
60353         * MODULES.html.sh (Support for building libraries and executables):
60354         Add config-h.
60355         * modules/config-h: New file.
60356         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60357         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60358         the config-h module is used.
60359
60360         New configmake module, so that "make" output needn't be cluttered
60361         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60362         * MODULES.html.sh (Support for building libraries and executables):
60363         Add configmake.
60364         * modules/configmake: New file.
60365
60366 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60367
60368         * m4/config-h.m4: New file.
60369
60370 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         * config/srclist.txt: Add elisp-comp.
60373
60374 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60375
60376         * MODULES.html.sh (Support for building libraries and executables):
60377         Add elisp-comp.
60378         * build-aux/elisp-comp: New file.
60379         * modules/elisp-comp: New file.
60380
60381 2006-08-24  Bruno Haible  <bruno@clisp.org>
60382
60383         * gnulib-tool (func_create_testdir): Use non-default values of
60384         sourcebase and m4base.
60385
60386 2006-08-24  Bruno Haible  <bruno@clisp.org>
60387
60388         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60389         HTML structure.
60390
60391 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         * modules/openat (Depends-on): Add lchown.
60394
60395 2006-08-23  Bruno Haible  <bruno@clisp.org>
60396
60397         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60398         of gl_LOCK_EARLY instead of gl_LOCK.
60399
60400 2006-08-23  Bruno Haible  <bruno@clisp.org>
60401
60402         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60403         on OSF/1 to no.
60404         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60405
60406 2006-08-23  Bruno Haible  <bruno@clisp.org>
60407
60408         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60409         as unusable.
60410
60411         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60412         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60413         (gl_LOCK): New macro.
60414
60415 2006-08-22  Simon Josefsson  <jas@extundo.com>
60416
60417         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60418         to md5 module.
60419
60420 2006-08-22  Simon Josefsson  <jas@extundo.com>
60421
60422         * MODULES.html.sh: Add "Support for maintaining and release
60423         projects".
60424
60425         * build-aux/gnupload: New file, from coreutils.
60426
60427 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60428
60429         Avoid the need for AC_LIBSOURCES in m4 macros.
60430         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60431         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60432         * modules/check-version (EXTRA_DIST): Add check-version.h.
60433         * modules/crc (EXTRA_DIST): Add crc.h.
60434         * modules/des (EXTRA_DIST): Add des.h.
60435         * modules/gc (EXTRA_DIST): Add gc.h.
60436         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60437         * modules/getline (EXTRA_DIST): Add getline.h.
60438         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60439         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60440         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60441         * modules/md2 (EXTRA_DIST): Add md2.h.
60442         * modules/md4 (EXTRA_DIST): Add md4.h.
60443         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60444         * modules/read-file (EXTRA_DIST): Add read-file.h.
60445         * modules/readline (EXTRA_DIST): Add readline.h.
60446         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60447         rijndael-api-fst.h.
60448
60449 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60450
60451         * m4/rijndael.m4 (gl_ARCFOUR):
60452         * m4/arctwo.m4 (gl_ARCTWO):
60453         * m4/check-version.m4 (gl_CHECK_VERSION):
60454         * m4/crc.m4 (gl_CRC):
60455         * m4/des.m4 (gl_DES):
60456         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60457         * m4/gc.m4 (gl_GC):
60458         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60459         * m4/getline.m4 (gl_FUNC_GETLINE):
60460         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60461         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60462         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60463         * m4/md2.m4 (gl_MD2):
60464         * m4/md4.m4 (gl_MD4):
60465         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60466         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60467         * m4/readline.m4 (gl_FUNC_READLINE):
60468         * m4/rijndael.m4 (gl_RIJNDAEL):
60469         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60470         to get the necessary .h files and whatnot.
60471
60472 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60473
60474         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60475         gnulib rather than the other way around.
60476         * config/srclistvars.sh (COREUTILS): Remove.
60477
60478 2006-08-22  Jim Meyering  <jim@meyering.net>
60479
60480         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60481
60482         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60483
60484 2006-08-22  Eric Blake  <ebb9@byu.net>
60485
60486         * modules/regexprops-generic: New file.
60487         * MODULES.html.sh (Support for building documentation): List it.
60488
60489 2006-08-22  Eric Blake  <ebb9@byu.net>
60490
60491         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60492         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60493         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60494         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60495
60496 2006-08-22  Bruno Haible  <bruno@clisp.org>
60497
60498         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60499         and lib_LTLIBRARIES like the other lib_* variables.
60500
60501 2006-08-22  Bruno Haible  <bruno@clisp.org>
60502
60503         * build-aux/x-to-1.in: New file, from GNU gettext.
60504
60505 2006-08-22  Bruno Haible  <bruno@clisp.org>
60506
60507         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60508         <utmpx.h> exists.
60509
60510 2006-08-22  Bruno Haible  <bruno@clisp.org>
60511
60512         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60513         <utmpx.h> exists.
60514
60515 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60516
60517         BeOS portability.
60518         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60519         exist.
60520         Problem reported by Bruno Haible.
60521
60522 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60523
60524         Avoid the need for AC_LIBSOURCES in m4 macros.
60525         * modules/acl (EXTRA_DIST): Add acl.h.
60526         * modules/argmatch (Files): Add m4/argmatch.m4.
60527         (configure.ac): Add gl_ARGMATCH.
60528         (EXTRA_DIST): Renamed from lib_SOURCES, for
60529         consistency with the other modules.  Remove argmatch.c.
60530         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60531         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60532         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60533         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60534         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60535         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60536         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60537         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60538         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60539         * modules/closeout (EXTRA_DIST): Add closeout.h.
60540         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60541         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60542         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60543         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60544         dirname.h; remove basename.c and stripslash.c.
60545         * modules/exclude (EXTRA_DIST): Add exclude.h.
60546         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60547         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60548         * modules/file-type (EXTRA_DIST): Add file-type.h.
60549         * modules/filemode (EXTRA_DIST): Add filemode.h.
60550         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60551         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60552         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60553         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60554         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60555         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60556         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60557         * modules/getdate (EXTRA_DIST): Add getdate.c.
60558         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60559         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60560         * modules/getpass (EXTRA_DIST): Add getpass.h.
60561         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60562         * modules/group-member (EXTRA_DIST): Add group-member.h.
60563         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60564         * modules/hash (EXTRA_DIST): Add hash.h.
60565         * modules/human (EXTRA_DIST): Add human.h.
60566         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60567         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60568         * modules/lchown (EXTRA_DIST): Add lchown.h.
60569         * modules/long-options (EXTRA_DIST): Add long-options.h.
60570         * modules/lstat (EXTRA_DIST): Add lstat.h.
60571         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60572         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60573         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60574         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60575         * modules/memxor (EXTRA_DIST): Add memxor.h.
60576         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60577         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60578         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60579         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60580         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60581         * modules/physmem (EXTRA_DIST): Add physmem.h.
60582         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60583         * modules/posixver (EXTRA_DIST): Add posixver.h.
60584         * modules/quote (EXTRA_DIST): Add quote.h.
60585         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60586         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60587         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60588         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60589         regex_internal.h regexec.c.
60590         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60591         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60592         * modules/same (EXTRA_DIST): Add same.h.
60593         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60594         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60595         * modules/savedir (EXTRA_DIST): Add savedir.h.
60596         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60597         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60598         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60599         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60600         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60601         * modules/strdup (EXTRA_DIST): Add strdup.h.
60602         * modules/strftime (EXTRA_DIST): Add strftime.h.
60603         * modules/strndup (EXTRA_DIST): Add strndup.h.
60604         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60605         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60606         * modules/time_r (EXTRA_DIST): Add time_r.h.
60607         * modules/timespec (EXTRA_DIST): Add timespec.h.
60608         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60609         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60610         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60611         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60612         * modules/userspec (EXTRA_DIST): Add userspec.h.
60613         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60614         * modules/utimens (EXTRA_DIST): Add utimens.h.
60615         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60616         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60617         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60618         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60619         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60620         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60621         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60622         * modules/yesno (EXTRA_DIST): Add yesno.h.
60623
60624 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60625
60626         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60627
60628         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60629         * m4/dev-ino.m4, same-inode.m4: Remove.
60630
60631         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60632         * m4/acl.m4 (AC_FUNC_ACL):
60633         * m4/backupfile.m4 (gl_BACKUPFILE):
60634         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60635         * m4/canon-host.m4 (gl_CANON_HOST):
60636         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60637         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60638         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60639         * m4/cloexec.m4 (gl_CLOEXEC):
60640         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60641         * m4/closeout.m4 (gl_CLOSEOUT):
60642         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60643         * m4/dirname.m4 (gl_DIRNAME):
60644         * m4/exclude.m4 (gl_EXCLUDE):
60645         * m4/exitfail.m4 (gl_EXITFAIL):
60646         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60647         * m4/file-type.m4 (gl_FILE_TYPE):
60648         * m4/filemode.m4 (gl_FILEMODE):
60649         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60650         * m4/fpending.m4 (gl_FUNC_FPENDING):
60651         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60652         * m4/fts.m4 (gl_FUNC_FTS):
60653         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60654         * m4/getdate.m4 (gl_GETDATE):
60655         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60656         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60657         * m4/getpass.m4 (gl_FUNC_GETPASS):
60658         * m4/gettime.m4 (gl_GETTIME):
60659         * m4/getugroups.m4 (gl_GETUGROUPS):
60660         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60661         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60662         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60663         * m4/hash.m4 (gl_HASH):
60664         * m4/idcache.m4 (gl_IDCACHE):
60665         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60666         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60667         * m4/long-options.m4 (gl_LONG_OPTIONS):
60668         * m4/lstat.m4 (gl_FUNC_LSTAT):
60669         * m4/md5.m4 (gl_MD5):
60670         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60671         * m4/memcoll.m4 (gl_MEMCOLL):
60672         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60673         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60674         * m4/memxor.m4 (gl_MEMXOR):
60675         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60676         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60677         * m4/modechange.m4 (gl_MODECHANGE):
60678         * m4/mountlist.m4 (gl_MOUNTLIST):
60679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60680         * m4/openat.m4 (gl_FUNC_OPENAT):
60681         * m4/pathmax.m4 (gl_PATHMAX):
60682         * m4/physmem.m4 (gl_PHYSMEM):
60683         * m4/posixtm.m4 (gl_POSIXTM):
60684         * m4/posixver.m4 (gl_POSIXVER):
60685         * m4/quote.m4 (gl_QUOTE):
60686         * m4/quotearg.m4 (gl_QUOTEARG):
60687         * m4/readtokens.m4 (gl_READTOKENS):
60688         * m4/readutmp.m4 (gl_READUTMP):
60689         * m4/regex.m4 (gl_REGEX):
60690         * m4/safe-read.m4 (gl_SAFE_READ):
60691         * m4/safe-write.m4 (gl_SAFE_WRITE):
60692         * m4/same.m4 (gl_SAME):
60693         * m4/save-cwd.m4 (gl_SAVE_CWD):
60694         * m4/savedir.m4 (gl_SAVEDIR):
60695         * m4/settime.m4 (gl_SETTIME):
60696         * m4/sha1.m4 (gl_SHA1):
60697         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60698         * m4/stat-macros.m4 (gl_STAT_MACROS):
60699         * m4/stat-time.m4 (gl_STAT_TIME):
60700         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60701         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60702         * m4/strdup.m4 (gl_FUNC_STRDUP):
60703         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60704         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60705         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60706         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60707         * m4/time_r.m4 (gl_TIME_R):
60708         * m4/timespec.m4 (gl_TIMESPEC):
60709         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60710         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60711         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60712         * m4/userspec.m4 (gl_USERSPEC):
60713         * m4/utimecmp.m4 (gl_UTIMECMP):
60714         * m4/utimens.m4 (gl_UTIMENS):
60715         * m4/xalloc.m4 (gl_XALLOC):
60716         * m4/xgetcwd.m4 (gl_XGETCWD):
60717         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60718         * m4/xreadlink.m4 (gl_XREADLINK):
60719         * m4/xstrtod.m4 (gl_XSTRTOD):
60720         * m4/yesno.m4 (gl_YESNO):
60721         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60722         to get the necessary .h files and whatnot.
60723
60724 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60725             Bruno Haible  <bruno@clisp.org>
60726
60727         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60728         /bin/sh understanding of '!' conditional negation.
60729
60730 2006-08-21  Jim Meyering  <jim@meyering.net>
60731
60732         * modules/openat (Depends-on): Really alphabetize.
60733
60734         * modules/acl (Depends-on): Add error and quote.
60735
60736         * check-module (find_included_lib_files): Add at-func.c to the
60737         ok-to-include-more-than-once white list.
60738
60739         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60740
60741 2006-08-21  Bruno Haible  <bruno@clisp.org>
60742
60743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60744         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60745         Reported by Martin Lambers <marlam@marlam.de>.
60746
60747 2006-08-21  Bruno Haible  <bruno@clisp.org>
60748
60749         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60750         specify an installation location, don't emit a noinst_LIBRARIES or
60751         noinst_LTLIBRARIES assignment.
60752
60753 2006-08-21  Bruno Haible  <bruno@clisp.org>
60754
60755         BeOS portability.
60756         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60757         BeOS has mbrtowc() but no <wctype.h>.
60758
60759 2006-08-21  Bruno Haible  <bruno@clisp.org>
60760
60761         BeOS portability.
60762         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60763         exist.
60764
60765 2006-08-21  Bruno Haible  <bruno@clisp.org>
60766
60767         BeOS portability.
60768         * lib/mbchar.h: Include <wctype.h> only if it exists.
60769
60770 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60771
60772         Remove files that are no longer needed by their respective modules.
60773         * m4/obstack.m4: Remove.
60774         * m4/strerror_r.m4: Remove.
60775         * m4/uint32_t.m4: Remove.
60776         * m4/uintptr_t.m4: Remove.
60777         * m4/ullong_max.m4: Remove.
60778         * m4/xstrtoimax.m4: Remove.
60779         * m4/xstrtoumax.m4: Remove.
60780
60781         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60782         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60783         dependencies now capture this.
60784
60785         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60786         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60787         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60788         * m4/human.m4 (gl_HUMAN): Likewise.
60789         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60790         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60791
60792         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60793
60794         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60795         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60796         stdint.
60797         * m4/human.m4 (gl_HUMAN): Likewise.
60798         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60799         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60800         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60801         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60802         * m4/xstrtol (gl_XSTRTOL): Likewise.
60803
60804         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60805         AC_TYPE_LONG_LONG_INT.
60806         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60807         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60808         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60809         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60810
60811         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60812         on stdbool.
60813
60814         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60815         (gl_PREREQ_XSTRTOUL): Remove.
60816
60817         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60818
60819         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60820         mode.
60821
60822 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60823
60824         Add and change modules to make it easier for coreutils to use
60825         gnulib-tool.
60826         * modules/backupfile (Files): Remove m4/d-ino.m4.
60827         (Depends-on): Add d-ino.
60828         * modules/cycle-check (Depends-on): Add stdint.
60829         (lib_SOURCES): Add cycle-check.h.
60830         * modules/d-ino: New module.
60831         * modules/d-type: New module.
60832         * modules/error (Files): Remove m4/strerror_r.m4.
60833         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60834         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60835         m4/inttypes_h.m4, m4/uintmax_t.m4.
60836         (Depends-on): Add stdint.
60837         (lib_SOURCES): Add fsusage.h.
60838         * modules/getcwd (Files): Remove d-ino.m4.
60839         (Depends-on): Add d-ino.
60840         * modules/getndelim2 (Depends-on): Add stdint.
60841         * modules/glob (Files): Remove m4/d-type.m4.
60842         (Depends-on): Add d-type.
60843         * modules/host-os: New module.
60844         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60845         m4/inttypes_h.m4, m4/uintmax_t.m4.
60846         * Depends-on: Add stdint.
60847         (lib_SOURCES): Add human.h.
60848         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60849         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60850         m4/uintmax_t.m4, m4/ulonglong.m4.
60851         (Depends-on): Add stdint.
60852         (EXTRA_DIST): Add inttostr.h.
60853         * modules/lchmod: New module.
60854         * modules/link-follow: New module.
60855         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60856         (Depends-on): Add lchmod.
60857         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60858         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60859         (Depends-on): Add stdint.
60860         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60861         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60862         (Depends-on): Add stdint.
60863         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60864         * modules/perl: New module.
60865         * modules/regex (Depends-on): Add stdint.
60866         * modules/rmdir-errno: New module.
60867         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60868         m4/intmax_t.m4.
60869         (Depends-on): Add stdint.
60870         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60871         m4/uintmax_t.m4.
60872         (Depends-on): Add stdint.
60873         * modules/unlink-busy: New module.
60874         * modules/utimecmp (Depends-on): Add stdint.
60875         * modules/uptime: New module.
60876         * modules/winsz-ioctl: New module.
60877         * modules/winsz-termios: New module.
60878         * modules/xnanosleep (Depends-on): Add nanosleep.
60879         * modules/ullong_max: Remove.
60880         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60881         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60882         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60883         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60884         (Depends-on): Add inttypes.
60885         (lib_SOURCES): Add xstrtol.h.
60886         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60887         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60888         * MODULES.html.sh: Move 'assert' into the assert section.
60889         Move 'dummy' into the linking section.
60890         Remove ullong_max.
60891         Add section for compatibility checks for POSIX:2001 functions,
60892         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60893         winsz-ioctl, and winsz-termios into it.
60894         Add lchmod.
60895         Add top-level Misc section and put host-os, perl, and uptime
60896         into it.
60897
60898 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60899
60900         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60901         now assume the stdint module.  Do not include inttypes.h.
60902         * lib/fsusage.h: Likewise.
60903         * lib/getndelim2.c: Likewise.
60904         * lib/human.h: Likewise.
60905         * lib/inttostr.h: Likewise.
60906         * lib/obstack.c: Likewise.
60907         * lib/regex_internal.h: Likewise.
60908         * lib/tempname.c: Likewise.
60909         * lib/utimecmp.c: Likewise.
60910         * lib/xstrtol.h: Likewise.
60911
60912         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60913
60914         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60915         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60916         * lib/xtime.h: Likewise.
60917
60918 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * modules/openat (Files): Add lib/fchmodat.c.
60921         Fixes problem reported by Jay Youngman.
60922
60923 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60926         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60927
60928 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60929             Bruno Haible  <bruno@clisp.org>
60930
60931         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60932         and is a script that invokes bison. Tighten the code. Add comments.
60933
60934 2006-08-18  Jim Meyering  <jim@meyering.net>
60935
60936         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60937         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60938         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60939         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60940
60941 2006-08-18  Bruno Haible  <bruno@clisp.org>
60942
60943         * modules/bison-i18n: New file.
60944         * MODULES.html.sh (Internationalization functions): Add it.
60945
60946 2006-08-18  Bruno Haible  <bruno@clisp.org>
60947
60948         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60949         sys/statvfs.h. When getmntinfo was found, check its declaration and
60950         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60951
60952 2006-08-18  Bruno Haible  <bruno@clisp.org>
60953
60954         * m4/bison-i18n.m4: New file, from bison.
60955
60956 2006-08-18  Bruno Haible  <bruno@clisp.org>
60957
60958         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60959         (ME_DUMMY): Treat "kernfs" as a dummy.
60960         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60961
60962 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         Update from coreutils.
60965
60966         2006-08-15  Jim Meyering  <jim@meyering.net>
60967
60968         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60969
60970         2006-01-17  Jim Meyering  <jim@meyering.net>
60971
60972         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60973
60974         2006-01-11  Jim Meyering  <jim@meyering.net>
60975
60976         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60977         Check for the lchmod function.
60978
60979 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         Update from coreutils.
60982
60983         * lib/__fpending.h: Add copyright notice.
60984         * lib/fprintftime.h: Likewise.
60985         * lib/savedir.c: Use (C) in copyright notice.
60986         * lib/savedir.h: Likewise.
60987
60988         2006-08-15  Jim Meyering  <jim@meyering.net>
60989
60990         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60991         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60992         in support of the EXPECTED_ERRNO macro.
60993         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60994         definitions.  Instead, define the appropriate symbols and include
60995         "at-func.c".
60996         * lib/mkdirat.c (mkdirat): Likewise.
60997         * lib/fchmodat.c (fchmodat): Likewise.
60998         (ENOSYS): Remove definition.
60999         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61000         it.  Don't include "unistd--.h" -- it wasn't ever used.
61001
61002         2006-01-17  Jim Meyering  <jim@meyering.net>
61003
61004         Rewrite fts.c not to change the current working directory,
61005         by using openat, fstatat, fdopendir, etc..
61006
61007         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61008         (HAVE_OPENAT_SUPPORT): Define.
61009         [_LIBC] (fchdir): Don't undef or define; no longer used.
61010         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61011         Now, this `function' always succeeds, and consumes its file descriptor
61012         parameter -- so callers must not close such FDs.  Update callers.
61013         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61014         (diropen): Add parameter, SP.  Adjust all callers.
61015         Implement using diropen_fd, rather than open.
61016         (fts_open): Initialize new member, fts_cwd_fd.
61017         Remove fts_rft-setting code.
61018         (fts_close): Close fts_cwd_fd, if necessary.
61019         (__opendir2): Define in terms of opendir or opendirat,
61020         depending on whether the FST_NOCHDIR flag is set.
61021         (fts_build): Since fts_safe_changedir consumes its FD, and since
61022         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61023         and close the dup'd file descriptor upon failure.
61024         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61025         (fts_safe_changedir): Tweak semantics to reflect that this function
61026         now calls cwd_advance_fd and hence consumes its FD argument.
61027         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61028         [struct FTS] (fts_rft): Remove now-unused member.
61029         [struct FTS] (fts_cycle.state): Improve comment.
61030
61031         * lib/openat.c (openat_needs_fchdir): New function.
61032         * lib/openat.h (openat_needs_fchdir): Declare it.
61033
61034 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61035
61036         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61037         Problem and fix reported by Pádraig Brady in
61038         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61039
61040 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61043
61044 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61045
61046         * lib/memcoll.c (memcoll): Optimize for the common case where the
61047         arguments are bytewise equal.
61048
61049 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61050
61051         * doc/regexprops-generic.texi: Add a copyright notice.
61052
61053 2006-08-15  Bruno Haible  <bruno@clisp.org>
61054
61055         * modules/tmpdir (License): Change to LGPL.
61056
61057 2006-08-15  Bruno Haible  <bruno@clisp.org>
61058
61059         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61060         module.
61061
61062 2006-08-14  Simon Josefsson  <jas@extundo.com>
61063
61064         * config/srclist.txt: Add gnupload.
61065
61066 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61067
61068         Change copyright notice from LGPL 2 to GPL 2, since that's the
61069         standard form used in the gnulib repository.
61070         * tests/test-lock.c: Likewise.
61071         * tests/test-stdint.c: Likewise.
61072         * tests/test-tls.c: Likewise.
61073
61074         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61075         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61076         Add copyright notice.
61077
61078         * check-module: Add copyright notice.  Output a copyright
61079         notice if "--version" is specified.
61080         * modules/COPYING: New file.
61081         * tests/test-getaddrinfo.c: Add copyright notice.
61082         * tests/test-verify.c: Likewise.
61083
61084 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61085
61086         Change copyright notice from LGPL 2 to GPL 2, since that's the
61087         standard form used in the gnulib repository.
61088         * lib/lock.c: LGPL -> GPL.
61089         * lib/lock.h: Likewise.
61090         * lib/strnlen1.c: Likewise.
61091         * lib/strnlen1.h: Likewise.
61092         * lib/tls.c: Likewise.
61093         * lib/tls.h: Likewise.
61094         * lib/tmpdir.c: Likewise.
61095
61096         * lib/TODO: Remove; this belongs only in coreutils.
61097
61098 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61099
61100         Add copyright notices to long-enough files that lack them, since
61101         otherwise the files aren't clearly free.  Use the same notice that
61102         getdate.texi already uses.
61103         * doc/alloca-opt.texi: Add copyright notice.
61104         * doc/alloca.texi: Likewise.
61105         * doc/ctime.texi: Likewise.
61106         * doc/functions.texi: Likewise.
61107         * doc/gcd.texi: Likewise.
61108         * doc/gnulib-tool.texi: Likewise.
61109         * doc/inet_ntoa.texi: Likewise.
61110         * doc/visibility.texi: Likewise.
61111
61112         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61113         * doc/quote.texi: Add copyright notice.
61114
61115         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61116         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61117         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61118         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61119         is now obsolete, and give a pointer to the Sun list.
61120         Add copyright notice.
61121
61122 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61123
61124         * config/srclistvars.sh: Add copyright notice.
61125
61126 2006-08-14  Eric Blake  <ebb9@byu.net>
61127
61128         Import the following change from libc:
61129
61130         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61131
61132         Upstream bug 2997.
61133         * lib/misc/error.c: Add space between program name and message if file
61134         name is missing.
61135
61136 2006-08-12  Karl Berry  <karl@gnu.org>
61137
61138         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61139         remove, these originate in gnulib now.
61140
61141 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61142
61143         * doc/Makefile (standards.info standards.html standards.dvi):
61144         Also depend on make-stds.texi.
61145
61146 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61147
61148         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61149         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61150
61151         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61152         in wchar_t.  Problem reported by Eric Blake.
61153
61154         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61155         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61156         Also, help the compiler to keep LEN in a register.
61157
61158 2006-08-11  Eric Blake  <ebb9@byu.net>
61159
61160         * users.txt: Sort.  Add tar.
61161
61162 2006-08-11  Bruno Haible  <bruno@clisp.org>
61163
61164         * users.txt: New file.
61165
61166 2006-08-11  Bruno Haible  <bruno@clisp.org>
61167
61168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61169         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61170
61171 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61172
61173         * modules/snprintf (Depends-on): Remove minmax.
61174         (Maintainer): Add self and Bruno.
61175
61176 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61177
61178         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61179         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61180         (EOVERFLOW): Define if the system does not.
61181         Do not include "minmax.h"; it wasn't used.
61182         (snprintf): Don't assume size_t promotes to an unsigned type.
61183         Fix bug when generated string was too long for the buffer: the
61184         buffer's contents are supposed to be the initial prefix of the
61185         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61186         exceeds INT_MAX; do the check ourselves.
61187
61188         Import the following changes from libc:
61189
61190         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61191
61192         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61193         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61194         set wc to the byte which couldn't be converted.
61195         (re_string_reconstruct): Don't clear valid_raw_len before calling
61196         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61197         tip_context using re_string_context_at.
61198
61199         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61200
61201         * lib/posix/regex.h: g++ still cannot handled [restrict].
61202
61203         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61204
61205         * lib/posix/regex.h: Remove special handling for VMS.
61206
61207 2006-08-10  Jim Meyering  <jim@meyering.net>
61208
61209         * modules/same-inode: New module.
61210         * modules/dev-ino: New module.
61211         * modules/cycle-check: Depend on these modules, rather than simply
61212         including their .h files.
61213         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61214         required via m4/cycle-check.m4.
61215         * modules/same: Depend on new same-inode module, rather than
61216         including same-inode.h.
61217         * modules/chdir-safer: New file.
61218
61219         * modules/chown (Depends-on): Add stat-macros.
61220
61221 2006-08-10  Jim Meyering  <jim@meyering.net>
61222
61223         * m4/cycle-check.m4: New file.
61224         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61225         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61226
61227 2006-08-10  Eric Blake  <ebb9@byu.net>
61228
61229         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61230         in from original proposal.
61231
61232 2006-08-10  Eric Blake  <ebb9@byu.net>
61233         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61234
61235         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61236         namespace.
61237
61238 2006-08-10  Bruno Haible  <bruno@clisp.org>
61239
61240         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61241         as well.
61242
61243 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         Sync from coreutils.
61246
61247         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61248
61249         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61250         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61251
61252 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61253
61254         * modules/restrict: Remove; no longer needed now that we assume
61255         Autoconf 2.59 or later.
61256         * MODULES.html.sh: Remove 'restrict'.
61257         * modules/argp (Depends-on): Remove 'restrict'.
61258         * modules/base64 (Depends-on): Likewise.
61259         * modules/gc (Depends-on): Likewise.
61260         * modules/getaddrinfo (Depends-on): Likewise.
61261         * modules/glob (Depends-on): Likewise.
61262         * modules/inet_ntop (Depends-on): Likewise.
61263         * modules/inet_pton (Depends-on): Likewise.
61264         * modules/memxor (Depends-on): Likewise.
61265         * modules/regex (Depends-on): Likewise.
61266         * modules/strtok_r (Depends-on): Likewise.
61267         * modules/time_r (Depends-on): Likewise.
61268
61269 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61270
61271         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61272         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61273         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61274         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61275         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61276         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61277         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61278         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61279
61280         Merge from coreutils.
61281         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61282         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61283         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61284         * m4/time_r.m4 (gl_TIME_R): Likewise.
61285
61286 2006-08-09  Karl Berry  <karl@gnu.org>
61287
61288         * config/srclist.txt: no more gettext-tools, per Bruno.
61289
61290 2006-08-08  Eric Blake  <ebb9@byu.net>
61291
61292         * modules/verror: New module.
61293         * MODULES.html.sh: Document it.
61294
61295 2006-08-08  Eric Blake  <ebb9@byu.net>
61296
61297         * lib/verror.h, lib/verror.c: New files.
61298
61299 2006-08-08  Eric Blake  <ebb9@byu.net>
61300
61301         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61302         verror_at_line output complies with GNU Coding Standards even when
61303         file is NULL.
61304
61305 2006-08-07  Bruno Haible  <bruno@clisp.org>
61306
61307         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61308         versions of AIX.
61309         Reported by Ralf Wildenhues.
61310
61311 2006-08-07  Bruno Haible  <bruno@clisp.org>
61312
61313         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61314         in an AC_DEFUN. Needed so that the autoconf snippets can use
61315         AC_REQUIRE.
61316
61317 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61318
61319         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61320         Initialize pkgdata_DATA.
61321         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61322         overriding it.
61323
61324 2006-08-06  Eric Blake  <ebb9@byu.net>
61325
61326         * lib/error.h: Fold in some upstream changes from glibc.
61327         * lib/error.c: Likewise.
61328
61329 2006-08-04  Bruno Haible  <bruno@clisp.org>
61330
61331         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61332         Make the mostlyclean-local rule depend on mostlyclean-generic.
61333         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61334
61335 2006-07-31  Bruno Haible  <bruno@clisp.org>
61336
61337         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61338         <stdlib.h>, <string.h>.
61339
61340 2006-07-30  Bruno Haible  <bruno@clisp.org>
61341
61342         * modules/readlink (License): Change to LGPL.
61343
61344 2006-07-30  Bruno Haible  <bruno@clisp.org>
61345
61346         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61347         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61348         set PKGDATADIR to point to it.
61349
61350 2006-07-30  Bruno Haible  <bruno@clisp.org>
61351
61352         * modules/csharpexec (configure.ac): Comment out macro invocation.
61353         * modules/javaexec (configure.ac): Likewise.
61354         * modules/javacomp-script (configure.ac): Likewise.
61355
61356         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61357
61358 2006-07-30  Bruno Haible  <bruno@clisp.org>
61359
61360         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61361         linked-list.
61362
61363 2006-07-30  Bruno Haible  <bruno@clisp.org>
61364
61365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61366
61367 2006-07-30  Bruno Haible  <bruno@clisp.org>
61368
61369         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61370         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61371         get removed.
61372
61373 2006-07-29  Bruno Haible  <bruno@clisp.org>
61374
61375         Make it possible for gnulib-tool to work with locally modified or
61376         augmented gnulib repositories.
61377         * gnulib-tool (func_usage): Document --local-dir option.
61378         (local_gnulib_dir): New variable.
61379         Handle --local-dir option.
61380         (func_lookup_file): New function.
61381         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61382         (func_get_description, func_get_filelist, func_get_description,
61383         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61384         func_get_automake_snippet, func_get_include_directive,
61385         func_get_license, func_get_maintainer): Use func_lookup_file.
61386         (func_import, func_create_testdir): Use func_lookup_file.
61387
61388 2006-07-29  Bruno Haible  <bruno@clisp.org>
61389
61390         * modules/setenv (Depends-on): Add unistd.
61391
61392 2006-07-29  Bruno Haible  <bruno@clisp.org>
61393
61394         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61395
61396 2006-07-29  Bruno Haible  <bruno@clisp.org>
61397
61398         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61399
61400 2006-07-29  Bruno Haible  <bruno@clisp.org>
61401
61402         * gnulib-tool (import, update): If there is no Makefile.am, look at
61403         aclocal.m4, instead of bailing out.
61404
61405 2006-07-29  Bruno Haible  <bruno@clisp.org>
61406
61407         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61408         Categorize the options by when they are useful.
61409
61410 2006-07-29  Bruno Haible  <bruno@clisp.org>
61411
61412         * gnulib-tool (func_usage): Document option --no-libtool.
61413         Handle option --no-libtool.
61414         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61415         for changed semantics of $libtool variable.
61416         (func_import): Likewise. If libtool is not used, show this through
61417         an option --no-libtool.
61418         (func_create_testdir): Update.
61419
61420 2006-07-29  Bruno Haible  <bruno@clisp.org>
61421
61422         * gnulib-tool (func_import): Extend error message about missing
61423         --doc-base.
61424
61425 2006-07-29  Bruno Haible  <bruno@clisp.org>
61426
61427         * gnulib-tool (func_import): Don't create the $docbase directory if
61428         there is no file to store there.
61429
61430 2006-07-29  Bruno Haible  <bruno@clisp.org>
61431
61432         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61433         relevant, look for configure.ac there, not in the current directory.
61434         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61435
61436 2006-07-29  Bruno Haible  <bruno@clisp.org>
61437
61438         * gnulib-tool (SORT): New variable.
61439         (func_usage): Undocument --assume-autoconf option.
61440         Remove --assume-autoconf option handling.
61441         (autoconf_minversion): Determine from the contents of configure.ac.
61442         (func_import): Remove autoconf_minversion handling.
61443         Suggested by Eric Blake.
61444
61445 2006-07-29  Bruno Haible  <bruno@clisp.org>
61446
61447         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61448
61449 2006-07-29  Bruno Haible  <bruno@clisp.org>
61450
61451         * config/srclist.txt (*setenv.[ch]): Remove rules.
61452
61453 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61454
61455         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61456
61457 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61458
61459         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61460         arpa/inet.h.
61461
61462 2006-07-28  Simon Josefsson  <jas@extundo.com>
61463
61464         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61465         * modules/inet_pton (Depends-on): Likewise.
61466
61467 2006-07-28  Simon Josefsson  <jas@extundo.com>
61468
61469         * m4/netinet_in_h.m4: New file.
61470
61471 2006-07-28  Simon Josefsson  <jas@extundo.com>
61472
61473         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61474         #include's.
61475
61476 2006-07-28  Simon Josefsson  <jas@extundo.com>
61477
61478         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61479         #include's.
61480
61481 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61482
61483         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61484         setgid on directories only if they set these bits.
61485         * lib/modechange.h: Remove obsolete comment about masks.
61486
61487 2006-07-28  Eric Blake  <ebb9@byu.net>
61488
61489         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61490         macro expansion.
61491
61492 2006-07-28  Bruno Haible  <bruno@clisp.org>
61493
61494         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61495
61496 2006-07-28  Bruno Haible  <bruno@clisp.org>
61497
61498         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61499
61500 2006-07-28  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61503         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61504         Define fallbacks.
61505         Avoids link error on FreeBSD 4.x.
61506         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61507
61508         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61509         encoding.
61510         * lib/mbswidth.c (iswcntrl): Likewise.
61511
61512 2006-07-27  Bruno Haible  <bruno@clisp.org>
61513
61514         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61515         test.
61516
61517 2006-07-27  Bruno Haible  <bruno@clisp.org>
61518
61519         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61520         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61521         defined.
61522
61523 2006-07-26  Eric Blake  <ebb9@byu.net>
61524
61525         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61526
61527 2006-07-26  Eric Blake  <ebb9@byu.net>
61528
61529         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61530         like mingw that lack mkstemp.
61531         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61532         avoid compilation warning on mingw.
61533
61534 2006-07-26  Bruno Haible  <bruno@clisp.org>
61535
61536         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61537         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61538         INT_FAST*_MIN, INTPTR_MIN.
61539
61540 2006-07-25  Bruno Haible  <bruno@clisp.org>
61541
61542         * modules/version-etc (Depends-on): Add stdarg.
61543
61544 2006-07-25  Bruno Haible  <bruno@clisp.org>
61545
61546         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61547         complex commands.
61548
61549 2006-07-25  Bruno Haible  <bruno@clisp.org>
61550
61551         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61552         defined in <stdarg.h> or config.h.
61553
61554 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61555
61556         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61557         (gl_STDIO_SAFER): Remove.
61558
61559 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61560
61561         * MODULES.html.sh (File stream based Input/Output):
61562         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61563         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61564         * modules/fopen-safer, modules/tmpfile-safer: New files.
61565         * modules/stdio-safer: Remove.
61566
61567 2006-07-24  Bruno Haible  <bruno@clisp.org>
61568
61569         * modules/tmpdir: New file.
61570         * MODULES.html.sh (File system functions): Add it.
61571
61572 2006-07-24  Bruno Haible  <bruno@clisp.org>
61573
61574         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61575         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61576
61577 2006-07-24  Bruno Haible  <bruno@clisp.org>
61578
61579         * modules/clean-temp: New file.
61580
61581 2006-07-24  Bruno Haible  <bruno@clisp.org>
61582
61583         * m4/tmpdir.m4: New file, from GNU gettext.
61584
61585 2006-07-24  Bruno Haible  <bruno@clisp.org>
61586
61587         * lib/tmpdir.h: New file, from GNU gettext.
61588         * lib/tmpdir.c: New file, from GNU gettext.
61589
61590 2006-07-24  Bruno Haible  <bruno@clisp.org>
61591
61592         * lib/clean-temp.h: New file, from GNU gettext.
61593         * lib/clean-temp.c: New file, from GNU gettext.
61594
61595 2006-07-23  Eric Blake  <ebb9@byu.net>
61596
61597         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61598         (Depends-on): Add binary-io.
61599
61600 2006-07-23  Eric Blake  <ebb9@byu.net>
61601
61602         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61603
61604 2006-07-23  Eric Blake  <ebb9@byu.net>
61605
61606         * lib/tmpfile-safer.c: New file.
61607         * lib/stdio-safer.h (fopen_safer): Add prototype.
61608         * lib/stdio--.h (tmpfile): Make safer.
61609
61610 2006-07-23  Bruno Haible  <bruno@clisp.org>
61611
61612         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61613         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61614         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61615         gl_linked_remove_at): Use it.
61616
61617 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61618         and Simon Josefsson <jas@extundo.com>
61619
61620         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61621
61622         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61623
61624 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61625
61626         * modules/close-stream: New file.
61627         * modules/closeout (Description): Make it clear that it exits
61628         with a diagnostic on error.
61629         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61630         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61631
61632 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61633
61634         * m4/close-stream.m4: New file.
61635
61636 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61637
61638         * lib/close-stream.c, lib/close-stream.h: New files.
61639
61640 2006-07-22  Bruno Haible  <bruno@clisp.org>
61641
61642         Merge from GNU gettext 0.15.
61643
61644         2006-05-01  Bruno Haible  <bruno@clisp.org>
61645
61646                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61647
61648         2006-07-22  Bruno Haible  <bruno@clisp.org>
61649
61650                 * modules/javaversion: New file.
61651                 * MODULES.html.sh (Java): Add javaversion.
61652
61653         2006-03-12  Bruno Haible  <bruno@clisp.org>
61654
61655                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61656
61657         2005-12-04  Bruno Haible  <bruno@clisp.org>
61658
61659                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61660                 (untested).
61661
61662         2006-06-21  Bruno Haible  <bruno@clisp.org>
61663
61664                 Avoid warnings from recent versions of mcs.
61665                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61666                 -o, -L, -r any more. Use options documented since mcs-1.0
61667                 instead. Similarly for -g.
61668
61669         2005-12-04  Bruno Haible  <bruno@clisp.org>
61670
61671                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61672                 .resources, not .resource.
61673
61674         2005-07-09  Bruno Haible  <bruno@clisp.org>
61675
61676                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61677                 add a .dll suffix.
61678                 Reported by Mark Junker <mjscod@gmx.de>.
61679
61680         2006-07-22  Bruno Haible  <bruno@clisp.org>
61681
61682                 * modules/gettext: Upgrade to gettext-0.15.
61683                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61684                 m4/visibility.m4.
61685                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61686
61687 2006-07-22  Bruno Haible  <bruno@clisp.org>
61688
61689         Merge from GNU gettext 0.15.
61690
61691         2006-03-25  Bruno Haible  <bruno@clisp.org>
61692
61693                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61694
61695         2006-07-21  Bruno Haible  <bruno@clisp.org>
61696
61697                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61698                 "1.1".
61699
61700         2006-05-09  Bruno Haible  <bruno@clisp.org>
61701
61702                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61703                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61704                 for the conftestver execution.
61705
61706         2006-05-01  Bruno Haible  <bruno@clisp.org>
61707
61708                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61709                 optional target-version argument. Verify that the compiler
61710                 groks source of the specified source-version, or add -source
61711                 option as necessary. Verify that the compiler produces
61712                 bytecode in the specified target-version, or add -target and
61713                 -source options as necessary. Make the result of the test
61714                 available as variable CONF_JAVAC. Also log error output in
61715                 config.log.
61716
61717         2006-03-11  Bruno Haible  <bruno@clisp.org>
61718
61719                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61720
61721         2006-05-09  Bruno Haible  <bruno@clisp.org>
61722
61723                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61724                 CLASSPATH_SEPARATOR to a semicolon.
61725
61726         2006-03-12  Bruno Haible  <bruno@clisp.org>
61727
61728                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61729                 available as variable CONF_JAVA, for subsequent autoconf
61730                 tests. Also log error output in config.log.
61731
61732         2006-07-19  Bruno Haible  <bruno@clisp.org>
61733
61734                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61735                 that getline works on glibc2 systems. Needed to avoid trouble
61736                 in relocatable.c.
61737                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61738
61739         2005-12-04  Bruno Haible  <bruno@clisp.org>
61740
61741                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61742                 launcher (untested).
61743
61744         2005-12-04  Bruno Haible  <bruno@clisp.org>
61745
61746                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61747
61748         2006-07-22  Bruno Haible  <bruno@clisp.org>
61749
61750                 * gettext.m4: Update from GNU gettext-0.15.
61751                 * nls.m4: Likewise.
61752                 * po.m4: Likewise.
61753                 * inttypes-pri.m4: Likewise.
61754                 * inttypes-h.m4: Renamed from inttypes.m4.
61755                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61756
61757 2006-07-22  Bruno Haible  <bruno@clisp.org>
61758
61759         Merge from GNU gettext 0.15.
61760
61761         2005-07-05  Bruno Haible  <bruno@clisp.org>
61762
61763                 * printf-args.c (printf_fetchargs): Work around broken
61764                 definition of wint_t on mingw.
61765
61766         2005-02-12  Bruno Haible  <bruno@clisp.org>
61767
61768                 * xallocsa.h: Add extern "C" for C++.
61769
61770         2006-05-17  Bruno Haible  <bruno@clisp.org>
61771
61772                 Cygwin portability.
61773                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61774
61775         2006-04-30  Bruno Haible  <bruno@clisp.org>
61776
61777                 * progreloc.c: Include <mach-o/dyld.h> if available.
61778                 (find_executable): Use _NSGetExecutablePath when possible.
61779
61780         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61781
61782                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61783                 function.
61784
61785         2005-12-29  Bruno Haible  <bruno@clisp.org>
61786
61787                 * progreloc.c (set_program_name_and_installdir): Fix
61788                 compilation error.
61789
61790         2005-12-04  Bruno Haible  <bruno@clisp.org>
61791
61792                 Cygwin portability.
61793                 * progreloc.c: Include <windows.h> also on Cygwin.
61794                 (find_executable): Add support for Cygwin.
61795                 (set_program_name_and_installdir): Handle also platforms with
61796                 nonempty EXEEXT.
61797
61798         2006-07-11  Bruno Haible  <bruno@clisp.org>
61799
61800                 * javacomp.c: Fix a comment.
61801                 Reported by Jim Meyering.
61802
61803         2006-04-30  Bruno Haible  <bruno@clisp.org>
61804
61805                 * javacomp.h (compile_java_class): Add source_version,
61806                 target_version arguments.
61807                 * javacomp.c: Rewritten to choose only a compiler that
61808                 respects the specified source_version and target_version.
61809
61810         2006-06-27  Bruno Haible  <bruno@clisp.org>
61811
61812                 Assume correct S_ISDIR macro.
61813                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61814
61815         2006-07-22  Bruno Haible  <bruno@clisp.org>
61816
61817                 * javaversion.h: New file, from GNU gettext.
61818                 * javaversion.c: New file, from GNU gettext.
61819                 * javaversion.java: New file, from GNU gettext.
61820                 * javaversion.class: New file, from GNU gettext.
61821
61822         2006-05-17  Bruno Haible  <bruno@clisp.org>
61823
61824                 Cygwin portability.
61825                 * javaexec.c (execute_java_class): Test for jview program
61826                 also on Cygwin.
61827
61828         2006-04-09  Bruno Haible  <bruno@clisp.org>
61829
61830                 * fatal-signal.c: Don't include string.h.
61831                 (at_fatal_signal): Use a copying loop instead of memcpy.
61832
61833         2005-12-04  Bruno Haible  <bruno@clisp.org>
61834
61835                 * csharpexec.c: Add support for 'clix' launcher (untested).
61836                 (execute_csharp_using_sscli): New function.
61837                 (execute_csharp_program): Call it.
61838
61839         2006-06-21  Bruno Haible  <bruno@clisp.org>
61840
61841                 Avoid warnings from recent versions of mcs.
61842                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61843                 -o, -L, -r any more. Use options documented since mcs-1.0
61844                 instead. Similarly for -g.
61845
61846         2005-07-09  Bruno Haible  <bruno@clisp.org>
61847
61848                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61849                 add a .dll suffix.
61850                 Reported by Mark Junker <mjscod@gmx.de>.
61851
61852         2006-06-17  Bruno Haible  <bruno@clisp.org>
61853
61854                 * config.charset: Update for NetBSD 3.0.
61855
61856         2006-05-17  Bruno Haible  <bruno@clisp.org>
61857
61858                 Cygwin portability.
61859                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61860
61861         2006-05-16  Bruno Haible  <bruno@clisp.org>
61862
61863                 * localcharset.c [CYGWIN]: Include <windows.h>.
61864                 (get_charset_aliases): For Cygwin, return the same CPxxx
61865                 aliases list as under WIN32.
61866                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61867                 the environment variables. Fall back to GetACP().
61868
61869         2006-04-05  Bruno Haible  <bruno@clisp.org>
61870
61871                 * config.charset: Update Juan Manuel Guerrero's address.
61872
61873         2005-02-12  Bruno Haible  <bruno@clisp.org>
61874
61875                 * allocsa.h: Add extern "C" for C++.
61876
61877         2005-02-10  Bruno Haible  <bruno@clisp.org>
61878
61879                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61880                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61881
61882         2006-07-22  Bruno Haible  <bruno@clisp.org>
61883
61884                 * gettext.h: Update to GNU gettext-0.15.
61885
61886 2006-07-22  Bruno Haible  <bruno@clisp.org>
61887
61888         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61889         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61890         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61891
61892 2006-07-21  Eric Blake  <ebb9@byu.net>
61893
61894         * modules/stdlib-safer: New file.
61895         * MODULES.html.sh (File stream based Input/Output): Add
61896         stdlib-safer.
61897
61898 2006-07-21  Eric Blake  <ebb9@byu.net>
61899
61900         * lib/stdlib-safer.h: New file from coreutils, required by
61901         stdlib--.h.
61902
61903 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61904
61905         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61906
61907 2006-07-20  Bruno Haible  <bruno@clisp.org>
61908
61909         * gnulib-tool: Recognize new option --assume-autoconf.
61910         (autoconf_minversion): New variable.
61911         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61912
61913 2006-07-20  Bruno Haible  <bruno@clisp.org>
61914
61915         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61916
61917 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61918
61919         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61920         Reindent and repaginate.
61921
61922 2006-07-19  Derek Price  <derek@ximbiot.com>
61923
61924         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61925         Correct grammar.
61926
61927 2006-07-17  Bruno Haible  <bruno@clisp.org>
61928
61929         * modules/list: New file.
61930         * modules/array-list: New file.
61931         * modules/carray-list, modules/carray-list-tests: New files.
61932         * modules/linked-list, modules/linked-list-tests: New files.
61933         * modules/avltree-list, modules/avltree-list-tests: New files.
61934         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61935         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61936         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61937         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61938         * modules/oset: New file.
61939         * modules/array-oset: New file.
61940         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61941         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61942         * tests/test-carray_list.c: New file.
61943         * tests/test-linked_list.c: New file.
61944         * tests/test-avltree_list.c: New file.
61945         * tests/test-rbtree_list.c: New file.
61946         * tests/test-linkedhash_list.c: New file.
61947         * tests/test-avltreehash_list.c: New file.
61948         * tests/test-rbtreehash_list.c: New file.
61949         * tests/test-avltree_oset.c: New file.
61950         * tests/test-rbtree_oset.c: New file.
61951         * MODULES.html.sh (Container data structures): New section.
61952
61953 2006-07-17  Bruno Haible  <bruno@clisp.org>
61954
61955         * m4/gl_list.m4: New file.
61956
61957 2006-07-17  Bruno Haible  <bruno@clisp.org>
61958
61959         * lib/gl_list.h: New file.
61960         * lib/gl_list.c: New file.
61961         * lib/gl_array_list.h: New file.
61962         * lib/gl_array_list.c: New file.
61963         * lib/gl_carray_list.h: New file.
61964         * lib/gl_carray_list.c: New file.
61965         * lib/gl_linked_list.h: New file.
61966         * lib/gl_linked_list.c: New file.
61967         * lib/gl_anylinked_list1.h: New file.
61968         * lib/gl_anylinked_list2.h: New file.
61969         * lib/gl_avltree_list.h: New file.
61970         * lib/gl_avltree_list.c: New file.
61971         * lib/gl_anyavltree_list1.h: New file.
61972         * lib/gl_anyavltree_list2.h: New file.
61973         * lib/gl_rbtree_list.h: New file.
61974         * lib/gl_rbtree_list.c: New file.
61975         * lib/gl_anyrbtree_list1.h: New file.
61976         * lib/gl_anyrbtree_list2.h: New file.
61977         * lib/gl_anytree_list1.h: New file.
61978         * lib/gl_anytree_list2.h: New file.
61979         * lib/gl_linkedhash_list.h: New file.
61980         * lib/gl_linkedhash_list.c: New file.
61981         * lib/gl_anyhash_list1.h: New file.
61982         * lib/gl_anyhash_list2.h: New file.
61983         * lib/gl_avltreehash_list.h: New file.
61984         * lib/gl_avltreehash_list.c: New file.
61985         * lib/gl_rbtreehash_list.h: New file.
61986         * lib/gl_rbtreehash_list.c: New file.
61987         * lib/gl_anytreehash_list1.h: New file.
61988         * lib/gl_anytreehash_list2.h: New file.
61989
61990         * lib/gl_oset.h: New file.
61991         * lib/gl_oset.c: New file.
61992         * lib/gl_array_oset.h: New file.
61993         * lib/gl_array_oset.c: New file.
61994         * lib/gl_avltree_oset.h: New file.
61995         * lib/gl_avltree_oset.c: New file.
61996         * lib/gl_rbtree_oset.h: New file.
61997         * lib/gl_rbtree_oset.c: New file.
61998         * lib/gl_anytree_oset.h: New file.
61999
62000 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62001
62002         * m4/mkancesdirs.m4: New file.
62003         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62004         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62005         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62006         it.
62007
62008 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62011         * lib/mkancesdirs.h: New files.
62012         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62013         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62014         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62015         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62016         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62017         callers changed.  Revamp internals significantly, by not
62018         attempting to create directories that are temporarily more
62019         permissive than the final results.  Do not attempt to use
62020         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62021         This removes some race conditions, fixes some bugs, and simplifies
62022         things.  Use new dirchownmod function to do owner and mode changes.
62023         * lib/mkdir-p.h: Likewise.
62024         * lib/modechange.c (octal_to_mode): New function.
62025         (struct mode_change): New member mentioned.
62026         (make_node_op_equals): New arg mentioned.  All callers changed.
62027         (mode_compile): Keep track of which mode bits the user has explicitly
62028         mentioned.
62029         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62030         New arg PMODE_BITS, to keep track of which mode bits the user
62031         mentioned; it treats S_ISUID and S_ISGID speciall.
62032         All callers changed.
62033         * lib/modechange.h: Likewise.
62034
62035 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62036
62037         * MODULES.html.sh: Add mkancestors.
62038         * modules/mkancesdirs: New module.
62039         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62040         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62041         The chdir-safer and afs files are now orphans; I'll remove them
62042         unless someone speaks up.
62043         Add lib/dirchownmod.c, lib/dirchownmod.h.
62044         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62045         Add lchown, mkancesdirs.
62046         (Maintainer): Add self.
62047
62048 2006-07-15  Karl Berry  <karl@gnu.org>
62049
62050         * gnulib-tool: help message wording/arrangement.
62051
62052 2006-07-14  Simon Josefsson  <jas@extundo.com>
62053
62054         * doc/gnulib.texi (Libtool and Windows): New section.
62055
62056 2006-07-12  Simon Josefsson  <jas@extundo.com>
62057
62058         * modules/gendocs (License): Fix license, approved by Karl.
62059
62060 2006-07-12  Eric Blake  <ebb9@byu.net>
62061
62062         * MODULES.html.sh: Add gendocs.
62063
62064 2006-07-11  Eric Blake  <ebb9@byu.net>
62065
62066         * modules/fdl: New module, to install doc/fdl.texi.
62067         * MODULES.html.sh: Add new section for documentation modules.
62068         * gnulib-tool: Avoid space-tab.
62069         (--doc-base): New option, to manage files from doc.
62070
62071 2006-07-11  Eric Blake  <ebb9@byu.net>
62072
62073         * m4/absolute-header.m4: Fix comments to match recent change.
62074
62075 2006-07-11  Eric Blake  <ebb9@byu.net>
62076
62077         * gnulib-tool: List --doc-base before --tests-base.
62078
62079 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62080
62081         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62082
62083 2006-07-11  Bruno Haible  <bruno@clisp.org>
62084
62085         * README: Mention where to put documentation.
62086
62087 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62088
62089         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62090
62091 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62094         to stdint.m4.
62095
62096 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62097
62098         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62099         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62100         "no/such/file/stdint.h" when there is no such file, so that
62101         the resulting C code can be parsed by dodgy compilers.
62102         Problems reported by Bob Proulx.
62103
62104 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62105
62106         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62107         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62108         macros into the GNU _D_EXACT_NAMLEN.
62109         * lib/savedir.c:  Likewise.
62110         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62111
62112 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62113         and Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62116         * m4/savedir.m4:
62117         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62118         macros into the GNU _D_EXACT_NAMLEN.
62119
62120 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62121
62122         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62123         around the absolute name, to work around a problem with the HP-UX
62124         11.23 native C compiler, reported by Bob Proulx.
62125
62126 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62127
62128         * doc/maintain.texi, make-stds.texi: Sync from
62129         <http://savannah.gnu.org/projects/gnustandards>.
62130
62131 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62132
62133         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62134
62135 2006-07-09  Jim Meyering  <jim@meyering.net>
62136
62137         * m4/glob.m4: Remove a doubled word in a comment.
62138
62139 2006-07-09  Jim Meyering  <jim@meyering.net>
62140
62141         * lib/argp-pv.c: Remove a doubled word in a comment.
62142         * lib/check-version.c (check_version): Likewise.
62143         * lib/javacomp.c (compile_java_class): Likewise.
62144
62145 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62146
62147         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62148         for the benefit of people using Autoconf 2.60.  If you want to
62149         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62150         (or m4/onceonly.m4, if pre-2.57) manually.
62151
62152 2006-07-08  Jim Meyering  <jim@meyering.net>
62153
62154         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62155         comment.
62156         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62157         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62158         comment.
62159
62160 2006-07-08  Jim Meyering  <jim@meyering.net>
62161
62162         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62163
62164 2006-07-07  Simon Josefsson  <jas@extundo.com>
62165
62166         * tests/test-crc.c: Change expected crc value, the test vector
62167         were probably computed using the old broken crc.c?
62168
62169 2006-07-06  Simon Josefsson  <jas@extundo.com>
62170
62171         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62172         now the canonical place for the M4 file).
62173
62174         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62175         from the sys_socket dependency now.
62176
62177         * modules/inet_pton (Files): Ditto.
62178
62179         * modules/inet_ntop (Files): Ditto.
62180
62181 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62182
62183         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62184         not gl_PREREQ_GETUSERSHELL.
62185
62186 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62187
62188         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62189         with only one argument, for Autoconf 2.60.
62190         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62191         expand to nothing, so add a shell command to avoid syntax error.
62192         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62193
62194 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62195
62196         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62197
62198 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62199
62200         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62201         no longer needed.  Check for isblank decl.
62202         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62203         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62204         of existence.
62205
62206 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62207
62208         * lib/getloadavg.c: Use __VMS, not VMS.
62209         * lib/getopt.c: Likewise.
62210         * lib/getpagesize.h: Likewise.
62211         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62212         and probably does not work.
62213
62214 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62215
62216         * lib/.cppi-disable: Add wcwidth.
62217         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62218         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62219         (ISGRAPH): Remove.  All uses changed to isgraph.
62220         (FOLD) [!defined _LIBC]: Remove special case.
62221         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62222         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62223         HAVE_ISBLANK.
62224         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62225         case.
62226
62227 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62228
62229         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62230         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62231         brackets.  Other minor changes to suppress some compiler
62232         warnings.
62233
62234 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62235         and Paul Eggert  <eggert@cs.ucla.edu>
62236
62237         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62238         of invoking obsolescent AC_HEADER_DIRENT macro.
62239         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62240         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62241         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62242         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62243         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62244         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62245         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62246         * m4/readdir.m4: Remove; no longer needed.
62247
62248 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62249         and Paul Eggert  <eggert@cs.ucla.edu>
62250
62251         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62252         Don't worry about this obsolete case any more.
62253         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62254         directories.
62255         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62256         worry about this obsolete case any more.
62257         * lib/fts.c: Likewise.
62258         * lib/getcwd.c: Likewise.
62259         * lib/glob.h: Likewise.
62260         * lib/savedir.c: Likewise.
62261
62262 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62263
62264         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62265         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62266         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62267         needed.
62268         All uses removed.
62269         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62270         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62271         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62272         needed.
62273         * m4/getdate.m4 (gl_GETDATE): Likewise.
62274         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62275         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62276         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62277         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62278         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62279         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62280         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62281         needed.
62282
62283 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62284
62285         * lib/memcasecmp.c: Include <limits.h>.
62286         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62287         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62288         Don't assume isdigit succeeds only on '0' through '9'.
62289
62290 2006-07-05  Eric Blake  <ebb9@byu.net>
62291
62292         * modules/getaddrinfo (Depends-on): Add snprintf.
62293
62294 2006-07-05  Eric Blake  <ebb9@byu.net>
62295
62296         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62297         to avoid 'header present but could not be compiled' on cygwin.
62298
62299 2006-07-05  Eric Blake  <ebb9@byu.net>
62300
62301         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62302         missing from netdb.h.
62303         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62304
62305 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62306
62307         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62308         no longer needed.
62309         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62310         * m4/getdate.m4 (gl_GETDATE): Likewise.
62311         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62312         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62313         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62314         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62315         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62316
62317 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62318
62319         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62320         All uses of is_space replaced by isspace.
62321         * lib/exit.h: Don't talk about STDC_HEADERS.
62322         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62323         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62324         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62325         replaced by isprint etc.
62326         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62327         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62328         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62329         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62330         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62331         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62332
62333 2006-07-05  Bruno Haible  <bruno@clisp.org>
62334
62335         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62336         the function exists, before testing against AIX.
62337         Reported by Martin Lambers <marlam@marlam.de>.
62338
62339 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62340
62341         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62342         From Mark D. Baushke.
62343
62344 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62345
62346         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62347         to the absolute name, not just one, to bypass Sun C 5.8's
62348         "warning: #include of /usr/include/... may be non-portable".
62349
62350 2006-07-04  Eric Blake  <ebb9@byu.net>
62351
62352         * modules/dirname-tests: New test module.
62353         * tests/test-dirname.c: New file, replacing dirname.c
62354         TEST_DIRNAME section that was recently deleted.
62355
62356 2006-07-04  Bruno Haible  <bruno@clisp.org>
62357
62358         Assume ANSI C header files and <ctype.h> functions.
62359         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62360         (mbsnwidth): Use isprint, iscntrl instead.
62361
62362 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62363
62364         Merge from coreutils.
62365         * MODULES.html.sh: Add xstrtold.
62366         * modules/xstrtold: New file.
62367         * modules/cycle-check (Files): Add lib/same-inode.h.
62368         * modules/dirname (Files): Add m4/double-slash-root.m4.
62369         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62370         * modules/mkdir-p (Files): Add lib/same-inode.h.
62371         * modules/same (Files): Add lib/same-inode.h.
62372
62373 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62374
62375         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62376         This is to keep the terminology clean; POSIX talks about
62377         "absolute pathnames", not "full pathnames", but the GNU
62378         Coding Standards say to use "path" for something else;
62379         so use "absolute" to keep both sides happy.
62380         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62381         Set gl_absolute_header, not gl_full_header_path.
62382         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62383         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62384         All uses changed.
62385
62386         Merge from coreutils.
62387
62388         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62389
62390         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62391         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62392         want to require the building of c-strtod.o.
62393         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62394         needs -lm directly.
62395         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62396
62397         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62398
62399         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62400         --as-needed option if available.  Problem reported by Albert Chin in
62401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62402         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62403         cc merely issues a bunch of annoying warnings for --as-needed
62404         (this problem was reported by Bob Proulx).  Also, try linking with
62405         -lm to detect a bug in binutils 2.16 (this problem was reported
62406         by Ralf Wildenhues).
62407
62408         2006-06-18  Jim Meyering  <jim@meyering.net>
62409
62410         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62411         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62412         macro.
62413         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62414         also check for glibc-2.4's abort-inducing bug.
62415
62416         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62417         Low-probability clean-up should be to use rmdir to get rid of
62418         the just-created directory, not unlink.
62419
62420         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62421         configure fail, and request a bug report to inform us about it.
62422         Add a comment that, barring reports to the contrary, in 2007 we'll
62423         assume ftruncate is universally available.
62424
62425         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62426
62427         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62428
62429         2006-03-12  Jim Meyering  <jim@meyering.net>
62430
62431         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62432         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62433         * m4/same.m4 (gl_SAME): Likewise.
62434         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62435
62436         2006-03-11  Eric Blake  <ebb9@byu.net>
62437
62438         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62439         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62440         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62441         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62442
62443 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62444
62445         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62446         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62447         reported by Mark D. Baushke, one in
62448         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62449
62450         Merge from coreutils.
62451
62452         * lib/.cppi-disable: Add stdint_.h.
62453         * lib/.cvsignore: Add stdint.h.
62454
62455         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62456
62457         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62458         both double and long double versions.
62459         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62460         * lib/xstrtold.c: New file.
62461         * lib/xstrtod.h (xstrtold): New decl.
62462
62463         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62464
62465         * lib/filemode.c (setst): Remove.
62466         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62467         (arguably) clearer, and the generated code is a bit smaller on my
62468         Debian GNU/Linux stable x86 host.
62469
62470         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62471
62472         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62473         Assume that filemode.h includes sys/types.h and sys/stat.h.
62474         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62475         (ftypelet): Reorder to put common cases first, for efficiency.
62476         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62477         to do 'M'.
62478         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62479         of 10, for compatibility with FreeBSD.  All callers changed.
62480         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62481         types that can't be deduced solely from st_mode.  First arg is now a
62482         const pointer.
62483         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62484         (strmode): Renamed from mode_string.
62485         (filemodestring): New decl.
62486         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62487         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62488         needed.
62489         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62490
62491         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62492
62493         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62494         fsusage.h now does that.  Include fsusage.h first, to test interface.
62495         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62496         at most one method (the old code could have generated decls that
62497         didn't conform to C89, not that this was ever exercised).
62498         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62499
62500         2006-03-19  Jim Meyering  <jim@meyering.net>
62501
62502         Work even in a chroot where d_ino values for entries in "/"
62503         don't match the stat.st_ino values for the same names.
62504         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62505         number, iterate through all entries again, using lstat instead.
62506         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62507         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62508
62509         * lib/getcwd.c (__getcwd): Clarify a comment.
62510         Use memcpy in place of a call to strcpy.
62511
62512         2006-03-12  Jim Meyering  <jim@meyering.net>
62513
62514         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62515         matches that of the current directory (which we're about to chdir ".."
62516         out of), then save the dev-ino of the parent, instead.
62517
62518         * lib/same-inode.h (SAME_INODE): New file/macro.
62519         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62520         Include "same-inode.h", instead.
62521         * lib/same.c: Likewise.
62522         * lib/cycle-check.h: Include "same-inode.h".
62523         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62524         * lib/cycle-check.c (SAME_INODE): Remove definition.
62525         * lib/root-dev-ino.h: Include "same-inode.h".
62526
62527         2006-03-11  Eric Blake  <ebb9@byu.net>
62528
62529         * lib/same.c (same_name): s/base_name/last_component/
62530         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62531         * lib/filenamecat.c (file_name_concat): Likewise.
62532
62533         2006-03-11  Eric Blake  <ebb9@byu.net>,
62534                     Paul Eggert  <eggert@cs.ucla.edu>
62535
62536         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62537         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62538         drive prefix.
62539         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62540         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62541         (last_component): New method.
62542         * lib/dirname.c (dir_len): Determine when drive letters need a
62543         subsequent slash.  Preserve // when it is special.
62544         (dir_name): Don't append dot when drive letter is absolute.
62545         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62546         * lib/basename.c (base_name): New semantics - malloc the result.
62547         Preserve // when it is special.  Preserve relative files that look
62548         like drive letters.
62549         (base_len): Preserve // when it is special.
62550         (last_component): New method, similar to old base_name semantics.
62551         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62552         base_name.  Strip redundant slashes from ///.
62553
62554 2006-07-03  Jim Meyering  <jim@meyering.net>
62555
62556         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62557         macro is used before the first cycle_check call.
62558
62559 2006-07-03  Eric Blake  <ebb9@byu.net>
62560
62561         * modules/dirname (Depends-on): Add xstrndup.
62562
62563 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62564
62565         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62566         test cases, so that config.log is a bit easier to follow.
62567
62568 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62569
62570         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62571         both are 64 bits, since this seems to be the tradition, and this
62572         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62573         we ever run into a host that prefers long long to long in this
62574         case, we'll need another configure-time test.  Problem reported by
62575         Jim Meyering.
62576
62577 2006-07-02  Eric Blake  <ebb9@byu.net>
62578
62579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62580
62581 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         * modules/inttypes (Depends-on): No longer depends on stdint.
62584         * modules/stdint (Description): Say more about assumptions.
62585         Say that the fast types might differ.  Say macros are used.
62586         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62587         (Makefile.am): Revise list of substituted symbols to match
62588         new stdint.m4.
62589         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62590         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62591         * tests/test-stdint.c (verify_same_types)
62592         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62593         the code conforms to C99/C89.
62594         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62595         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62596
62597 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62598
62599         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62600         but fix a bug, by requiring at least 64 bits.
62601         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62602         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62603         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62604         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62605
62606         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62607         changes.  Make 2.59 a prerequisite.  Check and substitute for
62608         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62609         inttypes.h.  Do not use special include files; just use the
62610         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62611         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62612         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62613         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62614         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62615         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62616         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62617         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62618         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62619         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62620         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62621         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62622         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62623         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62624         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62625         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62626         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62627         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62628         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62629         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62630         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62631         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62632         not check for things that C99 does not require, e.g., int8_t.  If
62633         a test isn't needed unless <stdint.h> isn't working, and is
62634         unlikely to be needed for any other reason, then don't do it
62635         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62636         size_t, since we assume C89 freestanding at least.  Do not check
62637         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62638         the right thing even if the types are not defined.  Instead use:
62639         (gl_STDINT_TYPE_PROPERTIES): New macro.
62640         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62641         testing whether <sys/types.h> clashes, as Autoconf does this for
62642         us now.  All uses removed.
62643         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62644         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62645         (gl_CHECK_TYPE_SAME):
62646         Remove; no longer needed.
62647         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62648         exists, since we'll return 0 anyway in that case.
62649         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62650
62651 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62652
62653         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62654         possible collision with system files.
62655         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62656         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62657         WCHAR_MIN and WCHAR_MAX in this case.
62658         (<stddef.h>): Do not include; no longer needed.
62659         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62660         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62661         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62662         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62663         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62664         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62665         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62666         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62667         !defined(__c99))]: Include in this case too, since it's harmless
62668         now.
62669         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62670         dangerous to do so.
62671         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62672         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62673         (_STDINT_MIN, _STDINT_MAX): New macros.
62674         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62675         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62676         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62677         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62678         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62679         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62680         macros, not typedefs; this simplifies things quite a bit.
62681         Use long int for all types narrower than int64_t.
62682         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62683         Define in terms of long long int or int64_t or long int,
62684         not int64_t or int32_t.  This saves some compile-time testing.
62685         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62686         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62687         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62688         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62689         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62690         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62691         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62692         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62693         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62694         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62695         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62696         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62697         undef any previous version and define our own version, for
62698         simplicity and consistency with the new macros for types.
62699         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62700         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62701         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62702         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62703         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62704         @WINT_T_SUFFIX@ to keep things simple here.
62705         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62706         Simplify by assuming typical 8/16/32/64 host, since we're
62707         already doing that elsewhere anyway.
62708         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62709         and assume long long int is 64 bits if available.  This
62710         speeds up 'configure'.
62711
62712 2006-07-01  Eric Blake  <ebb9@byu.net>
62713
62714         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62715         Reported by Andreas Buening.
62716
62717 2006-07-01  Eric Blake  <ebb9@byu.net>
62718
62719         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62720
62721 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62722
62723         * lib/getaddrinfo.c: fixed typo
62724
62725 2006-06-29  Jim Meyering  <jim@meyering.net>
62726
62727         * modules/strftime (Maintainer): Add my name, since with the
62728         FPRINTFTIME changes strftime.c has forked from glibc.
62729
62730 2006-06-29  Eric Blake  <ebb9@byu.net>
62731
62732         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62733
62734 2006-06-29  Eric Blake  <ebb9@byu.net>
62735
62736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62737
62738 2006-06-29  Eric Blake  <ebb9@byu.net>
62739
62740         * lib/stat_.h: New file.
62741
62742 2006-06-29  Eric Blake  <ebb9@byu.net>
62743
62744         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62745         unused static function.
62746
62747 2006-06-29  Eric Blake  <ebb9@byu.net>
62748
62749         * doc/functions.texi (Function Portability): Document missing lstat
62750         on mingw.
62751
62752 2006-06-29  Eric Blake  <ebb9@byu.net>
62753
62754         * MODULES.html.sh: Add sys_stat.
62755         * modules/sys_stat: New module.
62756         * modules/mkstemp (Depends-on): Add sys_stat.
62757
62758 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62759
62760         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62761
62762 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62763
62764         * m4/c-bs-a.m4: Removed.
62765
62766 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62767
62768         * lib/strftime.c: Assume strftime() exists.
62769
62770 2006-06-29  Derek Price  <derek@ximbiot.com>
62771
62772         * modules/c-bs-a: Removed - \a is C89.
62773         * MODULES.html.sh: Remove c-bs-a.
62774
62775 2006-06-29  Bruno Haible  <bruno@clisp.org>
62776
62777         * modules/wcwidth (License): Change to LGPL.
62778
62779 2006-06-28  Simon Josefsson  <jas@extundo.com>
62780
62781         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62782         on _WIN32.
62783
62784         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62785         getnameinfo.
62786
62787 2006-06-28  Simon Josefsson  <jas@extundo.com>
62788
62789         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62790
62791 2006-06-28  Simon Josefsson  <jas@extundo.com>
62792
62793         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62794         functions there.  It will succeed on Windows XP, but on Windows
62795         2000 and (presumably) earlier, it will fail, and use the internal
62796         re-implementation.
62797         (use_win32_p): New function.
62798         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62799         Support AI_NUMERICSERV to disable getservbyname.
62800         (getnameinfo): New function, only supports
62801         NI_NUMERICHOST|NI_NUMERICSERV for now.
62802
62803         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62804         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62805         getnameinfo.
62806
62807 2006-06-28  Eric Blake  <ebb9@byu.net>
62808
62809         * modules/wcwidth: New file.
62810         * modules/mbchar (Depends-on): Add wcwidth.
62811         * modules/mbswidth (Depends-on): Add wcwidth.
62812         * MODULES.html.sh: Add wcwidth.
62813
62814 2006-06-28  Eric Blake  <ebb9@byu.net>
62815
62816         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62818
62819 2006-06-28  Eric Blake  <ebb9@byu.net>
62820
62821         * lib/xvasprintf.h: Fix comments.
62822
62823 2006-06-28  Eric Blake  <ebb9@byu.net>
62824
62825         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62826         * lib/mbswidth.c (wcwidth): Move from here...
62827         * lib/wcwidth.h: ...to this new file.
62828
62829 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62830
62831         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62832
62833         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62834         it's obsolete.
62835         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62836
62837 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62838
62839         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62840         Autoconf 2.60 says this stuff was obsolete.
62841
62842 2006-06-28  Bruno Haible  <bruno@clisp.org>
62843
62844         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62845
62846 2006-06-28  Bruno Haible  <bruno@clisp.org>
62847
62848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62849         gt_TYPE_WCHAR_T.
62850
62851 2006-06-28  Bruno Haible  <bruno@clisp.org>
62852
62853         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62854         declaration for wcwidth.
62855         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62856
62857 2006-06-28  Bruno Haible  <bruno@clisp.org>
62858
62859         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62860         (mkdir): Define using _mkdir.
62861
62862 2006-06-28  Bruno Haible  <bruno@clisp.org>
62863
62864         * lib/getaddrinfo.h: Fix POSIX URL.
62865         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62866         _WIN32.
62867         (use_win32_p): Make static.
62868         (getaddrinfo): Reject service name if it is empty or does not consist
62869         solely of decimal digits, or if its value is > 65535.
62870         (getnameinfo): Remove useless casts.
62871
62872 2006-06-27  Simon Josefsson  <jas@extundo.com>
62873
62874         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62875         Eggert and Martin Lambers.
62876
62877 2006-06-27  Simon Josefsson  <jas@extundo.com>
62878
62879         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62880         Eggert and Martin Lambers.
62881
62882 2006-06-27  Bruno Haible  <bruno@clisp.org>
62883
62884         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62885         result to 0, not to empty.
62886         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62887
62888 2006-06-27  Bruno Haible  <bruno@clisp.org>
62889
62890         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62891
62892 2006-06-26  Simon Josefsson  <jas@extundo.com>
62893
62894         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62895         present.
62896
62897 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62898
62899         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62900         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62902
62903 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62904
62905         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62906
62907 2006-06-26  Bruno Haible  <bruno@clisp.org>
62908
62909         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62910
62911 2006-06-26  Bruno Haible  <bruno@clisp.org>
62912
62913         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62914
62915 2006-06-26  Bruno Haible  <bruno@clisp.org>
62916
62917         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62918         SGI C compiler in pre-C99 mode.
62919         Suggested by Mark D. Baushke and Larry Jones.
62920
62921 2006-06-26  Bruno Haible  <bruno@clisp.org>
62922
62923         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62924         WCHAR_MAX.
62925         Reported by Mark D. Baushke and Larry Jones.
62926
62927 2006-06-26  Bruno Haible  <bruno@clisp.org>
62928
62929         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62930         in pre-C99 mode.
62931         Suggested by Mark D. Baushke and Larry Jones.
62932
62933 2006-06-23  Simon Josefsson  <jas@extundo.com>
62934             Bruno Haible  <bruno@clisp.org>
62935
62936         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62937         Emit mostlyclean-local rule.
62938         (func_emit_tests_Makefile_am): Likewise.
62939         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62940
62941 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62942
62943         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62944
62945 2006-06-23  Bruno Haible  <bruno@clisp.org>
62946
62947         * tests/test-stdint.c: Update to match ISO C 99 Technical
62948         Corrigendum 1.
62949
62950 2006-06-23  Bruno Haible  <bruno@clisp.org>
62951
62952         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62953
62954 2006-06-23  Bruno Haible  <bruno@clisp.org>
62955
62956         * lib/stdint_.h: Treat IRIX like OpenBSD.
62957
62958 2006-06-23  Bruno Haible  <bruno@clisp.org>
62959
62960         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62961         ISO C 99 Technical Corrigendum 1.
62962
62963 2006-06-22  Simon Josefsson  <jas@extundo.com>
62964
62965         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62966         MinGW.
62967
62968 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62969
62970         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62971         needed.  Some compiler complained about some of them.  Problem reported
62972         by Larry Jones in
62973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62974
62975 2006-06-21  Simon Josefsson  <jas@extundo.com>
62976
62977         * tests/test-getaddrinfo.c: New file.
62978
62979         * modules/getaddrinfo-tests: New file.
62980
62981         * MODULES.html.sh: Add inet_pton.
62982
62983         * modules/inet_pton: New file.
62984
62985 2006-06-21  Simon Josefsson  <jas@extundo.com>
62986
62987         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62988         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62989         of using the (limited) gnulib implementation on Windows XP.
62990
62991         * m4/inet_pton.m4: New file.
62992
62993 2006-06-21  Simon Josefsson  <jas@extundo.com>
62994
62995         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62996         variable.
62997
62998         * lib/socket_.h: Don't define WINVER.
62999
63000         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63001         slightly modified to work in gnulib.
63002
63003 2006-06-21  Simon Josefsson  <jas@extundo.com>
63004
63005         * doc/gnulib.texi (Windows sockets): Add.
63006
63007 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         * lib/read-file.c (fread_file): Start with buffer allocation of
63010         0 bytes rather than 1 byte; this simplifies the code.
63011         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63012         code to free buffer and save/restore errno.
63013         (internal_read_file): Remove unused local.
63014
63015 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63016
63017         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63018         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63019         Problem reported by Denis Excoffier in
63020         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63021
63022 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63023
63024         * modules/sys_socket, modules/socklen: Include sys/types since
63025         FreeBSD 4.x's sys/socket.h needs it.
63026
63027 2006-06-19  Simon Josefsson  <jas@extundo.com>
63028
63029         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63030
63031 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63032
63033         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63034
63035 2006-06-19  Bruno Haible  <bruno@clisp.org>
63036
63037         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63038         and FULL_PATH_INTTYPES_H in angle brackets.
63039         Reported by Mark D. Baushke <mdb@gnu.org>.
63040
63041 2006-06-17  Eric Blake  <ebb9@byu.net>
63042
63043         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63044         errno.
63045
63046 2006-06-17  Bruno Haible  <bruno@clisp.org>
63047
63048         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63049         <sys/inttypes.h>.
63050
63051 2006-06-17  Bruno Haible  <bruno@clisp.org>
63052
63053         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63054         whether errno is declared. Assume <errno.h> declares errno.
63055
63056 2006-06-17  Bruno Haible  <bruno@clisp.org>
63057
63058         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63059
63060 2006-06-17  Bruno Haible  <bruno@clisp.org>
63061
63062         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63063         problem on Solaris 2.5.1.
63064
63065 2006-06-16  Eric Blake  <ebb9@byu.net>
63066
63067         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63068         * lib/unicodeio.c [!defined errno]: Likewise.
63069         * lib/strtol.c [!defined errno]: Likewise.
63070         * lib/strtod.c [!defined errno]: Likewise.
63071
63072 2006-06-15  Eric Blake  <ebb9@byu.net>
63073
63074         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63075
63076 2006-06-15  Eric Blake  <ebb9@byu.net>
63077
63078         * config/srclist.txt (ssize_t.m4): Lose sync.
63079
63080 2006-06-15  Bruno Haible  <bruno@clisp.org>
63081
63082         * modules/stdint (Files): Include m4/full-header-path.m4,
63083         m4/size_max.m4, m4/wchar_t.m4.
63084         (Makefile.am): Many more substitutions.
63085         * modules/stdint-tests: New file.
63086         * tests/test-stdint.c: New file.
63087
63088 2006-06-15  Bruno Haible  <bruno@clisp.org>
63089
63090         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63091         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63092         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63093         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63094         gl_CHECK_TYPE_SAME): New macros.
63095
63096 2006-06-15  Bruno Haible  <bruno@clisp.org>
63097
63098         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63099
63100 2006-06-15  Bruno Haible  <bruno@clisp.org>
63101
63102         * lib/stdint_.h: Rewritten to be fully auto-configured.
63103         Fixes bug on HP-UX/IA64.
63104
63105 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         * lib/getdate.y (__attribute__): Don't define if already defined.
63108         Problem reported by Larry Jones.
63109         * lib/utimens.c (__attribute__): Likewise.
63110
63111 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63112
63113         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63114         reported by Andreas Schwab.
63115
63116 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63117             Bruno Haible  <bruno@clisp.org>
63118
63119         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63120         check for the declaration of strnlen and a run test that exposes the
63121         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63122         rpl_strndup.
63123
63124 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63125             Bruno Haible  <bruno@clisp.org>
63126
63127         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63128
63129 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63130
63131         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63132         compile test, for Tru64 4.0D.
63133
63134 2006-05-28  Karl Berry  <karl@gnu.org>
63135
63136         * config/srclist.txt (printf-args.c): lose sync.
63137
63138 2006-05-26  Martin Lambers  <marlam@marlam.de>
63139
63140         * lib/getpass.c: Updates the test for the native W32 API, and adds
63141         missing includes, thus fixing compilation warnings.
63142
63143 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63144
63145         * lib/exclude.c (exclude_fnmatch): New function.
63146         (excluded_file_name): Call exclude_fnmatch.
63147         * lib/exclude.h (excluded_file_name): New prototype
63148
63149 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63150
63151         * lib/tempname.c (small_open, large_open): New macros.
63152         (__open, __open64) [!_LIBC]: Remove.
63153         (__gen_tempname): Use small_open and large_open instead of __open
63154         and __open64.  This fixes a portability bug on HP-UX 11.11i
63155         reported by Simon Wing-Tang in
63156         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63157
63158 2006-05-24  Bruno Haible  <bruno@clisp.org>
63159
63160         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63161         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63162         Reported by Thorsten Maerz <torte@netztorte.de> via
63163         Aaron Stone <aaron@serendipity.cx>.
63164
63165 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63168         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63169         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63170         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63171         not really conditional on the cache.
63172         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63173
63174 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63175
63176         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63177         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63178         (my_usleep): Don't mishandle maximum value.
63179
63180 2006-05-19  Jim Meyering  <jim@meyering.net>
63181
63182         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63183
63184 2006-05-17  Bruno Haible  <bruno@clisp.org>
63185
63186         Cygwin portability.
63187         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63188
63189 2006-05-17  Bruno Haible  <bruno@clisp.org>
63190
63191         * lib/stdint_.h: Fix recognition of Cygwin.
63192
63193 2006-05-15  Bruno Haible  <bruno@clisp.org>
63194
63195         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63196         on libtool patch by Ralf Wildenhues.
63197
63198 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63199
63200         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63201         test for C99 conformance; (bool) 0.5 is an integer constant
63202         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63203         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63204
63205 2006-05-11  Simon Josefsson  <jas@extundo.com>
63206
63207         * m4/xvasprintf.m4: Fix obvious typo.
63208
63209 2006-05-11  Jim Meyering  <jim@meyering.net>
63210
63211         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63212         James Lemley.
63213
63214 2006-05-10  Simon Josefsson  <jas@extundo.com>
63215
63216         * lib/md4.c: Typo fix, update copyright years.
63217         (K1, K2): Don't use L because it turn computations into 64-bit on
63218         64-bit platforms.
63219
63220 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63221
63222         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63223         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63224         unwanted sign propagation, e.g., on hosts with 64-bit int.
63225         There still are some problems with reeelly weird theoretical hosts
63226         (e.g., 33-bit int) but it's not worth worrying about now.
63227         * lib/sha1.c (rol): Likewise.
63228         (K1, K2, K3, K4): Remove unnecessary L suffix.
63229
63230 2006-05-10  Bruno Haible  <bruno@clisp.org>
63231
63232         * lib/des.c: Cast to avoid warnings.
63233
63234 2006-05-09  Bruno Haible  <bruno@clisp.org>
63235
63236         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63237         (Depends-on): Depend also on xsize, stdarg.
63238         (configure.ac): Add gl_XVASPRINTF.
63239
63240 2006-05-09  Bruno Haible  <bruno@clisp.org>
63241
63242         * m4/xvasprintf.m4: New file.
63243
63244 2006-05-09  Bruno Haible  <bruno@clisp.org>
63245
63246         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63247         (EOVERFLOW): Define fallback value.
63248         (xstrcat): New function.
63249         (xvasprintf): Recognize the special case of a string concatenation.
63250
63251 2006-05-08  Eric Blake  <ebb9@byu.net>
63252
63253         * gnulib-tool (func_version): Base copyright year on CVS date.
63254         (func_emit_copyright_notice): New function.
63255         (func_emit_lib_Makefile_am): Use it.
63256         (func_emit_tests_Makefile_am): Likewise.
63257         (func_import): Likewise.
63258
63259 2006-05-08  Bruno Haible  <bruno@clisp.org>
63260
63261         * modules/stdarg: New file.
63262         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63263
63264 2006-05-08  Bruno Haible  <bruno@clisp.org>
63265
63266         * m4/stdarg.m4: New file, from GNU gettext.
63267
63268 2006-05-08  Bruno Haible  <bruno@clisp.org>
63269
63270         * config/srclist.txt (build-aux/config.rpath): different from latest
63271         release.
63272
63273 2006-05-08  Bruno Haible  <bruno@clisp.org>
63274
63275         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63276
63277 2006-05-05  Jim Meyering  <jim@meyering.net>
63278
63279         * m4/warning.m4: New file, derived from bison's file by the same name.
63280
63281 2006-05-03  Bruno Haible  <bruno@clisp.org>
63282
63283         * lib/stdint_.h: Shorter URL.
63284         * lib/inttypes.h: Likewise.
63285
63286 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63289
63290 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63291
63292         * lib/verify.h: Document the internals better.  Most of this change
63293         was written by Bruno Haible.
63294
63295 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63296
63297         * doc/verify.texi: New file, partly based on a proposal by
63298         Bruno Haible.
63299
63300 2006-05-02  Bruno Haible  <bruno@clisp.org>
63301
63302         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63303         test from here...
63304         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63305
63306 2006-04-29  Bruno Haible  <bruno@clisp.org>
63307
63308         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63309         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63310
63311 2006-04-29  Bruno Haible  <bruno@clisp.org>
63312
63313         * gnulib-tool: Make --update option actually work.
63314
63315 2006-04-29  Bruno Haible  <bruno@clisp.org>
63316
63317         * doc/gcd.texi: New file.
63318         * doc/gnulib.texi: Include it.
63319
63320 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63321
63322         * lib/getdate.y (get_date): When adding relative date, start with the
63323         initial time, not with the result of the first mktime call.
63324
63325 2006-04-25  Bruno Haible  <bruno@clisp.org>
63326
63327         * gnulib-tool (func_import): Output the include directives in three
63328         blocks, sorted separately.
63329         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63330
63331 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63332
63333         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63334         to define main with arguments, for C++.  Reported by Eric Blake.
63335         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63336         Prefer 'int main ()' to 'int main (void)', for C++.
63337         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63339         for 'main', for C99 and C++.
63340
63341 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63342
63343         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63344         Don't assume that exit status -1 is valid.
63345         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63346         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63347         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63348         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63349         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63350         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63351         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63352         functions can be used without declaring them, or that you can
63353         exit with status -1.
63354         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63355
63356 2006-04-24  Karl Berry  <karl@gnu.org>
63357
63358         * config/srclist.txt (longdouble.m4): sync lost.
63359
63360 2006-04-24  Eric Blake  <ebb9@byu.net>
63361
63362         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63363
63364 2006-04-24  Bruno Haible  <bruno@clisp.org>
63365
63366         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63367         poll() implementation in AIX.
63368         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63369
63370 2006-04-24  Bruno Haible  <bruno@clisp.org>
63371
63372         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63373         assigned exactly once.
63374
63375 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63376             Bruno Haible  <bruno@clisp.org>
63377
63378         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63379         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63380         for AM_CPPFLAGS.
63381
63382 2006-04-23  Bruno Haible  <bruno@clisp.org>
63383
63384         * modules/copy-file: Depend on unistd.
63385         * modules/execute: Likewise.
63386         * modules/fatal-signal: Likewise.
63387         * modules/findprog: Likewise.
63388         * modules/mkdtemp : Likewise.
63389         * modules/pipe: Likewise.
63390         * modules/wait-process: Likewise.
63391
63392 2006-04-23  Bruno Haible  <bruno@clisp.org>
63393
63394         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63395         condition was already detected.
63396         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63397
63398 2006-04-23  Bruno Haible  <bruno@clisp.org>
63399
63400         * lib/copy-file.c: Include <unistd.h> unconditionally.
63401         * lib/execute.c: Likewise.
63402         * lib/fatal-signal.c: Likewise.
63403         * lib/findprog.c: Likewise.
63404         * lib/mkdtemp.c: Likewise.
63405         * lib/pipe.h: Likewise.
63406         * lib/pipe.c: Likewise.
63407         * lib/wait-process.h: Likewise.
63408
63409 2006-04-23  Bruno Haible  <bruno@clisp.org>
63410
63411         * gnulib-tool (func_usage): Fix --import description. Document
63412         --update.
63413         (func_import): Create temporary file in a temporary directory, if
63414         --dry-run is specified. Silence errors from 'grep' when there are no
63415         m4 files in $m4dir.
63416         (func_create_testdir): Silence errors from 'grep' when there are no
63417         m4 files in $m4dir.
63418         Reported by Karl Berry <karl@freefriends.org>.
63419
63420 2006-04-20  Bruno Haible  <bruno@clisp.org>
63421
63422         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63423         one argument, so that the code will be portable to Autoconf 2.60.
63424         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63425         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63426         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63427
63428 2006-04-19  Derek Price  <derek@ximbiot.com>
63429             Eric Blake  <ebb9@byu.net>
63430
63431         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63432         rather than "/full/path.h".  Update comment to match.  Shorten &
63433         generalize m4_translit call via AS_TR_CPP.
63434
63435 2006-04-19  Derek Price  <derek@ximbiot.com>
63436             Eric Blake  <ebb9@byu.net>
63437
63438         * lib/inttypes.h: Correct grammar in comment.
63439
63440 2006-04-18  Derek Price  <derek@ximbiot.com>
63441             Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         * modules/inttypes: New file.
63444         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63445
63446 2006-04-18  Derek Price  <derek@ximbiot.com>
63447             Paul Eggert  <eggert@cs.ucla.edu>
63448
63449         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63450         New files.
63451
63452 2006-04-18  Derek Price  <derek@ximbiot.com>
63453             Paul Eggert  <eggert@cs.ucla.edu>
63454
63455         * lib/inttypes.h: New file.
63456         * lib/strtoimax.c: Assume <inttypes.h>.
63457
63458 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63461         isn't mounted.  Problem reported by Kir Kolyshkin.
63462
63463 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63466         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63467         Derek R. Price.
63468         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63469         implementation.
63470
63471 2006-04-12  Eric Blake  <ebb9@byu.net>
63472
63473         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63474         is now done automatically by the corresponding Autoconf macro.
63475
63476 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63477
63478         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63479         time_r.h.
63480
63481 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63482
63483         Merge regex changes from libc, removing some of our
63484         POSIX-conformance changes that were rejected and redoing them in a
63485         less-intrusive way.
63486
63487         * lib/regcomp.c (re_compile_internal, init_dfa):
63488         Length arg is now size_t, not Idx.  All uses changed.
63489         (peek_token): Forward decl now says internal_function.
63490         (__re_error_msgid, __re_error_msgid_idx):
63491         Now static rather than extern with attribute_hidden.
63492         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63493         For some reason libc prefers K&R style defns for external functions.
63494         (regerror) [!defined _LIBC]: Likewise.
63495         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63496         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63497         (build_range_exp, build_collating_symbol):
63498         Use K&R-style defn.
63499         (re_compile_fastmap): Use '\0' to memset, not 0.
63500         (utf8_sb_map): Make the calculations more obvious.
63501         (init_dfa, parse_bracket_exp, build_charclass_op):
63502         Call calloc and cast result, as glibc does.
63503         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63504         (build_range_exp, build_collating_symbol):
63505         Now internal functions.
63506
63507         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63508
63509         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63510         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63511         Don't depend on VMS; depend on __VMS instead, for POSIX
63512         namespace cleanness.
63513         (regoff_t): Define to ssize_t, not long int.
63514
63515         Remove the REG_ macros named below.  Instead, make the old names
63516         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63517         __USE_GNU_REGEX.
63518         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63519         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63520         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63521         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63522         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63523         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63524         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63525         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63526         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63527         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63528         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63529         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63530         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63531         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63532         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63533         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63534         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63535         (REG_NREGS):
63536         Remove.  All uses replaced by the old RE_* names.
63537         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63538         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63539         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63540         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63541         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63542         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63543         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63544         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63545         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63546         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63547         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63548         Don't bother having these macros be independent of each others'
63549         values, since they no longer exist in the POSIX name space.
63550
63551         Rename the following member names back to their old names,
63552         unless !__USE_GNU_REGEX.  All uses changed back.
63553         (buffer): Renamed from re_buffer.
63554         (allocated): Renamed from re_allocated.
63555         (used): Renamed from re_used.
63556         (syntax): Renamed from re_syntax.
63557         (fastmap): Renamed from re_fastmap.
63558         (translate): Renamed from re_translate.
63559         (can_be_null): Renamed from re_can_be_null.
63560         (regs_allocated): Renamed from re_regs_allocated.
63561         (fastmap_accurate): Renamed from re_fastmap_accurate.
63562         (no_sub): Renamed from re_no_sub.
63563         (not_bol): Renamed from re_not_bol.
63564         (not_eol): Renamed from re_not_eol.
63565         (newline_anchor): Renamed from re_newline_anchor.
63566         (num_regs): Renamed from rm_num_regs.
63567         (start): Renamed from rm_start.
63568         (end): Renamed from rm_end.
63569
63570         (free_state): Move up a bit.
63571
63572         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63573         #define to be empty.
63574         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63575         when that is what is intended.
63576         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63577         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63578         (MAX): New macro.
63579         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63580         All uses changed back to re_malloc, etc.  It's now the caller's
63581         responsibility to check for overflow; all callers changed.
63582         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63583         (re_x2nrealloc): Remove.
63584         (free_state): Remove decl.
63585
63586         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63587         (re_set_registers, re_exec):
63588         Use K&R-style defn.
63589
63590         2006-01-31  Roland McGrath  <roland@redhat.com>
63591
63592         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63593         Reported by Mike Frysinger <vapier@gentoo.org>.
63594
63595         2006-01-15  Andreas Jaeger  <aj@suse.de>
63596
63597         [BZ #1950]
63598         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63599         build_wcs_upper_buffer change.
63600         (build_wcs_upper_buffer): Change return type.
63601
63602         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63603
63604         * lib/regex_internal.h: Include <stdint.h> if available.
63605
63606         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63607
63608         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63609
63610         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63611
63612         * lib/regcomp.c: Adjust for changed secondary hash function.
63613
63614         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63615
63616         * lib/regex.h: Pretty printing.
63617         Clean up namespace a bit.
63618
63619         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63620
63621         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63622         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63623
63624         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63625                     Ulrich Drepper  <drepper@redhat.com>
63626
63627         [BZ #1302]
63628         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63629         changed.
63630         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63631
63632         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63633
63634         [BZ #281]
63635         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63636         * lib/regcomp.c: Remove unnecessary uses of
63637         unsigned RE_TRANSLATE_TYPE.
63638         * lib/regex_internal.h: Likewise.
63639         * lib/regex_internal.c: Likewise.
63640         * lib/regexec.c: Likewise.
63641         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63642
63643         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63644
63645         * lib/regexec.c (find_recover_state): Remove unnecessary
63646         initialization.
63647         (transit_state_bkref): Make DFA a const pointer.
63648         (get_subexp): Likewise.
63649         (check_arrival): Likewise.
63650         (update_cur_sifted_state): Likewise.
63651         (re_search_internal): Likewise.
63652         (prune_impossible_nodes): Likewise.
63653         (acquire_init_state_context): Likewise.
63654         (proceed_next_node): Likewise.
63655         (set_regs): Likewise.
63656         (free_fail_stack_return): Likewise.
63657         (check_arrival_expand_ecl): Mark DFA parameter as const.
63658         (check_arrival_expand_ecl_sub): Likewise.
63659         (check_subexp_limits): Likewise.
63660         (sub_epsilon_src_nodes):  Likewise.
63661         (add_epsilon_src_nodes):  Likewise.
63662         (merge_state_array): Likewise.
63663         (update_regs): Likewise.
63664         (build_trtable): Likewise.
63665         (sift_states_backward): Mark MCTX parameter as const.
63666         (build_sifted_states): Likewise.
63667         (update_cur_sifted_state): Likewise.
63668         (sift_states_mkref): Likewise.
63669         (check_arrival_expand_ecl): Mark eclosure as const.
63670         (check_dst_limits_calc_pos_1): Likewise.
63671         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63672         pointer.
63673
63674         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63675
63676         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63677         (transit_state_sb): Likewise.
63678         (transit_state_mb): Likewise.
63679         (sift_states_iter_mb): Likewise.
63680         (check_arrival_add_next_nodes): Likewise.
63681         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63682         [_LIBC] (re_search_2_stub): Use mempcpy.
63683
63684         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63685         mbrtowc for very simple UTF-8 case.
63686
63687         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63688         a pointer-to-const.
63689         (re_acquire_state_context): Likewise.
63690         * lib/regex_internal.h: Adjust prototypes.
63691
63692         * lib/regex.c: Prevent using C++ compilers.
63693
63694         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63695         (re_acquire_state_context): Likewise.
63696
63697 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         * modules/regex (Depends-on): Add ssize_t.
63700
63701 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63702
63703         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63704         translation table.
63705
63706 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63709
63710 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63711             Bruno Haible  <bruno@clisp.org>
63712
63713         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63714         <sys/types.h> and <inttypes.h>.
63715
63716 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63717
63718         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63719         `__error_t_defined', so argp.h will not typedef the former.
63720
63721 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63722
63723         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63724         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63725         glibc names.  Even if glibc is changed to conform to POSIX, the
63726         traditional names will be available anyway, since regex depends on
63727         the extensions module.  Also, fix a longstanding typo in the
63728         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63729         reported by Emanuele Giaquinta.  Also, change sense of cached
63730         variable, so that the message makes sense.
63731
63732 2006-03-24  Simon Josefsson  <jas@extundo.com>
63733
63734         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63735         including some doc fixes.
63736         (base64_encode_alloc): Fix +1 bug on allocation failures.
63737
63738 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63739
63740         * lib/base64.c (base64_encode): Do not read past end of array with
63741         unsanitized input on systems with CHAR_BIT > 8.
63742
63743 2006-03-24  Eric Blake  <ebb9@byu.net>
63744
63745         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63746
63747 2006-03-22  Karl Berry  <karl@gnu.org>
63748
63749         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63750         * config/srclistvars.sh (COREUTILS): new var.
63751
63752 2006-03-17  Jim Meyering  <jim@meyering.net>
63753
63754         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63755         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63756
63757 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63758
63759         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63760         no longer needs it.  Instead, check that regoff_t is as least
63761         as wide as ptrdiff_t.
63762
63763         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63764         so that our regex.h stays compatible with the installed regex.
63765         This is helpful for installers who configure --without-included-regex.
63766         Problem reported by Emanuele Giaquinta.
63767
63768 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63769
63770         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63771         Typedef to long int, not to off_, as POSIX will likely change
63772         in that direction.
63773
63774 2006-03-15  Eric Blake  <ebb9@byu.net>
63775
63776         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63777
63778 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63779
63780         * lib/argp-help.c (validate_uparams): Fix typo
63781         * lib/argp-parse.c (argp_default_options): Consistently begin help
63782         messages with a lowercase letter.
63783
63784 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63787         overrun buffers and shouldn't be used (much as gets shouldn't be
63788         used).
63789         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63790
63791 2006-03-08  Simon Josefsson  <jas@extundo.com>
63792
63793         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63794         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63795
63796 2006-03-08  Simon Josefsson  <jas@extundo.com>
63797
63798         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63799         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63800
63801 2006-03-08  Simon Josefsson  <jas@extundo.com>
63802
63803         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63804         signal that configure disabled the device.
63805
63806 2006-03-08  Simon Josefsson  <jas@extundo.com>
63807
63808         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63809         languages.
63810
63811 2006-03-07  Simon Josefsson  <jas@extundo.com>
63812
63813         * modules/getopt (Depends-on): Add unistd.
63814
63815         * modules/unistd: New file.
63816
63817 2006-03-07  Simon Josefsson  <jas@extundo.com>
63818
63819         * modules/gc-random: New file.
63820
63821 2006-03-07  Simon Josefsson  <jas@extundo.com>
63822
63823         * m4/unistd_h.m4: New file.
63824
63825 2006-03-07  Simon Josefsson  <jas@extundo.com>
63826
63827         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63828         test to be side-effect free by storing the result in the cache
63829         variable gl_cv_lib_readline, and moving the assignment of
63830         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63831         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63832
63833 2006-03-07  Simon Josefsson  <jas@extundo.com>
63834
63835         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63836         error on missing devices (the functions will return an error).
63837
63838         * m4/gc.m4: Move random stuff to gc-random.m4
63839
63840 2006-03-07  Simon Josefsson  <jas@extundo.com>
63841
63842         * lib/unistd_.h: New file.
63843
63844 2006-03-07  Simon Josefsson  <jas@extundo.com>
63845
63846         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63847
63848 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63849
63850         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63851         Problem reported by Juan Manuel Guerrero.
63852
63853 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63854
63855         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63856         the unistd module.
63857         * lib/getlogin_r.c: Likewise.
63858         * lib/getlogin_r.h: Likewise.
63859         * lib/glob.c: Likewise.
63860         * lib/pagealign_alloc.c: Likewise.
63861         * lib/unistd_.h: Remove; no longer needed.
63862
63863 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63864
63865         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63866         Add unistd.
63867         * modules/c-stack (Depends-on): Add unistd.
63868         * modules/getlogin_r: Likewise.
63869         * modules/glob: Likewise.
63870         * modules/pagealign_alloc: Likewise.
63871         * modules/unistd (Files): Remove lib/unistd_.h.
63872         (EXTRA_DIST): Remove.
63873         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63874         need unistd_.h.
63875         (MOSTLYCLEANFILES): Remove unistd.h-t.
63876
63877 2006-03-03  Simon Josefsson  <jas@extundo.com>
63878
63879         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63880
63881 2006-03-03  Simon Josefsson  <jas@extundo.com>
63882
63883         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63884         libidn and bison.
63885
63886 2006-03-03  Simon Josefsson  <jas@extundo.com>
63887
63888         * build-aux/maint.mk: Add indent target.
63889
63890 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63891
63892         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63893         our replacement poll.h in any case, to avoid a differing
63894         declaration from a system header.  Seen on AIX.
63895
63896 2006-03-01  Simon Josefsson  <jas@extundo.com>
63897
63898         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63899         <kasal@ucw.cz>.
63900
63901 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         * modules/gettime (Depends-on): Add extensions module.
63904         * modules/nanosleep (Depends-on): Likewise.
63905         * modules/settime (Depends-on): Likewise.
63906
63907 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63908
63909         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63910         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63911         pedantically.
63912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63913         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63914
63915         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63916         not "==".  Reported by Ralf Wildenhues.
63917
63918 2006-03-01  Karl Berry  <karl@gnu.org>
63919
63920         * doc/Copyright/request-*: new files, synced from gnuorg.
63921
63922 2006-03-01  Karl Berry  <karl@gnu.org>
63923
63924         * config/srclist.txt (Copyright/*): new entries.
63925
63926 2006-02-28  Simon Josefsson  <jas@extundo.com>
63927
63928         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63929
63930 2006-02-27  Simon Josefsson  <jas@extundo.com>
63931
63932         * lib/base64.h: Indent #define's.  From Jim Meyering
63933         <jim@meyering.net>.
63934
63935 2006-02-27  Jim Meyering  <jim@meyering.net>
63936
63937         Revert the change of 2006-02-24, so these files can continue
63938         to be sync'd from gettext.
63939         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63940         of `config.h'.
63941
63942 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63943
63944         * modules/intprops: New file.
63945         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63946         Add intprops.
63947         * modules/getloadavg (Files): Remove lib/intprops.h.
63948         (Depends-on): Add intprops.
63949         * modules/human: Likewise.
63950         * modules/inttostr: Likewise.
63951         * modules/openat: Likewise.
63952         * modules/sig2str: Likewise.
63953         * modules/userspec: Likewise.
63954         * modules/utimecmp: Likewise.
63955         * modules/xnanosleep: Likewise.
63956         * modules/xstrtol: Likewise.
63957
63958 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63959
63960         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63961         * modules/lock-tests (TESTS): Use $(EXEEXT).
63962         * modules/tls-tests: Likewise.
63963         * modules/argp-tests: Likewise.
63964         (check_PROGRAMS): New var, replacing...
63965         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63966
63967 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63968
63969         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63970         `config.h'.
63971
63972 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63973
63974         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63975
63976 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63977
63978         Sync from coreutils.
63979         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63980         gl_CHDIR_SAFER.
63981
63982 2006-02-22  Jim Meyering  <jim@meyering.net>
63983
63984         Sync from coreutils.
63985         * m4/chdir-safer.m4: New file.
63986
63987 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63988
63989         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63990         AT_FDCWD exceeds INT_MAX.
63991         * lib/openat.h (AT_FDCWD): Likewise.
63992
63993 2006-02-17  Eric Blake  <address@hidden>
63994
63995         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63996
63997 2006-02-16  Simon Josefsson  <jas@extundo.com>
63998
63999         * modules/getaddrinfo (Depends-on): Add sys_socket.
64000
64001 2006-02-15  Simon Josefsson  <jas@extundo.com>
64002
64003         * build-aux/maint.mk: Add dsyntax-check rule.
64004
64005 2006-02-15  Eric Blake  <ebb9@byu.net>
64006
64007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64008         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64009         'present but cannot compile' warnings on cygwin.
64010         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64011         use ws2tcpip.h if sys/socket.h works.
64012         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64013         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64014
64015 2006-02-14  Simon Josefsson  <jas@extundo.com>
64016
64017         * modules/maintainer-makefile (Files): Rename.
64018
64019         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64020         and (the local) Makefile.cfg to maint-cfg.mk.
64021
64022         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64023         to the latter.
64024
64025         * modules/maintainer-makefile: New module.
64026
64027         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64028         severaly stripped to make it possible to build it up from scratch
64029         with reliable tests.
64030
64031         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64032         fixes to permit overriding the default actions when configure and
64033         makefile are not available.
64034
64035 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64036
64037         Sync from coreutils.
64038         * modules/lstat (Depends-on): Don't depend on xalloc.
64039         (License): Change from GPL to LGPL, since this is now simply a
64040         replacement for a libc function.
64041
64042 2006-02-14  Jim Meyering  <jim@meyering.net>
64043
64044         Sync from coreutils.
64045
64046         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64047         failure on deficient systems, and simplify gnulib lgpl dependencies.
64048         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64049         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64050
64051         * lib/xalloc-die.c: Remove unused definition of N_.
64052
64053 2006-02-14  Jim Meyering  <jim@meyering.net>
64054
64055         Sync from coreutils.
64056         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64057         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64058         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64059         double-quote uses of that variable, to accommodate the rare case in
64060         which getmntent is available in none of the libraries checked.  This
64061         happens at least on FreeBSD 5.0.
64062
64063 2006-02-13  Simon Josefsson  <jas@extundo.com>
64064
64065         * gnulib-tool (Usage): Fix --import, from
64066         karl@freefriends.org (Karl Berry).
64067
64068 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64069
64070         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64071
64072 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64073
64074         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64075         "autoupdate" on 2005-12-12.
64076
64077 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64078
64079         * modules/closeout (Depends-on): Remove atexit.
64080
64081 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64084         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64085
64086 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64089         __EXTENSIONS__ if this causes compilation to fail.  Problem
64090         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64091         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64092
64093 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64096         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64097         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64098         All uses changed.
64099
64100 2006-01-26  Simon Josefsson  <jas@extundo.com>
64101
64102         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64103         prototype is visible on mingw32.
64104
64105         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64106         for mingw32.
64107
64108         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64109         mingw32).
64110
64111 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64112
64113         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64114         attempt to open for write; this always fails, at least on POSIX
64115         hosts.  This reinstates the 2006-01-09 change, which was
64116         inadvertently removed.
64117
64118 2006-01-26  Bruno Haible  <bruno@clisp.org>
64119
64120         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64121         Reported by Paul Eggert.
64122
64123 2006-01-26  Bruno Haible  <bruno@clisp.org>
64124             Paul Eggert  <eggert@cs.ucla.edu>
64125
64126         * lib/stdbool_.h (_Bool)
64127         [(! (defined __cplusplus || defined __BEOS__)
64128           && !defined __GNUC__
64129           && !(defined __HP_cc || defined __xlc__
64130                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64131                || defined __sgi))]:
64132         #define to signed char in these cases too; this simplifies
64133         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64134         etc., separately) and makes it more conservative.
64135
64136 2006-01-25  Simon Josefsson  <jas@extundo.com>
64137
64138         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64139         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64140         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64141
64142 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64143
64144         * lib/argp-namefrob.h: Bugfix. Remove stray #
64145
64146 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64147
64148         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64149         so that we test the test.
64150         Check for yet another HP-UX cc bug involving *bool |= bool.
64151
64152 2006-01-25  Karl Berry  <karl@gnu.org>
64153
64154         * config/srclist.txt (vasnprintf.c): sync lost.
64155
64156 2006-01-25  Jim Meyering  <jim@meyering.net>
64157
64158         Sync from the stable (b5) branch of coreutils:
64159
64160         * lib/fts.c (fts_children): Don't let close() clobber errno from
64161         failed fchdir().
64162
64163         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64164         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64165         a dangling symlink.  That can also happen at least for ELOOP.
64166         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64167         FYI, this bug predates the inclusion of fts.c in coreutils.
64168
64169         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64170         in their own block, so pre-c99 compilers don't object.
64171
64172         Avoid the double-free (first in fts_read, second in fts_close) that
64173         would occur when an `active' directory is made inaccessible (e.g.,
64174         via chmod a-x) during a traversal.
64175         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64176         before returning.  Reproduce this failure by
64177         mkdir -p a/b; cd a; chmod a-x . b
64178         Reported by Stavros Passas.
64179
64180 2006-01-25  Jim Meyering  <jim@meyering.net>
64181
64182         * lib/fileblocks.c: Remove more useless parentheses.
64183         * lib/readutmp.h: Likewise.
64184
64185 2006-01-25  Bruno Haible  <bruno@clisp.org>
64186
64187         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64188         warnings.
64189         Reported by Paul Eggert.
64190
64191 2006-01-25  Bruno Haible  <bruno@clisp.org>
64192
64193         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64194         rid of a trap command. For Solaris sh.
64195         Reported by Mark D. Baushke <mdb@gnu.org>.
64196
64197 2006-01-24  Simon Josefsson  <jas@extundo.com>
64198
64199         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64200         Bruno.
64201
64202 2006-01-24  Karl Berry  <karl@gnu.org>
64203
64204         * config/srclist.txt (argp-namefrob.h): sync lost.
64205
64206 2006-01-24  Jim Meyering  <jim@meyering.net>
64207
64208         * modules/openat (Files): Add lib/intprops.h.
64209         From Mark D. Baushke.
64210
64211 2006-01-24  Jim Meyering  <jim@meyering.net>
64212
64213         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64214         Reported by Mark D. Baushke.
64215
64216 2006-01-24  Jim Meyering  <jim@meyering.net>
64217
64218         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64219
64220 2006-01-24  Bruno Haible  <bruno@clisp.org>
64221
64222         * modules/strnlen (Maintainer): Change from glibc to all.
64223
64224 2006-01-24  Bruno Haible  <bruno@clisp.org>
64225
64226         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64227         Patch by Paul Eggert.
64228
64229 2006-01-24  Bruno Haible  <bruno@clisp.org>
64230
64231         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64232         already has it.
64233         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64234         2005-11-26.
64235
64236         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64237         'signed char' to avoid problems with the built-in _Bool type.
64238         Reported by Paul Eggert on 2005-11-26.
64239
64240 2006-01-24  Bruno Haible  <bruno@clisp.org>
64241
64242         * gnulib-tool (func_import): Avoid constructing complicated sed
64243         expressions inside backquote.
64244         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64245
64246 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64247
64248         These changes imported from libc.
64249         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64250         test and two separate function calls.
64251         * lib/strndup.c (__strndup): Add libc_hidden_def.
64252
64253 2006-01-23  Simon Josefsson  <jas@extundo.com>
64254
64255         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64256         Remove the test_*_SOURCES variable: automake infers it by default.
64257         * modules/tls-tests: Likewise.
64258
64259 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64260
64261         Work around porting bugs reported by Dieter in
64262         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64263         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64264         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64265         Include "getopt.h" first, to check interface.
64266         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64267         !HAVE_DECL_GETENV.
64268         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64269         (__strndup): Revert to K&R-style function dfns, the glibc style.
64270         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64271         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64272         Include strnlen.h first, to get prototype properly.
64273         (strnlen): Renamed from __strnlen.
64274         Remove weak alias.
64275
64276 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64277
64278         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64279
64280 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         * config/srclist.txt: Adjust to reflect glibc reorganization.
64283         This affects only comments.
64284
64285 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64286
64287          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64288          Reported by Bruce Korb <bkorb@gnu.org>.
64289
64290 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64291
64292         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64293         to pacify gcc -Wswitch-default.
64294
64295 2006-01-22  Bruno Haible  <bruno@clisp.org>
64296
64297         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64298         temporary buffer for sprintf, take into account the precision also
64299         for 'd', 'i', 'u', 'o', 'x', 'X'.
64300
64301 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64302
64303         * modules/argp-tests: New module
64304         * tests/test-argp.c: New file
64305         * tests/test-argp-2.sh: New file
64306
64307 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64308
64309         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64310         (__argp_base_name): Removed
64311         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64312         typo.
64313         (__argp_base_name): Provide macro definition or extern declaration
64314         depending on the configuration
64315
64316 2006-01-20  Simon Josefsson  <jas@extundo.com>
64317
64318         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64319
64320 2006-01-20  Simon Josefsson  <jas@extundo.com>
64321
64322         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64323
64324 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64325
64326         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64327         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64328         Suggested by Bruno Haible.
64329
64330 2006-01-20  Karl Berry  <karl@gnu.org>
64331
64332         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64333         until changes propagate, I guess.
64334
64335 2006-01-19  Simon Josefsson  <jas@extundo.com>
64336
64337         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64338
64339 2006-01-19  Simon Josefsson  <jas@extundo.com>
64340
64341         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64342
64343 2006-01-19  Simon Josefsson  <jas@extundo.com>
64344
64345         * gnulib-tool: Set check_PROGRAMS.
64346
64347         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64348         modules/des-tests, modules/gc-arcfour-tests,
64349         modules/gc-arctwo-tests, modules/gc-des-tests,
64350         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64351         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64352         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64353         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64354         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64355         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64356         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64357         test_*_SOURCES.
64358
64359 2006-01-18  Simon Josefsson  <jas@extundo.com>
64360
64361         * modules/socklen (Depends-on): Depend on sys_socket.
64362
64363 2006-01-18  Simon Josefsson  <jas@extundo.com>
64364
64365         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64366         modules/des-tests, modules/gc-arcfour-tests,
64367         modules/gc-arctwo-tests, modules/gc-des-tests,
64368         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64369         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64370         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64371         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64372         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64373         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64374         $(EXEEXT) to automake TESTS variable, for mingw32.
64375
64376 2006-01-17  Simon Josefsson  <jas@extundo.com>
64377
64378         * modules/socklen (Include): Need sys/socket.h.
64379
64380 2006-01-17  Bruno Haible  <bruno@clisp.org>
64381
64382         * modules/ssize_t (Include): Add <sys/types.h>.
64383
64384 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64385
64386         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64387         it's not portable and it doesn't work with cross-compiles.
64388         Problem reported by Bruno Haible.  Fix missing-$ typo in
64389         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64390         -zignore from being used with Sun's C compiler.
64391
64392 2006-01-12  Simon Josefsson  <jas@extundo.com>
64393
64394         * lib/base64.c: Fix warning, reported by Bruno Haible
64395         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64396
64397 2006-01-12  Bruno Haible  <bruno@clisp.org>
64398
64399         * modules/ldd: New file.
64400         * build-aux/ldd.sh.in: New file.
64401         * MODULES.html.sh (Support for building libraries and executables): Add
64402         ldd.
64403
64404 2006-01-12  Bruno Haible  <bruno@clisp.org>
64405
64406         * m4/ldd.m4: New file.
64407
64408 2006-01-12  Bruno Haible  <bruno@clisp.org>
64409
64410         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64411         endless loop while replacing $auxdir with build-aux.
64412
64413 2006-01-11  Simon Josefsson  <jas@extundo.com>
64414
64415         * lib/stdint_.h (SIZE_MAX): Add missing (.
64416
64417 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         Sync from coreutils.
64420         * lib/md5.c: Fix commentary typos.
64421         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64422         * lib/md5.h (__attribute__): Remove; unused.
64423         * lib/sha1.c: Fix commentary to match md5 better.
64424         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64425         so that we don't need to worry about alignment.  All uses changed.
64426         This merges the 2005-10-28 md5 change into sha1.
64427
64428 2006-01-11  Jim Meyering  <jim@meyering.net>
64429
64430         Sync from coreutils.
64431         * lib/md5.c (OP): Fix spacing.
64432
64433 2006-01-11  Bruno Haible  <bruno@clisp.org>
64434
64435         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64436         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64437         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64438
64439 2006-01-11  Bruno Haible  <bruno@clisp.org>
64440
64441         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64442         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64443         the "early" section as well.
64444
64445 2006-01-11  Bruno Haible  <bruno@clisp.org>
64446
64447         Avoid "ar: no archive members specified" error on MacOS X.
64448         * gnulib-tool (func_modules_add_dummy): New function.
64449         (func_import, func_create_testdir): Invoke it.
64450
64451 2006-01-11  Bruno Haible  <bruno@clisp.org>
64452
64453         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64454         with $auxdir in AC_CONFIG_FILES statements.
64455
64456 2006-01-11  Bruno Haible  <bruno@clisp.org>
64457
64458         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64459         Initialize also noinst_HEADERS to empty.
64460
64461 2006-01-11  Bruno Haible  <bruno@clisp.org>
64462
64463         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64464         variables.
64465         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64466         autoreconf.
64467
64468 2006-01-11  Bruno Haible  <bruno@clisp.org>
64469
64470         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64471         overridable by the user.
64472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64473
64474 2006-01-10  Simon Josefsson  <jas@extundo.com>
64475
64476         * modules/sys_socket: New file.
64477
64478 2006-01-10  Simon Josefsson  <jas@extundo.com>
64479
64480         * m4/sys_socket_h.m4: New file.
64481
64482 2006-01-10  Simon Josefsson  <jas@extundo.com>
64483
64484         * lib/socket_.h: New file.
64485
64486 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64487
64488         * modules/readutmp (Maintainer): Add myself.
64489
64490 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64491
64492         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64493         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64494         People who are still concerned with buggy memcmp implementations
64495         can invoke gl_FUNC_MEMCMP themselves.
64496
64497 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64498
64499         * lib/regex_internal.h (BITSET_WORD_BITS):
64500         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64501         preprocessor mishandles large unsigned values as if they were signed.
64502         Problem reported by Claudio Fontana in
64503         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64504
64505 2006-01-10  Jim Meyering  <jim@meyering.net>
64506
64507         Avoid the double-free (first in fts_read, second in fts_close) that
64508         would occur when an `active' directory is made inaccessible (e.g.,
64509         via chmod a-x) during a traversal.
64510         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64511         before returning.  Reproduce this failure by
64512         mkdir -p a/b; cd a; chmod a-x . b
64513         Reported by Stavros Passas.
64514
64515         Sync from coreutils.
64516         * lib/sha1.c: Tweak grammar in a comment.
64517
64518 2006-01-10  Jim Meyering  <jim@meyering.net>
64519
64520         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64521         Patch by Joerg Sonnenberger.
64522
64523 2006-01-10  Bruno Haible  <bruno@clisp.org>
64524
64525         * modules/readutmp: Depend on module free.
64526         * modules/strtok_r: Depend on module restrict.
64527
64528 2006-01-10  Bruno Haible  <bruno@clisp.org>
64529
64530         * modules/gettext (configure.ac): Add an invocation of
64531         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64532
64533 2006-01-10  Bruno Haible  <bruno@clisp.org>
64534
64535         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64536         Reported by Werner Lemberg <wl@gnu.org>.
64537
64538 2006-01-10  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/localcharset.c: Update from GNU gettext.
64541
64542 2006-01-10  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/argp.h (__const): Remove macro. Use const instead.
64545         * lib/argp-fmtstream.h (__const): Likewise.
64546         * lib/glob_.h (__const): Remove macro.
64547         * lib/glob-libc.h: Use const instead of __const.
64548
64549 2006-01-10  Bruno Haible  <bruno@clisp.org>
64550
64551         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64552         variable.
64553         Needed to avoid an automake error regarding the 'gettext' module.
64554
64555 2006-01-09  Simon Josefsson  <jas@extundo.com>
64556
64557         * modules/inet_ntop (Depends-on): Add restrict.
64558
64559 2006-01-09  Simon Josefsson  <jas@extundo.com>
64560
64561         * modules/gc-rijndael-tests (License): Put under LGPL.
64562
64563         * modules/gc-des-tests (License): Likewise.
64564
64565         * modules/gc-arcfour-tests (License): Likewise.
64566
64567         * modules/gc-arctwo-tests (License): Likewise.
64568
64569         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64570
64571         * modules/gc-hmac-sha1-tests (Files): Likewise.
64572
64573         * modules/gc-hmac-md5-tests (License): Likewise.
64574
64575         * modules/gc-sha1-tests (License): Likewise.
64576
64577         * modules/gc-md5-tests (License): Likewise.
64578
64579         * modules/gc-md4-tests (License): Likewise.
64580
64581         * modules/gc-md2-tests (License): Likewise.
64582
64583         * modules/gc-tests (License): Likewise.
64584
64585         * modules/des-tests (License): Likewise.
64586
64587         * modules/md4-tests (License): Likewise.
64588
64589         * modules/md2-tests (License): Likewise.
64590
64591 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64592
64593         Sync from coreutils:
64594
64595         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64596         * modules/lib-ignore: New file.
64597         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64598         chdir-safer.m4, lchmod.m4.
64599         * modules/openat: Add mkdirat.c, openat-priv.h.
64600
64601 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64602
64603         Sync from coreutils.
64604         * m4/lib-ignore.m4: New file.
64605         * m4/lchmod.m4: New file.
64606
64607 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64608
64609         Sync from coreutils.
64610         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64611         for write access: POSIX says that must fail.
64612         * lib/fts.c (diropen): Likewise.
64613         * lib/save-cwd.c (save_cwd): Likewise.
64614         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64615         well, for minor improvements on hosts that lack O_DIRECTORY.
64616         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64617         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64618         Fall back on chown if open failed with EACCES.
64619
64620         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64621         Report an error at compile-time if only a 1-second nominal clock
64622         resolution is found.
64623
64624         * lib/lchmod.h: New file.
64625         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64626         (make_dir_parents): Use lchown rather than chown, and
64627         lchmod rather than chmod.
64628
64629         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64630         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64631         "proc" reported by n0dalus.
64632
64633         * lib/mountlist.c: Include <limits.h>.
64634         (dev_from_mount_options)
64635         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64636         New function.  It no longer assumes "dev=" has the System V meaning
64637         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64638         (read_file_system_list)
64639         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64640         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64641         dev= in that case.
64642
64643         * lib/posixtm.h (PDS_PRE_2000): New macro.
64644         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64645         allow_century.  All usages changed.  Reject dates outside the range
64646         1969-1999 if PDS_PRE_2000 is used.
64647
64648 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64649
64650         Sync from coreutils.
64651         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64652         (Time of day items): Mention the possibility of leap seconds.
64653         Problem reported by Dr. David Alan Gilbert.
64654
64655 2006-01-09  Jim Meyering  <jim@meyering.net>
64656
64657         Sync from coreutils.
64658
64659         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64660
64661         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64662
64663         * lib/modechange.c (mode_compile): Reject an invalid mode string
64664         that starts with an octal digit.  From Andreas Gruenbacher.
64665
64666         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64667         and dup to open_safer and dup_safer, respectively.
64668         (openat_permissive): Fix typo in comment.
64669
64670         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64671         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64672         (_): Remove; no longer needed.
64673         (openat): Renamed from rpl_openat; no need for rpl_openat
64674         since openat.h renames openat for us.
64675         Replace most of the body with a call to openat_permissive,
64676         to avoid duplicate code.
64677         Port to (probably hypothetical) environments were mode_t is
64678         wider than int.
64679         (openat_permissive): Require mode arg, so that we can check
64680         types better.  Put it just after flags.  Change cwd failure
64681         indicator from pointer-to-bool to pointer-to-errno-value.
64682         All callers changed.
64683         Invoke openat_save_fail and/or openat_restore_fail if
64684         cwd_errno is null, so that openat can call us.
64685         (openat_permissive, fdopendir, fstatat, unlinkat):
64686         Simplify errno handling to avoid some duplicate code,
64687         as it's OK to set errno on success.
64688         * lib/openat.h: Revamp code so that function macros depend on
64689         __OPENAT_PREFIX only, not also on AT_FDCWD.
64690         (openat_ro): Remove.  Caller changed to use openat_permissive.
64691         (openat_permissive): Now a macro, if not a function.
64692         (openat_restore_fail, openat_save_fail): Now always functions,
64693         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64694
64695         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64696         and openat.c.
64697         * lib/mkdirat.c: Include openat-priv.h.
64698         Remove definitions of macros defined therein.
64699         * lib/openat.c: Likewise.
64700
64701         * lib/mkdirat.c (mkdirat): New file and function.
64702         * lib/openat.h (mkdirat): Declare.
64703
64704         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64705
64706         * lib/openat.h (openat_permissive): Declare.
64707         (openat_ro): Define.
64708
64709         * lib/openat.c (EXPECTED_ERRNO): New macro.
64710         (openat_permissive): New function -- used in remove.c rewrite.
64711         (all functions): Set errno just before returning, only if there
64712         was an actual failure.
64713         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64714
64715         Emulate openat-family functions using Linux's procfs, if possible.
64716         Idea and some code based on Ulrich Drepper's glibc changes.
64717
64718         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64719         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64720         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64721         before falling back on save_cwd and restore_cwd.
64722         (fdopendir, fstatat, unlinkat): Likewise.
64723
64724         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64725         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64726
64727         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64728         as second argument to va_arg.  Otherwise, some versions of gcc
64729         warn that `if this code is reached, the program will abort'.
64730
64731 2006-01-09  Jim Meyering  <jim@meyering.net>
64732
64733         Sync from coreutils.
64734         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64735         Require openat-priv.h.
64736
64737 2006-01-09  Bruno Haible  <bruno@clisp.org>
64738
64739         * modules/strnlen (Include): Use strnlen.h.
64740
64741 2006-01-09  Bruno Haible  <bruno@clisp.org>
64742
64743         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64744
64745 2006-01-09  Bruno Haible  <bruno@clisp.org>
64746
64747         * lib/sysexit_.h (EX_OK): New macro.
64748         Suggested by Martin Lambers <marlam@marlam.de>.
64749
64750 2006-01-09  Bruno Haible  <bruno@clisp.org>
64751
64752         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64753         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64754
64755 2006-01-09  Bruno Haible  <bruno@clisp.org>
64756
64757         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64758         numbers.
64759
64760 2006-01-09  Bruno Haible  <bruno@clisp.org>
64761
64762         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64763         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64764         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64765         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64766
64767 2006-01-09  Bruno Haible  <bruno@clisp.org>
64768
64769         * build-aux/javacomp.sh.in: New file, moved from lib/.
64770         * modules/javacomp-script (Files): Update.
64771         (configure.ac): Add AC_CONFIG_FILES invocation.
64772         (EXTRA_DIST): Remove variable.
64773
64774         * build-aux/javaexec.sh.in: New file, moved from lib/.
64775         * modules/javaexec (Files): Update.
64776         (configure.ac): Add AC_CONFIG_FILES invocation.
64777         (EXTRA_DIST): Remove javaexec.sh.in.
64778
64779         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64780         * modules/csharpcomp-script (Files): Update.
64781         (configure.ac): Add AC_CONFIG_FILES invocation.
64782         (EXTRA_DIST): Remove variable.
64783
64784         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64785         * modules/csharpexec (Files): Update.
64786         (configure.ac): Add AC_CONFIG_FILES invocation.
64787         (EXTRA_DIST): Remove csharpexec.sh.in.
64788
64789 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64790
64791         Sync from coreutils.
64792
64793         Add POSIX ACL support
64794         * lib/acl.h (copy_acl, set_acl): Add declarations.
64795         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64796         systems other than Linux.
64797         (chmod_or_fchmod): New function: use fchmod when possible,
64798         and chmod otherwise.
64799         (file_has_acl): Add a POSIX ACL implementation, with a
64800         Linux-specific subcase.
64801         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64802         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64803         acls are unsupported.
64804         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64805         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64806         are unsupported.
64807
64808 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64809
64810         Sync from coreutils.
64811         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64812
64813 2006-01-07  Bruno Haible  <bruno@clisp.org>
64814
64815         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64816         gl_EARLY.
64817
64818 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64819
64820         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64821         Problem reported for Mingw by Mark Junker.
64822
64823 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64824
64825         * README: Gnulib normally doesn't generate a tarball.
64826
64827 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64830         long int, not int, for nanosecond counts, so that people who are
64831         used to POSIX struct timespec won't be surprised.  Reported by Jim
64832         Meyering.
64833
64834 2005-12-28  Bruno Haible  <bruno@clisp.org>
64835
64836         * build-aux/config.rpath: Update from GNU gettext.
64837
64838 2005-12-16  Jim Meyering  <jim@meyering.net>
64839
64840         * modules/fprintftime: New module.
64841         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64842
64843 2005-12-16  Jim Meyering  <jim@meyering.net>
64844
64845         * m4/fprintftime.m4: New file.
64846
64847 2005-12-16  Jim Meyering  <jim@meyering.net>
64848
64849         * lib/fprintftime.c, lib/fprintftime.h: New files.
64850
64851 2005-12-15  Simon Josefsson  <jas@extundo.com>
64852
64853         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64854         new m4/socklen.m4.
64855
64856 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64857
64858         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64859         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64860
64861 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64862
64863         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64864         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64865         struct uparams is valid. Fall back to the default values if it is
64866         not.
64867
64868 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64869
64870         * modules/argp (Files): Add argp-pin.c
64871         (Depends-on): dirname
64872         (lib_SOURCES): Add argp-pin.c
64873
64874 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64875
64876         * m4/argp.m4:  Check if program_invocation_name and
64877         program_invocation_short_name are declared and define appropriate
64878         macros if they are not.
64879
64880 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64881
64882         * lib/argp-help.c (__argp_base_name): New function
64883         (__argp_short_program_name): Rewrite using __argp_base_name
64884         * lib/argp-namefrob.h: Define program_invocation_name and
64885         program_invocation_short_name if requested
64886         (__argp_base_name): Add prototype
64887         * lib/argp-parse.c (argp_def): Use gettext wrappers
64888         (argp_default_parser): Use __argp_base_name
64889         * lib/argp-pin.c: New file. Defines program_invocation_name and
64890         program_invocation_short_name on systems that lack them.
64891
64892 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64895         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64896         porting problem reported by Georg Schwarz in
64897         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64898
64899 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64900
64901         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64902         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64903         porting problem reported by Georg Schwarz in
64904         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64905
64906 2005-12-05  Bruno Haible  <bruno@clisp.org>
64907
64908         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64909         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64910         Reported by Mark Junker <mjscod@gmx.de>.
64911
64912 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64913
64914         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64915         Use implementation from Albert Chin, with some
64916         comments/corrections by Stepan Kasal and myself.
64917
64918 2005-12-02  Bruno Haible  <bruno@clisp.org>
64919
64920         * gnulib-tool (func_import): Accept GPLed build tool modules when
64921         --lgpl is given.
64922         * modules/csharpcomp-script: New file.
64923         * modules/csharpcomp: Depend on it.
64924         * modules/javacomp-script: New file.
64925         * modules/javacomp: Depend on it.
64926         Suggested by Simon Josefsson.
64927
64928 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64931         statement, to work around an HP-UX 10.20 compiler bug reported by
64932         Peter O'Gorman.
64933
64934 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64935
64936         * modules/savedir (Depends-on): Add openat.
64937
64938 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64939
64940         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64941         (uintmax_t) [defined uintmax_t]: Do not declare.
64942         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64943         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64944         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64945         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64946         sake of portability to weird hosts that C allows (though we don't
64947         know of any practical examples).
64948
64949         * lib/savedir.h (fdsavedir): New decl.
64950         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64951         contains most of the former guts of savedir.
64952         (savedir): Use savedirstream.
64953         Include "openat.h".
64954
64955 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64956
64957         * modules/obstack (Files): Add m4/ulonglong.m4.
64958         Problem reported by Davide Angelocola.
64959
64960 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64961
64962         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64963         coreutils no longer futzes with rounding modes.
64964
64965 2005-11-14  Jim Meyering  <jim@meyering.net>
64966
64967         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64968         replacement of mkstemp.
64969
64970 2005-11-10  Simon Josefsson  <jas@extundo.com>
64971
64972         * lib/readline.c: Remove EOL.
64973
64974 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * modules/gethrxtime (Depends-on): Add gettime.
64977
64978 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64981         or gettimeofday; no longer needed.
64982
64983 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64984
64985         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64986         time business.
64987         (gethrxtime) [! (HAVE_NANOUPTIME
64988         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64989         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64990         our own approximation.
64991
64992 2005-11-08  Eric Blake  <ebb9@byu.net>
64993
64994         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64995
64996 2005-11-08  Eric Blake  <ebb9@byu.net>
64997
64998         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64999
65000 2005-11-04  Bruno Haible  <bruno@clisp.org>
65001
65002         * gnulib-tool: Implement --update mode.
65003
65004 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65005
65006         Fix porting problem reported by Theodoros V. Kalamatianos.
65007         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65008         Don't assume that futimes failing means we must fail.
65009
65010 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65011
65012         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65013         variables to suggest the intended function of the PATH_MAX check.
65014
65015 2005-10-30  Kean Johnston  <jkj@sco.com>
65016
65017         Trivial changes to support SCO systems.
65018         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65019         as PATH_MAX.
65020         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65021         where __ptr is null when no I/O is pending.
65022
65023 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65024
65025         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65026         leave errno alone.  Problem reported by Dmitry V. Levin.
65027
65028 2005-10-28  Simon Josefsson  <jas@extundo.com>
65029
65030         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65031         Test more.
65032
65033         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65034
65035         * modules/md2, modules/md2-tests: New files.
65036
65037 2005-10-28  Simon Josefsson  <jas@extundo.com>
65038
65039         * m4/inet_ntop.m4: More tests.
65040
65041         * m4/gc-md2.m4, md2.m4: New file.
65042
65043 2005-10-28  Simon Josefsson  <jas@extundo.com>
65044
65045         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65046         "restrict" keywords, as per POSIX.  Protect the function
65047         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65048         Don't use K&R prototypes.  Check the sprintf return values.
65049         Re-define EAFNOSUPPORT if not present.  Indent.
65050
65051         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65052         suggested by Bruno Haible <bruno@clisp.org>.
65053
65054         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65055
65056         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65057
65058         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65059         libgcrypt).
65060
65061         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65062
65063         * lib/md2.h, lib/md2.c: New files.
65064
65065 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65066
65067         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65068         errno alone.  Problem reported by Frederic Jolliton.
65069
65070 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65071
65072         * modules/verify (License): Change from GPL to LGPL.  This is a
65073         tiny module and there are apparently near-equivalents that are
65074         under the BSD license.
65075
65076 2005-10-24  Simon Josefsson  <jas@extundo.com>
65077
65078         * modules/sha1: Relicense to LGPL.
65079
65080 2005-10-24  Simon Josefsson  <jas@extundo.com>
65081
65082         * lib/md4.h: Shrink buffer size, now that we changed the type.
65083
65084 2005-10-23  Simon Josefsson  <jas@extundo.com>
65085
65086         * gnulib-tool (func_import): Fix --tests-base.
65087
65088 2005-10-22  Simon Josefsson  <jas@extundo.com>
65089
65090         * modules/arcfour (Depends-on): Need stdint.
65091
65092 2005-10-22  Simon Josefsson  <jas@extundo.com>
65093
65094         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65095         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65096
65097 2005-10-22  Simon Josefsson  <jas@extundo.com>
65098
65099         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65100         suggested by Bruno Haible <bruno@clisp.org>.
65101
65102 2005-10-22  Simon Josefsson  <jas@extundo.com>
65103
65104         * lib/crc.h: Include stddef.h, for size_t.
65105
65106 2005-10-22  Simon Josefsson  <jas@extundo.com>
65107
65108         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65109         arcfour_context struct (simplify test vector testing in GNU
65110         Shishi).
65111
65112 2005-10-21  Simon Josefsson  <jas@extundo.com>
65113
65114         * modules/des, modules/des-tests: New files.
65115
65116         * modules/gc-des, modules/gc-des-tests: New files.
65117
65118         * tests/test-des.c, tests/test-gc-des.c: New file.
65119
65120 2005-10-21  Simon Josefsson  <jas@extundo.com>
65121
65122         * modules/arctwo, modules/arctwo-tests: New files.
65123
65124         * tests/test-arctwo.c: New file.
65125
65126         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65127
65128         * tests/test-gc-arctwo.c: New file.
65129
65130 2005-10-21  Simon Josefsson  <jas@extundo.com>
65131
65132         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65133         Bruno Haible <bruno@clisp.org>.
65134
65135         * m4/gc-des.m4: New file.
65136
65137 2005-10-21  Simon Josefsson  <jas@extundo.com>
65138
65139         * m4/arctwo.m4: New file.
65140
65141         * m4/gc-arctwo.m4: New file.
65142
65143 2005-10-21  Simon Josefsson  <jas@extundo.com>
65144
65145         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65146         block.
65147
65148 2005-10-21  Simon Josefsson  <jas@extundo.com>
65149
65150         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65151         <bruno@clisp.org>.
65152
65153         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65154
65155         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65156         Bruno Haible <bruno@clisp.org>.
65157
65158         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65159         <bruno@clisp.org>.
65160
65161 2005-10-21  Simon Josefsson  <jas@extundo.com>
65162
65163         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65164
65165 2005-10-21  Simon Josefsson  <jas@extundo.com>
65166
65167         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65168
65169 2005-10-21  Simon Josefsson  <jas@extundo.com>
65170
65171         * lib/des.h, lib/des.c: New files.
65172
65173         * lib/gc-gnulib.c: Support DES.c
65174
65175 2005-10-21  Simon Josefsson  <jas@extundo.com>
65176
65177         * lib/arctwo.h, lib/arctwo.c: New files.
65178
65179         * lib/gc-gnulib.c: Support ARCTWO.
65180
65181 2005-10-21  Simon Josefsson  <jas@extundo.com>
65182
65183         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65184         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65185
65186 2005-10-21  Simon Josefsson  <jas@extundo.com>
65187
65188         * gnulib-tool (func_import, func_create_testdir): Define automake
65189         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65190         Makefile.am snippet),
65191         suggested by Bruno Haible <bruno@clisp.org>.
65192
65193         * modules/gc (Makefile.am): Use it.
65194
65195 2005-10-21  Bruno Haible  <bruno@clisp.org>
65196
65197         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65198         patch.
65199
65200 2005-10-19  Simon Josefsson  <jas@extundo.com>
65201
65202         * tests/test-gc-rijndael.c: New file.
65203
65204         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65205
65206 2005-10-19  Simon Josefsson  <jas@extundo.com>
65207
65208         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65209         interface too.
65210
65211 2005-10-19  Simon Josefsson  <jas@extundo.com>
65212
65213         * tests/test-gc-arcfour.c: New file.
65214
65215         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65216
65217 2005-10-19  Simon Josefsson  <jas@extundo.com>
65218
65219         * modules/gc-md4, modules/gc-md4-tests: New file.
65220
65221         * tests/test-gc-md4.c: New file.
65222
65223 2005-10-19  Simon Josefsson  <jas@extundo.com>
65224
65225         * m4/gc-md4.m4: New file.
65226
65227 2005-10-19  Simon Josefsson  <jas@extundo.com>
65228
65229         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65230         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65231         <kasal@ucw.cz>.
65232
65233 2005-10-19  Simon Josefsson  <jas@extundo.com>
65234
65235         * m4/gc-arcfour.m4: New file.
65236
65237         * m4/gc-rijndael.m4: New file.
65238
65239 2005-10-19  Simon Josefsson  <jas@extundo.com>
65240
65241         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65242
65243 2005-10-19  Simon Josefsson  <jas@extundo.com>
65244
65245         * lib/gc-gnulib.c: Support ARCFOUR.
65246
65247 2005-10-19  Simon Josefsson  <jas@extundo.com>
65248
65249         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65250         support.
65251
65252         * lib/gc.h: Add ECB enum type.
65253
65254         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65255
65256 2005-10-18  Simon Josefsson  <jas@extundo.com>
65257
65258         * tests/test-md5.c: New file.
65259
65260         * modules/md5-tests: New file.
65261
65262 2005-10-18  Simon Josefsson  <jas@extundo.com>
65263
65264         * tests/test-md4.c: New file.
65265
65266         * modules/md4, modules/md4-tests: New files.
65267
65268 2005-10-18  Simon Josefsson  <jas@extundo.com>
65269
65270         * m4/md4.m4: New file.
65271
65272 2005-10-18  Simon Josefsson  <jas@extundo.com>
65273
65274         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65275
65276 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65277
65278         * gnulib-tool (func_create_testdir): Omit the second check whether
65279         BUILT_SOURCES in nonempty.
65280
65281 2005-10-17  Simon Josefsson  <jas@extundo.com>
65282
65283         * tests/test-rijndael.c: New file.
65284
65285 2005-10-17  Simon Josefsson  <jas@extundo.com>
65286
65287         * modules/sha1: Depend on stdint instead of md5.
65288
65289         * modules/md5: Depend on stdint, remove uint32_t.
65290
65291 2005-10-17  Simon Josefsson  <jas@extundo.com>
65292
65293         * modules/gc-sha1-tests: New file.
65294
65295         * tests/test-gc-sha1.c: New file.
65296
65297 2005-10-17  Simon Josefsson  <jas@extundo.com>
65298
65299         * m4/md5.m4: Remove call to uint32_t.m4.
65300
65301 2005-10-17  Simon Josefsson  <jas@extundo.com>
65302
65303         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65304
65305         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65306         md5.h.
65307
65308         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65309
65310         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65311
65312 2005-10-17  Simon Josefsson  <jas@extundo.com>
65313
65314         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65315
65316 2005-10-17  Simon Josefsson  <jas@extundo.com>
65317
65318         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65319
65320 2005-10-17  Simon Josefsson  <jas@extundo.com>
65321
65322         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65323
65324         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65325
65326 2005-10-17  Bruno Haible  <bruno@clisp.org>
65327
65328         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65329         that it can also be used in a test.
65330
65331 2005-10-16  Bruno Haible  <bruno@clisp.org>
65332
65333         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65334         TESTS_ENVIRONMENT, so that individual tests can augment it.
65335
65336         * gnulib-tool (func_create_testdir): Use an intermediate target for
65337         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65338         macros, like $(ALLOCA_H), which cannot be passed through the command
65339         line.
65340
65341 2005-10-15  Simon Josefsson  <jas@extundo.com>
65342
65343         * modules/rijndael-tests: New file.
65344
65345         * modules/rijndael: New file.
65346
65347 2005-10-15  Simon Josefsson  <jas@extundo.com>
65348
65349         * m4/rijndael.m4: New file.
65350
65351 2005-10-15  Simon Josefsson  <jas@extundo.com>
65352
65353         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65354
65355         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65356
65357 2005-10-14  Simon Josefsson  <jas@extundo.com>
65358
65359         * tests/test-arcfour.c: New file.
65360
65361         * modules/arcfour, modules/arcfour-tests: New files.
65362
65363 2005-10-14  Simon Josefsson  <jas@extundo.com>
65364
65365         * m4/arcfour.m4: New file.
65366
65367 2005-10-14  Simon Josefsson  <jas@extundo.com>
65368
65369         * lib/arcfour.h, lib/arcfour.c: New files.
65370
65371 2005-10-14  Roland McGrath  <roland@redhat.com>
65372
65373         Import from libc.  [BZ #1331]
65374         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65375         macro argument.
65376         Reported by Matej Vela <vela@debian.org>.
65377
65378 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65381         include <wchar.h>; no longer needed.
65382
65383 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65384
65385         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65386
65387 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65388         and  Ulrich Drepper  <drepper@redhat.com>
65389
65390         Import from libc.
65391         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65392         instead of inline stream orientation test and two separate
65393         function calls.  Pay no attention to USE_IN_LIBIO.
65394
65395 2005-10-13  Simon Josefsson  <jas@extundo.com>
65396
65397         * modules/gc-hmac-md5-tests: New file.
65398
65399         * tests/test-gc-hmac-sha1.c: New file.
65400
65401         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65402
65403         * modules/gc-hmac-md5-tests: New file.
65404
65405         * tests/test-gc-md5.c: New file.
65406
65407         * modules/gc-md5-tests: New file.
65408
65409 2005-10-13  Simon Josefsson  <jas@extundo.com>
65410
65411         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65412         Move memory allocation outside of loop.
65413
65414 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65417         intermediate directory is in a read-only file system.  Problem
65418         reported by Eric Blake.
65419
65420 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65421
65422         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65423
65424 2005-10-12  Simon Josefsson  <jas@extundo.com>
65425
65426         * tests/test-hmac-sha1.c: New file.
65427
65428         * modules/hmac-sha1-tests: New file.
65429
65430         * modules/hmac-sha1: New file.
65431
65432 2005-10-12  Simon Josefsson  <jas@extundo.com>
65433
65434         * modules/gc-sha1: New file.
65435
65436 2005-10-12  Simon Josefsson  <jas@extundo.com>
65437
65438         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65439
65440         * tests/test-gc-pbkdf2-sha1.c: New file.
65441
65442 2005-10-12  Simon Josefsson  <jas@extundo.com>
65443
65444         * modules/gc-md5, modules/gc-hmac-md5: New files.
65445
65446         * modules/gc (Files): Remove md5, memxor and hmac files.
65447
65448 2005-10-12  Simon Josefsson  <jas@extundo.com>
65449
65450         * m4/gc-pbkdf2-sha1.m4: New file.
65451
65452         * m4/gc-hmac-sha1.m4: New file.
65453
65454         * m4/gc-sha1: New file.
65455
65456         * m4/hmac-sha1.m4: New file.
65457
65458 2005-10-12  Simon Josefsson  <jas@extundo.com>
65459
65460         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65461
65462         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65463
65464 2005-10-12  Simon Josefsson  <jas@extundo.com>
65465
65466         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65467         suggested by Bruno Haible <bruno@clisp.org>.
65468
65469 2005-10-12  Simon Josefsson  <jas@extundo.com>
65470
65471         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65472
65473 2005-10-12  Simon Josefsson  <jas@extundo.com>
65474
65475         * lib/gc-pbkdf2-sha1.c: New file.
65476
65477         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65478
65479 2005-10-12  Simon Josefsson  <jas@extundo.com>
65480
65481         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65482
65483         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65484
65485 2005-10-12  Simon Josefsson  <jas@extundo.com>
65486
65487         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65488         GC_USE_HMAC_MD5, respectively.
65489
65490         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65491         (gc_md5): Fix typo.
65492
65493         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65494
65495         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65496
65497         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65498
65499 2005-10-12  Bruno Haible  <bruno@clisp.org>
65500
65501         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65502         Reported by Stepan Kasal <kasal@ucw.cz>.
65503
65504 2005-10-11  Simon Josefsson  <jas@extundo.com>
65505
65506         * tests/test-crc.c: New file.
65507
65508         * modules/crc, modules/crc-tests: New files.
65509
65510 2005-10-11  Simon Josefsson  <jas@extundo.com>
65511
65512         * m4/crc.m4: New file.
65513
65514 2005-10-11  Simon Josefsson  <jas@extundo.com>
65515
65516         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65517
65518         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65519
65520         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65521
65522 2005-10-11  Simon Josefsson  <jas@extundo.com>
65523
65524         * lib/crc.h, lib/crc.c: New files.
65525
65526         * lib/gc.h (gc_hash_buffer): Add doc.
65527
65528 2005-10-11  Bruno Haible  <bruno@clisp.org>
65529
65530         * modules/c-strcasestr: New file.
65531         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65532
65533 2005-10-11  Bruno Haible  <bruno@clisp.org>
65534
65535         * modules/c-strcase: New file.
65536         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65537
65538 2005-10-11  Bruno Haible  <bruno@clisp.org>
65539
65540         * lib/strcasecmp.c: Include limits.h.
65541         (strcasecmp): Avoid integer overflow on exotic platforms.
65542         * lib/strncasecmp.c: Include limits.h.
65543         (strncasecmp): Avoid integer overflow on exotic platforms.
65544         Reported by Paul Eggert.
65545
65546 2005-10-11  Bruno Haible  <bruno@clisp.org>
65547
65548         * lib/c-strcasestr.h: New file, from GNU gettext.
65549         * lib/c-strcasestr.c: New file, from GNU gettext.
65550
65551 2005-10-11  Bruno Haible  <bruno@clisp.org>
65552
65553         * lib/c-strcase.h: New file, from GNU gettext.
65554         * lib/c-strcasecmp.c: New file, from GNU gettext.
65555         * lib/c-strncasecmp.c: New file, from GNU gettext.
65556
65557 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65558
65559         * modules/mempcpy (License): GPL -> LGPL.
65560         * modules/strchrnul (License): Likewise.
65561         * modules/sysexits (License): Likewise.
65562
65563 2005-10-08  Simon Josefsson  <jas@extundo.com>
65564
65565         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65566
65567 2005-10-07  Simon Josefsson  <jas@extundo.com>
65568
65569         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65570
65571 2005-10-06  Simon Josefsson  <jas@extundo.com>
65572
65573         * tests/test-hmac-md5.c: New file.
65574
65575         * modules/hmac-md5-tests: New file.
65576
65577         * modules/hmac-md5: New file.
65578
65579 2005-10-06  Simon Josefsson  <jas@extundo.com>
65580
65581         * m4/hmac-md5.m4: New file.
65582
65583         * m4/memxor.m4: Require gl_C_RESTRICT.
65584
65585 2005-10-06  Simon Josefsson  <jas@extundo.com>
65586
65587         * lib/memxor.c (memxor): Avoid casts and warnings.
65588
65589 2005-10-06  Simon Josefsson  <jas@extundo.com>
65590
65591         * lib/hmac-md5.c: New file.
65592
65593         * lib/hmac.h: New file.
65594
65595 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65596
65597         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65598         promotes to int, not unsigned int, to catch the AIX 5.3
65599         compiler bug.
65600
65601 2005-10-05  Simon Josefsson  <jas@extundo.com>
65602
65603         * modules/memxor: New file.
65604
65605         * modules/iconv (Files): Move config.rpath to havelib, it is used
65606         there.
65607
65608         * modules/havelib (Files): Add config.rpath.
65609
65610 2005-10-05  Simon Josefsson  <jas@extundo.com>
65611
65612         * m4/memxor.m4: New file.
65613
65614 2005-10-05  Simon Josefsson  <jas@extundo.com>
65615
65616         * lib/memxor.c (memxor): Fix compiler error.
65617
65618         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65619         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65620
65621         * lib/memxor.h, lib/memxor.c: New files.
65622
65623         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65624         we assume all systems have it, suggested by Jim Meyering
65625         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65626         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65627         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65628         same reasons.
65629
65630 2005-10-05  Simon Josefsson  <jas@extundo.com>
65631
65632         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65633
65634 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65635
65636         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65637         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65638         needed, since the source code now assumes these .h files.
65639
65640 2005-10-05  Derek Price  <derek@ximbiot.com>
65641
65642         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65643
65644 2005-10-05  Bruno Haible  <bruno@clisp.org>
65645
65646         * modules/stdint (License): Change to LGPL.
65647
65648 2005-10-04  Simon Josefsson  <jas@extundo.com>
65649
65650         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65651         D. Baushke" <mdb@gnu.org>.
65652
65653 2005-10-04  Bruno Haible  <bruno@clisp.org>
65654
65655         * lib/verify.h (verify_true): Provide alternative definition for C++.
65656
65657 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65658
65659         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65660         (SSIZE_MAX): New macro, if not already defined.
65661         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65662         than 2 GiB.
65663
65664 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65665
65666         Sync from coreutils.
65667         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65668         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65669         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65670         ULLONG_MAX doesn't work with 2.7.2.1.
65671
65672 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65673
65674         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65675         From Ben Pfaff.
65676
65677         * modules/exclude (Depends-on): Depend on verify.
65678         * modules/strtoimax (Depends-on): Likewise.
65679         * modules/utimecmp (Depends-on): Likewise.
65680
65681 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65682
65683         * lib/exclude.c: Include verify.h.
65684         (verify): Remove.  All callers changed to use verify.h's version.
65685         * lib/strtoimax.c: Likewise.
65686         * lib/utimecmp.c: Likewis.e
65687
65688         Sync from coreutils.
65689         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65690         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65691         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65692         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65693         bother returning ENOSYS if settimeofday or stime fails; just let
65694         them return whatever errno they want to return.
65695         * lib/utimens.c: Include unistd.h, for dup2.
65696         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65697         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65698
65699 2005-10-02  Jim Meyering  <jim@meyering.net>
65700
65701         Sync from coreutils.
65702         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65703         from glibc-2.2.5 that fails for read-only files.
65704
65705 2005-10-02  Jim Meyering  <jim@meyering.net>
65706
65707         Sync from coreutils.
65708         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65709         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65710         `#if HAVE_CONFIG_H'.
65711         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65712         Remove AT_FDCWD test.
65713         Do not consume the fd unless successful.
65714         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65715         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65716         block, so that we don't even try to compile it if settimeofday is
65717         available.  This works around a compilation failure on OSF1 V5.1,
65718         due to stime requiring a `long int*' while tv_sec is `int'.
65719
65720 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65721
65722         Sync from coreutils.
65723         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65724         against `yes', rather than just testing for nonempty.
65725
65726 2005-10-01  Simon Josefsson  <jas@extundo.com>
65727
65728         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65729         and Darwin.
65730
65731         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65732         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65733         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65734         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65735         Check if struct addrinfo is declared.
65736
65737 2005-10-01  Simon Josefsson  <jas@extundo.com>
65738
65739         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65740         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65741         AI_* and EAI_* definitions.  Protect function declarations.
65742
65743 2005-10-01  Jim Meyering  <jim@meyering.net>
65744
65745         Sync from coreutils.
65746
65747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65748         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65749         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65750         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65751         in the inet and nsl libraries.  Required on Solaris 5.7.
65752
65753 2005-10-01  Jim Meyering  <jim@meyering.net>
65754
65755         Sync from coreutils.
65756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65757         in the inet and nsl libraries.  Required on Solaris 5.7.
65758
65759 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65760
65761         * lib/getdelim.c (getdelim): Remove unused variables.
65762
65763 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65764
65765         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65766         so that the code works even with ancient cpp.  Portability problem
65767         with GCC 2.7.2.1 reported by Thomas M.Ott.
65768
65769 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65770
65771         * modules/regex (Depends-on): Add strcase.
65772
65773         * modules/gethostname (Licence): Change from GPL to LGPL, since
65774         gethostname.c is a trivial implementation of a standard library
65775         function.
65776         * modules/poll (License): Change from GPL to LGPL, since it's
65777         derived from LGPL code.
65778
65779 2005-09-27  Jim Meyering  <jim@meyering.net>
65780
65781         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65782         HAVE_CONFIG_H.
65783
65784         * lib/intprops.h (signed_type_or_expr__): Define.
65785         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65786         for unsigned types.
65787
65788 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65789
65790         * lib/verify.h (verify_expr): Remove, replacing with:
65791         (verify_true): New macro that returns true instead of void.
65792         (verify_type__): Remove.
65793         (verify): Use verify_true rather than verify_type__.
65794
65795 2005-09-26  Bruno Haible  <bruno@clisp.org>
65796
65797         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65798         is necessary.
65799         (lib_SOURCES): Remove mbchar.c.
65800         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65801         (Files): Add m4/mbrtowc.m4.
65802         * modules/mbiter: Likewise.
65803         * modules/mbuiter: Likewise.
65804
65805 2005-09-26  Bruno Haible  <bruno@clisp.org>
65806
65807         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65808         compile mbchar.c if they are not both present.
65809         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65810         * m4/mbiter.m4 (gl_MBITER): Likewise.
65811         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65812         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65813         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65814
65815 2005-09-25  Jim Meyering  <jim@meyering.net>
65816
65817         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65818         also uses socklen_t.
65819
65820 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65821
65822         * lib/utimens.c (ENOSYS): Define if not already defined.
65823         (futimens): Support having a null PATH if the file descriptor
65824         is nonnegative.
65825
65826         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65827         Remove.
65828         (__attribute): Define to empty unless GCC 3.1 or later.
65829         This works around a core dump on OpenBSD 3.4, which has GCC
65830         2.95.3, which dumps core when given __attribute__(()).  It also
65831         simplifies other tests, since we really don't want to bother with
65832         worrying about which ancient version of GCC supported what.
65833         Original problem reported by Yoann Vandoorselaere, with part of
65834         the fix suggested by Derek Price.
65835
65836 2005-09-24  Jim Meyering  <jim@meyering.net>
65837
65838         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65839         so we can once again use a positive bitfield width of 1 -- now we
65840         don't have to explain why we were using a bitfield width of 2.
65841
65842 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65843
65844         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65845         and similarly for the other external symbols.  Problem reported
65846         by James Gallager.
65847
65848         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65849         bug reported by Jim Meyering.
65850
65851         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65853         not needed, since socklen is a prerequisite module.
65854
65855 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65856
65857         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65858         Problem reported by Eric Blake.
65859         (getaddrinfo): Initialize se so that it's not garbage.
65860         Redo internal storage allocation so that it doesn't make unportable
65861         assumptions about alignment.
65862         Fix a memory leak.
65863
65864         * lib/utimens.c (futimens): Use futimesat if available.
65865         Prefer it to futimes since it doesn't have the futimes bug.
65866
65867         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65868         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65869         Instead, declare a function that returns a pointer to an array,
65870         and use verify_type__ to declare the size of the array.
65871         Problem and germ of a solution reported by Bruno Haible.
65872         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65873         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65874
65875 2005-09-23  Jim Meyering  <jim@meyering.net>
65876
65877         Sync from coreutils.
65878         Correct build failure (socklen_t not defined) on at least
65879         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65880         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65881
65882 2005-09-23  Jim Meyering  <jim@meyering.net>
65883
65884         * modules/getaddrinfo (Depends-on): Add socklen.
65885
65886 2005-09-23  Bruno Haible  <bruno@clisp.org>
65887
65888         * tests/test-verify.c: New file.
65889
65890 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65891
65892         Sync from coreutils.
65893
65894         * modules/argmatch (Depends-on): Add verify.
65895         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65896         unistd-safer.
65897         * modules/save-cwd (Depends-on): Likewise.
65898
65899         * modules/openat (Files): Add lib/openat-die.c.
65900         (Depends-on): Remove error, exitfail.
65901         Add dirname.
65902
65903         * modules/verify: New file.
65904         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65905         with "verify" module.
65906
65907 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65908
65909         Sync from coreutils.
65910
65911         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65912         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65913         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65914         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65915         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65916         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65917         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65918         Don't bother checking for string.h, stdlib.h, unistd.h.
65919         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65920         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65921         module's job.
65922         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65923         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65924
65925         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65926         (gl_GETDATE): Use it.
65927
65928         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65929
65930 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         Sync from coreutils.
65933
65934         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65935         stat-time.h.
65936         * lib/argmatch.h: Include verify.h
65937         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65938         (ARGMATCH_ASSERT): Remove; unused.
65939         * lib/canonicalize.c: Assume STDC_HEADERS.
65940         * lib/exclude.c: Include "strcase.h".
65941         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65942         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65943         and stdio-safer.h.
65944         (getusershell): Call fopen, not fopen_safer.
65945         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65946         Do not include unistd-safer.h.
65947         (save_cwd): Don't call fd_safer; no longer needed
65948         now that we include fcntl--.h.
65949
65950         * lib/getdate.y (relative_time): New type.
65951         (RELATIVE_TIME_0): New constant.
65952         (parser_control): Use relative_time instead of doing it ourselves.
65953         (%union): Add new relative_time rel member.
65954         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65955         Now typeless.
65956         (relunit, relunit_snumber): Now of type rel.
65957         (zone, rel, relunit, get_date): Adjust to above changes.
65958
65959         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65960         Do not include unistd-safer.h.
65961         (getloadavg): Don't call fd_safer; no longer needed
65962         now that we include fcntl--.h.
65963
65964         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65965         (make_dir_parents): Treat ENOSYS like EEXIST.
65966
65967         Improve quality of diagnostics on restore_cwd failure.
65968         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65969         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65970         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65971         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65972         each time through the loop.  Do not diagnose restore_cwd failure;
65973         that is the caller's job (and perhaps the caller does not care).
65974
65975         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65976         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65977         If the file already exists but is not a directory, don't bother
65978         to try to make its parents.
65979         Close potential file descriptor leak if we can't chdir("/") (!).
65980         Don't always return true if chdir($PWD) fails; return true only
65981         if the requested action was done successfully (except for the
65982         chdir($PWD)).
65983         Don't log final directory unless we actually made it.
65984         Refactor to avoid duplicate code to fix up permissions.
65985         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65986
65987         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65988         to make it a bit faster and (I hope) clearer.
65989         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65990         Fix bug in formats like %2N.
65991
65992         * lib/verify.h: New file.
65993
65994 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65995
65996         Sync from coreutils.
65997         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65998
65999 2005-09-22  Jim Meyering  <jim@meyering.net>
66000
66001         Sync from coreutils.
66002
66003         * m4/lstat.m4 (gl_FUNC_LSTAT):
66004         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66005         Remove obsolete comment.
66006         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66007         * m4/xstrtod.m4: Likewise.
66008
66009         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66010
66011 2005-09-22  Jim Meyering  <jim@meyering.net>
66012
66013         Sync from coreutils.
66014
66015         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66016
66017         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66018         the .tm_year member, since otherwise gcc-4.0 would now warn about
66019         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66020
66021         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66022         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66023
66024         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66025         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66026         when run in a time zone for which daylight savings time is in effect
66027         for the starting date.
66028
66029         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66030         stop us from restricting permissions of just-created absolute-named
66031         directories.
66032         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66033         to restore initial working directory.
66034         * lib/mkdir-p.c (make_dir_parents): New parameter:
66035         different_working_dir, to tell caller if/when we change the working
66036         directory and are unable to return to the initial one.
66037         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66038         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66039         `return false'.  This fixes a bug introduced on 2004-07-30.
66040
66041         * lib/openat.c (fdopendir): Be sure to close the supplied
66042         file descriptor before returning.  This makes our replacement
66043         implementation a little closer to Solaris's, where fdopendir
66044         ties the file descriptor to the returned DIR* pointer.
66045         * lib/openat.c (unlinkat): New function.
66046         * lib/openat.h (unlinkat): Add prototype.
66047         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66048         (openat_restore_fail): Rename from openat_restore_die.
66049         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66050
66051         Provide an alternative to exiting immediately upon save_cwd or
66052         restore_cwd failure.  Now, an application can arrange e.g.,
66053         to perform a longjump in that case.
66054         * lib/openat.c: Include dirname.h.
66055         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66056         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66057         and openat_restore_die rather than calling error directly.
66058         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66059
66060         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66061         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66062         define.
66063
66064         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66065         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66066                             int utc, int nanoseconds);
66067         Background:
66068         date should not have to allocate a megabyte of virtual memory to
66069         handle a format argument like +%1048575T.  When implemented with
66070         strftime, it must allocate such a buffer, use strftime to fill it
66071         in, print it, then free it.
66072         With fprintftime, it simply prints everything and exits.
66073         With no need for memory allocation, that's one fewer way to fail.
66074         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66075         optional field width, not before, so we accept %9:z, not %:9z.
66076         (my_strftime): Be sure to use L_('x') for literals.
66077
66078         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66079         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66080         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66081         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66082         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66083         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66084         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66085         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66086         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66087         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66088         * lib/xgethostname.c, lib/xreadlink.c:
66089         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66090
66091         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66092         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66093         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66094         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66095         and don't include <sys/file.h>).
66096
66097 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66098
66099         Sync from coreutils.
66100
66101         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66102         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66103         [!LDAV_DONE]: Avoid unused variable warning.
66104
66105 2005-09-21  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/unicodeio.h (unicode_to_mb): New declaration.
66108
66109 2005-09-20  Derek Price  <derek@ximbiot.com>
66110
66111         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66112         getaddrinfo.h.
66113
66114 2005-09-20  Bruno Haible  <bruno@clisp.org>
66115
66116         * gnulib-tool: Remove trailing slashes from the values specified for
66117         --source-base, --m4-base, --tests-base, --aux-dir.
66118         Suggested by Simon Josefsson <jas@extundo.com>.
66119
66120 2005-09-20  Bruno Haible  <bruno@clisp.org>
66121
66122         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66123         func_modules_to_filelist, func_import, func_create_testdir): Make all
66124         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66125         change when gnulib-tool is invoked in a different locale.
66126
66127 2005-09-19  Simon Josefsson  <jas@extundo.com>
66128
66129         * m4/socklen.m4: Fix typo.
66130
66131 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66132
66133         Use a consistent style for including <config.h>.
66134         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66135         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66136         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66137         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66138         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66139         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66140         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66141         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66142         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66143         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66144         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66145         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66146         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66147         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66148         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66149         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66150         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66151         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66152         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66153         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66154         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66155         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66156         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66157         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66158         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66159         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66160         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66161         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66162         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66163         lib/xstrtoumax.c, lib/yesno.c:
66164         Standardize inclusion of config.h.
66165         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66166         lib/inttostr.h:  Removed inclusion of config.h from header files.
66167         * lib/inttostr.c:  Adjusted in-tree users.
66168         * lib/timespec.h: Remove superfluous warning to include config.h.
66169         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66170         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66171         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66172         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66173         config.h with HAVE_CONFIG_H.
66174
66175 2005-09-19  Jim Meyering  <jim@meyering.net>
66176
66177         * modules/pathmax (License): Change to LGPL.
66178
66179 2005-09-19  Derek Price  <derek@ximbiot.com>
66180
66181         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66182
66183 2005-09-19  Bruno Haible  <bruno@clisp.org>
66184
66185         * gnulib-tool (import): Provide default for --tests-base.
66186
66187 2005-09-19  Bruno Haible  <bruno@clisp.org>
66188
66189         * doc/quote.texi: New file, extracted from gnulib.texi.
66190         * doc/ctime.texi: New file, extracted from gnulib.texi.
66191         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66192         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66193         * doc/gnulib.texi: Include them.
66194
66195 2005-09-18  Bruno Haible  <bruno@clisp.org>
66196
66197         Portability fix.
66198         * gnulib-tool (func_readlink): New function.
66199         (func_ln_if_changed): Use it.
66200
66201 2005-09-18  Bruno Haible  <bruno@clisp.org>
66202
66203         * gnulib-tool: Support --with-tests also with --import.
66204         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66205         (func_import): Use variables $testsbase and $inctests. Emit a
66206         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66207         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66208         SUBDIRS += $testsdir.
66209         (func_create_testdir): Update.
66210
66211 2005-09-18  Bruno Haible  <bruno@clisp.org>
66212
66213         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66214         instead of $dry_run.
66215         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66216         (func_ln_if_changed): Don't handle dry-run here.
66217         (func_import): In dry-run mode, detect more precisely which actions
66218         would be performed, and don't use "...ing" verbs.
66219
66220 2005-09-18  Bruno Haible  <bruno@clisp.org>
66221
66222         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66223         (func_import): Use join on two temporary files instead of three nested
66224         loops, in order to determine which files are new or old.
66225
66226 2005-09-18  Bruno Haible  <bruno@clisp.org>
66227
66228         * gnulib-tool (func_import): Comment out code that spits out the
66229         new files with --dry-run.
66230
66231 2005-09-18  Bruno Haible  <bruno@clisp.org>
66232
66233         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66234
66235 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66236
66237         * lib/stat-time.h: New file.
66238         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66239         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66240         in a different way.
66241         (timespec_cmp): New function.
66242         * lib/utimecmp.c: Include stat-time.h.
66243         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66244         members exist, not on the obsolescent ST_MTIM_NSEC.
66245         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66246
66247 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66250
66251 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * MODULES.html.sh (File system functions): Add stat-time.
66254         * modules/stat-time: New file.
66255         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66256         is now done in a different way, by the stat-time module.
66257         * modules/utimecmp (Depends-on): Add stat-time.
66258
66259 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66260
66261         * m4/st_mtim.m4: Remove.  Superseded by...
66262         * m4/stat-time.m4: New file.
66263         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66264         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66265
66266 2005-09-15  Derek Price  <derek@ximbiot.com>
66267
66268         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66269
66270 2005-09-15  Derek Price  <derek@ximbiot.com>
66271
66272         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66273         * lib/regex_internal.c: Ditto, using this...
66274         (__GNUC_PREREQ): ...new macro.
66275         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66276         using...
66277         (__GNUC_PREREQ): ...this new macro.
66278
66279         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66280
66281 2005-09-15  Derek Price  <derek@ximbiot.com>
66282             Paul Eggert  <eggert@cs.ucla.edu>
66283
66284         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66285         changes, consolidating in...
66286         * lib/regex_internal.h: ...this file.
66287
66288 2005-09-13  Jim Meyering  <jim@meyering.net>
66289
66290         * lib/canon-host.c: Filter through gnu indent and reword comments
66291         slightly.
66292         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66293
66294 2005-09-13  Derek Price  <derek@ximbiot.com>
66295
66296         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66297         failure.
66298         Reported by Jim Meyering  <jim@meyering.net>.
66299
66300 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66301
66302         * lib/base64.c: Typo.
66303         (base64_encode): Put b64str in initialized data section.
66304
66305 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66306
66307         Merge glibc and coreutils changes into gnulib, plus a few
66308         extra fixes.
66309         * lib/md5.c: Use #error rather than a string.
66310         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66311         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66312         (__attribute__): Define to empty for non recent-GCC.
66313         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66314         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66315         Renamed from their non-__ counterparts, with new macros replacing
66316         them if not _LIBC.  Add __THROW attribute.
66317         (rol): Remove.
66318         (struct md5_ctx): Align buffer if using GCC.
66319         * lib/sha1.h (struct sha1_ctx): Likewise.
66320         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66321         The old name was backwards.
66322         (NOTSWAP): Remove; not used.
66323         (rol): New macro, moved here from md5.h.
66324         (sha1_process_block): Remove a FIXME that doesn't make sense.
66325
66326 2005-09-12  Derek Price  <derek@ximbiot.com>
66327
66328         Return usable errors from canon-host.
66329         * lib/canon-host.h: New file.
66330         * lib/canon-host.c (canon_host): Wrap...
66331         (canon_host_r): ...this new function, which now relies exclusively on
66332         getaddrinfo.
66333         (ch_strerror): New function.
66334         (last_cherror): New global.
66335         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66336         interface.
66337         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66338         void *.
66339         (freeaddrinfo): Free ai->ai_canonname when set.
66340
66341 2005-09-12  Derek Price  <derek@ximbiot.com>
66342
66343         Make canon-host require getaddrinfo.
66344         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66345         AC_LIBSOURCE canon-host.h.  Call...
66346         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66347         gl_GETADDRINFO.
66348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66349
66350 2005-09-12  Derek Price  <derek@ximbiot.com>
66351
66352         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66353         LGPL.
66354         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66355
66356 2005-09-12  Derek Price  <derek@ximbiot.com>
66357
66358         * lib/gai_strerror.c: Include config.h when available.  Include
66359         getaddrinfo.h before other headers to test interface.
66360         Reported by Larry Jones <lawrence.jones@ugs.com>.
66361
66362 2005-09-12  Derek Price  <derek@ximbiot.com>
66363             Paul Eggert  <eggert@cs.ucla.edu>
66364
66365         * modules/glob (Files): Add glob-libc.h.
66366
66367 2005-09-12  Derek Price  <derek@ximbiot.com>
66368             Paul Eggert  <eggert@cs.ucla.edu>
66369
66370         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66371         glob_.h, glob-libc.h.
66372         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66373
66374 2005-09-12  Derek Price  <derek@ximbiot.com>
66375             Paul Eggert  <eggert@cs.ucla.edu>
66376
66377         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66378         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66379         protecting things that should be done only in gnulib contexts.
66380         * lib/glob_.h: New file, containing only the glob things needed for
66381         gnulib.
66382         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66383         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66384         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66385         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66386         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66387         and to respect the namespace rules better.
66388
66389 2005-09-08  Simon Josefsson  <jas@extundo.com>
66390
66391         * modules/socklen: New file.
66392
66393 2005-09-08  Simon Josefsson  <jas@extundo.com>
66394
66395         * m4/socklen.m4: New file.
66396
66397 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66398
66399         * modules/utimens (Files): Add m4/utimbuf.m4, since
66400         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66401         Reported by Sergey Poznyakoff.
66402
66403 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66404
66405         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66406         definitions, since that's the preferred style in glibc.
66407         Fix a minor spacing issue, and update copyright notice to match
66408         glibc's.
66409
66410 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66413
66414 2005-09-06  Simon Josefsson  <jas@extundo.com>
66415
66416         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66417         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66418
66419 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66420
66421         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66422         warning.
66423
66424 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66425
66426         * config/srclist.txt: Add glibc bug 1302.
66427
66428 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66429
66430         Change bitset word type from unsigned int to unsigned long int,
66431         as this has better performance on typical 64-bit hosts.
66432         Port bitset code to hosts with unusual word sizes.
66433         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66434         (build_collating_symbol):
66435         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66436         argument is a bitset.  This is merely a style issue, but it makes
66437         it clearer that an entire array is expected.
66438         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66439         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66440         Port to the case where bitset_word is not the same as unsigned int.
66441         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66442         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66443         Likewise.
66444         * lib/regexec.c (check_dst_limits_calc_pos_1,
66445         check_subexp_matching_top):
66446         (build_trtable, group_nodes_into_DFAstates):
66447         Likewise.
66448         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66449         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66450         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66451         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66452         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66453         * lib/regcomp.c (optimize_subexps, lower_subexp):
66454         Work even if bitset_word has holes in its bitwise representation.
66455         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66456         * lib/regexec.c (check_dst_limits_calc_pos_1,
66457         check_subexp_matching_top):
66458         Likewise.
66459         * lib/regex_internal.c (re_string_reconstruct):
66460         Don't assume UCHAR_MAX == 255.
66461         * lib/regex_internal.h (bitset_set_all): Likewise.
66462         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66463         All uses changed.
66464         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66465         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66466         All uses changed.
66467         (BITSET_WORD_MAX): New macro.
66468         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66469         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66470         (bitset_empty, bitset_copy):
66471         Prefer sizeof (bitset) to multiplying it out ourselves.
66472         (bitset_not_merge): Remove; unused.
66473         (bitset_contain): Return bool, not unsigned int with one bit on.
66474         All callers changed.
66475         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66476         alignment than re_node_set; do this by defining a new internal
66477         type struct dests_alloc and using it to allocate memory.
66478
66479 2005-09-05  Bruno Haible  <bruno@clisp.org>
66480
66481         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66482         links.
66483
66484 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66485
66486         * modules/size_max (Makefile.am): Add size_max.h
66487
66488 2005-09-04  Derek Price  <derek@ximbiot.com>
66489
66490         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66491
66492 2005-09-03  Simon Josefsson  <jas@extundo.com>
66493
66494         * gnulib-tool: Fix typo.
66495
66496 2005-09-03  Simon Josefsson  <jas@extundo.com>
66497
66498         * config/srclist.txt: Add glibc bug 1293.
66499
66500 2005-09-03  Derek Price  <derek@ximbiot.com>
66501
66502         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66503         From Larry Jones <lawrence.jones@ugs.com>.
66504
66505 2005-09-02  Simon Josefsson  <jas@extundo.com>
66506
66507         * modules/socklen: New file.
66508
66509 2005-09-02  Simon Josefsson  <jas@extundo.com>
66510
66511         * modules/havelib: New module.
66512
66513         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66514         Use havelib.
66515
66516 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66517
66518         Check for arithmetic overflow when calculating sizes, to prevent
66519         some buffer-overflow issues.  These patches are conservative, in the
66520         sense that when I couldn't determine whether an overflow was possible,
66521         I inserted a run-time check.
66522         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66523         macros.
66524         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66525         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66526         (re_xnrealloc, re_x2nrealloc): New inline functions.
66527         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66528         parse_bracket_exp):
66529         (build_equiv_class, build_charclass): Check for arithmetic overflow
66530         in size expression calculations.
66531         * lib/regex_internal.c (re_string_realloc_buffers):
66532         (build_wcs_upper_buffer, re_node_set_add_intersect):
66533         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66534         (re_dfa_add_node, register_state): Likewise.
66535         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66536         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66537         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66538         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66539
66540 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66541
66542         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66543         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66544
66545 2005-09-02  Bruno Haible  <bruno@clisp.org>
66546
66547         Support for lib vs. lib64 distinction on biarch platforms.
66548         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66549         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66550         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66551
66552 2005-09-02  Bruno Haible  <bruno@clisp.org>
66553
66554         * gnulib-tool (import): In the other first-use case, provide defaults
66555         as well.
66556
66557 2005-09-02  Bruno Haible  <bruno@clisp.org>
66558
66559         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66560         patches not yet found in the latest gettext release.
66561
66562 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66563
66564         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66565         to avoid a collision with bits/local_lim.h in glibc.
66566         All uses changed.  Problem reported by Dmitry V. Levin in
66567         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66568
66569         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66570         bugs in int versus size_t comparisons.
66571         (re_string_context_at): Fix bug where the code assumed that
66572         Idx is signed.
66573
66574         Use bool where appropriate.
66575         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66576         All callers changed.
66577         (calc_eclosure_iter): Likewise, for ROOT arg.
66578         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66579         (build_charclass_op): Likewise, for NON_MATCH arg.
66580         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66581         (re_string_construct_common): Likewise, for ICASE arg.
66582         * lib/regexec.c (re_search_2_stub, re_search_stub):
66583         Likewise, for RET_LEN arg.
66584         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66585         (set_regs): Likewise, for FL_BACKTRACK arg.
66586         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66587         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66588         (calc_eclosure_iter, parse_bracket_exp):
66589         Use bool for internal variables that are booleans.
66590         * lib/regexec.c (re_search_internal, check_matching,
66591         proceed_next_node):
66592         (set_regs, build_sifted_states, sift_states_bkref):
66593         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66594         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66595         (find_collation_sequence_value):
66596         Likewise.
66597         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66598         (re_node_set_compare):
66599         Return bool, not int. All callers changed.
66600         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66601         (build_trtable, check_node_accept): Likewise.
66602         * lib/regex_internal.h: Include stdbool.h.
66603
66604         Fix bugs uncovered when converting to bool.
66605         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66606         failure instead of charging ahead blindly.
66607         * lib/regex_internal.c (register_state): Likewise.
66608         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66609         for freeing internal storage.
66610         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66611         bitset pieces used as boolean, to avoid undefined behavior
66612         on hosts that do int overflow checking.
66613
66614 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66615
66616         * config/srclist.txt: Add glibc bugs 1285-1287.
66617
66618 2005-09-01  Jim Meyering  <jim@meyering.net>
66619
66620         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66621         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66622         Require gl_STAT_MACROS, too.
66623
66624 2005-09-01  Bruno Haible  <bruno@clisp.org>
66625
66626         * gnulib-tool (import): In the first-use case, provide defaults.
66627
66628 2005-09-01  Bruno Haible  <bruno@clisp.org>
66629
66630         * gnulib-tool (func_import): Remove the .tmp files.
66631
66632 2005-09-01  Bruno Haible  <bruno@clisp.org>
66633
66634         * gnulib-tool (func_import): Fix handling of symbolic links.
66635
66636 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66637
66638         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66639         old glibc regex code mishandles strings longer than 2**31 bytes.
66640         This patch fixes this when the regex code is used in gnulib
66641         (i.e., outside glibc).
66642
66643         This patch should not affect the use of the regex code inside
66644         glibc.  No doubt this problem also needs to be handled for glibc
66645         as well, but the result will be an incompatible change to the
66646         glibc ABI, and the old ABI will have to be supported too.  That
66647         can be the the subject for another patch.
66648
66649         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66650         governing whether the rest of this patch is active.  By default,
66651         the macro is disabled and the patch has no effect.
66652         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66653         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66654         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66655         (re_match_2, re_set_registers): Use the new types.
66656         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66657         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66658         New macros.
66659         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66660         (re_string_context_at, bin_tree_t, re_dfastate_t):
66661         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66662         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66663         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66664         (re_string_char_size_at, re_string_wchar_at):
66665         (re_string_elem_size_at):
66666         Use the new types and macros to port to 64-bit hosts.
66667         Use unsigned types for internal values, so that the code
66668         mostly works even for arrays larger than SSIZE_MAX.
66669         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66670         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66671         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66672         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66673         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66674         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66675         (calc_inveclosure, parse_dup_op, build_range_exp):
66676         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66677         (fetch_number, create_token_tree, mark_opt_subexp):
66678         Likewise.
66679         * lib/regex_internal.c (re_string_construct_common,
66680         create_ci_newstate):
66681         (create_cd_newstate, re_string_allocate, re_string_construct):
66682         (re_string_realloc_buffers, build_wcs_upper_buffer):
66683         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66684         (re_string_reconstruct, re_string_peek_byte_case):
66685         (re_string_fetch_byte_case, re_string_context_at):
66686         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66687         (re_node_set_init_copy, re_node_set_add_intersect):
66688         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66689         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66690         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66691         (re_acquire_state, re_acquire_state_context, register_state):
66692         Likewise.
66693         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66694         search_cur_bkref_entry):
66695         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66696         (re_search_internal, re_search_2_stub, re_search_stub)
66697         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66698         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66699         (update_cur_sifted_state, check_dst_limits):
66700         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66701         (check_subexp_limits, sift_states_bkref, merge_state_array):
66702         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66703         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66704         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66705         (expand_bkref_cache, check_node_accept_bytes):
66706         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66707         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66708         (acquire_init_state_context, check_halt_node_context):
66709         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66710         (sift_states_backward, clean_state_log_if_needed):
66711         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66712         (find_recover_state, transit_state_sb, transit_state_mb):
66713         (transit_state_bkref, build_trtable, match_ctx_clean):
66714         Likewise.
66715         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66716         to work around an assumption that REG_MISSING is negative.
66717
66718         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66719         (seek_collating_symbol_entry) [defined _LIBC]:
66720         (lookup_collation_sequence_value) [defined _LIBC]:
66721         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66722         Use prototypes rather than old-style function definitions.
66723         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66724         (transit_state_sb) [0]:
66725         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66726
66727         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66728         rm_eo.
66729
66730         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66731         (optimize_subexps, lower_subexp):
66732         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66733         since the signed shift might overflow.  Use 1u<<31 instead.
66734         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66735         Likewise.
66736         * lib/regexec.c (check_dst_limits_calc_pos_1,
66737         check_subexp_matching_top): Likewise.
66738
66739         * lib/regcomp.c (optimize_subexps, lower_subexp):
66740         Use CHAR_BIT rather than 8, for clarity.
66741         * lib/regexec.c (check_dst_limits_calc_pos_1):
66742         (check_subexp_matching_top): Likewise.
66743         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66744         have to worry about portability issues when shifting it left.
66745         Remove no-longer-needed test for table_size > 0.
66746         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66747         in a word, as the resulting behavior is undefined.
66748         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66749         in one case, a <= should have been an <, and in another case the
66750         whole test was missing.
66751         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66752         the standard name CHAR_BIT.
66753         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66754         this is not true on one's complement and signed-magnitude hosts.
66755
66756         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66757         next_last_offset.
66758         (struct re_dfa_t): Remove unused member states_alloc.
66759         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66760
66761 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66762
66763         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66764         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66765         and large-file glibc and in 32-bit large-file Solaris.
66766
66767 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66768
66769         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66770         lengths fit in regoff_t; this isn't true if regoff_t is the same
66771         width as size_t.
66772         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66773         (= START + RANGE) instead of RANGE.  This avoids overflow
66774         problems when regoff_t is the same width as size_t.
66775         All callers changed.
66776         (re_search_2_stub): Check for overflow when adding the
66777         sizes of the two strings.
66778         (re_search_stub): Check for overflow when adding START
66779         to RANGE; if it occurs, substitute the extreme value.
66780
66781 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66782
66783         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66784
66785 2005-08-31  Jim Meyering  <jim@meyering.net>
66786
66787         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66788         a pointer-to-const.
66789         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66790         (register_state): Likewise.
66791         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66792         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66793         (group_nodes_into_DFAstates): Likewise.
66794
66795 2005-08-31  Jim Meyering  <jim@meyering.net>
66796
66797         * check-module: Add a FIXME comment.
66798
66799 2005-08-31  Eric Blake  <ebb9@byu.net>
66800
66801         * modules/unistd-safer (Files): Add unistd--.h.
66802         * modules/stdio-safer (Files): Add stdio--.h.
66803
66804 2005-08-31  Derek Price  <derek@ximbiot.com>
66805
66806         * lib/getdelim.c (getdelim): Return EOF on EOF.
66807         Reported by Larry Jones <lawrence.jones@ugs.com>.
66808
66809 2005-08-31  Bruno Haible  <bruno@clisp.org>
66810
66811         Avoid unnecessary diffs in the generated lib/Makefile.am.
66812         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66813         the generated files.
66814         (func_import): Don't set cmd.
66815
66816 2005-08-31  Bruno Haible  <bruno@clisp.org>
66817
66818         * lib/strstr.c: Include <stddef.h>, for NULL.
66819         * lib/strcasestr.c: Likewise.
66820         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66821
66822 2005-08-31  Bruno Haible  <bruno@clisp.org>
66823
66824         * gnulib-tool: New option --macro-prefix.
66825         (func_import): Use macro_prefix.
66826         (import): Handle option --macro-prefix.
66827
66828 2005-08-31  Bruno Haible  <bruno@clisp.org>
66829
66830         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66831         Also use new variables cached_lgpl, cached_libtool.
66832
66833 2005-08-31  Bruno Haible  <bruno@clisp.org>
66834
66835         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66836         always instantiating them.
66837
66838 2005-08-31  Bruno Haible  <bruno@clisp.org>
66839
66840         * gnulib-tool (func_import): Read the previous cached settings
66841         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66842         earlier added by gnulib but are now dropped. Warn when a gnulib file
66843         overwrites a non-gnulib file.
66844
66845 2005-08-31  Bruno Haible  <bruno@clisp.org>
66846
66847         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66848         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66849         projects that don't keep autogenerated files in CVS. Put into
66850         actioncmd only the specified modules, not the transitive closure.
66851
66852 2005-08-31  Bruno Haible  <bruno@clisp.org>
66853
66854         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66855         Create directories that shall be filled.
66856         (import): Don't look for gl_* macros in configure.ac. Recurse across
66857         all directories containing a gnulib-cache.m4 files, if meaningful.
66858
66859 2005-08-31  Bruno Haible  <bruno@clisp.org>
66860
66861         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66862         (import): Set seen_libtool when we see gl_LIBTOOL.
66863
66864 2005-08-31  Bruno Haible  <bruno@clisp.org>
66865
66866         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66867         declaration macro definitions from generated gnulib.m4.
66868
66869 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66870
66871         * lib/iconvme.h: Add prototype for iconv_alloc.
66872
66873 2005-08-29  Simon Josefsson  <jas@extundo.com>
66874
66875         * lib/iconvme.c: Fix errno.
66876
66877 2005-08-29  Bruno Haible  <bruno@clisp.org>
66878
66879         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66880         that it works when the directory contains spaces.
66881
66882 2005-08-29  Bruno Haible  <bruno@clisp.org>
66883
66884         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66885
66886 2005-08-29  Bruno Haible  <bruno@clisp.org>
66887
66888         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66889         Emit more advice.
66890
66891 2005-08-29  Bruno Haible  <bruno@clisp.org>
66892         and Stepan Kasal  <kasal@ucw.cz>
66893
66894         * check-module: If more parameters are given, check each of them
66895         separately; add more exceptions, as noted by Jim Meyering.
66896         (check_module): New procedure.
66897         (%exempt_header): Now contains all exceptions.
66898
66899 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66900
66901         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66902
66903 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66904
66905         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66906
66907 2005-08-28  Bruno Haible  <bruno@clisp.org>
66908
66909         * m4/gnulib-tool.m4: New file.
66910
66911 2005-08-27  Jim Meyering  <jim@meyering.net>
66912
66913         * modules/unistd-safer (Files): Add pipe-safer.c.
66914         * modules/fcntl-safer (Files): Add creat-safer.c.
66915
66916 2005-08-27  Jim Meyering  <jim@meyering.net>
66917
66918         * m4/stdlib-safer.m4: New file.  From coreutils.
66919         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66920         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66921         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66922         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66923         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66924
66925 2005-08-27  Jim Meyering  <jim@meyering.net>
66926
66927         * lib/fopen-safer.c: Merge minor changes from coreutils.
66928         * lib/dup-safer.c: Likewise.
66929         * lib/fd-safer.c: Likewise.
66930
66931         Merge from coreutils.
66932         * lib/stdio--.h: New file.
66933         * lib/stdlib--.h: New file.
66934         * lib/mkstemp-safer.c: New file.
66935
66936         GNU tar needs these.
66937         * lib/pipe-safer.c: New file.
66938         * lib/creat-safer.c: New file.
66939         * lib/fcntl--.h (creat): Define to creat_safer.
66940         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66941         * lib/unistd--.h (pipe): Define to pipe_safer.
66942         * lib/unistd-safer.h: Declare pipe_safer.
66943
66944 2005-08-26  Simon Josefsson  <jas@extundo.com>
66945
66946         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66947         Haible <bruno@clisp.org>.
66948
66949 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66950
66951         * lib/regex_internal.h: Remove all references to
66952         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66953         or better.
66954         (bitset_not, bitset_merge, bitset_not_merge):
66955         (bitset_mask, re_string_allocate, re_string_construct):
66956         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66957         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66958         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66959         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66960         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66961         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66962         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66963         (re_acquire_state_context):
66964         Remove unnecessary forward decls.
66965         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66966         Put __attribute at function definition,
66967         now that the function decl has been removed.
66968         * lib/regex_internal.c (re_string_peek_byte_case):
66969         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66970         Likewise.
66971
66972 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66973
66974         * m4/regex.m4: Add AC_PREREQ(2.50).
66975         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66976
66977 2005-08-25  Simon Josefsson  <jas@extundo.com>
66978
66979         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66980         __fsetlocking.
66981
66982 2005-08-25  Simon Josefsson  <jas@extundo.com>
66983
66984         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66985         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66986         GLIBC specific code.
66987
66988 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66989
66990         Make regex safe for g++.  This fixes one real bug (an "err"
66991         that should have been "*err").  g++ problem reported by
66992         Sam Steingold.
66993         * lib/regex_internal.h (re_calloc): New macro, consistent with
66994         re_malloc etc.  All callers of calloc changed to use re_calloc.
66995         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66996         not int.  All callers changed.
66997         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66998         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66999         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67000         (find_recover_state): Change "err" to "*err"; this fixes what
67001         appears to be a real bug.
67002         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67003         versus int.
67004
67005 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * modules/regex (Depends-on): Add malloc, since the code
67008         assumes that !malloc(0) means failure.
67009
67010 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67011
67012         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67013
67014         alloca modernization/simplification for regex.
67015         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67016         needs to be at the start of the file, and can be moved into
67017         regex_internal.h and simplified.
67018         * lib/regex_internal.h: Include <alloca.h>.
67019         (__libc_use_alloca) [!defined _LIBC]: New macro.
67020         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67021         now works outside glibc.
67022
67023 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67024
67025         * config/srclist.txt: Add glibc bugs 1241, 1245.
67026
67027 2005-08-25  Jim Meyering  <jim@meyering.net>
67028
67029         * lib/open-safer.c: Include <config.h>.
67030         Otherwise, we'd lose LARGEFILE support in any file using
67031         e.g. "fcntl--.h"
67032
67033 2005-08-25  Bruno Haible  <bruno@clisp.org>
67034
67035         * m4/minmax.m4: Require autoconf 2.52.
67036         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67037         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67038         alternatives of translit over the alphabet.
67039         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67040
67041 2005-08-24  Simon Josefsson  <jas@extundo.com>
67042
67043         * tests/test-getpass.c: New file.
67044
67045 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67046
67047         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67048         for GNU regex features.
67049
67050 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67051
67052         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67053         * lib/regex.h (regerror): Likewise.
67054
67055         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67056         requires this.  (The code never needed it.)
67057
67058         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67059         All uses of recently-renamed identifiers changed to use the new,
67060         POSIX-compliant names.  The code will build and run just fine
67061         without these changes, but it's better to eat our own dog food
67062         and use the standard-conforming names.
67063
67064         * lib/regex.h: Fix a multitude of POSIX name space violations.
67065         These changes have an effect only for programs that define
67066         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67067         do not change anything for programs compiled in the normal way.
67068         Also, there is no effect on the ABI.
67069
67070         (_REGEX_SOURCE): New macro.
67071         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67072         defined and _GNU_SOURCE is not; this fixes a name space violation.
67073
67074         Rename the following macros to obey POSIX requirements.
67075         The old names are still visible as macros if _REGEX_SOURCE is defined.
67076         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67077         RE_BACKSLASH_ESCAPE_IN_LISTS.
67078         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67079         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67080         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67081         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67082         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67083         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67084         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67085         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67086         (REG_INTERVALS): renamed from RE_INTERVALS.
67087         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67088         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67089         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67090         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67091         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67092         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67093         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67094         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67095         RE_UNMATCHED_RIGHT_PAREN_ORD.
67096         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67097         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67098         (REG_DEBUG): renamed from RE_DEBUG.
67099         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67100         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67101         unusual, since we can't clash with the POSIX REG_ICASE.
67102         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67103         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67104         (REG_NO_SUB): renamed from RE_NO_SUB.
67105         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67106         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67107         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67108         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67109         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67110         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67111         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67112         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67113         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67114         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67115         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67116         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67117         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67118         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67119         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67120         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67121         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67122         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67123         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67124         (REG_FIXED): Renamed from REGS_FIXED.
67125         (REG_NREGS): Renamed from RE_NREGS.
67126
67127         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67128         of other REG_* macros, since POSIX says the user is allowed to
67129         #undef these macros selectively.
67130
67131         (reg_errcode_t): Update comment stating what other tables need
67132         to be consistent.
67133
67134         Rename the following enum values to obey POSIX requirements.
67135         The old names are still visible as macros.
67136         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67137         is not defined, since GNU is supposed to be a superset of POSIX as
67138         much as possible, and since we want reg_errcode_t to be a signed
67139         type for implementation consistency.
67140         (_REG_NOERROR): Renamed from REG_NOERROR.
67141         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67142         (_REG_BADPAT): Renamed from REG_BADPAT.
67143         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67144         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67145         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67146         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67147         (_REG_EBRACK): Renamed from REG_EBRACK.
67148         (_REG_EPAREN): Renamed from REG_EPAREN.
67149         (_REG_EBRACE): Renamed from REG_EBRACE.
67150         (_REG_BADBR): Renamed from REG_BADBR.
67151         (_REG_ERANGE): Renamed from REG_ERANGE.
67152         (_REG_ESPACE): Renamed from REG_ESPACE.
67153         (_REG_BADRPT): Renamed from REG_BADRPT.
67154         (_REG_EEND): Renamed from REG_EEND.
67155         (_REG_ESIZE): Renamed from REG_ESIZE.
67156         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67157         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67158         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67159         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67160         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67161
67162         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67163         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67164         changed.  But support the old name if the new one is not defined
67165         and if _REGEX_SOURCE.
67166
67167         Change the following member names in struct re_pattern_buffer.
67168         The old names are still supported if !_REGEX_SOURCE.
67169         The new names are always supported, regardless of _REGEX_SOURCE.
67170         (re_buffer): Renamed from buffer.
67171         (re_allocated): Renamed from allocated.
67172         (re_used): Renamed from used.
67173         (re_syntax): Renamed from syntax.
67174         (re_fastmap): Renamed from fastmap.
67175         (re_translate): Renamed from translate.
67176         (re_can_be_null): Renamed from can_be_null.
67177         (re_regs_allocated): Renamed from regs_allocated.
67178         (re_fastmap_accurate): Renamed from fastmap_accurate.
67179         (re_no_sub): Renamed from no_sub.
67180         (re_not_bol): Renamed from not_bol.
67181         (re_not_eol): Renamed from not_eol.
67182         (re_newline_anchor): Renamed from newline_anchor.
67183
67184         Change the following member names in struct re_registers.
67185         The old names are still supported if !_REGEX_SOURCE.
67186         The new names are always supported, regardless of _REGEX_SOURCE.
67187         (rm_num_regs): Renamed from num_regs.
67188         (rm_start): Renamed from start.
67189         (rm_end): Renamed from end.
67190
67191         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67192         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67193         Prepend __ to parameter names.
67194
67195         Undo yesterday's changes.
67196
67197 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67198
67199         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67200         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67201         lib/regex.c.
67202
67203 2005-08-24  Jim Meyering  <jim@meyering.net>
67204
67205         Sync from coreutils.
67206         * m4/fcntl-safer.m4: New file.
67207
67208         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67209         and object files for this module.
67210
67211 2005-08-24  Jim Meyering  <jim@meyering.net>
67212
67213         Sync from coreutils.
67214         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67215
67216 2005-08-24  Jim Meyering  <jim@meyering.net>
67217
67218         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67219         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67220
67221 2005-08-24  Jim Meyering  <jim@meyering.net>
67222
67223         * modules/fcntl-safer: New module.
67224         * modules/fts (Depends-on): Add fcntl-safer.
67225         * MODULES.html.sh (File descriptor based Input/Output):
67226         Add fcntl-safer.
67227
67228 2005-08-24  Bruno Haible  <bruno@clisp.org>
67229
67230         Support for unit test modules.
67231         * modules/README: Mention tests modules.
67232         * modules/TEMPLATE-TESTS: New file.
67233         * gnulib-tool: New options --extract-tests-module, --with-tests and
67234         --tests-base (unused for the moment).
67235         (testsbase, inctests): New variables.
67236         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67237         (func_verify_module): Exclude TEMPLATE-TESTS.
67238         (func_verify_nontests_module, func_verify_tests_module): New functions.
67239         (func_get_dependencies): Add implicit dependency for tests modules.
67240         (func_get_tests_module): New function.
67241         (func_modules_transitive_closure): When --with-tests was specified,
67242         include the unit tests as well, unless explicitly avoided.
67243         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67244         (func_emit_tests_Makefile_am): New function.
67245         (func_create_testdir): When --with-tests was specified, emit a
67246         tests/ directory.
67247         * MODULES.html.sh (Future developments): Update.
67248
67249 2005-08-24  Bruno Haible  <bruno@clisp.org>
67250
67251         * modules/tls-tests: New file.
67252         * tests/test-tls.c: New file, from GNU gettext.
67253
67254 2005-08-24  Bruno Haible  <bruno@clisp.org>
67255
67256         * modules/lock-tests: New file.
67257         * tests/test-lock.c: New file, from GNU gettext.
67258
67259 2005-08-24  Bruno Haible  <bruno@clisp.org>
67260
67261         * lib/lock.h: Add multiple inclusion guard.
67262         * lib/tls.h: Add multiple inclusion guard.
67263
67264 2005-08-24  Bruno Haible  <bruno@clisp.org>
67265
67266         * gnulib-tool: Add support for the --aux-dir option to
67267         --create-testdir, --create-megatestdir, --test, --megatest.
67268         (func_create_testdir, func_create_megatestdir): Optionally emit a
67269         AC_CONFIG_AUX_DIR directive.
67270         (create-testdir, create-megatestdir, test, megatest): Provide a
67271         default value for $auxdir.
67272
67273 2005-08-24  Bruno Haible  <bruno@clisp.org>
67274
67275         * gnulib-tool (import): Use compound statement instead of subshell
67276         where possible.
67277
67278 2005-08-24  Bruno Haible  <bruno@clisp.org>
67279
67280         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67281
67282 2005-08-24  Bruno Haible  <bruno@clisp.org>
67283
67284         * gnulib-tool (func_version): Update.
67285
67286 2005-08-24  Bruno Haible  <bruno@clisp.org>
67287
67288         * gnulib-tool (func_import, func_create_testdir,
67289         func_create_megatestdir): Quote all autoconf macro arguments.
67290
67291 2005-08-24  Bruno Haible  <bruno@clisp.org>
67292
67293         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67294         option --force, because --force causes the aclocal.m4 of each
67295         subdirectory to be newer than the corresponding config.h.in.
67296
67297 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67298
67299         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67300         All contents moved to gl_REGEX.
67301         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67302         assume that it does.
67303
67304 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67305
67306         * lib/regex.h (REG_NOSYS)
67307         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67308         Define, since POSIX requires it as of 2001.
67309         (_REG_ENOSYS)
67310         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67311         New private symbol, used to keep the enum signed in all cases.
67312         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67313         Youngman in
67314         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67315
67316         * lib/regex_internal.c (re_string_skip_chars, register_state):
67317         (calc_state_hash):
67318         Remove forward decls; no longer needed now that we use prototypes.
67319         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67320         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67321         (clean_state_log_if_needed): Likewise.
67322
67323 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67324
67325         * config/srclist.txt: Add glibc bugs 1231-1233.
67326
67327 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67328
67329         Fix problems reported by Sam Steingold in
67330         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67331         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67332         assumed that reg_errcode_t is a signed type, which is not
67333         necessarily true if _XOPEN_SOURCE is not defined.
67334         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67335         since some compilers warn about it otherwise.
67336
67337 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67340         (init_word_char, create_initial_state, duplicate_node_closure):
67341         (fetch_token, peek_token_bracket, build_range_exp):
67342         (build_collating_symbol): Remove forward decls; no longer needed
67343         now that we use prototypes.
67344
67345         * lib/regcomp.c:
67346         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67347         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67348         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67349         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67350         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67351         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67352         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67353         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67354         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67355         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67356         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67357         (build_charclass, build_charclass_op, fetch_number, create_tree):
67358         (create_token_tree, mark_opt_subexp, duplicate_tree):
67359         Use prototypes rather than old-style definitions.
67360
67361         * lib/regex_internal.c:
67362         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67363         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67364         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67365         (re_string_reconstruct, re_string_peek_byte_case):
67366         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67367         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67368         (re_node_set_init_copy, re_node_set_add_intersect):
67369         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67370         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67371         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67372         (re_acquire_state, re_acquire_state_context, register_state):
67373         (create_ci_newstate, create_cd_newstate, free_state):
67374         Likewise.
67375         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67376         re_search_2):
67377         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67378         (re_search_internal, prune_impossible_nodes):
67379         (acquire_init_state_context, check_matching, static):
67380         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67381         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67382         (update_regs, sift_states_backward, build_sifted_states):
67383         (clean_state_log_if_needed, merge_state_array):
67384         (update_cur_sifted_state, add_epsilon_src_nodes):
67385         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67386         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67387         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67388         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67389         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67390         (check_arrival, check_arrival_add_next_nodes):
67391         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67392         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67393         (check_node_accept_bytes, check_node_accept, extend_buffers):
67394         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67395         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67396         (sift_ctx_init):
67397         Likewise.
67398
67399         * lib/regex_internal.h:
67400         (re_string_allocate, re_string_construct, re_string_reconstruct):
67401         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67402         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67403         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67404         (re_string_context_at, re_string_peek_byte_case):
67405         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67406         is defined, since we now use prototypes always.
67407
67408         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67409         C89 or better.  All uses removed.
67410
67411 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         * config/srclist.txt: Add glibc bugs 1220-1227.
67414
67415 2005-08-20  Jim Meyering  <jim@meyering.net>
67416
67417         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67418         of unused local, dfa.
67419
67420 2005-08-20  Bruno Haible  <bruno@clisp.org>
67421
67422         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67423
67424 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67425
67426         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67427         (re_node_set_insert_last, re_dfa_add_node):
67428         Rename local variables to avoid GCC shadowing warnings.
67429
67430 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67431
67432         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67433         [defined lint]: Suppress bogus uninitialized-variable warnings.
67434
67435         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67436         and let the caller return REG_ESPACE if out of space.  This
67437         removes an uninitialied-variable warning with GCC 4.0.1, and also
67438         avoids taking the address of a local variable.  All callers
67439         changed.
67440
67441 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67442
67443         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67444         $LIBCSRC/posix/regexec.c.
67445         Add glibc bug 1217 for regcomp.c.
67446
67447 2005-08-19  Jim Meyering  <jim@meyering.net>
67448
67449         * lib/regexec.c (proceed_next_node): Redo local variables to
67450         avoid GCC shadowing warnings.
67451
67452 2005-08-18  Bruno Haible  <bruno@clisp.org>
67453
67454         * lib/strstr.c (strstr): Fix return value in multibyte case.
67455         * lib/strcasestr.c (strcasestr): Likewise.
67456
67457 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67460
67461 2005-08-17  Jim Meyering  <jim@meyering.net>
67462
67463         Make the %s format (seconds since the epoch) work for a negative
67464         number and when used with a zero-padded field width, e.g. %015s.
67465
67466         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67467         label so that it precedes the code to set `digits'.  Otherwise,
67468         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67469         print `00-22'.  Now, it prints `-0022', as it should.
67470
67471 2005-08-17  Bruno Haible  <bruno@clisp.org>
67472
67473         * modules/strstr (Files): Add m4/mbrtowc.m4.
67474         (Depends-on): Add mbuiter.
67475
67476 2005-08-17  Bruno Haible  <bruno@clisp.org>
67477
67478         * modules/strcasestr: New file.
67479         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67480         strcasestr.
67481
67482 2005-08-17  Bruno Haible  <bruno@clisp.org>
67483
67484         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67485
67486 2005-08-17  Bruno Haible  <bruno@clisp.org>
67487
67488         * modules/mbuiter: New file.
67489         * MODULES.html.sh (Extended multibyte and wide character utilities):
67490         Add mbuiter.
67491
67492 2005-08-17  Bruno Haible  <bruno@clisp.org>
67493
67494         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67495         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67496
67497 2005-08-17  Bruno Haible  <bruno@clisp.org>
67498
67499         * m4/strcasestr.m4: New file.
67500
67501 2005-08-17  Bruno Haible  <bruno@clisp.org>
67502
67503         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67504         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67505
67506 2005-08-17  Bruno Haible  <bruno@clisp.org>
67507
67508         * lib/strcasestr.h: New file.
67509         * lib/strcasestr.c: New file.
67510
67511 2005-08-17  Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/strcasecmp.c: Use mbuiter.h.
67514
67515 2005-08-17  Bruno Haible  <bruno@clisp.org>
67516
67517         * lib/mbuiter.h: New file.
67518
67519 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67522         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67523         and gl_GETOPT are both invoked via different paths (as happens
67524         with GNU tar CVS because it uses both argp and getopt), the former
67525         wins.
67526
67527 2005-08-16  Bruno Haible  <bruno@clisp.org>
67528
67529         * modules/tls: New file.
67530         * MODULES.html.sh (Multithreading): Add tls.
67531
67532 2005-08-16  Bruno Haible  <bruno@clisp.org>
67533
67534         * modules/strnlen1: New file.
67535         * MODULES.html.sh (String handling): Add strnlen1.
67536
67537 2005-08-16  Bruno Haible  <bruno@clisp.org>
67538
67539         * modules/strcase (Files): Add m4/mbrtowc.m4.
67540         (Depends-on): Add strnlen1, mbchar.
67541
67542 2005-08-16  Bruno Haible  <bruno@clisp.org>
67543
67544         * modules/mbiter: New file.
67545         * MODULES.html.sh (Extended multibyte and wide character utilities):
67546         Add mbiter.
67547
67548 2005-08-16  Bruno Haible  <bruno@clisp.org>
67549
67550         * modules/mbfile: New file.
67551         * MODULES.html.sh (Extended multibyte and wide character utilities):
67552         Add mbfile.
67553
67554 2005-08-16  Bruno Haible  <bruno@clisp.org>
67555
67556         * modules/mbchar: New file.
67557         * MODULES.html.sh (Extended multibyte and wide character utilities):
67558         New section.
67559
67560 2005-08-16  Bruno Haible  <bruno@clisp.org>
67561
67562         * m4/tls.m4: New file, from GNU gettext.
67563
67564 2005-08-16  Bruno Haible  <bruno@clisp.org>
67565
67566         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67567         always.
67568         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67569
67570 2005-08-16  Bruno Haible  <bruno@clisp.org>
67571
67572         * m4/mbiter.m4: New file.
67573
67574 2005-08-16  Bruno Haible  <bruno@clisp.org>
67575
67576         * m4/mbfile.m4: New file.
67577
67578 2005-08-16  Bruno Haible  <bruno@clisp.org>
67579
67580         * m4/mbchar.m4: New file.
67581
67582 2005-08-16  Bruno Haible  <bruno@clisp.org>
67583
67584         * lib/tls.h: New file, from GNU gettext.
67585         * lib/tls.c: New file, from GNU gettext.
67586
67587 2005-08-16  Bruno Haible  <bruno@clisp.org>
67588
67589         * lib/strnlen1.h: New file.
67590         * lib/strnlen1.c: New file.
67591
67592 2005-08-16  Bruno Haible  <bruno@clisp.org>
67593
67594         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67595         (mbi_init): Update.
67596         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67597         NUL byte, not after it.
67598
67599 2005-08-16  Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/strcase.h (strcasecmp): Add note in comments.
67602         * lib/strncasecmp.c: Use code from strcasecmp.c.
67603         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67604         (strcasecmp): Work correctly in multibyte locales.
67605
67606 2005-08-16  Bruno Haible  <bruno@clisp.org>
67607
67608         * lib/mbiter.h: New file.
67609
67610 2005-08-16  Bruno Haible  <bruno@clisp.org>
67611
67612         * lib/mbfile.h: New file.
67613
67614 2005-08-16  Bruno Haible  <bruno@clisp.org>
67615
67616         * lib/mbchar.h: New file.
67617         * lib/mbchar.c: New file.
67618
67619 2005-08-16  Bruno Haible  <bruno@clisp.org>
67620
67621         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67622         the valid ones. Makes the comparison operations transitive:
67623         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67624         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67625
67626 2005-08-15  Simon Josefsson  <jas@extundo.com>
67627
67628         * modules/ssize_t (License): Change to 'unlimited'.
67629
67630         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67631
67632 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67635         Add comments for each pending glibc patch.
67636
67637 2005-08-15  Bruno Haible  <bruno@clisp.org>
67638
67639         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67640         __cplusplus is defined.
67641
67642 2005-08-14  Jim Meyering  <jim@meyering.net>
67643
67644         Sync from coreutils.
67645
67646         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67647         Use the hash-table-based cycle-detection code not just when
67648         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67649         Reported by James Youngman in
67650         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67651         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67652         FTS_TIGHT_CYCLE_CHECK.
67653         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67654         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67655         once again.
67656         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67657         * lib/fts.c (fd_safer): Remove decl.
67658         Include fcntl--.h rather than unistd-safer.h
67659         (fts_safe_changedir): Don't call fd_safer; no longer needed
67660         now that we include fcntl--.h.
67661
67662 2005-08-12  Simon Josefsson  <jas@extundo.com>
67663
67664         * modules/getndelim2: Use ssize_t module.
67665         * modules/getnline: Likewise.
67666         * modules/safe-read: Likewise.
67667         * modules/xreadlink: Likewise.
67668
67669         * modules/ssize_t: New file.
67670
67671 2005-08-12  Simon Josefsson  <jas@extundo.com>
67672
67673         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67674
67675 2005-08-12  Simon Josefsson  <jas@extundo.com>
67676
67677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67678         ssize_t.
67679
67680 2005-08-12  Simon Josefsson  <jas@extundo.com>
67681
67682         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67683         readline, getdelim and check_version.
67684         (Support for systems lacking ISO C 99: Sizes of integer types):
67685         Add size_max.
67686
67687 2005-08-12  Bruno Haible  <bruno@clisp.org>
67688
67689         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67690
67691 2005-08-11  Simon Josefsson  <jas@extundo.com>
67692
67693         * modules/readline: New file.
67694
67695         * modules/strnlen (Files): Add strnlen.h.
67696
67697 2005-08-11  Simon Josefsson  <jas@extundo.com>
67698
67699         * m4/readline.m4: New file.
67700
67701 2005-08-11  Simon Josefsson  <jas@extundo.com>
67702
67703         * lib/readline.h, readline.c: New file.
67704
67705 2005-08-11  Simon Josefsson  <jas@extundo.com>
67706
67707         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67708         gl_AVOID.
67709
67710 2005-08-11  Bruno Haible  <bruno@clisp.org>
67711
67712         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67713
67714 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67715
67716         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67717
67718 2005-08-10  Simon Josefsson  <jas@extundo.com>
67719
67720         * tests/test-iconvme.c: New file.
67721
67722 2005-08-10  Simon Josefsson  <jas@extundo.com>
67723
67724         * m4/strnlen.m4: New file.
67725
67726         * m4/strndup.m4: Don't check for strnlen declaration, done in
67727         strnlen.m4.
67728
67729 2005-08-10  Simon Josefsson  <jas@extundo.com>
67730
67731         * lib/strndup.c: Use strnlen.h.
67732
67733         * lib/strnlen.h: New file.
67734
67735 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67736
67737         * README: Typos.
67738
67739 2005-08-02  Simon Josefsson  <jas@extundo.com>
67740
67741         * modules/readline: New file.
67742
67743 2005-08-02  Simon Josefsson  <jas@extundo.com>
67744
67745         * modules/getdelim: New file.
67746
67747         * modules/getline: Rewrite, don't use getndelim2.
67748
67749 2005-08-02  Simon Josefsson  <jas@extundo.com>
67750
67751         * m4/getline.m4: Separate out getdelim stuff into separate module.
67752
67753         * m4/getdelim.m4: New file.
67754
67755 2005-08-02  Simon Josefsson  <jas@extundo.com>
67756
67757         * lib/getline.h, getline.c: Rewrite.
67758
67759         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67760
67761 2005-07-31  Bruno Haible  <bruno@clisp.org>
67762
67763         * lib/lock.h (gl_lock_initializer): New macro.
67764         (gl_lock_define_initialized): Use it.
67765         (gl_rwlock_initializer): New macro.
67766         (gl_rwlock_define_initialized): Use it.
67767         (gl_recursive_lock_initializer): New macro.
67768         (gl_recursive_lock_define_initialized): Use it.
67769
67770 2005-07-30  Karl Berry  <karl@gnu.org>
67771
67772         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67773         Report from Ben Pfaff, regarding getopt.
67774
67775 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67776
67777         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67778         normal way.
67779         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67780         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67781         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67782         (gl_GETOPT): Use the new macros.  Most of the implementation
67783         is moved to the new macros.  This is for programs like Emacs
67784         that don't want all the functionality of gl_GETOPT.
67785
67786 2005-07-26  Bruno Haible  <bruno@clisp.org>
67787
67788         * m4/lock.m4: Update from GNU gettext.
67789
67790 2005-07-26  Bruno Haible  <bruno@clisp.org>
67791
67792         * lib/lock.h: Update from GNU gettext.
67793         * lib/lock.c: Update from GNU gettext.
67794
67795 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67796
67797         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67798         obsolescent AC_TRY_RUN.  Include the default includes files, for
67799         'exit'.
67800
67801 2005-07-24  Bruno Haible  <bruno@clisp.org>
67802
67803         * modules/visibility: New file.
67804         * MODULES.html.sh (Misc): Add visibility.
67805
67806 2005-07-24  Bruno Haible  <bruno@clisp.org>
67807
67808         * m4/visibility.m4: New file.
67809
67810 2005-07-24  Bruno Haible  <bruno@clisp.org>
67811
67812         * doc/visibility.texi: New file.
67813
67814 2005-07-22  Bruno Haible  <bruno@clisp.org>
67815
67816         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67817         $(ALLOCA_H), redundant through BUILT_SOURCES.
67818         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67819         redundant through BUILT_SOURCES.
67820         * modules/byteswap (Makefile.am): Remove explicit dependency on
67821         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67822         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67823         $(FNMATCH_H), redundant through BUILT_SOURCES.
67824         * modules/getopt (Makefile.am): Remove explicit dependency on
67825         $(GETOPT_H), redundant through BUILT_SOURCES.
67826         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67827         redundant through BUILT_SOURCES.
67828         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67829         redundant through BUILT_SOURCES.
67830         * modules/stdbool (Makefile.am): Remove explicit dependency on
67831         $(STDBOOL_H), redundant through BUILT_SOURCES.
67832         * modules/stdint (Makefile.am): Remove explicit dependency on
67833         $(STDINT_H), redundant through BUILT_SOURCES.
67834         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67835         Remove explicit dependency on $(SYSEXITS_H).
67836         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67837
67838 2005-07-18  Simon Josefsson  <jas@extundo.com>
67839
67840         * lib/check-version.c (check_version): Accept identical versions too.
67841
67842 2005-07-18  Bruno Haible  <bruno@clisp.org>
67843
67844         * modules/lock: New file.
67845         * MODULES.html.sh (Multithreading): New section.
67846
67847 2005-07-18  Bruno Haible  <bruno@clisp.org>
67848
67849         * m4/lock.m4: New file, from GNU gettext.
67850
67851 2005-07-18  Bruno Haible  <bruno@clisp.org>
67852
67853         * lib/lock.h: New file, from GNU gettext.
67854         * lib/lock.c: New file, from GNU gettext.
67855
67856 2005-07-18  Bruno Haible  <bruno@clisp.org>
67857
67858         * lib/lock.h (gl_once_t): New type.
67859         (gl_once_define, gl_once): New macros.
67860         * lib/lock.c (fresh_once): New variable.
67861         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67862         functions.
67863
67864 2005-07-16  Simon Josefsson  <jas@extundo.com>
67865
67866         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67867         workaround, suggested by Bruno.
67868
67869 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67870
67871         * modules/xalloc (Depends-on): Add xalloc-die.
67872         * modules/xvasprintf (Depends-on): Add xalloc-die.
67873
67874 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67875
67876         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67877         with a minor change.
67878
67879 2005-07-15  Bruno Haible  <bruno@clisp.org>
67880
67881         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67882         When using lib/poll.c, define poll as rpl_poll.
67883
67884 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67885
67886         * modules/argp (Depends-on): Remove unlocked-io.
67887
67888 2005-07-14  Derek Price  <derek@ximbiot.com>
67889
67890         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67891         for glob symlink bug.
67892
67893 2005-07-14  Bruno Haible  <bruno@clisp.org>
67894
67895         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67896         Instead, test for *_unlocked function declarations directly.
67897
67898 2005-07-11  Simon Josefsson  <jas@extundo.com>
67899
67900         * modules/size_max: New file.
67901
67902         * modules/xsize: Depend on size_max module for size_max.m4.
67903
67904 2005-07-11  Simon Josefsson  <jas@extundo.com>
67905
67906         * lib/size_max.h: New file.
67907
67908 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67911         copyright symbol and the year.
67912         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67913         (version_etc_va): Use parameterized copyright notice.
67914         Reword to conform to the current GNU coding standards.
67915
67916 2005-07-11  Karl Berry  <karl@gnu.org>
67917
67918         * doc/gnulib.texi (Quoting): new node.
67919         (Initial import): more info, from Patrice.
67920
67921 2005-07-11  Bruno Haible  <bruno@clisp.org>
67922
67923         * gnulib-tool (func_usage): Document option --avoid.
67924         (Command line options): Handle --avoid.
67925         (func_acceptable): New function.
67926         (func_modules_transitive_closure): Use it.
67927
67928 2005-07-11  Bruno Haible  <bruno@clisp.org>
67929
67930         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67931         Reported by Jim Meyering.
67932
67933 2005-07-10  Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67936         Needed when size_t is smaller than 'unsigned int'.
67937         Reported by Paul Eggert.
67938
67939 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67940
67941         * modules/argp (Depends-on): Add unlocked-io
67942
67943 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67944
67945         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67946         block of defines.
67947
67948 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67951         fix now.
67952
67953 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67954         and Paul Eggert  <eggert@cs.ucla.edu>
67955
67956         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67957         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67958
67959 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * modules/regex (Files): Add lib/regex_internal.c,
67962         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67963         (Depends-on): Add extensions.
67964         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67965
67966 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67967
67968         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67969         pathconf.
67970         * m4/same.m4 (gl_SAME): Likewise.
67971         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67972
67973         * m4/regex.m4: Adjust to new libc regex implementation.
67974         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67975         all the .c and .h parts of (the new) regex.
67976         Quote the m4 stuff better.
67977         Check for RE_ICASE bug of old gnulib.
67978         Check for REG_STARTEND of recent libc.
67979         Rename local variables from jm_* to gl_*.
67980         Quote operand of "test -f".
67981         Say "recent enough" version of libc, not "version 2".
67982         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67983         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67984         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67985         Remove check for btowc, isascii.
67986         Require AM_LANGINFO_CODESET.
67987
67988 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67989
67990         * lib/regex.c, regex.h: Sync from libc.
67991         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67992         * lib/regexec.c:
67993         New files, synced from libc, except that regex_internal.h
67994         currently has a small porting fix.
67995
67996 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67999         regex_internal.c, regexec.c.
68000         Add regex_internal.h too, but as a comment, since the libc version
68001         is currently broken in gnulib mode.
68002
68003 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68004
68005         Support programs like Emacs that use gnulib but not gettext.
68006         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68007         * modules/gettext-h: New file.
68008         * modules/gettext (Files): Remove lib/gettext.h.
68009         (Depends-on): Add gettext-h.
68010         (Makefile.am): Remove lib_SOURCES.
68011         * modules/argmatch, modules/c-stack, modules/closeout:
68012         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68013         * modules/execute, modules/file-type, modules/getaddrinfo:
68014         * modules/getopt, modules/human, modules/javacomp:
68015         * modules/javaexec, modules/mkdir-p, modules/obstack:
68016         * modules/openat, modules/pagealign_alloc, modules/pipe:
68017         * modules/quotearg, modules/regex, modules/rpmatch:
68018         * modules/unicodeio, modules/userspec, modules/version-etc:
68019         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68020         * modules/xsetenv:
68021         Depend on gettext-h, not gettext.
68022
68023 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68024
68025         * gnulib-tool (func_import): Add support for 'public domain' license.
68026         * modules/alloca, modules/atexit, modules/memmove:
68027         Now public domain, not GPL.
68028         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68029         * modules/realloc, modules/strerror, modules/strtod:
68030         Now LGPL, not GPL.
68031
68032 2005-07-05  Bruno Haible  <bruno@clisp.org>
68033
68034         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68035         autoconf CVS. Needed for mingw.
68036
68037 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68038
68039         Remove the dependency of the strftime module on the tzset module.
68040         * modules/strftime (Depends-on): Remove dependency on tzset.
68041
68042 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68043
68044         Remove the dependency of the strftime module on the tzset module.
68045         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68046         gl_FUNC_TZSET_CLOBBER.
68047
68048 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         Remove the dependency of the strftime module on the tzset module.
68051         * lib/strftime.c (my_strftime)
68052         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68053         Copy the input structure, to work around some of the bug with
68054         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68055         Solaris releases, you should also use the tzset module, but we won't
68056         require it as a dependency any more since we don't want LGPLed code
68057         to depend on GPLed code.
68058
68059 2005-07-02  Jim Meyering  <jim@meyering.net>
68060
68061         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68062         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68063         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68064         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68065
68066 2005-07-02  Jim Meyering  <jim@meyering.net>
68067
68068         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68069
68070 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68071
68072         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68073         declares only 'struct timespec;' (!).
68074
68075 2005-07-01  Jim Meyering  <jim@meyering.net>
68076
68077         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68078         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68079         * lib/save-cwd.c, tempname.c:
68080         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68081         and don't include <sys/file.h>).
68082
68083 2005-06-29  Jim Meyering  <jim@meyering.net>
68084
68085         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68086         type name.  Use the variable name instead.
68087         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68088         Likewise.
68089
68090 2005-06-28  Simon Josefsson  <jas@extundo.com>
68091
68092         * modules/check-version (Files): Add check-version.m4.
68093
68094 2005-06-28  Simon Josefsson  <jas@extundo.com>
68095
68096         * m4/check-version.m4: New file, suggested by Jim Meyering
68097         <jim@meyering.net>.
68098
68099 2005-06-28  Simon Josefsson  <jas@extundo.com>
68100
68101         * lib/check-version.h, lib/check-version.c: New files.
68102
68103 2005-06-28  Simon Josefsson  <jas@extundo.com>
68104
68105         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68106         collision with global variable.  Better indentation.  Don't
68107         increment buffer pointer beyond buffer end.  Based on comments
68108         from Paul Eggert <eggert@cs.ucla.edu>.
68109
68110         * lib/base64.h: Indent.
68111
68112 2005-06-28  Simon Josefsson  <jas@extundo.com>
68113
68114         * doc/gnulib.texi (Library version handling): New section.
68115
68116 2005-06-28  Jim Meyering  <jim@meyering.net>
68117
68118         * check-module (find_included_lib_files): Hard-code another
68119         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68120         but modules/fts-lgpl (correctly) does not list those files.
68121
68122         * modules/canonicalize (Files): Add lib/pathmax.h.
68123
68124 2005-06-25  Simon Josefsson  <jas@extundo.com>
68125
68126         * modules/check-version: New file.
68127
68128 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68129
68130         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68131         initializer of struct addrinfo, as an indication that we don't
68132         care how many members the structure has.
68133
68134 2005-06-24  Derek Price  <derek@ximbiot.com>
68135         and Bruno Haible  <bruno@clisp.org>
68136
68137         Remove stat module & update lstat.
68138         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68139         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68140         * m4/stat.m4: Remove this file.
68141
68142 2005-06-24  Derek Price  <derek@ximbiot.com>
68143         and Bruno Haible  <bruno@clisp.org>
68144
68145         Remove stat module & update lstat.
68146         * lib/stat.c: Remove this file...
68147         (slash_aware_lstat): ...moving this content and its support...
68148         * lib/lstat.c (rpl_lstat): ...into here.
68149         * lib/lstat.h: New file.
68150
68151 2005-06-24  Derek Price  <derek@ximbiot.com>
68152         and Bruno Haible  <bruno@clisp.org>
68153
68154         Remove stat module & update lstat.
68155         * config/srclist.txt (libc sources): Remove stat.
68156
68157 2005-06-24  Derek Price  <derek@ximbiot.com>
68158         and Bruno Haible  <bruno@clisp.org>
68159
68160         Remove stat module & update lstat.
68161         * MODULES.html.sh (stat): Remove.
68162         * MODULES.html: Regenerated.
68163         * modules/lstat (Description): Correct function name.
68164         (Files): Add "lstat.h".
68165         (Depends-on): Remove stat, add xalloc, stat-macros.
68166         * modules/stat: Remove this file.
68167         (Include): Add "lstat.h", remove <sys/stat.h>.
68168
68169 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68170
68171         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68172         (ranged_convert): Don't save conversion in a temporary struct.
68173         This causes a warning with GCC 4.0.0, and anyway in the typical
68174         case it's not worth the extra 100 bytes or so of code.
68175         (ranged_convert, __mktime_internal): When calling a function via a
68176         pointer P, use P () rather than (*P) (), as we now assume C89 or
68177         better.
68178
68179 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68182         "who -r" failed to give output.  Problem reported by Tim Waugh.
68183
68184         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68185         (xcalloc): Use it to avoid needless tests.
68186         Problem reported by Jim Meyering.
68187
68188 2005-06-20  Derek Price  <derek@ximbiot.com>
68189
68190         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68191         unnecessary for Autoconfs > 2.59c.
68192
68193 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68194
68195         * lib/argp.h (__option_is_short): Check upper limit of
68196         __key. Isprint() requires its argument to have the value
68197         of an unsigned char or EOF.
68198
68199 2005-06-16  Jim Meyering  <jim@meyering.net>
68200
68201         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68202         when either N or S is zero.
68203
68204 2005-06-16  Derek Price  <derek@ximbiot.com>
68205
68206         * m4/bison.m4: Declare YACC & YFLAGS precious.
68207
68208 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68211         multibyte string or pattern, fall back on unibyte matching.
68212         Problem reported by James Youngman.
68213
68214 2005-06-08  Bruno Haible  <bruno@clisp.org>
68215
68216         * modules/csharpcomp: New file.
68217         * MODULES.html.sh (C#): Add csharpcomp.
68218
68219 2005-06-08  Bruno Haible  <bruno@clisp.org>
68220
68221         * m4/csharpcomp.m4: New file, from GNU gettext.
68222
68223 2005-06-08  Bruno Haible  <bruno@clisp.org>
68224
68225         * lib/csharpcomp.h: New file, from GNU gettext.
68226         * lib/csharpcomp.c: New file, from GNU gettext.
68227         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68228
68229 2005-06-08  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68232         warning on mingw.
68233
68234 2005-06-07  Derek Price  <derek@ximbiot.com>
68235
68236         Sync from CVS.
68237         * lib/glob_.h: Indent nested #ifdef.
68238
68239 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68240
68241         Sync from coreutils.
68242         Use "file name" when talking about file names, instead of "filename"
68243         or "path", as per the GNU coding standards.
68244         * lib/mkdir-p.c: Renamed from makepath.c.
68245         (make_dir_parents): Renamed from make_path.  All callers changed.
68246         * lib/mkdir-p.h: Likewise.  All includers changed.
68247         * lib/filenamecat.c: Renamed from path-concat.c.
68248         (file_name_concat): Renamed from path_concat.  All callers changed.
68249         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68250         * lib/filenamecat.h: Likewise.  All includers changed.
68251         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68252         in comments or local variable names.
68253         * lib/basename.c: Likewise.
68254         * lib/canonicalize.c, canonicalize.h: Likewise.
68255         * lib/dirname.c, dirname.h: Likewise.
68256         * lib/euidaccess.c: Likewise.
68257         * lib/exclude.c: Likewise
68258         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68259         * lib/fsusage.c, fsuage.h: Likewise.
68260         * lib/fts.c, fts_.h: Likewise.
68261         * lib/getcwd.c: Likewise.
68262         * lib/getloadavg.c: Likewise.
68263         * lib/mkstemp.c: Likewise.
68264         * lib/mountlist.c, mountlist.h: Likewise.
68265         * lib/openat.c, openat.h: Likewise.
68266         * lib/readlink-stub.c: Likewise.
68267         * lib/readutmp.c, readutmp.h: Likewise.
68268         * lib/rename.c: Likewise.
68269         * lib/rmdir.c: Likewise.
68270         * lib/same.c: Likewise.
68271         * lib/savedir.c: Likewise.
68272         * lib/stripslash.c: Likewise.
68273         * lib/tempname.c: Likewise.
68274         * lib/xreadlink.c: Likewise.
68275         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68276         All uses changed.
68277         * lib/exclude.h: Likewise.
68278
68279         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68280         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68281         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68282         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68283         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68284         files have been getting away with it for years (MORE/BSD 4.3
68285         is extinct now).
68286         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68287         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68288
68289         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68290         Define to 256, not 255, as per modern POSIX.
68291
68292 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68293
68294         Sync from coreutils.
68295         Use "file name" when talking about file names, instead of "filename"
68296         or "path", as per the GNU coding standards.
68297         * MODULES.html.sh: mkdir-p renamed from makepath.
68298         filenamecat renamed from path-concat.
68299         * modules/filenamecat: Renamed from modules/path-concat.
68300         (Files): filenamecat.h and filenamecat.c renamed from
68301         path-concat.h and path-concat.c.
68302         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68303         (Include): filenamecat.h, not path-concat.h.
68304         * modules/mkdir-p: Renamed from modules/makepath.
68305         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68306         makepath.c.
68307         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68308         (Include): mkdir-p.h, not makepath.h.
68309
68310 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         Sync from coreutils.
68313         * m4/mkdir-p.m4: Renamed from makepath.m4.
68314         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68315         Rename files from makepath.c to mkdir-p.c, and from
68316         makepath.h to mkdir-p.h.
68317         * m4/filenamecat.m4: Renamed from path-concat.m4.
68318         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68319         Rename files from path-concat.c to filenamecat.c,
68320         and from path-concat.h to filenamecat.h.
68321         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68322         "file name" in local variables or comments.
68323         * m4/rename.m4: Likewise.
68324
68325 2005-06-01  Bruno Haible  <bruno@clisp.org>
68326
68327         * modules/csharpexec: New file.
68328         * MODULES.html.sh (C#): New section.
68329
68330 2005-06-01  Bruno Haible  <bruno@clisp.org>
68331
68332         * m4/csharp.m4: New file, from GNU gettext.
68333         * m4/csharpexec.m4: New file, from GNU gettext.
68334
68335 2005-06-01  Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/csharpexec.h: New file, from GNU gettext.
68338         * lib/csharpexec.c: New file, from GNU gettext.
68339         * lib/csharpexec.sh.in: New file, from GNU gettext.
68340
68341 2005-05-31  Derek Price  <derek@ximbiot.com>
68342             Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         Sync from cvs.
68345         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68346
68347 2005-05-31  Derek Price  <derek@ximbiot.com>
68348             Paul Eggert  <eggert@cs.ucla.edu>
68349
68350         Sync from cvs.
68351         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68352
68353 2005-05-29  Derek Price  <derek@ximbiot.com>
68354
68355         * config/srclist.txt (glob_.h, glob.c): Add these files.
68356
68357 2005-05-29  Derek Price  <derek@ximbiot.com>
68358
68359         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68360         * modules/glob: New file.
68361         * modules/getlogin_r: Add link to POSIX spec in description.
68362
68363 2005-05-29  Derek Price  <derek@ximbiot.com>
68364             Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         * m4/glob.m4: New file.
68367
68368 2005-05-29  Derek Price  <derek@ximbiot.com>
68369             Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * lib/glob_.h, lib/glob.c: New files.
68372
68373 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68374
68375         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68376         * modules/fts-lgpl (Depends-on): Remove gettext.
68377
68378 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68379
68380         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68381         and don't require gt_INTTYPES_PRI.
68382
68383 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68384
68385         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68386
68387         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68388         the configuration hassle isn't worth it.
68389         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68390         (LONGEST_MODIFIER, PRIuMAX): Remove.
68391
68392 2005-05-27  Bruno Haible  <bruno@clisp.org>
68393
68394         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68395
68396 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68399         _POSIX_PTHREAD_SEMANTICS for Solaris.
68400
68401 2005-05-25  Derek Price  <derek@ximbiot.com>
68402
68403         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68404
68405 2005-05-25  Derek Price  <derek@ximbiot.com>
68406             Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68409         * lib/getlogin_r.c, getlogin_r.h: New files.
68410
68411 2005-05-25  Bruno Haible  <bruno@clisp.org>
68412             Derek Price  <derek@ximbiot.com>
68413
68414         * lib/getlogin_r.h: Simplify API documentation.
68415
68416 2005-05-23  Derek Price  <derek@ximbiot.com>
68417
68418         * modules/minmax (Files): Add m4/minmax.m4.
68419         (configure.ac): Add gl_MINMAX.
68420
68421 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68424         so that unistd-safer.h (GPL'ed code) need not be included.
68425
68426 2005-05-22  Bruno Haible  <bruno@clisp.org>
68427
68428         * m4/minmax.m4: New file.
68429         Based on a patch by Derek Price <derek@ximbiot.com>.
68430
68431 2005-05-22  Bruno Haible  <bruno@clisp.org>
68432
68433         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68434         (INT64_MIN): Fix definition.
68435         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68436
68437         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68438         NEED_SIGNED_INT_TYPES.
68439
68440         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68441         HAVE_SYSTEM_INTTYPES.
68442
68443 2005-05-22  Bruno Haible  <bruno@clisp.org>
68444
68445         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68446         Also include <sys/param.h> if it defines MIN, MAX.
68447         Based on a patch by Derek Price <derek@ximbiot.com>.
68448
68449 2005-05-21  Jim Meyering  <jim@meyering.net>
68450
68451         * modules/fts (Files): Add m4/inttypes-pri.m4.
68452         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68453
68454 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68455
68456         New fts module.
68457         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68458         (setup_dir, free_dir): New functions.
68459         (enter_dir, leave_dir): Define trivial
68460         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68461         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68462         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68463         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68464         Move to fts-cycle.c.
68465         (fts_open): Use setup_dir.
68466         (fts_close): Use free_dir.
68467         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68468         This adds a label and some gotos, but the alternatives were messier.
68469         Check for memory allocation failure when entering a dir.
68470         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68471         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68472         (FTS): New member fts_cycle, that is a union that contains the
68473         old active_dir_ht and cycle_state.  All uses changed to mention
68474         fts_cycle.ht and fts_cycle.state.
68475         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68476         fts.c, with the following changes:
68477         (setup_dir, free_dir): New functions.
68478         (enter_dir): Now returns bool.  Return true if successful, false
68479         if memory exhausted.  All callers changed.
68480         Do not bother partly cleaning up on
68481         memory allocation failure; that is free_dir's job.
68482         However, free ad if hash_insert fails, to avoid memory leak.
68483         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68484         fts->fts_options to see which union member to use.
68485
68486 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68487
68488         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68489         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68490
68491 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68492
68493         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68494
68495 2005-05-20  Jim Meyering  <jim@meyering.net>
68496
68497         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68498         Now a macro, to pacify GCC.
68499
68500 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68501
68502         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68503         of -1.
68504
68505 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68506
68507         * lib/chown.c (rpl_chown): Return -1 on failure.
68508
68509 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68512         Don't check for stddef.h.
68513         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68514         don't use its results.
68515         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68516         since we include them unconditionally.  Don't require
68517         AM_STDBOOL_H, since stdbool is a prerequisite.
68518         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68519         since we assume C89 or better.
68520         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68521         as we don't use their results.
68522         Don't check for fchdir, memmove, memset, strrchr, as we use
68523         them unconditionally.
68524         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68525         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68526
68527 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68528
68529         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68530         Include <stddef.h> unconditionally, since we assume C89 now.
68531         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68532         * lib/fts.c: Include fts_.h first, to check interface.
68533         Do not include intprops.h; no longer needed.
68534         Include cycle-check.h and hash.h, since fts_.h no longer does.
68535         Remove unnecessary casts of closedir to void.
68536         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68537         decide whether to decrement nlinks.
68538         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68539         (FTS): Use struct hash_table * instead of Hash_table, so that
68540         we no longer need to include hash.h here.
68541
68542 2005-05-18  Jim Meyering  <jim@meyering.net>
68543
68544         * modules/dirfd (License): Change to LGPL.  Most of the code
68545         is already in the public domain.
68546
68547 2005-05-18  Jim Meyering  <jim@meyering.net>
68548
68549         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68550         Reported by Yoann Vandoorselaere.
68551
68552 2005-05-17  Jim Meyering  <jim@meyering.net>
68553
68554         * m4/fts.m4: New file, from coreutils.
68555
68556 2005-05-17  Jim Meyering  <jim@meyering.net>
68557
68558         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68559
68560 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68561
68562         Sync from coreutils.
68563         * m4/unlinkdir.m4: New file.
68564
68565 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68566
68567         Sync from coreutils.
68568         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68569         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68570         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68571         White space changes only.
68572         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68573         special.
68574         * lib/yesno.c: Include getline.h, not ctype.h.
68575         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68576         Use getline to remove arbitrary restriction on response length.
68577
68578 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68579
68580         * config/srclist-update: Spell out "Street" in FSF postal
68581         mail address; this is the style the FSF seems to prefer.
68582
68583         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68584         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68585         this updates FSF postal mail address.
68586
68587         Sync from coreutils.
68588         * modules/unlinkdir: New file.
68589         * modules/yesno (Depends-on): Add getline.
68590         * MODULES.html.sh (File system functions): Add unlinkdir.
68591
68592 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68595         lib/strsep.h:
68596         Change the initial comment to refer to GPL, not LGPL.
68597         gnulib-tool will change it to LGPL as needed.
68598
68599         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68600         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68601         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68602         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68603         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68604         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68605         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68606         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68607         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68608         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68609         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68610         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68611         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68612         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68613         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68614         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68615         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68616         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68617         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68618         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68619         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68620         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68621         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68622         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68623         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68624         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68625         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68626         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68627         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68628         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68629         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68630         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68631         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68632         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68633         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68634         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68635         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68636         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68637         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68638         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68639         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68640         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68641         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68642         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68643         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68644         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68645         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68646         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68647         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68648         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68649         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68650         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68651         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68652         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68653         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68654         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68655         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68656         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68657         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68658         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68659         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68660         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68661         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68662         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68663         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68664         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68665         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68666         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68667         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68668         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68669         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68670         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68671         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68672         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68673         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68674         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68675         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68676         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68677         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68678         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68679         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68680         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68681         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68682         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68683         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68684         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68685         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68686         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68687         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68688         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68689         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68690         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68691         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68692         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68693         lib/yesno.c, lib/yesno.h:
68694         Update FSF postal mail address.
68695
68696 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68697
68698         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68699         tests/test-memmem.c, tests/test-stpncpy.c:
68700         Update FSF postal mail address.
68701
68702 2005-05-13  Bruno Haible  <bruno@clisp.org>
68703
68704         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68705         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68706         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68707         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68708         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68709         Add support for 64-bit integers in the MSVC compiler.
68710
68711 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68712
68713         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68714
68715 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68716
68717         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68718
68719 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68720
68721         * doc/getdate.texi (General date syntax): Don't say that date
68722         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68723         Problem reported by Nic Ferrier.
68724
68725 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68726
68727         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68728         specified in ai_socktype. Fix invalid ai_protocol
68729         check. ai_protocol is usually set to 0 or depending on
68730         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68731         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68732         ai_socktype / ai_protocol in the returned addrinfo structure.
68733
68734 2005-05-10  Simon Josefsson  <jas@extundo.com>
68735
68736         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68737         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68738
68739 2005-05-10  Karl Berry  <karl@gnu.org>
68740
68741         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68742         (from http://www.gnu.org/licenses).
68743         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68744         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68745         fdl.texi suffices.
68746
68747 2005-05-10  Karl Berry  <karl@gnu.org>
68748
68749         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68750         (COPYING.DOC): remove.
68751
68752         * config/srclist-update: new FSF address.
68753
68754 2005-05-10  Derek Price  <derek@ximbiot.com>
68755
68756         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68757         possible.
68758
68759 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68760             Bruno Haible  <bruno@clisp.org>
68761
68762         * modules/inet_ntop: New file.
68763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68764         inet_ntop.
68765
68766 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68767             Bruno Haible  <bruno@clisp.org>
68768
68769         * m4/inet_ntop.m4: New file.
68770
68771 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68772             Bruno Haible  <bruno@clisp.org>
68773
68774         * lib/inet_ntop.h: New file.
68775         * lib/inet_ntop.c: New file, from glibc with modifications.
68776
68777 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * modules/time_r (License): Change to LGPL.
68780         * modules/extensions (License): Change to LGPL.  Actually,
68781         the license is more permissive than that, but currently gnulib-tool
68782         doesn't know how to handle more-permissive licenses.
68783
68784         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68785         Problem reported by Dave Love.
68786
68787 2005-05-08  Jim Meyering  <jim@meyering.net>
68788
68789         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68790         blank.
68791
68792 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68793
68794         * modules/argmatch (Depends-on): Add stdbool.
68795         * modules/backupfile (Depends-on): Likewise.
68796         * modules/chdir-long (Depends-on): Likewise.
68797         * modules/closeout (Depends-on): Likewise.
68798         * modules/cycle-check (Depends-on): Likewise.
68799         * modules/dirname (Depends-on): Likewise.
68800         * modules/fnmatch (Depends-on): Likewise.
68801         * modules/fsusage (Depends-on): Likewise.
68802         * modules/fwriteerror (Depends-on): Likewise.
68803         * modules/getcwd (Depends-on): Likewise.
68804         * modules/getloadavg (Depends-on): Likewise.
68805         * modules/hard-locale (Depends-on): Likewise.
68806         * modules/makepath (Depends-on): Likewise.
68807         * modules/mountlist (Depends-on): Likewise.
68808         * modules/nanosleep (Depends-on): Likewise.
68809         * modules/posixtm (Depends-on): Likewise.
68810         * modules/quotearg (Depends-on): Likewise.
68811         * modules/readtokens (Depends-on): Likewise.
68812         * modules/readtokens0 (Depends-on): Likewise.
68813         * modules/readutmp (Depends-on): Likewise.
68814         * modules/save-cwd (Depends-on): Likewise.
68815         * modules/strftime (Depends-on): Likewise.
68816         * modules/userspec (Depends-on): Likewise.
68817         * modules/utimecmp (Depends-on): Likewise.
68818         * modules/xgetcwd (Depends-on): Likewise.
68819         * modules/xnanosleep (Depends-on): Likewise.
68820         * modules/xstrtod (Depends-on): Likewise.
68821         * modules/yesno (Depends-on): Likewise.
68822
68823 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68826         needless checks.
68827
68828 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         Merge from coreutils.  Among other things,
68831         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68832         * lib/fd-safer.c: New file.
68833         * lib/fcntl-safer.h, open-safer.c: Remove.
68834         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68835         * lib/dup-safer.c: Include unistd-safer.h first.
68836         Don't include errno.h.
68837         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68838         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68839         * lib/file-type.c: Rely on file-type.h change.
68840         * lib/getloadavg.c: Include unistd-safer.h.
68841         (getloadavg): Use safer open.
68842         * lib/getusershell.c: Include "stdio-safer.h".
68843         (getusershell): Use safer fopen.
68844         * lib/long-options.c (long_options): Use NULL rather than 0.
68845         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68846         'free'.
68847         * lib/modechange.c: Likewise.
68848         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68849         (MODE_DONE): New constant.
68850         (struct mode_change): Remove 'next' member.
68851         (make_node_op_equals): New function; like the old one of the
68852         same name, except it allocates an array.
68853         (mode_compile, mode_create_from_ref): Use it.
68854         (mode_compile): Allocate result as an array, not a linked list.
68855         Parse octal string ourself, so that we catch mistakes like "+0".
68856         (mode_adjust): Arg is an array, not a linked list.
68857         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68858         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68859         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68860         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68861         Remove.  This is now stat-macros.h's job.
68862         (talloc): Remove.  All callers replaced by xalloc, so that
68863         our invokers don't have to worry about reporting memory failures.
68864         (make_node_op_equals): Remove.
68865         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68866         New constants.
68867         (struct mode_change): Moved here from modechange.h.
68868         (mode_append_entry): Remove.
68869         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68870         apps to have incorrect behavior.  Use simpler algorithm for head
68871         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68872         Detect more invalid usages rather than having somewhat-random behavior.
68873         Don't insert an "a=" action, as that leads to incorrect behavior.
68874         (mode_compile, mode_create_from_ref): Return NULL on error instead
68875         of an enum, since now there's only one way to have an error.  All
68876         callers changed.
68877         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68878         at the correct time.  Simplify calculation of "+u" and its ilk.
68879         Don't mishandle "+X".
68880         (mode_free): Remove "register" and localize decls.
68881         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68882         (struct mode_change): Move to modechange.c; callers don't
68883         need to see this stuff.
68884         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68885         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68886         (mode_change, mode_adjust): Reflect the new signatures noted above.
68887         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68888         that might redefine system include files.
68889         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68890         (my_usleep): Use NULL rather than (void *) 0.
68891         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68892         Use siginterrupt to specify that system calls should be interrupted.
68893         (rpl_nanosleep): Move initialization of suspended closer to call of
68894         my_usleep.
68895         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68896         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68897         (desirable_utmp_entry): New function.
68898         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68899         using x2nrealloc, to simplify logic.
68900         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68901         size calculation.  Do not assume utmp file is a regular file.
68902         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68903         (READ_UTMP_CHECK_PIDS): New constant.
68904         * lib/save-cwd.c: Include unistd-safer.h.
68905         (save_cwd): Use fd_safer.
68906         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68907         [!_LIBC] Include "stat-macros.h" instead.
68908         * lib/unistd-safer.h (fd_safer): New decl.
68909
68910 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68911
68912         * modules/getloadavg (Depends-on): Add unistd-safer.
68913         * modules/getusershell (Depends-on): Add stdio-safer.
68914         * modules/lstat (Depends-on): Remove xalloc.
68915         * modules/mkstemp (Depends-on): Add stat-macros.
68916         * modules/modechange (Depends-on): Remove xstrtol.
68917         Add stat-macros, xalloc.
68918         * modules/save-cwd (Depends-on): Add unistd-safer.
68919         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68920         * modules/unistd-safer (Files): Add lib/fd-safer.c
68921         (Makefile.am): Remove lib_SOURCES.
68922
68923         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68924         Remove fcntl-safer; unistd-safer supersedes it.
68925
68926 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68927
68928         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68929         AC_HEADER_STAT.
68930         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68931         (gl_PREREQ_CHOWN): Remove.
68932         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68933         it.  Don't require AC_HEADER_STAT.
68934         (gl_PREREQ_LSTAT): Remove.
68935         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68936         Don't require AC_HEADER_STAT.
68937         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68938         (gl_PREREQ_RMDIR): Remove.
68939         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68940         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68941         the stat-macros module a prerequisite.
68942         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68943         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68944         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68945         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68946         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68947         variable names.
68948         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68949         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68950         variable prefixes.
68951         * m4/fcntl-safer.m4: Remove.
68952         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68953         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68954         Invoke gl_PREREQ_FD_SAFER.
68955         (gl_PREREQ_FD_SAFER): New macro.
68956         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68957         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68958         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68959         Remove duplicate call to AC_LIBOBJ(readutmp).
68960         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68961
68962         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68963         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68964
68965 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * MODULES.html.sh (Misc): Add byteswap.
68968
68969 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68970
68971         * modules/getcwd (Depends-on): Add extensions.
68972         * modules/openat (Depends-on): Likewise.
68973
68974 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68975
68976         * modules/byteswap: New file.
68977
68978 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68979
68980         * m4/byteswap.m4: New file.
68981
68982 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68983
68984         * lib/byteswap_.h: New file.
68985
68986 2005-04-25  Karl Berry  <karl@gnu.org>
68987
68988         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68989
68990 2005-04-25  Albert Chin  <china@thewrittenword.com>
68991
68992         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68993         Toolkit C bug.
68994
68995 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68996
68997         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68998         (func_ln_if_changed): Remove forcibly for no error message
68999         in case file does not exist.
69000
69001 2005-04-19  Simon Josefsson  <jas@extundo.com>
69002
69003         * gnulib-tool (Options): Make --symlink mean --symbolic.
69004
69005 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69006
69007         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69008
69009 2005-04-16  Simon Josefsson  <jas@extundo.com>
69010
69011         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69012
69013 2005-04-15  Simon Josefsson  <jas@extundo.com>
69014
69015         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69016
69017 2005-04-15  Simon Josefsson  <jas@extundo.com>
69018
69019         * gnulib-tool: Rename --symlink to --symbolic.
69020
69021 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69022
69023         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69024         symbolic links to files instead of copying/moving.  Add --aux-dir,
69025         specifying directory relative --dir where auxiliary build tools
69026         are placed.
69027
69028 2005-04-14  Bruno Haible  <bruno@clisp.org>
69029
69030         * modules/allocsa (License): Change to LGPL.
69031         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69032
69033 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69034
69035         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69036         that "UTC +1 second" continues to work.  Problem reported
69037         by Dmitry V. Levin.
69038         (relunit_snumber): New rule.
69039         (relunit): Use it.
69040
69041 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * lib/getdate.y (universal_time_zone_table): New constant.
69044         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69045         universal_time_zone_table.
69046         (lookup_zone): Prefer universal_time_zone_table to
69047         local_time_zone_table, so that "GMT" time stamps are allowed in
69048         London during the summer.  Problem reported by Ian Abbott.
69049
69050 2005-04-12  Jim Meyering  <jim@meyering.net>
69051
69052         * lib/human.c (humblock): Set *options even when returning due to
69053         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69054         warning from gcc-4.
69055
69056 2005-04-09  Jim Meyering  <jim@meyering.net>
69057
69058         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69059         -Wuninitialized: initialize tm0.tm_year.
69060
69061 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69062
69063         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69064         count, since there's no maximum.  All uses changed.
69065         Add member dsts_seen.
69066         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69067         not being INT_MAX.
69068         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69069         Use pc_rels_seen to decide whther a date is absolute.
69070
69071         * lib/getdate.y (number): Don't overwrite year.
69072         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69073         check.
69074
69075 2005-04-02  Simon Josefsson  <jas@extundo.com>
69076
69077         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69078         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69079
69080 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69081
69082         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69083         where no absolute path name can be longer than PATH_MAX.
69084
69085 2005-03-27  Jim Meyering  <jim@meyering.net>
69086
69087         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69088
69089 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69092         "one's complement" -> "ones' complement" in comment, as per Knuth.
69093         "value of type" -> "type or expression" in comment.
69094         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69095
69096 2005-03-26  Jim Meyering  <jim@meyering.net>
69097
69098         Comment nits.
69099         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69100         Correct typos: s/or/of/.
69101
69102 2005-03-26  Jim Meyering  <jim@meyering.net>
69103
69104         * modules/check-include-files: Move to ../ and rename to...
69105         * check-module: ...this.
69106
69107 2005-03-25  Jim Meyering  <jim@meyering.net>
69108
69109         * modules/xvasprintf (Files): Add xalloc.h.
69110
69111 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69112
69113         * modules/gettext (Files): config/config.rpath ->
69114         build-aux/config.rpath
69115         * modules/iconv (Files): Likewise.
69116         Problem reported by Oskar Liljeblad.
69117
69118 2005-03-23  Jim Meyering  <jim@meyering.net>
69119
69120         * modules/check-include-files: New script to check for
69121         missing dependencies, multiple includes, etc.
69122
69123         * modules/c-strtold (Depends-on): Add xalloc.
69124         * modules/c-strtod (Depends-on): Add xalloc.
69125         * modules/hash (Depends-on): Add xalloc.
69126         (Files): Remove lib/xalloc.h.
69127
69128         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69129         * modules/userspec (Files): Add lib/inttostr.h.
69130
69131 2005-03-23  Jim Meyering  <jim@meyering.net>
69132
69133         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69134
69135 2005-03-22  Jim Meyering  <jim@meyering.net>
69136
69137         * modules/stat-macros: New module.
69138         * modules/canonicalize, modules/euidaccess, modules/file-type,
69139         * modules/filemode, modules/lchown, modules/makepath,
69140         * modules/rmdir, modules/stat: Depend on new stat-macros module
69141         rather than listing lib/stat-macros.h manually.
69142         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69143
69144 2005-03-22  Jim Meyering  <jim@meyering.net>
69145
69146         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69147
69148 2005-03-22  Bruno Haible  <bruno@clisp.org>
69149
69150         * config/srclist.txt: Replace target directory 'config' with
69151         'build-aux'.
69152         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69153         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69154         ../build-aux/.
69155
69156 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69157
69158         * modules/chdir-long (Depends-on): Add mempcpy.
69159
69160         * modules/acl, modules/backupfile, modules/c-strtod,
69161         modules/c-strtold, modules/canon-host, modules/canonicalize,
69162         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69163         modules/exclude, modules/exitfail, modules/file-type,
69164         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69165         modules/getdate, modules/getline, modules/getpagesize,
69166         modules/getpass, modules/getugroups, modules/group-member,
69167         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69168         modules/inttostr, modules/long-options, modules/makepath,
69169         modules/md5, modules/memcasecmp, modules/memcoll,
69170         modules/modechange, modules/mountlist, modules/path-concat,
69171         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69172         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69173         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69174         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69175         modules/strftime, modules/strndup, modules/strverscmp,
69176         modules/timespec, modules/unlocked-io, modules/userspec,
69177         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69178         modules/yesno:
69179         Remove lib_SOURCES line from Makefile.am section, as this is now
69180         done automatically by the corresponding Autoconf macro.
69181
69182 2005-03-21  Jim Meyering  <jim@meyering.net>
69183
69184         Changes imported from coreutils.
69185
69186         * lib/cycle-check.c: Don't include xalloc.h.
69187
69188         * lib/path-concat.c: Don't include assert.h.
69189         (path_concat): Remove assertion that would have triggered
69190         for ABASE starting with more than one slash.
69191         Reported by Andreas Schwab.
69192
69193         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69194         properly when ABASE is an absolute file name.
69195         Correct the description of this function.
69196         Include <assert.h>.
69197         Add an assertion and a test driver.
69198         This fixes a bug introduced on 2004-07-02.
69199         Andreas Schwab reported the resulting failure of cp --parents:
69200         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69201
69202 2005-03-21  Jim Meyering  <jim@meyering.net>
69203
69204         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69205         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69206
69207 2005-03-21  Jim Meyering  <jim@meyering.net>
69208         and  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69211         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69212         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69213         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69214         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69215         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69216         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69217         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69218         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69219         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69220         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69221         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69222         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69223         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69224         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69225         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69226         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69227         for these modules.
69228
69229 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69230
69231         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69232         (which shouldn't happen), generate nothing instead of returning 0
69233         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69234
69235 2005-03-16  Bruno Haible  <bruno@clisp.org>
69236
69237         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69238         HAVE_LONGLONG_64BIT.
69239
69240 2005-03-16  Bruno Haible  <bruno@clisp.org>
69241
69242         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69243         HAVE_LONGLONG_64BIT.
69244
69245 2005-03-16  Bruno Haible  <bruno@clisp.org>
69246
69247         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69248         HAVE_LONGLONG_64BIT.
69249
69250 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69253         reliably distinguish strftime failure from empty output on POSIX
69254         hosts.
69255
69256 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69259         (iconv_string): Don't guess a size-zero buffer, as that might cause
69260         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69261         result would be 'too large', where 'too large' is (heuristically)
69262         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69263         overflow concerns.  This will prevent some unwanted malloc failures
69264         when the inputs are very large.
69265
69266 2005-03-15  Karl Berry  <karl@gnu.org>
69267
69268         * config/srclist.txt (config.rpath): from gettext.
69269         * config/config.rpath: update.
69270
69271 2005-03-15  Bruno Haible  <bruno@clisp.org>
69272
69273         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69274         to 'negate'.
69275
69276         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69277         variable.
69278
69279         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69280         results.
69281
69282 2005-03-14  Simon Josefsson  <jas@extundo.com>
69283
69284         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69285         <fx@gnu.org>.
69286
69287 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69288
69289         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69290         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69291         intprops.h.
69292         * lib/strtol.c: Likewise.
69293
69294 2005-03-14  Jim Meyering  <jim@meyering.net>
69295
69296         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69297         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69298         to be nonzero so that we (and caller) can detect the difference
69299         between a valid zero-length expansion and an error return, even
69300         when the underlying strftime fails before writing anything into
69301         that location.
69302
69303 2005-03-14  Bruno Haible  <bruno@clisp.org>
69304
69305         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69306         Update from GNU gettext 0.14.3.
69307
69308 2005-03-10  Jim Meyering  <jim@meyering.net>
69309
69310         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69311
69312 2005-03-10  Jim Meyering  <jim@meyering.net>
69313
69314         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69315         so that this module works on systems without fchdir.
69316
69317 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69318
69319         Factor int-properties macros into a single file, except for
69320         glibc-related files.
69321         * lib/intprops.h: New file.
69322         * lib/getloadavg.c: Include it instead of limits.h.
69323         (INT_STRLEN_BOUND): Remove.
69324         * lib/human.c: Include intprops.h.
69325         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69326         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69327         302/1000.
69328         * lib/inttostr.h: Include intprops.h instead of limits.h.
69329         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69330         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69331         for consistency with intprops.h.
69332         (time_t_is_integer, twos_complement_arithmetic): Use them.
69333         * lib/sig2str.h: Include <signal.h>, intprops.h.
69334         (INT_STRLEN_BOUND): Remove.
69335         * lib/strftime.c (TYPE_SIGNED): Remove.
69336         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69337         * lib/strtol.c: Adjust comments to match intprops.h.
69338         * lib/userspec.c: Include intprops.h.
69339         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69340         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69341         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69342         instead of rolling our own expressions.
69343         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69344
69345         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69346         instead of int.
69347         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69348         the right thing even if adding 1900 would overflow.  Similarly
69349         for tm_mon + 1 and tm_yday + 1.
69350         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69351         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69352         (DO_SIGNED_NUMBER): New macro.
69353         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69354
69355 2005-03-07  Bruno Haible  <bruno@clisp.org>
69356
69357         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69358
69359 2005-03-07  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69362
69363 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69364
69365         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69366         (func_import): Only replace files via --import when they have actually
69367         changed.
69368
69369 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69370
69371         * m4/mmap-anon.m4: New file.
69372         * m4/pagealign_alloc.m4: New file.
69373
69374 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69375             Bruno Haible  <bruno@clisp.org>
69376
69377         * modules/pagealign_alloc: New file.
69378         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69379
69380 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69381             Bruno Haible  <bruno@clisp.org>
69382
69383         * lib/pagealign_alloc.h: New file.
69384         * lib/pagealign_alloc.c: New file.
69385
69386 2005-03-03  Bruno Haible  <bruno@clisp.org>
69387
69388         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69389         Use an all-permissive copyright notice, recommended by RMS.
69390
69391 2005-03-02  Bruno Haible  <bruno@clisp.org>
69392
69393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69394         of AIX, the replacement has to be done only after <string.h> is
69395         included, therefore not in config.h. stpncpy.h does the replacement,
69396         and stpncpy.c uses it.
69397
69398 2005-03-02  Bruno Haible  <bruno@clisp.org>
69399
69400         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69401         stpncpy.c uses it.
69402
69403 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69404
69405         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69406         The workaround isn't strictly needed for POSIX conformance, and
69407         it's too much of a pain to configure and maintain.  We'll ask
69408         people to fix their kernels instead.
69409         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69410         (NANOSLEEP_BUG_WORKAROUND): Remove.
69411         (xnanosleep): Remove the workaround.
69412
69413 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69414
69415         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69416         Reported by Derek Price.
69417         (Include): Add "timespec.h".
69418
69419         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69420
69421 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69422
69423         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69424         to detect nanosleep bug.
69425
69426 2005-03-01  Bruno Haible  <bruno@clisp.org>
69427
69428         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69429
69430 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         * modules/gethrxtime: New file.
69433         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69434         (Depends-on): Add gethrxtime.
69435         (configure.ac): Add gl_XNANOSLEEP.
69436         (Makefile.am): Remove lib_SOURCES line.
69437
69438 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69439
69440         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69441         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69442
69443 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69444
69445         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69446         * lib/timespec.h (gettime): Return void, since it always
69447         succeeds now.  All uses changed.
69448         * lib/gettime.c (gettime): Likewise.
69449         [HAVE_NANOTIME]: Prefer nanotime.
69450         Assume gettimeofday succeeds, as POSIX requires.
69451         Assime time () succeeds, since other code already does.
69452         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69453         (timespec_subtract): Remove.
69454         (NANOSLEEP_BUG_WORKAROUND): New constant.
69455         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69456         things considerably.  Use it only on GNU/Linux hosts, since the
69457         workaround shouldn't be needed elsewhere.
69458
69459 2005-02-24  Bruno Haible  <bruno@clisp.org>
69460
69461         * modules/gettext (Files): Add m4/glibc2.m4.
69462
69463 2005-02-24  Bruno Haible  <bruno@clisp.org>
69464
69465         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69466         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69467         * m4/progtest.m4:
69468         Update from GNU gettext 0.14.2.
69469         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69470
69471 2005-02-24  Bruno Haible  <bruno@clisp.org>
69472
69473         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69474         * lib/config.charset: Update from GNU gettext 0.14.2.
69475
69476 2005-02-24  Bruno Haible  <bruno@clisp.org>
69477
69478         * lib/gettext.h: Update from GNU gettext 0.14.2.
69479
69480 2005-02-23  Simon Josefsson  <jas@extundo.com>
69481
69482         * m4/iconvme.m4: New file.
69483
69484 2005-02-23  Jim Meyering  <jim@meyering.net>
69485
69486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69487         change.
69488         Thanks to Bruno Haible for catching it.
69489
69490 2005-02-22  Simon Josefsson  <jas@extundo.com>
69491
69492         * modules/iconvme: New file.
69493
69494         * MODULES.html.sh: Add iconvme.
69495
69496 2005-02-22  Simon Josefsson  <jas@extundo.com>
69497
69498         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69499
69500 2005-02-22  Simon Josefsson  <jas@extundo.com>
69501
69502         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69503
69504 2005-02-22  Jim Meyering  <jim@meyering.net>
69505
69506         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69507         s/ifndef/ifdef/.
69508
69509 2005-02-20  Neil Conway  <neilc@samurai.com>
69510
69511         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69512         returned by OSX/Darwin if the specified buffer is not large
69513         enough for the hostname.
69514
69515 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69516
69517         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69518         pass it to _help, otherwise the latter coredumps trying to
69519         dereference state.root_argp.
69520
69521 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         * modules/chdir-long (Depends-on): Add memrchr.
69524         * modules/memrchr (Files): Add lib/memrchr.h.
69525         (Include): "memrchr.h".
69526
69527 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69530
69531 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * lib/memrchr.h: New file.
69534         * lib/chdir-long.c: Include it.
69535         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69536         Don't bother including stddef.h.
69537
69538 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69541         inclusion.
69542         Include <sys/types.h>, for dev_t.
69543         (ME_DUMMY, ME_REMOTE): Move from here....
69544         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69545         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69546         Dmitry V. Levin.
69547         Include mountlist.h first, to test the interface.
69548
69549 2005-01-29  Bruno Haible  <bruno@clisp.org>
69550
69551         * lib/progname.c (program_name): Initialize.
69552         Needed when linking statically on MacOS X.
69553
69554 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         Sync from coreutils.
69557         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69558         (Depends-on): Add c-strtod.
69559         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69560
69561 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69562
69563         Sync from coreutils.
69564         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69565
69566         Remove files that are specific to coreutils.
69567         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69568
69569 2005-01-28  Bruno Haible  <bruno@clisp.org>
69570
69571         * modules/javacomp: New file.
69572         * MODULES.html.sh (Java): Add javacomp.
69573
69574 2005-01-28  Bruno Haible  <bruno@clisp.org>
69575
69576         * m4/javacomp.m4: New file, from GNU gettext.
69577
69578 2005-01-28  Bruno Haible  <bruno@clisp.org>
69579
69580         * lib/javacomp.sh.in: New file, from GNU gettext.
69581         * lib/javacomp.h: New file, from GNU gettext.
69582         * lib/javacomp.c: New file, from GNU gettext.
69583
69584 2005-01-26  Simon Josefsson  <jas@extundo.com>
69585
69586         * lib/gai_strerror.c: Use GPL in header.
69587
69588 2005-01-26  Bruno Haible  <bruno@clisp.org>
69589
69590         * modules/javaexec: New file.
69591         * MODULES.html.sh (Java): Add javaexec.
69592
69593 2005-01-26  Bruno Haible  <bruno@clisp.org>
69594
69595         * m4/javaexec.m4: New file, from GNU gettext.
69596
69597 2005-01-26  Bruno Haible  <bruno@clisp.org>
69598
69599         * lib/javaexec.sh.in: New file, from GNU gettext.
69600         * lib/javaexec.h: New file, from GNU gettext.
69601         * lib/javaexec.c: New file, from GNU gettext.
69602
69603 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69604
69605         * modules/lchown (Depends-on): Remove lchown.h
69606
69607 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69608
69609         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69610         must be defined if the header file was not found, in order
69611         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69612
69613 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69614
69615         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69616         initializers for struct pentry_state.
69617         (__argp_error): Check return value of __asprintf
69618         (__argp_failure): Translate error message
69619
69620         * lib/argp-parse.c: Removed braces around the expansion of N_()
69621
69622 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69625         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69626         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69627         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69628         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69629         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69630         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69631         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69632         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69633         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69634         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69635         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69636         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69637         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69638         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69639         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69640         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69641         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69642         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69643         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69644         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69645         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69646         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69647         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69648         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69649         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69650         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69651         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69652         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69653         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69654         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69655         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69656         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69657         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69658         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69659         Use an all-permissive copyright notice, recommended by RMS.
69660
69661 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69662
69663         * modules/chdir-long (Depends-on): Remove mempcpy.
69664
69665 2005-01-21  Jim Meyering  <jim@meyering.net>
69666
69667         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69668         same value as for Solaris 9.
69669
69670         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69671         component length.  This included changing the parameter to be
69672         of type `char *' rather than `char const *'.
69673         * lib/chdir-long.h (chdir_long): Update prototype.
69674
69675         * lib/openat.c (fdopendir, fstatat): New functions.
69676         * lib/openat.h: Include headers required for use of DIR and struct
69677         stat.
69678         [AT_SYMLINK_NOFOLLOW]: Define.
69679         (fdopendir, fstatat): Add prototypes.
69680
69681 2005-01-21  Bruno Haible  <bruno@clisp.org>
69682
69683         * modules/classpath: New file.
69684         * MODULES.html.sh (Java): Add classpath.
69685
69686 2005-01-21  Bruno Haible  <bruno@clisp.org>
69687
69688         * lib/classpath.h: New file, from GNU gettext.
69689         * lib/classpath.c: New file, from GNU gettext.
69690
69691 2005-01-20  Simon Josefsson  <jas@extundo.com>
69692
69693         * modules/version-etc-fsf: New file.
69694
69695 2005-01-20  Simon Josefsson  <jas@extundo.com>
69696
69697         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69698         * lib/version-etc.c: Remove version_etc_copyright.
69699         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69700         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69701
69702 2005-01-20  Simon Josefsson  <jas@extundo.com>
69703
69704         * lib/base64.h (isbase64): Add.
69705
69706         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69707         using a unsigned prototype, don't inline.
69708         (base64_decode): Use it.
69709
69710 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69713         it.
69714
69715 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69716
69717         * lib/save-cwd.c (save_cwd): Remove code to support the case
69718         where fchdir is missing or flaky.
69719
69720 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69723
69724 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69725
69726         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69727         AC_LIBSOURCES now does this.
69728         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69729         with new ullong_max module.
69730
69731 2005-01-19  Bruno Haible  <bruno@clisp.org>
69732
69733         * modules/sh-quote: New file.
69734         * MODULES.html.sh (Executing programs): Add sh-quote.
69735
69736 2005-01-19  Bruno Haible  <bruno@clisp.org>
69737
69738         * lib/sh-quote.h: New file, from GNU gettext.
69739         * lib/sh-quote.c: New file, from GNU gettext.
69740
69741 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69742
69743         Merge from coreutils.
69744         * m4/ullong_max.m4: New file.
69745         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69746         (gl_MACROS): Assume localeconv exists.
69747
69748 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69749
69750         Merge changes from coreutils, as described below in several
69751         changelogs dated today.
69752
69753         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69754         (O_DIRECTORY): Remove; not needed here, since "." must be
69755         a directory.  All uses removed.
69756         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69757         universal on Suns, and we also need to test for IRIX.
69758         Revamp code to use 'if' rather than '#if'.
69759         Avoid unnecessary comparison of cwd->desc to 0.
69760
69761         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69762         for known valid error numbers rather than observed invalid ones.
69763
69764 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69765
69766         * modules/ullong_max: New file.
69767
69768         * modules/chdir-long, modules/openat: New files.
69769         * modules/save-cwd (Depends-on): Depend on chdir-long.
69770         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69771
69772 2005-01-18  Jim Meyering  <jim@meyering.net>
69773
69774         Merge from coreutils.
69775         * m4/chdir-long.m4, m4/openat.m4: New files.
69776         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69777         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69778         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69779         is sane and DOES follow symlinks.  Besides, testing 20 different
69780         systems found no broken chown implementations.
69781         Prompted by a change in rsync's copy of this macro.
69782         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69783
69784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69785
69786         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69787         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69788         NULL-means-set-to-current-time semantics.
69789         Remove temporary file immediately, rather than waiting
69790         for configure's at-exit trap code to do it.
69791
69792 2005-01-18  Jim Meyering  <jim@meyering.net>
69793
69794         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69795
69796         * lib/utimens.c (futimens): Account for the fact that futimes
69797         can also fail with errno == ENOSYS or errno == ENOENT.
69798         Patch from Dmitry V. Levin.
69799
69800         Change the name of the robust chdir function from chdir to chdir_long.
69801         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69802         (restore_cwd): Use chdir_long, not chdir.
69803         * lib/chdir-long.c: Renamed from chdir.c.
69804         * lib/chdir-long.h: Renamed from chdir.h.
69805         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69806         Hurd.
69807
69808 2005-01-18  Bruno Haible  <bruno@clisp.org>
69809
69810         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69811         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69812         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69813         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69814         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69815         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69816         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69817         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69818         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69819         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69820         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69821         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69822         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69823         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69824         Use an all-permissive copyright notice, recommended by RMS.
69825
69826 2005-01-18  Bob Proulx  <bob@proulx.com>
69827
69828         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69829         simplify offsetof() macro construct to avoid compile failure with
69830         native HP-UX 11.0 ANSI C compiler.
69831
69832 2005-01-17  Bruno Haible  <bruno@clisp.org>
69833
69834         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69835         redundant because stpncpy.m4 takes care of it.
69836
69837 2005-01-17  Bruno Haible  <bruno@clisp.org>
69838
69839         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69840
69841 2005-01-17  Bruno Haible  <bruno@clisp.org>
69842
69843         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69844         used.
69845
69846 2005-01-17  Bruno Haible  <bruno@clisp.org>
69847
69848         * lib/fwriteerror.h (fwriteerror): Change specification to include
69849         fclose.
69850         * lib/fwriteerror.c: Include <stdbool.h>.
69851         (fwriteerror): At the end, close the file stream. Record whether
69852         stdout was already closed.
69853
69854 2005-01-17  Bruno Haible  <bruno@clisp.org>
69855
69856         * lib/execute.c (environ): Declare if needed.
69857         * lib/pipe.c (environ): Likewise.
69858         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69859
69860 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69861
69862         * modules/argp: Depend on vsnprintf
69863
69864 2005-01-10  Jim Meyering  <jim@meyering.net>
69865
69866         * modules/closeout (Depends-on): Add atexit.
69867
69868 2005-01-06  Bruno Haible  <bruno@clisp.org>
69869
69870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69871
69872 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69873
69874         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69875         definitions to be after all include files, to avoid collisions.
69876         Problem reported by Bob Proulx.
69877
69878 2005-01-04  Jim Meyering  <jim@meyering.net>
69879
69880         Changes imported from coreutils.
69881         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69882         as the mkstemp template, use a temporary directory and an
69883         8.3-friendly template to avoid trouble on systems like DJGPP.
69884         Reported by Juan M. Guerrero via Stepan Kasal.
69885         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69886         close. Remove the temporary directory right away, rather than waiting
69887         for configure's at-exit trap code to do it.
69888         Suggestion from Stepan Kasal.
69889
69890 2005-01-01  Simon Josefsson  <jas@extundo.com>
69891
69892         * gnulib-tool: Print #include directives when --import'ing.
69893
69894 2004-12-28  Simon Josefsson  <jas@extundo.com>
69895
69896         * tests/test-base64.c: Include required header files.  Remove
69897         unused variables.
69898
69899 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69900
69901         * modules/error (Depends-on): Remove gettext.
69902
69903 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69904
69905         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69906         not needed.  This removes a dependency on the gettext module.
69907         [defined _LIBC]: Do not include <libintl.h>; not needed.
69908
69909 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69910
69911         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69912         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69913
69914 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69915
69916         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69917         HAVE_DECL_STRTOLD.
69918
69919 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69920
69921         * modules/getdate (Depends-on): Remove alloca-opt.
69922
69923 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69926
69927 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69928
69929         * lib/argp-parse.c: Include <stddef.h>.
69930         (alignof, alignto): New macros.
69931         (parser_init): Don't assume that void * is aligned sufficiently
69932         for struct option.
69933
69934         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69935         need to extend the stack.
69936         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69937         large.
69938
69939 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69940
69941         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69942
69943 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69946         (2004-10-24) change.  Apparently this was a false alarm.
69947
69948         * modules/getdate: Depend on alloca-opt, not alloca.
69949
69950 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69951
69952         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69953         Remove now-obsolete comment about AIX.
69954         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69955         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69956         (YYMAXDEPTH): New macro.
69957
69958 2004-12-18  Simon Josefsson  <jas@extundo.com>
69959
69960         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69961
69962 2004-12-18  Bruno Haible  <bruno@clisp.org>
69963
69964         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69965
69966 2004-12-18  Bruno Haible  <bruno@clisp.org>
69967
69968         * lib/fatal-signal.c (fatal_signals): Make non-const.
69969         (init_fatal_signals): New function.
69970         (uninstall_handlers, install_handlers): Ignore signals that were set to
69971         SIG_IGN.
69972         (at_fatal_signal): Call init_fatal_signals.
69973         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69974         SIG_IGN.
69975         Reported by Paul Eggert.
69976
69977 2004-12-18  Bruno Haible  <bruno@clisp.org>
69978
69979         * doc/alloca.texi: New file.
69980         * doc/alloca-opt.texi: New file.
69981
69982 2004-12-17  Jim Meyering  <jim@meyering.net>
69983
69984         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69985         Otherwise, install-sh could exit with improper exit status when
69986         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69987
69988 2004-12-16  Simon Josefsson  <jas@extundo.com>
69989
69990         * tests/test-base64.c: Add license.
69991
69992 2004-12-15  Stepan Kasal  <address@hidden>
69993
69994         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69995
69996 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69997
69998         * modules/getcwd (Files): Add m4/d-ino.m4.
69999         Suggested by Mark D. Baushke.
70000
70001 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70002
70003         * lib/getdate.y (textint): New member "negative".
70004         (time_zone_hhmm): New function.
70005         Expect 14 shift-reduce conflicts, not 13.
70006         (o_colon_minutes): New rule.
70007         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70008         (yylex): Set the "negative" member of signed numbers.
70009
70010 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70011
70012         * doc/getdate.texi (Time of day items, Time zone items):
70013         Describe new formats +00:00, UTC+00:00.
70014
70015 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70018         spurious "-l"s.  Problem reported by Stepan Kasal.
70019
70020 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70021
70022         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70023         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70024
70025 2004-12-04  Simon Josefsson  <jas@extundo.com>
70026
70027         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70028         Vandoorselaere <yoann@prelude-ids.org>.
70029
70030 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         Changes imported from coreutils.
70033         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70034         exist.
70035         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70036
70037 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70038
70039         Changes imported from coreutils.
70040         * lib/hard-locale.c: Assume <locale.h> exists.
70041         Include "strdup.h".
70042         (GLIBC_VERSION): New macro.
70043         (hard_locale): Assume setlocale exists.
70044         Rewrite to avoid #ifdef.
70045         Use strdup rather than malloc + strcpy.
70046         * lib/human.c: Assume <locale.h> exists.
70047         (human_readable): Assume localeconv exists.
70048
70049 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70050
70051         * modules/hard-locale (Depends-on): Add strdup.
70052
70053 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70054
70055         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70056         convert T2, not T.  (Imported from libc.)
70057
70058 2004-11-30  Simon Josefsson  <jas@extundo.com>
70059
70060         * modules/restrict (License): Change to LGPL.
70061
70062 2004-11-30  Simon Josefsson  <jas@extundo.com>
70063
70064         * m4/restrict.m4: Add copyright and copying conditions.
70065
70066 2004-11-30  Simon Josefsson  <jas@extundo.com>
70067
70068         * m4/base64.m4: New file.
70069
70070 2004-11-30  Simon Josefsson  <jas@extundo.com>
70071
70072         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70073         base64.
70074
70075         * tests/test-base64.c: New file.
70076
70077         * modules/base64: New file.
70078
70079 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70082         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70083
70084         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70085
70086 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70087
70088         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70089         (__getcwd.c): Don't restore errno; glibc doesn't.
70090         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70091         first, falling back to our code only if its results look suspicious.
70092         Ensure that the resulting buffer is only as large as necessary.
70093
70094         * lib/readutmp.c: Include readutmp.h first.
70095         Include <errno.h>, since readutmp.h no longer does that.
70096         * lib/readutmp.h: Don't include <errno.h>,
70097         <sys/param.h>, <time.h>; not needed to establish interface.
70098         (errno): Remove decl.
70099         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70100         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70101         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70102
70103 2004-11-28  Simon Josefsson  <jas@extundo.com>
70104
70105         * lib/base64.h, base64.c: New file.
70106
70107 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70108
70109         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70110
70111 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70114         (Depends-on): Remove pathmax, same.  Add mempcpy.
70115         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70116         (Makefile.am): Append getcwd.h to lib_SOURCES.
70117         (Include): Add getcwd.h.
70118         (Maintainer): Change from Jim Meyering to "all, glibc",
70119         since getdate now uses intended-for-glibc code.
70120         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70121         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70122
70123 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70126         HP's ANSI C compiler.
70127         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70128         Declaring int functions causes warnings on some modern systems and
70129         shouldn't be needed to compile on ancient ones.
70130         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70131         defined.
70132
70133         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70134         with the following changes.
70135         (__set_errno): Parenthesize properly.
70136         Include <stdbool.h>.
70137         (MIN, MAX, MATCHING_INO): New macros.
70138         (__getcwd): Define with prototype, not K&R form.
70139         Use heuristics to allocate default buffer on stack if possible.
70140         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70141         behavior, and to avoid the PATH_MAX limit when computing
70142         ../../../../...
70143         Use MATCHING_INO to compare inode number to file.
70144         Check for arithmetic overflow in size calculations.
70145         Fix bug in reallocation of dot array that caused getcwd to fail
70146         on directories nested deeper than 75.
70147         Be more careful about saving errno on error.
70148         Do not use realloc; use only free+malloc, as this is a bit
70149         more flexible and avoids a needless copy operation.
70150         Do not inspect st_dev and st_ino for symbolic links; POSIX
70151         doesn't specify the latter.
70152         Check for closedir errors.
70153         Avoid needless casts.
70154         Use "#ifdef weak_alias" around weak_alias, to be like other
70155         glibc code.
70156         The following changes to getcwd.c have effect only when used in
70157         gnulib; they have no effect inside glibc proper.
70158         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70159         as alloca isn't used.
70160         (alloca, __alloca): Likewise.
70161         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70162         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70163         unconditionally, as gnulib assumes C89 or better.
70164         Do not include <sys/param.h>.
70165         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70166         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70167         better.
70168         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70169         Include <dirent.h> in a way that is compatible with modern Autoconf.
70170         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70171         New macros, if not already defined.
70172         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70173         Use "_LIBC", not "defined _LIBC", for consistency.
70174         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70175         a mempcpy module.
70176         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70177         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70178         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70179         credit only to Jim Meyering and adjust the copyright dates.
70180         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70181         <stdlib.h>, <unistd.h>, "pathmax.h".
70182         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70183         (INITIAL_BUFFER_SIZE): Remove.
70184         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70185
70186 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70189         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70190         Use the _ONCE methods, for efficiency.
70191         Check for fcntl.h.  In test program, include <errno.h>
70192         and <fcntl.h> if available.  Remove old K&R cruft from
70193         test program.  Check for common errors in GNU/Linux,
70194         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70195         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70196         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70197         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70198         name accordingly.
70199         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70200         accommodate new getcwd.c.
70201         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70202         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70203         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70204         that's all we need now.
70205
70206 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70207
70208         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70209         argp-parse.c depends on getopt internals, that means we should
70210         always use our getopt, to be on the safe side.
70211         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70212         order not to spoil the result of an eventual previous invocation
70213         of gl_GETOPT_SUBSTITUTE.
70214
70215 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70216
70217         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70218         redefinition warnings. To avoid them, include the defines
70219         in `#if !defined __need_getopt ... #endif'. The only place
70220         where __getopt_argv_const is used is in definitions
70221         of getopt_long and getopt_long_only below, which are as well
70222         protected by `#ifndef __need_getopt'.
70223         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70224         __need_getopt after including <stdio.h> and <unistd.h> These
70225         headers might have defined it.
70226
70227 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70228
70229         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70230
70231 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70232
70233         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70234         (futimens): New function, which uses futimes if available.
70235         (futimens, utimens): Support timespec==NULL, with same semantics
70236         as utime and utimens.
70237         * lib/utimens.h (futimens): New decl.
70238
70239 2004-11-23  Jim Meyering  <jim@meyering.net>
70240
70241         * lib/getopt_.h: Remove trailing blanks.
70242
70243 2004-11-23  Jim Meyering  <jim@meyering.net>
70244
70245         * lib/__fpending.c: Add comment.
70246
70247 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70248
70249         * modules/canonicalize (Depends-on): Add xreadlink.
70250         Problem reported by James Youngman.
70251
70252 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70253
70254         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70255         New macros.
70256         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70257         optopt): Use them instead of invoking ## directly; otherwise, the
70258         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70259
70260 2004-11-19  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/strtok_r.c: Move comments from here...
70263         * lib/strtok_r.h: ... to here.
70264
70265 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70268         implementations that mishandle size_t overflow.
70269
70270 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70271
70272         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70273         might fail.  Problem reported by Yoann Vandoorselaere.
70274         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70275         implementations that mishandle size_t overflow.
70276
70277 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70278
70279         * modules/canon-host (Depends-on): Add strdup.
70280
70281 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70282
70283         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70284
70285 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70286
70287         * lib/canon-host.c: Include "strdup.h".
70288         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70289         Use strdup instead of malloc/strcpy to duplicate strings.
70290
70291         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70292         (human_space_before_unit): New constant.
70293         * lib/human.c (human_readable): Support it.
70294
70295         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70296         (xgetcwd): Set errno correctly when failing.
70297         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70298         the failure is actually due to a PATH_MAX problem.
70299
70300         Further getopt changes to make it more likely that glibc will
70301         buy the changes back.
70302         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70303         (getopt): Use it, so to preserve glibc semantic
70304         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70305         when compiling for libc.
70306         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70307         (getopt_long, getopt_long_only): Use it.
70308
70309         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70310         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70311         (getopt): Argv is now char * const *, as per standard.
70312         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70313         not char *__getopt_argv_const *.
70314         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70315         _getopt_long_only_r): Likewise.
70316         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70317         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70318         _getopt_long_r, _getopt_long_only_r): Likewise.
70319         * lib/getopt_.h (__getopt_argv_const): Remove.
70320         (getopt): Argv is now char * const *, as per standard.
70321
70322         * lib/getdate.y (tORDINAL): New token.
70323         (day, relunit): Allow it for relative times.
70324         (relative_time_table): Use tORDINAL for ordinals.
70325
70326 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70329         Document that "second" isn't allowed as an ordinal number.
70330
70331 2004-11-16  Jim Meyering  <jim@meyering.net>
70332
70333         * modules/closeout (Depends-on): Add fpending.
70334
70335 2004-11-15  Jim Meyering  <jim@meyering.net>
70336
70337         * lib/closeout.c: Include "__fpending.h" once again.
70338         Include <stdbool.h>.
70339         (close_stdout): Don't fail just because stdout was closed initially,
70340         since some programs don't write to stdout in the normal course of
70341         operation (other than --version and --help), and we don't want this
70342         function to make e.g. `touch file >&-' fail.
70343         But do fail if it was closed and someone has tried to write to it.
70344         E.g., `printf foo >&-' must fail.
70345
70346 2004-11-13  Jim Meyering  <jim@meyering.net>
70347
70348         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70349
70350 2004-11-12  Simon Josefsson  <jas@extundo.com>
70351
70352         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70353         small doc fix is still pending.
70354
70355 2004-11-11  Simon Josefsson  <jas@extundo.com>
70356
70357         * modules/strtok_r: New file.
70358
70359         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70360         strtok_r.
70361
70362 2004-11-11  Simon Josefsson  <jas@extundo.com>
70363
70364         * m4/strtok_r.m4: New file.
70365
70366         * m4/getopt.m4: Replace opterr.
70367
70368 2004-11-11  Simon Josefsson  <jas@extundo.com>
70369
70370         * lib/strtok_r.h, strtok_r.c: New file.
70371
70372 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70373
70374         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70375         of replacing opterr, getopt, etc.  This should handle the
70376         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70377
70378 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70379
70380         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70381         we can stop lying to compilers about the constness of argv when we
70382         are compiled outside glibc.
70383         (getopt, getopt_long, getopt_long_only): Use it.
70384         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70385         _getopt_internal, getopt): Likewise.
70386         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70387         _getopt_long_only_r): Likewise.
70388         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70389         _getopt_long_r, _getopt_long_only_r): Likewise.
70390
70391         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70392         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70393         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70394         the other external symbols.
70395         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70396         declaration, since the above renaming now works around collisions.
70397
70398 2004-11-11  Jim Meyering  <jim@meyering.net>
70399
70400         * lib/linebreak.c: Remove trailing blanks.
70401         * lib/alloca_.h: Likewise.
70402         * lib/acosl.c: Likewise.
70403         * lib/euidaccess.c: Likewise.
70404         * lib/allocsa.h: Likewise.
70405
70406 2004-11-10  Simon Josefsson  <jas@extundo.com>
70407
70408         * m4/getaddrinfo.m4: New file.
70409
70410 2004-11-10  Simon Josefsson  <jas@extundo.com>
70411
70412         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70413
70414 2004-11-10  Simon Josefsson  <jas@extundo.com>
70415
70416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70417         getaddrinfo.
70418
70419         * modules/getaddrinfo: New file.
70420
70421 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70424
70425 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70426
70427         * lib/mktime.c (SHR): New macro, which is a portable
70428         substitute for >> that should work even on Crays.
70429         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70430         Problem reported by Mark D. Baushke in
70431         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70432         * lib/getdate.y (SHR): Likewise.
70433         (tm_diff): Use it.
70434         * lib/strftime.c (SHR): Likewise.
70435         (tm_diff): Use it.
70436         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70437         quote_these_too, so that right shifts are well defined.  All uses
70438         changed.
70439
70440 2004-11-10  Jim Meyering  <jim@meyering.net>
70441
70442         Ensure that no close failure goes unreported.
70443         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70444         return early when it seems there's nothing to flush.
70445         Don't include __fpending.h.
70446
70447 2004-11-10  Jim Meyering  <jim@meyering.net>
70448
70449         * modules/closeout (Depends-on): Remove fpending.
70450
70451 2004-11-10  Jim Meyering  <jim@meyering.net>
70452
70453         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70454
70455 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70458         gl_FUNC_STRFTIME.
70459         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70460         and AC_REQUIRE when possible, to avoid duplicate checks.
70461         Check for <wchar.h>.
70462
70463 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70464
70465         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70466
70467 2004-11-09  Bruno Haible  <bruno@clisp.org>
70468
70469         * m4/sockpfaf.m4: New file.
70470
70471 2004-11-05  Bruno Haible  <bruno@clisp.org>
70472
70473         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70474         Reported by Mark D. Baushke <mdb@cvshome.org>.
70475
70476 2004-11-04  Bruno Haible  <bruno@clisp.org>
70477
70478         2004-09-11  Bruno Haible  <bruno@clisp.org>
70479                 * allocsa.valgrind: New file.
70480         2004-02-06  Bruno Haible  <bruno@clisp.org>
70481                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70482                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70483                 Reported by Christopher Seip <chris.seip@hp.com>.
70484
70485 2004-11-04  Bruno Haible  <bruno@clisp.org>
70486
70487         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70488         (Makefile.am): Distribute it.
70489
70490 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70491
70492         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70493         with errno == ERANGE if the buffer is too small.
70494         Problem reported by Mark D. Baushke.
70495
70496 2004-11-03  Albert Chin  <china@thewrittenword.com>
70497             Paul Eggert  <eggert@cs.ucla.edu>
70498
70499         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70500         equivalent, substitute $ac_type for equivalent type rather than
70501         blindly using uint32_t *always* which won't work if uint32_t is not
70502         available.  Define _UINT32_T to work around typedef of uint32_t if
70503         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70504         2.5.1.
70505
70506 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70507
70508         * m4/jm-macros.m4: Sync from coreutils.
70509         (gl_MACROS): Check for mbrlen, for pathchk.
70510         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70511
70512 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70513
70514         * lib/xreadlink.c (MAXSIZE): New macro.
70515         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70516         size does not exceed MAXSIZE.  Avoid cast.
70517         As suggested by Mark D. Baushke in
70518         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70519         if readlink fails with buffer size just under MAXSIZE, try again
70520         with MAXSIZE.
70521
70522 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70523
70524         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70525
70526 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70527         and  Paul Eggert  <eggert@cs.ucla.edu>
70528
70529         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70530         (get_date): Overparenthesize to avoid GCC warning.
70531
70532 2004-11-02  Bruno Haible  <bruno@clisp.org>
70533
70534         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70535         returns void.
70536
70537 2004-11-02  Bruno Haible  <bruno@clisp.org>
70538
70539         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70540         function returns void.
70541
70542 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70543
70544         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70545         fflush_unlocked, flockfile, funlockfile, funlockfile,
70546         fputs_unlocked, putc_unlocked.
70547
70548 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70549
70550         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70551         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70552         already declared.
70553
70554 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70555
70556         * modules/getdate (Files): Add doc/getdate.texi.
70557         (Depends-on): Add setenv, xalloc.
70558
70559 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70560
70561         * lib/getdate.y: Add support for TZ="foo" within a date string.
70562         Fix some bugs near time_t boundaries.  Reject dates with
70563         out-of-range components, e.g., "Sept 31".
70564         Include <stdlib.h>, "setenv.h", "xalloc.h".
70565         (ISDIGIT_LOCALE): Remove; unused.
70566         Note that the TZ and time functions used here are not reentrant.
70567         (mktime_ok, get_tz): New functions.
70568         (TZBUFSIZE): New constant.
70569         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70570         This requires that we sometimes generate our own TZ="XXX..." setting.
70571
70572 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70573
70574         * doc/getdate.texi: New file, from coreutils with modifications for
70575         the new TZ parsing.
70576
70577 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70578
70579         * lib/mktime.c (not_equal_tm): Remove redundant check.
70580
70581 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * modules/regex (lib_SOURCES): Add regex.c.
70584         Reported by James Youngman in
70585         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70586
70587 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70588
70589         * lib/getdate.y: Use Bison 1.875 features, and some minor
70590         code cleanups.  This change does not affect semantics.
70591         Don't include <stdlib.h>; no longer needed.
70592         Don't include unlocked-io.h; only the "#if TEST" code uses
70593         stdio, and performance isn't crucial there.
70594         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70595         Bison 1.875 features as described below.
70596         All uses of "PC." replaced by "pc->".
70597         (YYSTYPE): Add a forward declaration.
70598         (yylex, yyerror): Use full prototypes in forward decls.
70599         Use "%pure-parser" rather than obsolescent "%pure_parser".
70600         Use %parse-param and %lex-param instead of obsolescent
70601         YYPARSE_PARAM and YYLEX_PARAM.
70602         (meridian_table, month_and_day_table, time_units_table,
70603         relative_time_table, time_zone_table, military_table,
70604         lookup_zone, lookup_word, get_date):
70605         Use NULL instead of 0 where appropriate.
70606         (to_hour): Avoid abort (), to avoid a dependency on
70607         stdlib.h.
70608         (yyerror, yylex): Now accepts parser_control * arg.
70609         (main) [TEST]: Use '\0' rather than 0 for char.
70610
70611 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70612
70613         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70614
70615 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70618         It's now the caller's responsibility to handle the case where
70619         !HAVE_GETPAGESIZE && !defined getpagesize.
70620
70621         * lib/mktime.c (leapyear): Arg is long int, not int.
70622
70623 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70624
70625         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70626
70627 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70628
70629         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70630         missing.  Problem reported by James Youngman.
70631
70632 2004-10-16  Simon Josefsson  <jas@extundo.com>
70633
70634         * gnulib-tool: Fix comments.  Fix parse problem.
70635         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70636
70637 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70640         implementation of getopt_long.  Problem reported by Alexander Taler in:
70641         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70642
70643 2004-10-15  Bruno Haible  <bruno@clisp.org>
70644
70645         * gnulib-tool: Untabify. Initialize supplied_libname.
70646         (func_usage): More homogenous output.
70647         (func_modules_transitive_closure, func_modules_to_filelist,
70648         func_emit_lib_Makefile_am): New functions.
70649         (func_import): New function, extracted from big case statement. Use
70650         func_get_license, func_modules_transitive_closure,
70651         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70652         opt_lgpl. Don't use test -a, as it's not portable.
70653         (func_create_testdir): Use func_modules_transitive_closure,
70654         func_modules_to_filelist, func_emit_lib_Makefile_am.
70655
70656 2004-10-15  Bruno Haible  <bruno@clisp.org>
70657
70658         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70659
70660 2004-10-15  Bruno Haible  <bruno@clisp.org>
70661
70662         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70663         the portions belonging to each module.
70664         Suggested by Derek Robert Price <derek@ximbiot.com>.
70665
70666 2004-10-12  Simon Josefsson  <jas@extundo.com>
70667
70668         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70669         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70670         to real functions.
70671
70672 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70673
70674         * modules/vsnprintf: New file.
70675
70676 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70677
70678         * m4/vsnprintf.m4: New file.
70679
70680 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70681
70682         * lib/vsnprintf.h: New file.
70683         * lib/vsnprintf.c: New file.
70684
70685 2004-10-11  Bruno Haible  <bruno@clisp.org>
70686
70687         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70688         vsnprintf.
70689
70690 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70693
70694 2004-10-07  Bruno Haible  <bruno@clisp.org>
70695
70696         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70697         fits into the provided buffer.
70698
70699 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         * lib/diacrit.c, diacrit.h: Add GPL notice.
70702
70703         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70704         notice.
70705         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70706         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70707         This avoids a potential constant-folding bug.
70708
70709 2004-10-05  Bruno Haible  <bruno@clisp.org>
70710
70711         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70712         for the declaration of strsep.
70713
70714 2004-10-05  Bruno Haible  <bruno@clisp.org>
70715
70716         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70717
70718 2004-10-04  Simon Josefsson  <jas@extundo.com>
70719
70720         * modules/memmem: New file.
70721         * tests/test-memmem.c: New file.
70722         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70723
70724 2004-10-04  Simon Josefsson  <jas@extundo.com>
70725
70726         * m4/memmem.m4: New file.
70727
70728 2004-10-04  Simon Josefsson  <jas@extundo.com>
70729
70730         * lib/memmem.h: New file.
70731         * lib/memmem.c: New file, taken from glibc.
70732
70733 2004-10-04  Simon Josefsson  <jas@extundo.com>
70734
70735         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70736         '#ifdef USE_UNLOCKED_IO'.
70737
70738 2004-10-04  Simon Josefsson  <jas@extundo.com>
70739
70740         * config/srclist.txt: Add memmem from glibc.
70741
70742 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70743
70744         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70745
70746         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70747         modules/exclude, modules/getdate, modules/getline,
70748         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70749         modules/getusershell, modules/linebuffer, modules/md5,
70750         modules/mountlist, modules/posixtm, modules/readtokens,
70751         modules/readutmp, modules/regex, modules/sha1,
70752         modules/version-etc, modules/yesno:
70753         Remove dependency on unlocked-io.
70754
70755 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70756
70757         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70758
70759         * m4/unlocked-io.m4: Add copyright notice.
70760         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70761
70762 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70763
70764         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70765         * lib/xmalloc.c (xmemdup): Likewise.
70766         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70767         XFREE): Remove these long-obsolescent macros.
70768         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70769         * lib/xstrdup.c: Remove.
70770
70771         * lib/regex.c (re_comp): Cast gettext return value to char *,
70772         Problem reported by Martin Neitzel via Mark D. Baushke.
70773
70774 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70777         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70778         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70779         regex.c, sha1.c, version-etc.c, yesno.c:
70780         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70781         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70782         the includer's responsibility.
70783
70784         Sync from coreutils.
70785
70786         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70787         points to the start of a string, as the C Standard says the
70788         resulting behavior is undefined.
70789
70790         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70791         simple -> simple_backups, numbered_existing ->
70792         numbered_existing_backups, numbered -> numbered_backups
70793         to avoid shadowing problems.  All uses changed.
70794         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70795         * lib/backupfile.c (check_extension, numbered_backup):
70796         Rename locals to avoid shadowing 'basename'.
70797         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70798         once.
70799
70800         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70801         * lib/.cvsignore: Add getopt.h.
70802
70803 2004-10-04  Bruno Haible  <bruno@clisp.org>
70804
70805         * modules/README: New file.
70806         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70807         not a module.
70808
70809 2004-10-02  Jim Meyering  <jim@meyering.net>
70810
70811         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70812
70813 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70814
70815         * modules/strsep: New file.
70816
70817 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70818
70819         * m4/strsep.m4: New file.
70820
70821 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70822
70823         * lib/strsep.h: New file.
70824         * lib/strsep.c: New file.
70825
70826 2004-10-01  Simon Josefsson  <jas@extundo.com>
70827
70828         * lib/snprintf.c (snprintf): Handle size==0.
70829
70830 2004-10-01  Simon Josefsson  <jas@extundo.com>
70831             Bruno Haible  <bruno@clisp.org>
70832
70833         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70834         (snprintf): Declare 'args'.
70835
70836 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * lib/snprintf.c: Remove comments as to why each header is needed.
70839
70840 2004-10-01  Bruno Haible  <bruno@clisp.org>
70841
70842         * MODULES.html.sh: Add strsep.
70843
70844 2004-09-30  Simon Josefsson  <jas@extundo.com>
70845
70846         * modules/snprintf: New file.
70847
70848 2004-09-30  Simon Josefsson  <jas@extundo.com>
70849
70850         * m4/snprintf.m4: New file.
70851
70852 2004-09-30  Simon Josefsson  <jas@extundo.com>
70853
70854         * lib/snprintf.h, lib/snprintf.c: New files.
70855
70856 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70857
70858         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70859         (hol_entry_help): Never translate an empty string.
70860         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70861         * lib/argp.h (OPTION_NO_TRANS): New option.
70862
70863 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         * modules/argp (Maintainer): Replace Simon Josefsson
70866         by Sergey Poznyakoff.
70867
70868 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70869
70870         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70871         changes merged back into glibc.
70872
70873 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70874
70875         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70876
70877 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70878
70879         * lib/xvasprintf.c: Include xalloc.h.
70880         (xvasprintf): Use xalloc_die, not xmalloc_die.
70881
70882 2004-09-29  Bruno Haible  <bruno@clisp.org>
70883
70884         * modules/alloca-opt: New file, derived from modules/alloca.
70885         * modules/allocsa: Depend on alloca-opt instead of alloca.
70886         * modules/setenv: Likewise.
70887         * modules/vasnprintf: Likewise.
70888         * MODULES.html.sh: Add alloca-opt.
70889
70890 2004-09-28  Simon Josefsson  <jas@extundo.com>
70891
70892         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70893         LGPL, and to replace license template from GPL to LGPL.
70894
70895 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * modules/dummy: Change license to LGPL.
70898
70899 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70900
70901         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70902
70903 2004-09-24  Simon Josefsson  <jas@extundo.com>
70904
70905         * modules/minmax (License): Change from GPL to LGPL.
70906
70907 2004-09-23  Simon Josefsson  <jas@extundo.com>
70908
70909         * gnulib-tool (--import): Typo.
70910
70911 2004-09-23  Simon Josefsson  <jas@extundo.com>
70912
70913         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70914
70915 2004-09-22  Bruno Haible  <bruno@clisp.org>
70916
70917         * modules/*: Add 'License' field.
70918         * gnulib-tool: Accept --extract-license option.
70919         (func_get_license): New function.
70920
70921 2004-09-21  Bruno Haible  <bruno@clisp.org>
70922
70923         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70924         Reported by Simon Josefsson.
70925
70926 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70927
70928         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70929         gl_AC_TYPE_LONG_LONG.
70930
70931 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70932
70933         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70934
70935 2004-09-18  Simon Josefsson  <jas@extundo.com>
70936         and  Paul Eggert  <eggert@cs.ucla.edu>
70937
70938         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70939         calls with autoreconf.  Define GL_LIB.
70940
70941 2004-09-14  Karl Berry  <karl@gnu.org>
70942
70943         * config/srclist.txt: unsync setenv.c, sigh.
70944
70945 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70948         Problem reported by Bruno Haible in:
70949         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70950
70951 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70952
70953         * config/srclist.txt: Comment out argp-pvh.c.
70954
70955 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70958         in case some system header has #define'd it.  Problem reported by
70959         Soeren D. Schulze in
70960         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70961
70962 2004-09-09  Karl Berry  <karl@gnu.org>
70963
70964         * regex.[ch]: delete from the root.  These were supposed to be
70965                 synced with emacs cvs, but this has not happened for about
70966                 a year, and anyway nothing else uses emacs regex.[ch].
70967                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70968                 lib/regex[.ch] is untouched.
70969
70970 2004-09-09  Bruno Haible  <bruno@clisp.org>
70971
70972         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70973
70974 2004-09-09  Bruno Haible  <bruno@clisp.org>
70975
70976         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70977         modifications.
70978         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70979
70980 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70981
70982         * modules/xvasprintf: New file.
70983         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70984
70985 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70986
70987         * lib/xvasprintf.h: New file.
70988         * lib/xvasprintf.c: New file.
70989         * lib/xasprintf.c: New file.
70990
70991 2004-09-08  Bruno Haible  <bruno@clisp.org>
70992
70993         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70994
70995 2004-09-08  Bruno Haible  <bruno@clisp.org>
70996
70997         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70998         length is > INT_MAX.
70999         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71000         more.
71001
71002 2004-09-08  Bruno Haible  <bruno@clisp.org>
71003
71004         * lib/stdint_.h: New file, taken from GNU clisp.
71005
71006 2004-09-08  Bruno Haible  <bruno@clisp.org>
71007             Oskar Liljeblad  <oskar@osk.mine.nu>
71008
71009         * modules/stdint: New file.
71010         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71011
71012 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71013
71014         Import from coreutils.
71015         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71016         strings on unbounded length.  alloca's performance benefits aren't
71017         that important here.
71018         (V_STRDUP): Remove.
71019         (parse_with_separator): New function, with most of the internals
71020         of the old parse_user_spec.  Allow user to omit both user and group,
71021         for compatibility with FreeBSD.
71022         Clone only the user name, not the entire spec.
71023         Do not set *uid, *gid unless entirely successful.
71024         Avoid memory leak in some failing cases.
71025         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71026         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71027         (parse_user_spec): Rewrite to use parse_with_separator.
71028
71029 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * modules/userspec: Don't depend on alloca.
71032
71033 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71034
71035         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71036
71037 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71040         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71041         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71042
71043 2004-08-16  Simon Josefsson  <jas@extundo.com>
71044
71045         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71046         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71047         Add --dry-run for --import.
71048         Let user provided command line parameters override configure.ac
71049         settings.
71050
71051 2004-08-12  Simon Josefsson  <jas@extundo.com>
71052
71053         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71054         as discussed with Paul Eggert in threads rooted at
71055         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71056         and
71057         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71058         Before, the test was empty, and relied on ELIDE_CODE in source
71059         code.)
71060         (gl_PREREQ_GETOPT): New macro.
71061         (gl_GETOPT): Use them.
71062
71063 2004-08-12  Simon Josefsson  <jas@extundo.com>
71064
71065         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71066         * lib/getopt_.h: Renamed from getopt.h.
71067
71068 2004-08-12  Simon Josefsson  <jas@extundo.com>
71069
71070         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71071         Change default library name from libfoo to libgnu.
71072         Now, if you have a configure.ac that says:
71073                 gl_SOURCE_BASE(gl)
71074                 gl_M4_BASE(gl/m4)
71075                 gl_MODULES(error getopt etcetera)
71076                 gl_INIT
71077         you can import all you need by running:
71078                 ../gnulib/gnulib-tool --import
71079
71080         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71081         (Makefile.am): Rewrite, use logic from argz.
71082         (Include): Use <getopt.h> instead of "getopt.h".
71083
71084 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * modules/argp (Files): Add m4/unlocked-io.m4.
71087         (Depends-on): Add extensions.
71088
71089 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71092         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71093         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71094         Check for program_invocation_name, program_invocation_short_name,
71095         flockfile, funlockfile, features.h, _getopt_long_only_r.
71096
71097 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71100         its complicated substitute.
71101         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71102         and program_invocation_name.
71103         (__argp_basename) [!_LIBC]: Remove; the only use was
71104         replaced by its body.
71105         (__argp_short_program_name): Change condition from
71106         !defined __argp_short_program_name to
71107         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71108         to match argp-namefrob.h.
71109         (__argp_failure): Don't assume strerror_r returns char *.
71110         * lib/argp-parse.c (N_): Define unconditionally.
71111         (argp_default_options): Fill out initializers with 0 to avoid
71112         gcc warnings.
71113
71114 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71115
71116         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71117         getopt1.c.
71118
71119 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         Merge from coreutils.
71122
71123         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71124
71125         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71126         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71127
71128 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         Merge from coreutils.
71131
71132         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71133         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71134         for Reliant Unix 5.43.
71135
71136         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71137         (union fooround): Use uintmax_t, not long int.
71138         The rest is a merge from libc:
71139         [defined _LIBC]: Include <shlib-compat.h>.
71140         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71141
71142         * lib/settime.c (settime): Recode to avoid warning with
71143         Sun Forte C 6U2.
71144
71145         * lib/strverscmp.c: Convert to UTF-8.
71146
71147 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71150         m4/uintmax_t.m4.
71151
71152 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71153
71154         * modules/xalloc-die: New file.
71155         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71156
71157         * modules/md5 (Files): Add m4/uint32_t.m4.
71158         * modules/sha1: Renamed from modules/sha.
71159         (Files):
71160         Rename lib/sha.h to lib/sha1.h.
71161         Rename lib/sha.c to lib/sha1.c.
71162         Rename m4/sha.m4 to m4/sha1.m4.
71163         (lib_SOURCES): Likewise.
71164         (configure.ac): Rename gl_SHA to gl_SHA1.
71165         (Include): sha.h -> sha1.h.
71166
71167 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71170         * m4/sha1.m4: Renamed from sha.m4.
71171         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71172
71173 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71174
71175         * lib/obstack.h (obstack_empty_p):
71176         Don't assume that chunk->contents is suitably aligned.
71177         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71178         Likewise. Problem reported by Benno in
71179         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71180
71181         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71182         readable.  This could be improved further but it'd take some work.
71183
71184 2004-08-08  Simon Josefsson  <jas@extundo.com>
71185
71186         * modules/xgethostname (Depends-on): Remove exit and error (not
71187         used).
71188
71189         * modules/getpass-gnu: Add getpass.h.
71190         (Depends-on): Add stdbool.
71191         * modules/getpass: Add getpass.h.
71192
71193 2004-08-08  Simon Josefsson  <jas@extundo.com>
71194
71195         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71196         Check getpass declaration.
71197
71198 2004-08-08  Simon Josefsson  <jas@extundo.com>
71199
71200         * lib/xgethostname.c: Don't include error.h (not used).
71201
71202         * lib/getpass.h: Add.
71203         * lib/getpass.c: Include getpass.h first.
71204
71205 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71206
71207         * lib/xalloc-die.c: New file.
71208         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71209         All uses removed.
71210         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71211         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71212         xalloc-die.c.
71213         (_, N_, xalloc_die): Move to xalloc-die.c.
71214         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71215         so that we needn't mess with xalloc_msg_memory_exhausted.
71216
71217         * lib/sha1.h: Renamed from sha.h.
71218         (SHA1_H): Renamed from _SHA_H.
71219         (sha1_ctx): Renamed from sha_ctx.
71220         (sha1_init_ctx): Renamed from sha_init_ctx.
71221         (sha1_process_block): Renamed from sha_process_block.
71222         (sha1_process_bytes): Renamed from sha_process_bytes.
71223         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71224         (sha1_read_ctx): Renamed from sha_read_ctx.
71225         (sha1_stream): Renamed from sha_stream.
71226         (sha1_buffer): Renamed from sha_buffer.
71227         * lib/sha1.c: Likewise; renamed from sha.c.
71228         Do not include <sys/types.h>.
71229         Include <stddef.h> rather than <stdlib.h>.
71230
71231 2004-08-08  Bruno Haible  <bruno@clisp.org>
71232
71233         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71234         FILESYSTEM_PREFIX_LEN.
71235         * lib/progreloc.c: Likewise.
71236         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71237
71238 2004-08-06  Simon Josefsson  <jas@extundo.com>
71239
71240         * modules/progname (Depends-on): Don't depend on stdbool.
71241
71242 2004-08-06  Simon Josefsson  <jas@extundo.com>
71243
71244         * modules/getsubopt: New file.
71245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71246         getsubopt.
71247
71248 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71249
71250         More merge from coreutils.
71251
71252         * m4/utimens.m4, m4/utimecmp.m4: New files.
71253         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71254         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71255         prereq.m4, sha.m4: Import changes from coreutils.
71256
71257 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         More merge from coreutils.
71260         * modules/raise, modules/readtokens0, modules/utimens:
71261         * modules/utimecmp, module/xnanosleep: New files.
71262         * modules/strftime: Add lib/strftime.h.
71263         Change include from <time.h> to "strftime.h".
71264         * modules/yesno: Add lib/yesno.h.
71265         * modules/backupfile: Remove lib/addext.c.
71266         * modules/euidaccess: Add stat-macros.h.
71267         * modules/canonicalize, modules/euidaccess,
71268         modules/filemode, modules/lchown, modules/makepath,
71269         modules/rmdir, modules/stat: Likewise.
71270
71271 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         Merge from tar.
71274         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71275         SIZE_MAX is a valid preprocessor constant.
71276         (__argp_basename): Change from "#ifndef _LIBC"
71277         to "#ifndef __argp_short_program_name", so that
71278         we don't compile these functions for tar.
71279
71280         More merges from coreutils.
71281         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71282         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71283         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71284         * lib/addext.c: Remove; no longer needed.
71285         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71286         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71287         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71288         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71289         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71290         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71291         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71292         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71293         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71294         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71295         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71296         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71297         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71298         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71299         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71300         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71301         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71302         Import changes from coreutils.
71303
71304 2004-08-05  Simon Josefsson  <jas@extundo.com>
71305
71306         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71307
71308 2004-08-05  Simon Josefsson  <jas@extundo.com>
71309
71310         * m4/getsubopt.m4: New file.
71311
71312 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71313
71314         Merge from coreutils.
71315
71316         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71317         * m4/getcwd-path-max.m4: New files.
71318
71319         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71320         FILESYSTEM_PREFIX_LEN ->
71321         FILE_SYSTEM_PREFIX_LEN.
71322         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71323         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71324         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71325         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71326
71327         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71328         prerequisite modules now handle the DOS stuff.
71329         Don't check for unistd.h.
71330
71331 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71332
71333         Merge from coreutils.
71334
71335         * lib/.gdb-history: Remove; this doesn't belong here.
71336
71337         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71338         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71339         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71340         * lib/getcwd.c: New files.
71341
71342         * lib/dirname.h: Include <stdbool.h>.
71343         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71344         for consistency with POSIX terminology.  All uses changed.
71345         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71346         (strip_trailing_slashes): Use bool for booleans.
71347         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71348
71349         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71350         sometimes returns a positive errno value even when it succeeds.
71351         (print_errno_message) [!LIBC]: Fall back on strerror if
71352         __strerror_r fails.
71353
71354         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71355         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71356         (longest_relative_suffix): New function.
71357         (path_concat): Use it.  Assume first argument is not NULL.
71358         Port to DOS.  Omit redundant separators.
71359         Report an error instead of returning NULL.
71360         Use mempcpy instead of memcpy.
71361         (xpath_concat): Remove: not declared or used.
71362
71363         * lib/same.h: Include <stdbool.h>
71364         (same_name): Return bool, not int.
71365         * lib/same.c (same_name): Likewise.
71366         (errno): Don't declare; we assume C89 or better now.
71367
71368         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71369         if not already defined.
71370
71371         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71372         * lib/dup-safer.c (errno): Likewise.
71373
71374 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71375
71376         Merge from coreutils.
71377         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71378         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71379         * modules/path-concat: Don't depend on strdup.
71380
71381 2004-08-03  Simon Josefsson  <jas@extundo.com>
71382
71383         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71384         * lib/progname.h: Don't include stdbool.h.
71385
71386 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71387
71388         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71389         * MODULES.html.sh (func_all_modules): Remove fatal.
71390
71391 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71392
71393         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71394
71395 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71396
71397         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71398         working.
71399
71400 2004-08-02  Simon Josefsson  <jas@extundo.com>
71401
71402         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71403         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71404         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71405
71406 2004-08-01  Simon Josefsson  <jas@extundo.com>
71407
71408         * lib/xgetdomainname.c: Include stdlib.h, for free().
71409
71410 2004-07-19  Bruno Haible  <bruno@clisp.org>
71411
71412         * MODULES.html.sh (func_all_modules): Add dummy.
71413
71414 2004-07-16  Simon Josefsson  <jas@extundo.com>
71415
71416         * modules/dummy: New file.
71417
71418 2004-07-16  Simon Josefsson  <jas@extundo.com>
71419
71420         * lib/dummy.c: New file.
71421
71422 2004-07-16  Bruno Haible  <bruno@clisp.org>
71423
71424         * lib/backupfile.h: Add extern "C" for C++.
71425         * lib/closeout.h: Likewise.
71426         * lib/copy-file.h: Likewise.
71427         * lib/findprog.h: Likewise.
71428         * lib/full-write.h: Likewise.
71429         * lib/pathname.h: Likewise.
71430         * lib/progname.h: Likewise.
71431         * lib/stpcpy.h: Likewise.
71432         * lib/stpncpy.h: Likewise.
71433         * lib/strcase.h: Likewise.
71434         * lib/strstr.h: Likewise.
71435         * lib/xalloc.h: Likewise.
71436
71437         * lib/mbswidth.h: Add extern "C" for C++.
71438         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71439
71440 2004-07-13  Robert Millan  <robertmh@gnu.org>
71441
71442         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71443
71444 2004-07-09  Simon Josefsson  <jas@extundo.com>
71445
71446         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71447         failed without this.)
71448
71449 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71450
71451         * modules/chown (Files): Add lib/fchown-stub.c, since
71452         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71453
71454 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71455
71456         * lib/fchown-stub.c: New file.
71457
71458 2004-06-24  Jim Meyering  <jim@meyering.net>
71459
71460         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71461
71462 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71463
71464         * modules/argz: Omit "#include".
71465
71466         * MODULES.html.sh (func_all_modules): Add calloc, to match
71467         2004-06-01 addition of calloc module.
71468
71469 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71470
71471         * m4/argz.m4: New file, which is autoupdated from libtool.
71472
71473 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71474
71475         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71476         libtool.
71477
71478 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71479
71480         * config/srclist-update: Don't insist on "USA." before the
71481         close-comment, as libtool omits the period and puts the */ on a
71482         separate line.
71483         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71484         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71485
71486 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71487
71488         * modules/argz: New file.
71489         * MODULES.html.sh (func_all_modules): Add argz.
71490
71491 2004-06-12  Jim Meyering  <jim@meyering.net>
71492         and  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * modules/hash (Files): Add lib/xalloc.h.
71495         * modules/pipe (Depends-on): Add wait-process.
71496         * modules/stat (Depends-on): Add xalloc.
71497         * modules/userspec (Files): Add lib/userspec.h.
71498         * modules/xstrto
71499
71500         Upgrade from gettext-0.13.
71501         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71502         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71503         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71504
71505 2004-06-10  Jim Meyering  <jim@meyering.net>
71506
71507         * lib/calloc.c: New file.
71508
71509 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71510
71511         * lib/getdate.y (yylex): Allow space between sign and number.
71512         Problem reported by Dan Jacobson.
71513
71514 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71515
71516         Merge from coreutils CVS.
71517
71518         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71519         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71520         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71521         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71522         xstrtol.m4: Fix copyright date and/or serial number.
71523
71524         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71525         See if we need an fchown replacement.
71526         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71527         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71528         and use the replacement function if we detect either defect.
71529
71530         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71531         gl_UTIMECMP.
71532
71533 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71534         and  Jim Meyering  <jim@meyering.net>
71535
71536         Merge from coreutils CVS.
71537
71538         * lib/stat-macros.h: New file, with contents from file-type.h
71539         and coreutils' system.h.
71540         * lib/file-type.c: Include "stat-macros.h".
71541         * lib/file-type.h (file_type): Move all macro definitions to new file,
71542         stat-macros.h.
71543
71544         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71545         Wrap old code with this conditional.
71546         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71547         function that does not dereference symlinks.
71548         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71549
71550         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71551         dependency problems.
71552         (xreadlink): Accept new arg SIZE, for efficiency.
71553         All decls and uses changed.
71554         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71555
71556         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71557         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71558
71559         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71560         sysexits.h.
71561
71562 2004-06-01  Jim Meyering  <jim@meyering.net>
71563
71564         * m4/calloc.m4: New file.
71565
71566 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71567
71568         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71569         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71570         Also, fix a typo in a diagnostic.
71571
71572 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71575         or AC_FUNC_REALLOC.
71576
71577 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71578
71579         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71580         macros to be defined.
71581         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71582         the allocator returns NULL because the requested size is zero.
71583
71584 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71585
71586         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71587         var.  Add comment explaining why libc still defines it.  This
71588         merges the following patch from glibc:
71589         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71590
71591 2004-05-20  Andreas Schwab  <schwab@suse.de>
71592
71593         * m4/free.m4: Replace free if it not known to work, not the other
71594         way round.
71595
71596 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71599         present in glibc since revision 1.1 of this file.
71600         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71601         obstack_alignment_mask, obstack_alloc, obstack_base,
71602         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71603         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71604         obstack_grow0, obstack_init, obstack_int_grow,
71605         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71606         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71607         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71608         nonexistent functions.
71609
71610 2004-05-18  Karl Berry  <karl@gnu.org>
71611
71612         * config/srclist.txt: break link for vasnprintf.c.
71613
71614 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71615
71616         Port obstack to the AS/400, where pointers are 16 bytes wide and
71617         you cannot cast an integer to a valid pointer.  This patch is
71618         currently waiting to be integrated into glibc; see
71619         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71620
71621         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71622         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71623         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71624         (struct obstack): temp member is now a union of a pointer and
71625         an integer, instead of an integer.  All integer uses changed.
71626         This does not affect the physical layout of struct obstack,
71627         except on hosts (like the AS/400) where the size or alignment of
71628         void * is greater than that of ptrdiff_t.
71629         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71630         __STDC__)]: Store temporary in pointer member of union, not
71631         integer member.
71632         * lib/obstack.c: Include <stddef.h>, for offsetof.
71633         (struct fooalign): Remove; it doesn't need a name.
71634         (union fooround): Change double to long double, and add void *.
71635         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71636         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71637         not a macro.  Hence the values are always int; so remove all
71638         casts-to-int in uses.
71639
71640 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71641
71642         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71643         we can get this patch merged into glibc.
71644
71645 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71646             Paul Eggert  <eggert@cs.ucla.edu>
71647
71648         * m4/argp: Depend on alloca.
71649
71650 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71651             Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71654         freecoding.
71655
71656 2004-05-17  Bruno Haible  <bruno@clisp.org>
71657
71658         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71659         precision that consists of a '.' followed by an empty digit string.
71660         Patch by Tor Lillqvist <tml@iki.fi>.
71661
71662 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71665         for backward compatibility with older code.  We need our own
71666         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71667         it under some other name, and our alloca.h will define it.
71668
71669 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71670             Derek Price  <derek@ximbiot.com>
71671
71672         * lib/alloca.c: Include <alloca.h>, to get our interface.
71673         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71674         include <alloca.h> first.  Use C89 prototype for alloca; this
71675         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71676         Use #elif for simplicity, since we can assume C89 now.
71677         Don't try to source the system alloca.h since it will not be found
71678         and to prevent recursively including its replacement.
71679         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71680         * lib/regex.c: Likewise.
71681
71682 2004-05-16  Derek Price  <derek@ximbiot.com>
71683             Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         getline cleanup.  This changes the getndelim2 API: both order of
71686         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71687         no delimiter).
71688
71689         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71690         interface does that.
71691         (getline): Always use getdelim, so that we don't have two
71692         copies of this code.
71693         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71694         if available.
71695         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71696         (GETNDELIM2_MAXIMUM): New macro.
71697         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71698         instead of the old practice of delim2==0.  All callers changed.
71699         Return -1 on overflow, instead of returning junk.
71700         Do not set *linesize unless allocation succeeds.
71701         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71702         that we include sys/types.h.
71703         * lib/getnline.h: Likewise.
71704         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71705         (getndelim2): Reorder arguments.
71706         * lib/getnline.c (getnline, getndelim):
71707         Don't discard the NMAX argument.
71708         (getnline): Invoke getndelim, to avoid code duplication.
71709         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71710         of (size_t) -1 by callers of the getnline family.
71711
71712 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71713
71714         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71715         Check for gettimeofday.
71716         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71717         Check for settimeofday, stime.
71718
71719 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71720
71721         * lib/nanosleep.c (suspended): Change its type from int to
71722         sig_atomic_t volatile.
71723         (first_call): Make it private to rpl_nanosleep, and have it
71724         be zero initially as that's a bit faster.
71725         (my_usleep): Round up fractional times instead of truncating them,
71726         as this is the usual meaning for 'sleep'.
71727
71728         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71729         doesn't work.
71730         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71731         (ENOSYS): Define if not defined.
71732         (settime): Fall back on stime if it exists and settimeofday fails.
71733         But don't bother with fallbacks if a method fails with errno == EPERM.
71734
71735 2004-05-11  Jim Meyering  <jim@meyering.net>
71736
71737         Prior to this change, the save_cwd caller required read access to the
71738         current directory on most systems (ones with the fchdir function).
71739
71740         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71741         fails, try write-only, and finally, resort to using xgetcwd.
71742
71743 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         * lib/obstack.c, obstack.h: Import changes from libc.
71746
71747 2004-04-28  Bruno Haible  <bruno@clisp.org>
71748
71749         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71750         also implicitly appends .exe to executables.
71751         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71752         accepts Windows pathnames.
71753         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71754         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71755         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71756         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71757         Reported by Derek Robert Price <derek@ximbiot.com>.
71758
71759 2004-04-21  Karl Berry  <karl@gnu.org>
71760
71761         * config/srclist.txt (localcharset.c): break sync.
71762
71763 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71764
71765         * m4/host-os.m4: Add a copyright notice.
71766
71767 2004-04-20  Jim Meyering  <jim@meyering.net>
71768
71769         Change UTILS_ to gl_ in AC_DEFINE'd names.
71770         Change utils_- and jm_-prefixed variables, too.
71771         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71772         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71774
71775         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71776         Don't emit trailing blanks.
71777         Also rename jm_-prefixed variables to have gl_ prefix.
71778
71779         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71780         Also rename jm_-prefixed variables to have gl_ prefix.
71781
71782         * m4/jm-macros.m4: Reflect the renamings.
71783         * m4/prereq.m4: Likewise.
71784
71785 2004-04-20  Jim Meyering  <jim@meyering.net>
71786
71787         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71788         memory.
71789
71790 2004-04-20  Jim Meyering  <jim@meyering.net>
71791             Bruno Haible  <bruno@clisp.org>
71792
71793         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71794         memory when realloc fails.
71795
71796 2004-04-19  Jim Meyering  <jim@meyering.net>
71797
71798         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71799         now that readutmp.c may call `free (0)'.
71800
71801 2004-04-19  Bruno Haible  <bruno@clisp.org>
71802
71803         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71804         * m4/inttypes_h.m4: Likewise.
71805         * m4/stdint_h.m4: Likewise.
71806         * m4/intmax_t.m4: Likewise.
71807         * m4/uintmax_t.m4: Likewise.
71808
71809 2004-04-18  Jim Meyering  <jim@meyering.net>
71810
71811         * m4/prereq.m4: Don't forbid jm_ prefix.
71812
71813         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71814         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71815         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71816         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71817         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71818         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71819         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71820         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71821         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71822         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71823         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71824         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71825         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71826         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71827         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71828         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71829         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71830         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71831         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71832
71833 2004-04-18  Jim Meyering  <jim@meyering.net>
71834
71835         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71836         failure, don't leak memory and do call END_UTMP_ENT.
71837
71838 2004-04-16  Jim Meyering  <jim@meyering.net>
71839
71840         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71841         coreutils' stat program.
71842         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71843
71844 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71845
71846         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71847         C89.
71848         (CHAR_BIT): Remove, since we assume C89.
71849         Include <stdint.h> if available, as per current Autoconf CVS advice.
71850
71851 2004-03-31  Jim Meyering  <jim@meyering.net>
71852
71853         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71854         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71855         * m4/xalloc.m4: Likewise.
71856
71857 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71858
71859         Merge from coreutils.
71860
71861         * m4/inttostr.m4: New file.
71862         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71863         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71864         Require gl_CLOCK_TIME.
71865         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71866
71867 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71868
71869         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71870         not bool, to be more consistent with Unix conventions.
71871         Suggested by Bruno Haible.
71872
71873         Merge from coreutils.
71874
71875         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71876         * lib/umaxtostr.c: New files.
71877
71878         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71879         the usual <time.h> dance.
71880         (get_date): Change signature to support fractional time stamps.
71881         All callers changed.
71882         * lib/getdate.y: Include "getdate.h" first, as we can now
71883         assume C89 and don't need to worry about 'const'.
71884         Similarly, include "unlocked-io.h" near start, not in middle.
71885         Include <limits.h>.
71886         (textint.value): Use long int rather than int.
71887         (textint.digits): Use size_t rather than int.
71888         (BILLION, LOG10_BILLION): New constants.
71889         (parser_control): New member rel_ns.  Members day_ordinal,
71890         time_zone, month, day, hour, minutes, rel_year, rel_month,
71891         rel_day, rel_hour, rel_minutes, rel_seconds
71892         are now long int, not int.  Member seconds is now struct timespec,
71893         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71894         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71895         not int.
71896         (%union.intval): Now long int, not int.
71897         New member timespec.
71898         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71899         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71900         (spec): Now is a timespec or an item list.
71901         (timespec, items): New nonterminals.
71902         (time, rel, relunit, number, get_date):
71903         Add support for fractional seconds.
71904         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71905         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71906         (to_hour): First arg is now long int, not int.
71907         (to_year): Returns long int, not int.
71908         Don't treat year -70 like 70.
71909         (tm_diff): Returns long int, not int.
71910         (lookup_word): Use bool instead of int when appropriate.
71911         (yylex): Use size_t for count, not int.
71912         Detect overflow when parsing large integer constants.
71913         Add support for fractions.
71914         (get_date): Make pointers 'const' if possible.
71915         Use more-portable code to detect integer overflow.
71916         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71917         Don't use ctime; it's not reliable if the year has >4 digits.
71918
71919         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71920         This is for compatibility with BSD.
71921
71922         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71923         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71924         From coreutils' system.h.
71925
71926         * lib/userspec.c: Don't include "posixver.h".
71927         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71928         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71929         compatible extension.  Simplify code by removing a boolean int
71930         that was always nonzero if a string was nonnull.
71931
71932 2004-03-30  Jim Meyering  <jim@meyering.net>
71933
71934         Merge from coreutils.
71935
71936         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71937         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71938         on some systems one must include <grp.h> before it.
71939         Reported by Christian Krackowizer.
71940
71941 2004-03-30  Jim Meyering  <jim@meyering.net>
71942
71943         Merge from coreutils.
71944
71945         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71946
71947         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71948         an empty input stream.
71949
71950         * lib/readtokens.c: Include <stdbool.h>.
71951         (readtoken): Use `size_t' rather than int/long.
71952         All callers adjusted.
71953         Use `bool' rather than `int' where appropriate.
71954         Use memset rather than an explicit loop.
71955         Use x2nrealloc rather than xrealloc.
71956         Allow the use of `\0' as a delimiter.
71957         (readtokens): Likewise.
71958         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71959
71960 2004-03-30  Jim Meyering  <jim@meyering.net>
71961
71962         * m4/realloc.m4: Remove file, since now it does no more than
71963         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71964         the `configure.ac' section of module/realloc.
71965         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71966
71967 2004-03-30  Bruno Haible  <bruno@clisp.org>
71968
71969         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71970         nonnull.
71971
71972 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71973
71974         Merge changes to getloadavg.c from coreutils and Emacs.
71975
71976         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71977         Define to an expression, not to the empty string.
71978         Include cloexec.h and xalloc.h.
71979         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71980         Use set_cloexec_flag rather than rolling our own.
71981         * lib/cloexec.c, lib/cloexec.h: New files.
71982
71983 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71984
71985         * m4/cloexec.m4: New file.
71986
71987 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71988
71989         * lib/getopt.h: Sync with libc CVS.
71990
71991 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71992             Bruno Haible  <bruno@clisp.org>
71993
71994         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71995         mbswidth.
71996
71997 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71998             Bruno Haible  <bruno@clisp.org>
71999
72000         * lib/mbswidth.h: Include <wchar.h> only if
72001         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72002         <wchar.h>.
72003         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72004
72005 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72006
72007         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72008         Sync with libc CVS.
72009         * lib/getopt_int.h: New file, also synced from libc.
72010
72011 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72012
72013         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72014         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72015         Bring back getopt.c, getopt.h, getopt1.c.
72016
72017 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72018
72019         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72020         All uses changed.  Check for sa_sigaction member; this fixes
72021         a bug first reported by Jason Andrade in
72022         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72023
72024 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72025
72026         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72027         '#if' expressions.  Unlike the code it replaces, it does not
72028         depend on (defined _SC_PAGESIZE).  However, it does depend on
72029         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72030         first reported by Jason Andrade in
72031         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72032
72033 2004-02-25  Simon Josefsson  <jas@extundo.com>
72034
72035         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72036
72037 2004-02-25  Simon Josefsson  <jas@extundo.com>
72038
72039         * lib/strdup.h: New file.
72040         * lib/strdup.c: Include it.
72041         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72042         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72043
72044 2004-02-23  Karl Berry  <karl@gnu.org>
72045
72046         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72047         (from fencepost.gnu.org:/gd/gnuorg).
72048
72049 2004-02-23  Karl Berry  <karl@gnu.org>
72050
72051         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72052         * config/srclist.txt: add maintain/standards documents.
72053
72054 2004-02-18  Bruno Haible  <bruno@clisp.org>
72055
72056         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72057         Reported by Derek Robert Price <derek@ximbiot.com>.
72058
72059 2004-02-16  Karl Berry  <karl@gnu.org>
72060
72061         * config/mkinstalldirs, install-sh: update from automake.
72062
72063 2004-02-06  Karl Berry  <karl@gnu.org>
72064
72065         * m4/po.m4: update from gettext 0.14.1.
72066
72067 2004-02-06  Karl Berry  <karl@gnu.org>
72068
72069         * lib/config.charset: update from gettext 0.14.1.
72070
72071 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72072
72073         Add comments and code, prompted by suggestions from Bruno Haible
72074         for sh-quote.
72075         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72076         describing the enum quoting_style values.
72077         * lib/quotearg.c (quotearg_alloc): New function.
72078         (quotearg_buffer_restyled): Treat lone { and } as special.
72079         Treat = as special.  Work around bug with older shells
72080         that "see" a '\' that is really the 2nd byte of a multibyte char.
72081         Quote empty string with shell_quoting_style.
72082
72083 2004-02-03  Bruno Haible  <bruno@clisp.org>
72084
72085         * m4/pipe.m4: New file, from GNU gettext.
72086
72087 2004-02-03  Bruno Haible  <bruno@clisp.org>
72088
72089         * lib/pipe.h: New file, from GNU gettext.
72090         * lib/pipe.c: New file, from GNU gettext.
72091
72092 2004-01-27  Bruno Haible  <bruno@clisp.org>
72093
72094         * m4/execute.m4: New file, from GNU gettext.
72095
72096 2004-01-27  Bruno Haible  <bruno@clisp.org>
72097
72098         * lib/execute.h: New file, from GNU gettext.
72099         * lib/execute.c: New file, from GNU gettext.
72100         * lib/w32spawn.h: New file, from GNU gettext.
72101
72102 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72103
72104         Merge from diffutils.
72105
72106         * lib/file-type.c (file_type): Add typed memory objects.
72107         * lib/file-type.h (S_TYPEISTMO): New macro.
72108
72109         * lib/c-stack.h (c_stack_action): Remove argv argument.
72110         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72111         (die): Don't calculate message unless segv_action returns.
72112         (get_stack_location, min_address_from_argv, max_address_from_argv,
72113         volatile stack_base, volatile_stack_size): Remove.
72114         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72115         that every segmentation violation is a stack overflow.  (Ouch!)
72116         See Debian bug 136249 (still outstanding) for more info about why
72117         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72118
72119 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72120
72121         Exit-status fix from coreutils.
72122
72123         Use exit_failure consistently in place of EXIT_FAILURE,
72124         so that program exit statuses are consistent on failure.
72125
72126         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72127         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72128         * lib/argmatch.h: Comment fix to match the above.
72129         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72130         Now a macro referring to exit_failure, instead of a separate
72131         variable.  Include "exitfail.h" to get it.
72132         * lib/xstrtol.h: Include "exitfail.h".
72133         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72134
72135         * lib/long-options.c (parse_long_options): Use prototype
72136         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72137         for clarity.
72138
72139 2004-01-21  Jim Meyering  <jim@meyering.net>
72140
72141         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72142         so as not to conflict with a different-sized __mktime_internal
72143         function in GNU libc.
72144         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72145         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72146
72147 2004-01-20  Karl Berry  <karl@gnu.org>
72148
72149         * config/config.guess: update from config.
72150
72151         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72152
72153 2004-01-20  Bruno Haible  <bruno@clisp.org>
72154
72155         Safer stack allocation.
72156         * lib/setenv.c: Include allocsa.h.
72157         (alloca): Remove fallback definition.
72158         (freea): Remove macro.
72159         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72160         instead of freea.
72161
72162 2004-01-20  Bruno Haible  <bruno@clisp.org>
72163
72164         * m4/eealloc.m4: New file, from GNU gettext.
72165
72166 2004-01-20  Bruno Haible  <bruno@clisp.org>
72167
72168         * m4/allocsa.m4: New file, from GNU gettext.
72169
72170 2004-01-20  Bruno Haible  <bruno@clisp.org>
72171
72172         * lib/xallocsa.h: New file, from GNU gettext.
72173         * lib/xallocsa.c: New file, from GNU gettext.
72174
72175 2004-01-20  Bruno Haible  <bruno@clisp.org>
72176
72177         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72178
72179 2004-01-20  Bruno Haible  <bruno@clisp.org>
72180
72181         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72182         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72183         specially.
72184
72185 2004-01-20  Bruno Haible  <bruno@clisp.org>
72186
72187         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72188         patch.
72189
72190 2004-01-20  Bruno Haible  <bruno@clisp.org>
72191
72192         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72193
72194 2004-01-20  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/eealloc.h: New file.
72197
72198 2004-01-20  Bruno Haible  <bruno@clisp.org>
72199
72200         * lib/binary-io.h: Avoid warnings on Cygwin.
72201
72202 2004-01-20  Bruno Haible  <bruno@clisp.org>
72203
72204         * lib/allocsa.h: New file, from GNU gettext.
72205         * lib/allocsa.c: New file, from GNU gettext.
72206
72207 2004-01-18  Karl Berry  <karl@gnu.org>
72208
72209         * doc/gpl.texi, doc/lgpl.texi: new files.
72210
72211 2004-01-18  Karl Berry  <karl@gnu.org>
72212
72213         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72214         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72215
72216 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72217
72218         Merge from coreutils.
72219
72220         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72221         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72222         (gl_DEFAULT_POSIX2_VERSION): Move
72223         the documentation from 'configure' into 'config.hin',
72224         so that 'configure --help' isn't burdened by it and
72225         we don't have to worry about its formatting there.
72226         Reword the documentation so that it's more succinct
72227         and can be run together into a single paragraph.
72228         * m4/same.m4 (gl_SAME): Check for pathconf.
72229
72230 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72231
72232         Merge from coreutils.
72233
72234         * lib/posixver.c: Include posixver.h.
72235
72236         * lib/same.c: Include <stdbool.h>, <limits.h>.
72237         (_POSIX_NAME_MAX): Define if not defined.
72238         (MIN): New macro.
72239         (same_name): If file names are silently truncated, report
72240         that the file names are the same if they are the same after
72241         the silent truncation.
72242
72243         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72244         conversion function.
72245         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72246         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72247         longer needed.
72248
72249 2004-01-15  Jim Meyering  <jim@meyering.net>
72250
72251         Merge from coreutils.
72252
72253         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72254         if no library is required.
72255         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72256         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72257         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72258         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72259         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72260         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72261         value, $ac_cv_search_crypt, if it's "none required".
72262         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72263         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72264         not gl_FUNC_GETLOADAVG.
72265         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72266         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72267
72268 2004-01-15  Jim Meyering  <jim@meyering.net>
72269
72270         Merge from coreutils.
72271
72272         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72273         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72274         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72275
72276         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72277         optional configure-time default.
72278
72279         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72280
72281         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72282
72283 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72284
72285         Merge from coreutils.
72286
72287         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72288         value, $ac_cv_search_nanosleep, if it's "none required".
72289
72290 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72291
72292         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72293         with like-named macro in fnmatch.c.
72294         (EXT): Use an internal constant instead.
72295
72296         Merge fnmatch patches from glibc.
72297         * lib/fnmatch.c (mbsinit): Remove define.
72298         Add libc_hidden_ver (__fnmatch, fnmatch).
72299         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72300         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72301
72302 2004-01-14  Karl Berry  <karl@gnu.org>
72303
72304         * config/install-sh: update from automake.
72305
72306 2004-01-13  Karl Berry  <karl@gnu.org>
72307
72308         * config/install-sh: update from automake.
72309
72310 2004-01-09  Karl Berry  <karl@gnu.org>
72311
72312         * config/install-sh: update from automake.
72313
72314 2004-01-05  Karl Berry  <karl@gnu.org>
72315
72316         * config/config.{sub,guess}: update from config.
72317
72318 2003-12-31  Karl Berry  <karl@gnu.org>
72319
72320         * config/depcomp: update from automake.
72321
72322 2003-12-14  Karl Berry  <karl@gnu.org>
72323
72324         * lib/config.charset: update from gettext-runtime.
72325
72326 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72327
72328         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72329         Bug reported by Alfred M. Szmidt.
72330
72331 2003-12-03  Bruno Haible  <bruno@clisp.org>
72332
72333         * m4/gettext.m4: Upgrade from gettext-0.13.
72334         * m4/po.m4: Upgrade from gettext-0.13.
72335         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72336         * m4/intmax.m4: New file, from gettext-0.13.
72337         * m4/printf-posix.m4: New file, from gettext-0.13.
72338
72339 2003-11-29  Karl Berry  <karl@gnu.org>
72340
72341         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72342
72343 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72344             Bruno Haible  <bruno@clisp.org>
72345
72346         * lib/printf-parse.h: Don't include sys/types.h.
72347         (ARG_NONE): New macro.
72348         (char_directive): Change type of *arg_index fields to size_t.
72349         * lib/printf-parse.c: Don't include sys/types.h.
72350         (SSIZE_MAX): Remove macro.
72351         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72352         Remove unnecessary overflow check.
72353         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72354         fields.
72355
72356 2003-11-25  Bruno Haible  <bruno@clisp.org>
72357
72358         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72359
72360 2003-11-25  Bruno Haible  <bruno@clisp.org>
72361
72362         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72363         gt_TYPE_SSIZE_T.
72364
72365 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72366
72367         * modules/alloca: Remove dependency on xalloc.
72368
72369 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72370
72371         * lib/alloca.c: Remove dependency on xalloc module.
72372         (xalloc_die): Remove.
72373         (memory_full) [!defined emacs]: New macro.
72374         [!defined emacs]: Don't include xalloc.h.
72375         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72376         address arithmetic overflows.  Change datatypes a bit to avoid
72377         unnecessary casts.
72378
72379 2003-11-22  Jim Meyering  <jim@meyering.net>
72380
72381         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72382         s/size/size_t/.
72383
72384 2003-11-21  Karl Berry  <karl@gnu.org>
72385
72386         * config/config.{sub,guess}: update from config.
72387
72388 2003-11-18  Karl Berry  <karl@gnu.org>
72389
72390         * config/config.{sub,guess}: update from config.
72391
72392         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72393
72394 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72395
72396         * README: Mention that S+T cannot overflow if S is the size of
72397         an existing object and T is sufficiently small.
72398
72399 2003-11-17  Jim Meyering  <jim@meyering.net>
72400
72401         On systems without utime and without a utimes function capable of
72402         dealing with a NULL struct utimbuf* argument, this utime replacement
72403         could -- in unusual circumstances -- leak a file descriptor.
72404         * lib/utime.c: Include <unistd.h> and <errno.h>.
72405         (utime_null): Be sure to close `fd' and to preserve errno.
72406         Reported by Geoff Collyer via Arnold Robbins.
72407
72408 2003-11-17  Bruno Haible  <bruno@clisp.org>
72409
72410         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72411         (Depends-on): Add xsize.
72412
72413 2003-11-17  Bruno Haible  <bruno@clisp.org>
72414
72415         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72416
72417 2003-11-17  Bruno Haible  <bruno@clisp.org>
72418
72419         * lib/vasnprintf.c (alloca): Remove fallback definition.
72420         (freea): Remove definition.
72421         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72422         Reported by Paul Eggert.
72423
72424 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72425             Bruno Haible  <bruno@clisp.org>
72426
72427         Protect against address arithmetic overflow.
72428         * lib/printf-args.h: Include stddef.h.
72429         (arguments): Change type of field 'count' to size_t.
72430         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72431         'unsigned int' where appropriate.
72432         * lib/printf-parse.h: Include sys/types.h.
72433         (char_directive): Change type of *arg_index fields to ssize_t.
72434         (char_directives): Change type of fields 'count', max_*_length to
72435         size_t.
72436         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72437         (SSIZE_MAX): Define fallback value.
72438         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72439         instead of 'int' where appropriate. Check a_allocated, d_allocated
72440         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72441         * lib/vasnprintf.c: Include xsize.h.
72442         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72443         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72444         overflow. Avoid wraparound when converting a width or precision from
72445         decimal to binary.
72446
72447 2003-11-16  Bruno Haible  <bruno@clisp.org>
72448
72449         Update from GNU gettext.
72450         * lib/printf-parse.c: Generalize to it can be compiled for wide
72451         strings.
72452         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72453         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72454         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72455         SNPRINTF): New macros.
72456         Don't include <alloca.h> if the file is used inside libintl.
72457         (local_wcslen): New function, for Solaris 2.5.1.
72458         (VASNPRINTF): Use it instead of wcslen.
72459
72460 2003-11-16  Bruno Haible  <bruno@clisp.org>
72461
72462         * lib/xsize.h (xmax): New function.
72463         (xsum, xsum3, xsum4): Declare as "pure" functions.
72464
72465 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72466
72467         * modules/xalloc (Files): Undo latest change, since xalloc.h
72468         no longer needs SIZE_MAX or PTRDIFF_MAX.
72469
72470 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72471
72472         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72473         gl_PTRDIFF_MAX.
72474
72475 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72476
72477         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72478         "return", to pacify some unknown compiler.  Problem reported
72479         by Joerg Schilling.
72480
72481 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72482
72483         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72484         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72485         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72486         heuristic is just as accurate as far as we know, and it removes a
72487         dependency on size_max.m4 and ptrdiff_max.m4.
72488
72489 2003-11-11  Bruno Haible  <bruno@clisp.org>
72490
72491         * modules/xsize (Files): Add m4/size_max.m4.
72492         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72493
72494 2003-11-11  Bruno Haible  <bruno@clisp.org>
72495
72496         * m4/size_max.m4: New file.
72497         * m4/ptrdiff_max.m4: New file.
72498         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72499         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72500         (gl_XALLOC): Invoke it.
72501
72502 2003-11-11  Bruno Haible  <bruno@clisp.org>
72503
72504         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72505         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72506         defined.
72507
72508 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72509
72510         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72511         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72512         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72513         From Bruno Haible.
72514         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72515         not (size_t) -1, since it's defined here.
72516
72517 2003-11-09  Karl Berry  <karl@gnu.org>
72518
72519         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72520
72521 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72522
72523         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72524         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72525         Reject sizes of exactly SIZE_MAX bytes.
72526         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72527         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72528
72529 2003-11-05  Bruno Haible  <bruno@clisp.org>
72530
72531         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72532         SIZE_MAX defined in <limits.h> on Solaris.
72533
72534 2003-11-04  Jim Meyering  <jim@meyering.net>
72535
72536         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72537         variable names, rather than @VAR@.
72538         * modules/poll: Likewise.
72539
72540 2003-11-04  Bruno Haible  <bruno@clisp.org>
72541
72542         * modules/xsize: New file.
72543         * modules/linebreak: Depend on xsize.
72544         * MODULES.html.sh (func_all_modules): Add xsize.
72545
72546 2003-11-04  Bruno Haible  <bruno@clisp.org>
72547
72548         * m4/xsize.m4: New file.
72549
72550 2003-11-04  Bruno Haible  <bruno@clisp.org>
72551
72552         * lib/xsize.h: New file.
72553         * lib/linebreak.c: Include xsize.h.
72554         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72555         argument for overflow.
72556         Suggested by Paul Eggert.
72557
72558 2003-11-03  Karl Berry  <karl@gnu.org>
72559
72560         * config/config.{guess,sub}: update from config.
72561
72562 2003-11-03  Jim Meyering  <jim@meyering.net>
72563
72564         * modules/userspec (lib_SOURCES): Add userspec.h.
72565         (Include): Add "userspec.h".
72566         Improve description.
72567
72568 2003-11-03  Jim Meyering  <jim@meyering.net>
72569
72570         * lib/userspec.c: Include "userspec.h".
72571         * lib/userspec.h: New file.
72572
72573 2003-11-03  Bruno Haible  <bruno@clisp.org>
72574
72575         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72576
72577 2003-11-03  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72580         available, to avoid (extremely rare) race condition.
72581         Suggested by Paul Eggert.
72582
72583 2003-11-02  Karl Berry  <karl@gnu.org>
72584
72585         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72586
72587 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72588
72589         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72590         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72591         (read_filesystem_list): Set and use me_type_malloced.
72592         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72593         whatever the type happens to be), for brevity and consistency.
72594         Check for size calculation overflow on Alphas running OSF/1.
72595
72596 2003-10-31  Jim Meyering  <jim@meyering.net>
72597
72598         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72599
72600         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72601
72602 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72603             Bruno Haible  <bruno@clisp.org>
72604
72605         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72606         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72607
72608 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72609
72610         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72611         netbsd*-gnu*.  Suggested by Robert Millan.
72612
72613 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72614
72615         * modules/group-member: Depend on stdbool.
72616
72617 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72618
72619         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72620
72621 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72622
72623         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72624         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72625         after the 'gnu' in these cases.  This fixes some bugs in the
72626         previous change, and is based on suggestions by Robert Millan.
72627
72628 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72629
72630         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72631         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72632         no longer needed.
72633         * lib/quotearg.c (quotearg_n_options): Use it.
72634         * lib/group-member.c: Include <stdbool.h>.
72635         (free_group_info): Arg is now const *; don't free arg.
72636         (get_group_info): Now returns bool and accepts struct group_info *,
72637         rather than returning a malloc'ed struct group_info *.
72638         All uses changed.  Check for overflow in internal size calculation.
72639
72640         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72641         rather than xmalloc/xrealloc.
72642         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72643         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72644         conformance bug: the old code used a pointer after freeing the
72645         storage that it addressed.
72646         * lib/hash.c (hash_initialize): Simplify the code by using
72647         xalloc_oversized rather than doing it by hand.
72648         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72649         the buffer preserved.  Use free and xmalloc instead.
72650         * lib/quotearg.c (quotearg_n_options): Likewise.
72651         Use a simpler test for size overflow.  Don't use xalloc_oversized
72652         because unsigned int might be wider than size_t (!); this suggests
72653         that we should switch from unsigned int to size_t for slot numbers.
72654
72655 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72656
72657         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72658         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72659         NetBSD kernels.  Requested by Richard Stallman.
72660
72661 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72662
72663         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72664         to allocate the returned structure.  Do not allocate a subarray,
72665         as x2nrealloc will do that.
72666         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72667         instead of xnrealloc.
72668         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72669
72670 2003-10-27  Bruno Haible  <bruno@clisp.org>
72671
72672         * lib/stdbool_.h: Better support for BeOS.
72673
72674 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72675
72676         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72677         now uses inline.
72678
72679 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72680
72681         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72682         callers that want to do their own size-overflow checking.  Include
72683         <stdbool.h>, since xalloc_oversized returns bool.
72684         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72685         to use xalloc_oversized.
72686
72687         Add two functions x2realloc, x2nrealloc, for programs that grow
72688         arrays dynamically by doubling their sizes.
72689         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72690         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72691         New functions.
72692
72693         Port to C99 semantics for 'inline' of external functions.
72694         Bug reported by Bruno Haible.
72695         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72696         with the old contents of xnmalloc.
72697         (xnmalloc, xmalloc): Use it.
72698         (xnrealloc_inline): New static inline function,
72699         with the old contents of xnrealloc.
72700         (xnrealloc, xrealloc): Use it.
72701
72702         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72703         that.
72704
72705 2003-10-26  Karl Berry  <karl@gnu.org>
72706
72707         * config/srclist.txt (COPYING.DOC): no longer available from
72708         /gd/gnuorg; don't know where the ultimate source is.
72709
72710 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72711
72712         Fix several address-calculation bugs in the hash modules,
72713         plus some minor code cleanup.
72714
72715         * lib/hash.h: Include <stdbool.h>, for bool.
72716         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72717         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72718         hash_get_n_entries, hash_get_max_bucket_length,
72719         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72720         hash_rehash): Use size_t rather than unsigned.
72721         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72722         hash_get_n_buckets_used, hash_get_n_entries,
72723         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72724         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72725         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72726         Likewise.
72727         (SIZE_MAX): Define if not defined.
72728         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72729         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72730         hash_print):
72731         Use const * when possible.
72732         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72733         (check_tuning): Fix bug: if tuning parameters were very close to
72734         0 or 1, rounding errors could have caused subscript violations.
72735         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72736         (hash_initialize): Add 'fail:' label
72737         to free table and return NULL, and use it to simplify code.
72738         Use calloc rather than clearing the storage ourself.
72739         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72740         buffer size calculations.
72741         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72742         Include <stddef.h>, for size_t.
72743         * lib/hash-pjw.c (hash_pjw): Likewise.
72744         Switch to method described by Bruno Haible.
72745         Include <limits.h>, for CHAR_BIT.
72746         (SIZE_BITS): New macro.
72747
72748 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72749
72750         * m4/getline.m4 (AM_FUNC_GETLINE):
72751         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72752         hosts.  Problem reported by Derek Robert Price in
72753         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72754         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72755         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72756
72757 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72758
72759         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72760         ceiling the allocation at NMAX bytes rather than silently
72761         discarding input bytes before NMAX is reached.  This makes
72762         a difference only if NMAX exceeds SIZE_MAX / 2.
72763
72764         * lib/obstack.c: Merge from glibc.
72765         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72766         Add libc_hidden_def (_obstack_newchunk).
72767         (_obstack_free) [! defined _LIBC]: Remove.
72768         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72769         a clone of the function body.
72770         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72771         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72772
72773         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72774         glibc.
72775         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72776         arg to memcpy.
72777
72778         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72779         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72780         Don't use lvalue casts, as GCC plans to remove support for them
72781         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72782         was also present in the non-GCC version, indicating that this
72783         code had always been buggy and had never been widely used.
72784         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72785         Use the fast variant of each macro, rather than copying the
72786         definiens of the fast variant; that way, we'll be more likely to
72787         catch future bugs in the fast variants.
72788
72789 2003-10-20  Bruno Haible  <bruno@clisp.org>
72790
72791         * modules/wait-process: New file.
72792         * MODULES.html.sh (func_all_modules): Add wait-process.
72793
72794 2003-10-20  Bruno Haible  <bruno@clisp.org>
72795
72796         * m4/wait-process.m4: New file.
72797
72798 2003-10-20  Bruno Haible  <bruno@clisp.org>
72799
72800         * lib/wait-process.h: New file, from GNU gettext.
72801         * lib/wait-process.c: New file, from GNU gettext.
72802
72803 2003-10-19  Jim Meyering  <jim@meyering.net>
72804
72805         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72806         HPUX 10.20.
72807
72808 2003-10-18  Karl Berry  <karl@gnu.org>
72809
72810         * config/config.guess: update from config.
72811
72812 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72813
72814         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72815         (getgroups): First arg is int, not size_t.
72816         Don't let 'free' mangle errno.
72817
72818 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72819
72820         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72821
72822 2003-10-16  Karl Berry  <karl@gnu.org>
72823
72824         * config/config.{guess,sub}: update from config.
72825
72826 2003-10-16  Jim Meyering  <jim@meyering.net>
72827
72828         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72829         memcpy.
72830
72831 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72832
72833         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72834         (SIZE_MAX): Remove.
72835         (new_exclude, add_exclude_file): Initial size no longer needs to
72836         be a power of 2.
72837         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72838         our own address arithmetic overflow checking.
72839
72840         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72841         (fnmatch): Do not alloca more than 2000 wide characters;
72842         instead, use malloc for large buffers.
72843         Check for address arithmetic overflow, and return -1
72844         with errno set to ENOMEM in that case.
72845         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72846         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72847         instead, return -1.  Check for address arithmetic overflow.
72848
72849 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72850
72851         Handle invalid suffixes and overflow independently, so that
72852         callers can treat them independently as needed.  Fix some bugs in
72853         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72854         suffix for a human-readable blocksize.  The major caller-visible
72855         change is the addition of a new
72856         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72857         that both overflow and suffix chars were found.
72858
72859         * lib/human.c (humblock): Don't check separately for invalid suffix
72860         char; that is xstrtoumax's job (now that its bug is fixed).
72861         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72862         INTMAX_MAX]: New macros.
72863         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72864         TYPE_MAXIMUM): New macros.
72865         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72866         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72867         if overflow occurs, as it's what __strtol does and it's more useful
72868         in practice.
72869         (__xstrtol): If __strtol reports some error other than ERANGE,
72870         reflect it to the caller as LONGINT_INVALID.  If it reports
72871         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72872         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72873         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72874         value.
72875         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72876         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72877         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72878         [defined UINTMAX_MAX]: New macros.
72879
72880 2003-10-14  Bruno Haible  <bruno@clisp.org>
72881
72882         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72883
72884 2003-10-14  Bruno Haible  <bruno@clisp.org>
72885
72886         * m4/sig_atomic_t: New file, from GNU gettext.
72887         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72888
72889 2003-10-14  Bruno Haible  <bruno@clisp.org>
72890
72891         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72892         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72893         Also use volatile where needed.
72894
72895 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72896
72897         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72898         Change maintainer from Bruno Haible to 'all'.
72899
72900 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72901
72902         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72903
72904 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72905
72906         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72907         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72908         and define in terms of the other primitives.
72909         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72910         (SIZE_MAX): Define if not already defined.
72911         (array_size_overflow): New function.
72912         (xalloc_die): Abort instead of exiting if 'error' returns.
72913         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72914         (xmalloc, xrealloc): Use them.
72915         (xcalloc): Check for address arithmetic overflow.
72916         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72917         a bit faster than strcpy.
72918
72919 2003-10-10  Simon Josefsson  <jas@extundo.com>
72920
72921         * modules/argp (Depends-on): Add restrict and strcase.
72922
72923 2003-10-10  Simon Josefsson  <jas@extundo.com>
72924
72925         * m4/argp.m4: Add AC_C_INLINE.
72926
72927 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72928
72929         Merge getpass from libc, plus a few fixes.
72930
72931         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72932         Include <stdbool.h>.
72933         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72934         __fsetlocking to empty.
72935         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72936         do include <bits/libc-lock.h>.
72937         Do not include <fcntl.h>; not needed.
72938         [_LIBC]: Include <wchar.h>.
72939         (NOTCANCEL_MODE): New macro.
72940         (flockfile, funlockfile) [_LIBC]: New macros.
72941         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72942         [!_LIBC]: New macros.
72943         (call_fclose): New function.
72944         (getpass): Use it.  Save tty stream separately; this simplifies the
72945         code and makes it more reliable if stdin happens to equal stdout.
72946         Invoke __fsetlocking on tty.
72947         Handle thread cancellation if needed.
72948         Namespace cleanup (use __tcgetattr, __getline).
72949         Use bool for Booleans.
72950         [USE_IN_LIBIO]: Handle wide streams.
72951         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72952         stream might go where.
72953
72954         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72955         doesn't have to include <stdio.h> before us.
72956         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72957         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72958         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72959         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72960         if not declared, so that we can use getpass.c code from libc without
72961         rewriting it.
72962         (flockfile, ftrylockfile, funlockfile): New macros.
72963
72964 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72965
72966         * modules/getpass: Depend on stdbool.
72967
72968 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72969
72970         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72971
72972 2003-10-07  Karl Berry  <karl@gnu.org>
72973
72974         * config/config.{guess,sub}: update from config.
72975
72976 2003-10-06  Jim Meyering  <jim@meyering.net>
72977             Bruno Haible  <bruno@clisp.org>
72978
72979         This lets translators provide better translations for the
72980         "Written by ..." part of --version output.
72981         * lib/version-etc.h: Include stdarg.h.
72982         (version_etc_copyright): Declare as readonly.
72983         (version_etc): Make this function variadic with a NULL-terminated list
72984         of author name strings.
72985         (version_etc_va): New declaration.
72986         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72987         (version_etc_copyright): Declare as readonly.
72988         (version_etc_va): New function. Provide a different translatable string
72989         for each possible number of authors < 10. Abbreviate when there are 10
72990         authors or more.
72991         (version_etc): Make this function variadic. Call version_etc_va.
72992         Suggestion from Gary V. Vaughan.
72993
72994         * lib/long-options.h (parse_long_options): Change prototype: the
72995         authors string is moved to the end and becomes variadic.
72996         * lib/long-options.c: Include stdarg.h.
72997         (parse_long_options): Make this function variadic, too.
72998         Call version_etc_va, not version_etc.
72999
73000 2003-10-06  Bruno Haible  <bruno@clisp.org>
73001
73002         * modules/version-etc-2: Remove file.
73003         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73004
73005 2003-10-06  Bruno Haible  <bruno@clisp.org>
73006
73007         * modules/fatal-signal: New file.
73008         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73009
73010 2003-10-06  Bruno Haible  <bruno@clisp.org>
73011
73012         * m4/fatal-signal.m4: New file.
73013         * m4/signalblocking.m4: New file, from GNU gettext.
73014
73015 2003-10-06  Bruno Haible  <bruno@clisp.org>
73016
73017         * lib/version-etc-2.h: Remove file.
73018         * lib/version-etc-2.c: Remove file.
73019
73020 2003-10-06  Bruno Haible  <bruno@clisp.org>
73021
73022         * lib/fatal-signal.h: New file, from GNU gettext.
73023         * lib/fatal-signal.c: New file, from GNU gettext.
73024
73025 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73026
73027         * README: Rework advice for preventing empty .o files.
73028         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73029         not <sys/types.h>.
73030
73031 2003-10-04  Karl Berry  <karl@gnu.org>
73032
73033         * lib/argp*: update from libc.
73034
73035 2003-10-04  Karl Berry  <karl@gnu.org>
73036
73037         * config/config.{guess,sub}: update from config.
73038
73039 2003-10-02  Bruno Haible  <bruno@clisp.org>
73040
73041         * modules/lchown (Include): Add lchown.h.
73042         * modules/time_r (Include): Use "..." syntax.
73043         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73044
73045 2003-10-01  Simon Josefsson  <jas@extundo.com>
73046
73047         * MODULES.html.sh (func_all_modules): Move gethostname from section
73048         'based on' to section 'lacking' POSIX:2001.
73049
73050 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73051
73052         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73053         to output mode on the same stream.
73054
73055 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73056
73057         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73058         Fix arg typo in previous patch.
73059
73060 2003-09-28  Jim Meyering  <jim@meyering.net>
73061
73062         * lib/error.c: Correct cpp indentation.
73063
73064 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73065
73066         * modules/free: New file.
73067
73068 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73069
73070         * m4/free.m4: New file.
73071
73072 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73073
73074         * lib/minmax.h (MIN, MAX)
73075         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73076         Omit the special code that used __typeof__, since we worry that
73077         it could be more trouble than it's worth.  See:
73078         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73079         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73080
73081         * lib/free.c: New file.
73082
73083 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73084
73085         Trivial fixes to Makefile.am parts of module listings.
73086         * modules/strstr: Append strstr.h to lib_SOURCES.
73087         * modules/strcase: Likewise, for strcase.h.
73088
73089 2003-09-27  Karl Berry  <karl@gnu.org>
73090
73091         * config/mkinstalldirs: update from automake.
73092
73093 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73094
73095         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73096         (error_tail): Do not loop, reallocating temporary buffer, since
73097         the output cannot contain more wide characters than the input
73098         contains bytes, the size must be big enough already.  This avoids
73099         one potential size overflow calculation.  Check for size overflow
73100         when calculating temporary buffer size.  Free temporary buffer
73101         when done, if it was allocated with malloc; this plugs a memory
73102         leak.  Remove casts from void * to pointers, that are no longer
73103         needed now that we're assuming C89 or better.
73104
73105         Merge error changes from glibc.
73106
73107         * lib/error.c, error.h: Update copyright notice header to match glibc.
73108         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73109         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73110         Disable cancellation while printing error.
73111         * lib/error.h: Prepend __ to parameter names.
73112
73113 2003-09-26  Jim Meyering  <jim@meyering.net>
73114
73115         * lib/error.c (error_tail): Move some declarations
73116         into inner scope where the local variables are used.
73117
73118 2003-09-26  Bruno Haible  <bruno@clisp.org>
73119
73120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73121         stpncpy().
73122         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73123
73124 2003-09-26  Bruno Haible  <bruno@clisp.org>
73125
73126         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73127         (stpncpy): Define as alias for gnu_stpncpy.
73128         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73129
73130 2003-09-25  Simon Josefsson  <jas@extundo.com>
73131
73132         * lib/xgetdomainname.h: New file.
73133         * lib/xgetdomainname.c: New file.
73134
73135 2003-09-25  Simon Josefsson  <jas@extundo.com>
73136             Bruno Haible  <bruno@clisp.org>
73137
73138         * modules/getdomainname: New file.
73139         * modules/xgetdomainname: New file.
73140         * MODULES.html.sh (func_all_modules): Add getdomainname,
73141         xgetdomainname.
73142
73143 2003-09-25  Simon Josefsson  <jas@extundo.com>
73144             Bruno Haible  <bruno@clisp.org>
73145
73146         * m4/getdomainname.m4: New file.
73147
73148 2003-09-25  Simon Josefsson  <jas@extundo.com>
73149             Bruno Haible  <bruno@clisp.org>
73150
73151         * lib/getdomainname.h: New file.
73152         * lib/getdomainname.c: New file.
73153
73154 2003-09-25  Karl Berry  <karl@gnu.org>
73155
73156         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73157
73158 2003-09-25  Karl Berry  <karl@gnu.org>
73159
73160         * config/install-sh: update from automake.
73161
73162 2003-09-25  Bruno Haible  <bruno@clisp.org>
73163
73164         * modules/version-etc-2: New file, from modules/version-etc with
73165         modifications.
73166         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73167
73168 2003-09-25  Bruno Haible  <bruno@clisp.org>
73169
73170         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73171         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73172
73173 2003-09-24  Simon Josefsson  <jas@extundo.com>
73174
73175         * modules/xgethostname: Add xgethostname.h.
73176
73177 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73178
73179         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73180         the buffer associated with the argument.  Bug reported by
73181         Simon Josefsson.
73182
73183 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73184
73185         * README: Document assumptions that 'int' is at least 32 bits
73186         wide, that integer arithmetic is 2's complement without overflow,
73187         that there are no holes in integer values, that adding sizes of
73188         two nonoverlapping objects can't overflow, and that all-bits-zero
73189         yields scalar zero.  Fix spelling and capitalization typos.
73190
73191 2003-09-19  Karl Berry  <karl@gnu.org>
73192
73193         * lib/argp.h: update from libc.
73194
73195 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73196
73197         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73198         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73199         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73200
73201 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73202
73203         * gnulib-tool: Use "test -h", not "test -L", for portability
73204         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73205         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73206         (sed_extract_prog): Issue s commands one-by-one, rather than
73207         using \| in one s command.
73208
73209 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73210
73211         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73212         input error, instead of returning NULL the next time we are called
73213         (and therefore losing track of errno).
73214
73215 2003-09-16  Bruno Haible  <bruno@clisp.org>
73216
73217         * gnulib-tool (func_create_testdir): Warn about duplicated
73218         dependencies.
73219
73220 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73221
73222         * modules/argmatch, modules/fatal, modules/obstack,
73223         modules/xalloc, modules/xgethostname: Sort dependencies by
73224         importance, not alphabetically.
73225
73226 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73227
73228         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73229         fails, so that the caller gets the proper errno.
73230
73231         * lib/readutmp.c (read_utmp): Likewise.
73232         Check for fstat error.  Close stream and free storage
73233         when failing.
73234
73235 2003-09-14  Karl Berry  <karl@gnu.org>
73236
73237         * config/srclist.txt (strdup.c): disable for c89 changes.
73238
73239 2003-09-14  Jim Meyering  <jim@meyering.net>
73240
73241         * lib/getloadavg.c: Correct cpp indentation.
73242         * lib/strdup.c: Likewise.
73243         * lib/vasnprintf.c: Likewise.
73244
73245 2003-09-14  Bruno Haible  <bruno@clisp.org>
73246
73247         * modules/fwriteerror: New file.
73248         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73249
73250 2003-09-14  Bruno Haible  <bruno@clisp.org>
73251
73252         * lib/fwriteerror.h: New file.
73253         * lib/fwriteerror.c: New file.
73254
73255 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73256
73257         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73258         modules/xgethostname, modules/xalloc: Depend on exit.
73259
73260 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73261
73262         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73263
73264         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73265         and AC_MINIX, too, so that their extensions are available.
73266
73267         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73268         This macro has been superseded by gl_BACKUPFILE.
73269
73270         More patches to assume C89 or better.
73271
73272         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73273
73274         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73275         unconditionally.
73276         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73277         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73278         Include <string.h>, <stdlib.h> unconditionally.
73279         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73280         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73281         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73282         headers or for string.h.
73283         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73284         or strtoul.
73285
73286         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73287         headers.
73288         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73289         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73290         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73291         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73292         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73293         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73294         memcpy, memset.
73295         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73296         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73297         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73298         strtol.
73299         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73300         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73301         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73302         strtoul.
73303
73304 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73305
73306         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73307         * lib/obstack.c [!defined _LIBC]: Likewise.
73308         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73309         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73310         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73311
73312         More changes to assume C89 or better.
73313
73314         * lib/error.c (error_tail): Assume vprintf.
73315
73316         * lib/argmatch.c (getenv): Remove decl.
73317         * lib/progreloc.c (get_full_program_name): Define via prototype.
73318         * lib/setenv.c (clearenv): Likewise.
73319         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73320         needed.
73321         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73322         (malloc, memcpy): Remove decls.
73323         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73324         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73325         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73326         (memcpy): Remove macro.
73327         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73328         (__P): Remove.  All uses removed.
73329         (PTR): Remove.  All uses changed to void *.
73330         (CHAR_BIT, NULL): Remove.
73331         (spaces, zeros, memset_space, memset_zero)
73332         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73333         Remove.
73334         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73335         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73336         Define with prototype.
73337         Remove now-unnecessary prototype decl.
73338         (extra_args_spec): Assume ANSI C.  All uses changed.
73339         (extra_args_spec_iso): Remove.
73340         (my_strftime, emacs_strftimeu): Define via prototype.
73341         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73342         unconditionally.
73343         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73344         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73345         (strtoul, strtol): Remove decls.
73346         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73347         LONG_MAX): Remove.
73348         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73349         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73350         (LOCALE_PARAM_PROTO): New macro.
73351         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73352         (INTERNAL (strtol), strtol): Define with a prototype.
73353         (PARAMS): Remove.  All uses removed.
73354         * lib/tempname.c: Include <string.h> unconditionally.
73355         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73356         * lib/xgethostname.c (main): Define with a prototype.
73357         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73358         Include <stdlib.h> unconditionally.
73359         (calloc, malloc, realloc, free): Remove decls.
73360         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73361         Include <stdlib.h> unconditionally.  Sort include file names.
73362         (strtod): Remove.
73363         (xstrtod): Define with a prototype.
73364         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73365         (strtol, strtoul): Remove decls.
73366
73367 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73368
73369         More patches to assume C89 or better.
73370         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73371         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73372         string.h, memchr, STDC_HEADERS.
73373
73374 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73375
73376         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73377         Include <stdlib.h>, <string.h> unconditionally.
73378         Remove now-unnecessary cast to char *.
73379         * lib/strnlen.c: Include <string.h> unconditionally.
73380         * lib/yesno.c (yesno): Define with a prototype.
73381
73382 2003-09-11  Bruno Haible  <bruno@clisp.org>
73383
73384         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73385
73386 2003-09-10  Jim Meyering  <jim@meyering.net>
73387
73388         * lib/error.c: Correct indentation of cpp directives.
73389
73390 2003-09-10  Bruno Haible  <bruno@clisp.org>
73391
73392         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73393         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73394         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73395         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73396         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73397         <stdlib.h> and <string.h> checks.
73398         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73399         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73400
73401 2003-09-10  Bruno Haible  <bruno@clisp.org>
73402
73403         * lib/strcspn.c: Include <string.h> unconditionally.
73404         * lib/strpbrk.c: Include <string.h> unconditionally.
73405         * lib/strstr.c: Include <string.h> unconditionally.
73406         * lib/unicodeio.c: Include <string.h> unconditionally.
73407         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73408         * lib/unsetenv.c: Likewise.
73409         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73410         * lib/yesno.c: Include <stdlib.h> unconditionally.
73411         (rpmatch): Add prototype.
73412
73413 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73414
73415         More patches to assume C89 or better.
73416         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73417         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73418         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73419         or for string.h.
73420         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73421         stdlib.h.
73422         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73423         C headers.
73424         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73425         string.h.
73426         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73427         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73428         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73429         or for string.h.
73430         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73431         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73432         C headers.
73433         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73434         memcpy.
73435         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73436         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73437         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73438         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73439         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73440         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73441         string.h, free.
73442         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73443         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73444         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73445         C headers, or for string.h.
73446         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73447         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73448         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73449         headers, memory.h, stdlib.h, string.h, strings.h.
73450         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73451         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73452         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73453         strchr.
73454         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73455         headers, memory.h, string.h.
73456         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73457         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73458         free.
73459         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73460         headers.
73461         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73462         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73463         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73464         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73465         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73466
73467 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73468
73469         More K&R removal.
73470
73471         * lib/acosl.c (main): Use a prototype.
73472         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73473         tanl.c: Likewise.
73474
73475         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73476
73477         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73478         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73479         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73480         with a prototype.
73481         * lib/getopt.c (const): Remove macro.
73482         Include <string.h> unconditionally.
73483         (my_index): Remove; all uses changed to strchr.
73484         (strlen): Remove decl.
73485         (exchange): Remove forward decl; no longer needed.
73486         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73487         Define with prototype.
73488         * lib/getopt1.c (const): Remove macro.
73489         (getopt_long, getopt_long_only, main): Define with prototype.
73490
73491         * lib/getugroups.c: Include <string.h> unconditionally.
73492
73493         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73494         (getusershell, setusershell, endusershell, readname, main):
73495         Define with prototypes.
73496
73497         * lib/group-member.c: Include group-member.h first.
73498         Include <stdlib.h> unconditionally.
73499
73500         * lib/hard-locale.c: Include hard-locale.h first.
73501         Include <stdlib.h>, <string.h> unconditionally.
73502
73503         * lib/hash.c (free, malloc): Remove decls.
73504         Include <stdlib.h> unconditionally.
73505
73506         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73507         (getenv): Do not declare.
73508
73509         * lib/idcache.c: Include <string.h> unconditionally.
73510
73511         * lib/long-options.c: Include long-options.h first, to test interface.
73512         Include <stdlib.h> unconditionally.
73513
73514         * lib/makepath.c: Include makepath.h first, to test interface.
73515         Include <stdlib.h> and <string.h> unconditionally.
73516
73517         * lib/linebuffer.c: Include <stdlib.h>.
73518         (free): Remove decl.
73519
73520         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73521         stddef.h. rpl_malloc returns void *, not char *.
73522         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73523         prototype.
73524
73525         * lib/md5.h: Include <limits.h> unconditionally.
73526         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73527         (__P): Remove; all uses removed.
73528         * lib/md5.c: Include "md5.h" first.
73529         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73530         md5_buffer, md5_process_bytes, md5_process_block):
73531         Define with prototypes.
73532         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73533         * lib/sha.c: Include "sha.h" first.
73534         Include <stdlib.h>, <string.h> unconditionally.
73535
73536         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73537         * lib/memcmp.c (__ptr_t): Likewise.
73538         * lib/memrchr.c (__ptr_t): Likewise.
73539         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73540         Include <string.h> unconditionally.
73541         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73542         * lib/memchr.c: Include <stdlib.h> unconditionally.
73543         * lib/memchr.c (LONG_MAX): Remove.
73544         * lib/memrchr.c (LONG_MAX): Likewise.
73545         * lib/memchr.c (__memchr): Define via a prototype.
73546         * lib/memrchr.c (__memrchr): Likewise.
73547         * lib/memcmp.c (__P): Remove, and remove all uses.
73548         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73549         Remove forward decls; no longer needed.
73550         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73551         Use types required by C89 in prototype.
73552
73553         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73554         * lib/savedir.c: Likewise.
73555         * lib/mkdir.c (free): Remove decl.
73556         * lib/rmdir.c (rmdir): Define with a prototype.
73557         * lib/savedir.c: Include savedir.h first, to test interface.
73558
73559         * lib/mktime.c (STDC_HEADERS): Remove.
73560         Include <stdlib.h>, <string.h> unconditionally.
73561
73562         * lib/modechange.c: Include <stdlib.h> unconditionally.
73563         (malloc): Remove decl.
73564
73565         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73566         (free): Remove decl.
73567
73568         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73569         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73570         (This type really should be intptr_t, but that's a C99ism.)
73571         (_obstack_memcpy): Remove: all uses changed to memcpy.
73572         Include <string.h> unconditionally.
73573         (struct obstack): Assume __STDC__ for types of members
73574         chunkfun, freefun, extra_arg.
73575         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73576         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73577         obstack_begin, obstack_specify_allocation,
73578         obstack_specify_allocation_with_arg, obstack_chunkfun,
73579         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73580         Remove unprototyped decls and the macros that use them.
73581         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73582         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73583         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73584         (defined __STDC__ && __STDC__)]:
73585         Remove nonprototyped code.
73586         Include <stdlib.h> unconditionally.
73587         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73588         _obstack_allocated_p, _obstack_free, obstack_free,
73589         _obstack_memory_used, print_and_abort):
73590         Define using prototypes.
73591         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73592         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73593         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73594         obstack_next_free, obstack_object_size, obstack_room) [0]:
73595         Remove unused, unprototyped code.
73596
73597         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73598
73599         * lib/physmem.c (physmem_total, physmem_available, main): Define
73600         with prototypes.
73601
73602         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73603         (main): Define with a prototype.
73604
73605         * lib/posixver.c (getenv): Remove decl.
73606
73607         * lib/putenv.c (malloc): Returns void *, not char *.
73608         Include <string.h> unconditionally.
73609         (strchr, memcpy, NULL): Do not define.
73610
73611         * lib/readtokens.c: Include readtokens.h first, to test interface.
73612         Include <stdlib.h>, <string.h> unconditionally.
73613         (init_tokenbuffer): Define with a prototype.
73614
73615         * lib/regex.c (PARAMS): Remove.  All uses removed.
73616         All uses of _RE_ARGS removed, too.
73617         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73618         unconditionally.
73619         (bzero): Assume memset exists.
73620         (memcmp, memcpy, NULL): Remove.
73621         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73622         char, or assignments to local vars of type signed char.
73623         (init_syntax_once, PREFIX(extract_number_and_incr),
73624         PREFIX(print_partial_compiled_pattern),
73625         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73626         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73627         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73628         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73629         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73630         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73631         wcs_compile_range, byte_compile_range, truncate_wchar,
73632         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73633         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73634         count_mbs_length, wcs_re_match_2_internal,
73635         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73636         PREFIX(alt_match_null_string_p),
73637         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73638         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73639         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73640         now-unnecessary declaration, if any.
73641         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73642         regcomp, regexec):
73643         Remove now-unnecessary casts among pointer types.
73644         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73645
73646         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73647         (free): Remove decl.
73648
73649         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73650
73651         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73652         (free): Remove decl.
73653
73654         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73655         * lib/xgetcwd.c: Likewise.
73656
73657         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73658         (free): Remove decl.
73659
73660         * lib/strchrnul.c (strchrnul): Define with a prototype.
73661         Fix bug: c_in was not converted to char before searching.
73662
73663         The following changes are not K&R related:
73664
73665         * lib/group-member.h: Include <sys/types.h>, so that this file is
73666         self-contained.
73667         * lib/makepath.h: Likewise.
73668
73669         * lib/getusershell.c (readname, default_index, line_size, readname):
73670         Use size_t, not int, for sizes.
73671         (readname): If the size overflows, report an error instead of
73672         looping forever.
73673
73674 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73675
73676         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73677         libc.
73678
73679 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73680
73681         * README: New section: portability guidelines.
73682
73683 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73684
73685         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73686         C89 spec.
73687
73688 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73689
73690         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73691
73692 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73693
73694         Assume C89 or better; remove K&R cruft.
73695         A few of these changes were first proposed by Derek Robert Price
73696         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73697
73698         * lib/addext.c: Include <string.h> unconditionally.
73699         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73700         Don't declare getenv or malloc.
73701
73702         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73703         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73704         (NULL): Remove.
73705         (find_stack_direction, alloca): Use prototypes.
73706
73707         * lib/atexit.c (atexit): Define using a prototype.
73708
73709         * lib/basename.c, dirname.c, stripslash.c:
73710         Include <string.h> unconditionally.
73711
73712         * lib/bcopy.c: Include <stddef.h>.
73713         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73714
73715         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73716
73717         * lib/error.h (error, error_at_line, error_print_progname)
73718         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73719         * lib/error.c: Include error.h first, to check interface.
73720         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73721         (VA_START): Remove; all uses changeed to va_start.
73722         (exit, strerror): Remove decls.
73723         (error_print_progname): Prototype uncondionally.
73724         Don't include <errno.h>; no longer needed.
73725         (private_strerror): Remove.
73726         (error_tail): Always define.
73727         (error, error_at_line): Assume C89 or better; always use prototypes.
73728         * lib/fatal.c: Include "fatal.h" first, to test interface.
73729         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73730         (VA_START): Remove; all uses changed to va_start.
73731         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73732         this case.
73733         (exit): Remove decl.
73734         (fatal): Prototype unconditionally.  Assume va_start works.
73735         Abort at end, to pacify gcc.
73736
73737         * lib/euidaccess.c (main): Define with a prototype.
73738
73739         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73740
73741         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73742
73743         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73744         prototypes.
73745         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73746         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73747         (getenv): Remove decl.
73748         (fnmatch): Define using a prototype.
73749         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73750         (FCT): Define using a prototype.
73751
73752         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73753
73754         * lib/gethostname.c: Include <stddef.h>.
73755         (gethostname): Define with prototype.  Length is size_t, not int.
73756
73757 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73758
73759         Assume C89 or better; remove K&R cruft.
73760         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73761         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73762         string.h, getenv, malloc.
73763         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73764         headers.
73765         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73766         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73767         do not check for strerror.
73768         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73769         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73770         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73771         do not check for doprnt or vprintf.
73772         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73773         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73774
73775 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73776
73777         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73778         getversion.c should have been removed then, but was accidentally
73779         preserved.
73780
73781         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73782         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73783
73784 2003-09-08  Karl Berry  <karl@gnu.org>
73785
73786         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73787                 config, forget about prep.
73788
73789         * config/depcomp, missing: update from automake.
73790
73791 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73792
73793         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73794         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73795
73796 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73797
73798         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73799         copy_tm_result.  Bug reported by Simon Josefsson in
73800         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73801
73802 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73803
73804         * m4/time_r.m4: New file.
73805         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73806         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73807         is. Check for timegm declaration.
73808         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73809         Do not check for gmtime_r.
73810         Replace mktime if __mktime_internal does not exist and if mktime
73811         hasn't been replaced already.
73812
73813 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73814
73815         * lib/time_r.c, lib/time_r.h: New files.
73816
73817         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73818         __localtime_r.
73819         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73820         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73821
73822         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73823         __gmtime_r.
73824         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73825         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73826         Include <time_r.h>.
73827
73828         * lib/timegm.c: Switch to glibc implementation, with the following
73829         changes:
73830         [defined HAVE_CONFIG_H]: Include <config.h>.
73831         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73832         (__mktime_internal) [!defined _LIBC]: New decl.
73833         (__gmtime_r) [!defined _LIBC]: New macro and function.
73834         (timegm): Use a prototype, since gnulib assumes C89.
73835         Do not bother declaring tmp to be const, as it's not really usefu.
73836         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73837         (timegm): Declare only if HAVE_DECL_TIMEGM.
73838
73839 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73840
73841         * MODULES.html.sh (func_all_modules): Add time_r.
73842         * modules/time_r: New file.
73843         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73844         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73845
73846 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73847
73848         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73849         Bug reported by Lute Kamstra in
73850         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73851
73852         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73853         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73854         course with correspondingly smaller numbers for tomorrow and
73855         yesterday.  From Tadayoshi Funaba.  Originally installed into
73856         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73857         coreutils merge?).
73858
73859 2003-08-31  Simon Josefsson  <jas@extundo.com>
73860
73861         * modules/timegm: New file.
73862         * MODULES.html.sh (func_all_modules): Add timegm.
73863
73864 2003-08-31  Simon Josefsson  <jas@extundo.com>
73865
73866         * m4/timegm.m4: New file.
73867
73868 2003-08-31  Simon Josefsson  <jas@extundo.com>
73869
73870         * lib/timegm.h: New file.
73871         * lib/timegm.c: New file.  Based on
73872         wget-1.8.2/src/http.c:mktime_from_utc.
73873
73874 2003-08-31  Karl Berry  <karl@gnu.org>
73875
73876         * lib/argp.h: update from libc.
73877
73878 2003-08-28  Bruno Haible  <bruno@clisp.org>
73879
73880         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73881         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73882         followed by '#define fnmatch fnmatch_posix' gives an error.
73883
73884 2003-08-28  Bruno Haible  <bruno@clisp.org>
73885
73886         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73887         warning on QNX, which defines O_BINARY to 000000.
73888
73889 2003-08-27  Jim Meyering  <jim@meyering.net>
73890
73891         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73892         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73893         would fail after 32.  Reported by Danny Levinson.  Details here:
73894         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73895
73896 2003-08-24  Bruno Haible  <bruno@clisp.org>
73897
73898         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73899         MSVC7 <stdio.h> is included later.
73900
73901 2003-08-22  Simon Josefsson  <jas@extundo.com>
73902
73903         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73904
73905 2003-08-20  Karl Berry  <karl@gnu.org>
73906
73907         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73908
73909 2003-08-20  Bruno Haible  <bruno@clisp.org>
73910
73911         * modules/progname: New file.
73912         * MODULES.html.sh (func_all_modules): Add progname.
73913
73914 2003-08-20  Bruno Haible  <bruno@clisp.org>
73915
73916         * lib/progname.h: New file, from GNU gettext.
73917         * lib/progname.c: New file, from GNU gettext.
73918         * lib/progreloc.c: New file, from GNU gettext.
73919
73920 2003-08-19  Jim Meyering  <jim@meyering.net>
73921
73922         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73923         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73924
73925 2003-08-19  Bruno Haible  <bruno@clisp.org>
73926
73927         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73928         more.
73929
73930 2003-08-19  Bruno Haible  <bruno@clisp.org>
73931
73932         * lib/xstrdup.c: Assume <string.h> exists.
73933
73934 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73935
73936         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73937         in makefile rules.
73938
73939 2003-08-18  Jim Meyering  <jim@meyering.net>
73940
73941         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73942         * m4/lib-ld.m4: Likewise.
73943
73944 2003-08-18  Jim Meyering  <jim@meyering.net>
73945
73946         * lib/setenv.h: Indent nested cpp directive.
73947         * lib/vasnprintf.c: Remove trailing blanks.
73948
73949 2003-08-17  Simon Josefsson  <jas@extundo.com>
73950
73951         * modules/xstrndup: New file.
73952         * MODULES.html.sh (func_all_modules): Add xstrndup.
73953
73954 2003-08-17  Simon Josefsson  <jas@extundo.com>
73955
73956         * modules/argp: Fix autoconf macro name. Add more dependencies.
73957
73958 2003-08-17  Simon Josefsson  <jas@extundo.com>
73959
73960         * m4/xstrndup.m4: New file.
73961
73962 2003-08-17  Simon Josefsson  <jas@extundo.com>
73963
73964         * m4/argp.m4: New file.
73965
73966 2003-08-17  Simon Josefsson  <jas@extundo.com>
73967             Bruno Haible  <bruno@clisp.org>
73968
73969         * lib/xstrndup.h: New file.
73970         * lib/xstrndup.c: New file.
73971
73972 2003-08-17  Bruno Haible  <bruno@clisp.org>
73973
73974         * modules/strndup (Files, Include): Add lib/strndup.h.
73975
73976 2003-08-17  Bruno Haible  <bruno@clisp.org>
73977
73978         * modules/euidaccess (Files): Add lib/euidaccess.h.
73979
73980 2003-08-17  Bruno Haible  <bruno@clisp.org>
73981
73982         * lib/strndup.h: New file.
73983
73984 2003-08-17  Bruno Haible  <bruno@clisp.org>
73985
73986         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73987         like AC_GNU_SOURCE.
73988         * modules/extensions (configure.ac): Comment out the invocation of
73989         gl_USE_SYSTEM_EXTENSIONS.
73990
73991 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73992
73993         Merges from coreutils, etc.
73994         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73995         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73996         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73997         fixing a typo.
73998         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73999         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74000
74001 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74002
74003         Document merge from coreutils.
74004         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74005         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74006         * modules/utime: Add m4/utimes-null.m4.
74007
74008 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74009
74010         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74011         space, undoing this 2003-08-12 change:
74012         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74013
74014 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74015
74016         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74017         strtoul.c from libc, undoing this 2003-08-12 change:
74018         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74019
74020 2003-08-16  Jim Meyering  <jim@meyering.net>
74021
74022         Merges from coreutils.
74023         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74024         prefix.  Adjust cache variables similarly.  Create 500 rather than
74025         just 300 files, to exercise bug on Darwin6.5, too.
74026         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74027         $missing_dir.
74028         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74029         AM_SYS_POSIX_TERMIOS.
74030         Reported by mkc@mathdogs.com.
74031         Also change use of $am_cv_sys_posix_termios
74032         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74033         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74034         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74035         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74036         in /proc/mounts until it finds one with matching device number.  This
74037         is unnecessary when the FILE argument *is* a mount point.  No stat call
74038         is necessary in that case.  So, disable the statvfs-testing code on
74039         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74040         as RedHat bug# 84846.
74041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74042         to 1MB, so as not to render systems with no stack size limit (e.g.,
74043         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74044         Include <unistd.h>.  On some systems,
74045         it is required for the definition of _SC_PAGESIZE.
74046
74047 2003-08-16  Jim Meyering  <jim@meyering.net>
74048
74049         Merge from coreutils.
74050         * lib/xstrtoimax.c: #else #if -> #elif.
74051         * lib/xstrtoumax.c: Likewise.
74052
74053 2003-08-16  Jim Meyering  <jim@meyering.net>
74054
74055         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74056         * m4/utimes.m4: Removed.
74057         * m4/utimes-null.m4: Renamed from utimes.m4.
74058
74059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74060         to 1MB, so as not to render systems with no stack size limit (e.g.,
74061         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74062         Include <unistd.h>.  On some systems,
74063         it is required for the definition of _SC_PAGESIZE.
74064
74065 2003-08-16  Jim Meyering  <jim@meyering.net>
74066         and Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         Merges from coreutils, etc.
74069
74070         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74071         using the latest version from cvs.  This avoids problems with #line
74072         directives using a vendor (Sun) compiler.
74073         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74074         Don't set GETGROUPS_LIB here; now it's
74075         done via getgroups.m4's wrapper function.
74076         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74077         rather than just in sh-util/configure.in, so that the
74078         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74079         same.
74080         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74081         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74082         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74083         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74084         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74085         Remove code that is now done by the newly-required macros.
74086         Append $(EXEEXT) to DF_PROG.
74087         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74088         Do not invoke or require the following here,
74089         since prereq.m4 or some gnulib .m4 now does this for us:
74090         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74091         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74092         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74093         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74094         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74095         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74096         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74097         AC_FUNC_OBSTACK.
74098         Do not replace the following functions, as this is now the job
74099         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74100         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74101         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74102         atexit getpass, strdup, getpagesize.
74103         Replace 'raise'.
74104         Do not check for the following functions, as this is now the job
74105         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74106         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74107         setregid.
74108         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74109         Check for sys/sysctl.h.
74110         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74111         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74112         of checking for ssize_t ourselves.
74113
74114         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74115         Require every macro that gnulib/modules/* suggests for us.
74116         (jm_PREREQ_ADDEXT): New macro.
74117         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74118         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74119
74120         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74121         (gl_PHYSMEM): Use it.
74122         Also check for `table' function.
74123         Check for new headers and functions.
74124         Add check for sys/sysmp.h.
74125         With suggestions from Kaveh Ghazi.
74126         Ignore headers that are present but cannot be compiled.  This
74127         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74128         C 5.4.
74129
74130 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74131
74132         Document merge from coreutils.
74133         * modules/userspec: Depend on posixver.
74134         * modules/strftime: Depend on tzset.
74135
74136 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74137
74138         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74139         rather than tab, after '#' in shell-script copyright notices.
74140         Suggested by Bruno Haible.
74141
74142 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74143
74144         * config/srclist-update: Use three spaces, rather than tab, after '#'
74145         in shell-script copyright notices.  Suggested by Bruno Haible.
74146         Remove unnecessary parenthesization in regular expression.
74147
74148 2003-08-15  Jim Meyering  <jim@meyering.net>
74149
74150         Merge from coreutils.
74151         * lib/xgethostname.c: Include <stdlib.h>.
74152         (xghostname): Don't exit for anything other than memory-related
74153         failure; just return NULL.
74154         * lib/userspec.c: Include "posixver.h".
74155         (parse_user_spec): Accept `.' as a separator only
74156         in pre-POSIX-200112 mode.
74157         * lib/strtoimax.c: Use #elif rather than #else #if.
74158         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74159         Remove function, now that we can rely on a working tzset function.
74160         [!_LIBC]: Ensure that the required autoconf test has been run.
74161         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74162         Use underlying_strftime for %r.
74163         * lib/sha.c: Merge in some clean-up and optimization changes from
74164         glibc.
74165         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74166         Ensure that it is a multiple of 64.
74167         Rearrange loop exit tests so as to avoid performing an
74168         additional fread after encountering an error or EOF.
74169         * lib/realloc.c: Update copyright date.
74170
74171 2003-08-15  Jim Meyering  <jim@meyering.net>
74172         and Paul Eggert  <eggert@twinsun.com>
74173
74174         Merge from coreutils.
74175         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74176         member but strut utmpx does not.  Needed for AIX 4.3.3.
74177         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74178
74179 2003-08-15  Jim Meyering  <jim@meyering.net>
74180         and Paul Eggert  <eggert@cs.ucla.edu>
74181
74182         Merges from coreutils, etc.
74183         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74184         Require gl_FUNC_TZSET_CLOBBER.
74185         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74186         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74187         members.
74188
74189 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74190
74191         Help the merge from coreutils.
74192         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74193         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74194         * m4/tzset.m4: Use it too.
74195
74196 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74197
74198         * modules/tzset: New file.
74199
74200 2003-08-14  Jim Meyering  <jim@meyering.net>
74201
74202         Merges from coreutils.
74203         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74204         variable names, rather than @FNMATCH_H@.
74205         * modules/alloca: Likewise for $(ALLOCA_H).
74206
74207         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74208         the three copies of the literal target, `fnmatch.h'.
74209         * modules/alloca (alloca.h): Likewise.
74210
74211 2003-08-14  Jim Meyering  <jim@meyering.net>
74212
74213         Merge from coreutils.
74214         * m4/tzset.m4: New file.
74215         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74216         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74217         otherwise, AIX 5.1 systems would end up using the latter.
74218         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74219         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74220         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74221         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74222
74223 2003-08-14  Jim Meyering  <jim@meyering.net>
74224
74225         Merge from coreutils.
74226         * lib/obstack.h: Whitespace changes.
74227         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74228         and xcalloc return values.
74229         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74230         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74231         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74232         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74233         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74234         error from mntctl.
74235         Use mntctl's return value to drive the entry-processing loop, since
74236         we can't rely on the value of the vmt_length member in the last
74237         entry.  On some systems doing so could result in exhausting
74238         virtual memory.  Based in part on a patch from Mike Jetzer.
74239
74240 2003-08-14  Jim Meyering  <jim@meyering.net>
74241         and Paul Eggert  <eggert@twinsun.com>
74242
74243         Merges from coreutils, plus other fixes.
74244         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74245         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74246         for credits and details.  Thanks to Kaveh Ghazi for helping
74247         to keep these files in sync.
74248         (ARRAY_SIZE): Define it.
74249         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74250         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74251         (memcasecmp): Don't assume size_t fits in unsigned int.
74252         Remove casts and duplicate code.
74253         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74254         (memcpy): Remove definition.
74255         Merge in some clean-up and optimization changes from glibc.
74256         [BLOCKSIZE]: Move definition to top of file.
74257         Ensure that it is a multiple of 64.
74258         Rearrange loop exit tests so as to avoid performing an
74259         additional fread after encountering an error or EOF.
74260         * lib/md5.h (md5_uintptr): Define.
74261         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74262         return to the initial working directory.  Preserve errno
74263         for caller.
74264         * lib/idcache.c: Include "xalloc.h".
74265         (xmalloc, xrealloc): Remove decls.
74266         (getuser): Remove casts no longer required in C89.
74267         * lib/human.c: Include stdio.h, for sprintf.
74268         * lib/group-member.c: Include "xalloc.h".
74269         (xmalloc, xrealloc): Remove decls.
74270         (get_group_info): Remove casts no longer required in C89.
74271         * lib/getusershell.c (readname): Remove casts no longer required in
74272         C89.
74273         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74274         * lib/getline.c: Whitespace fix, from coreutils.
74275
74276 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74277
74278         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74279         Check for isascii.
74280
74281         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74282         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74283         Undo previous (whitespace-only) change.
74284
74285 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74286
74287         * lib/exclude.c: Include <ctype.h>
74288         (IN_CTYPE_DOMAIN): New macro.
74289         (is_space): New fn.
74290         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74291         and empty lines.
74292
74293         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74294         Undo previous (whitespace-only) change.
74295
74296 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74297
74298         * config/srclist-update: Change update back to the old behavior,
74299         leaving whitespace alone.  Use one 'sed' command rather than a
74300         pipeline.
74301         (fixlicense): Now a variable, not a function.
74302         (remove_trailing_blanks): Remove.
74303         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74304         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74305         Undo previous (whitespace-only) change.
74306
74307 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74308
74309         Merge from coreutils.
74310         * modules/euidaccess: Add lib_SOURCES, include for new
74311         file euidaccess.h
74312
74313 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74314
74315         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74316         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74317         Normalize leading white space and remove trailing white space.
74318
74319         Merge from coreutils
74320         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74321
74322         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74323         0.12.1.  These files are now being upgraded automatically by
74324         ../config/srclist-update.
74325
74326 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74327
74328         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74329         Normalize leading white space and remove trailing white space.
74330         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74331         notice, as per ../config/srclist-update.
74332
74333         Merge from coreutils.
74334         * lib/euidaccess.h: New file.
74335         * lib/euidaccess.c: Include it.
74336         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74337         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74338         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74339
74340 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74341
74342         * config/srclist-update: Add copyright notice.
74343         (remove_id_lines, remove_trailing_blanks): New constants.
74344         (fixfile): Use them to normalize spacing a bit in copied files.
74345         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74346         Normalize leading white space and remove trailing white space.
74347
74348         * config/texinfo.tex: Sync with texinfo.
74349
74350         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74351         strtoul.c from libc, to merge coreutils whitespace changes.
74352
74353         * config/srclist.txt: Get the following m4 files from gettext:
74354         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74355         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74356         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74357         wint_t.m4.
74358
74359 2003-08-12  Karl Berry  <karl@gnu.org>
74360
74361         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74362         been made.
74363
74364 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74365
74366         * modules/gnu-source, m4/gnu-source.m4:
74367         Remove; we're assuming Autoconf 2.54 or later now.
74368         Suggested by Bruno Haible.
74369         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74370
74371 2003-08-11  Bruno Haible  <bruno@clisp.org>
74372
74373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74374
74375 2003-08-11  Bruno Haible  <bruno@clisp.org>
74376
74377         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74378         (vasnprintf): Use it instead of wcslen.
74379
74380 2003-08-11  Bruno Haible  <bruno@clisp.org>
74381
74382         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74383         value to ensure that _Bool promotes to int. Use #define for _Bool when
74384         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74385
74386 2003-08-10  Karl Berry  <karl@gnu.org>
74387
74388         * lib/regex.h: update from libc (whitespace fix).
74389
74390 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74391
74392         Merge some files from coreutils.  These changes were
74393         originally made by Jim Meyering.
74394         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74395         many older Unixes require this.
74396         * lib/alloca.c (alloca): Remove cast to argument of free;
74397         no longer needed in C89.
74398         * lib/alloca_.h, regex.h: Fix white space to match
74399         what GNU indent does.
74400
74401 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74402
74403         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74404         apparently Emacs's Unicode mode got confused before my 2003-08-05
74405         checkin.
74406
74407 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74408
74409         * m4/extensions.m4: New file.
74410         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74411         Require gl_USE_SYSTEM_EXTENSIONS.
74412         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74413         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74414
74415 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74416
74417         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74418         * modules/extensions, modules/gnu-source: New files.
74419         * modules/timespec, modules/unlocked-io: Depend on extensions.
74420
74421 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74422
74423         * modules/restrict: New file.
74424         * MODULES.html.sh (func_all_modules): Add restrict.
74425         * modules/regex: Depend on restrict.
74426
74427 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74428
74429         * m4/restrict.m4: New file.
74430         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74431
74432 2003-08-07  Bruno Haible  <bruno@clisp.org>
74433
74434         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74435         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74436
74437 2003-08-07  Bruno Haible  <bruno@clisp.org>
74438
74439         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74440         makes the module 'getndelim2' compatible with the module 'getline'.
74441
74442 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74443
74444         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74445         byte with "\201" to avoid glitches when editing that source file
74446         with multi-gnome-terminal.
74447
74448 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74449
74450         * lib/bumpalloc.h: Remove.
74451
74452 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74453
74454         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74455         * modules/bumpalloc: Remove.
74456
74457 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74458
74459         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74460         GNU coding style.
74461
74462         Merge from coreutils.
74463         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74464         1. From glibc.
74465         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74466         from Karl Berry, implemented by Jim Meyering.
74467         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74468         from Dmitry V. Levin.
74469         Remove anachronistic cast of xrealloc.
74470         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74471         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74472         type. Otherwise, it wouldn't compile with at least /bin/cc on
74473         ymp-cray-unicos9.0.2.X.
74474         Combine two mostly-identical uses of alloca into one.
74475         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74476
74477 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74478
74479         [From Emacs.]
74480
74481         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74482         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74483         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74484         obsolete NLIST_NAME_UNION.
74485         [__GNU__]: Undef BSD and FSCALE.
74486         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74487
74488 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74489
74490         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74491         an enum type, so that it's guaranteed to promote to int.  See:
74492         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74493
74494 2003-08-03  Karl Berry  <karl@gnu.org>
74495
74496         * config/depcomp: update from automake.
74497
74498 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74499
74500         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74501         (strerror): Don't assume that a printable int fits in 14 bytes.
74502
74503 2003-07-31  Bruno Haible  <bruno@clisp.org>
74504
74505         * modules/getpass-gnu: New file.
74506         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74507
74508 2003-07-31  Bruno Haible  <bruno@clisp.org>
74509
74510         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74511
74512 2003-07-24  Karl Berry  <karl@gnu.org>
74513
74514         * config/missing: update from automake.
74515
74516 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74517             Bruno Haible  <bruno@clisp.org>
74518
74519         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74520         * lib/getline.c (getline, getdelim): Likewise.
74521         Remove _GNU_SOURCE define; now it's defined in config.h through
74522         m4/getline.m4.
74523
74524 2003-07-23  Karl Berry  <karl@gnu.org>
74525
74526         * config/config.sub: update from prep.
74527
74528 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74529
74530         * modules/xalloc (Depends-on): Add exitfail.
74531         * modules/xmemcoll: Likewise.
74532
74533 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74534
74535         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74536         over-parenthesization in macros.
74537
74538         Sync with coreutils.
74539
74540         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74541         required by C99.
74542
74543         Use `exit_failure' for xalloc and xmemcoll instead of their own
74544         private exit-failure variables.
74545         * lib/xalloc.h (xalloc_exit_failure): Remove.
74546         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74547         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74548         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74549         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74550         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74551
74552 2003-07-20  Jim Meyering  <jim@meyering.net>
74553
74554         * modules/closeout (Depends-on): Add exitfail.
74555         Suggestion from Bruno Haible.
74556
74557 2003-07-19  Karl Berry  <karl@gnu.org>
74558
74559         * config/config.sub: update from prep.
74560
74561 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74562
74563         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74564         Remove.
74565         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74566         to test that it can stand by itself.  Include "exitfail.h".
74567         Clients should set exit_failure instead.
74568         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74569
74570 2003-07-18  Bruno Haible  <bruno@clisp.org>
74571
74572         * modules/getndelim2: New file.
74573         * modules/getline: Share files with module getndelim2.
74574         * modules/getnline: Depend on getndelim2 instead of sharing files with
74575         it. Add getnline.c to lib_SOURCES.
74576         * MODULES.html.sh (func_all_modules): Add getndelim2.
74577
74578 2003-07-18  Bruno Haible  <bruno@clisp.org>
74579
74580         * m4/getndelim2.m4: New file.
74581         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74582         invoke gl_PREREQ_GETNDELIM2.
74583         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74584         gl_PREREQ_GETNDELIM2.
74585         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74586         gl_GETNDELIM2.
74587
74588 2003-07-18  Bruno Haible  <bruno@clisp.org>
74589
74590         * lib/getndelim2.h: New file.
74591         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74592         getndelim2.h.
74593         (getndelim2): Make non-static. Change return type to ssize_t.
74594         * lib/getline.h: Change argument names.
74595         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74596         * lib/getnline.c: Include getndelim2.h.
74597
74598 2003-07-18  Andreas Schwab  <schwab@suse.de>
74599
74600         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74601
74602 2003-07-17  Karl Berry  <karl@gnu.org>
74603
74604         * config/config.sub: update from prep.
74605
74606 2003-07-17  Bruno Haible  <bruno@clisp.org>
74607
74608         * modules/getnline: New file.
74609         * modules/getline: Add lib/getndelim2.c to source file list.
74610         * MODULES.html.sh (func_all_modules): Add getnline.
74611
74612 2003-07-17  Bruno Haible  <bruno@clisp.org>
74613
74614         * m4/getnline.m4: New file.
74615
74616 2003-07-17  Bruno Haible  <bruno@clisp.org>
74617
74618         * m4/Makefile.am.in: Remove file.
74619         * m4/Makefile.am: Remove file.
74620         * m4/Makefile.in: Remove file.
74621
74622 2003-07-17  Bruno Haible  <bruno@clisp.org>
74623
74624         * lib/getnline.h: New file.
74625         * lib/getnline.c: New file.
74626         * lib/getndelim2.c: New file, extracted from getline.c.
74627         (getndelim2): Renamed from getdelim2, with added nmax argument.
74628         * lib/getline.c: Include getndelim2.c.
74629         (getdelim2): Moved out to getndelim2.c.
74630         (getline, getdelim): Update.
74631
74632 2003-07-17  Bruno Haible  <bruno@clisp.org>
74633
74634         * lib/Makefile.am: Remove file.
74635         * lib/Makefile.in: Remove file.
74636
74637 2003-07-17  Bruno Haible  <bruno@clisp.org>
74638
74639         * configure.in: Remove file.
74640         * Makefile.in: Remove file.
74641
74642 2003-07-17  Bruno Haible  <bruno@clisp.org>
74643
74644         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74645
74646 2003-07-16  Karl Berry  <karl@gnu.org>
74647
74648         * config/srclist-update: was running fixlicense twice, which caused
74649                 texinfo.tex to be nullified for some reason.  Simplify,
74650                 $gplsrc is no longer needed as far as I can see?
74651
74652 2003-07-16  Jim Meyering  <jim@meyering.net>
74653
74654         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74655
74656 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74657
74658         * config/srclist.txt: Get the following files from gettext-runtime/intl
74659         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74660         ref-del.sin.  From Bruno Haible.
74661         * config/srclist-update (fixfile): Change grep pattern again, since the
74662         previous fix didn't work (there was another trailing $).  Use
74663         '[$]' to escape the $s.
74664
74665 2003-07-15  Karl Berry  <karl@gnu.org>
74666
74667         * lib/vasnprintf.c: update from gettext.
74668
74669 2003-07-15  Karl Berry  <karl@gnu.org>
74670
74671         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74672         gets expanded when surrounded by '$'.
74673
74674 2003-07-15  Jim Meyering  <jim@meyering.net>
74675
74676         * modules/save-cwd: Don't depend on error.  From Derek Price.
74677
74678 2003-07-15  Jim Meyering  <jim@meyering.net>
74679
74680         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74681
74682 2003-07-14  Simon Josefsson  <jas@extundo.com>
74683
74684         * modules/mempcpy: New file.
74685         * MODULES.html.sh (func_all_modules): Add mempcpy.
74686
74687 2003-07-14  Simon Josefsson  <jas@extundo.com>
74688
74689         * m4/mempcpy.m4: New file.
74690
74691 2003-07-14  Simon Josefsson  <jas@extundo.com>
74692
74693         * lib/mempcpy.h: New file.
74694         * lib/mempcpy.c: New file.
74695
74696 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74697
74698         * modules/getdate, modules/posixtm: Depend on mktime.
74699
74700 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74701
74702         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74703         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74704         unicodeio.c, unicodeio.h, unlocked-io.h:
74705         Switch from LGPL to GPL.
74706
74707 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74708
74709         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74710         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74711         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74712         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74713         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74714         updated automatically by ../config/srclist-update.  This changes
74715         their license from LPGL to GPL.
74716
74717 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74718
74719         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74720         assumed to refer to the root of the most recent stable gettext version.
74721         * config/srclistvars.sh: Add defaults for eggert.
74722         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74723         Match "This program" as well as "The program".  This is needed
74724         for gettext.
74725
74726 2003-07-14  Jim Meyering  <jim@meyering.net>
74727
74728         Don't emit diagnostics.  Let callers do that.
74729         * lib/save-cwd.c: Don't include "error.h".
74730         (save_cwd): Don't call error.  Ensure that errno is valid
74731         when returning nonzero.
74732
74733         * lib/save-cwd.h (restore_cwd): Update prototype.
74734         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74735         Simplify.  Don't call error upon failure.  Let callers do that.
74736         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74737         when auditing is enabled.  But don't bother updating the #if.
74738
74739 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74740
74741         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74742         it breaks C++ compilation.
74743         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74744
74745 2003-07-10  Simon Josefsson  <jas@extundo.com>
74746
74747         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74748
74749 2003-07-10  Jim Meyering  <jim@meyering.net>
74750
74751         * m4/clock_time.m4: Remove trailing blank.
74752         * m4/intmax_t.m4: Likewise.
74753
74754 2003-07-10  Jim Meyering  <jim@meyering.net>
74755
74756         * lib/vasnprintf.c: Remove trailing blanks.
74757         Make cpp indentation consistent.
74758
74759 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74760
74761         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74762         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74763         Switch from LGPL to GPL.
74764
74765 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74766
74767         * config/srclist.txt: Sort sublists.  Add
74768         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74769         that differ from gnulib for one reason or another; we'd like this list
74770         to be smaller but for now let's document what we have.
74771
74772 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74773
74774         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74775         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74776         and sweeter "eval x=$x".
74777         * config/srclist.txt: Get lib/argp* from glibc.
74778
74779 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74780
74781         * lib/mktime.c: Fix some boundary cases and remove need for floating
74782         point.
74783
74784         Issue a compile-time diagnostic if time_t is floating point, or if
74785         two's complement arithmetic is not in effect, or if arithmetic
74786         right shift does not propagate the sign.  These assumptions were
74787         all in the original code but they weren't checked.
74788
74789         (TIME_T_MIDPOINT, verify): New macros.
74790         (__isleap): Remove; it has integer overflow problems.
74791         (leapyear): New function, without those problems.
74792         (ydhms_tm_diff): Remove; splitting into two parts.
74793         (ydhms_diff): New function, containing the arithmetic part of
74794         the old ydhms_tm_diff function.  Issue a compile-time
74795         diagnostic if we are not using C99 integer division.
74796         Avoid casts when possible.
74797         (guess_time_tm): New function, containing the checking part of
74798         the old ydhms_tm_diff function.  Return the new value, rather than
74799         the difference between it and the old.  Accept a new argument T
74800         so that *T specifies the old value.  Check for overflow in the result.
74801
74802         (__mktime_internal): Use a time_t offset, not a long int offset.
74803         This undoes the 2003-06-04 change, which is no longer needed now
74804         that we have better overflow checking.
74805         (localtime_offset): Likewise.
74806
74807         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74808         and long are 64-bit but int is only 32-bit.
74809         (ydhms_diff): Use long int to store year1 and yday1.
74810         Issue a compile-time diagnostic if long int is not wide enough.
74811
74812         (__mktime_internal): Use long int to store adjusted year and yday.
74813         Use plain C rather than preprocessor commands, if that doesn't
74814         affect efficiency.
74815         Check for overflow (and try to repair) after each probe
74816         rather than checking only at the very end.  This avoids some bugs
74817         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74818         does not equal GMT offset at maximum time).
74819         Use integer to check for overflow rather than floating point; this
74820         is more portable to non-IEEE hosts, and is a tad faster.
74821         When we detect that we are oscillating between two values,
74822         don't check whether tm_isdst has the requested value, since
74823         we already know the answer.  When tm_isdst has the wrong value,
74824         use a different heuristic to find the right one, based on the
74825         extreme values actually observed in practice in tz2003a,
74826         rather than the (overly optimistic) "previous 3 calendar quarters".
74827
74828         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74829         "T const" to accommodate glibc style.
74830         (check_result): Use less-confusing report format.  "long" -> "long int.
74831         (main): Likewise.
74832         Don't loop if the iteration overflows time_t.
74833         Allow a negative step in the iteration.
74834
74835 2003-07-06  Karl Berry  <karl@gnu.org>
74836
74837         * config/depcomp: update from automake.
74838         * config/config.sub: update from prep.
74839
74840 2003-07-03  Karl Berry  <karl@gnu.org>
74841
74842         * config/config.guess: update from prep.
74843
74844 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74845
74846         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74847         xreadlink.c now includes it unconditionally.
74848
74849 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74850
74851         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74852         having it depend on HAVE_SYS_TYPES_H.
74853
74854 2003-07-01  Bruno Haible  <bruno@clisp.org>
74855
74856         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74857         <sys/types.h> should be sufficient.
74858         Reported by Paul Eggert.
74859
74860 2003-06-26  Karl Berry  <karl@gnu.org>
74861
74862         * config/depcomp: update from automake.
74863
74864 2003-06-26  Bruno Haible  <bruno@clisp.org>
74865
74866         * modules/human: Depend on module stdbool.
74867
74868 2003-06-25  Bruno Haible  <bruno@clisp.org>
74869
74870         * modules/readlink: New file.
74871         * modules/xreadlink: Depend on it.
74872         * MODULES.html.sh (func_all_modules): Add readlink.
74873
74874 2003-06-25  Bruno Haible  <bruno@clisp.org>
74875
74876         * m4/readlink.m4: New file.
74877
74878 2003-06-25  Bruno Haible  <bruno@clisp.org>
74879
74880         * lib/readlink.c: New file.
74881
74882 2003-06-22  Karl Berry  <karl@gnu.org>
74883
74884         * config/srclist.txt: update mkinstalldirs from automake.
74885         * config/mkinstalldirs: update.
74886
74887 2003-06-22  Bruno Haible  <bruno@clisp.org>
74888
74889         Portability to mingw32.
74890         * m4/ssize_t.m4: New file, from GNU gettext.
74891         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74892         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74893
74894 2003-06-22  Bruno Haible  <bruno@clisp.org>
74895
74896         * modules/safe-read: Add m4/ssize_t.m4.
74897         * modules/xreadlink: Add m4/ssize_t.m4.
74898
74899 2003-06-20  Bruno Haible  <bruno@clisp.org>
74900
74901         Assume C89, so PARAMS isn't needed.
74902         * lib/unicodeio.h (PARAMS): Remove.
74903         * lib/unicodeio.c: Don't use PARAMS.
74904
74905 2003-06-18  Karl Berry  <karl@gnu.org>
74906
74907         * config/config.{guess,sub}: update from prep.
74908
74909 2003-06-18  Jim Meyering  <jim@meyering.net>
74910
74911         Merge changes from coreutils.
74912         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74913         Remove explicit declarations of xmalloc and realloc.
74914         Include xalloc.h.
74915         (read_utmp): Remove anachronistic cast of xmalloc.
74916
74917 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74918
74919         Assume C89, so PARAMS isn't needed.
74920         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74921         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74922         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74923         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74924         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74925         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74926         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74927         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74928         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74929         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74930         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74931         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74932         no longer needed. Anyway, config.h should always be included before any
74933         other file.
74934
74935 2003-06-11  Simon Josefsson  <jas@extundo.com>
74936
74937         * modules/sysexits: New file.
74938         * MODULES.html.sh (func_all_modules): Add sysexits.
74939
74940 2003-06-11  Simon Josefsson  <jas@extundo.com>
74941
74942         * lib/sysexit_.h: New file.
74943
74944 2003-06-11  Derek Price  <derek@ximbiot.com>
74945
74946         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74947         necessary.
74948
74949 2003-06-11  Bruno Haible  <bruno@clisp.org>
74950
74951         * m4/sysexits.m4: New file.
74952
74953 2003-06-10  Simon Josefsson  <jas@extundo.com>
74954
74955         * lib/argp.h: New file, from glibc.
74956         * lib/argp-ba.c: New file, from glibc.
74957         * lib/argp-eexst.c: New file, from glibc.
74958         * lib/argp-fmtstream.c: New file, from glibc.
74959         * lib/argp-fmtstream.h: New file, from glibc.
74960         * lib/argp-fs-xinl.c: New file, from glibc.
74961         * lib/argp-help.c: New file, from glibc.
74962         * lib/argp-namefrob.h: New file, from glibc.
74963         * lib/argp-parse.c: New file, from glibc.
74964         * lib/argp-pv.c: New file, from glibc.
74965         * lib/argp-pvh.c: New file, from glibc.
74966         * lib/argp-xinl.c: New file, from glibc.
74967
74968 2003-06-10  Simon Josefsson  <jas@extundo.com>
74969
74970         * modules/strchrnul: New file.
74971
74972 2003-06-10  Simon Josefsson  <jas@extundo.com>
74973
74974         * modules/argp: New file.
74975
74976 2003-06-10  Simon Josefsson  <jas@extundo.com>
74977
74978         * m4/strchrnul.m4: New file.
74979
74980 2003-06-10  Simon Josefsson  <jas@extundo.com>
74981
74982         * lib/strchrnul.h: New file.
74983         * lib/strchrnul.c: New file.
74984
74985 2003-06-10  Bruno Haible  <bruno@clisp.org>
74986
74987         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74988
74989 2003-06-07  Karl Berry  <karl@gnu.org>
74990
74991         * config/config.{guess,sub}: update from prep.
74992
74993 2003-06-07  Jim Meyering  <jim@meyering.net>
74994
74995         * modules/strtod: Use $(...) notation, not @...@ for
74996         AC_REPLACE'd variables.
74997         * modules/localcharset: Likewise.
74998
74999 2003-06-07  Jim Meyering  <jim@meyering.net>
75000
75001         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75002         in place of my name in the copyright comment.
75003         Remove definition and uses of __P.
75004
75005         From coreutils.
75006         * lib/stat.c: Don't declare xmalloc explicitly.
75007         Instead, include "xalloc.h".
75008         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75009         xrealloc, and xcalloc return values.
75010         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75011         Improve comment.
75012         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75013
75014 2003-06-07  Bruno Haible  <bruno@clisp.org>
75015
75016         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75017         avoid AC_CONFIG_LINKS.
75018         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75019         fnmatch.h, to avoid AC_CONFIG_LINKS.
75020         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75021
75022 2003-06-07  Bruno Haible  <bruno@clisp.org>
75023
75024         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75025         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75026         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75027         directory.
75028         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75029         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75030         directory.
75031
75032 2003-06-06  Jim Meyering  <jim@meyering.net>
75033
75034         Merge from coreutils.
75035         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75036         Consolidate declarations and initializations of *_base* locals.
75037
75038         Merge from coreutils.
75039         This avoids a core dump on systems without GNU putenv,
75040         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75041         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75042         (unsetenv): New static function, from GNU libc.
75043         (rpl_putenv): Use it.
75044
75045         * lib/modechange.c: Remove trailing blanks.
75046
75047         Merge from coreutils.
75048         * lib/fsusage.c: Remove declaration of statfs.
75049         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75050
75051         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75052
75053 2003-06-06  Jim Meyering  <jim@meyering.net>
75054
75055         * lib/stdbool_.h: Renamed from stdbool.h.in.
75056
75057 2003-06-06  Jim Meyering  <jim@meyering.net>
75058             Bruno Haible  <bruno@clisp.org>
75059
75060         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75061         Adjust Makefile.am snippet not to redirect directly to target.
75062         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75063
75064 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75065
75066         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75067         mismatch, look in future quarters as well as past.  This fixes a
75068         bug when processing fall-backwards gaps immediately after a long
75069         period of daylight-saving time.
75070
75071         * lib/mktime.c: Assume freestanding C89 or better.
75072         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75073         (__P): Remove; not used.
75074         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75075         (mktime, not_equal_tm, print_tm, check_result,
75076         main): Use prototypes.  Use const * where appropriate.
75077         (main): Fix typo in testing code that uncovered by above changes.
75078         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75079
75080 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75081
75082         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75083         locale.h, localeconv.  This merges changes from coreutils.
75084
75085         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75086         It can be removed after the next Autoconf is released.
75087         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75088         needed.
75089
75090 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75091
75092         * lib/mktime.c: Fix Debian bug 177940
75093         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75094         (localtime_offset): Now long int, not time_t, because we want it
75095         to be guaranteed to be signed.  All uses changed.
75096         (__mktime_internal): If overflow would occur when adding offset,
75097         don't add it.
75098
75099         Merge 'human' changes from coreutils.  Rewrite to support
75100         locale-specific notations like thousands separators.
75101         * lib/human.c: Simplify authorship notice.
75102         Include human.h immediately after config.h.
75103         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75104         <limits.h>: Do not include, since human.h does.
75105         (SIZE_MAX, UINTMAX_MAX): New macros.
75106         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75107         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75108         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75109         (power_letter): Renamed from suffixes.
75110         (generate_suffix_backwards): Remove.
75111         (adjust_value): Now takes int style (because of human.h changes)
75112         and long double value (for greater precision on some platforms).
75113         (group_number): New function.
75114         (human_readable): Use it.  Use integer options, not enum.
75115         Put the options before the sizes in the arg list.
75116         Support all the new options.
75117         The old human_readable function has been removed;
75118         use inttostr.h instead.
75119         (human_readable, default_block_size, humblock):
75120         Use uintmax_t, not int, for block sizes.
75121         (human_readable_inexact, block_size_types): Remove.
75122         (block_size_opts): New constant.
75123         (human_options): Renamed from human_block_size, with new signature
75124         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75125         * lib/human.h: Add copyright and authorship notice.
75126         Include <limits.h> and <stdbool.h> unconditionally.
75127         (PARAMS): Remove.  All uses removed.
75128         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75129         (enum human_inexact_style): Remove tag; now a nameless enum.
75130         (human_floor, human_ceiling, human_round_to_even): Now have
75131         values 2, 0, 1 rather than -1, 1, 0.
75132         (human_group_digits, human_suppress_point_zero, human_autoscale,
75133         human_base_1024, human_SI, human_B): New constants.
75134         (human_readable_inexact, human_block_size): Remove.
75135         (human_readable): Size args are now uintmax_t, not int.
75136         (human_options): New decl.
75137
75138         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75139         unnecessary now that we assume C89 or better.  This change
75140         imported from coreutils.
75141
75142         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75143         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75144         in the 2003-05-30 sync from glibc.
75145
75146         .h files should stand alone, but we shouldn't include <sys/types.h>
75147         if we can get away with just <stddef.h>.
75148
75149         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75150         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75151         rather than <sys/types.h>, as we merely need size_t.
75152         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75153         to get size_t.
75154         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75155         Include <stdio.h>, to get FILE.
75156         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75157         memcasecmp.h has included <stddef.h> and all we need is size_t.
75158         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75159         our interface, instead of including <sys/types.h>
75160
75161 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75162
75163         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75164         now, as glibc mktime is buggy on non-glibc systems.
75165
75166 2003-06-03  Karl Berry  <karl@gnu.org>
75167
75168         * config/config.sub: update from prep.
75169
75170 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75171
75172         [from coreutils]
75173         Fix some minor time-related bugs with POSIX time arguments.
75174         Some valid time stamps were being rejected (notably -1, and
75175         time stamps before 1900 on 64-bit hosts).  And some invalid
75176         time stamps were being accepted, e.g. September 31.
75177
75178         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75179         that we can return (time_t) -1 successfully.
75180         * lib/posixtm.c: Likewise.
75181         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75182         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75183         (t): Remove static var.
75184         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75185         of static var.  All uses changed.
75186         (year): Do not reject years before 1900; they can occur with
75187         64-bit time_t.
75188         (posix_time_parse): Do not check for out-of-range components;
75189         that is now the caller's responsibility, since our checks were
75190         only approximations.
75191         (posixtime): Use mktime to check for out-of-range components,
75192         since it knows them exactly.
75193         If mktime returns (time_t) -1, check whether an error actually occurred
75194         by invoking localtime on -1.
75195         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75196         posixtime failures better.
75197         Improve the test data (in comments only).
75198
75199 2003-06-02  Karl Berry  <karl@gnu.org>
75200
75201         * config/mkinstalldirs (version): new variable.
75202         (--version): new option.
75203         (usage): improve message.
75204
75205 2003-05-30  Karl Berry  <karl@gnu.org>
75206
75207         * lib/mktime.c: update from libc.
75208
75209 2003-05-30  Bruno Haible  <bruno@clisp.org>
75210
75211         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75212         * config/config.rpath: Upgrade to gettext-0.12.1.
75213
75214 2003-05-30  Bruno Haible  <bruno@clisp.org>
75215
75216         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75217         * m4/nls.m4: New file, from gettext-0.12.1.
75218         * m4/po.m4: New file, from gettext-0.12.1.
75219         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75220
75221 2003-05-30  Bruno Haible  <bruno@clisp.org>
75222
75223         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75224         * lib/localcharset.h: Likewise.
75225         * lib/localcharset.c: Likewise.
75226
75227 2003-05-29  Karl Berry  <karl@gnu.org>
75228
75229         * config/config.rpath: update from gettext.
75230
75231 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75232
75233         Assume the headers required for C89 freestanding compilers.
75234         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75235         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75236         * m4/human.m4 (gl_HUMAN): Likewise.
75237         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75238         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75239         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75240         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75241         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75242         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75243
75244 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75245
75246         Assume the headers required for C89 freestanding compilers.
75247         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75248         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75249         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75250         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75251         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75252         define, since <limits.h> is guaranteed to do that.
75253         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75254         * lib/exclude.c: Include <stdbool.h> unconditionally.
75255         * lib/tempname.c: Include <stddef.h> unconditionally.
75256         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75257         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75258         <stddef.h> does that.
75259         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75260         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75261         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75262         needed.
75263         * lib/xstrtol.c: Likewise.
75264         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75265         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75266
75267         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75268         warnings on some platforms.
75269
75270         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75271         arbitrarily.
75272
75273 2003-05-26  Jim Meyering  <jim@meyering.net>
75274
75275         Merge in a change from coreutils:
75276         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75277         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75278         that condition, rather than `-1' which is slightly misleading.
75279         Change the name of the cache variable to have the gl_ prefix.
75280         Prompted by a patch from Richard Dawe for DJGPP.
75281
75282 2003-05-24  Karl Berry  <karl@gnu.org>
75283
75284         * config/config.guess: update from prep.
75285
75286 2003-05-22  Karl Berry  <karl@gnu.org>
75287
75288         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75289
75290 2003-05-20  Karl Berry  <karl@gnu.org>
75291
75292         * config/config.guess: update from prep.
75293
75294 2003-05-18  Karl Berry  <karl@gnu.org>
75295
75296         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75297         might actually be set by the user.
75298
75299         * config/depcomp, install-sh, mdate-sh: update from automake.
75300
75301 2003-05-17  Bruno Haible  <bruno@clisp.org>
75302
75303         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75304         invalid expansion for AC_EGREP_CPP.
75305         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75306         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75307         Suggested by Akim Demaille <akim@epita.fr> in
75308         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75309
75310 2003-05-12  Jim Meyering  <jim@meyering.net>
75311
75312         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75313         the space-padded-by-default conversion specifiers, %e, %k, %l.
75314
75315 2003-05-12  Bruno Haible  <bruno@clisp.org>
75316
75317         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75318         the string is longer than 4 KB.
75319
75320 2003-05-11  Karl Berry  <karl@gnu.org>
75321
75322         * config/config.{guess,sub}: update from prep.
75323
75324 2003-05-09  Bruno Haible  <bruno@clisp.org>
75325
75326         * modules/error: Add m4/strerror_r.m4 to file list.
75327
75328 2003-05-03  Bruno Haible  <bruno@clisp.org>
75329
75330         Upgrade to Unicode-4.0.
75331         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75332         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75333         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75334         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75335         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75336         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75337         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75338         Change width of U+E0100..U+E01EF from 1 to 0.
75339
75340 2003-04-25  Jim Meyering  <jim@meyering.net>
75341
75342         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75343         of type size_t, not int.
75344
75345 2003-04-25  Bruno Haible  <bruno@clisp.org>
75346
75347         * lib/copy-file.c: Include <stddef.h>, for size_t.
75348
75349 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75350
75351         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75352         code which expansion is under static control.  Patch imported from
75353         Akim Demaille's patch to Bison; see
75354         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75355
75356 2003-04-14  Bruno Haible  <bruno@clisp.org>
75357
75358         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75359
75360 2003-04-11  Jim Meyering  <jim@meyering.net>
75361
75362         Merge changes from Coreutils.
75363
75364         2003-03-22  Jim Meyering  <jim@meyering.net>
75365
75366         * lib/strftime.c (widen): Cast alloca return value to proper type.
75367
75368         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75369
75370         From GNU libc.
75371         * lib/strftime.c (my_strftime): Handle very large width
75372         specifications for numeric values correctly.  Improve checks for
75373         overflow.
75374
75375         2003-01-19  Jim Meyering  <jim@meyering.net>
75376
75377         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75378         definitions.
75379         (nl_get_alt_digit) [! defined my_strftime]: Define.
75380         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75381         _nl_get_alt_digit and _nl_get_walt_digit.
75382
75383         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75384         libc. These changes have no effect outside of _LIBC.
75385
75386 2003-04-10  Bruno Haible  <bruno@clisp.org>
75387
75388         * modules/findprog: New file.
75389         * MODULES.html.sh (func_all_modules): Add it.
75390
75391 2003-04-10  Bruno Haible  <bruno@clisp.org>
75392
75393         * m4/findprog.m4: New file.
75394         * m4/eaccess.m4: New file.
75395
75396 2003-04-10  Bruno Haible  <bruno@clisp.org>
75397
75398         * lib/findprog.h: New file, from GNU gettext.
75399         * lib/findprog.c: New file, from GNU gettext.
75400
75401 2003-04-05  Jim Meyering  <jim@meyering.net>
75402
75403         Merge changes from Coreutils.
75404
75405         * lib/exclude.h (PARAMS): Remove definition and uses.
75406         * lib/exclude.c: Remove uses of `PARAMS'.
75407
75408         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75409         Add test-cases for DOS filenames. Declare program_name.
75410         (main): Set up program_name.  Patch by Rich Dawe.
75411
75412         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75413         error from mntctl.
75414         Use mntctl's return value to drive the entry-processing loop, since
75415         we can't rely on the value of the vmt_length member in the last
75416         entry.  On some systems doing so could result in exhausting
75417         virtual memory.  Based in part on a patch from Mike Jetzer.
75418
75419 2003-04-04  Bruno Haible  <bruno@clisp.org>
75420
75421         * modules/linebreak: New file.
75422         * MODULES.html.sh (func_all_modules): Add it.
75423
75424 2003-04-04  Bruno Haible  <bruno@clisp.org>
75425
75426         * m4/linebreak.m4: New file.
75427
75428 2003-04-04  Bruno Haible  <bruno@clisp.org>
75429
75430         * lib/linebreak.h: New file, from GNU gettext.
75431         * lib/linebreak.c: New file, from GNU gettext with slight
75432         modifications.
75433         * lib/lbrkprop.h: New file, from GNU gettext.
75434
75435 2003-04-03  Bruno Haible  <bruno@clisp.org>
75436
75437         * modules/utf8-ucs4: New file.
75438         * modules/utf16-ucs4: New file.
75439         * modules/ucs4-utf8: New file.
75440         * modules/ucs4-utf16: New file.
75441         * MODULES.html.sh (func_all_modules): Add them.
75442
75443 2003-04-03  Bruno Haible  <bruno@clisp.org>
75444
75445         * m4/utf-ucs4.m4: New file.
75446         * m4/ucs4-utf.m4: New file.
75447
75448 2003-04-03  Bruno Haible  <bruno@clisp.org>
75449
75450         * lib/utf8-ucs4.h: New file, from GNU gettext.
75451         * lib/utf16-ucs4.h: New file, from GNU gettext.
75452         * lib/ucs4-utf8.h: New file, from GNU gettext.
75453         * lib/ucs4-utf16.h: New file, from GNU gettext.
75454
75455 2003-04-02  Bruno Haible  <bruno@clisp.org>
75456
75457         * modules/binary-io: New file.
75458         * MODULES.html.sh (func_all_modules): Add it.
75459
75460 2003-04-02  Bruno Haible  <bruno@clisp.org>
75461
75462         * lib/binary-io.h: New file, from GNU gettext.
75463
75464 2003-04-01  Bruno Haible  <bruno@clisp.org>
75465
75466         * modules/pathname: New file.
75467         * MODULES.html.sh (func_all_modules): Add it.
75468
75469 2003-04-01  Bruno Haible  <bruno@clisp.org>
75470
75471         * lib/pathname.h: New file, from GNU gettext.
75472         * lib/concatpath.c: New file, from GNU gettext.
75473
75474 2003-03-30  Bruno Haible  <bruno@clisp.org>
75475
75476         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75477
75478 2003-03-30  Bruno Haible  <bruno@clisp.org>
75479
75480         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75481         function chown() doesn't exist.
75482
75483 2003-03-28  Bruno Haible  <bruno@clisp.org>
75484
75485         * modules/copy-file: New file.
75486         * MODULES.html.sh (func_all_modules): Add it.
75487
75488 2003-03-28  Bruno Haible  <bruno@clisp.org>
75489
75490         * m4/copy-file.m4: New file.
75491
75492 2003-03-28  Bruno Haible  <bruno@clisp.org>
75493
75494         * lib/copy-file.h: New file, from GNU gettext.
75495         * lib/copy-file.c: New file, from GNU gettext.
75496
75497 2003-03-18  Jim Meyering  <jim@meyering.net>
75498
75499         * lib/quote.c (quote_n): Fix typo in comment.
75500
75501 2003-03-18  Bruno Haible  <bruno@clisp.org>
75502
75503         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75504         checking.
75505         * m4/onceonly_2_57.m4: Likewise.
75506
75507 2003-03-17  Bruno Haible  <bruno@clisp.org>
75508
75509         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75510         (m4_quote): Remove macro.
75511         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75512
75513 2003-03-14  Jim Meyering  <jim@meyering.net>
75514
75515         Merge changes from Coreutils.
75516         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75517         to be const, in order to avoid warnings.
75518         (obstack_room): Likewise.
75519         (obstack_empty_p): Likewise.
75520
75521 2003-03-14  Bruno Haible  <bruno@clisp.org>
75522
75523         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75524         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75525
75526 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75527
75528         Merge changes from Bison.
75529         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75530         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75531         when compiling Bison 1.875's `bitset bset = obstack_alloc
75532         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75533         * lib/hash.c: Include <stdbool.h> unconditionally.
75534
75535 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75536
75537         * m4/onceonly.m4 (m4_quote): New macro.
75538         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75539         Quote AC_FOREACH variable-expansions properly.
75540
75541 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75542
75543         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75544
75545 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75546
75547         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75548         Reported by Bruce Becker; see:
75549         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75550
75551 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75552             Bruno Haible  <bruno@clisp.org>
75553
75554         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75555         Reported by John Hughes, see
75556         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75557
75558 2003-02-20  Bruno Haible  <bruno@clisp.org>
75559
75560         * MODULES.html.sh (func_all_modules): Add poll.
75561
75562 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75563
75564         * modules/poll: New file.
75565
75566 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75567
75568         * lib/poll_.h: New file.
75569         * lib/poll.c: New file.
75570
75571 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75572
75573         * m4/poll.m4: New file.
75574
75575 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75576
75577         * modules/mathl: New file.
75578
75579 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75580
75581         * lib/mathl.h: New file.
75582         * lib/acosl.c: New file.
75583         * lib/asinl.c: New file.
75584         * lib/atanl.c: New file.
75585         * lib/ceill.c: New file.
75586         * lib/cosl.c: New file.
75587         * lib/expl.c: New file.
75588         * lib/floorl.c: New file.
75589         * lib/frexpl.c: New file.
75590         * lib/ldexpl.c: New file.
75591         * lib/logl.c: New file.
75592         * lib/sincosl.c: New file.
75593         * lib/sinl.c: New file.
75594         * lib/sqrtl.c: New file.
75595         * lib/tanl.c: New file.
75596         * lib/trigl.c: New file.
75597         * lib/trigl.h: New file.
75598
75599 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75600
75601         * m4/mathl.m4: New file.
75602
75603 2003-02-18  Bruno Haible  <bruno@clisp.org>
75604
75605         * MODULES.html.sh (func_all_modules): Add mathl.
75606
75607 2003-02-17  Bruno Haible  <bruno@clisp.org>
75608
75609         * modules/mkdtemp: New module.
75610         * MODULES.html.sh (func_all_modules): Add it.
75611
75612 2003-02-17  Bruno Haible  <bruno@clisp.org>
75613
75614         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75615
75616 2003-02-17  Bruno Haible  <bruno@clisp.org>
75617
75618         * lib/mkdtemp.h: New file, from GNU gettext.
75619         * lib/mkdtemp.c: New file, from GNU gettext.
75620
75621 2003-02-02  Jim Meyering  <jim@meyering.net>
75622
75623         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75624         e.g. glibc-2.2.93.
75625
75626 2003-01-31  Bruno Haible  <bruno@clisp.org>
75627
75628         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75629         'rpl_rename'.
75630         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75631         'rpl_strnlen'.
75632         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75633         'rpl_strtod'.
75634         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75635         'rpl_utime'.
75636
75637 2003-01-31  Bruno Haible  <bruno@clisp.org>
75638
75639         * lib/rename.c: #undef rename before defining rpl_rename.
75640         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75641
75642 2003-01-30  Bruno Haible  <bruno@clisp.org>
75643
75644         * modules/vasnprintf, modules/vasprintf: New modules.
75645         * MODULES.html.sh (func_all_modules): Add them.
75646
75647 2003-01-30  Bruno Haible  <bruno@clisp.org>
75648
75649         * m4/signed.m4: New file, from GNU gettext.
75650         * m4/longdouble.m4: New file, from GNU gettext.
75651         * m4/wchar_t.m4: New file, from GNU gettext.
75652         * m4/wint_t.m4: New file, from GNU gettext.
75653         * m4/vasnprintf.m4: New file.
75654         * m4/vasprintf.m4: New file.
75655
75656 2003-01-30  Bruno Haible  <bruno@clisp.org>
75657
75658         * lib/printf-args.h: New file, from GNU gettext.
75659         * lib/printf-args.c: New file, from GNU gettext.
75660         * lib/printf-parse.h: New file, from GNU gettext.
75661         * lib/printf-parse.c: New file, from GNU gettext.
75662         * lib/vasnprintf.h: New file, from GNU gettext.
75663         * lib/vasnprintf.c: New file, from GNU gettext.
75664         * lib/asnprintf.c: New file, from GNU gettext.
75665         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75666         * lib/vasprintf.c: New file, from GNU gettext.
75667         * lib/asprintf.c: New file, from GNU gettext.
75668
75669 2003-01-29  Bruno Haible  <bruno@clisp.org>
75670
75671         * modules/stpncpy: New module.
75672         * MODULES.html.sh (func_all_modules): Add it.
75673
75674 2003-01-29  Bruno Haible  <bruno@clisp.org>
75675
75676         * m4/stpncpy.m4: New file.
75677
75678 2003-01-29  Bruno Haible  <bruno@clisp.org>
75679
75680         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75681         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75682
75683 2003-01-28  Bruno Haible  <bruno@clisp.org>
75684
75685         * modules/c-ctype: New module.
75686         * MODULES.html.sh (func_all_modules): Add it.
75687
75688 2003-01-28  Bruno Haible  <bruno@clisp.org>
75689
75690         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75691         Paul Eggert.
75692         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75693         Paul Eggert.
75694
75695 2003-01-27  Bruno Haible  <bruno@clisp.org>
75696
75697         * modules/xsetenv: New module.
75698         * MODULES.html.sh (func_all_modules): Add it.
75699
75700 2003-01-27  Bruno Haible  <bruno@clisp.org>
75701
75702         * lib/xsetenv.h: New file, from GNU gettext.
75703         * lib/xsetenv.c: New file, from GNU gettext.
75704
75705 2003-01-23  Jim Meyering  <jim@meyering.net>
75706
75707         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75708         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75709
75710 2003-01-23  Bruno Haible  <bruno@clisp.org>
75711
75712         * modules/minmax: New module.
75713         * MODULES.html.sh (func_all_modules): Add it.
75714
75715 2003-01-23  Bruno Haible  <bruno@clisp.org>
75716
75717         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75718         Eggert.
75719
75720 2003-01-22  Bruno Haible  <bruno@clisp.org>
75721
75722         * modules/exit: New module.
75723         * MODULES.html.sh (func_all_modules): Add it.
75724
75725 2003-01-22  Bruno Haible  <bruno@clisp.org>
75726
75727         * lib/exit.h: New file, from GNU gettext.
75728
75729 2003-01-19  Bruno Haible  <bruno@clisp.org>
75730
75731         * gnulib-tool: Recognize option --extract-maintainer.
75732         (func_get_maintainer): New function.
75733         * modules/*: Add Maintainer entry.
75734
75735 2003-01-16  Jim Meyering  <jim@meyering.net>
75736
75737         * m4/regex.m4: The `regex' struct is both input and output.
75738         Initialize it before each use.  Patch by Tim Waugh.
75739
75740 2003-01-16  Bruno Haible  <bruno@clisp.org>
75741
75742         * MODULES.html.sh: Add a table of contents. Add the module name as
75743         leftmost column. Add hyperlinks.
75744
75745 2003-01-15  Bruno Haible  <bruno@clisp.org>
75746
75747         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75748
75749 2003-01-15  Bruno Haible  <bruno@clisp.org>
75750
75751         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75752         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75753         suffix.
75754
75755 2003-01-15  Bruno Haible  <bruno@clisp.org>
75756
75757         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75758
75759 2003-01-15  Bruno Haible  <bruno@clisp.org>
75760
75761         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75762         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75763
75764 2003-01-14  Jim Meyering  <jim@meyering.net>
75765
75766         * lib/same.c (same_name): Tweak a comment.
75767
75768 2003-01-14  Bruno Haible  <bruno@clisp.org>
75769
75770         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75771         when a string comparison is sufficient.
75772
75773 2003-01-14  Bruno Haible  <bruno@clisp.org>
75774
75775         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75776         'unsigned int'.
75777
75778 2003-01-14  Bruno Haible  <bruno@clisp.org>
75779
75780         * lib/hash-pjw.c: Add comment about low quality of this function.
75781
75782 2003-01-13  Bruno Haible  <bruno@clisp.org>
75783
75784         * modules/stpcpy: Distribute lib/stpcpy.h.
75785         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75786
75787 2003-01-13  Bruno Haible  <bruno@clisp.org>
75788
75789         * modules/*: Add a description.
75790         * modules/strpbrk: Fix Makefile.am snippet.
75791         * modules/strtoimax: Fix dependencies.
75792         * modules/strtoumax: Likewise.
75793
75794 2003-01-13  Bruno Haible  <bruno@clisp.org>
75795
75796         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75797         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75798         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75799
75800 2003-01-13  Bruno Haible  <bruno@clisp.org>
75801
75802         * gnulib-tool (func_create_testdir): Store config/* files in the main
75803         directory.
75804         * config.rpath: Move to ...
75805         * config/config.rpath: ... here.
75806         * modules/gettext: Contains config/config.rpath, not config.rpath.
75807         * modules/iconv: Likewise.
75808
75809 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75810
75811         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75812         to avoid collisions with libcurses and libreadline.
75813
75814         * m4/getstr.m4: Remove.
75815         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75816
75817 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75818
75819         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75820         to avoid collisions with libcurses and libreadline.
75821
75822         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75823         * lib/getstr.h, getstr.c: Remove.
75824         * lib/getline.c: Include "getline.h", to check interface.
75825         Move body of old getstr.c here: this defines MIN_CHUNK and
75826         declares getdelim2, which is renamed from getstr.
75827         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75828
75829         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75830         All uses changed.
75831         * lib/linebuffer.h: Likewise.
75832         (readline): Remove backward-compatibility macro.
75833
75834 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75835
75836         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75837         to avoid collisions with libcurses and libreadline.
75838         * getstr: Remove.
75839         * MODULES.html.sh: Remove getstr.
75840         * modules/getline: Depend on unlocked-io, not getstr.
75841
75842 2003-01-12  Jim Meyering  <jim@meyering.net>
75843
75844         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75845
75846 2003-01-10  Bruno Haible  <bruno@clisp.org>
75847
75848         * modules/alloca: Change Makefile.am requirements. Simplify Include
75849         requirements. Add lib/alloca_.h to file list.
75850
75851 2003-01-10  Bruno Haible  <bruno@clisp.org>
75852
75853         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75854
75855 2003-01-10  Bruno Haible  <bruno@clisp.org>
75856
75857         * lib/alloca_.h: New file.
75858         * lib/getdate.y: Unconditionally include alloca.h.
75859         * lib/makepath.c: Likewise.
75860         * lib/setenv.c: Likewise.
75861         * lib/userspec.c: Likewise.
75862
75863 2003-01-09  Karl Berry  <karl@gnu.org>
75864
75865         * MODULES.html.sh: include `dirname $0` in PATH, to find
75866         gnulib-tool.
75867
75868 2003-01-09  Bruno Haible  <bruno@clisp.org>
75869
75870         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75871         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75872
75873 2003-01-09  Bruno Haible  <bruno@clisp.org>
75874
75875         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75876
75877 2003-01-09  Bruno Haible  <bruno@clisp.org>
75878
75879         * lib/stdbool.h.in: New file.
75880
75881 2003-01-09  Bruno Haible  <bruno@clisp.org>
75882
75883         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75884         * MODULES.html.sh: Likewise.
75885
75886 2003-01-08  Jim Meyering  <jim@meyering.net>
75887
75888         * lib/full-write.c: Undefine and define-away `const' after inclusion
75889         of errno.h, not before.  Suggestion from Bruno Haible.
75890
75891 2003-01-08  Bruno Haible  <bruno@clisp.org>
75892
75893         * modules/full-read: Depend on full-write.
75894
75895 2003-01-08  Bruno Haible  <bruno@clisp.org>
75896
75897         * lib/safe-read.c: Include specification header first, to ensure its
75898         selfcontainedness.
75899         * lib/full-write.c: Likewise.
75900
75901 2003-01-07  Jim Meyering  <jim@meyering.net>
75902
75903         * lib/full-write.c: Rework so that it may serve to define full_read,
75904         too.
75905         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75906
75907 2003-01-07  Bruno Haible  <bruno@clisp.org>
75908
75909         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75910         <inttypes.h>.
75911         * lib/xstrtol.h: Likewise.
75912         * lib/xstrtoimax.c: Likewise.
75913         * lib/xstrtoumax.c: Likewise.
75914         * lib/human.h: Likewise.
75915
75916         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75917         on systems that have <inttypes.h> but not <stdint.h>.
75918
75919 2003-01-07  Bruno Haible  <bruno@clisp.org>
75920
75921         * MODULES.html.sh: Add copyright notice.
75922         (missed_files): Omit CVS directory entries.
75923         (func_module): Make it work with sed-3.02.
75924         * MODULES.txt: Remove file.
75925
75926 2003-01-06  Jim Meyering  <jim@meyering.net>
75927
75928         * lib/version-etc.c: Update year in translatable copyright string.
75929
75930 2003-01-03  Karl Berry  <karl@gnu.org>
75931
75932         * config/config.{guess,sub}: update from prep.
75933
75934 2003-01-02  Karl Berry  <karl@gnu.org>
75935
75936         * doc/COPYING.DOC: belatedly updated to 1.2.
75937
75938 2003-01-01  Karl Berry  <karl@gnu.org>
75939
75940         * gnulib-tool (func_verify_module): report module name $module in
75941         error message, not $1.
75942         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75943         be created, only if it doesn't exist.
75944         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75945
75946 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75947
75948         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75949
75950 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75951
75952         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75953         memcmp if strcoll doesn't work.
75954
75955 2002-12-31  Bruno Haible  <bruno@clisp.org>
75956
75957         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75958         nonempty.
75959
75960 2002-12-31  Bruno Haible  <bruno@clisp.org>
75961
75962         * lib/memcoll.c (STRCOLL): New macro.
75963         (memcoll): Use it.
75964
75965 2002-12-31  Bruno Haible  <bruno@clisp.org>
75966
75967         * lib/localcharset.h: New file.
75968         * lib/localcharset.c: Include it.
75969         * lib/unicodeio.c: Likewise.
75970
75971 2002-12-31  Bruno Haible  <bruno@clisp.org>
75972
75973         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75974         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75975
75976 2002-12-31  Bruno Haible  <bruno@clisp.org>
75977
75978         * lib/getline.h: Include <stddef.h>, for size_t.
75979
75980         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75981         * lib/unicodeio.c: Don't include <stddef.h>.
75982
75983 2002-12-31  Bruno Haible  <bruno@clisp.org>
75984
75985         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75986         HAVE_TM_ZONE.
75987
75988 2002-12-24  Karl Berry  <karl@gnu.org>
75989
75990         * config/config.guess: update from prep.
75991
75992 2002-12-24  Bruno Haible  <bruno@clisp.org>
75993
75994         General infrasructure.
75995         * m4/README: Rewritten.
75996         * m4/onceonly.m4: New file.
75997         * m4/onceonly_2_57.m4: New file.
75998
75999         Module atexit.
76000         * m4/atexit.m4: New file.
76001
76002         Module strtod.
76003         * m4/strtod.m4: New file.
76004
76005         Module strtol.
76006         * m4/strtol.m4: New file.
76007
76008         Module strtoul.
76009         * m4/strtoul.m4: New file.
76010
76011         Module memchr.
76012         * m4/memchr.m4: New file.
76013
76014         Module memcmp.
76015         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76016         (jm_FUNC_MEMCMP): Invoke it.
76017
76018         Module memcpy.
76019         * m4/memcpy.m4: New file.
76020
76021         Module memmove.
76022         * m4/memmove.m4: New file.
76023
76024         Module memset.
76025         * m4/memset.m4: New file.
76026
76027         Module strcspn.
76028         * m4/strcspn.m4: New file.
76029
76030         Module strpbrk.
76031         * m4/strpbrk.m4: New file.
76032
76033         Module strstr.
76034         * m4/strstr.m4: New file.
76035
76036         Module strerror.
76037         * m4/strerror.m4: New file.
76038
76039         Module mktime.
76040         * m4/mktime.m4: Renamed from jm-mktime.m4.
76041         (gl_PREREQ_MKTIME): New macro.
76042         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76043
76044         Module malloc.
76045         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76046         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76047         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76048
76049         Module realloc.
76050         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76051         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76052         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76053
76054         Module strftime.
76055         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76056         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76057         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76058         gl_TM_GMTOFF.
76059         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76060
76061         Module xalloc.
76062         * m4/xalloc.m4: New file.
76063
76064         Module alloca.
76065         * m4/alloca.m4: New file.
76066
76067         Module putenv.
76068         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76069         (jm_FUNC_PUTENV): Invoke it.
76070
76071         Module setenv.
76072         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76073         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76074         when invoked twice.
76075         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76076         gt_FUNC_SETENV.
76077
76078         Module memrchr.
76079         * m4/memrchr.m4: New file.
76080
76081         Module stpcpy.
76082         * m4/stpcpy.m4: New file.
76083
76084         Module strcase.
76085         * m4/strcase.m4: New file.
76086
76087         Module strdup.
76088         * m4/strdup.m4: New file.
76089
76090         Module strnlen.
76091         * m4/strnlen.m4: New file.
76092
76093         Module strndup.
76094         * m4/strndup.m4: New file.
76095
76096         Module xstrtod.
76097         * m4/xstrtod.m4: New file.
76098
76099         Module xstrtol.
76100         * m4/xstrtol.m4: New file.
76101
76102         Module getdate.
76103         * m4/getdate.m4: New file.
76104
76105         Module unlocked-io.
76106         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76107         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76108         * m4/jm-glibc-io.m4n: Remove file.
76109
76110         Module long-options.
76111         * m4/long-options.m4: New file.
76112
76113         Module md5.
76114         * m4/md5.m4: New file.
76115
76116         Module sha.
76117         * m4/sha.m4: New file.
76118
76119         Module getstr.
76120         * m4/getstr.m4: New file.
76121
76122         Module getline.
76123         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76124         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76125         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76126         simply getline. Infoke gl_PREREQ_GETLINE.
76127
76128         Module obstack.
76129         * m4/obstack.m4: New file.
76130
76131         Module hash.
76132         * m4/hash.m4: New file.
76133
76134         Module readtokens.
76135         * m4/readtokens.m4: New file.
76136
76137         Module strverscmp.
76138         * m4/strverscmp.m4: New file.
76139
76140         Module stdbool.
76141         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76142         OSF/1.
76143
76144         Module strtoll.
76145         * m4/strtoll.m4: New file.
76146
76147         Module strtoull.
76148         * m4/strtoull.m4: New file.
76149
76150         Module strtoimax.
76151         * m4/strtoimax.m4: New file.
76152
76153         Module strtoumax.
76154         * m4/strtoumax.m4: New file.
76155
76156         Module xstrtoimax.
76157         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76158         jm_AC_PREREQ_XSTRTOIMAX.
76159         Moved the strtol prerequisites to strtol.m4.
76160         Moved the strtoll prerequisites to strtoll.m4.
76161         Moved the strtoimax prerequisites to strtoimax.m4.
76162
76163         Module xstrtoumax.
76164         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76165         jm_AC_PREREQ_XSTRTOUMAX.
76166         Moved the strtoul prerequisites to strtoul.m4.
76167         Moved the strtoull prerequisites to strtoull.m4.
76168         Moved the strtoumax prerequisites to strtoumax.m4.
76169
76170         Module chown.
76171         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76172         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76173
76174         Module dup2.
76175         * m4/dup2.m4: New file.
76176
76177         Module ftruncate.
76178         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76179         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76180
76181         Module getgroups.
76182         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76183         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76184
76185         Module gettimeofday.
76186         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76187         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76188         gl_PREREQ_GETTIMEOFDAY.
76189
76190         Module mkdir.
76191         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76192         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76193
76194         Module mkstemp.
76195         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76196         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76197         jm_AC_TYPE_UINTMAX_T.
76198         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76199
76200         Module stat.
76201         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76202         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76203
76204         Module lstat.
76205         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76206         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76207
76208         Module timespec.
76209         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76210         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76211         * m4/st_mtim.m4: Indentation.
76212
76213         Module nanosleep.
76214         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76215         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76216         gl_PREREQ_NANOSLEEP.
76217
76218         Module regex.
76219         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76220         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76221         (gl_REGEX): New macro.
76222
76223         Module rename.
76224         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76225         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76226
76227         Module rmdir.
76228         * m4/rmdir.m4: New file.
76229
76230         Module utime.
76231         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76232         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76233         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76234
76235         Module dirname.
76236         * m4/dirname.m4: New file.
76237
76238         Module getopt.
76239         * m4/getopt.m4: New file.
76240
76241         Module unistd-safer.
76242         * m4/unistd-safer.m4: New file.
76243
76244         Module fnmatch.
76245         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76246         declaration.
76247         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76248         (gl_FUNC_FNMATCH_POSIX): New macro.
76249         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76250         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76251         simply fnmatch.
76252
76253         Module exclude.
76254         * m4/exclude.m4: New file.
76255
76256         Module human.
76257         * m4/human.m4: New file.
76258
76259         Module acl.
76260         * m4/acl.m4: Nop.
76261
76262         Module backupfile.
76263         * m4/backupfile.m4: New file.
76264         * m4/d-ino.m4: Indentation.
76265
76266         Module fsusage.
76267         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76268         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76269         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76270
76271         Module dirfd.
76272         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76273         requirements.
76274
76275         Module euidaccess.
76276         * m4/euidaccess.m4: New file.
76277
76278         Module file-type.
76279         * m4/file-type.m4: New file.
76280
76281         Module fileblocks.
76282         * m4/fileblocks.m4: New file.
76283
76284         Module filemode.
76285         * m4/filemode.m4: New file.
76286
76287         Module isdir.
76288         * m4/isdir.m4: New file.
76289
76290         Module lchown.
76291         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76292         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76293
76294         Module makepath.
76295         * m4/makepath.m4: New file.
76296
76297         Module modechange.
76298         * m4/modechange.m4: New file.
76299
76300         Module mountlist.
76301         * m4/mountlist.m4: New file.
76302         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76303         Indentation.
76304
76305         Module path-concat.
76306         * m4/path-concat.m4: New file.
76307
76308         Module pathmax.
76309         * m4/pathmax.m4: New file.
76310
76311         Module same.
76312         * m4/same.m4: New file.
76313
76314         Module save-cwd.
76315         * m4/save-cwd.m4: New file.
76316
76317         Module savedir.
76318         * m4/savedir.m4: New file.
76319
76320         Module xgetcwd.
76321         * m4/xgetcwd.m4: New file.
76322         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76323
76324         Module xreadlink.
76325         * m4/xreadlink.m4: New file.
76326
76327         Module safe-read.
76328         * m4/safe-read.m4: New file.
76329
76330         Module safe-write.
76331         * m4/safe-write.m4: New file.
76332
76333         Module closeout.
76334         * m4/closeout.m4: New file.
76335
76336         Module stdio-safer.
76337         * m4/stdio-safer.m4: New file.
76338
76339         Module getpass.
76340         * m4/getpass.m4: New file.
76341
76342         Module getugroups.
76343         * m4/getugroups.m4: New file.
76344
76345         Module group-member.
76346         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76347         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76348
76349         Module idcache.
76350         * m4/idcache.m4: New file.
76351
76352         Module userspec.
76353         * m4/userspec.m4: New file.
76354
76355         Module gettime.
76356         * m4/clock_time.m4: New file.
76357         * m4/gettime.m4: New file.
76358
76359         Module settime.
76360         * m4/settime.m4: New file.
76361
76362         Module posixtm.
76363         * m4/posixtm.m4: New file.
76364
76365         Module gethostname.
76366         * m4/gethostname.m4: New file.
76367
76368         Module canon-host.
76369         * m4/canon-host.m4: New file.
76370
76371         Module gettext.
76372         * m4/codeset.m4: New file, from gettext-0.11.5.
76373         * m4/gettext.m4: New file, from gettext-0.11.5.
76374         * m4/glibc21.m4: New file, from gettext-0.11.5.
76375         * m4/iconv.m4: New file, from gettext-0.11.5.
76376         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76377         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76378         * m4/inttypes.m4: New file, from gettext-0.11.5.
76379         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76380         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76381         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76382         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76383         * m4/lib-link.m4: New file, from gettext-0.11.5.
76384         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76385         * m4/progtest.m4: New file, from gettext-0.11.5.
76386         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76387         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76388         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76389
76390         Module localcharset.
76391         * m4/localcharset.m4: New file.
76392
76393         Module hard-locale.
76394         * m4/hard-locale.m4: New file.
76395
76396         Module mbswidth.
76397         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76398         onceonly macros.
76399         * m4/mbrtowc.m4: Add comment.
76400
76401         Module memcasecmp.
76402         * m4/memcasecmp.m4: New file.
76403
76404         Module memcoll.
76405         * m4/memcoll.m4: New file.
76406
76407         Module unicodeio.
76408         * m4/unicodeio.m4: New file.
76409
76410         Module rpmatch.
76411         * m4/rpmatch.m4: New file.
76412
76413         Module yesno.
76414         * m4/yesno.m4: New file.
76415
76416         Module exitfail.
76417         * m4/exitfail.m4: New file.
76418
76419         Module c-stack.
76420         * m4/c-stack.m4 (gl_C_STACK): New macro.
76421         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76422
76423         Module error.
76424         * m4/error.m4 (gl_ERROR): New macro.
76425         (jm_PREREQ_ERROR): Use onceonly macros.
76426
76427         Module fatal.
76428         * m4/fatal.m4: New file.
76429
76430         Module getloadavg.
76431         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76432         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76433
76434         Module getpagesize.
76435         * m4/getpagesize.m4: New file.
76436
76437         Module getusershell.
76438         * m4/getusershell.m4: New file.
76439
76440         Module physmem.
76441         * m4/physmem.m4: New file.
76442
76443         Module posixver.
76444         * m4/posixver.m4: New file.
76445
76446         Module quotearg.
76447         * m4/quotearg.m4: New file.
76448
76449         Module quote.
76450         * m4/quote.m4: New file.
76451
76452         Module readutmp.
76453         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76454
76455         Module sig2str.
76456         * m4/sig2str.m4: New file.
76457
76458         Other.
76459         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76460         ulonglong.m4.
76461         * m4/intmax_t.m4: New file.
76462         * m4/d-type.m4: Indentation.
76463         * m4/jm-macros.m4: Update.
76464         * m4/prereq.m4 (jm_PREREQ): Update.
76465         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76466         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76467         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76468         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76469         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76470         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76471         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76472         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76473         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76474         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76475         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76476         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76477         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76478         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76479         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76480         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76481         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76482         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76483         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76484
76485 2002-12-24  Bruno Haible  <bruno@clisp.org>
76486
76487         * MODULES.txt: Update according to m4/ changes.
76488
76489         Module gettext.
76490         * config.rpath: New file, from gettext-0.11.5.
76491
76492         * modules/*: New module descriptions.
76493         * gnulib-tool: New file.
76494         * MODULES.html.sh: New file.
76495
76496 2002-12-21  Karl Berry  <karl@gnu.org>
76497
76498         * doc/fdl.texi: update to version 1.2.
76499
76500 2002-12-19  Karl Berry  <karl@gnu.org>
76501
76502         * config/config.guess: update from prep.
76503
76504 2002-12-18  Bruno Haible  <bruno@clisp.org>
76505
76506         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76507         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76508
76509 2002-12-17  Bruno Haible  <bruno@clisp.org>
76510
76511         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76512         stdlib.h, string.h.
76513
76514 2002-12-17  Bruno Haible  <bruno@clisp.org>
76515
76516         * lib/canon-host.c (strdup): Remove unused declaration.
76517
76518         * lib/fsusage.c: Include full_read.h.
76519         (get_fs_usage): Use full_read instead of safe_read.
76520
76521         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76522
76523 2002-12-12  Karl Berry  <karl@gnu.org>
76524
76525         * config/config.guess: update from prep.
76526
76527 2002-12-11  Bruno Haible  <bruno@clisp.org>
76528
76529         * m4/setenv.m4: New file, from gettext-0.11.5.
76530
76531 2002-12-11  Bruno Haible  <bruno@clisp.org>
76532
76533         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76534         not unsetenv().
76535         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76536         modifications:
76537
76538         2002-12-11  Bruno Haible  <bruno@clisp.org>
76539
76540                 * setenv.c (alloca): Fall back to malloc.
76541                 (freea): New macro.
76542                 (setenv): Use freea() to free memory allocated with alloca().
76543
76544         2002-11-13  Bruno Haible  <bruno@clisp.org>
76545
76546                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76547                 function declarations.
76548                 * unsetenv.c (unsetenv): Likewise.
76549
76550         2002-03-04  Bruno Haible  <bruno@clisp.org>
76551
76552                 Portability to AIX 4.3.3.
76553                 * unsetenv.c: New file, extracted from setenv.c.
76554                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76555
76556         2001-12-20  Bruno Haible  <bruno@clisp.org>
76557
76558                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76559                 use malloc instead. For SunOS 4.
76560
76561         2001-12-11  Bruno Haible  <bruno@clisp.org>
76562
76563                 * setenv.c: Declare alloca.
76564                 (compar_fn_t): New typedef.
76565                 (KNOWN_VALUE, STORE_VALUE): Use it.
76566
76567         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76568         setenv.h.
76569
76570 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76571
76572         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76573         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76574         Choose values that are less likely to collide with system fnmatch
76575         options.
76576         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76577         defined (e.g., a pure POSIX system).
76578         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76579         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76580
76581 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76582
76583         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76584         a pain in practice to deal with generated m4 files.  This change
76585         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76586
76587         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76588         and jm-glibc-io.m4, as they are no longer a special case.
76589         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76590         kludge and the auto-generation stuff.  Check only whether the
76591         functions are declared, not whether they exist, since older hosts
76592         that don't declare the functions can't use the optimization anyway.
76593
76594 2002-12-06  Jim Meyering  <jim@meyering.net>
76595
76596         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76597
76598         Merge in changes from libc's misc/error.c, in preparation
76599         for the merge of gnulib's changes back into libc.
76600
76601         * lib/error.c (_): Define only if not already defined.
76602         Move definition to follow all #include directives.
76603         Include unlocked-io.h only if !_LIBC.
76604         [_LIBC]: Include <libio/libioP.h>.
76605         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76606         (fflush): Tweak definition to use INTUSE.
76607         (putc): Define.
76608
76609 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76610
76611         * lib/alloca.c [defined emacs]: Include "lisp.h".
76612         (xalloc_die) [defined emacs]: New macro.
76613         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76614         [! defined emacs]: Include <xalloc.h>.
76615         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76616         (pointer): Typedef to POINTER_TYPE *.
76617         (malloc): Remove decl; we now always use xmalloc.
76618         (alloca): Use old-style definition, since Emacs needs this.
76619         Check for arithmetic overflow when computing combined size.
76620
76621 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76622
76623         Do not generate unlocked-io.h automatically, since it's easier to
76624         maintain it by hand.
76625
76626         * lib/unlocked-io.h: New file, from GNU diffutils,
76627         but with proper copyright notice and attribution.
76628         * lib/gen-uio: Remove.
76629         * lib/Makefile.am: Add copyright notice.
76630         (libfetish_a_SOURCES): Add unlocked-io.h.
76631         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76632         (DISTCLEANFILES, io_functions): Remove macros.
76633         (EXTRA_DIST): Remove gen_uio.
76634         (unlocked-io.h): Remove rule.
76635
76636 2002-12-04  Jim Meyering  <jim@meyering.net>
76637
76638         Reflect the fact that stat.c and lstat.c are no longer generated.
76639         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76640         (DISTCLEANFILES): Likewise.
76641         (EXTRA_DIST): Likewise.
76642         (all_local): Don't depend on stat.c or lstat.c.
76643         (stat.c, lstat.c): Remove rules.
76644         (EXTRA_DIST): Remove xstat.in.
76645
76646         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76647         * lib/stat.c: New file.  Contents mostly from xstat.in.
76648         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76649         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76650
76651         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76652         too.
76653         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76654
76655 2002-12-03  Jim Meyering  <jim@meyering.net>
76656
76657         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76658         but not semantics, to minimize the differences between these two files.
76659         (safe_read): Change comment to mention SAFE_READ_ERROR.
76660
76661         * lib/safe-read.c (IS_EINTR): Define.
76662         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76663
76664 2002-12-02  Jim Meyering  <jim@meyering.net>
76665
76666         * lib/safe-read.c (EINTR): Define.
76667         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76668         (INT_MAX): Provide fallback.
76669         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76670
76671         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76672
76673 2002-12-02  Bruno Haible  <bruno@clisp.org>
76674
76675         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76676         Define, taken from safe-read.c.
76677         (INT_MAX): Provide fallback.
76678         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76679         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76680
76681         * lib/safe-read.c (EINTR): Remove definition.
76682         (safe_read): Don't use EINTR if it is absent.
76683
76684 2002-12-01  Jim Meyering  <jim@meyering.net>
76685
76686         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76687         zero.
76688         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76689
76690 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76691
76692         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76693         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76694         with `if (! (value < limit)) abort ();', for readability.
76695
76696 2002-11-26  Karl Berry  <karl@gnu.org>
76697
76698         * lib/strdup.c: copy from libc again, with jim's ok.
76699         * lib/.cppi-disable: re-add strdup.c
76700
76701 2002-11-25  Karl Berry  <karl@gnu.org>
76702
76703         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76704         instead of "strtol.c".
76705
76706 2002-11-25  Karl Berry  <karl@gnu.org>
76707
76708         * config/install-sh: update from automake for variable quoting, $0 in
76709         error msgs, etc.
76710
76711         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76712         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76713         entry.
76714
76715 2002-11-25  Jim Meyering  <jim@meyering.net>
76716
76717         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76718
76719 2002-11-24  Karl Berry  <karl@gnu.org>
76720
76721         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76722         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76723
76724 2002-11-24  Jim Meyering  <jim@meyering.net>
76725
76726         Update from coreutils:
76727
76728         * lib/mktime.c: Merge in changes from libc.
76729
76730         Avoid a link-time failure on some Linux systems.
76731         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76732         (otherwise).
76733         (__mon_yday): Declare with the STATIC attribute.
76734         (__mktime_internal): Likewise.
76735         Based on a report from Greg Schafer.
76736
76737 2002-11-23  Jim Meyering  <jim@meyering.net>
76738
76739         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76740         Use `unsigned', not `int', as type of index.
76741
76742         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76743
76744         * lib/fsusage.c: Remove unneeded parentheses around operands of
76745         `defined'.
76746
76747 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76748
76749         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76750         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76751         so that we can be included first.
76752         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76753         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76754         No need to include stddef.h or sys/types.h any more.
76755         Surround local include files with "", not "<>".
76756         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76757         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76758         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76759         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76760         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76761         (ISPRINT): Remove; no longer needed now that we assume C89.
76762
76763         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76764         Preserve errno.
76765
76766         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76767         quotearg_char): Use SIZE_MAX rather than
76768         (size_t) -1 when we are talking about "infinity".
76769
76770         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76771
76772 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76773
76774         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76775         hint that one should use `if (! x) abort ();' rather than `assert
76776         (x);', and anyway it's one less thing to worry about configuring.
76777         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76778         hash_rehash, hash_insert): Use abort rather than assert.
76779
76780 2002-11-22  Bruno Haible  <bruno@clisp.org>
76781
76782         * lib/safe-read.h: Assume C89. Add comments.
76783         (safe_read): Change return type to size_t.
76784         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76785         byte counts > SSIZE_MAX correctly.
76786         * lib/safe-write.h: New file.
76787         * lib/safe-write.c: New file.
76788         * lib/full-read.h: New file.
76789         * lib/full-read.c: New file.
76790         * lib/full-write.h: Assume C89. Add comments.
76791         * lib/full-write.c: Include safe-write.h.
76792         (full_write): Rewritten to use safe_write.
76793         Suggested by Jim Meyering and Paul Eggert.
76794
76795 2002-11-21  Jim Meyering  <jim@meyering.net>
76796
76797         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76798
76799         Merge in changes from the coreutils.
76800
76801         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76802         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76803         <stdint.h>.
76804         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76805         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76806         int.  Work more efficiently if X is the same width as uintmax_t.
76807         Do not compare X to -1, to avoid bogus compiler warning.
76808         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76809         Don't assume that f_frsize and f_bsize are the same type.
76810
76811         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76812         warning on FreeBSD.
76813
76814         * lib/makepath.c (make_path): Restore umask *before* creating the final
76815         component.
76816         (make_path): Minor reformatting.
76817
76818         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76819         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76820         HAVE_MALLOC/HAVE_REALLOC.
76821
76822         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76823         dummy ones.  At least on GNU/Linux systems, `auto' means something
76824         else.
76825         From Michael Stone.
76826
76827 2002-11-21  Bruno Haible  <bruno@clisp.org>
76828
76829         Remove case insensitive option matching.
76830         * lib/argmatch.h (argcasematch): Remove declaration.
76831         (ARGCASEMATCH): Remove macro.
76832         (__xargmatch_internal): Remove case_sensitive argument.
76833         (XARGMATCH): Update.
76834         (XARGCASEMATCH): Remove macro.
76835         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76836         case_sensitive argument.
76837         (argcasematch): Remove function.
76838         (__xargmatch_internal): Remove case_sensitive argument.
76839         (main): Use XARGMATCH instead of XARGCASEMATCH.
76840
76841         * lib/xmalloc.c: Change compile-time error message. Add comment about
76842         required autoconf version.
76843
76844 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76845
76846         Merge argmatch cleanups from Bison.  Assume C89.
76847
76848         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76849         Include stdlib.h, for EXIT_FAILURE.
76850         Always include <string.h>, since we assume C89.
76851         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76852         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76853         Include <stddef.h> instead, since it's all we need for size_t.
76854         (PARAMS): Remove.  All uses removed.
76855         (ARRAY_CARDINALITY): Do not bother to #undef.
76856         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76857         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76858         Remove unnecessary parentheses.
76859         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76860         Insert necessary parentheses.
76861         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76862         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76863
76864 2002-11-19  Bruno Haible  <bruno@clisp.org>
76865
76866         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76867         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76868
76869         * lib/mbswidth.h (PARAMS): Remove macro.
76870         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76871         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76872
76873         * lib/gcd.h (PARAMS): Remove macro.
76874         (gcd): Use ANSI C function declarations.
76875         * lib/gcd.c (gcd): Likewise.
76876
76877 2002-11-15  Bruno Haible  <bruno@clisp.org>
76878
76879         * lib/strcspn.c: Include <stddef.h>.
76880         (strcspn): Use ANSI C function declaration. Change return type to
76881         size_t. Use NULL.
76882         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76883         (strpbrk): Use NULL.
76884         * lib/strpbrk.h (PARAMS): Remove macro.
76885         (strpbrk): Use ANSI C function declaration.
76886         * lib/strstr.c: Don't include <sys/types.h>.
76887         * lib/strstr.h (PARAMS): Remove macro.
76888         (strstr): Use ANSI C function declarations.
76889
76890 2002-11-14  Karl Berry  <karl@gnu.org>
76891
76892         * config/mkinstalldirs: `do' on separate line, instead of
76893         `for var; do'.
76894
76895 2002-11-06  Bruno Haible  <bruno@clisp.org>
76896
76897         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76898         * lib/gcd.c (gcd): Likewise.
76899
76900 2002-11-05  Bruno Haible  <bruno@clisp.org>
76901
76902         * lib/gcd.h: New file, from gettext-0.11.5.
76903         * lib/gcd.c: New file, from gettext-0.11.5.
76904
76905 2002-11-05  Bruno Haible  <bruno@clisp.org>
76906
76907         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76908         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76909         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76910         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76911
76912         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76913         <libintl.h>.
76914         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76915         <libintl.h>.
76916
76917         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76918         * lib/human.c: Include gettext.h instead of <libintl.h>.
76919         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76920         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76921         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76922         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76923         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76924         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76925         (textdomain): Remove definition.
76926         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76927
76928         * lib/long-options.c: Remove include of <libintl.h> and definition of
76929         _.
76930         * lib/same.c: Remove include of <libintl.h> and definition of _.
76931
76932 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76933
76934         * lib/config.charset: A few additions for Solaris.
76935
76936 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76937
76938         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76939         * lib/localcharset.c (locale_charset): Declare as extern "C".
76940
76941 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76942
76943         * lib/config.charset: msdos in uk_UA uses CP1125.
76944
76945 2002-11-04  Bruno Haible  <bruno@clisp.org>
76946
76947         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76948         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76949         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76950         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76951         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76952
76953 2002-11-04  Bruno Haible  <bruno@clisp.org>
76954
76955         * lib/localcharset.c (locale_charset): Don't return an empty string.
76956
76957 2002-11-04  Bruno Haible  <bruno@clisp.org>
76958
76959         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76960         aliases.
76961
76962 2002-11-04  Bruno Haible  <bruno@clisp.org>
76963
76964         * lib/config.charset: Update for newest glibc. Add canonical names
76965         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76966
76967 2002-11-04  Bruno Haible  <bruno@clisp.org>
76968
76969         * lib/config.charset: Add support for NetBSD.
76970
76971 2002-11-04  Bruno Haible  <bruno@clisp.org>
76972
76973         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76974
76975 2002-11-01  Bruno Haible  <bruno@clisp.org>
76976
76977         * configure.in: Add AC_CONFIG_AUX_DIR call.
76978         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76979         test/Makefile.
76980         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76981
76982 2002-09-28  Karl Berry  <karl@gnu.org>
76983
76984         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76985         installed automake until the next release, since changes have been
76986         made.
76987
76988 2002-09-25  Karl Berry  <karl@gnu.org>
76989
76990         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76991         * lib/getopt*: copy from libc/posix.
76992         * lib/gettext.h: copy from gettext.
76993         * lib/.cppi-disable: add strdup.c, gettext.h.
76994
76995 2002-09-25  Karl Berry  <karl@gnu.org>
76996
76997         * config/srclist.txt: enable gettext.h check.
76998         * config/config.{guess,sub}: update from prep.
76999         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77000                 from automake 1.6.3.
77001         See srclist*.
77002
77003 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77004
77005         * regex.c (PATFETCH): Remove the translating fetch.
77006         (PATFETCH_RAW): Rename to PATFETCH.
77007         (set_image_of_range): New fun.
77008         (SET_RANGE_TABLE_WORK_AREA): Use it.
77009         (regex_compile): Don't translate the pattern chars so eagerly.
77010         Only do it when inserting an `exactn' bytecode or when handling
77011         a char-range.
77012         (mutually_exclusive_p): Avoid empty statement.
77013
77014 2002-07-06  Jim Meyering  <meyering@lucent.com>
77015
77016         * m4/README: Don't mention Makefile.am.in.
77017         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77018
77019 2002-07-01  Jim Meyering  <meyering@lucent.com>
77020
77021         * lib/c-stack.c: Include sys/time.h.
77022         From Volker Borchert.
77023
77024 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77025
77026         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77027
77028 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77029
77030         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77031         New macro.  Use it uniformly instead of
77032         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77033         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77034         reported by Vin Shelton.
77035
77036 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77037
77038         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77039         Do not assume SA_SIGINFO behavior.
77040         Bug reported by Jim Meyering on NetBSD 1.5.2.
77041
77042 2002-06-22  Jim Meyering  <meyering@lucent.com>
77043
77044         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77045         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77046
77047         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77048         now that configure.ac uses AC_GNU_SOURCE.
77049         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77050         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77051
77052         Update to latest tools.  Suggestions from Paul Eggert.
77053         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77054         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77055         * m4/fnmatch.m4: Likewise.
77056         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77057         to AC_HEADER_STDBOOL
77058
77059 2002-06-22  Jim Meyering  <meyering@lucent.com>
77060
77061         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77062         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77063
77064 2002-06-22  Jim Meyering  <meyering@lucent.com>
77065
77066         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77067
77068         * lib/exitfail.c, exitfail.h: Likewise.
77069         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77070
77071         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77072         of fnmatch.h.
77073         (EXTRA_DIST): Add fnmatch_loop.c.
77074         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77075
77076         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77077         * lib/fnmatch.c: Update from diffutils-2.8.2.
77078         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77079         * lib/fnmatch.h: Remove file.
77080
77081 2002-06-21  Jim Meyering  <meyering@lucent.com>
77082
77083         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77084         * m4/mbrtowc.m4: Likewise.
77085
77086         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77087         * m4/mbswidth.m4: Reflect name change:
77088         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77089         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77090
77091         * m4/lib-link.m4: Update from gettext-0.11.2.
77092         * m4/gettext.m4: Likewise.
77093
77094         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77095         From Alfred M. Szmidt.
77096
77097 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77098
77099         * lib/file-type.h: Report an error if neither S_ISREG nor
77100         S_IFREG is defined, instead of using a test specific to glibc
77101         2.2.  This should be safe, since POSIX requires S_ISREG and
77102         Unix Version 7 had S_IFREG.  We don't need to check for
77103         <sys/types.h> since we don't use any symbols that it defines.
77104
77105 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77106
77107         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77108         $@-t, so that each temporary file name is unique and valid in the first
77109         8 characters, for operation under DOS.
77110
77111 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77112
77113         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77114
77115 2002-06-15  Jim Meyering  <meyering@lucent.com>
77116
77117         Work even with DJGPP 2.03, which lacks support for symlinks.
77118         From Richard Dawe.
77119         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77120         is defined.
77121         * lib/lchown.c (S_ISLNK): Likewise.
77122
77123 2002-06-15  Jim Meyering  <meyering@lucent.com>
77124
77125         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77126         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77127         have been included before this file.
77128
77129 2002-06-14  Jim Meyering  <meyering@lucent.com>
77130
77131         * lib/file-type.h: Use the version from diffutils-2.8.2.
77132         * lib/file-type.c: Likewise.
77133
77134 2002-06-07  Jim Meyering  <meyering@lucent.com>
77135
77136         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77137         They're needed at least for NetBSD 1.5.2.
77138         ($statxfs_includes): Include those same headers.
77139         ($statxfs_includes): Include sys/vfs.h if available.
77140         ($statxfs_includes): Likewise for sys/statvfs.h.
77141         Check for the following members in both structs statfs and statvfs:
77142         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77143
77144 2002-06-01  Jim Meyering  <meyering@lucent.com>
77145
77146         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77147         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77148
77149 2002-05-28  Jim Meyering  <meyering@lucent.com>
77150
77151         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77152         Reported by Volker Borchert.
77153
77154 2002-05-27  Jim Meyering  <meyering@lucent.com>
77155
77156         Fix a problem seen only on nonconforming systems whereby ls.c's
77157         use of localtime, and then of gettimeofday would cause trouble:
77158         the localtime call used to initialize rpl_gettimeofday's save
77159         mechanism would clobber ls's current local time information so
77160         that in any long listing the first file would always be listed
77161         with date 1970-01-01.  Analysis by Volker Borchert.
77162
77163         * lib/gettimeofday.c (localtime): Undefine.
77164         (rpl_localtime): New function.
77165
77166 2002-05-27  Jim Meyering  <meyering@lucent.com>
77167
77168         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77169         localtime.
77170
77171         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77172         use the replacement function; it wouldn't resolve at link time.
77173         Reported by Volker Borchert.
77174
77175 2002-05-22  Jim Meyering  <meyering@lucent.com>
77176
77177         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77178         file-type.h.
77179         * lib/file-type.h: New file.
77180         * lib/file-type.c (file_type): New file/function.  Extracted from
77181         diffutils.
77182
77183 2002-04-30  Jim Meyering  <meyering@lucent.com>
77184
77185         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77186
77187 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77188
77189         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77190
77191 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77192
77193         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77194         Do not check for alloca.h (no longer used) or stdbool.h (was never
77195         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77196
77197 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77198
77199         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77200
77201 2002-04-29  Jim Meyering  <meyering@lucent.com>
77202
77203         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77204         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77205         Use AC_FUNC_STRNLEN here instead.
77206
77207         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77208         With autoconf-2.53a, it's part of AC_PROG_CC.
77209
77210 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77211
77212         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77213         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77214
77215 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77216
77217         * lib/sig2str.h, lib/sig2str.c: New files.
77218         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77219
77220 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77221
77222         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77223         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77224         of 127, since 64 is the largest conceivable number for ancient
77225         nonstandard hosts.
77226         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77227
77228 2002-04-28  Jim Meyering  <meyering@lucent.com>
77229
77230         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77231
77232 2002-04-24  Jim Meyering  <meyering@lucent.com>
77233
77234         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77235         (jm_PREREQ): Use it.
77236
77237         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77238         mach/mach.h fcntl.h.
77239         Check for this function: setlocale.
77240
77241 2002-04-24  Jim Meyering  <meyering@lucent.com>
77242
77243         * lib/gettext.h: New file, from Gettext.
77244         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77245         (libfetish_a_SOURCES): Add gettext.h.
77246
77247 2002-04-16  Jim Meyering  <meyering@lucent.com>
77248
77249         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77250         ut_pid, ut_id, ut_exit.
77251
77252 2002-04-16  Jim Meyering  <meyering@lucent.com>
77253
77254         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77255         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77256         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77257
77258 2002-04-12  Jim Meyering  <meyering@lucent.com>
77259
77260         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77261         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77262         existence of the getmntinfo function.  Needed for Darwin 5.3.
77263
77264         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77265         This is necessary at least on Darwin 5.3.
77266
77267         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77268         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77269         strnlen.o in the library, and that makes some versions of ranlib
77270         object.
77271
77272 2002-04-12  Jim Meyering  <meyering@lucent.com>
77273
77274         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77275
77276 2002-04-09  Jim Meyering  <meyering@lucent.com>
77277
77278         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77279         to be more precise.  Rather than saying we're checking whether the
77280         function `works', say what we're testing.
77281         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77282         Reported by Bruno Haible.
77283
77284 2002-03-10  Jim Meyering  <meyering@lucent.com>
77285
77286         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77287         Suggestion from Santiago Vila.
77288
77289 2002-03-08  Jim Meyering  <meyering@lucent.com>
77290
77291         * lib/rename.c: Mention that this wrapper is needed also on
77292         mips-dec-ultrix4.4 systems.
77293
77294 2002-03-02  Jim Meyering  <meyering@lucent.com>
77295
77296         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77297         not HAVE_CLOCK_SETTIME.
77298
77299 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77300
77301         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77302         Check for clock_settime.
77303
77304 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77305
77306         * lib/nanosleep.h: Rename to....
77307         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77308
77309         * lib/gettime.c: New file.
77310         * lib/settime.c: New file.
77311         * lib/stime.c: Remove.
77312
77313         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77314         timespec.h.  Remove nanosleep.h.
77315
77316 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77317
77318         * m4/acl.m4: New file.
77319         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77320         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77321
77322 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77323
77324         * lib/acl.c, lib/acl.h: New files.
77325         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77326
77327 2002-02-24  Jim Meyering  <meyering@lucent.com>
77328
77329         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77330         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77331         cause trouble.  Reported by Nelson Beebe.
77332
77333 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77334
77335         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77336         compilers that don't know that xalloc_die never returns.
77337
77338 2002-02-20  Jim Meyering  <meyering@lucent.com>
77339
77340         * lib/getdate.c: Regenerate using bison-1.33.
77341
77342 2002-02-17  Jim Meyering  <meyering@lucent.com>
77343
77344         * config/config.guess (main): Don't use `head -1'; it's no longer
77345         portable. Use `sed 1q' instead.
77346
77347 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77348
77349         * m4/codeset.m4: Upgrade to gettext-0.11.
77350         * m4/gettext.m4: Upgrade to gettext-0.11.
77351         * m4/glibc21.m4: Upgrade to gettext-0.11.
77352         * m4/iconv.m4: Upgrade to gettext-0.11.
77353         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77354         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77355         * m4/lib-ld.m4: New file, from gettext-0.11.
77356         * m4/lib-link.m4: New file, from gettext-0.11.
77357         * m4/lib-prefix.m4: New file, from gettext-0.11.
77358         * m4/progtest.m4: Upgrade to gettext-0.11.
77359
77360 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77361
77362         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77363         (jm_PREREQ): Use it.
77364
77365 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77366
77367         * lib/posixver.c, lib/posixver.h: New files.
77368         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77369
77370 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77371             Bruno Haible  <bruno@clisp.org>
77372
77373         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77374         (fwrite_success_callback): New declaration.
77375         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77376         print_unicode_char. Call failure callback instead of error.
77377         (fwrite_success_callback): New function.
77378         (exit_failure_callback): New function.
77379         (fallback_failure_callback): New function.
77380         (print_unicode_char): Call unicode_to_mb.
77381
77382 2002-01-26  Jim Meyering  <meyering@lucent.com>
77383
77384         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77385         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77386
77387 2002-01-26  Jim Meyering  <meyering@lucent.com>
77388
77389         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77390
77391 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77392
77393         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77394
77395 2002-01-22  Jim Meyering  <meyering@lucent.com>
77396
77397         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77398         Otherwise, some versions of automake would omit the rule that makes
77399         Makefile from Makefile.in.
77400
77401 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77402
77403         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77404         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77405         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77406         (memcoll): Set errno to zero if there is no error.
77407
77408         * lib/quotearg.c (quotearg_buffer_restyled):
77409         Fix bug with quoting buffers containing NUL when backslashing escapes.
77410         This bug was exposed by the other changes in this patch.
77411         (quotearg_n_options): New arg ARGSIZE.
77412         All callers changed.
77413         (quoting_options_from_style): New function.
77414         (quotearg_n_style): Use it.
77415         (quotearg_n_style_mem): New function.
77416
77417         * lib/quotearg.h (quotearg_n_style_mem): New function.
77418
77419 2002-01-19  Jim Meyering  <meyering@lucent.com>
77420
77421         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77422         Remove useless quotes: DF_PROG="df".
77423         * m4/strnlen.m4: New file.
77424
77425 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77426
77427         * lib/backupfile.c (ISDIGIT): Comment fix.
77428         * lib/getdate.y (ISDIGIT): Likewise.
77429         * lib/posixtm.c (ISDIGIT, year): Likewise.
77430         * lib/strverscmp.c (ISDIGIT): Likewise.
77431         * lib/userspec.c (ISDIGIT): Likewise.
77432
77433 2002-01-16  Jim Meyering  <meyering@lucent.com>
77434
77435         * lib/getdate.y: Add three semicolons, each just before a closing
77436         brace. Bison (as of version 1.31) no longer papers over that mistake.
77437
77438 2002-01-05  Jim Meyering  <meyering@lucent.com>
77439
77440         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77441
77442 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77443
77444         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77445         not silently exit merely because the output buffer happens to
77446         have nothing pending.
77447
77448 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77449
77450         See the big note in ../ChangeLog.
77451         * lib/human.c (suffixes): Prefer K to k for 1024.
77452         (generate_suffix_backwards): New function.
77453         (human_readable_inexact): Use it.
77454         * lib/xstrtol.c (__xstrtol): If there is no number but there
77455         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77456         Accept 'K' as well as 'k'.
77457
77458 2001-12-15  Jim Meyering  <meyering@lucent.com>
77459
77460         * lib/regex.h (__restrict_arr): Update from libc.
77461
77462         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77463         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77464         (STREQ): Define.
77465
77466 2001-12-14  Jim Meyering  <meyering@lucent.com>
77467
77468         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77469         Suggestion from Bruno Haible.
77470
77471 2001-12-10  Jim Meyering  <meyering@lucent.com>
77472
77473         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77474         xrealloc, Instead, include "xalloc.h".
77475         (initbuffer): Don't cast xmalloc return value to char*.
77476         (readline): Reword comment.
77477         Don't cast xrealloc return value to char*
77478         Return NULL, not 0.
77479
77480 2001-12-09  Jim Meyering  <meyering@lucent.com>
77481
77482         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77483         about `signed and unsigned type in conditional expression'.
77484         * lib/posixtm.c (posix_time_parse): Likewise.
77485
77486         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77487
77488         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77489         to avoid a pedantic warning.
77490
77491         * lib/getstr.c: Don't include assert.h.
77492         (getstr): Remove warning-evoking assertions.
77493         Return -1 if offset parameter is out of bounds.
77494         Change the type of a local from int to size_t.
77495
77496         * lib/strftime.c (my_strftime_localtime_r): Include this function
77497         definition in the `#if ! HAVE_TM_GMTOFF' block.
77498
77499         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77500         Include xalloc.h instead.
77501
77502 2001-12-02  Jim Meyering  <meyering@lucent.com>
77503
77504         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77505         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77506         included.
77507
77508         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77509         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77510
77511 2001-11-30  Akim Demaille  <akim@epita.fr>
77512
77513         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77514         before being defined.
77515
77516 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77517
77518         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77519         First arg is int, not unsigned.
77520         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77521         (SIZE_MAX, UINT_MAX): New macros.
77522         (quotearg_n_options): Abort if N is negative.
77523         Avoid overflow check on hosts where size_t is 64 bits and int
77524         is 32 bits, as overflow is impossible there.
77525         Fix off-by-one typo that caused unnecessary reallocation.
77526
77527 2001-11-27  Jim Meyering  <meyering@lucent.com>
77528
77529         * lib/tempname.c: Merge with version from libc.
77530         * lib/regex.c: Likewise.
77531
77532         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77533         systems for which STDC_HEADERS is 0, it was not included, resulting in
77534         a warning about an integer-to-pointer conversion problem with getenv.
77535         Reported by Volker Borchert.
77536
77537 2001-11-26  Jim Meyering  <meyering@lucent.com>
77538
77539         * lib/gtod.h: Remove file.
77540         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77541         * lib/gettimeofday.c: Don't include gtod.h.
77542         (GTOD_init): Remove function.
77543         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77544         Suggestion from Volker Borchert.
77545
77546 2001-11-23  Jim Meyering  <meyering@lucent.com>
77547
77548         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77549         it.
77550         * lib/hash.c (struct hash_table): Define it here instead.
77551
77552 2001-11-22  Jim Meyering  <meyering@lucent.com>
77553
77554         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77555
77556 2001-11-20  Jim Meyering  <meyering@lucent.com>
77557
77558         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77559         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77560
77561 2001-11-19  Jim Meyering  <meyering@lucent.com>
77562
77563         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77564         directory.  Use "conftestXXXXXX" as the template.
77565         Suggestion from Paul Eggert.
77566
77567         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77568         immediately, so the test doesn't mistakenly hit the max-open-files
77569         limit.
77570
77571 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77572
77573         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77574         (TEMPORARIES): New macro.
77575         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77576         removes an artificial limitation (e.g. HP-UX 10.20, where
77577         TMP_MAX is 17576).
77578
77579 2001-11-18  Jim Meyering  <meyering@lucent.com>
77580
77581         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77582
77583 2001-11-18  Jim Meyering  <meyering@lucent.com>
77584
77585         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77586         on SunOS 4.
77587
77588         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77589         files will be created before anything else.
77590
77591 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77592
77593         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77594         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77595
77596 2001-11-17  Jim Meyering  <meyering@lucent.com>
77597
77598         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77599         Prompted by a report from Bob Proulx.
77600
77601         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77602         Instead, require UTILS_FUNC_MKSTEMP.
77603
77604 2001-11-17  Jim Meyering  <meyering@lucent.com>
77605
77606         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77607         Now, that's done as part of AC_FUNC_STRTOD.
77608
77609 2001-11-17  Jim Meyering  <meyering@lucent.com>
77610
77611         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77612         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77613         rather than group writable.  Patch by Juan F. Codagnone.
77614
77615         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77616         xrealloc, Instead, include "xalloc.h".
77617
77618         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77619         Remove explicit declarations of xmalloc, xrealloc,
77620         and xstrdup.  Instead, include "xalloc.h".
77621
77622         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77623         unlocked-io.h.
77624         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77625         Likewise.
77626         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77627
77628         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77629         Reported by Padraig Brady.
77630
77631         * lib/mkstemp.c: #undef mkstemp.
77632         Include config.h.
77633         (rpl_mkstemp): Rename from mkstemp.
77634         Protoize.
77635
77636 2001-11-16  Jim Meyering  <meyering@lucent.com>
77637
77638         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77639         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77640         determine the amount of total physical memory, use pstat_getstatic.
77641         HPUX-11 doesn't define _SC_PHYS_PAGES.
77642         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77643         If sysconf couldn't be used to determine the amount of available
77644         physical memory, use both pstat_getstatic and pstat_getdynamic.
77645         Based on a patch from Bob Proulx.
77646
77647 2001-11-10  Jim Meyering  <meyering@lucent.com>
77648
77649         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77650         (jm_PREREQ): Use it.
77651
77652 2001-11-09  Jim Meyering  <meyering@lucent.com>
77653
77654         * m4/jm-macros.m4: Require autoconf-2.52f.
77655         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77656         Use these AC_-prefixed names, not the AM_-prefixed ones.
77657
77658         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77659
77660 2001-11-05  Jim Meyering  <meyering@lucent.com>
77661
77662         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77663
77664 2001-11-04  Jim Meyering  <meyering@lucent.com>
77665
77666         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77667         $DEFS.
77668
77669 2001-11-03  Jim Meyering  <meyering@lucent.com>
77670
77671         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77672         of AC_DEFUN.
77673
77674         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77675         know the name of the variable in the macro definition.
77676
77677 2001-11-03  Jim Meyering  <meyering@lucent.com>
77678
77679         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77680         in argmatch_to_argument call.
77681
77682         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77683         argument.
77684
77685         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77686         e.g., a fault due to an attempt to free a NULL pointer.
77687
77688 2001-11-01  Jim Meyering  <meyering@lucent.com>
77689
77690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77691         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77692
77693 2001-11-01  Jim Meyering  <meyering@lucent.com>
77694
77695         * lib/dirfd.c, lib/dirfd.h: New files.
77696         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77697
77698         * lib/hash.c (hash_print) [TESTING]: Clean up.
77699
77700 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77701
77702         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77703         to avoid a warning if -Wall.
77704
77705 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77706
77707         * README: New file
77708         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77709         (per RMS's instructions, this is now the canonical source)
77710         * lgpl/, gpl/: New directories.
77711
77712 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77713
77714         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77715
77716 2001-10-21  Jim Meyering  <meyering@lucent.com>
77717
77718         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77719         this code would end up calling gettext even in packages built
77720         with --disable-nls.
77721         * lib/getopt.c (_): Likewise.
77722         * lib/regex.c (_): Likewise.
77723
77724 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77725
77726         * m4/error.m4 (jm_PREREQ_ERROR):
77727         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77728         AC_FUNC_STRERROR_R does that.
77729         Check for strerror declaration.
77730
77731         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77732         are supposed to have them these days.
77733         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77734         Merge changes from latest Autoconf CVS.
77735         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77736         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77737         POSIX decided to standardize on the int flavor of strerror_r.
77738
77739 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77740
77741         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77742         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77743         Use strerror_r that is only a macro, even if it is not a function.
77744         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77745         (private_strerror): Use prototypes, not old-style function definition.
77746         (print_errno_message): New function.
77747         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77748         char*-flavored one.
77749         (error_tail, error, error_at_line): Use it.
77750
77751 2001-10-11  Jim Meyering  <meyering@lucent.com>
77752
77753         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77754         and quote_n (1, ... to avoid clobbering a buffer.
77755
77756 2001-10-05  Jim Meyering  <meyering@lucent.com>
77757
77758         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77759         hash-pjw.h.
77760         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77761         * lib/hash-pjw.h: New file.
77762
77763 2001-09-30  Jim Meyering  <meyering@lucent.com>
77764
77765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77766         `struct fsstat' has the `f_fstypename' member.
77767         Use that to define FS_TYPE, which is now used to make
77768         the getfsstat link test tighter.
77769
77770 2001-09-30  Jim Meyering  <meyering@lucent.com>
77771
77772         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77773         Include <sys/ucred.h>, for Apple Darwin.
77774         Include sys/mount.h and sys/fs_types.h only if available.
77775         (FS_TYPE): Define.
77776         (read_filesystem_list): Use FS_TYPE.
77777
77778 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77779
77780         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77781         a boolean context.
77782
77783 2001-09-29  Jim Meyering  <meyering@lucent.com>
77784
77785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77786         [one-argument getmntent function]): Include stdio.h before mntent.h.
77787         SunOS 4.1.x needs it for the declaration of `FILE'.
77788         Patch by Volker Borchert.
77789
77790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77791         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77792         sys/fs_types.h, and make the link-test for getfsstat guard #include
77793         directives with appropriate #if HAVE_*_H tests so that we can
77794         detect getfsstat on Apple Darwin1.3.7 systems.
77795         Reported by Nelson Beebe.
77796         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77797
77798 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77799
77800         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77801         #defines strtoimax.  Also treat the other strto* functions
77802         like strtoimax.
77803
77804         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77805         Check for strtoul and strtoumax,
77806         as those declarations are made even in the signed case.
77807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77808         Likewise, for strtol and strtoimax.
77809
77810 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77811
77812         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77813         #defines strtoimax.  Also treat the other strto* functions
77814         like strtoimax.
77815
77816         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77817         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77818         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77819
77820 2001-09-26  Jim Meyering  <meyering@lucent.com>
77821
77822         Most macros in unlocked-io.h had the wrong number of arguments.
77823         * lib/gen-uio: New script.
77824         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77825         * lib/unlocked-io.hin: Remove file.
77826         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77827         rather than trying to embed it here.
77828         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77829         Reported by Padraig Brady.
77830
77831 2001-09-25  Volker Borchert  <bt@teknon.de>
77832
77833         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77834         `result'.
77835
77836 2001-09-24  Jim Meyering  <meyering@lucent.com>
77837
77838         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77839
77840 2001-09-23  Jim Meyering  <meyering@lucent.com>
77841
77842         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77843         instead of the mere test for existence of mntent.h.  The latter
77844         would get a false-positive on AIX 3.4 systems.
77845         In the outer getmntent if-block, don't die if neither of the getmntent
77846         tests succeeds.  Instead, just fall through and continue with the
77847         remaining tests.
77848
77849 2001-09-23  Jim Meyering  <meyering@lucent.com>
77850
77851         * lib/mountlist.c: Remove useless parentheses in #if directives.
77852         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77853         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77854
77855 2001-09-22  Jim Meyering  <meyering@lucent.com>
77856
77857         * m4/gettext.m4: New file.  From gettext.
77858         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77859         * m4/progtest.m4: Likewise
77860         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77861         * m4/glibc21.m4: Likewise.
77862
77863         * m4/libintl.m4: Remove.  No longer used.
77864
77865 2001-09-22  Jim Meyering  <meyering@lucent.com>
77866
77867         * lib/localcharset.c: Update from latest gettext.
77868         * lib/config.charset: Likewise.
77869
77870 2001-09-20  Jim Meyering  <meyering@lucent.com>
77871
77872         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77873         strtoimax.
77874         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77875         strtoumax.
77876
77877 2001-09-20  Jim Meyering  <meyering@lucent.com>
77878
77879         * lib/xstrtol.c (strtoimax): Guard declaration with
77880         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77881         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77882         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77883         (strtoumax): Likewise, for completeness (it wasn't necessary).
77884
77885 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77886
77887         * lib/strtoimax.c (HAVE_LONG_LONG):
77888         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77889         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77890         to work around bug in IBM C compiler.
77891
77892 2001-09-17  Jim Meyering  <meyering@lucent.com>
77893
77894         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77895         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77896         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77897         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77898         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77899         whenever the right hand side need not be expanded by the shell.
77900
77901 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77902
77903         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77904         library.  It's not correct, as some older glibcs are buggy.
77905         fnmatch wasn't fixed until glibc 2.2.
77906
77907         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77908         special shell magic here.
77909
77910 2001-09-16  Jim Meyering  <meyering@lucent.com>
77911
77912         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77913         * m4/jm-macros.m4: Require it.
77914
77915 2001-09-16  Jim Meyering  <meyering@lucent.com>
77916
77917         * lib/mkdir.c: New file.
77918
77919 2001-09-15  Jim Meyering  <meyering@lucent.com>
77920
77921         * m4/jm-macros.m4: Check for help2man.
77922
77923 2001-09-11  Jim Meyering  <meyering@lucent.com>
77924
77925         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77926         The body, by Paul Eggert, was moved here from configure.in.
77927         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77928
77929 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77930
77931         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77932         (jm_PREREQ): Use it.
77933
77934 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77935
77936         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77937         Use ssize_t, not int, to store result of readlink.
77938         Check for ssize_t overflow as well as size_t overflow,
77939         as POSIX says the result of readlink is implementation-defined
77940         when ssize_t overflows.
77941         Remove unnecessary cast to char*.
77942         Use free+malloc instead of realloc, as the storage doesn't need
77943         to be preserved and it's clearer and can be more efficient that way.
77944         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77945         * lib/xreadlink.h (xreadlink): Update prototype.
77946
77947 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77948
77949         * lib/xgetcwd.c: Revert some of the previous change; intead,
77950         fix the HAVE_GETCWD_NULL code to behave more like the
77951         !HAVE_GETCWD_NULL code used to.
77952
77953         Include "xalloc.h".
77954         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77955         invoke xalloc_die.
77956
77957 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77958
77959         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77960         sys/param.h, as pathmax.h includes them.
77961
77962 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77963
77964         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77965         (jm_PREREQ_XGETCWD): New macro.
77966
77967         * m4/getcwd.m4: New file.
77968
77969 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77970
77971         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77972         like the HAVE_GETCWD_NULL code.
77973         Include pathmax.h if not HAVE_GETCWD.
77974         Do not include xalloc.h.
77975         (INITIAL_BUFFER_SIZE): New symbol.
77976         Do not use xmalloc / xrealloc, since the caller is responsible for
77977         handling errors.  Preserve errno around `free' during failure.
77978         Do not overrun buffer when using getwd.
77979
77980 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77981
77982         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77983         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77984         getcwd (NULL, 0).
77985
77986 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77987
77988         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77989         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77990         spotted by Jim Meyering.
77991
77992 2001-09-03  Jim Meyering  <meyering@lucent.com>
77993
77994         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77995         failure.
77996
77997 2001-09-02  Jim Meyering  <meyering@lucent.com>
77998
77999         * lib/error.c: Update from GNU libc.
78000
78001 2001-09-01  Jim Meyering  <meyering@lucent.com>
78002
78003         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78004         Used by df.
78005
78006 2001-09-01  Jim Meyering  <meyering@lucent.com>
78007
78008         * lib/xreadlink.c: New file.
78009         * lib/xreadlink.h: New file.
78010         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78011         xreadlink.h.
78012
78013         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78014         doesn't conflict with sparc Solaris 7's definition in
78015         /usr/include/sys/int_types.h.
78016
78017         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78018         files.
78019         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78020         and strncasecmp as r-values.  Unixware didn't have declarations.
78021
78022 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78023
78024         * lib/xstrtol.h: Add copyright notice.
78025         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78026         LONGINT_INVALID_SUFFIX_CHAR.
78027
78028 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78029
78030         * lib/xstrtol.c (strtoimax): New decl.
78031
78032 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78033
78034         * lib/xgetcwd.c: Don't include pathmax.h.
78035         Include stdlib.h and unistd.h if available.
78036         Include xalloc.h.
78037         (xmalloc, xstrdup, free): Remove decls.
78038         (xgetcwd): Don't assume sizes fit in unsigned.
78039         Check for overflow when computing sizes.
78040         Simplify reallocation code.
78041
78042 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78043
78044         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78045         a directory's st_size can have an arbitrary value, so the old
78046         usage could waste an arbitrary amount of memory.  All uses
78047         changed.
78048         * lib/savedir.h: Update prototype.
78049
78050 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78051
78052         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78053
78054         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78055         old strtoimax.c.
78056
78057         Also, make the following further changes to make this file's
78058         configuration more similar to that of strtol.c:
78059         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78060         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78061         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78062         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78063         changed to signed values.
78064
78065         And make the following changes as well:
78066         Fix copyright notice, as 1999 was missing.
78067         (verify): New macro.
78068         (strtoimax): Check sizes at compile-time, not run-time.
78069         Prefer strtol to strtoll if both work.
78070         (main): Remove; it was not that useful and was a pain to maintain.
78071
78072         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78073
78074 2001-08-31  Jim Meyering  <meyering@lucent.com>
78075
78076         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78077         Use an initial, malloc'd, buffer of length 128 rather than
78078         a statically allocated one of length 1024.
78079
78080 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78081
78082         Simplify code, partly by assuming autoconf 2.52 semantics.
78083
78084         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78085
78086         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78087         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78088         All uses removed.
78089         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78090         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78091         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78092         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78093         jm_AC_HEADER_INTTYPES_H.
78094         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78095
78096         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78097
78098         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78099         Quote first arg of AC_DEFUN.
78100         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78101         since they are needed to parse the include file even if we need
78102         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78103         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78104         but with opposite signedness.
78105
78106 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78107
78108         Merge 'exclude' changes from tar 1.13.22.
78109         This fixes one or two unlikely storage allocation overflow bugs,
78110         but doesn't change user-visible behavior otherwise.
78111
78112 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78113
78114         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78115         (jm_PREREQ_EXCLUDE): New macro.
78116
78117 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78118
78119         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78120         tm to be declared.
78121
78122 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78123
78124         * lib/hash.c: Remove '2001' from copyright notice.
78125
78126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78127
78128         * lib/full-write.h: New file.
78129         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78130         * lib/full-write.c: Correct credits, as cccp.c no longer
78131         exists and anyway it was so heavily changed from the old cccp
78132         code as to be unrecognizable.  Include full-write.h.
78133         (full_write): Return size_t, with short writes meaning failure.
78134         All callers changed.  This fixes a bug with large buffers
78135         on 64-bit hosts.
78136         * lib/utime.c: Include full-write.h.
78137
78138 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78139
78140         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78141         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78142         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78143         Include if available.
78144         (<xalloc.h>): Include
78145         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78146         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78147         collide with FNM macros.
78148         (struct patopts): New struct.
78149         (struct exclude): Use it, as exclude patterns now come with options.
78150         (new_exclude): Support above changes.
78151         (new_exclude, add_exclude_file):
78152         Initial size must now be a power of two to simplify overflow checking.
78153         (free_exclude, fnmatch_no_wildcards): New function.
78154         (excluded_filename): No longer requires options arg, as the options
78155         are determined by add_exclude.  Now returns bool, not int.
78156         (excluded_filename, add_exclude):
78157         Add support for the fancy new exclusion options.
78158         (add_exclude, add_exclude_file): Now takes int options arg.
78159         Check for arithmetic overflow when computing sizes.
78160         (add_exclude_file): xrealloc might modify errno, so don't
78161         realloc until after errno might be used.
78162
78163         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78164         New macros.
78165         (free_exclude): New decl.
78166         (add_exclude, add_exclude_file): Now takes int options arg.
78167         (excluded_filename): No longer requires options arg, as the options
78168         are determined by add_exclude.  Now returns bool, not int.
78169
78170 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78171
78172         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78173
78174 2001-08-27  Jim Meyering  <meyering@lucent.com>
78175
78176         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78177
78178         * lib/version-etc.c (N_): Remove definition.
78179         Revert most of last change.
78180         Instead, simply don't mark the `Copyright...' string for translation.
78181         Based on advice from Paul Eggert.
78182
78183         * lib/strtoxmax.c: Tweak comment.
78184
78185 2001-08-26  Jim Meyering  <meyering@lucent.com>
78186
78187         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78188
78189         * m4/xstrtoimax.m4: New file.
78190         * m4/xstrtoumax.m4: Add comments explaining why we
78191         AC_REPLACE_FUNCS(strtol).
78192
78193 2001-08-26  Jim Meyering  <meyering@lucent.com>
78194
78195         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78196         of copyright with `%s' so translators don't get an untranslated
78197         message in 2002.
78198         (COPYRIGHT_YEAR): Define.
78199         (version_etc): Use fprintf rather than fputs.
78200         Suggestion from Ulrich Drepper.
78201
78202         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78203
78204         * lib/strtoll.c: New file, from GNU libc.
78205         * lib/xstrtoimax.c: New file.
78206
78207         * lib/xstrtol.h: Add xstrtoimax.
78208         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78209         * lib/strtoimax.c: New file.  Likewise, but first define
78210         STRTOUXMAX_SIGNED.
78211
78212         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78213         ...
78214         * lib/strtoxmax.c: ... then renamed to this.
78215
78216 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78217
78218         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78219         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78220         (jm_AC_TYPE_INTMAX_T): New macro.
78221         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78222
78223         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78224
78225         * m4/longlong.m4: Renamed from ulonglong.m4.
78226         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78227         * m4/uintmax_t.m4: Removed.
78228
78229 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78230
78231         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78232         Port to Solaris 8, where 'sed' requires a space after the 'r'
78233         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78234         Redirect output to $tmp just once.
78235
78236 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78237
78238         * lib/addext.c (<errno.h>): Include.
78239         (errno): Declare if not defined.
78240         (addext): Work correctly when pathconf returns -1 and leaves
78241         errno alone because there is no limit.  Also, work even if
78242         pathconf returns a value greater than SIZE_MAX.
78243
78244 2001-08-12  Jim Meyering  <meyering@lucent.com>
78245
78246         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78247         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78248         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78249         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78250         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78251         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78252         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78253         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78254         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78255         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78256         utime.m4, utimes.m4, xstrtoumax.m4:
78257         Quote the first argument in each use of AC_DEFUN.
78258
78259 2001-08-12  Jim Meyering  <meyering@lucent.com>
78260
78261         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78262         Simply `return getcwd (NULL, 0);'.
78263         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78264         Use 1300 as initial value for length, not PATH_MAX.
78265
78266         * lib/pathmax.h: Clean up cpp syntax.
78267
78268 2001-08-12  Jim Meyering  <meyering@lucent.com>
78269
78270         * lib/gettimeofday.c: New file.
78271         * lib/gtod.h: New file.
78272         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78273
78274 2001-08-05  Jim Meyering  <meyering@lucent.com>
78275
78276         * m4/jm-macros.m4: Require autoconf-2.52.
78277
78278 2001-08-04  Jim Meyering  <meyering@lucent.com>
78279
78280         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78281         stmt, to get in sync with glibc.
78282
78283 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78284
78285         The following changes are from gettext 0.10.39 as maintained by
78286         Bruno Haible.
78287
78288         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78289         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78290         with inverted sense.  All uses changed.
78291
78292         * lib/mbswidth.c: Don't include <limits.h>.
78293         Include <stdlib.h> and <string.h> unconditionally.
78294         (iswcntrl, mbsinit, ISCNTRL): New macros.
78295         (mbsnwidth): Use K&R style function declarations.
78296         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78297         can optimize it when MB_CUR_MAX == 1.
78298         The width of control characters is zero, not 1.
78299
78300 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78301
78302         The following changes are from gettext 0.10.39 as maintained by
78303         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78304
78305         * m4/codeset.m4: Upgrade to serial AM1.
78306         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78307         all uses changed.  Quote first arg of AC_DEFUN.
78308         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78309
78310         * m4/iconv.m4: Upgrade to serial AM2.
78311         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78312         Add --with-libconv-prefix.
78313         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78314         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78315         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78316         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78317         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78318
78319         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78320         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78321         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78322         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78323         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78324         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78325         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78326         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78327         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78328
78329         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78330         string.h any more.
78331
78332         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78333         not the default value.
78334
78335         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78336         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78337         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78338         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78339         Also check for iswcntrl, used for wcwidth fallback.
78340         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78341         to Autoconf 2.13.
78342
78343 2001-08-03  Jim Meyering  <meyering@lucent.com>
78344
78345         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78346         as it was in the original.  Reported by Paul Eggert.
78347
78348 2001-07-16  Jim Meyering  <meyering@lucent.com>
78349
78350         * m4/gettimeofday.m4: New file.
78351         Prompted by a report from Bernhard Baehr.
78352
78353 2001-07-15  Jim Meyering  <meyering@lucent.com>
78354
78355         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78356         stuff. Now it's in ../Makefile.cfg.
78357
78358 2001-07-15  Jim Meyering  <meyering@lucent.com>
78359
78360         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78361         (BUILT_SOURCES): Add unlocked-io.h.
78362         (io_functions): Define.
78363         (unlocked-io.h): New rule.
78364         (DISTCLEANFILES): Add unlocked-io.h.
78365         (all-local): Depend on unlocked-io.h, to ensure it is created.
78366
78367         * lib/unlocked-io.hin: New file
78368
78369         * lib/regex.c: Update from glibc.
78370
78371 2001-07-05  Jim Meyering  <meyering@lucent.com>
78372
78373         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78374         recommendation.
78375         (libfetish_a_SOURCES): Put all .h files here instead.
78376         Remove a thus-exposed (better checks in automake) duplicate and
78377         two unnecessary .h files.
78378
78379 2001-07-04  Jim Meyering  <meyering@lucent.com>
78380
78381         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78382         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78383         distcheck failure.
78384
78385 2001-07-02  Jim Meyering  <meyering@lucent.com>
78386
78387         The following changes were prompted by suggestions from Bruno Haible.
78388
78389         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78390         is now generated.
78391         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78392         definition of EXTRA_DIST.
78393         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78394         ensure that the generated file is created/updated whenever the list
78395         of $(unlocked_functions) is changed.
78396         (jm-glibc-io.m4): New rule.
78397         (unlocked-io.h): New rule -- currently unused.
78398
78399 2001-06-24  Jim Meyering  <meyering@lucent.com>
78400
78401         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78402         unmatched right bracket, rather than kludging it with an extra,
78403         falsely-matching quote in a comment.  Patch by Akim Demaille.
78404
78405 2001-06-11  Jim Meyering  <meyering@lucent.com>
78406
78407         * lib/regex.c: Update from GNU libc.
78408
78409 2001-05-27  Jim Meyering  <meyering@lucent.com>
78410
78411         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78412         Check for ut_type in struct utmp.
78413
78414 2001-05-27  Jim Meyering  <meyering@lucent.com>
78415
78416         * lib/readutmp.h (UT_TYPE): Define.
78417
78418 2001-05-24  Jim Meyering  <meyering@lucent.com>
78419
78420         * lib/argmatch.c: Include "quote.h".
78421         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78422         quote function.  Reported by Göran Uddeborg.
78423
78424 2001-05-22  Jim Meyering  <meyering@lucent.com>
78425
78426         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78427         now that we use the package-supplied version unconditionally.
78428         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78429
78430 2001-05-21  Jim Meyering  <meyering@lucent.com>
78431
78432         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78433         shell syntax errors.
78434
78435 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78436
78437         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78438
78439 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78440
78441         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78442         Don't bother to check library strftime, since
78443         we'll be using our own my_strftime function anyway.
78444         Define my_strftime instead of strftime.
78445
78446 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78447
78448         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78449         which is not yet declared.
78450
78451 2001-05-15  Jim Meyering  <meyering@lucent.com>
78452
78453         * m4/regex.m4: Use proper quoting so brackets appear in the test
78454         program.
78455         Reported by, and with help from, Bruno Haible.
78456
78457 2001-05-13  Jim Meyering  <meyering@lucent.com>
78458
78459         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78460         undefined.
78461
78462 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78463
78464         dirname code cleanup.  base_name now behaves more compatibly
78465         with POSIX basename when given file names that have trailing
78466         slashes, and similarly for dir_name.  Add new primitives
78467         base_len and dir_len.  Put the directory-name-related decls
78468         into dirname.h.
78469
78470         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78471         * lib/backupfile.c (base_name): Likewise.
78472         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78473         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78474         * lib/makepath.c (strip_trailing_slashes): Likewise.
78475         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78476         ISSLASH): Likewise.
78477         * lib/rename.c (strip_trailing_slashes): Likewise.
78478         * lib/same.c (base_name): Likewise.
78479         * lib/stripslash.c (ISSLASH): Likewise.
78480
78481         * lib/addext.c: Include <dirname.h> after size_t is defined.
78482         * lib/backupfile.c: Likewise.
78483
78484         * lib/addext.c (addext): Use base_len to trim redundant
78485         trailing slashes instead of doing it ourselves.
78486         But do not trim the last slash if it is not redundant.
78487
78488         * lib/backupfile.c (find_backup_file_name,
78489         max_backup_version): Use base_len instead of rolling it ourselves.
78490         Handle the case of "" and (on DOS) "C:" correctly.
78491
78492         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78493         needed. Include <string.h>, <dirname.h>.
78494         (base_name): Allow file names ending in slashes, other than names
78495         that are all slashes.  In this case, return the basename followed
78496         by the slashes.  This is more general, and can be used in places
78497         where the original base_name purposely had an assertion failure.
78498         (base_len): New function.
78499
78500         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78501         Do not include <assert.h>; no longer needed.
78502         Include xalloc.h.
78503         (memrchr): Remove decl.
78504         (dir_name_r): Remove.
78505         (dir_len): Renamed from dirlen.  All callers changed.
78506         Rewrite in terms of base_name, for simplicity and consistency.
78507         (dir_name): Never return NULL.  All callers changed.
78508         Do not include <stdlib.h> in test program; no longer needed.
78509         return 0; is fine for test program.
78510
78511         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78512         New macros.
78513         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78514
78515         * lib/path-concat.c (path_concat): Use base_len to compute
78516         base length, not strlen; this means we cannot rely on memcpy
78517         to null-terminate.
78518
78519         * lib/same.c (STREQ): Remove.
78520         (same_name): Handle the case where the basename ends in trailing '/'.
78521
78522         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78523         a slash was stripped.  Do not strip the last slash after a
78524         file system prefix.
78525
78526 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78527
78528         * lib/Makefile.am (libfetish_a_SOURCES):
78529         Add strftime.c, since we now compile it on all hosts.
78530
78531         * lib/strftime.c (my_strftime):
78532         Define to nstrftime if emacs, but only if my_strftime is not defined.
78533         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78534         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78535         Add one more extra argument: a nanoseconds value.
78536         All uses changed.
78537         (ns): New macro.
78538         (my_strftime function): Add %N format.
78539         (emacs_strftimeu): Renamed from emacs_strftime,
78540         with extra ut argument.
78541
78542 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78543
78544         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78545
78546 2001-04-21  Jim Meyering  <meyering@lucent.com>
78547
78548         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78549         doesn't interfere.
78550
78551 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78552
78553         * m4/ftruncate.m4: Check for chsize.
78554         Link with ftruncate.o unconditionally if ftruncate is missing.
78555         This was required when cross-compiling to i586-mingw32msvc.
78556
78557 2001-04-08  Jim Meyering  <meyering@lucent.com>
78558
78559         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78560         recomputed; that's necessary when the offset spans a DST transition.
78561         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78562
78563 2001-04-02  Jim Meyering  <meyering@lucent.com>
78564
78565         * lib/regex.h, regex.c: Update from GNU libc.
78566
78567 2001-03-24  Jim Meyering  <meyering@lucent.com>
78568
78569         * m4/jm-macros.m4: Require autoconf-2.49d.
78570
78571 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78572
78573         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78574
78575 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78576
78577         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78578
78579 2001-03-17  Jim Meyering  <meyering@lucent.com>
78580
78581         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78582         now that the version in autoconf is equivalent.
78583         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78584
78585         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78586         Suggestion from Akim Demaille.
78587
78588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78589         (jm_PREREQ_TEMPNAME): New function.
78590
78591 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78592
78593         * lib/tempname.c (uint64_t): Define to uintmax_t if
78594         not defined, and if UINT64_MAX is not defined.
78595         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78596         Reported by John David Anglin.
78597
78598 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78599
78600         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78601         resolve alias if codeset is empty.
78602         * lib/config.charset (BeOS): Use wildcard syntax.
78603
78604 2001-03-13  Jim Meyering  <meyering@lucent.com>
78605
78606         * lib/path-concat.c (path_concat)
78607         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78608         concatenating e.g., `C:' and `foo'.
78609         From Bruno Haible.
78610
78611 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78612
78613         * lib/localcharset.c (locale_charset): Don't use
78614         setlocale(LC_CTYPE,NULL). Don't return NULL.
78615         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78616
78617 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78618
78619         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78620         support for DOS/DJGPP.
78621
78622 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78623
78624         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78625         lacks mkstemp.  Compile our own tempname.c if we compile our own
78626         mkstemp.c, as mkstemp relies on tempname.
78627
78628 2001-03-01  Jim Meyering  <meyering@lucent.com>
78629
78630         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78631         AH_VERBATIM really does output its argument verbatim.
78632
78633 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78634
78635         * lib/Makefile.am (libfetish_a_SOURCES):
78636         Add dup-safer.c, fopen-safer.c.
78637         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78638
78639         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78640         * lib/unistd-safer.h: New files.
78641
78642 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78643
78644         The mkstemp replacement is taken from glibc 2.2.2, with some
78645         portability fixes for use outside glibc, as follows:
78646
78647         * lib/tempname.c (struct_stat64): New macro.
78648         (direxists, __gen_tempname): Use it.
78649         This avoids a portability problem with Solaris 8.
78650
78651         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78652         (<stddef.h>, <stdint.h>, <string.h>):
78653         Include only if STDC_HEADERS || _LIBC.
78654         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78655         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78656         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78657         (__set_errno): Define this macro if <errno.h> doesn't.
78658         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78659         Define these macros if <stdio.h> doesn't.
78660         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78661         Define these macros if <sys/stat.h>
78662         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78663         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78664         __xstat64): Define if not _LIBC.
78665         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78666         (__gen_tempname): Invoke gettimeofday only if
78667         HAVE_GETTIMEOFDAY || _LIBC;
78668         otherwise, fall back on plain "time".
78669         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78670
78671         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78672
78673         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78674
78675 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78676
78677         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78678
78679 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78680
78681         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78682         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78683         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78684         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78685
78686 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78687
78688         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78689         Remove workaround macros for hosts that have mbrtowc but not
78690         mbstate_t, as we now insist on proper declarations for both
78691         before using mbrtowc.
78692
78693 2001-02-17  Jim Meyering  <meyering@lucent.com>
78694
78695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78696         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78697         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78698         UnixWare 7.1.1.
78699
78700         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78701         rather than AC_CACHE_VAL.
78702
78703 2001-02-17  Jim Meyering  <meyering@lucent.com>
78704
78705         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78706         around included file name.
78707
78708         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78709
78710         * lib/strftime.c: Update from GNU libc (the only changes were to
78711         comments).
78712
78713 2001-02-17  Jim Meyering  <meyering@lucent.com>
78714
78715         * lib/regex.c: Update from libc.
78716
78717 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78718
78719         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78720         clash.
78721
78722 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78723
78724         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78725         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78726         Reported by Mark Hounschell via Paul Eggert.
78727
78728 2001-02-07  Jim Meyering  <meyering@lucent.com>
78729
78730         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78731
78732 2001-02-05  Jim Meyering  <meyering@lucent.com>
78733
78734         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78735         it includes the patch required for `large file' support with at least
78736         HP-UX's 10.20 /bin/cc.
78737
78738 2001-02-03  Jim Meyering  <meyering@lucent.com>
78739
78740         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78741         AS_IF, now that it works once again (mysteriously).
78742         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78743
78744 2001-01-30  Jim Meyering  <meyering@lucent.com>
78745
78746         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78747         * m4/chown.m4: Rename conftestchown to conftest.chown.
78748         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78749         s/conftestdir2/conftest.d2/.
78750         * m4/utimes.m4: s/conftestdata/conftest.data/
78751         Inspired by Pavel Roskin's change in autoconf.
78752
78753 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78754
78755         * lib/config.charset: Update for FreeBSD 4.2.
78756
78757 2001-01-27  Jim Meyering  <meyering@lucent.com>
78758
78759         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78760         a use of AS_IF.
78761         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78762
78763 2001-01-26  Jim Meyering  <meyering@lucent.com>
78764
78765         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78766         quotearg.c includes it.
78767
78768 2001-01-26  Jim Meyering  <meyering@lucent.com>
78769
78770         * lib/quotearg.c: Include stddef.h.
78771         * lib/quote.c: Include stddef.h.
78772         Reported by Axel Kittenberger.
78773
78774         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78775         line in double quotes so that it evokes a better diagnostic.
78776         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78777         Reported by Axel Kittenberger.
78778
78779 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78780
78781         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78782         as if it was a `charset'.
78783
78784 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78785
78786         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78787         has const.
78788
78789 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78790
78791         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78792         to avoid a warning.  Add back 'const' to inptr.
78793
78794 2001-01-20  Jim Meyering  <meyering@lucent.com>
78795
78796         Be sure that headers are checked before used in code compiled
78797         for the type checks.
78798         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78799         In place of that, invoke jm_CHECK_ALL_TYPES.
78800         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78801         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78802         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78803         The check for ssize_t was mistakenly run before the test for unistd.h.
78804
78805         The configure-time check for stdbool.h was missing.
78806         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78807         (jm_PREREQ_HASH): New function.
78808
78809 2001-01-17  Jim Meyering  <meyering@lucent.com>
78810
78811         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78812         for autoconf-2.49c.
78813         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78814
78815 2001-01-16  Jim Meyering  <meyering@lucent.com>
78816
78817         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78818         From Bruno Haible.
78819
78820 2001-01-14  Jim Meyering  <meyering@lucent.com>
78821
78822         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78823         foo and bar.  Create conftestdir/ in the script, not in the C code.
78824         Remove directories in the script, not in the C code.
78825         Remove conftestdir{,2} before trying to create the directory.
78826         Make the entire configure script fail if the mkdir fails.
78827
78828 2001-01-14  Jim Meyering  <meyering@lucent.com>
78829
78830         * lib/rename.c: New file.  From Volker Borchert.
78831         Include stdlib.h, string.h or strings.h, and xalloc.h.
78832         Use strip_trailing_slashes rather than open-coding it.
78833
78834 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78835
78836         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78837
78838 2001-01-03  Jim Meyering  <meyering@lucent.com>
78839
78840         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78841         of local `inptr' to avoid warning with some system declarations of
78842         iconv.
78843
78844 2001-01-02  Volker Borchert  <bt@teknon.de>
78845
78846         * m4/rename.m4: New file.
78847         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78848
78849 2001-01-01  Jim Meyering  <meyering@lucent.com>
78850
78851         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78852         even on systems with utmpx.h.  It's necessary for the declaration of
78853         utmp's ut_user member.  Reported by Andreas Jaeger.
78854
78855         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78856         available. They are required for the declarations of getgrgid and
78857         getpwuid resp.
78858         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78859         Reported by Andreas Jaeger.
78860
78861 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78862
78863         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78864         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78865         so `make install' also works in VPATH builds.
78866
78867 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78868
78869         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78870         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78871         can be used in subdirectories.
78872
78873 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78874
78875         * lib/modechange.c: Do not assume that mode_t uses the
78876         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78877         the other-execute bit of FOO even if S_IXOTH != 1.
78878
78879         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78880         WOTH, XOTH, ALLM): New macros.
78881         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78882          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78883         Use them.
78884         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78885         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78886         (mode_compile):
78887         No need to use uintmax_t; unsigned long is long enough.
78888         Don't bother to get suffix since we don't use it.
78889
78890 2000-12-26  Jim Meyering  <meyering@lucent.com>
78891
78892         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78893         better with autoheader.
78894
78895 2000-12-24  Jim Meyering  <meyering@lucent.com>
78896
78897         * lib/hash.c (is_prime): Return explicit boolean values.
78898         (hash_get_first): Return NULL to appease Irix5.6's 89.
78899         Reported by Nelson Beebe.
78900
78901 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78902
78903         * lib/localcharset.c (locale_charset): Add support for Win32.
78904
78905 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78906
78907         * lib/physmem.h, lib/physmem.c: New files.
78908
78909         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78910         (noinst_HEADERS): Add physmem.h.
78911
78912         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78913         't' for compatibility with Solaris 8 sort.
78914
78915 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78916
78917         * lib/config.charset: Add support for BeOS.
78918
78919 2000-12-17  Jim Meyering  <meyering@lucent.com>
78920
78921         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78922         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78923
78924 2000-12-16  Jim Meyering  <meyering@lucent.com>
78925
78926         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78927         N and M) would have treated it like `chown N:N FILE'.
78928
78929         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78930
78931 2000-12-16  Jim Meyering  <meyering@lucent.com>
78932
78933         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78934         SHELLS_FILE to a file name that's useful on djgpp systems.
78935         Include stdlib.h.
78936         (ADDITIONAL_DEFAULT_SHELLS): Define.
78937         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78938         Based mostly on a patch from Prashant TR.
78939
78940 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78941
78942         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78943         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78944         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78945
78946 2000-12-08  Andreas Schwab  <schwab@suse.de>
78947
78948         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78949         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78950
78951 2000-12-07  Jim Meyering  <meyering@lucent.com>
78952
78953         * lib/stripslash.c (ISSLASH): Define.
78954         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78955         `/'.
78956         From Prashant TR.
78957
78958         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78959         (dir_name_r): Declare this function as static.
78960         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78961         manifest itself on a name containing a mix of slashes and
78962         backslashes.
78963         Make this function work with names starting with a DOS-style
78964         drive letter and colon prefix.
78965         (dir_name): Append `.' if necessary.
78966         Based mostly on patches from Prashant TR and Eli Zaretskii.
78967
78968         * lib/dirname.h (dir_name_r): Remove prototype.
78969
78970 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78971
78972         * m4/off_t-format.m4: Remove this file.
78973         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78974
78975 2000-12-06  Jim Meyering  <meyering@lucent.com>
78976
78977         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78978         replacement strtoull, we may well need the replacement strtoul, too.
78979         Check for declarations of strtoul and strtoull.
78980         Check for strtol.  Mainly as a cue to cause automake to include
78981         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78982         Check for limits.h -- strtol.c needs it.
78983
78984 2000-12-05  Jim Meyering  <meyering@lucent.com>
78985
78986         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78987
78988 2000-12-04  Jim Meyering  <meyering@lucent.com>
78989
78990         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78991         Also include memory.h, stdlib.h, unistd.h if appropriate.
78992         Reported by Andreas Jaeger (conflicting declaration of malloc).
78993
78994 2000-12-02  Jim Meyering  <meyering@lucent.com>
78995
78996         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78997         * m4/jm-macros.m4 (jm_MACROS): require it.
78998
78999 2000-12-02  Jim Meyering  <meyering@lucent.com>
79000
79001         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79002
79003 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79004
79005         * lib/memrchr.c: Include <config.h> before any system include file.
79006
79007 2000-11-30  Jim Meyering  <meyering@lucent.com>
79008
79009         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79010
79011 2000-11-30  Jim Meyering  <meyering@lucent.com>
79012
79013         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79014
79015 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79016
79017         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79018
79019 2000-11-26  Jim Meyering  <meyering@lucent.com>
79020
79021         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79022
79023 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79024
79025         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79026         size of (size_t) -1; it's not portable.
79027
79028 2000-11-17  Jim Meyering  <meyering@lucent.com>
79029
79030         * lib/strstr.c: Update from GNU libc.
79031
79032 2000-11-17  Akim Demaille  <akim@epita.fr>
79033
79034         * lib/obstack.h: Formatting changes.
79035         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79036         prevent type checking.
79037         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79038         cast the value to (void *): assigning a `foo *' to a `void *'
79039         variable is valid.
79040         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79041
79042 2000-11-16  Jim Meyering  <meyering@lucent.com>
79043
79044         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79045
79046 2000-11-11  Jim Meyering  <meyering@lucent.com>
79047
79048         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79049
79050 2000-11-10  Jim Meyering  <meyering@lucent.com>
79051
79052         * lib/obstack.h: Update from GNU libc.
79053         * lib/obstack.c: Likewise.
79054
79055 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79056
79057         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79058
79059 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79060
79061         * lib/getusershell.c (setusershell): Use rewind rather than
79062         fseek/fseeko, to avoid configuration hassles with fseeko.
79063         Don't bother opening SHELLS_FILE if shellstream is NULL;
79064         it's not necessary.
79065
79066 2000-11-05  Jim Meyering  <meyering@lucent.com>
79067
79068         * lib/makepath.h (make_dir): Declare.
79069         * lib/makepath.c (make_dir): Remove `static' attribute.
79070         Tweak a comment.
79071
79072 2000-11-04  Jim Meyering  <meyering@lucent.com>
79073
79074         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79075
79076 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79077
79078         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79079         last one in a bucket, advance to the next bucket.
79080
79081 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79082
79083         * lib/fnmatch.c: Do not comment out all the code if we are using
79084         the GNU C library, because in some cases we are replacing buggy
79085         code in the GNU C library itself.
79086
79087 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79088
79089         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79090         (regex_compile): Catch bogus \(\1\).
79091
79092 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79093
79094         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79095         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79096         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79097
79098 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79099
79100         * lib/error.h, getline.h, modechange.h:
79101         Remove "2000" from Copyright line, as the file hasn't been
79102         changed this year other than in the copyright notice.
79103
79104         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79105         was changed this year.
79106
79107 2000-10-29  Jim Meyering  <meyering@lucent.com>
79108
79109         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79110         renaming.
79111         * m4/ls-mntd-fs.m4: Likewise
79112
79113 2000-10-29  Jim Meyering  <meyering@lucent.com>
79114
79115         * lib/xstat.in: Fix grammar in comment.
79116
79117 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79118
79119         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79120         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79121         doesn't define __restrict_arr.
79122
79123 2000-10-28  Jim Meyering  <meyering@lucent.com>
79124
79125         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79126         (jm_PREREQ_MEMCHR): New function.
79127
79128 2000-10-28  Jim Meyering  <meyering@lucent.com>
79129
79130         * lib/memchr.c: Update from libc.
79131         Adjust for portability:
79132         [HAVE_STDLIB_H]: Include stdlib.h.
79133         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79134         Undef __memchr, too.
79135         [!weak_alias]: Define __memchr to memchr.
79136
79137         * lib/regex.c: Update from libc.
79138         * lib/regex.h: Likewise.
79139         * lib/getopt1.c: Likewise.
79140         * lib/memcmp.c: Likewise.
79141
79142         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79143         Avoid using fseek, when possible -- it's broken by design.
79144         Patch by Ulrich Drepper.
79145
79146 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79147
79148         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79149         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79150         Giving in to popular pressure to shut up the compiler with casts.
79151
79152 2000-10-26  Jim Meyering  <meyering@lucent.com>
79153
79154         * lib/strftime.c: Update from libc.
79155
79156 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79157
79158         * regex.c: More `unsigned char' -> `re_char' changes.
79159         Also change several `int' into `re_wchar_t'.
79160         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79161         (PUSH_FAILURE_POINTER): Don't cast any more.
79162         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79163         We want GCC to complain, since this piece of code makes
79164         re_match non-reentrant, which *should* be fixed.
79165         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79166         (EXTEND_BUFFER): Use RETALLOC.
79167         (SET_LIST_BIT): Don't cast.
79168         (re_wchar_t): New type.
79169         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79170         that those two functions will always properly return.
79171         (IMMEDIATE_QUIT_CHECK): Cast to void.
79172         (analyse_first): Use recursion rather than an explicit stack.
79173         (re_compile_fastmap): Can't fail anymore.
79174         (re_search_2): Don't check re_compile_fastmap for failure.
79175         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79176         Now also sets the new value (passed in a new argument).
79177         (re_match_2_internal): Use it.
79178         Also, use a new var `reg' of type size_t when looping through regs
79179         rather than reuse the inappropriate `mcnt'.
79180
79181 2000-10-25  Jim Meyering  <meyering@lucent.com>
79182
79183         * lib/obstack.c: Update from libc.
79184
79185 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79186
79187         * regex.c (regex_compile): Change the way of handling a range from
79188         a char less than 256 to a char not less than 256.
79189
79190 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79191
79192         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79193         NT-Emacs only.
79194         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79195         so that re_search functions only quit when callers expect them to.
79196
79197 2000-10-23  Jim Meyering  <meyering@lucent.com>
79198
79199         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79200         wrong.  That set_locale call must not have any side effects.
79201         From Paul Eggert.
79202
79203 2000-10-22  Jim Meyering  <meyering@lucent.com>
79204
79205         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79206         [CYCLIC]: Remove now-unused definition.
79207
79208         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79209         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79210         Suggestion from Ulrich Drepper.
79211
79212 2000-10-21  Jim Meyering  <meyering@lucent.com>
79213
79214         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79215         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79216         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79217
79218 2000-10-21  Jim Meyering  <meyering@lucent.com>
79219
79220         * lib/dirname.c (memrchr): Declare if necessary.
79221         (dir_name): Remove the restriction that there be no
79222         trailing slashes.  Now, this code skips past them, effectively
79223         ignoring them.
79224         [TEST_DIRNAME] (main): New unit tests.
79225
79226         * lib/memrchr.c: New file from GNU libc.
79227         Undef __memrchr, too.
79228         [!weak_alias]: Define __memrchr to memrchr.
79229         Guard weak_alias use with `#ifdef weak_alias'.
79230
79231 2000-10-21  Jim Meyering  <meyering@lucent.com>
79232
79233         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79234         (dir_name): Use dir_name_r.
79235         * lib/dirname.h (dir_name_r): Declare it.
79236
79237 2000-10-17  Jim Meyering  <meyering@lucent.com>
79238
79239         * lib/quote.h (PARAMS): Define and use.
79240         Reported by Akim Demaille.
79241
79242         * lib/getopt.c: Update from libc.
79243
79244 2000-10-16  Jim Meyering  <meyering@lucent.com>
79245
79246         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79247         setlocale.
79248         From Jan Fedak.
79249
79250 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79251
79252         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79253
79254 2000-09-25  Jim Meyering  <meyering@lucent.com>
79255
79256         * lib/md5.h (rol): Define (from GnuPG).
79257
79258         * lib/sha.c: Give credit (GnuPG) where due.
79259         (M): Use rol rather than open-coding it.
79260         Add a FIXME comment.
79261
79262 2000-09-21  Jim Meyering  <meyering@lucent.com>
79263
79264         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79265         Reported by Michael Stone.
79266
79267 2000-09-20  Jim Meyering  <meyering@lucent.com>
79268
79269         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79270         (noinst_HEADERS): Add sha.h.
79271         Based on code from Scott G. Miller and from GnuPG.
79272
79273 2000-09-18  Jim Meyering  <meyering@lucent.com>
79274
79275         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79276         LIBS. Otherwise, everyone ends up linking with -lelf for some
79277         configurations.
79278         Reported by Mike Stone.
79279
79280 2000-09-15  Jim Meyering  <meyering@lucent.com>
79281
79282         * lib/regex.c: Update from libc.
79283
79284 2000-09-10  Jim Meyering  <meyering@lucent.com>
79285
79286         * lib/getopt.c (_getopt_internal): Update from glibc.
79287
79288 2000-09-09  Jim Meyering  <meyering@lucent.com>
79289
79290         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79291         think it should be used as a general replacement for isascii.
79292         * lib/fnmatch.c: Likewise.
79293         * lib/mbswidth.c: Likewise
79294         * lib/regex.c: Likewise.
79295
79296         Don't use atoi.
79297         * lib/userspec.c: Include sys/param.h and limits.h.
79298         Include xstrtol.h.
79299         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79300         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79301         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79302         UID, GID.  Check range.
79303
79304 2000-09-06  Jim Meyering  <meyering@lucent.com>
79305
79306         * lib/getopt.c (_getopt_internal): Update from glibc.
79307
79308 2000-08-30  Jim Meyering  <meyering@lucent.com>
79309
79310         * lib/strftime.c: Merge in changes from GNU libc.
79311
79312 2000-08-26  Jim Meyering  <meyering@lucent.com>
79313
79314         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79315         * m4/fpending.m4: New file.
79316
79317 2000-08-26  Jim Meyering  <meyering@lucent.com>
79318
79319         * lib/closeout.c: Include "__fpending.h".
79320         (close_stdout_status): Return right away if there's nothing to flush.
79321
79322         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79323         * lib/__fpending.c: New file.
79324         * lib/__fpending.h: New file.
79325
79326 2000-08-20  Jim Meyering  <meyering@lucent.com>
79327
79328         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79329         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79330         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79331
79332 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79333
79334         Improve fileutils installation on systems where running
79335         programs (like install) can't be unlinked.
79336         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79337         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79338
79339 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79340
79341         Standardize on "memory exhausted" instead of "Memory exhausted"
79342         or "virtual memory exhausted".
79343         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79344         "virtual memory exhausted".
79345         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79346         our own message.
79347         * lib/userspec.c (parse_user_spec): Likewise.
79348         * lib/bumpalloc.h: comment fix
79349         * lib/same.c, userspec.c: Include xalloc.h.
79350
79351         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79352         not char *const and pointing to a constant array.
79353         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79354         (xrealloc): Comment fix.
79355
79356         * lib/userspec.c (parse_user_spec):
79357         Don't translate a message until just before returning,
79358         to avoid unnecessary translation.
79359
79360 2000-08-07  Jim Meyering  <meyering@lucent.com>
79361
79362         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79363         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79364         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79365         getgroups.c, gethostname.c, getopt.h, group-member.c,
79366         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79367         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79368         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79369         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79370         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79371         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79372         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79373         yesno.c: Back out Copyright date changes for each file with no change
79374         this year.  This eases coordination with other programs using the same
79375         source code modules.  From Paul Eggert.
79376
79377 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79378
79379         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79380         not char, for compatibility with glibc 2.1.3 strftime.c.
79381
79382 2000-08-03  Greg McGary  <greg@mcgary.org>
79383
79384         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79385         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79386         (EXTEND_BUFFER): Use them.
79387
79388 2000-08-01  Jim Meyering  <meyering@lucent.com>
79389
79390         * lib/dirname.c (ISSLASH): Define.
79391         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79392         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79393         both `\' and `/' may be use as path separators.
79394         Based on a patch from Prashant TR.
79395
79396 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79397
79398         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79399         slot vector a constant, since it might get modified.
79400
79401 2000-07-31  Jim Meyering  <meyering@lucent.com>
79402
79403         * lib/xmalloc.c: Use `virtual memory exhausted', not
79404         `Memory exhausted'.
79405         * lib/obstack.c (print_and_abort): Likewise.
79406
79407 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79408
79409         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79410         buffer, so that the caller can always quote one small
79411         component of a "memory exhausted" message in slot 0.
79412         From a suggestion by Jim Meyering.
79413
79414 2000-07-30  Jim Meyering  <meyering@lucent.com>
79415
79416         * lib/makepath.c (make_path): Quote the other instance, too.
79417
79418         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79419         (STATIC_BUF_SIZE): Define.
79420         (quotearg_n_options): Use only statically allocated storage when
79421         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79422         than STATIC_BUF_SIZE.
79423
79424 2000-07-29  Jim Meyering  <meyering@lucent.com>
79425
79426         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79427         * lib/dirname.c (dir_name): Likewise.
79428
79429         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79430         `/'.
79431
79432         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79433         (dir_name): Assert that there are no trailing slashes.
79434
79435 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79436
79437         * lib/mbswidth.h (mbswidth): Add a flags argument.
79438         (mbswidth): New declaration.
79439         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79440         * lib/mbswidth.c (mbswidth): Add a flags argument.
79441         (mbsnwidth): New function.
79442
79443 2000-07-24  Jim Meyering  <meyering@lucent.com>
79444
79445         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79446
79447 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79448
79449         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79450
79451 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79452
79453         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79454         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79455         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79456         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79457         invoke multibyte primitives.
79458
79459 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79460
79461         * lib/quotearg.c:
79462         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79463         so that mbstate_t is always defined.
79464
79465         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79466         be 1 in at least one GCC installation, and this configuration
79467         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79468         performance on hosts that have mbrtowc but have only unibyte
79469         locales, but I assume these hosts are rare.
79470
79471 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79472
79473         * lib/mbswidth.c (_XOPEN_SOURCE):
79474         Don't define; this causes problems on Solaris 7.
79475         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79476
79477 2000-07-23  Jim Meyering  <meyering@lucent.com>
79478
79479         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79480         too: getgrgid, getpwuid, getuid.
79481
79482 2000-07-23  Jim Meyering  <meyering@lucent.com>
79483
79484         * lib/basename.c (base_name): Add an assertion.
79485
79486 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79487
79488         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79489         shadow its mbsinit function.
79490
79491 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79492
79493         * lib/mbswidth.h: New file.
79494         * lib/mbswidth.c: New file.
79495         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79496         (noinst_HEADERS): Add mbswidth.h.
79497
79498 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79499
79500         * lib/config.charset: Add support for FreeBSD. Improve support for
79501         HP-UX and IRIX 6.
79502
79503 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79504
79505         * m4/mbswidth.m4: New file.
79506         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79507
79508 2000-07-15  Jim Meyering  <meyering@lucent.com>
79509
79510         * lib/makepath.c: Include quote.h.
79511         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79512         corresponding argument in a `quote (...)' call.
79513         Give better diagnostics.
79514
79515         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79516         (noinst_HEADERS): Add quote.h.
79517
79518         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79519         from tar's src/misc.c.
79520         * lib/quote.h: New file.  Prototypes for same.
79521
79522 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79523
79524         From a suggestion by Bruno Haible.
79525         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79526         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79527         to decide whether to define the BeOS workaround macro;
79528         this adjusts to the change to AC_MBSTATE_T.
79529
79530 2000-07-14  Jim Meyering  <meyering@lucent.com>
79531
79532         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79533         jm_AC_TYPE_UINTMAX_T.
79534
79535 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79536
79537         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79538
79539         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79540         quotearg_buffer_restyled): Add support for
79541         clocale_quoting_style.  Undo previous change to
79542         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79543         and "{RIGHT QUOTATION MARK}" msgids.
79544
79545 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79546
79547         From a suggestion by Bruno Haible.
79548         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79549         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79550         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79551         and mbstate_t, to a single-part test that simply defines mbstate_t.
79552         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79553         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79554
79555 2000-07-10  Jim Meyering  <meyering@lucent.com>
79556
79557         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79558
79559         * m4/gnu-source.m4: Output to confdefs.h directly.
79560         Suggestion from Akim Demaille.
79561
79562 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79563
79564         The old behavior of quoting `like this' doesn't look good with
79565         newer, ISO-style fonts.  See:
79566         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79567
79568         Instead, quote "like this" by default.  Let the translator
79569         tailor the locale-specific quoting behavior by providing
79570         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79571
79572         * lib/quotearg.c (N_): New macro.
79573         (gettext_default): New function.
79574         (quotearg_buffer_restyled): Use
79575         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79576         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79577
79578 2000-07-09  Jim Meyering  <meyering@lucent.com>
79579
79580         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79581         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79582
79583         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79584         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79585
79586 2000-07-09  Jim Meyering  <meyering@lucent.com>
79587
79588         * lib/Most files: Update copyright dates to include 2000.
79589
79590 2000-07-08  Jim Meyering  <meyering@lucent.com>
79591
79592         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79593         if not defined.
79594         (xgethostname): Remove now-unnecessary #ifdef.
79595         Move declaration of `err' into loop where it's used.
79596
79597 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79598         and Bruno Haible  <haible@clisp.cons.org>
79599
79600         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79601         only if the test for an object-type mbstate_t fails.  This
79602         prevents us from mistakenly reporting that mbstate_t is a
79603         system object type after we "#define mbstate_t int" to work
79604         around its lack.
79605
79606 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79607         and Bruno Haible  <haible@clisp.cons.org>
79608
79609         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79610
79611 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79612
79613         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79614         to strerror_r.
79615         Include <ctype.h> for use of isalpha.
79616
79617 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79618
79619         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79620         by allocating a larger buffer. Test the gethostname return value for
79621         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79622         returns an error and ENAMETOOLONG isn't defined.
79623
79624 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79625
79626         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79627         dimension.
79628
79629 2000-07-04  Jim Meyering  <meyering@lucent.com>
79630
79631         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79632         of the deprecated AC_CHECKING.
79633
79634 2000-07-04  Jim Meyering  <meyering@lucent.com>
79635
79636         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79637         Reported by Bruno Haible.
79638
79639 2000-07-04  Jim Meyering  <meyering@lucent.com>
79640
79641         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79642         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79643         lacks mbrtowc.
79644
79645 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79646
79647         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79648         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79649
79650 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79651         and Bruno Haible  <haible@clisp.cons.org>
79652
79653         * lib/quotearg.c (mbrtowc):
79654         Assign to *pwc, and return 1 only if result is nonzero.
79655         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79656
79657 2000-07-03  Jim Meyering  <meyering@lucent.com>
79658
79659         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79660
79661 2000-07-03  Jim Meyering  <meyering@lucent.com>
79662
79663         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79664         This is necessary to get a definition of e.g., UTMP_FILE on
79665         HP-UX 10.20.
79666         From Bob Proulx.
79667
79668 2000-07-02  Jim Meyering  <meyering@lucent.com>
79669
79670         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79671
79672         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79673         AC_LIBOBJ(function_name).
79674         * m4/chown.m4: Likewise.
79675         * m4/fnmatch.m4: Likewise.
79676         * m4/ftruncate.m4: Likewise.
79677         * m4/getgroups.m4: Likewise.
79678         * m4/getline.m4: Likewise.
79679         * m4/group-member.m4: Likewise.
79680         * m4/jm-macros.m4: Likewise.
79681         * m4/lstat.m4: Likewise.
79682         * m4/malloc.m4: Likewise.
79683         * m4/memcmp.m4: Likewise.
79684         * m4/nanosleep.m4: Likewise.
79685         * m4/putenv.m4: Likewise.
79686         * m4/realloc.m4: Likewise.
79687         * m4/regex.m4: Likewise.
79688         * m4/stat.m4: Likewise.
79689         * m4/strftime.m4: Likewise.
79690
79691 2000-07-02  Jim Meyering  <meyering@lucent.com>
79692
79693         * lib/quotearg.c (mbstate_t): Don't define here.
79694
79695 2000-07-02  Jim Meyering  <meyering@lucent.com>
79696
79697         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79698
79699 2000-07-01  Jim Meyering  <meyering@lucent.com>
79700
79701         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79702
79703 2000-07-01  Jim Meyering  <meyering@lucent.com>
79704
79705         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79706         problem.
79707
79708 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79709
79710         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79711         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79712
79713 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79714
79715         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79716         per change in ../m4/ls-mntd-fs.m4.
79717         (read_filesystem_list): Ignore symbolic links.
79718
79719 2000-06-29  Jim Meyering  <meyering@lucent.com>
79720
79721         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79722         for declaration of strcmp.
79723
79724         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79725
79726         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79727         Avoid warning by casting result to `char *' to remove `const'.
79728
79729 2000-06-28  Jim Meyering  <meyering@lucent.com>
79730
79731         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79732         included by quotearg.c, for which we perform this test.  From
79733         Bruno Haible.
79734
79735 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79736
79737         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79738         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79739         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79740
79741 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79742
79743         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79744
79745 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79746
79747         savedir now sets errno on failure and invokes xmalloc to get memory.
79748         Fix a couple of other minor bugs while we're at it.
79749
79750         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79751         (NAMLEN): Remove macro.
79752         (malloc, realloc): Remove decls.
79753         (stpcpy): Likewise.
79754         ("xalloc.h"): Include.
79755         (NAME_SIZE_DEFAULT): New macro.
79756         (savedir): Use xmalloc / xrealloc to allocate memory.
79757         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79758         Skip "" directory entries.
79759         Use strlen to calculate directory entry length, since the old method
79760         is rarely used these days and isn't worth supporting.
79761         Don't use a pointer after freeing it.
79762         Check for integer overflow when calculating allocation size.
79763         Use memcpy to copy entries, instead of stpcpy.
79764         Set errno properly when returning NULL.
79765         Check for readdir error.
79766
79767 2000-06-26  Jim Meyering  <meyering@lucent.com>
79768
79769         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79770
79771 2000-06-25  Jim Meyering  <meyering@lucent.com>
79772
79773         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79774         Linux header bug when _XOPEN_SOURCE is defined to 500.
79775
79776 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79777
79778         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79779         deficiency.
79780
79781 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79782
79783         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79784         Include xalloc.h.
79785         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79786
79787 2000-06-24  Jim Meyering  <meyering@lucent.com>
79788
79789         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79790         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79791         for which strerror does return char*, but which lacks a conveniently
79792         accessible declaration of the function.  If the compile-test says
79793         strerror_r doesn't work, then resort to a `run'-test that works on
79794         BeOS and segfaults on DEC Unix.
79795
79796 2000-06-24  Jim Meyering  <meyering@lucent.com>
79797
79798         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79799
79800 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79801
79802         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79803         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79804
79805 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79806
79807         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79808         (mbrtowc, mbstate_t): Define substitutes if
79809         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79810         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79811         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79812
79813 2000-06-23  Jim Meyering  <meyering@lucent.com>
79814
79815         * m4/afs.m4: Add missing AC_MSG_RESULT.
79816         Reported by Bruno Haible.
79817
79818         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79819         Suggestion from Bruno Haible.
79820
79821 2000-06-23  Jim Meyering  <meyering@lucent.com>
79822
79823         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79824
79825 2000-06-21  Jim Meyering  <meyering@lucent.com>
79826
79827         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79828
79829 2000-06-21  Jim Meyering  <meyering@lucent.com>
79830
79831         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79832         (noinst_HEADERS): Add getstr.h.
79833
79834         * lib/getline.c (getstr): Move into a separate file.
79835         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79836         the following changes: new parameter, delim2; both delim[12]
79837         parameters have type `int', not `char'.  The latter would lose
79838         with 8-bit delimiters.
79839         * lib/getstr.h: New file.
79840
79841 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79842
79843         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79844         than 1024, return a memory chunk of least possible size, instead
79845         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79846         Use free/xmalloc instead of xrealloc to avoid copying for very long
79847         paths.
79848
79849 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79850
79851         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79852         the empty string.
79853
79854 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79855
79856         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79857         address, not strdup.  Include <stdlib.h> and don't declare free().
79858
79859 2000-06-19  Jim Meyering  <meyering@lucent.com>
79860
79861         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79862
79863 2000-06-18  Jim Meyering  <meyering@lucent.com>
79864
79865         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79866
79867         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79868         `checking whether...' message to be consistent with that of the
79869         lstat test.
79870
79871 2000-06-18  Jim Meyering  <meyering@lucent.com>
79872
79873         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79874         Besides, these days every porting target provides a mkdir function.
79875
79876         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79877         needed. (this snippet comes from src/system.h).
79878
79879 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79880
79881         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79882
79883 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79884
79885         * lib/human.c (adjust_value): New function.
79886         (human_readable_inexact): Apply rounding style even when
79887         printing approximate values.
79888
79889 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79890
79891         * lib/human.c (human_readable_inexact): Allow an input block
79892         size that is not a multiple of the output block size, and vice versa.
79893         Reported by Piergiorgio Sartor.
79894
79895 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79896
79897         * lib/getdate.y (get_date): Apply relative times after time
79898         zone indicator, not before.  Reported by Todd A. Jacobs.
79899
79900 2000-06-13  Jim Meyering  <meyering@lucent.com>
79901
79902         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79903
79904         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79905
79906 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79907
79908         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79909
79910 2000-06-12  Jim Meyering  <meyering@lucent.com>
79911
79912         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79913         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79914         optional argument.
79915         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79916         the optional argument, `lib'.
79917
79918 2000-06-08  Jim Meyering  <meyering@lucent.com>
79919
79920         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79921
79922 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79923
79924         Rewrite largefile configuration so that we don't need to run
79925         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79926         AC_CANONICAL_HOST in configure.in -- jmm]
79927
79928         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79929         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79930         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79931         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79932         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79933         All uses changed.
79934         Instead of inspecting the output of getconf, try to compile the
79935         test program without and with the macro definition.
79936         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79937         for getconf.  Instead, check for the needed flags by compiling
79938         test programs.
79939
79940 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79941
79942         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79943
79944 2000-06-04  Jim Meyering  <meyering@lucent.com>
79945
79946         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79947         SunOS 4.1.4 for which gid_t is an unsigned type.
79948
79949 2000-06-03  Jim Meyering  <meyering@lucent.com>
79950
79951         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79952         now that autoconf requires that.
79953
79954         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79955         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79956         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79957
79958 2000-06-03  Jim Meyering  <meyering@lucent.com>
79959
79960         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79961
79962 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79963
79964         * m4/glibc21.m4: New file.
79965         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79966
79967 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79968
79969         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79970         newer, don't install charset.alias.
79971         * lib/config.charset: Change the Linux/glibc rules so they become empty
79972         on glibc-2.1 or newer.
79973
79974 2000-06-02  Jim Meyering  <meyering@lucent.com>
79975
79976         * lib/mountlist.c: Back out last change.  Instead, do this...
79977         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79978         me_dummy member using the same `ignore'-testing code.
79979         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79980         fs_type strings.
79981         From Mark D. Roth.
79982
79983 2000-05-29  Jim Meyering  <meyering@lucent.com>
79984
79985         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79986         mounts with the `ignore' attribute.  Based on a patch from
79987         Mark D. Roth.
79988
79989 2000-05-28  Jim Meyering  <meyering@lucent.com>
79990
79991         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79992         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79993         * m4/stat.m4: Likewise.
79994         * m4/lstat.m4: Likewise.
79995         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79996
79997         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79998         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79999
80000 2000-05-26  Jim Meyering  <meyering@lucent.com>
80001
80002         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80003
80004 2000-05-24  Jim Meyering  <meyering@lucent.com>
80005
80006         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80007         autoconf requires that.
80008         * m4/lib-check.m4: Likewise.
80009         * m4/jm-macros.m4: Likewise.
80010         * m4/strftime.m4: Likewise.
80011
80012         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80013         AC_CHECK_DECLS, now that autoconf requires that.
80014
80015 2000-05-22  Jim Meyering  <meyering@lucent.com>
80016
80017         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80018         * m4/lstat.m4: Likewise.
80019
80020 2000-05-22  Jim Meyering  <meyering@lucent.com>
80021
80022         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80023
80024 2000-05-20  Jim Meyering  <meyering@lucent.com>
80025
80026         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80027         (jm_PREREQ): Use it.
80028
80029 2000-05-18  Jim Meyering  <meyering@lucent.com>
80030
80031         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80032         back, too, since it may have been modified by allocate_entry.
80033         (hash_delete): Rewrite to use neither the assignment operator
80034         nor the comma operator in an if-expression.
80035
80036 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80037
80038         * lib/closeout.c:
80039         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80040         Remove; no longer needed.
80041         "quotearg.h": Add include.
80042         (file_name): Do not bother to explicitly initialize to NULL; it's less
80043         efficient on some hosts.
80044         (close_stdout_status): Remove test as to whether stdout was already
80045         closed; it breaks for the case "echo x | sort >&-".
80046         Quote file name colons.
80047         Do not assume that _("write error") lacks format strings.
80048
80049 2000-05-15  Jim Meyering  <meyering@lucent.com>
80050
80051         * lib/version-etc.c (version_etc_copyright): Update the copyright
80052         string used in all --version output.
80053
80054 2000-05-14  Jim Meyering  <meyering@lucent.com>
80055
80056         * lib/closeout.c (close_stdout_set_file_name): New function.
80057         (close_stdout_status): Use new file-scoped global.
80058         Return right away if fstat says the stdout file descriptor is invalid.
80059         * lib/closeout.h (close_stdout_set_file_name): Declare.
80060
80061 2000-05-10  Jim Meyering  <meyering@lucent.com>
80062
80063         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80064         (close_stdout_set_status): New function.
80065         * lib/closeout.h (close_stdout_set_status): Declare.
80066
80067 2000-05-09  Jim Meyering  <meyering@lucent.com>
80068
80069         * m4/gettext.m4: Rename this...
80070         * m4/libintl.m4: ...to this.
80071
80072 2000-05-08  Jim Meyering  <meyering@lucent.com>
80073
80074         * lib/long-options.c: Don't include closeout.h.
80075         (parse_long_options): Don't call close_stdout for --version.
80076
80077 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80078
80079         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80080         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80081         2.1.3 bug.  This avoids a clash when files like regex.c define
80082         _GNU_SOURCE.
80083
80084 2000-05-06  Jim Meyering  <meyering@lucent.com>
80085
80086         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80087         (AC_REPLACE_FUNCS): Add strnlen.
80088
80089         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80090         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80091
80092         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80093         AC_SEARCH_LIBS call for nanosleep.
80094         (LIB_NANOSLEEP): Set and AC_SUBST.
80095
80096 2000-05-06  Jim Meyering  <meyering@lucent.com>
80097
80098         * lib/strnlen.c: Undefine __strnlen and strnlen.
80099         [!weak_alias]: Define __strnlen to strnlen.
80100
80101         * lib/atexit.c: New file, from libiberty.
80102
80103 2000-05-06  Jim Meyering  <meyering@lucent.com>
80104
80105         * lib/closeout.c (close_stdout_status): Also check for errors on the
80106         stderr stream.
80107
80108 2000-05-05  Jim Meyering  <meyering@lucent.com>
80109
80110         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80111         AC_SEARCH_LIBS call for clock_gettime.
80112         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80113
80114         * m4/search-libs.m4: Update from autoconf.
80115
80116         su doesn't work on Solaris 2.6.
80117         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80118         <shadow.h>.  Reported by Dragos Harabor.
80119
80120 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80121
80122         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80123         memcpy instead of xmalloc, xrealloc, path_concat.
80124         (locale_charset): Treat empty environment variables as absent.
80125         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80126
80127 2000-05-04  Jim Meyering  <meyering@lucent.com>
80128
80129         * lib/getopt.c: Update from glibc.
80130         * lib/obstack.c: Likewise.
80131         * lib/obstack.h: Likewise.
80132         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80133         file
80134
80135         * lib/regex.h: Likewise.
80136         * lib/strndup.c: Likewise.
80137         * lib/strnlen.c: New file, from glibc.
80138
80139 2000-05-03  Jim Meyering  <meyering@lucent.com>
80140
80141         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80142
80143 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80144
80145         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80146         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80147         compile-time test, rather than inspecting host and OS, to
80148         decide whether to define _LARGEFILE_SOURCE.
80149
80150 2000-05-01  Jim Meyering  <meyering@lucent.com>
80151
80152         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80153
80154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80155         Based on a patch from Bruno Haible.
80156
80157 2000-05-01  Jim Meyering  <meyering@lucent.com>
80158
80159         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80160
80161 2000-04-29  Jim Meyering  <meyering@lucent.com>
80162
80163         * lib/path-concat.c: Declare strdup only if it's not defined.
80164         * lib/canon-host.c: Likewise.
80165
80166 2000-04-28  Jim Meyering  <meyering@lucent.com>
80167
80168         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80169         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80170         is included first, then limits.h is included by locale.h by libintl.h.
80171         From John David Anglin.
80172
80173 2000-04-25  Jim Meyering  <meyering@lucent.com>
80174
80175         * lib/makepath.c (S_IRWXUGO): Define.
80176         (make_path): Always perform explicit chmod if MODE specifies any
80177         of the `special' permission bits.  Prompted by a bug report against
80178         install from Mate Wierdl and Joost van Baal.
80179
80180 2000-04-18  Jim Meyering  <meyering@lucent.com>
80181
80182         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80183         (jm_PREREQ): Use it.
80184
80185 2000-04-18  Jim Meyering  <meyering@lucent.com>
80186
80187         * lib/README: New file.
80188
80189         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80190         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80191
80192 2000-04-17  Jim Meyering  <meyering@lucent.com>
80193
80194         Get it right :-)
80195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80196         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80197         Suggestion from Akim Demaille.
80198
80199 2000-04-17  Jim Meyering  <meyering@lucent.com>
80200
80201         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80202         the definition of it to rpl_strftime also defined-away the system's
80203         declaration.
80204
80205 2000-04-15  Jim Meyering  <meyering@lucent.com>
80206
80207         Use `C' to denote so-called `contiguous' files, the same way
80208         that tar does.
80209         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80210         (ftypelet): Use S_ISCTG.
80211         From Michael Deutschmann.
80212
80213 2000-04-14  Jim Meyering  <meyering@lucent.com>
80214
80215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80216         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80217         clobbered.
80218
80219 2000-04-14  Jim Meyering  <meyering@lucent.com>
80220
80221         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80222
80223 2000-04-13  Jim Meyering  <meyering@lucent.com>
80224
80225         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80226         AH_VERBATIM to insert required #ifndef into config.h.in.
80227         Suggestion from Akim Demaille.
80228
80229 2000-04-12  Jim Meyering  <meyering@lucent.com>
80230
80231         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80232         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80233         Christian Krackowizer.
80234
80235         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80236         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80237         (AC_SYS_LARGEFILE): Require.
80238         (AM_C_PROTOTYPES): Require.
80239
80240 2000-04-08  Jim Meyering  <meyering@lucent.com>
80241
80242         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80243         names don't conflict.  Reported by Eli Zaretskii.
80244
80245 2000-04-07  Jim Meyering  <meyering@lucent.com>
80246
80247         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80248         sys/types.h, to work around system header problems on AIX 3.2.5.
80249         From Bruno Haible.
80250
80251 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80252
80253         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80254         bug.  Deal with the different error behavior of Irix iconv.
80255
80256 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80257
80258         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80259         IRIX if the installer said otherwise.
80260
80261 2000-04-05  Jim Meyering  <meyering@lucent.com>
80262
80263         Portability tweaks required for ultrix4.3.
80264         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80265         (jm_CHECK_DECLS): Add getutent to the list of functions.
80266         (_jm_DECL_HEADERS): Add utmpx.h.
80267         From John David Anglin.
80268
80269         * m4/strftime.m4: Back out the 2000-04-02 change.
80270         Instead of that change, simply undefine putenv in the test program.
80271
80272 2000-04-05  Jim Meyering  <meyering@lucent.com>
80273
80274         Portability tweaks required for ultrix4.3.
80275         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80276         getutent.
80277         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80278         * lib/canon-host.c: Declare strdup.
80279         * lib/path-concat.c: Likewise.
80280         From John David Anglin.
80281
80282 2000-04-04  Jim Meyering  <meyering@lucent.com>
80283
80284         Be more DOS 8.3-friendly.
80285         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80286         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80287         * lib/Makefile.am: Reflect renaming.
80288         Reported by Eli Zaretskii.
80289
80290         Use a temporary file name that won't clash with `charset.alias'
80291         in the DOS 8.3 name space.
80292         * lib/Makefile.am (charset_tmp): Define.
80293         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80294         (uninstall-local): Likewise.
80295         Reported by Eli Zaretskii.
80296
80297 2000-04-03  Jim Meyering  <meyering@lucent.com>
80298
80299         * m4/gettext.m4: Fix typo in comment.
80300
80301         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80302         textutils/configure.in).  Suggestion from Paul Eggert.
80303         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80304
80305 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80306
80307         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80308         variable in the shell rather than using putenv, which isn't
80309         portable.  This avoids the configure-time inter-test dependency
80310         on the potentially-renamed putenv function.
80311
80312 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80313
80314         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80315         before checking struct stat.st_blksize, so that
80316         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80317
80318 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80319
80320         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80321         since strftime.c uses HAVE_STRFTIME to decide whether to use
80322         the underlying strftime.
80323
80324 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80325
80326         * lib/time/strftime.c (my_strftime): Make sure we call the system
80327         strftime, not ourselves, when invoking the underlying strftime.
80328
80329 2000-03-24  Jim Meyering  <meyering@lucent.com>
80330
80331         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80332         (charset_alias): Define.
80333         (install-exec-local): Factor out common code.
80334         (uninstall-local): Split lines longer than 80.
80335         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80336         (SUFFIXES): Define.
80337         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80338         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80339
80340 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80341
80342         * lib/config.charset: Output a line containing "Packages using this
80343         file".
80344         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80345         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80346         ref-del.sed): New rules.
80347
80348 2000-03-17  Jim Meyering  <meyering@lucent.com>
80349
80350         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80351         Otherwise, include <strings.h>
80352
80353 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80354
80355         * lib/unicodeio.c (utf8_wctomb): New function.
80356         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80357         format instead of in UCS-4 with platform dependent endianness.
80358
80359 2000-03-10  Jim Meyering  <meyering@lucent.com>
80360
80361         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80362         From Marco Franzen.
80363
80364 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80365
80366         * lib/savedir.c (savedir): Work even if directory size is
80367         negative; this can happen with some screwy NFS configurations.
80368
80369 2000-03-06  Jim Meyering  <meyering@lucent.com>
80370
80371         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80372         if it's NULL (because we ran out of memory).  From Bruno Haible.
80373
80374 2000-03-05  Jim Meyering  <meyering@lucent.com>
80375
80376         * lib/localcharset.c ("path-concat.h"): Include.
80377         (get_charset_aliases): Use path_concat instead of ANSI string
80378         concatenation.
80379
80380         * lib/unicodeio.h (PARAMS): Define.
80381         Use it to guard prototype.
80382
80383 2000-03-04  Jim Meyering  <meyering@lucent.com>
80384
80385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80386         for lib/localcharset.c.
80387
80388 2000-03-04  Jim Meyering  <meyering@lucent.com>
80389
80390         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80391         installing into it.
80392         (uninstall-local): Uncomment this rule so `make distcheck' works
80393         once again.
80394
80395         * lib/unicodeio.c (<errno.h>): Include it.
80396         (errno): Declare if not defined.
80397
80398         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80399
80400         * lib/config.charset: New version, incorporating remarks from a linux
80401         i18n mailing list.  From Bruno Haible.
80402
80403 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80404
80405         * m4/codeset.m4: New file.
80406         * m4/iconv.m4: New file.
80407         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80408
80409 2000-03-03  Jim Meyering  <meyering@lucent.com>
80410
80411         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80412
80413 2000-03-02  Jim Meyering  <meyering@lucent.com>
80414
80415         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80416         the messages come out on separate lines.
80417
80418         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80419         rather than jm_CHECK_DECLARATIONS.
80420         * m4/decl.m4: Remove now-unused file.
80421
80422         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80423         geteuid.
80424
80425 2000-03-02  Jim Meyering  <meyering@lucent.com>
80426
80427         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80428
80429 2000-03-01  Jim Meyering  <meyering@lucent.com>
80430
80431         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80432         * lib/unicodeio.c: Likewise.
80433
80434 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80435
80436         * lib/config.charset: New file.
80437         * lib/localcharset.c: New file.
80438         * lib/unicodeio.h, lib/unicodeio.c: New files.
80439         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80440         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80441         (noinst_HEADERS): Add unicodeio.h.
80442         (all-local, install-exec-local, charset.alias): New targets.
80443
80444 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80445
80446         * lib/quotearg.c (ALERT_CHAR): New macro.
80447         (quotearg_buffer_restyled): Use it.
80448
80449 2000-02-27  Jim Meyering  <meyering@lucent.com>
80450
80451         * m4/check-decl.m4: Add getenv to the list.
80452
80453 2000-02-27  Jim Meyering  <meyering@lucent.com>
80454
80455         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80456         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80457
80458         * lib/backupfile.c: Guard inclusion of stdlib.h with
80459         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80460         Declare malloc if needed.
80461
80462         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80463         `#ifndef HAVE_DECL..'
80464         now that autoconf always defines the HAVE_DECL_ symbols.
80465         * lib/human.c: Likewise.
80466         * lib/same.c: Likewise.
80467         * lib/strtoumax.c: Likewise.
80468
80469         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80470         declaration check was not run.
80471         * lib/hash.c: Likewise.
80472         * lib/human.c: Likewise.
80473         * lib/same.c: Likewise.
80474         * lib/strtoumax.c: Likewise.
80475
80476         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80477         `.', then first look up the entire `.'-containing string as a login
80478         name.
80479
80480 2000-02-23  Jim Meyering  <meyering@lucent.com>
80481
80482         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80483         in place of my hack.
80484
80485 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80486
80487         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80488         (textint): New typedef.
80489         (parser_control): Member year changed from int to textint.
80490         All uses changed.
80491         (YYSTYPE): Removed; replaced by %union with int and textint members.
80492         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80493         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80494         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80495         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80496         (date, number, to_year): Use width of number in digits, not its value,
80497         to determine whether it's a 2-digit year, or a 2-digit time.
80498         (yylex): Store number of digits of numeric tokens.
80499         Reported by John Kendall.
80500
80501         (parser_control): Changed from struct parser_control to typedef (for
80502         consistency).  All uses changed.
80503
80504         (tID): Removed; not used.
80505         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80506
80507 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80508
80509         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80510         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80511
80512 2000-02-12  Jim Meyering  <meyering@lucent.com>
80513
80514         * lib/userspec.c (ISDIGIT): Define it.
80515         (isdigit): Remove definition.
80516         (is_number): Use ISDIGIT, not isdigit.
80517         <libintl.h>: Include.
80518         (_ and N_): Define.
80519         (parse_user_spec): Mark translatable strings.
80520
80521 2000-02-10  Jim Meyering  <meyering@lucent.com>
80522
80523         With these changes, nanosleep.[ch] are finally enough like the other
80524         lib/* replacement files to compile on a few more losing systems.
80525
80526         * lib/nanosleep.h: Don't include config.h.
80527         Remove prototype from declaration of nanosleep.
80528         (PARAMS): Remove now-unneeded definition.
80529         * lib/nanosleep.c: #undef nanosleep.
80530         (rpl_nanosleep): Rename from nanosleep.
80531
80532 2000-02-10  Jim Meyering  <meyering@lucent.com>
80533
80534         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80535         gnu_nanosleep to rpl_nanosleep.
80536
80537 2000-02-09  Jim Meyering  <meyering@lucent.com>
80538
80539         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80540         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80541
80542 2000-02-08  Akim Demaille  <akim@epita.fr>
80543
80544         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80545         `[' and `]' and remove uses of `changequote'.
80546         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80547         (AC_SYS_LARGEFILE): Likewise.
80548         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80549         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80550         of changequote.
80551         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80552         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80553         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80554         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80555
80556 2000-02-05  Jim Meyering  <meyering@lucent.com>
80557
80558         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80559         Remove explicit use of AC_HEADER_TIME.  It is required by
80560         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80561         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80562         in autoconf whereby the expansion of the latter ended up preceding
80563         the expansion of its prerequisite, AC_HEADER_TIME.
80564         Reported by Volker Borchert.
80565
80566 2000-02-03  Jim Meyering  <meyering@lucent.com>
80567
80568         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80569
80570 2000-02-03  Jim Meyering  <meyering@lucent.com>
80571
80572         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80573         rather than with `#if HAVE_UTMPNAME'.
80574
80575 2000-02-02  Jim Meyering  <meyering@lucent.com>
80576
80577         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80578         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80579         Reported by Eli Zaretskii.
80580
80581 2000-02-01  Jim Meyering  <meyering@lucent.com>
80582
80583         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80584
80585 2000-01-31  Jim Meyering  <meyering@lucent.com>
80586
80587         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80588         functions.  Add the time.h and sys/time.h headers along with the
80589         AC_REQUIRE'ment of AC_HEADER_TIME.
80590
80591 2000-01-31  Jim Meyering  <meyering@lucent.com>
80592
80593         * lib/nanosleep.h (nanosleep): Guard declaration with
80594         `#if ! HAVE_DECL_NANOSLEEP'.
80595         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80596         the declaration in that vendor's sys/timers.h.
80597         Reported by Christian Krackowizer.
80598
80599         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80600         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80601         (ISPRINT): Likewise.
80602         Reported by Tom Tromey.
80603
80604 2000-01-30  Jim Meyering  <meyering@lucent.com>
80605
80606         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80607
80608         * m4/prereq.m4 (utmp_includes): Define.
80609         Check for ut_user and ut_name members in both struct utmpx
80610         and struct utmp.
80611
80612 2000-01-30  Jim Meyering  <meyering@lucent.com>
80613
80614         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80615         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80616         header files where only utmpx.ut_user is declared.
80617
80618         * lib/readutmp.h (UT_USER): Define.
80619
80620 2000-01-29  Jim Meyering  <meyering@lucent.com>
80621
80622         * m4/lib-check.m4: New file containing library-related checks from
80623         fileutils and sh-utils (textutils had none).
80624
80625 2000-01-28  Jim Meyering  <meyering@lucent.com>
80626
80627         * m4/perl.m4: Change format of warning message to look more like that
80628         from the missing script.  Suggestion from François Pinard.
80629
80630 2000-01-25  Jim Meyering  <meyering@lucent.com>
80631
80632         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80633         well as time.h in the compile check.
80634         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80635         Fix typo in cross-compiling case: s/yes/no/.
80636
80637 2000-01-23  Jim Meyering  <meyering@lucent.com>
80638
80639         * m4/jm-macros.m4: Move df-related tests here from
80640         fileutils/configure.in
80641
80642         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80643         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80644
80645         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80646         s/space/ac_fsusage_space/.
80647         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80648
80649         * m4/ftruncate.m4: New file (derived from part of
80650         fileutils/configure.in).
80651         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80652         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80653
80654         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80655         AC_SUBST these here, rather than just in sh-util/configure.in, so
80656         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80657         all the same.
80658         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80659         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80660         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80661         (AC_SUBST(POW_LIBM)): Likewise.
80662         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80663
80664 2000-01-23  Jim Meyering  <meyering@lucent.com>
80665
80666         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80667         obstack.c.
80668
80669 2000-01-22  Jim Meyering  <meyering@lucent.com>
80670
80671         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80672
80673         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80674
80675         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80676         configure.in
80677         (AC_CHECK_HEADERS): Likewise for sh-utils.
80678         (AC_CHECK_HEADERS): Likewise for textutils.
80679         Merge the three lists of headers.
80680
80681         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80682         from fileutils' configure.in.
80683
80684         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80685         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80686         check-decl.m4.
80687
80688         * m4/check-decl.m4: Use #if rather than #ifdef.
80689         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80690         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80691         (_jm_DECL_HEADERS): Define new function.
80692         (jm_CHECK_DECLARATIONS): Require it.
80693
80694 2000-01-22  Jim Meyering  <meyering@lucent.com>
80695
80696         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80697         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80698         Required for some AIX systems.  Reported by Christian Krackowizer.
80699         [TESTING] (main): New function.
80700
80701         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80702         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80703         letters.
80704
80705         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80706         iswprint.
80707
80708         * lib/strverscmp.c (ISDIGIT): Define.
80709         (strverscmp): Use ISDIGIT, not isdigit.
80710
80711 2000-01-19  Jim Meyering  <meyering@lucent.com>
80712
80713         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80714         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80715         defines `struct timespec' in <sys/time.h>
80716
80717         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80718         Thanks to Akim for explaining.
80719
80720 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80721
80722         * lib/nanosleep.c (nanosleep):
80723         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80724         POSIX.1 doesn't require SA_INTERRUPT and some systems
80725         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80726         it's been part of POSIX.1 since day 1 (in 1988).
80727
80728 2000-01-17  Jim Meyering  <meyering@lucent.com>
80729
80730         * lib/interlock: Remove unused file.  Reported by François Pinard.
80731
80732 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80733
80734         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80735         alert, backslash, formfeed, and vertical tab unnecessarily in
80736         shell quoting style.
80737
80738 2000-01-16  Jim Meyering  <meyering@lucent.com>
80739
80740         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80741         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80742         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80743         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80744
80745 2000-01-16  Jim Meyering  <meyering@lucent.com>
80746
80747         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80748         because the latter didn't work.
80749
80750 2000-01-15  Jim Meyering  <meyering@lucent.com>
80751
80752         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80753         (AC_REPLACE_FUNCS): Add memcpy and memset.
80754         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80755         Add strpbrk.
80756         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80757
80758 2000-01-12  Jim Meyering  <meyering@lucent.com>
80759
80760         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80761         (jm_PREREQ): Use it.
80762         (jm_PREREQ_READUTMP): New macro.
80763         (jm_PREREQ): Use it.
80764
80765 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80766
80767         Quote multibyte characters correctly.
80768         * m4/c-bs-a.m4: New file.
80769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80770         (jm_PREREQ): Use it.
80771
80772 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80773
80774         * m4/uintmax_t.m4: Port to autoconf 2.13.
80775
80776 2000-01-08  Jim Meyering  <meyering@ascend.com>
80777
80778         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80779         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80780
80781 2000-01-04  Jim Meyering  <meyering@ascend.com>
80782
80783         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80784         jm_STRUCT_DIRENT_D_TYPE.
80785         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80786         jm_STRUCT_DIRENT_D_INO.
80787         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80788         jm_STRUCT_UTIMBUF.
80789         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80790         renamings.
80791         * m4/utime.m4: Likewise.
80792
80793         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80794         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80795
80796 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80797
80798         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80799         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80800
80801 2000-01-02  Jim Meyering  <meyering@ascend.com>
80802
80803         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80804         remember if this is necessary.
80805
80806 1999-12-26  Jim Meyering  <meyering@ascend.com>
80807
80808         * m4/jm-macros.m4: Use it here.
80809         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80810
80811 1999-12-23  Jim Meyering  <meyering@ascend.com>
80812
80813         * m4/jm-macros.m4: Check for clock_gettime (moved from
80814         fileutils/configure.in)
80815         Check for gettimeofday.
80816
80817 1999-12-20  Jim Meyering  <meyering@ascend.com>
80818
80819         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80820         autoconf-2.14a-1999-12-20.
80821
80822 1999-12-19  Jim Meyering  <meyering@ascend.com>
80823
80824         * m4/lstat-slash.m4: New file.
80825         * m4/jm-macros.m4: Use the new macro:
80826         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80827
80828 1999-12-07  Jim Meyering  <meyering@ascend.com>
80829
80830         * m4/perl.m4: Require that File::Compare be available, too.
80831         Too many systems seem to lack it.
80832
80833         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80834         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80835
80836 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80837
80838         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80839         problem with the QNX 4.25 shell, which doesn't propagate exit
80840         status of failed commands inside shell assignments.
80841
80842 1999-11-17  Jim Meyering  <meyering@ascend.com>
80843
80844         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80845
80846 1999-11-07  Jim Meyering  <meyering@ascend.com>
80847
80848         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80849
80850 1999-11-06  Jim Meyering  <meyering@ascend.com>
80851
80852         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80853         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80854
80855 1999-11-05  Jim Meyering  <meyering@ascend.com>
80856
80857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80858         configure.in of textutils, fileutils, and sh-utils into this one
80859         (shared between those packages) file.
80860         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80861         AC_STRUCT_ST_BLKSIZE.
80862
80863 1999-11-03  Jim Meyering  <meyering@ascend.com>
80864
80865         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80866         of AC_CHECK_TYPE checks includes unistd.h.
80867         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80868         Suggestion from Akim Demaille.
80869
80870 1999-10-30  Jim Meyering  <meyering@ascend.com>
80871
80872         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80873         m4-quoted string.
80874         * m4/ls-mntd-fs.m4: Likewise.
80875         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80876         * m4/jm-winsz1.m4: Likewise.
80877
80878         * m4/const.m4: Remove file, since the fix made it into the experimental
80879         version of autoconf.
80880         * m4/mktime.m4: Likewise.
80881
80882         * m4/check-type.m4: Remove file, now that the latest version of
80883         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80884
80885         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80886         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80887         AC_CHECK_TYPE.
80888
80889 1999-10-04  Jim Meyering  <meyering@ascend.com>
80890
80891         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80892
80893 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80894
80895         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80896         2.95.1 bug with HP-UX 10.20.
80897
80898 1999-09-17  Jim Meyering  <meyering@ascend.com>
80899
80900         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80901         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80902         due to missing strdup (against sh-utils-2.0).
80903
80904 1999-08-29  Jim Meyering  <meyering@ascend.com>
80905
80906         * m4/jm-macros.m4: Require jm_BISON.
80907         * m4/bison.m4: New file.
80908
80909 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80910
80911         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80912         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80913
80914 1999-08-05  Jim Meyering  <meyering@ascend.com>
80915
80916         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80917         to avoid conflicts with `conftest' on 8+3 filesystems.
80918         Suggestion from Eli Zaretskii.
80919
80920 1999-08-04  Jim Meyering  <meyering@ascend.com>
80921
80922         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80923         fileutils and sh-utils (textutils's getline test was inadequate).
80924         (AM_FUNC_GETLINE): Run this test.
80925         (AC_CHECK_FUNCS): Check for getdelim.
80926         Reported by Bob Proulx.
80927
80928 1999-08-02  Jim Meyering  <meyering@ascend.com>
80929
80930         * m4/jm-macros.m4: Add a comment.
80931
80932 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80933
80934         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80935         <inttypes.h> defines strtoumax as a macro (and not as a
80936         function).
80937
80938 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80939
80940         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80941         that we can shift, multiply and divide unsigned long long
80942         values; Ultrix cc can't do it.
80943
80944 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80945
80946         * m4/mktime.m4: New file, which is a preview of what should appear
80947         in the next public autoconf release.
80948
80949 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80950
80951         * m4/lfs.m4: Remove this file.
80952         * m4/largefile.m4: New file.  It contains the old contents of
80953         lfs.m4, except that all names with prefix AC_LFS have been
80954         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80955         compatible with future autoconf versions.  Also, some minor m4
80956         quoting problems have been fixed.
80957
80958 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80959
80960         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80961         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80962         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80963         and simplify the shell code.
80964
80965 1999-08-01  Jim Meyering  <meyering@ascend.com>
80966
80967         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80968         m4.
80969
80970 1999-07-20  Jim Meyering  <meyering@ascend.com>
80971
80972         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80973
80974 1999-07-15  Jim Meyering  <meyering@ascend.com>
80975
80976         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80977
80978 1999-05-22  Jim Meyering  <meyering@ascend.com>
80979
80980         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80981
80982 1999-05-20  Jim Meyering  <meyering@ascend.com>
80983
80984         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80985         Add a colon after each `then' in case $4 is empty.
80986
80987 1999-05-16  Jim Meyering  <meyering@ascend.com>
80988
80989         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80990
80991 1999-05-10  Jim Meyering  <meyering@ascend.com>
80992
80993         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80994
80995         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80996         AC_FUNC_MKTIME.
80997
80998 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80999
81000         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81001
81002 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81003
81004         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81005         not CPPFLAGS, so that linking works correctly in IRIX.
81006
81007 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81008
81009         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81010
81011 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81012
81013         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81014         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81016         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81017         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81018
81019         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81020
81021 1999-04-20  Jim Meyering  <meyering@ascend.com>
81022
81023         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81024         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81025         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81026
81027 1999-04-18  Jim Meyering  <meyering@ascend.com>
81028
81029         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81030         * m4/jm-macros.m4: Use it.
81031
81032 1999-04-06  Jim Meyering  <meyering@ascend.com>
81033
81034         * m4/strftime.m4: Remove test for %f.
81035
81036 1999-03-29  Jim Meyering  <meyering@ascend.com>
81037
81038         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81039         superset of the AC_TYPE_* checks in the textutils, fileutils,
81040         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81041         AC_TYPE_PID_T.
81042
81043 1999-03-28  Jim Meyering  <meyering@ascend.com>
81044
81045         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81046         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81047         replaced e.g., in the *.sh files of the sh-utils.
81048
81049 1999-03-20  Jim Meyering  <meyering@ascend.com>
81050
81051         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81052         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81053         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81054
81055 1999-03-19  Jim Meyering  <meyering@ascend.com>
81056
81057         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81058
81059 1999-03-12  Jim Meyering  <meyering@ascend.com>
81060
81061         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81062
81063 1999-03-07  Jim Meyering  <meyering@ascend.com>
81064
81065         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81066         declared.
81067
81068 1999-02-17  Jim Meyering  <meyering@ascend.com>
81069
81070         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81071         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81072
81073 1999-02-07  Jim Meyering  <meyering@ascend.com>
81074
81075         * m4/group-member.m4: New file -- extracted from sh-utils'
81076         configure.in.
81077
81078         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81079         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81080
81081 1999-02-06  Jim Meyering  <meyering@ascend.com>
81082
81083         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81084         * m4/fnmatch.m4: Likewise.
81085         * m4/getgroups.m4: Likewise.
81086         * m4/lstat.m4: Likewise.
81087         * m4/malloc.m4: Likewise.
81088         * m4/putenv.m4: Likewise.
81089         * m4/realloc.m4: Likewise.
81090         * m4/regex.m4: Likewise.
81091         * m4/stat.m4: Likewise.
81092         * m4/strftime.m4: Likewise.
81093         Suggestion from Alain Magloire.
81094
81095         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81096         * m4/fnmatch.m4: Likewise.
81097         * m4/getgroups.m4: Likewise.
81098         * m4/getline.m4: Likewise.
81099         * m4/lstat.m4: Likewise.
81100         * m4/malloc.m4: Likewise.
81101         * m4/memcmp.m4: Likewise.
81102         * m4/putenv.m4: Likewise.
81103         * m4/realloc.m4: Likewise.
81104         * m4/regex.m4: Likewise.
81105         * m4/stat.m4: Likewise.
81106         * m4/strftime.m4: Likewise.
81107         Suggestion from Alain Magloire.
81108
81109         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81110         an argument.
81111
81112         * m4/regex.m4: Add a run-time Test for proper operation of
81113         re_compile_pattern.
81114
81115 1999-01-31  Jim Meyering  <meyering@ascend.com>
81116
81117         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81118
81119 1999-01-30  Jim Meyering  <meyering@ascend.com>
81120
81121         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81122
81123         * m4/jm-mktime.m4: Make this a wrapper around the official
81124         AM_FUNC_MKTIME rather than my private copy, now that the official one
81125         is up to date.
81126         * m4/mktime.m4: Remove file.
81127
81128         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81129         * m4/uptime.m4: Likewise.
81130         * m4/uintmax_t.m4: Likewise.
81131
81132 1999-01-28  Jim Meyering  <meyering@ascend.com>
81133
81134         * m4/jm-macros.m4: Use jm_AFS.
81135         * m4/afs.m4: New file (from fileutils' configure.in).
81136
81137         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81138         * m4/chown.m4: Likewise.
81139         * m4/d-ino.m4: Likewise.
81140         * m4/d-type.m4: Likewise.
81141         * m4/fnmatch.m4: Likewise.
81142         * m4/getgroups.m4: Likewise.
81143         * m4/gettext.m4: Likewise.
81144         * m4/jm-mktime.m4: Likewise.
81145         * m4/jm-winsz2.m4: Likewise.
81146         * m4/lcmessage.m4: Likewise.
81147         * m4/ls-mntd-fs.m4: Likewise.
81148         * m4/malloc.m4: Likewise.
81149         * m4/memcmp.m4: Likewise.
81150         * m4/putenv.m4: Likewise.
81151         * m4/realloc.m4: Likewise.
81152         * m4/st_mtim.m4: Likewise.
81153         * m4/strftime.m4: Likewise.
81154
81155 1999-01-16  Jim Meyering  <meyering@ascend.com>
81156
81157         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81158         (ARGMATCH_DIE_DECL): Define.
81159
81160 1999-01-12  Jim Meyering  <meyering@ascend.com>
81161
81162         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81163         Reported by Lars Hecking.
81164
81165 1999-01-10  Jim Meyering  <meyering@ascend.com>
81166
81167         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81168         gross kludge.
81169         * m4/inttypes_h.m4: Likewise.
81170         * m4/lstat.m4: Likewise.
81171         * m4/malloc.m4: Likewise.
81172         * m4/readdir.m4: Likewise.
81173         * m4/realloc.m4: Likewise.
81174         * m4/st_dm_mode.m4: Likewise.
81175         * m4/stat.m4: Likewise.
81176         * m4/utimbuf.m4: Likewise.
81177         * m4/utimes.m4: Likewise.
81178
81179         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81180         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81181         comments in config.h.in are meaningful.
81182
81183         * m4/jm-macros.m4: Require autoconf-2.13 here.
81184
81185         * m4/regex.m4: By default, don't use the included regex.c on systems
81186         with glibc 2.  Suggestion from Uli Drepper.
81187
81188 1999-01-02  Jim Meyering  <meyering@ascend.com>
81189
81190         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81191
81192 1998-12-18  Jim Meyering  <meyering@ascend.com>
81193
81194         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81195         Based on a suggestion from Lars Hecking.
81196
81197 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81198
81199         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81200
81201 1998-11-16  Jim Meyering  <meyering@ascend.com>
81202
81203         * m4/lfs.m4: Double-quote the `uname...` expression.
81204
81205 1998-11-14  Jim Meyering  <meyering@ascend.com>
81206
81207         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81208         * m4/stat.m4: Likewise.
81209
81210 1998-11-03  Jim Meyering  <meyering@ascend.com>
81211
81212         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81213         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81214
81215 1998-10-18  Jim Meyering  <meyering@ascend.com>
81216
81217         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81218
81219 1998-10-17  Jim Meyering  <meyering@ascend.com>
81220
81221         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81222         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81223         calls for those previously hard-coded headers.  Instead, take a new
81224         parameter.
81225         (jm_CHECK_DECLARATIONS): Reflect interface change.
81226         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81227         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81228
81229         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81230
81231 1998-10-14  Jim Meyering  <meyering@ascend.com>
81232
81233         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81234         instead of "TZ=America/Vancouver".  From Paul Eggert.
81235
81236 1998-10-11  Jim Meyering  <meyering@ascend.com>
81237
81238         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81239         This adds a test for a recently added compatibility fix for mktime.c.
81240         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81241
81242 1998-09-27  Jim Meyering  <meyering@ascend.com>
81243
81244         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81245
81246         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81247         ../configure.in, including a change from Gordon Matzigkeit to allow
81248         cross-compiling for the Hurd.
81249
81250         * m4/glibc.m4: New file/macro to test for the GNU C Library
81251         versions 1 and 2.  From Gordon Matzigkeit.
81252         Indent.
81253
81254 1998-09-21  Jim Meyering  <meyering@ascend.com>
81255
81256         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81257
81258 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81259
81260         Port nanosecond-resolution times to UnixWare 2.1.2 and
81261         pedantic Solaris 2.6.
81262
81263         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81264         AC_STRUCT_ST_MTIM.
81265         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81266         Generate name of ns member, instead of just 1 or undef.
81267         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81268
81269 1998-08-15  Jim Meyering  <meyering@ascend.com>
81270
81271         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81272         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81273         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81274         instead of jm_TYPE_SSIZE_T.
81275
81276 1998-08-12  Jim Meyering  <meyering@ascend.com>
81277
81278         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81279
81280 1998-08-02  Jim Meyering  <meyering@ascend.com>
81281
81282         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81283         in acconfig.h manually.
81284
81285 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81286
81287         * m4/st_mtim.m4: New file.
81288
81289 1998-07-28  Jim Meyering  <meyering@ascend.com>
81290
81291         * m4/utimes.m4: Undef stat.
81292
81293 1998-07-25  Jim Meyering  <meyering@ascend.com>
81294
81295         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81296         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81297
81298 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81299
81300         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81301         uid and gid actually remain unchanged.
81302
81303 1998-07-07  Jim Meyering  <meyering@ascend.com>
81304
81305         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81306
81307 1998-07-04  Jim Meyering  <meyering@ascend.com>
81308
81309         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81310         to prove that this macro can be used in packages without regex.c.
81311
81312 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81313
81314         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81315         is to be used.
81316
81317 1998-07-03  Jim Meyering  <meyering@ascend.com>
81318
81319         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81320
81321         * m4/gettext.m4: New file -- from gettext-0.10.35.
81322         * m4/lcmessage.m4: Likewise.
81323         * m4/progtest.m4: Likewise.
81324
81325         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81326         * m4/jm-macros.m4: Require the new macro.
81327
81328 1998-06-29  Jim Meyering  <meyering@ascend.com>
81329
81330         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81331         for the definition of NGROUPS (used in a system header included
81332         by sys/mount.h).
81333
81334 1998-06-28  Jim Meyering  <meyering@ascend.com>
81335
81336         * m4/ls-mntd-fs.m4: New file.
81337         * m4/fstypename.m4: New file.
81338
81339         * m4/jm-macros.m4: Require the new macro.
81340         * m4/jm-glibc-io.m4: New file.
81341
81342 1998-05-19  Jim Meyering  <meyering@ascend.com>
81343
81344         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81345         * m4/lchown.m4: New file.
81346
81347         * m4/Makefile.am.in: New file.
81348         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81349
81350 1998-05-14  Jim Meyering  <meyering@ascend.com>
81351
81352         * m4/Makefile.am (EXTRA_DIST): Add them.
81353         * m4/jm-macros.m4: New file.
81354         * m4/utimbuf.m4: New file.
81355
81356 1998-05-12  Jim Meyering  <meyering@ascend.com>
81357
81358         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81359
81360 1998-05-11  Jim Meyering  <meyering@ascend.com>
81361
81362         * m4/isc-posix.m4: New file.
81363
81364 1998-05-10  Jim Meyering  <meyering@ascend.com>
81365
81366         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81367
81368 1998-05-09  Jim Meyering  <meyering@ascend.com>
81369
81370         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81371         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81372         with automake.
81373
81374         * m4/ssize_t.m4: New file.
81375         * m4/mktime.m4: Remove file -- the new automake has this now.
81376
81377 1998-04-26  Jim Meyering  <meyering@ascend.com>
81378
81379         * m4/assert.m4: New file.
81380         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81381
81382 1998-04-05  Jim Meyering  <meyering@ascend.com>
81383
81384         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81385         (jm_PREREQ): Use it here.
81386
81387 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81388
81389         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81390         in acconfig.h.
81391
81392 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81393
81394         * m4/prereq.m4: New file.
81395         * m4/error.m4: New file.
81396         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81397
81398 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81399
81400         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81401         cache-check for the same variable -- that defeated the purpose of
81402         the test; the test program was never run.  This was a problem only
81403         on systems with losing getline functions -- HP-UX 10.20 is one.
81404         Reported by Bjorn Helgaas.
81405
81406 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81407
81408         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81409
81410 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81411
81412         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81413
81414         * m4/const.m4: New file.  Use an initializer in this declaration
81415         typedef int charset[2]; const charset x;
81416         Reported by Bob Glickstein.
81417
81418 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81419
81420         * m4/chown.m4: Fix reversed types on -1 args to chown.
81421         From Kaveh Ghazi.
81422
81423 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81424
81425         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81426         Add lseek and memchr.
81427
81428         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81429         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81430         have a 20-character limit on names.
81431
81432 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81433
81434         * m4/inttypes_h.m4: New file.
81435         * m4/uintmax_t.m4: New file.
81436         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81437
81438
81439         -----
81440
81441         Local Variables:
81442         coding: utf-8
81443         End:
81444
81445         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81446
81447         Copying and distribution of this file, with or without
81448         modification, are permitted provided the copyright notice
81449         and this notice are preserved.