floorl: Respect rules for use of AC_LIBOBJ.
[gnulib.git] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         floorl: Respect rules for use of AC_LIBOBJ.
4         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5         * modules/floorl (configure.ac): ... to here.
6
7 2011-05-21  Bruno Haible  <bruno@clisp.org>
8
9         floor: Respect rules for use of AC_LIBOBJ.
10         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11         * modules/floor (configure.ac): ... to here.
12
13 2011-05-21  Bruno Haible  <bruno@clisp.org>
14
15         floorf: Move AC_LIBOBJ invocations to module description.
16         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17         * modules/floorf (configure.ac): ... to here.
18
19 2011-05-20  Bruno Haible  <bruno@clisp.org>
20
21         sqrtl: Respect rules for use of AC_LIBOBJ.
22         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
23         * modules/sqrtl (configure.ac): ... to here.
24
25 2011-05-20  Bruno Haible  <bruno@clisp.org>
26
27         ldexpl: Respect rules for use of AC_LIBOBJ.
28         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
29         * modules/ldexpl (configure.ac): ... to here.
30
31 2011-05-20  Bruno Haible  <bruno@clisp.org>
32
33         frexpl*: Respect rules for use of AC_LIBOBJ.
34         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
35         invocation from here...
36         * modules/frexpl (configure.ac): ... to here.
37         * modules/frexpl-nolibm (configure.ac): ... and here.
38
39 2011-05-20  Bruno Haible  <bruno@clisp.org>
40
41         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
42         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
43         invocation from here...
44         * modules/frexp (configure.ac): ... to here.
45         * modules/frexp-nolibm (configure.ac): ... and here.
46
47 2011-05-20  Bruno Haible  <bruno@clisp.org>
48
49         isnan: Respect rules for use of AC_LIBOBJ.
50         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
51         invocations here.
52         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
53         REPLACE_ISNAN.
54         * modules/isnand (configure.ac): Likewise.
55         * modules/isnanl (configure.ac): Likewise.
56
57 2011-05-20  Bruno Haible  <bruno@clisp.org>
58
59         isnanl*: Respect rules for use of AC_LIBOBJ.
60         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
61         invocation from here...
62         * modules/isnanl (configure.ac): ... to here.
63         * modules/isnanl-nolibm (configure.ac): ... and here.
64
65 2011-05-20  Bruno Haible  <bruno@clisp.org>
66
67         isnand*: Move AC_LIBOBJ invocations to module description.
68         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
69         invocation from here...
70         * modules/isnand (configure.ac): ... to here.
71         * modules/isnand-nolibm (configure.ac): ... and here.
72
73 2011-05-20  Bruno Haible  <bruno@clisp.org>
74
75         isnanf*: Move AC_LIBOBJ invocations to module description.
76         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
77         invocation from here...
78         * modules/isnanf (configure.ac): ... to here.
79         * modules/isnanf-nolibm (configure.ac): ... and here.
80
81 2011-05-20  Bruno Haible  <bruno@clisp.org>
82
83         isnan*: Separate the AC_LIBOBJ invocations.
84         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
85         AC_LIBOBJ invocation.
86         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
87         here.
88         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
89         AC_LIBOBJ invocation.
90         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
91         here.
92         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
93         AC_LIBOBJ invocation.
94         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
95         here.
96         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
97
98 2011-05-08  Bruno Haible  <bruno@clisp.org>
99
100         isinf: Move AC_LIBOBJ invocations to module description.
101         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
102         * modules/isinf (configure.ac): ... to here.
103
104 2011-05-08  Bruno Haible  <bruno@clisp.org>
105
106         isfinite: Move AC_LIBOBJ invocations to module description.
107         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
108         * modules/isfinite (configure.ac): ... to here.
109
110 2011-05-08  Bruno Haible  <bruno@clisp.org>
111
112         isblank: Move AC_LIBOBJ invocations to module description.
113         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
114         here...
115         * modules/isblank (configure.ac): ... to here.
116
117 2011-05-08  Bruno Haible  <bruno@clisp.org>
118
119         isapipe: Move AC_LIBOBJ invocations to module description.
120         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
121         gl_PREREQ_ISAPIPE invocations from here...
122         * modules/isapipe (configure.ac): ... to here.
123         (Depends-on): Update condition.
124
125 2011-05-08  Bruno Haible  <bruno@clisp.org>
126
127         ioctl: Move AC_LIBOBJ invocations to module description.
128         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
129         invocations from here...
130         * modules/ioctl (configure.ac): ... to here.
131         (Depends-on): Update condition.
132
133 2011-05-08  Bruno Haible  <bruno@clisp.org>
134
135         imaxdiv: Move AC_LIBOBJ invocations to module description.
136         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
137         invocations from here...
138         * modules/imaxdiv (configure.ac): ... to here.
139
140 2011-05-08  Bruno Haible  <bruno@clisp.org>
141
142         imaxabs: Move AC_LIBOBJ invocations to module description.
143         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
144         invocations from here...
145         * modules/imaxabs (configure.ac): ... to here.
146
147 2011-05-08  Bruno Haible  <bruno@clisp.org>
148
149         getaddrinfo: Move AC_LIBOBJ invocations to module description.
150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
151         AC_LIBOBJ invocations from here...
152         * modules/getaddrinfo (configure.ac): ... to here.
153         (Depends-on): Add conditions.
154
155 2011-05-08  Bruno Haible  <bruno@clisp.org>
156
157         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
158         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
159         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
160         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
161         (gl_PREREQ_INET_PTON): ... from here.
162         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
163         gl_PREREQ_INET_PTON here.
164         (Depends-on): Update condition.
165
166 2011-05-08  Bruno Haible  <bruno@clisp.org>
167
168         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
169         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
170         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
171         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
172         (gl_PREREQ_INET_NTOP): ... from here.
173         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
174         gl_PREREQ_INET_NTOP here.
175         (Depends-on): Update condition.
176
177 2011-05-08  Bruno Haible  <bruno@clisp.org>
178
179         iconv_open: Move AC_LIBOBJ invocations to module description.
180         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
181         AC_LIBOBJ invocations from here...
182         * modules/iconv_open (configure.ac): ... to here.
183
184 2011-05-08  Bruno Haible  <bruno@clisp.org>
185
186         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
187         If module 'iconv_open' is among the main modules and module
188         'iconv_open-utf' is among the tests dependencies, then
189         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
190         return the special iconv_t values. Therefore iconv() and iconv_close()
191         must support these special iconv_t values, already in lib, not only in
192         tests.
193         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
195         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
196         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
197         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
198         (Depends-on): Add the dependencies of iconv_open-utf.
199         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
200         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
201         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
202
203 2011-05-08  Bruno Haible  <bruno@clisp.org>
204
205         group-member: Move AC_LIBOBJ invocations to module description.
206         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
207         gl_PREREQ_GROUP_MEMBER invocations from here...
208         * modules/group-member (configure.ac): ... to here.
209
210 2011-05-08  Bruno Haible  <bruno@clisp.org>
211
212         grantpt: Move AC_LIBOBJ invocations to module description.
213         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
214         invocations from here...
215         * modules/grantpt (configure.ac): ... to here.
216
217 2011-05-08  Bruno Haible  <bruno@clisp.org>
218
219         glob: Move AC_LIBOBJ invocations to module description.
220         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
221         from here...
222         * modules/glob (configure.ac): ... to here.
223
224 2011-05-08  Bruno Haible  <bruno@clisp.org>
225
226         getusershell: Move AC_LIBOBJ invocations to module description.
227         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
228         Move AC_LIBOBJ invocation from here...
229         * modules/getusershell (configure.ac): ... to here.
230         (Depends-on): Update condition.
231
232 2011-05-08  Bruno Haible  <bruno@clisp.org>
233
234         gettimeofday: Move AC_LIBOBJ invocations to module description.
235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
236         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
237         gl_PREREQ_GETTIMEOFDAY invocations from here...
238         * modules/gettimeofday (configure.ac): ... to here.
239
240 2011-05-08  Bruno Haible  <bruno@clisp.org>
241
242         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
243         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
244         just gl_FUNC_TZSET.
245         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
246         (gl_FUNC_TZSET_CLOBBER): Remove actions.
247         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
248         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
249
250 2011-05-08  Bruno Haible  <bruno@clisp.org>
251
252         getsubopt: Move AC_LIBOBJ invocations to module description.
253         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
254         gl_PREREQ_GETSUBOPT invocations from here...
255         * modules/getsubopt (configure.ac): ... to here.
256
257 2011-05-08  Bruno Haible  <bruno@clisp.org>
258
259         getpass-gnu: Move AC_LIBOBJ invocations to module description.
260         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
261         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
262         * modules/getpass-gnu (configure.ac): ... to here.
263
264 2011-05-08  Bruno Haible  <bruno@clisp.org>
265
266         getpass: Move AC_LIBOBJ invocations to module description.
267         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
268         gl_PREREQ_GETPASS invocations from here...
269         * modules/getpass (configure.ac): ... to here.
270
271 2011-05-08  Bruno Haible  <bruno@clisp.org>
272
273         getpagesize: Move AC_LIBOBJ invocations to module description.
274         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
275         from here...
276         * modules/getpagesize (configure.ac): ... to here.
277
278 2011-05-08  Bruno Haible  <bruno@clisp.org>
279
280         getopt: Move AC_LIBOBJ invocations to module description.
281         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
282         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
283         invocations from here...
284         * modules/getopt-gnu (configure.ac): ... to here.
285         * modules/getopt-posix (configure.ac): ... and here.
286         (Depends-on): Update condition.
287
288 2011-05-08  Bruno Haible  <bruno@clisp.org>
289
290         getopt, argp: Respect rules for use of AC_LIBOBJ.
291         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
292         (gl_REPLACE_GETOPT_ALWAYS): New macro.
293         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
294         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
295
296 2011-05-08  Bruno Haible  <bruno@clisp.org>
297
298         getlogin_r: Move AC_LIBOBJ invocations to module description.
299         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
300         gl_PREREQ_GETLOGIN_R invocations from here...
301         * modules/getlogin_r (configure.ac): ... to here.
302
303 2011-05-08  Bruno Haible  <bruno@clisp.org>
304
305         getlogin: Move AC_LIBOBJ invocations to module description.
306         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
307         here...
308         * modules/getlogin (configure.ac): ... to here.
309
310 2011-05-08  Bruno Haible  <bruno@clisp.org>
311
312         getloadavg: Move AC_LIBOBJ invocations to module description.
313         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
314         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
315         * modules/getloadavg (configure.ac): ... to here.
316
317 2011-05-08  Bruno Haible  <bruno@clisp.org>
318
319         gethrxtime: Move AC_LIBOBJ invocations to module description.
320         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
321         LIB_GETHRXTIME from here...
322         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
323         invocations from here...
324         * modules/gethrxtime (configure.ac): ... to here.
325
326 2011-05-08  Bruno Haible  <bruno@clisp.org>
327
328         gethostname: Move AC_LIBOBJ invocations to module description.
329         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
330         gl_PREREQ_GETHOSTNAME invocations from here...
331         * modules/gethostname (configure.ac): ... to here.
332
333 2011-05-08  Bruno Haible  <bruno@clisp.org>
334
335         getgroups: Move AC_LIBOBJ invocations to module description.
336         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
337         here...
338         * modules/getgroups (configure.ac): ... to here.
339
340 2011-05-08  Bruno Haible  <bruno@clisp.org>
341
342         getdtablesize: Move AC_LIBOBJ invocations to module description.
343         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
344         invocation from here...
345         * modules/getdtablesize (configure.ac): ... to here.
346
347 2011-05-08  Bruno Haible  <bruno@clisp.org>
348
349         getdomainname: Move AC_LIBOBJ invocations to module description.
350         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
351         gl_PREREQ_GETDOMAINNAME invocations from here...
352         * modules/getdomainname (configure.ac): ... to here.
353
354 2011-05-08  Bruno Haible  <bruno@clisp.org>
355
356         getline: Move AC_LIBOBJ invocations to module description.
357         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
358         invocations from here...
359         * modules/getline (configure.ac): ... to here.
360
361 2011-05-08  Bruno Haible  <bruno@clisp.org>
362
363         getline: Simplify.
364         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
365         It's already handled through the module dependency.
366
367 2011-05-08  Bruno Haible  <bruno@clisp.org>
368
369         getdelim: Move AC_LIBOBJ invocations to module description.
370         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
371         and gl_PREREQ_GETDELIM invocations from here...
372         * modules/getdelim (configure.ac): ... to here.
373         (Depends-on): Fix condition.
374
375 2011-05-08  Bruno Haible  <bruno@clisp.org>
376
377         getcwd: Move AC_LIBOBJ invocations to module description.
378         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
379         invocations from here...
380         * modules/getcwd (configure.ac): ... to here.
381
382 2011-05-08  Bruno Haible  <bruno@clisp.org>
383
384         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
385         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
386         here...
387         * modules/getcwd-lgpl (configure.ac): ... to here.
388
389 2011-05-07  Bruno Haible  <bruno@clisp.org>
390
391         crypto/gc: Move AC_LIBOBJ invocations to module description.
392         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
393         * modules/crypto/gc (configure.ac): ... to here.
394
395 2011-05-07  Bruno Haible  <bruno@clisp.org>
396
397         fwriting: Move AC_LIBOBJ invocations to module description.
398         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
399         here...
400         * modules/fwriting (configure.ac): ... to here.
401
402 2011-05-07  Bruno Haible  <bruno@clisp.org>
403
404         fwritable: Move AC_LIBOBJ invocations to module description.
405         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
406         here...
407         * modules/fwritable (configure.ac): ... to here.
408
409 2011-05-07  Bruno Haible  <bruno@clisp.org>
410
411         futimens: Move AC_LIBOBJ invocations to module description.
412         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
413         here...
414         * modules/futimens (configure.ac): ... to here.
415
416 2011-05-07  Bruno Haible  <bruno@clisp.org>
417
418         ftruncate: Move AC_LIBOBJ invocations to module description.
419         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
420         gl_PREREQ_FTRUNCATE invocations from here...
421         * modules/ftruncate (configure.ac): ... to here.
422
423 2011-05-07  Bruno Haible  <bruno@clisp.org>
424
425         fsync: Move AC_LIBOBJ invocations to module description.
426         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
427         invocations from here...
428         * modules/fsync (configure.ac): ... to here.
429
430 2011-05-07  Bruno Haible  <bruno@clisp.org>
431
432         fsusage: Move AC_LIBOBJ invocations to module description.
433         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
434         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
435         * modules/fsusage (configure.ac): ... to here.
436
437 2011-05-07  Bruno Haible  <bruno@clisp.org>
438
439         freopen: Move AC_LIBOBJ invocations to module description.
440         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
441         invocations from here...
442         * modules/freopen (configure.ac): ... to here.
443
444 2011-05-07  Bruno Haible  <bruno@clisp.org>
445
446         free: Move AC_LIBOBJ invocations to module description.
447         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
448         invocations from here...
449         * modules/free (configure.ac): ... to here.
450
451 2011-05-07  Bruno Haible  <bruno@clisp.org>
452
453         freadable: Move AC_LIBOBJ invocations to module description.
454         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
455         here...
456         * modules/freadable (configure.ac): ... to here.
457
458 2011-05-07  Bruno Haible  <bruno@clisp.org>
459
460         fpurge: Move AC_LIBOBJ invocations to module description.
461         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
462         invocations from here...
463         * modules/fpurge (configure.ac): ... to here.
464
465 2011-05-07  Bruno Haible  <bruno@clisp.org>
466
467         fpending: Move AC_LIBOBJ invocations to module description.
468         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
469         gl_FUNC_FPENDING.
470         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
471         invocations from here...
472         * modules/fpending (configure.ac): ... to here.
473
474 2011-05-07  Bruno Haible  <bruno@clisp.org>
475
476         fopen: Move AC_LIBOBJ invocations to module description.
477         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
478         invocations from here...
479         * modules/fopen (configure.ac): ... to here.
480
481 2011-05-07  Bruno Haible  <bruno@clisp.org>
482
483         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
484         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
485         gl_FUNC_FNMATCH_POSIX.
486         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
487         invocations from here...
488         * modules/fnmatch (configure.ac): ... to here.
489         * modules/fnmatch-gnu (configure.ac): ... and here.
490
491 2011-05-07  Bruno Haible  <bruno@clisp.org>
492
493         flock: Move AC_LIBOBJ invocations to module description.
494         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
495         invocations from here...
496         * modules/flock (configure.ac): ... to here.
497
498 2011-05-07  Bruno Haible  <bruno@clisp.org>
499
500         fileblocks: Move AC_LIBOBJ invocations to module description.
501         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
502         gl_PREREQ_FILEBLOCKS invocations from here...
503         * modules/fileblocks (configure.ac): ... to here.
504
505 2011-05-06  Bruno Haible  <bruno@clisp.org>
506
507         fflush: Move AC_LIBOBJ invocations to module description.
508         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
509         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
510         invocations from here...
511         * modules/fflush (configure.ac): ... to here.
512
513 2011-05-06  Bruno Haible  <bruno@clisp.org>
514
515         fdopendir: Move AC_LIBOBJ invocations to module description.
516         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
517         here...
518         * modules/fdopendir (configure.ac): ... to here.
519         (Depends-on): Improve conditions.
520
521 2011-05-06  Bruno Haible  <bruno@clisp.org>
522
523         _Exit: Move AC_LIBOBJ invocations to module description.
524         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
525         invocations from here...
526         * modules/_Exit (configure.ac): ... to here.
527
528 2011-05-21  Bruno Haible  <bruno@clisp.org>
529
530         euidaccess: Respect rules for use of AC_LIBOBJ.
531         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
533         from here...
534         * modules/euidaccess (configure.ac): ... to here.
535
536 2011-05-06  Bruno Haible  <bruno@clisp.org>
537
538         error: Move AC_LIBOBJ invocations to module description.
539         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
540         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
541         invocations from here...
542         * modules/error (configure.ac): ... to here.
543
544 2011-05-06  Bruno Haible  <bruno@clisp.org>
545
546         duplocale: Move AC_LIBOBJ invocations to module description.
547         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
548         gl_PREREQ_DUPLOCALE invocations from here...
549         * modules/duplocale (configure.ac): ... to here.
550
551 2011-05-05  Bruno Haible  <bruno@clisp.org>
552
553         dirfd: Move AC_LIBOBJ invocations to module description.
554         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
555         gl_FUNC_DIRFD.
556         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
557         here...
558         * modules/dirfd (configure.ac): ... to here.
559         (Depends-on): Fix condition.
560
561 2011-05-05  Bruno Haible  <bruno@clisp.org>
562
563         chown: Respect rules for use of AC_LIBOBJ.
564         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
565         * modules/chown (configure.ac): ... to here.
566
567 2011-05-05  Bruno Haible  <bruno@clisp.org>
568
569         chdir-long: Move AC_LIBOBJ invocations to module description.
570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
571         gl_PREREQ_CHDIR_LONG invocations from here...
572         * modules/chdir-long (configure.ac): ... to here.
573
574 2011-05-05  Bruno Haible  <bruno@clisp.org>
575
576         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
577         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
578         from here...
579         * modules/canonicalize-lgpl (configure.ac): ... to here.
580
581 2011-05-05  Bruno Haible  <bruno@clisp.org>
582
583         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
584         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
585         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
586         REPLACE_CALLOC.
587         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
588         * modules/calloc-gnu (configure.ac): Likewise.
589
590 2011-05-05  Bruno Haible  <bruno@clisp.org>
591
592         btowc: Move AC_LIBOBJ invocations to module description.
593         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
594         invocations from here...
595         * modules/btowc (configure.ac): ... to here.
596
597 2011-05-21  Bruno Haible  <bruno@clisp.org>
598
599         atexit: Move AC_LIBOBJ invocations to module description.
600         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
601         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
602         here...
603         * modules/atexit (configure.ac): ... to here.
604
605 2011-05-05  Bruno Haible  <bruno@clisp.org>
606
607         atoll: Move AC_LIBOBJ invocations to module description.
608         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
609         invocations from here...
610         * modules/atoll (configure.ac): ... to here.
611
612 2011-05-05  Bruno Haible  <bruno@clisp.org>
613
614         argz: Move AC_LIBOBJ invocations to module description.
615         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
616         * modules/argz (configure.ac): ... to here.
617
618 2011-05-05  Bruno Haible  <bruno@clisp.org>
619
620         alphasort: Move AC_LIBOBJ invocations to module description.
621         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
622         gl_PREREQ_ALPHASORT invocations from here...
623         * modules/alphasort (configure.ac): ... to here.
624
625 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
626
627         verify: new macro verify_expr; verify_true deprecated
628         * NEWS: Mention this.
629         * doc/verify.texi (Compile-time Assertions): Document this.
630         * lib/verify.h (verify_true): Deprecate.
631         (verify_expr): New macro.
632         * tests/test-verify.c (function): Test verify_expr.
633
634 2011-06-14  Jim Meyering  <meyering@redhat.com>
635
636         init.sh: give more portable redirection-related advice in a comment
637         * tests/init.sh (stderr_fileno_): Update the advice in comments.
638         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
639         for lots of discussion.  Stefano Lattarini suggested the solution
640         of putting "9>&2" after the command.  Reported by Bruno Haible.
641
642 2011-06-13  Bruno Haible  <bruno@clisp.org>
643
644         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
645         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
646         'none'.
647
648 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
649
650         ftoastr: use strtof only if HAVE_STRTOF
651         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
653         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
654         * modules/ftoastr (configure.ac): Check for strtof.
655
656 2011-06-13  Bruno Haible  <bruno@clisp.org>
657
658         gnulib-tool: Addendum to 2011-06-08 commit.
659         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
660         and --witness-c-macro have been given, augment AM_CPPFLAGS.
661
662 2011-06-13  Bruno Haible  <bruno@clisp.org>
663
664         fseeko: Provide a non-inline replacement of fseek().
665         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
666         * modules/fseeko (Depends-on): Add fseek.
667         * modules/fseek (License): Change to LGPLv2+.
668
669 2011-06-13  Bruno Haible  <bruno@clisp.org>
670
671         ftello: Provide a non-inline replacement of ftell().
672         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
673         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
674         not have ftello() (such as on mingw).
675         * modules/ftello (Depends-on): Add ftell.
676         * modules/ftell (License): Change to LGPLv2+.
677
678 2011-05-07  Bruno Haible  <bruno@clisp.org>
679
680         ftell: Move AC_LIBOBJ invocations to module description.
681         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
682         * modules/ftell (configure.ac): ... to here.
683
684 2011-05-07  Bruno Haible  <bruno@clisp.org>
685
686         ftello: Respect rules for use of AC_LIBOBJ.
687         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
688         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
689         here...
690         * modules/ftello (configure.ac): ... to here.
691
692 2011-05-07  Bruno Haible  <bruno@clisp.org>
693
694         fseeko: Simplify.
695         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
696         (gl_FUNC_FSEEKO): Inline it here.
697
698 2011-05-07  Bruno Haible  <bruno@clisp.org>
699
700         fseek: Move AC_LIBOBJ invocations to module description.
701         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
702         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
703         * modules/fseek (configure.ac): ... to here.
704
705 2011-05-07  Bruno Haible  <bruno@clisp.org>
706
707         fseek: Respect rules for use of AC_LIBOBJ.
708         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
709         here...
710         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
711
712 2011-05-07  Bruno Haible  <bruno@clisp.org>
713
714         fseeko: Respect rules for use of AC_LIBOBJ.
715         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
716         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
717         here...
718         * modules/fseeko (configure.ac): ... to here.
719
720 2011-06-13  Bruno Haible  <bruno@clisp.org>
721
722         gnulib-tool: Allow comments in the 'Depends-on' section.
723         * doc/gnulib.texi (Module description): Mention comment syntax in the
724         Depends-on section.
725         * gnulib-tool (func_get_dependencies): Filter out comment lines.
726
727 2011-06-13  Bruno Haible  <bruno@clisp.org>
728
729         file-set.h: guard __attibute__ use, now that it's not always defined
730         * lib/file-set.h (record_file): Use __attribute__ only with compiler
731         versions that support it.  This fixes a coreutils build failure with
732         the vendor cc on HP-UX 11.31.
733
734 2011-06-12  Bruno Haible  <bruno@clisp.org>
735
736         acl: Add support for HP-UX >= 11.11 JFS ACLs.
737         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
738         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
739         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
740         (acl, aclsort): New declarations.
741         (aclv_nontrivial): New declaration.
742         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
743         (file_has_acl): Read also the second kind of HP-UX ACLs.
744         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
745         kind of HP-UX ACLs if the first kind fails.
746         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
747         second kind of HP-UX ACLs.
748         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
749         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
750         agree.
751         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
752         hpuxjfs.
753         Handle hpuxjfs.
754         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
755         hpuxjfs.
756         Handle hpuxjfs.
757         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
758         (func_test_same_acls): Use both lsacl and getacl.
759         Handle hpuxjfs.
760         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
761         (func_test_same_acls): Use both lsacl and getacl.
762         Handle hpuxjfs.
763
764 2011-06-12  Bruno Haible  <bruno@clisp.org>
765
766         acl: Complete the 2010-08-10 fix.
767         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
768         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
769         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
770         explicitly.
771         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
772         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
773
774 2011-06-12  Bruno Haible  <bruno@clisp.org>
775
776         spawn-pipe tests: Comments.
777         * tests/test-spawn-pipe-child.c (main): Update comment.
778         Reported by James Youngman <jay@gnu.org>.
779
780 2011-06-11  James Youngman  <jay@gnu.org>
781
782         New module 'stat-size'.
783         * modules/stat-size: New module.  Provides macros for accessing
784         file size information in instances of struct stat.  Depends on the
785         fileblocks module because it calls st_blocks.
786         * lib/stat-size.h: New file, adapted from coreutils' system.h.
787         * doc/gnulib.texi: Include stat-size.texi.
788         * doc/stat-size.texi: Documentation for this module.
789         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
790         * m4/fileblocks.m4: Mention that stat-size depends on the call to
791         AC_STRUCT_ST_BLOCKS.
792
793 2011-06-09  Bruno Haible  <bruno@clisp.org>
794
795         thread: Support pthreads-win32.
796         * lib/glthread/thread.h (gl_thread_self): Define differently on
797         pthreads-win32.
798         (gl_null_thread): New declaration.
799         (gl_thread_self_pointer): New macro.
800         * lib/glthread/thread.c (gl_null_thread): New constant.
801         * tests/test-lock.c: Use gl_thread_self_pointer instead of
802         gl_thread_self.
803         * tests/test-tls.c: Likewise.
804         Suggested by Paul Eggert. Reported by Eric Blake.
805
806 2011-06-09  Bruno Haible  <bruno@clisp.org>
807
808         thread: Fix confusion between NULL and 0.
809         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
810         Reported by Paul Eggert.
811
812 2011-06-09  Bruno Haible  <bruno@clisp.org>
813
814         spawn-pipe tests: Avoid test failure on HP-UX 11.
815         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
816         is closed.
817
818 2011-06-09  Bruno Haible  <bruno@clisp.org>
819
820         acl tests: Fix compilation error on HP-UX 11.
821         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
822
823 2011-06-09  Bruno Haible  <bruno@clisp.org>
824
825         rmdir: Avoid test failure on HP-UX 10.20.
826         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
827         EEXIST.
828
829 2011-06-08  Eric Blake  <eblake@redhat.com>
830
831         perror: fix test on mingw
832         * modules/perror-tests (Depends-on): Add dup2.
833
834         strerror_r-posix: fix on MacOS
835         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
836         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
837         logic bug.
838         * lib/strerror_r.c (strerror_r): Fix the bug.
839         * lib/strerror.c (strerror): Likewise.
840         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
841         problem.
842         * doc/posix-functions/strerror.texi (strerror): Likewise.
843         * doc/posix-functions/perror.texi (perror): Likewise.
844         * tests/test-strerror.c (main): Enhance test.
845         * tests/test-strerror_r.c (main): Likewise.
846
847 2011-06-08  Bruno Haible  <bruno@clisp.org>
848
849         gnulib-tool: Better isolation between different gnulib-tool invocations.
850         * gnulib-tool: New option --witness-c-macro.
851         (witness_c_macro): New variable.
852         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
853         AM_CPPFLAGS define it as a C macro.
854         (func_emit_tests_Makefile_am): Likewise.
855         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
856         read it from there.
857         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
858         m4_define, not AC_DEFUN.
859         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
860         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
861         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
862         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
863         s|...|...|, to substitute the values of the GNULIB_* module indicator
864         variables.
865         * modules/dirent (Makefile.am): Likewise.
866         * modules/fcntl-h (Makefile.am): Likewise.
867         * modules/iconv-h (Makefile.am): Likewise.
868         * modules/langinfo (Makefile.am): Likewise.
869         * modules/locale (Makefile.am): Likewise.
870         * modules/math (Makefile.am): Likewise.
871         * modules/netdb (Makefile.am): Likewise.
872         * modules/poll-h (Makefile.am): Likewise.
873         * modules/pty (Makefile.am): Likewise.
874         * modules/search (Makefile.am): Likewise.
875         * modules/signal (Makefile.am): Likewise.
876         * modules/spawn (Makefile.am): Likewise.
877         * modules/stdio (Makefile.am): Likewise.
878         * modules/stdlib (Makefile.am): Likewise.
879         * modules/string (Makefile.am): Likewise.
880         * modules/sys_ioctl (Makefile.am): Likewise.
881         * modules/sys_select (Makefile.am): Likewise.
882         * modules/sys_socket (Makefile.am): Likewise.
883         * modules/sys_stat (Makefile.am): Likewise.
884         * modules/sys_times (Makefile.am): Likewise.
885         * modules/sys_utsname (Makefile.am): Likewise.
886         * modules/sys_wait (Makefile.am): Likewise.
887         * modules/termios (Makefile.am): Likewise.
888         * modules/time (Makefile.am): Likewise.
889         * modules/unistd (Makefile.am): Likewise.
890         * modules/wchar (Makefile.am): Likewise.
891
892 2011-06-08  Eric Blake  <eblake@redhat.com>
893
894         strerror: simplify replacement
895         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
896         * modules/strerror (configure.ac): No prereqs needed here...
897         * modules/strerror-override (configure.ac): ...but this needs it.
898         (Files): Add file for needed prereq macro.
899
900 2011-06-08  Bruno Haible  <bruno@clisp.org>
901
902         strerror_r-posix: Tweaks.
903         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
904         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
905         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
906         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
907         (gl_FUNC_STRERROR_R): ... to here.
908         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
909
910 2011-06-07  Eric Blake  <eblake@redhat.com>
911
912         perror: document fixed bugs
913         * doc/posix-functions/perror.texi (perror): Document recent
914         patches.
915
916 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
917
918         stat-time: get_stat_birthtime failure is better-defined
919         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
920         return a timestamp whose tv_sec and tv_nsec values are both -1.
921         Previously, the spec said only that the tv_nsec value was negative.
922         This upward-compatible change simplifies GNU tar a bit.
923
924 2011-06-07  Eric Blake  <eblake@redhat.com>
925
926         strerror_r-posix: work around cygwin 1.7.9
927         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
928         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
929         bug without replacing strerror_r.
930         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
931         strerror_r is buggy, but without requiring strerror_r compilation.
932         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
933
934         test-perror: relax test to ignore cygwin bug
935         * tests/test-perror2.c (main): Relax test on requiring detection
936         of stream errors, and use unbuffered stream.
937         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
938         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
939         * doc/posix-functions/fputc.texi (fputc): Likewise.
940         * doc/posix-functions/fputs.texi (fputs): Likewise.
941         * doc/posix-functions/fputws.texi (fputws): Likewise.
942         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
943         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
944         * doc/posix-functions/getopt.texi (getopt): Likewise.
945         * doc/posix-functions/perror.texi (perror): Likewise.
946         * doc/posix-functions/printf.texi (printf): Likewise.
947         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
948         * doc/posix-functions/psignal.texi (psignal): Likewise.
949         * doc/posix-functions/putc.texi (putc): Likewise.
950         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
951         Likewise.
952         * doc/posix-functions/putchar.texi (putchar): Likewise.
953         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
954         Likewise.
955         * doc/posix-functions/puts.texi (puts): Likewise.
956         * doc/posix-functions/putwc.texi (putwc): Likewise.
957         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
958         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
959         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
960         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
961         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
962         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
963         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
964         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
965
966 2011-05-22  Bruno Haible  <bruno@clisp.org>
967
968         strerror: Move AC_LIBOBJ invocations to module description.
969         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
970         gl_PREREQ_STRERROR invocations from here...
971         * modules/strerror (configure.ac): ... to here.
972
973 2011-05-21  Bruno Haible  <bruno@clisp.org>
974
975         perror: Use common idiom.
976         * modules/perror (configure.ac): Reorder statements.
977
978 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
979
980         tests: fix usage message in 'mktempd_'
981         * tests/init.sh (mktempd_): In the usage message, use literal
982         'mktempd_', not '$ME' (which is even undefined), as the name of
983         the subroutine.
984
985 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
986
987         tests init: new function 'fatal_', for hard errors
988         Before this patch, the only way offered by tests/init.sh to
989         properly signal a hard error was the `framework_failure_'
990         function.  But the error message issued by that function,
991         as its name would suggest, refers to a set-up failure in the
992         testsuite, while hard errors can obviously also be due to
993         other reasons.  The best way to fix this inconsistency is to
994         introduce a new function with a more general error message.
995         * tests/init.sh (fatal_): New function.
996
997 2011-06-06  Eric Blake  <eblake@redhat.com>
998
999         canonicalize-lgpl: use common idiom
1000         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1001         over newer POSIX -Rf.
1002         Reported by Bruno Haible.
1003
1004         canonicalize-lgpl: work around AIX realpath bug
1005         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1006         * doc/posix-functions/realpath.texi (realpath): Document it.
1007         Reported by Bruno Haible.
1008
1009         strerror: work around FreeBSD bug
1010         * lib/strerror.c (strerror): Special case 0.
1011         Reported by Bruno Haible.
1012
1013         strerror-override: avoid bloating errno module
1014         * modules/errno (Files, configure.ac): Move replacement strings...
1015         * modules/strerror-override: ...to new module.
1016         * modules/strerror (Depends-on): Add strerror-override.
1017         * modules/strerror_r-posix (Depends-on): Likewise.
1018         * MODULES.html.sh: Document new module.
1019         Reported by Bruno Haible.
1020
1021 2011-06-06  Bruno Haible  <bruno@clisp.org>
1022
1023         spawn-pipe tests: Rename program.
1024         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1025         * tests/test-spawn-pipe-child.c: Update comment.
1026         * tests/test-spawn-pipe.sh: Update.
1027         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1028
1029         spawn-pipe tests: Link the child program only against libc.
1030         * tests/test-spawn-pipe-child.c: New file, extracted from
1031         tests/test-spawn-pipe.c.
1032         (main): Expect only one argument.
1033         (is_open): New function, copied from tests/test-pipe.c.
1034         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1035         (child_main): Remove function.
1036         (test_pipe): Pass only one argument to the child program.
1037         (main): Remove child process code. Expect the child program's name as
1038         first argument.
1039         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1040         argument.
1041         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1042         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1043         test-spawn-pipe-child against no libraries.
1044
1045 2011-06-06  Bruno Haible  <bruno@clisp.org>
1046
1047         careadlinkat: Avoid mismatch between ssize_t and int.
1048         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1049         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1050
1051 2011-06-06  Jim Meyering  <meyering@redhat.com>
1052
1053         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1054         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1055         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1056
1057 2011-06-05  Bruno Haible  <bruno@clisp.org>
1058
1059         ansi-c++-opt: Interoperability with libtool.
1060         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1061         set the variable to "no", not to ":".
1062         * NEWS: Mention the change.
1063
1064 2011-06-05  Bruno Haible  <bruno@clisp.org>
1065
1066         acl: Fix test failure on AIX 7.
1067         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1068         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1069
1070 2011-06-05  Bruno Haible  <bruno@clisp.org>
1071
1072         pipe-filter-ii: Fix test failure on AIX and IRIX.
1073         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1074         with EAGAIN, retry with a smaller buffer size.
1075
1076 2011-06-05  Bruno Haible  <bruno@clisp.org>
1077
1078         localename: Fix link dependencies.
1079         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1080         * modules/localename-tests (Makefile.am): Link test-localename with
1081         $(LIBTHREAD).
1082
1083 2011-06-05  Bruno Haible  <bruno@clisp.org>
1084
1085         error: Avoid gcc warning.
1086         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1087
1088 2011-06-05  Bruno Haible  <bruno@clisp.org>
1089
1090         unsetenv: Avoid gcc warning.
1091         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1092
1093 2011-06-05  Bruno Haible  <bruno@clisp.org>
1094
1095         setenv: Avoid gcc warning.
1096         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1097
1098 2011-06-05  Bruno Haible  <bruno@clisp.org>
1099
1100         sys_select: Ensure memset is declared also on AIX 7.
1101         * lib/sys_select.in.h: Include <string.h> also on AIX.
1102         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1103         self-contained also on AIX 7.1.
1104
1105 2011-06-04  Jim Meyering  <meyering@redhat.com>
1106
1107         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1108         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1109         function name, "error".
1110         (_gl_translatable_diag_func_re): New configurable variable.
1111
1112 2011-06-04  Bruno Haible  <bruno@clisp.org>
1113
1114         getopt: Avoid gcc warning.
1115         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1116
1117 2011-06-04  Bruno Haible  <bruno@clisp.org>
1118
1119         strerror_r: Fix comments.
1120         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1121         commit.
1122
1123 2011-06-04  Bruno Haible  <bruno@clisp.org>
1124
1125         perror: Fix compilation error.
1126         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1127         Undefine fprintf, not sprintf.
1128         * modules/perror (Depends-on): Remove intprops, verify.
1129
1130 2011-06-04  Bruno Haible  <bruno@clisp.org>
1131
1132         setlocale: Enable replacement on Cygwin 1.5.
1133         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1134         Cygwin 1.5.x.
1135         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1136         LC_CTYPE category also exists on Cygwin 1.5.x.
1137
1138 2011-06-04  Bruno Haible  <bruno@clisp.org>
1139
1140         strerror-override: Don't disable symbol renamings.
1141         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1142         * lib/strerror-override.c: Include config.h.
1143         (strerror_override): Don't undefine.
1144
1145 2011-06-03  Bruno Haible  <bruno@clisp.org>
1146
1147         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1148         * lib/localename.h: Update copyright header.
1149         * lib/localename.c: Likewise.
1150         * lib/relocatable.h: Likewise.
1151         * lib/relocatable.c: Likewise.
1152
1153 2011-06-02  Bruno Haible  <bruno@clisp.org>
1154
1155         doc: Fix a module name.
1156         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1157
1158 2011-06-02  Bruno Haible  <bruno@clisp.org>
1159
1160         pipe2: Remove dependency on 'nonblocking' module.
1161         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1162         O_NONBLOCK is defined by gnulib.
1163         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1164         is zero.
1165         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1166         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1167         defined by gnulib.
1168         (get_nonblocking_flag): New function.
1169         (main): Test O_NONBLOCK flag only if it is nonzero.
1170         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1171
1172 2011-06-03  Jim Meyering  <meyering@redhat.com>
1173
1174         maint: three new prohibit-header-without-use rules
1175         Prohibit use of cloexec.h, posixver.h, same.h without use.
1176         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1177         (sc_prohibit_posixver_without_use): Likewise.
1178         (sc_prohibit_same_without_use): Likewise.
1179
1180 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1181
1182         allocator: 'die' routine is now given requested size
1183         * lib/allocator.h (struct allocator.die): New size arg.
1184         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1185         If the actual problem is an ssize_t limitation, not a size_t or
1186         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1187
1188 2011-06-01  Eric Blake  <eblake@redhat.com>
1189
1190         strerror: drop strerror_r dependency
1191         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1192         * lib/strerror-override.c (strerror_override): ...to new file.
1193         * lib/strerror-override.h: Add prototype.
1194         * lib/strerror-impl.h: Delete.
1195         * lib/strerror.c (strerror): New implementation.
1196         * modules/errno (Files): Add new files.
1197         (configure.ac): Compile new file as appropriate.
1198         * modules/strerror (Files): Drop unused file.
1199         (Depends-on): Drop strerror_r-posix.
1200         * MODULES.html.sh: Document strerror_r-posix.
1201         Requested by Sam Steingold.
1202
1203         perror: call strerror_r directly
1204         * modules/perror (Files): Drop strerror-impl.h.
1205         * lib/perror.c (perror): Use our own stack buffer, rather than
1206         calling a wrapper that uses static storage.
1207         * doc/posix-functions/perror.texi (perror): Document a limitation
1208         of our replacement.
1209
1210         strerror_r: fix includes for FreeBSD
1211         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1212         since we use abort on some platforms.
1213         Reported by Matthias Bolte.
1214
1215 2011-05-31  Bruno Haible  <bruno@clisp.org>
1216
1217         Fix link errors in tests: openat-die uses gettext-h.
1218         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1219         against $(LIBINTL).
1220         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1221         against $(LIBINTL).
1222         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1223         $(LIBINTL).
1224         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1225         against $(LIBINTL).
1226         * modules/linkat-tests (Makefile.am): Link test-linkat against
1227         $(LIBINTL).
1228         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1229         $(LIBINTL).
1230         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1231         against $(LIBINTL).
1232         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1233         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1234         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1235         $(LIBINTL).
1236         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1237         $(LIBINTL).
1238         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1239         $(LIBINTL).
1240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1241
1242 2011-05-31  Bruno Haible  <bruno@clisp.org>
1243
1244         Fix link errors in tests: wait-process uses gettext-h.
1245         * modules/nonblocking-pipe-tests (Makefile.am): Set
1246         test_nonblocking_pipe_main_LDADD.
1247         * modules/nonblocking-socket-tests (Makefile.am): Link
1248         test-nonblocking-socket-main against $(LIBINTL).
1249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1250
1251 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1252
1253         assert-h: work around 'verify' incompatibility
1254         * lib/verify.h: Use @...@ directives, not ifdef.
1255         * modules/assert-h (assert.h): Implement the directives.
1256         (assert.h): Substitute the symbol-prefix more consistently.
1257
1258 2011-05-29  Jim Meyering  <meyering@redhat.com>
1259
1260         trim: remove three superfluous assignments
1261         * lib/trim.c (trim2): Remove three superfluous assignments
1262         and correct brace positioning.
1263
1264 2011-05-29  Bruno Haible  <bruno@clisp.org>
1265
1266         wctype-h: Avoid namespace pollution on Solaris 2.6.
1267         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1268         identifiers.
1269         * doc/posix-headers/wctype.texi: Mention the problem.
1270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1271
1272 2011-05-28  Jim Meyering  <meyering@redhat.com>
1273
1274         parse-datetime.y: accommodate -Wstrict-overflow
1275         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1276         placate -Wstrict-overflow.
1277
1278         trim: avoid a warning from -O2 -Wstrict-overflow
1279         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1280
1281 2011-05-29  Bruno Haible  <bruno@clisp.org>
1282
1283         gnulib-tool: Fix bug in yesterday's commit.
1284         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1285         twice.
1286
1287 2011-05-29  Bruno Haible  <bruno@clisp.org>
1288
1289         Allow multiple gnulib generated include files to be combined.
1290         * gnulib-tool (func_compute_include_guard_prefix): New function.
1291         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1292         ${gl_include_guard_prefix} references.
1293         (func_import, func_create_testdir): Invoke
1294         func_compute_include_guard_prefix.
1295         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1296         * lib/ctype.in.h: Likewise.
1297         * lib/dirent.in.h: Likewise.
1298         * lib/errno.in.h: Likewise.
1299         * lib/fcntl.in.h: Likewise.
1300         * lib/float.in.h: Likewise.
1301         * lib/getopt.in.h: Likewise.
1302         * lib/iconv.in.h: Likewise.
1303         * lib/langinfo.in.h: Likewise.
1304         * lib/locale.in.h: Likewise.
1305         * lib/math.in.h: Likewise.
1306         * lib/netdb.in.h: Likewise.
1307         * lib/netinet_in.in.h: Likewise.
1308         * lib/poll.in.h: Likewise.
1309         * lib/pthread.in.h: Likewise.
1310         * lib/pty.in.h: Likewise.
1311         * lib/sched.in.h: Likewise.
1312         * lib/se-selinux.in.h: Likewise.
1313         * lib/search.in.h: Likewise.
1314         * lib/signal.in.h: Likewise.
1315         * lib/spawn.in.h: Likewise.
1316         * lib/stdarg.in.h: Likewise.
1317         * lib/stddef.in.h: Likewise.
1318         * lib/stdint.in.h: Likewise.
1319         * lib/stdio.in.h: Likewise.
1320         * lib/stdlib.in.h: Likewise.
1321         * lib/string.in.h: Likewise.
1322         * lib/strings.in.h: Likewise.
1323         * lib/sys_file.in.h: Likewise.
1324         * lib/sys_ioctl.in.h: Likewise.
1325         * lib/sys_select.in.h: Likewise.
1326         * lib/sys_socket.in.h: Likewise.
1327         * lib/sys_stat.in.h: Likewise.
1328         * lib/sys_time.in.h: Likewise.
1329         * lib/sys_times.in.h: Likewise.
1330         * lib/sys_uio.in.h: Likewise.
1331         * lib/sys_utsname.in.h: Likewise.
1332         * lib/sys_wait.in.h: Likewise.
1333         * lib/sysexits.in.h: Likewise.
1334         * lib/termios.in.h: Likewise.
1335         * lib/time.in.h: Likewise.
1336         * lib/unistd.in.h: Likewise.
1337         * lib/wchar.in.h: Likewise.
1338         * lib/wctype.in.h: Likewise.
1339         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1340         * modules/ctype (Makefile.am): Likewise.
1341         * modules/dirent (Makefile.am): Likewise.
1342         * modules/errno (Makefile.am): Likewise.
1343         * modules/fcntl-h (Makefile.am): Likewise.
1344         * modules/float (Makefile.am): Likewise.
1345         * modules/getopt-posix (Makefile.am): Likewise.
1346         * modules/iconv-h (Makefile.am): Likewise.
1347         * modules/langinfo (Makefile.am): Likewise.
1348         * modules/locale (Makefile.am): Likewise.
1349         * modules/math (Makefile.am): Likewise.
1350         * modules/netdb (Makefile.am): Likewise.
1351         * modules/netinet_in (Makefile.am): Likewise.
1352         * modules/poll-h (Makefile.am): Likewise.
1353         * modules/pthread (Makefile.am): Likewise.
1354         * modules/pty (Makefile.am): Likewise.
1355         * modules/sched (Makefile.am): Likewise.
1356         * modules/search (Makefile.am): Likewise.
1357         * modules/selinux-h (Makefile.am): Likewise.
1358         * modules/signal (Makefile.am): Likewise.
1359         * modules/spawn (Makefile.am): Likewise.
1360         * modules/stdarg (Makefile.am): Likewise.
1361         * modules/stddef (Makefile.am): Likewise.
1362         * modules/stdint (Makefile.am): Likewise.
1363         * modules/stdio (Makefile.am): Likewise.
1364         * modules/stdlib (Makefile.am): Likewise.
1365         * modules/string (Makefile.am): Likewise.
1366         * modules/strings (Makefile.am): Likewise.
1367         * modules/sys_file (Makefile.am): Likewise.
1368         * modules/sys_ioctl (Makefile.am): Likewise.
1369         * modules/sys_select (Makefile.am): Likewise.
1370         * modules/sys_socket (Makefile.am): Likewise.
1371         * modules/sys_stat (Makefile.am): Likewise.
1372         * modules/sys_time (Makefile.am): Likewise.
1373         * modules/sys_times (Makefile.am): Likewise.
1374         * modules/sys_uio (Makefile.am): Likewise.
1375         * modules/sys_utsname (Makefile.am): Likewise.
1376         * modules/sys_wait (Makefile.am): Likewise.
1377         * modules/sysexits (Makefile.am): Likewise.
1378         * modules/termios (Makefile.am): Likewise.
1379         * modules/time (Makefile.am): Likewise.
1380         * modules/unistd (Makefile.am): Likewise.
1381         * modules/wchar (Makefile.am): Likewise.
1382         * modules/wctype-h (Makefile.am): Likewise.
1383         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1384
1385 2011-05-29  Bruno Haible  <bruno@clisp.org>
1386
1387         assert-h: Allow multiple gnulib generated replacements to coexist.
1388         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1389
1390 2011-05-29  Bruno Haible  <bruno@clisp.org>
1391
1392         argp: Allow coexistence with strerror_r-posix module.
1393         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1394         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1395         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1396         not the glibc signature.
1397
1398 2011-05-28  Bruno Haible  <bruno@clisp.org>
1399
1400         gnulib-tool: Alternative structure of testdirs, similar to --import.
1401         * gnulib-tool: New option --single-configure.
1402         (func_usage): Document it.
1403         (single_configure): New variable.
1404         (func_modules_transitive_closure_separately,
1405         func_modules_transitive_closure_separately,
1406         func_determine_use_libtests, func_modules_add_dummy_separately,
1407         func_modules_to_filelist_separately): New functions, extracted from
1408         func_import.
1409         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1410         (func_import): Use the new functions.
1411         (func_create_testdir): Set final_modules. Handle $single_configure =
1412         true case.
1413
1414 2011-05-28  Bruno Haible  <bruno@clisp.org>
1415
1416         getloadavg: Remove an unreliable safety check.
1417         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1418         getloadavg.c is in place.
1419         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1420         Reported by Sam Steingold <sds@gnu.org>.
1421
1422 2011-05-28  Bruno Haible  <bruno@clisp.org>
1423
1424         doc: Cleanup yet another file produced by texinfo.tex.
1425         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1426
1427 2011-05-28  Bruno Haible  <bruno@clisp.org>
1428
1429         Finish the conditional dependencies mechanism.
1430         * gnulib-tool: New option --no-conditional-dependencies.
1431         (func_usage): Document it. Don't mark --conditional-dependencies as
1432         experimental.
1433         (cond_dependencies): The possible values can now be true, false, empty.
1434         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1435         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1436         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1437
1438 2011-05-28  Bruno Haible  <bruno@clisp.org>
1439
1440         doc: Use a recent texinfo.tex.
1441         * doc/Makefile (tex_opts): New variable.
1442         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1443
1444 2011-05-28  Jim Meyering  <meyering@redhat.com>
1445
1446         intprops.h: adjust comment to match code change
1447         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1448         only once, it *may* have side effects.  Also fix an unrelated typo.
1449         (_GL_INT_SIGNED): Likewise.
1450
1451 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1452
1453         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1454
1455 2011-05-26  Bruno Haible  <bruno@clisp.org>
1456
1457         mbsrchr: Avoid collision with system function on Interix.
1458         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1459         Reported by Markus Duft <mduft@gentoo.org>.
1460
1461 2011-05-15  James Youngman  <jay@gnu.org>
1462
1463         getopt: for ambiguous options, enumerate the possibilities.
1464         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1465         the ambiguous options when an ambiguous prefix is given. This was
1466         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1467         glibc change was
1468         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1469
1470 2011-05-25  Eric Blake  <eblake@redhat.com>
1471
1472         getcwd: work around mingw bug
1473         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1474         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1475         Reported by Matthias Bolte.
1476
1477 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1478
1479         test-intprops: disable -Wtype-limits diagnostics
1480         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1481         diagnostics.  Otherwise, the integer overflow macros generate many
1482         diagnostics.  Reported by Jim Meyering in
1483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1484
1485         intprops: shorten, to pacify gcc -Woverlength-strings
1486         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1487         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1488         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1489         likely to run afoul of C compiler limits for string constant lengths.
1490         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1491
1492 2011-05-24  Eric Blake  <eblake@redhat.com>
1493
1494         docs: document recently fixed glibc printf bug
1495         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1496         * doc/posix-functions/printf.texi (printf): Likewise.
1497         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1498         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1499
1500         closein-tests: convert to init.sh
1501         * modules/closein-tests (Files): Add init.sh
1502         * tests/test-closein.sh Use it.
1503
1504         yesno-tests: convert to init.sh
1505         * modules/yesno-tests (Files): Add init.sh.
1506         * tests/test-yesno.sh: Use it.
1507
1508         atexit-tests: ensure reliable exit status
1509         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1510         Reported by Bruno Haible.
1511
1512 2011-05-24  Bruno Haible  <bruno@clisp.org>
1513
1514         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1515         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1516         gl_PREREQ_STRERROR_R invocations from here...
1517         * modules/strerror_r-posix (configure.ac): ... to here.
1518
1519 2011-05-24  Eric Blake  <eblake@redhat.com>
1520
1521         strerror_r: fix missing header
1522         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1523
1524         strerror_r: fix AIX test failures
1525         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1526         ERANGE failure.
1527
1528         strerror_r: fix Solaris test failures
1529         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1530         failures.
1531         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1532
1533         strerror_r: enforce POSIX recommendations
1534         * lib/strerror_r.c (safe_copy): New helper method.
1535         (strerror_r): Guarantee a non-empty string.
1536         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1537         recent POSIX rulings and to match our strerror guarantees.
1538         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1539
1540 2011-05-24  Jim Meyering  <meyering@redhat.com>
1541
1542         test-perror2.c: avoid warning about unused variable
1543         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1544
1545 2011-05-24  Eric Blake  <eblake@redhat.com>
1546
1547         perror: avoid spurious test failure on HP-UX
1548         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1549
1550         tests: fix logic bug in init.sh
1551         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1552         shell.
1553
1554 2011-05-24  Jim Meyering  <meyering@redhat.com>
1555
1556         utimensat: do not reference an out-of-scope buffer
1557         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1558         declared in an inner scope, yet "times" would be dereferenced outside
1559         the scope in which "ts" was valid.
1560         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1561         of ts[2] "out/up", so that the use of aliased "times" (via
1562         "times = ts;") does not end up referencing an out-of-scope "ts"
1563
1564         opendir-safer.c: don't clobber errno; don't close negative FD
1565         * lib/opendir-safer.c (opendir_safer):
1566         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1567         file descriptor, and more importantly, don't clobber the
1568         offending errno value with EINVAL.  Before, upon failure
1569         of dup_safer, we would pass the negative file descriptor to
1570         fdopendir, which would clobber errno.
1571
1572 2011-05-23  Bruno Haible  <bruno@clisp.org>
1573
1574         idcache: Fix module description.
1575         * modules/idcache (Include): Set to "idcache.h".
1576
1577 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1578
1579         gnulib-tool: fix portability problem with MacOS sed
1580         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1581         before the "}".  Problem reported by Leo in
1582         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1583         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1584         sed_extract_condition1, sed_extract_condition2.
1585
1586 2011-05-23  Bruno Haible  <bruno@clisp.org>
1587
1588         hash: Simplify autoconf macro.
1589         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1590
1591 2011-05-23  Bruno Haible  <bruno@clisp.org>
1592
1593         getugroups: Fix module description.
1594         * modules/getugroups (Include): Set to "getugroups.h".
1595
1596 2011-05-23  Bruno Haible  <bruno@clisp.org>
1597
1598         linkat: Simplify autoconf macro.
1599         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1600
1601 2011-05-23  Bruno Haible  <bruno@clisp.org>
1602             Eric Blake  <eblake@redhat.com>
1603
1604         linkat, renameat: Update dependencies.
1605         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1606         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1607         symlinkat.
1608
1609 2011-05-23  Jim Meyering  <meyering@redhat.com>
1610
1611         maint.mk: more tight_scope improvements
1612         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1613         (_gl_TS_headers): Define only in if-0'd block.
1614         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1615         sometimes we must *not* use it.  Adjust uses accordingly.
1616         (sc_tight_scope): Use much simpler grep-based test to determine
1617         whether we skip this rule.
1618
1619         maint.mk: generalize/improve the tight-scope rule
1620         * top/maint.mk: Emit a warning when the test is skipped.
1621         (_gl_TS_dir): Add $(srcdir)/ prefix.
1622         (_gl_TS_function_match): Simplify, rather than trying
1623         to enumerate common types.  Otherwise, it would fail to match an
1624         "extern unsigned char const *" declaration in idutils.
1625         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1626         a way to support use of that type of macro.
1627         (_gl_TS_var_match): Simplify regexp.
1628         (_gl_TS_obj_files): New configurable variable.
1629         (_gl_TS_headers): Likewise.
1630
1631 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1632
1633         verify: fix bug when gnulib <assert.h> is also included
1634         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1635         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1636         Perhaps there's a better way, but this fixes the immediate problem.
1637         Problem reported by Bruno Haible in
1638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1639
1640 2011-05-22  Bruno Haible  <bruno@clisp.org>
1641
1642         xgetcwd: Simplify autoconf macro.
1643         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1644
1645 2011-05-22  Bruno Haible  <bruno@clisp.org>
1646
1647         New module 'mktime-internal'.
1648         * modules/mktime-internal: New file.
1649         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1650         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1651         mktime_internal as a C macro if libc has __mktime_internal.
1652         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1653         conditions.
1654         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1655
1656 2011-05-22  Bruno Haible  <bruno@clisp.org>
1657
1658         timegm: Correct mktime replacement statements.
1659         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1660         defining mktime as a C macro. This completes a 2009-07-28 commit.
1661
1662 2011-05-22  Bruno Haible  <bruno@clisp.org>
1663
1664         timegm: Simplify autoconf macro.
1665         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1666
1667 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1668
1669         clock-time: change to LGPLv2+.
1670         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1671         BSD-like but we have no mark for that; this is good enough for now.
1672
1673 2011-05-21  Bruno Haible  <bruno@clisp.org>
1674
1675         strerror_r: Fix comments.
1676         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1677
1678 2011-05-21  Bruno Haible  <bruno@clisp.org>
1679
1680         relocatable-prog-wrapper: Fix possible link error.
1681         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1682         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1683         (gl_FUNC_SETENV): ... to here.
1684         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1685         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1686
1687 2011-05-21  Bruno Haible  <bruno@clisp.org>
1688
1689         relocatable-prog-wrapper: Assume strerror() exists.
1690         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1691         m4/strerror.m4.
1692         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1693         * lib/relocwrapper.c: Remove mention of strerror module.
1694         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1695         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1696         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1697         C macro.
1698
1699 2011-05-21  Bruno Haible  <bruno@clisp.org>
1700
1701         select: Simplify replacement idiom.
1702         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1703         Win32 platforms.
1704         * lib/sys_select.in.h (select): Simplify accordingly.
1705         * modules/select (Depends-on): Likewise.
1706
1707 2011-05-21  Bruno Haible  <bruno@clisp.org>
1708
1709         mkdir-p: Simplify autoconf macro.
1710         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1711         gl_FUNC_LCHOWN.
1712
1713 2011-05-21  Eric Blake  <eblake@redhat.com>
1714
1715         strerror_r: avoid clobbering strerror on cygwin
1716         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1717         fall back instead to sys_errlist.
1718         * modules/strerror (configure.ac): Add witness.
1719         * tests/test-strerror_r.c (main): Enhance test.
1720         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1721         * tests/test-perror2.c (main): Free memory before exit.
1722
1723 2011-05-21  Bruno Haible  <bruno@clisp.org>
1724
1725         mkdtemp: Use gnulib naming conventions.
1726         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1727         * modules/mkdtemp (configure.ac): Update.
1728
1729 2011-05-20  Eric Blake  <eblake@redhat.com>
1730
1731         strerror_r: avoid corrupting errno on Solaris
1732         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1733         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1734
1735         strerror_r: avoid compiler warning
1736         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1737
1738         strerror_r: simplify AIX code
1739         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1740
1741         test-perror: avoid spurious failure on FreeBSD
1742         * modules/perror-tests (Depends-on): Add strerror, now that
1743         strerror_r no longer pulls it in.
1744
1745 2011-05-20  Bruno Haible  <bruno@clisp.org>
1746
1747         strerror_r-posix: Remove unused dependencies.
1748         * modules/strerror_r-posix (Depends-on): Remove strerror.
1749         Reported by Eric Blake.
1750
1751 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1752
1753         intprops: remove assumption about A|B representation
1754         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1755         is a valid integer if both A and B are.  Although this is true for
1756         all known practical hosts, the C standard doesn't guarantee it,
1757         and the code need not assume it.  Also, this change may work around
1758         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1760
1761 2011-05-20  Eric Blake  <eblake@redhat.com>
1762
1763         perror: work around FreeBSD bug
1764         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1765         is broken.  Move AC_LIBOBJ...
1766         * modules/perror (configure.ac): Here.
1767         * doc/posix-functions/perror.texi (perror): Document this.
1768         * tests/test-perror2.c (main): Enhance test.
1769
1770         test-perror: check for strerror interactions
1771         * tests/macros.h (STREQ): Add macro.
1772         * modules/perror-tests (Files): Add second test.
1773         * tests/test-perror2.c (main): New file.
1774         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1775
1776         test-perror: rewrite to use init script
1777         * modules/perror-tests (Files): Add init.sh.
1778         * tests/test-perror.sh: Use temporary directory.
1779
1780 2011-05-20  Jim Meyering  <meyering@redhat.com>
1781
1782         maint: replace misused "a" with "an"
1783         * doc/intprops.texi: "a integer"
1784         * doc/regex.texi: "a explanation"
1785         * lib/alignof.h: "a object"
1786         * lib/argmatch.h: "a explanation"
1787         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1788         * lib/stdint.in.h: "a integer"
1789         * lib/userspec.c: "a owner"
1790         * doc/gnulib.texi: Fix "a idea", and reword.
1791
1792 2011-05-19  Jim Meyering  <meyering@redhat.com>
1793
1794         maint: correct misuse of "a" and "an"
1795         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1796         * lib/argp-help.c: "an docum...": s/an/a/
1797         * lib/argp-parse.c: "An vector": s/An/A/
1798         * lib/execute.c: "an native": s/an/a/
1799         * lib/spawn-pipe.c: Likewise.
1800         * lib/gc.h: "an Gc_rc": s/an/a/
1801         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1802         * lib/fts.c: "an stat.st_dev": s/an/a/
1803
1804 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1805
1806         intprops-tests: work around HP-UX 11.23 cc bug with constants
1807         * tests/test-intprops.c (VERIFY): New macro.
1808         (main): Use it, instead of verify, to work around the compiler bug; see
1809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1810
1811         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1812         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1813         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1814         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1815         (_GL_REMAINDER_OVERFLOW): Use it.
1816
1817         intprops-tests: revert unsigned part of previous change
1818         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1819         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1820         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1822
1823 2011-05-19  Bruno Haible  <bruno@clisp.org>
1824
1825         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1826         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1827         strerror_r() returned without filling the buffer.
1828         Reported by Eric Blake.
1829
1830 2011-05-19  Eric Blake  <eblake@redhat.com>
1831
1832         strerror_r: guarantee unchanged errno
1833         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1834         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1835         failure.
1836         * tests/test-strerror_r.c (main): Enhance test.
1837
1838 2011-05-19  Bruno Haible  <bruno@clisp.org>
1839
1840         strerror_r: Reorder #if blocks.
1841         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1842         for consistency with the previous commit.
1843
1844 2011-05-19  Bruno Haible  <bruno@clisp.org>
1845
1846         perror: Avoid clobbering the strerror buffer when possible.
1847         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1848         * lib/strerror.c: Include it.
1849         * modules/strerror (Files): Add lib/strerror-impl.h.
1850         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1851         (my_strerror): New function, defined through lib/strerror-impl.h.
1852         (perror): Use it instead of strerror.
1853         * modules/perror (Files): Add lib/strerror-impl.h.
1854         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1855
1856 2011-05-19  Eric Blake  <eblake@redhat.com>
1857
1858         strerror_r: fix on newer cygwin
1859         * lib/strerror_r.c (strerror_r): Cygwin now has
1860         __xpg_strerror_r, use it.
1861
1862 2011-05-19  Bruno Haible  <bruno@clisp.org>
1863
1864         strerror_r: Avoid clobbering the strerror buffer when possible.
1865         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1866         (sys_nerr, sys_errlist): New declarations.
1867         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1868         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1869         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1870
1871 2011-05-19  Bruno Haible  <bruno@clisp.org>
1872
1873         strerror_r: Fix test failure on mingw.
1874         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1875         EXTEND_STRERROR_R.
1876         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1877         macros from errno.in.h instead.
1878
1879 2011-05-19  Eric Blake  <eblake@redhat.com>
1880
1881         strerror: relax test for Solaris
1882         * tests/test-strerror.c (main): Permit Solaris behavior.
1883         * tests/test-strerror_r.c (main): Likewise.
1884
1885         strerror: enforce POSIX ruling on strerror(0)
1886         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1887         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1888         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1889         * doc/posix-functions/strerror.texi (strerror): Document it.
1890         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1891         * tests/test-strerror.c (main): Strengthen test.
1892         * tests/test-strerror_r.c (main): Likewise.
1893
1894 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1895
1896         intprop-tests: port to older and more-pedantic compilers
1897         * modules/intprops-tests (Files): Add tests/macros.h.
1898         * tests/test-intprops.c: Include macros.h.
1899         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1900         it's no longer documented to expand to an integer constant expression.
1901         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1902         argument is floating point, as it's no longer documented to expand
1903         to an integer constant expression in that case.
1904         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1905         compiler bugs reported by Bruno Haible.  See
1906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1907         (U0, U1): New constants, to work around the same bugs.  Also,
1908         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1909
1910         intprops: work around C compiler bugs
1911         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1912         bug in Sun C 5.11 2010/08/13 and other compilers; see
1913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1914
1915         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1916         * doc/intprops.texi (Integer Type Determination): Fix
1917         documentation for TYPE_IS_INTEGER: it returns an constant
1918         expression, not an integer constant expression.  Fix doc for
1919         TYPE_SIGNED: it returns an integer constant expression only if its
1920         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1921         hardly worth documented that way....)
1922
1923 2011-05-18  Bruno Haible  <bruno@clisp.org>
1924
1925         strerror_r: Avoid clobbering the strerror buffer when possible.
1926         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1927         Handle gnulib defined errno values here. When strerror() returns NULL
1928         or an empty string, return EINVAL.
1929         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1930         gnulib defined errno values here.
1931         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1932
1933 2011-05-18  Eric Blake  <eblake@redhat.com>
1934
1935         fnmatch: avoid compiler warning
1936         * lib/fnmatch_loop.c (FCT): Use correct type.
1937         Reported by Matthias Bolte.
1938
1939 2011-05-13  Jim Meyering  <meyering@redhat.com>
1940
1941         maint.mk: three new prohibit_<HDR>_without_use rules
1942         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1943         (sc_prohibit_stdio-safer_without_use): Likewise.
1944         (sc_prohibit_xfreopen_without_use): Likewise.
1945
1946 2011-05-17  Jim Meyering  <meyering@redhat.com>
1947
1948         announce-gen: fail if the NEWS delta is empty
1949         If there's nothing noteworthy in NEWS, then either you forgot
1950         or you shouldn't be releasing.
1951         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1952
1953 2011-05-17  Pádraig Brady <P@draigBrady.com>
1954
1955         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1956         reserved symbols starting with double underscore from the check.
1957
1958 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1959
1960         intprops: add doc
1961         * doc/intprops.texi: New file, documenting intprops.
1962         * doc/gnulib.texi (Particular Modules): Include it.
1963
1964         verify: add doc to gnulib manual and fix example
1965         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1966         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1967         (Compile-time Assertions): Fix example so it can't overflow.
1968
1969 2011-05-17  Jim Meyering  <meyering@redhat.com>
1970
1971         warnings.m4: don't usurp save_CPPFLAGS variable name
1972         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1973
1974         doc: fix typo
1975         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1976
1977 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1978             Bruno Haible  <bruno@clisp.org>
1979
1980         doc: Tweak recent change.
1981         * README (Portability guidelines): Tweak new text.
1982         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1983         Interix 6.1.
1984
1985 2011-05-16  Eric Blake  <eblake@redhat.com>
1986
1987         inttypes: avoid autoconf warning
1988         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1989         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1990
1991 2011-05-16  Sam Steingold <sds@gnu.org>
1992         and Eric Blake  <eblake@redhat.com>
1993
1994         vc-list-files: accept multiple directory operands
1995         * build-aux/vc-list-files: Iterate over all remaining operands.
1996
1997 2011-05-16  Bruno Haible  <bruno@clisp.org>
1998
1999         Fix confusion regarding deprecated modules.
2000         * modules/calloc (Status, Notice): Mark module as deprecated, not
2001         obsolete.
2002         * modules/fnmatch-posix (Status, Notice): Likewise.
2003         * modules/getdate (Status, Notice): Likewise.
2004         * modules/getopt (Status, Notice): Likewise.
2005         * modules/malloc (Status, Notice): Likewise.
2006         * modules/pipe (Status, Notice): Likewise.
2007         * modules/realloc (Status, Notice): Likewise.
2008         * modules/rename-dest-slash (Status, Notice): Likewise.
2009         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2010         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2011         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2012         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2013         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2014
2015 2011-05-16  Bruno Haible  <bruno@clisp.org>
2016
2017         doc: List the target platforms.
2018         * doc/gnulib-intro.texi (Target Platforms): New section.
2019         * doc/gnulib.texi (Introduction): Update menu.
2020         * README (Portability guidelines): Refer to the new section. Update
2021         statement about oldest supported environment. Remove rationale why
2022         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2023         unportable C89 function.
2024         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2025         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2026
2027 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2028
2029         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2030
2031 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2032
2033         intprops-tests: new module
2034         * modules/intprops-tests, tests/test-intprops.c: New files.
2035
2036         intprops: add safe, portable integer overflow checking
2037         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2038         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2039         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2040         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2041         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2042         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2043         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2044         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2045         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2046         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2047         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2048
2049 2011-05-12  James Youngman  <jay@gnu.org>
2050
2051         Add a test for glibc's Bugzilla bug #12378.
2052         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2053         doesn't allow the literal matching of a lone "[" (which is
2054         required by POSIX).
2055         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2056
2057 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2058
2059         Sync glibc change fixing Bugzilla bug #12378.
2060         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2061         beginning and fall back to matching as normal character if the
2062         string ends before the matching ']' is found.  This is what POSIX
2063         requires.
2064
2065 2011-05-13  Eric Blake  <eblake@redhat.com>
2066
2067         getcwd-lgpl: relax test for FreeBSD
2068         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2069         issue.
2070         * tests/test-getcwd-lgpl.c (main): Relax test.
2071         Reported by Matthias Bolte.
2072
2073 2011-05-11  Eric Blake  <eblake@redhat.com>
2074
2075         test-fflush: silence compiler warning
2076         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2077
2078 2011-05-11  Bruno Haible  <bruno@clisp.org>
2079
2080         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2081         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2082         * modules/canonicalize (Depends-on): Add 'nocrash'.
2083         * modules/canonicalize-lgpl (Depends-on): Likewise.
2084         * doc/posix-functions/realpath.texi: Update platforms list.
2085         Reported by Ryan Schmidt <ryandesign@macports.org>.
2086
2087 2011-05-11  Bruno Haible  <bruno@clisp.org>
2088
2089         group-member: Declare function in <unistd.h>.
2090         * lib/unistd.in.h (group_member): New declaration.
2091         * lib/group-member.h: Remove file.
2092         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2093         * tests/test-unistd-c++.cc: Check signature of group_member.
2094         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2095         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2096         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2097         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2098         HAVE_GROUP_MEMBER.
2099         * modules/group-member (Files): Remove lib/group-member.h.
2100         (Depends-on): Add unistd. Specify conditions.
2101         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2102         (Include): Change to <unistd.h>.
2103         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2104         HAVE_GROUP_MEMBER.
2105         * NEWS: Mention the change.
2106         * lib/euidaccess.c: Don't include group-member.h.
2107
2108 2011-05-11  Bruno Haible  <bruno@clisp.org>
2109
2110         group-member: Document module.
2111         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2112         module.
2113
2114 2011-05-11  Bruno Haible  <bruno@clisp.org>
2115
2116         fclose: Fix mistake earlier today.
2117         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2118
2119 2011-05-11  Eric Blake  <eblake@redhat.com>
2120
2121         fclose: preserve fflush errors
2122         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2123         Reported by Jim Meyering.
2124
2125         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2126         * build-aux/bootstrap (check_versions): When no specific version
2127         is required, merely check that the app produces an exit status
2128         that indicates its existence.
2129
2130         maint.mk: drop redundant check
2131         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2132         the same but better.
2133
2134 2011-05-11  Bruno Haible  <bruno@clisp.org>
2135
2136         fclose: Fix possible link error.
2137         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2138         unregister_shadow_fd. Improve comments.
2139         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2140         Eric Blake.
2141
2142 2011-05-11  Jim Meyering  <meyering@redhat.com>
2143
2144         maint.mk: improve "can not" detection and generalize rule name
2145         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2146         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2147         Use the same technique as in sc_prohibit_doubled_word, so that
2148         we recognize "can not" also when the words are separated by a newline.
2149         Suggested by Eric Blake.
2150         (perl_filename_lineno_text_): Define.  Factored out of...
2151         (prohibit_doubled_word_): ...here.  Use the new definition.
2152         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2153         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2154         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2155
2156 2011-05-10  Eric Blake  <eblake@redhat.com>
2157
2158         fclose: avoid double close race when possible
2159         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2160         all but WINDOWS_SOCKETS.
2161
2162 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2163
2164         openat: correct new comment
2165         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2166
2167 2011-05-10  Jim Meyering  <meyering@redhat.com>
2168
2169         openat: add comments
2170         * lib/openat-proc.c (openat_proc_name): Add comments,
2171         mostly from Eric Blake.
2172
2173 2011-05-09  Eric Blake  <eblake@redhat.com>
2174
2175         openat: reduce syscalls in first probe of /proc
2176         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2177         be a directory.  Simplify the probe for .. bugs.
2178         * modules/openat (Depends-on): Drop same-inode.
2179         Reported by Bastien ROUCARIES.
2180
2181 2011-05-09  Jim Meyering  <meyering@redhat.com>
2182
2183         maint.mk: change semantics/name of tight_scope variables
2184         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2185         Rename variables to align with semantics that make them more useful.
2186
2187         maint.mk: tweak new rule's name not to impinge
2188         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2189         (sc_tight_scope): Use new rule name rather than $@-0.
2190
2191         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2192         * top/maint.mk (sc_tight_scope): New rule.
2193         (sc_tight_scope-0): New rule, ifdef'd out.
2194         (_gl_TS_dir): Default.
2195         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2196         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2197
2198 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2199
2200         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2201         Haible <bruno@clisp.org>.
2202
2203 2011-05-08  Bruno Haible  <bruno@clisp.org>
2204
2205         Comments.
2206         * m4/isnanf.m4: Add comment.
2207         * m4/isnanl.m4: Likewise.
2208
2209 2011-05-08  Bruno Haible  <bruno@clisp.org>
2210
2211         glob: Remove obsolete macro.
2212         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2213
2214 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2215
2216         intprops: Sun C 5.11 supports __typeof__
2217         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2218         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2219         which is new.
2220         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2221
2222         intprops: switch to usual gnulib indenting and naming
2223         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2224         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2225
2226         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2227
2228 2011-05-08  Jim Meyering  <meyering@redhat.com>
2229
2230         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2231         * top/maint.mk (release-prep): Use make's --no-print-directory
2232         option when generating the announcement.  This eliminates the
2233         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2234         generated announcement template.
2235
2236 2011-05-08  Bruno Haible  <bruno@clisp.org>
2237
2238         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2239         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2240         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2241
2242 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2243
2244         ignore-value, verify: Omit include files from lib_SOURCES.
2245         * modules/ignore-value, modules/verify (Makefile.am):
2246         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2247         that leads Automake to duplicate use of am__objects_... variables
2248         in Makefile.in.  See
2249         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2250
2251 2011-05-07  Bruno Haible  <bruno@clisp.org>
2252
2253         fclose: Simplify autoconf macro.
2254         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2255         defined.
2256
2257 2011-05-07  Bruno Haible  <bruno@clisp.org>
2258
2259         canonicalize-lgpl: Fix autoconf macro ordering bug.
2260         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2261         gl_STDLIB_H_DEFAULTS.
2262
2263 2011-05-06  Eric Blake  <eblake@redhat.com>
2264
2265         maintainer-makefile: make sc_po_check easier to tune
2266         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2267         to probe for strings, such as an alternate location for gnulib.
2268
2269         fclose: guarantee behavior on seekable stdin
2270         * modules/fclose (Depends-on): Add fflush.
2271         * doc/posix-functions/fclose.texi (fclose): Document this.
2272         * tests/test-fclose.c (main): Make test for this unconditional.
2273
2274 2011-05-06  Bruno Haible  <bruno@clisp.org>
2275
2276         fflush, fpurge: Relicense under LGPLv2+.
2277         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2278         * modules/fpurge (License): Likewise.
2279         With permission from Eric Blake and Jim Meyering.
2280         Suggested by Eric Blake.
2281
2282 2011-05-06  Karl Berry  <karl@gnu.org>
2283
2284         * MODULES.html.sh (func_all_modules): remove exit.
2285
2286 2011-05-06  Jim Meyering  <meyering@redhat.com>
2287
2288         maint.mk: use info-gnu@ as the default only for a stable release
2289         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2290         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2291         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2293
2294 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2295
2296         assert-h: new module, which supports C1X-style static_assert
2297         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2298         * lib/verify.h: Revamp so that this can be copied into assert.h,
2299         while retaining the ability to use it standalone as before.
2300         Rename private identifiers so as not to encroach on the
2301         standard C namespace, since this is now used by assert.h.
2302         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2303         the old verify_true.
2304         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2305         the old verify_true.  Use _GL_VERIFY_TYPE.
2306         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2307         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2308         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2309         defined when this file is copied into the replacement assert.h.
2310         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2311         and _Static_assert is not built in.
2312         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2313         defined, and use the new macros mentioned above.
2314         * doc/posix-headers/assert.texi: Document this.
2315
2316 2011-05-05  Bruno Haible  <bruno@clisp.org>
2317
2318         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2319         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2320         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2321         gl_REPLACE_FCLOSE here.
2322         * modules/fflush (Depends-on): Remove fclose.
2323         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2324         combination with module 'fclose'.
2325
2326 2011-05-05  Bruno Haible  <bruno@clisp.org>
2327
2328         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2329         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2330         gl_FUNC_FFLUSH.
2331         (gl_FUNC_FFLUSH): Use it.
2332         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2333         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2334         gl_REPLACE_FSEEKO here.
2335
2336 2011-05-05  Bruno Haible  <bruno@clisp.org>
2337
2338         tzset: Relicense under LGPL.
2339         * modules/tzset (License): Change to LGPL.
2340         No agreement needed; it's a no-op.
2341
2342         strtoimax, strtoumax: Relicense under LGPL.
2343         * modules/strtoimax (License): Change to LGPL.
2344         * modules/strtoumax (License): Likewise.
2345         With permission from Jim Meyering, Paul Eggert:
2346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2348
2349         getgroups: Relicense under LGPL.
2350         * modules/getgroups (License): Change to LGPL.
2351         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2355
2356         nanosleep: Relicense under LGPL.
2357         * modules/nanosleep (License): Change to LGPL.
2358         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2359         Haible:
2360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2364
2365         futimens: Relicense under LGPL.
2366         * modules/futimens (License): Change to LGPL.
2367         With permission from Eric Blake:
2368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2369
2370         fflush: Relicense under LGPL.
2371         * modules/fflush (License): Change to LGPL.
2372         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2376
2377         tmpfile: Relicense under LGPL.
2378         * modules/tmpfile (License): Change to LGPL.
2379         With permission from Ben Pfaff:
2380         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2381
2382         isfinite: Relicense under LGPL.
2383         * modules/isfinite (License): Change to LGPL.
2384         With permission from Ben Pfaff, Bruno Haible:
2385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2387
2388         acosl..tanl: Relicense under LGPL.
2389         * modules/acosl (License): Change to LGPL.
2390         * modules/asinl (License): Likewise.
2391         * modules/atanl (License): Likewise.
2392         * modules/cosl (License): Likewise.
2393         * modules/expl (License): Likewise.
2394         * modules/logl (License): Likewise.
2395         * modules/sinl (License): Likewise.
2396         * modules/sqrtl (License): Likewise.
2397         * modules/tanl (License): Likewise.
2398         Source code originally from glibc and Paolo Bonzini. Agreements:
2399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2401
2402 2011-05-05  Bruno Haible  <bruno@clisp.org>
2403
2404         signal: Define sighandler_t.
2405         * lib/signal.in.h (sighandler_t): New type.
2406         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2407         whether sighandler_t is defined.
2408         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2409         * modules/signal (Depends-on): Add extensions.
2410         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2411         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2412         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2413
2414 2011-05-05  Eric Blake  <eblake@redhat.com>
2415
2416         maint: remove useless REPLACE_*_H macros
2417         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2418         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2419         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2420         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2421         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2422         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2423         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2424         * m4/btowc.m4: Update callers.
2425         * m4/dirfd.m4: Likewise.
2426         * m4/duplocale.m4: Likewise.
2427         * m4/fchdir.m4: Likewise.
2428         * m4/fdopendir.m4: Likewise.
2429         * m4/inet_ntop.m4: Likewise.
2430         * m4/inet_pton.m4: Likewise.
2431         * m4/ioctl.m4: Likewise.
2432         * m4/mbrlen.m4: Likewise.
2433         * m4/mbrtowc.m4: Likewise.
2434         * m4/mbsinit.m4: Likewise.
2435         * m4/mbsnrtowcs.m4: Likewise.
2436         * m4/mbsrtowcs.m4: Likewise.
2437         * m4/poll.m4: Likewise.
2438         * m4/setlocale.m4: Likewise.
2439         * m4/wcrtomb.m4: Likewise.
2440         * m4/wcsnrtombs.m4: Likewise.
2441         * m4/wcsrtombs.m4: Likewise.
2442         * m4/wctob.m4: Likewise.
2443         * m4/wcwidth.m4: Likewise.
2444         * modules/posix_spawn: Likewise.
2445         * modules/posix_spawn_file_actions_addclose: Likewise.
2446         * modules/posix_spawn_file_actions_adddup2: Likewise.
2447         * modules/posix_spawn_file_actions_addopen: Likewise.
2448         * modules/posix_spawn_file_actions_destroy: Likewise.
2449         * modules/posix_spawn_file_actions_init: Likewise.
2450         * modules/posix_spawnattr_destroy: Likewise.
2451         * modules/posix_spawnattr_getflags: Likewise.
2452         * modules/posix_spawnattr_getpgroup: Likewise.
2453         * modules/posix_spawnattr_getschedparam: Likewise.
2454         * modules/posix_spawnattr_getschedpolicy: Likewise.
2455         * modules/posix_spawnattr_getsigdefault: Likewise.
2456         * modules/posix_spawnattr_getsigmask: Likewise.
2457         * modules/posix_spawnattr_init: Likewise.
2458         * modules/posix_spawnattr_setflags: Likewise.
2459         * modules/posix_spawnattr_setpgroup: Likewise.
2460         * modules/posix_spawnattr_setschedparam: Likewise.
2461         * modules/posix_spawnattr_setschedpolicy: Likewise.
2462         * modules/posix_spawnattr_setsigdefault: Likewise.
2463         * modules/posix_spawnattr_setsigmask: Likewise.
2464         * modules/posix_spawnp: Likewise.
2465
2466 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2467
2468         Add option to do-release-commit-and-tag to specify branch.
2469         * build-aux/do-release-commit-and-tag: Add --branch.
2470
2471 2011-05-03  Bruno Haible  <bruno@clisp.org>
2472
2473         Avoid unnecessary compilation units, through conditional dependencies.
2474         * modules/accept (Depends-on): Add conditions to the dependencies.
2475         * modules/acosl (Depends-on): Likewise.
2476         * modules/argz (Depends-on): Likewise.
2477         * modules/asinl (Depends-on): Likewise.
2478         * modules/atanl (Depends-on): Likewise.
2479         * modules/atoll (Depends-on): Likewise.
2480         * modules/bind (Depends-on): Likewise.
2481         * modules/btowc (Depends-on): Likewise.
2482         * modules/canonicalize-lgpl (Depends-on): Likewise.
2483         * modules/ceil (Depends-on): Likewise.
2484         * modules/ceilf (Depends-on): Likewise.
2485         * modules/ceill (Depends-on): Likewise.
2486         * modules/chdir-long (Depends-on): Likewise.
2487         * modules/chown (Depends-on): Likewise.
2488         * modules/close (Depends-on): Likewise.
2489         * modules/connect (Depends-on): Likewise.
2490         * modules/cosl (Depends-on): Likewise.
2491         * modules/dirfd (Depends-on): Likewise.
2492         * modules/dprintf (Depends-on): Likewise.
2493         * modules/dprintf-posix (Depends-on): Likewise.
2494         * modules/error (Depends-on): Likewise.
2495         * modules/euidaccess (Depends-on): Likewise.
2496         * modules/expl (Depends-on): Likewise.
2497         * modules/faccessat (Depends-on): Likewise.
2498         * modules/fchdir (Depends-on): Likewise.
2499         * modules/fclose (Depends-on): Likewise.
2500         * modules/fcntl (Depends-on): Likewise.
2501         * modules/fdopendir (Depends-on): Likewise.
2502         * modules/fflush (Depends-on): Likewise.
2503         * modules/floor (Depends-on): Likewise.
2504         * modules/floorf (Depends-on): Likewise.
2505         * modules/floorl (Depends-on): Likewise.
2506         * modules/fnmatch (Depends-on): Likewise.
2507         * modules/fopen (Depends-on): Likewise.
2508         * modules/fprintf-posix (Depends-on): Likewise.
2509         * modules/frexp (Depends-on): Likewise.
2510         * modules/frexp-nolibm (Depends-on): Likewise.
2511         * modules/frexpl (Depends-on): Likewise.
2512         * modules/frexpl-nolibm (Depends-on): Likewise.
2513         * modules/fseek (Depends-on): Likewise.
2514         * modules/fsusage (Depends-on): Likewise.
2515         * modules/ftell (Depends-on): Likewise.
2516         * modules/ftello (Depends-on): Likewise.
2517         * modules/futimens (Depends-on): Likewise.
2518         * modules/getcwd (Depends-on): Likewise.
2519         * modules/getcwd-lgpl (Depends-on): Likewise.
2520         * modules/getdelim (Depends-on): Likewise.
2521         * modules/getdomainname (Depends-on): Likewise.
2522         * modules/getgroups (Depends-on): Likewise.
2523         * modules/gethostname (Depends-on): Likewise.
2524         * modules/getline (Depends-on): Likewise.
2525         * modules/getlogin_r (Depends-on): Likewise.
2526         * modules/getopt-posix (Depends-on): Likewise.
2527         * modules/getpeername (Depends-on): Likewise.
2528         * modules/getsockname (Depends-on): Likewise.
2529         * modules/getsockopt (Depends-on): Likewise.
2530         * modules/getsubopt (Depends-on): Likewise.
2531         * modules/getusershell (Depends-on): Likewise.
2532         * modules/glob (Depends-on): Likewise.
2533         * modules/grantpt (Depends-on): Likewise.
2534         * modules/iconv_open (Depends-on): Likewise.
2535         * modules/iconv_open-utf (Depends-on): Likewise.
2536         * modules/inet_ntop (Depends-on): Likewise.
2537         * modules/inet_pton (Depends-on): Likewise.
2538         * modules/ioctl (Depends-on): Likewise.
2539         * modules/isapipe (Depends-on): Likewise.
2540         * modules/isfinite (Depends-on): Likewise.
2541         * modules/isinf (Depends-on): Likewise.
2542         * modules/lchown (Depends-on): Likewise.
2543         * modules/ldexpl (Depends-on): Likewise.
2544         * modules/link (Depends-on): Likewise.
2545         * modules/linkat (Depends-on): Likewise.
2546         * modules/listen (Depends-on): Likewise.
2547         * modules/logl (Depends-on): Likewise.
2548         * modules/lstat (Depends-on): Likewise.
2549         * modules/mbrlen (Depends-on): Likewise.
2550         * modules/mbrtowc (Depends-on): Likewise.
2551         * modules/mbsinit (Depends-on): Likewise.
2552         * modules/mbsnrtowcs (Depends-on): Likewise.
2553         * modules/mbsrtowcs (Depends-on): Likewise.
2554         * modules/mbtowc (Depends-on): Likewise.
2555         * modules/memcmp (Depends-on): Likewise.
2556         * modules/mkdir (Depends-on): Likewise.
2557         * modules/mkdtemp (Depends-on): Likewise.
2558         * modules/mkfifo (Depends-on): Likewise.
2559         * modules/mkfifoat (Depends-on): Likewise.
2560         * modules/mknod (Depends-on): Likewise.
2561         * modules/mkostemp (Depends-on): Likewise.
2562         * modules/mkostemps (Depends-on): Likewise.
2563         * modules/mkstemp (Depends-on): Likewise.
2564         * modules/mkstemps (Depends-on): Likewise.
2565         * modules/mktime (Depends-on): Likewise.
2566         * modules/nanosleep (Depends-on): Likewise.
2567         * modules/open (Depends-on): Likewise.
2568         * modules/openat (Depends-on): Likewise.
2569         * modules/perror (Depends-on): Likewise.
2570         * modules/poll (Depends-on): Likewise.
2571         * modules/popen (Depends-on): Likewise.
2572         * modules/posix_spawn (Depends-on): Likewise.
2573         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2574         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2575         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2576         * modules/posix_spawnp (Depends-on): Likewise.
2577         * modules/pread (Depends-on): Likewise.
2578         * modules/printf-posix (Depends-on): Likewise.
2579         * modules/ptsname (Depends-on): Likewise.
2580         * modules/putenv (Depends-on): Likewise.
2581         * modules/pwrite (Depends-on): Likewise.
2582         * modules/readline (Depends-on): Likewise.
2583         * modules/readlink (Depends-on): Likewise.
2584         * modules/readlinkat (Depends-on): Likewise.
2585         * modules/recv (Depends-on): Likewise.
2586         * modules/recvfrom (Depends-on): Likewise.
2587         * modules/regex (Depends-on): Likewise.
2588         * modules/remove (Depends-on): Likewise.
2589         * modules/rename (Depends-on): Likewise.
2590         * modules/renameat (Depends-on): Likewise.
2591         * modules/rmdir (Depends-on): Likewise.
2592         * modules/round (Depends-on): Likewise.
2593         * modules/roundf (Depends-on): Likewise.
2594         * modules/roundl (Depends-on): Likewise.
2595         * modules/rpmatch (Depends-on): Likewise.
2596         * modules/select (Depends-on): Likewise.
2597         * modules/send (Depends-on): Likewise.
2598         * modules/sendto (Depends-on): Likewise.
2599         * modules/setenv (Depends-on): Likewise.
2600         * modules/setlocale (Depends-on): Likewise.
2601         * modules/setsockopt (Depends-on): Likewise.
2602         * modules/shutdown (Depends-on): Likewise.
2603         * modules/sigaction (Depends-on): Likewise.
2604         * modules/signbit (Depends-on): Likewise.
2605         * modules/sigprocmask (Depends-on): Likewise.
2606         * modules/sinl (Depends-on): Likewise.
2607         * modules/sleep (Depends-on): Likewise.
2608         * modules/snprintf (Depends-on): Likewise.
2609         * modules/snprintf-posix (Depends-on): Likewise.
2610         * modules/socket (Depends-on): Likewise.
2611         * modules/sprintf-posix (Depends-on): Likewise.
2612         * modules/sqrtl (Depends-on): Likewise.
2613         * modules/stat (Depends-on): Likewise.
2614         * modules/strchrnul (Depends-on): Likewise.
2615         * modules/strdup-posix (Depends-on): Likewise.
2616         * modules/strerror (Depends-on): Likewise.
2617         * modules/strerror_r-posix (Depends-on): Likewise.
2618         * modules/strndup (Depends-on): Likewise.
2619         * modules/strnlen (Depends-on): Likewise.
2620         * modules/strptime (Depends-on): Likewise.
2621         * modules/strsep (Depends-on): Likewise.
2622         * modules/strsignal (Depends-on): Likewise.
2623         * modules/strstr-simple (Depends-on): Likewise.
2624         * modules/strtod (Depends-on): Likewise.
2625         * modules/strtoimax (Depends-on): Likewise.
2626         * modules/strtok_r (Depends-on): Likewise.
2627         * modules/strtoumax (Depends-on): Likewise.
2628         * modules/symlink (Depends-on): Likewise.
2629         * modules/symlinkat (Depends-on): Likewise.
2630         * modules/tanl (Depends-on): Likewise.
2631         * modules/tcgetsid (Depends-on): Likewise.
2632         * modules/tmpfile (Depends-on): Likewise.
2633         * modules/trunc (Depends-on): Likewise.
2634         * modules/truncf (Depends-on): Likewise.
2635         * modules/truncl (Depends-on): Likewise.
2636         * modules/uname (Depends-on): Likewise.
2637         * modules/unlink (Depends-on): Likewise.
2638         * modules/unlockpt (Depends-on): Likewise.
2639         * modules/unsetenv (Depends-on): Likewise.
2640         * modules/usleep (Depends-on): Likewise.
2641         * modules/utimensat (Depends-on): Likewise.
2642         * modules/vasprintf (Depends-on): Likewise.
2643         * modules/vdprintf (Depends-on): Likewise.
2644         * modules/vdprintf-posix (Depends-on): Likewise.
2645         * modules/vfprintf-posix (Depends-on): Likewise.
2646         * modules/vprintf-posix (Depends-on): Likewise.
2647         * modules/vsnprintf (Depends-on): Likewise.
2648         * modules/vsnprintf-posix (Depends-on): Likewise.
2649         * modules/vsprintf-posix (Depends-on): Likewise.
2650         * modules/wcrtomb (Depends-on): Likewise.
2651         * modules/wcscasecmp (Depends-on): Likewise.
2652         * modules/wcscspn (Depends-on): Likewise.
2653         * modules/wcsdup (Depends-on): Likewise.
2654         * modules/wcsncasecmp (Depends-on): Likewise.
2655         * modules/wcsnrtombs (Depends-on): Likewise.
2656         * modules/wcspbrk (Depends-on): Likewise.
2657         * modules/wcsrtombs (Depends-on): Likewise.
2658         * modules/wcsspn (Depends-on): Likewise.
2659         * modules/wcsstr (Depends-on): Likewise.
2660         * modules/wcstok (Depends-on): Likewise.
2661         * modules/wcswidth (Depends-on): Likewise.
2662         * modules/wctob (Depends-on): Likewise.
2663         * modules/wctomb (Depends-on): Likewise.
2664         * modules/wctype (Depends-on): Likewise.
2665         * modules/wcwidth (Depends-on): Likewise.
2666         * modules/write (Depends-on): Likewise.
2667
2668 2011-05-03  Bruno Haible  <bruno@clisp.org>
2669
2670         Support for conditional dependencies.
2671         * doc/gnulib.texi (Module description): Document the syntax of
2672         conditional dependencies.
2673         * gnulib-tool: New option --conditional-dependencies.
2674         (func_usage): Document it.
2675         (cond_dependencies): New variable.
2676         (func_get_automake_snippet_conditional,
2677         func_get_automake_snippet_unconditional): New functions, extracted from
2678         func_get_automake_snippet.
2679         (func_get_automake_snippet): Use them.
2680         (sed_first_32_chars): New variable.
2681         (func_module_shellfunc_name): New function.
2682         (func_module_shellvar_name): New function.
2683         (func_module_conditional_name): New function.
2684         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2685         func_cond_module_condition): New functions.
2686         (func_modules_transitive_closure): Add support for conditional
2687         dependencies.
2688         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2689         conditional automake snippet in an automake conditional.
2690         (func_emit_autoconf_snippets): Emit shell functions that contain the
2691         code for conditional modules.
2692         (func_import, func_create_testdir): Update specification.
2693
2694 2011-05-03  Eric Blake  <eblake@redhat.com>
2695
2696         test-getaddrinfo: report error information
2697         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2698
2699 2011-05-03  Jim Meyering  <meyering@redhat.com>
2700
2701         bootstrap: avoid build failure when $GZIP is set
2702         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2703         program name.  If defined at all, it is supposed to list gzip options.
2704         Reported by Alan Curry in http://debbugs.gnu.org/8609
2705
2706 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2707
2708         readme-release: new module with release instructions
2709         * modules/readme-release: New module.
2710         * top/README-release: New file, from coreutils, grep, diffutils.
2711         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2712
2713 2011-05-02  Eric Blake  <eblake@redhat.com>
2714
2715         fflush: also replace fclose when fixing fflush
2716         * modules/fflush (Depends-on): Add fclose.
2717         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2718         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2719         memstreams with no backing fd.
2720         * doc/posix-functions/fclose.texi (fclose): Document the use of
2721         fflush module to fix the bug.
2722         * tests/test-fclose.c (main): Relax test when fclose is used in
2723         isolation.
2724
2725         fclose: add some tests
2726         * modules/fclose-tests: New test module.
2727         * tests/test-fclose.c: New file.
2728         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2729
2730         fclose: reduced dependencies
2731         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2732         simpler lseek.
2733         * lib/fclose.c (rpl_fclose): Likewise.
2734         Reported by Simon Josefsson.
2735
2736         exit: drop remaining clients
2737         * modules/argmatch (Depends-on): Replace exit with stdlib.
2738         * modules/copy-file (Depends-on): Likewise.
2739         * modules/execute (Depends-on): Likewise.
2740         * modules/exitfail (Depends-on): Likewise.
2741         * modules/obstack (Depends-on): Likewise.
2742         * modules/pagealign_alloc (Depends-on): Likewise.
2743         * modules/pipe-filter-gi (Depends-on): Likewise.
2744         * modules/pipe-filter-ii (Depends-on): Likewise.
2745         * modules/savewd (Depends-on): Likewise.
2746         * modules/spawn-pipe (Depends-on): Likewise.
2747         * modules/wait-process (Depends-on): Likewise.
2748         * modules/xsetenv (Depends-on): Likewise.
2749         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2750         * modules/git-merge-changelog (Depends-on): Likewise.
2751         * modules/long-options (Depends-on): Likewise.
2752         * modules/pt_chown (Depends-on): Likewise.
2753         * modules/sysexits (Depends-on): Likewise.
2754
2755         freading: relax license from LGPLv3+ to LGPLv2+
2756         * modules/freading (License): Relax LGPL version.
2757
2758 2011-05-02  Bruno Haible  <bruno@clisp.org>
2759
2760         fchdir: Remove unused dependencies.
2761         * modules/fchdir (Depends-on): Remove include_next.
2762
2763 2011-05-02  Bruno Haible  <bruno@clisp.org>
2764
2765         gnulib-tool: Refactor.
2766         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2767         from func_emit_autoconf_snippets.
2768         (func_emit_autoconf_snippets): Use it.
2769
2770 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2771
2772         * NEWS: Document removal of 'exit'.
2773         * modules/exit: Remove file.
2774
2775 2011-05-01  Bruno Haible  <bruno@clisp.org>
2776
2777         Update DEPENDENCIES.
2778         * DEPENDENCIES (gettext): Recommend the newest release.
2779         Reported by Simon Josefsson.
2780
2781 2011-05-01  Bruno Haible  <bruno@clisp.org>
2782
2783         gnulib-tool: Reduce code duplication.
2784         * gnulib-tool (func_emit_autoconf_snippets): New function.
2785         (func_import, func_create_testdir): Use it.
2786
2787 2011-04-30  Eric Blake  <eblake@redhat.com>
2788
2789         fclose: don't fail on non-seekable input stream
2790         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2791         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2792         since fflush is allowed to fail in that case.
2793
2794 2011-04-30  Bruno Haible  <bruno@clisp.org>
2795
2796         dup3: cleanup
2797         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2798
2799 2011-04-30  Bruno Haible  <bruno@clisp.org>
2800
2801         netdb: Make it work in C++ mode.
2802         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2803         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2804         module.
2805         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2806         gl_MODULE_INDICATOR_FOR_TESTS.
2807         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2808         * modules/netdb-c++-tests: New file.
2809         * tests/test-netdb-c++.cc: New file.
2810
2811 2011-04-30  Bruno Haible  <bruno@clisp.org>
2812
2813         New modules 'vfscanf', 'vscanf'.
2814         * modules/vfscanf: New file.
2815         * modules/vscanf: New file.
2816         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2817         here.
2818         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2819         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2820
2821 2011-04-30  Bruno Haible  <bruno@clisp.org>
2822
2823         passfd: Add comments.
2824         * lib/passfd.c: Add comments about platforms.
2825
2826 2011-04-30  Bruno Haible  <bruno@clisp.org>
2827
2828         sys_uio: Make <sys/uio.h> self-contained.
2829         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2830         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2831
2832 2011-04-30  Bruno Haible  <bruno@clisp.org>
2833
2834         sys_socket: Ensure 'struct iovec' definition.
2835         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2836         <sys/socket.h>.
2837         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2838
2839 2011-04-30  Bruno Haible  <bruno@clisp.org>
2840
2841         sys_uio: Protect definition of 'struct iovec'.
2842         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2843         it as a C struct.
2844
2845 2011-04-30  Bruno Haible  <bruno@clisp.org>
2846
2847         manywarnings: fix indentation
2848         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2849
2850 2011-04-30  Pádraig Brady <P@draigBrady.com>
2851
2852         manywarnings: add -Wno-missing-field-initializers if needed.
2853         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2854         option if it's needed to allow initialization with { 0, }
2855
2856 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2857
2858         announce-gen: cosmetic improvement
2859         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2860
2861 2011-04-29  Jim Meyering  <meyering@redhat.com>
2862
2863         vc-list-files: indent with spaces, not TABs
2864         * build-aux/vc-list-files: Convert leading TABs to spaces,
2865         to match the style of most other files in gnulib.
2866
2867         announce-gen: indent with spaces, not TABs
2868         * build-aux/announce-gen: Convert all TABs to spaces, to match
2869         the style of most other files in gnulib.
2870
2871 2011-04-29  Eric Blake  <eblake@redhat.com>
2872
2873         quotearg: avoid uninitialized variable use
2874         * lib/quotearg.c (quoting_options_from_style): Initialize
2875         remaining fields, and ensure that custom styles are only used via
2876         quoting_options rather than quoting_style.
2877
2878 2011-04-29  Jim Meyering  <meyering@redhat.com>
2879
2880         maint.mk: remove unused VC-tag variable
2881         * top/maint.mk (VC-tag): Remove unused variable.
2882
2883 2011-04-29  Bruno Haible  <bruno@clisp.org>
2884
2885         netdb: fix gai_strerror replacements
2886         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2887         * modules/netdb: Substitute it.
2888
2889 2011-04-29  Jim Meyering  <meyering@redhat.com>
2890
2891         test-getcwd.c: avoid new set-but-not-used warning
2892         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2893         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2894         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2895         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2896
2897         test-hash.c: avoid a new shadowing warning
2898         * tests/test-hash.c (main): Don't shadow "dup".
2899
2900 2011-04-28  Eric Blake  <eblake@redhat.com>
2901
2902         getaddrinfo: fix gai_strerror signature
2903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2904         and work around mingw with UNICODE defined.
2905         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2906         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2907         * modules/netdb (Makefile.am): Substitute it.
2908         * lib/netdb.in.h (gai_strerror): Declare replacement.
2909         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2910         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2911         the fix.
2912
2913         getsockopt: avoid compiler warning
2914         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2915         Reported by Matthias Bolte.
2916
2917         tests: drop unused link dependency
2918         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2919         * modules/dirent-safer-tests (Makefile.am): Likewise.
2920         * modules/fdopendir-tests (Makefile.am): Likewise.
2921         * modules/mkfifoat-tests (Makefile.am): Likewise.
2922         * modules/openat-safer-tests (Makefile.am): Likewise.
2923         * modules/openat-tests (Makefile.am): Likewise.
2924         * modules/readlinkat-tests (Makefile.am): Likewise.
2925         * modules/symlinkat-tests (Makefile.am): Likewise.
2926         * modules/linkat-tests (Makefile.am): Likewise.
2927         (Depends-on): Switch to filenamecat-lgpl.
2928         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2929         LIBINTL.
2930         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2931         * tests/test-linkat.c (main): Don't require xalloc.
2932
2933         hash, mgetgroups: drop xalloc dependency
2934         * lib/hash.c (includes): Adjust includes.
2935         * lib/mgetgroups.c (includes): Likewise.
2936         (xgetgroups): Move...
2937         * lib/xgetgroups.c: ...to new file.
2938         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2939         * modules/xgetgroups: New file, split from...
2940         * modules/mgetgroups: ...here.
2941         (Depends-on): Add xalloc-oversized.
2942         * modules/hash (Depends-on): Likewise.
2943         * modules/hash-tests (Depends-on): Drop xalloc.
2944         (test_hash_LDADD): Drop unused library.
2945         * tests/test-hash.c (main): Break xalloc dependency.
2946         (includes): Drop unused include.
2947
2948         xalloc-oversized: new module
2949         * modules/xalloc-oversized: New module.
2950         * modules/xalloc (Depends-on): Add it.
2951         * lib/xalloc.h (xalloc_oversized): Move...
2952         * lib/xalloc-oversized.h: ...into new file.
2953
2954         utimecmp: drop dependency on xmalloc
2955         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2956         due to memory pressure.
2957         * modules/utimecmp (Depends-on): Drop xalloc.
2958
2959 2011-04-27  Eric Blake  <eblake@redhat.com>
2960
2961         getcwd: fix mingw bugs
2962         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2963         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2964         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2965
2966 2011-04-27  Bruno Haible  <bruno@clisp.org>
2967
2968         mkstemps: Ensure declaration on MacOS X 10.5.
2969         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2970         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2971         MacOS X.
2972
2973 2011-04-27  Bruno Haible  <bruno@clisp.org>
2974
2975         mkstemp: More documentation.
2976         * doc/posix-functions/mkstemp.texi: Document header file problem on
2977         MacOS X.
2978
2979 2011-04-27  Bruno Haible  <bruno@clisp.org>
2980
2981         mkstemp: Tweak configure message when cross-compiling.
2982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2983         result as a guess.
2984
2985 2011-04-27  Bruno Haible  <bruno@clisp.org>
2986
2987         clean-temp: Clarify what it does.
2988         * lib/clean-temp.h: Add more comments.
2989         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2990         module.
2991         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2992         * doc/glibc-functions/mkstemps.texi: Likewise.
2993         * doc/glibc-functions/mkostemps.texi: Likewise.
2994
2995 2011-04-27  Eric Blake  <eblake@redhat.com>
2996
2997         fchdir: avoid extra chdir and fix test
2998         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2999         getcwd-lgpl.
3000         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3001         have to be canonical.
3002         (canonicalize_file_name): Drop unused macro.
3003         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3004
3005         filenamecat-lgpl: fix licence
3006         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3007         when it was first created.
3008
3009         linkat, renameat: add missing dependency
3010         * modules/linkat (Depends-on): Require getcwd-lgpl.
3011         * modules/renameat (Depends-on): Likewise.
3012
3013         tests: reduce dependencies
3014         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3015         * tests/test-renameat.c (main): Likewise.
3016         * modules/linkat-tests (Depends-on): Relax dependency.
3017         * modules/renameat-tests (Depends-on): Likewise.
3018         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3019         dependency explicit.
3020
3021         save-cwd: reduce default dependency
3022         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3023         * lib/save-cwd.c: Update comments.
3024         * NEWS: Document the semantic change.
3025
3026         getcwd: enhance tests
3027         * tests/test-getcwd-lgpl.c: New file, taken from...
3028         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3029         repeat long path stress tests from m4 probe.
3030         * modules/getcwd-lgpl-tests: New module.
3031         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3032         * m4/getcwd-abort-bug.m4: Update comment.
3033         * m4/getcwd-path-max.m4: Likewise.
3034
3035         getcwd-lgpl: new module
3036         * modules/getcwd-lgpl: New module.
3037         * lib/getcwd-lgpl.c: New file.
3038         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3039         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3040         * modules/getcwd (configure.ac): Set C witness.
3041         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3042
3043         getcwd: tweak comments
3044         * m4/getcwd-abort-bug.m4: Fix comments.
3045         * m4/getcwd-path-max.m4: Likewise.
3046         * m4/getcwd.m4: Likewise.
3047
3048 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3049         and Eric Blake  <eblake@redhat.com>
3050
3051         mkstemp: replace if system version uses wrong permissions
3052         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3053         read/write mode bits set in file created by mkstemp.
3054         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3055
3056 2011-04-27  Eric Blake  <eblake@redhat.com>
3057
3058         passfd: avoid compiler warning
3059         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3060         Reported by Laine Stump.
3061
3062 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3063
3064         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3065         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3066
3067 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3068         and Eric Blake  <eblake@redhat.com>
3069
3070         mkstemp: mention clean-temp module
3071         * lib/mkstemp.c: Add comment.
3072         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3073
3074 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3075
3076         inttypes: also provide default values for 32-bit tests
3077         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3078         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3079
3080 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3081
3082         strtoumax: remove dependency on strtoimax
3083         This is like the strtoull change of yesterday.
3084         * modules/strtoumax (Files): Add lib/strtoimax.c.
3085         (Depends-on): Remove strtoimax and add verify.
3086
3087         inttypes-incomplete: new module
3088         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3089         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3090         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3091         of gl_INTTYPES_H.
3092         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3093         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3094         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3095         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3096         * modules/strtoumax, modules/xstrtol (Depends-on):
3097         Depend on inttypes-incomplete, not inttypes.
3098         * modules/inttypes-incomplete: New module, containing the contents
3099         of the old modules/inttypes module, except that the Files: section
3100         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3101         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3102         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3103         (Depends-on): Depend only on inttypes-incomplete.
3104         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3105
3106         inttypes: omit now-redundant strtoimax and strtoumax work
3107         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3108         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3109
3110         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3111         This supports apps that need pointers to strtoimax and strtoumax,
3112         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3113         nonexistent functions.  See
3114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3115         et seq.
3116         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3117         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3118         a macro.
3119         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3120
3121 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3122
3123         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3124
3125 2011-04-25  Bruno Haible  <bruno@clisp.org>
3126
3127         strtol, strtoul: Mark modules as obsolete.
3128         * modules/strtol (Status, Notice): New sections.
3129         * modules/strtoul (Status, Notice): New sections.
3130
3131 2011-04-25  Bruno Haible  <bruno@clisp.org>
3132
3133         strtod: Remove check for strtod, unless supporting old platforms.
3134         * modules/strtod-obsolete: New file.
3135         * m4/strtod-obsolete.m4: New file.
3136         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3137         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3138         * modules/strtod (Depends-on): Add strtod-obsolete.
3139         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3140
3141 2011-04-25  Bruno Haible  <bruno@clisp.org>
3142
3143         strcase: Make module obsolete.
3144         * modules/strcase (Status, Notice): New sections.
3145
3146 2011-04-25  Bruno Haible  <bruno@clisp.org>
3147
3148         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3149         * modules/dup2-obsolete: New file.
3150         * m4/dup2-obsolete.m4: New file.
3151         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3152         gl_FUNC_DUP2_OBSOLETE is not also defined.
3153         * modules/dup2 (Depends-on): Add dup2-obsolete.
3154         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3155
3156 2011-04-25  Bruno Haible  <bruno@clisp.org>
3157
3158         strnlen: Avoid memchr related link error on old obsolete platforms.
3159         * modules/memchr-obsolete: New file.
3160         * m4/memchr-obsolete.m4: New file.
3161         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3162         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3163         * modules/memchr (Depends-on): Add memchr-obsolete.
3164         * modules/strnlen (Depends-on): Likewise.
3165         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3166
3167 2011-04-25  Jim Meyering  <meyering@redhat.com>
3168
3169         maint.mk: makefile_at_at_check extend and clean up
3170         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3171         in addition to */Makefile.am.
3172         Exempt legitimate uses of @VAR@ notation, e.g.,
3173         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3174         Remove obsolete coreutils-specific comment.
3175         Prompted by discussion here:
3176         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3177
3178 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3179
3180         strtoul: remove dependency on strtol
3181         This is so that 'configure' need not check for strtol merely because
3182         the application needs strtoul.
3183         * modules/strtoul (Files): Add lib/strtol.c.
3184         (Depends-on): Remove strtol.
3185
3186         strtoull: remove dependency on strtoul
3187         This is like the strtoll change.
3188         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3189         (Depends-on): Remove strtoul.
3190
3191         strtoll: remove dependency on strtol
3192         This is so that 'configure' need not check for strtol merely because
3193         the application needs strtoll.
3194         * modules/strtoll (Files): Add lib/strtol.c.
3195         (Depends-on): Remove strtol.
3196
3197 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3198
3199         inttypes: Move some configure check to module 'imaxdiv'.
3200         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3201         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3202         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3203
3204 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3205
3206         inttypes: Move some configure check to module 'imaxabs'.
3207         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3208         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3209         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3210
3211 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3212
3213         inttypes: Remove configure tests that are not needed since 2009-12-31.
3214         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3215         gl_cv_header_working_inttypes_h.
3216
3217 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3218
3219         * modules/strnlen (Depends-on): Remove memchr.
3220         The strnlen implementation doesn't need the memchr module's fixes; see
3221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3222
3223         strtol: remove dependency on wchar
3224         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3225         * modules/strtol (Depends-on): Remove wchar.
3226
3227 2011-04-21  Eric Blake  <eblake@redhat.com>
3228
3229         passfd: fix test regression on Linux
3230         * modules/passfd-tests (configure.ac): Correct socketpair check.
3231
3232         passfd: speed up configure and drop unused code
3233         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3234         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3235         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3236         Instead of probing at configure for unix_scm_rights_bsd44_way,
3237         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3238         check to a struct member probe.
3239         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3240         (sendfd, recvfd): Update preprocessor checks.
3241         * modules/passfd (Files): Reflect rename, and drop unused file.
3242         (Depends-on): Drop unused dependency.
3243
3244         passfd: allow compilation on mingw
3245         * modules/sys_socket (Depends-on): Add sys_uio.
3246         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3247         iovec and a minimal struct msghdr.
3248         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3249         * tests/test-sys_socket.c (main): Enhance test.
3250         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3251         guaranteed to provide what we need.
3252         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3253         * modules/passfd-tests (Depends-on): Add sys_wait.
3254         * tests/test-passfd.c (main): Skip test on mingw, for now.
3255         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3256         partial 'struct msghdr' implementation.
3257
3258         sys_uio: new module
3259         * modules/sys_uio: New module.
3260         * modules/sys_uio-tests: Likewise.
3261         * lib/sys_uio.in.h: New file.
3262         * m4/sys_uio_h.m4: Likewise.
3263         * tests/test-sys_uio.c: Likewise.
3264         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3265         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3266
3267 2011-04-20  Jim Meyering  <meyering@redhat.com>
3268
3269         useless-if-before-free: avoid false-positive
3270         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3271         disjunct so that it too requires a terminating ";".  Without that,
3272         this script would identify as useless one statement from gcc that
3273         was not:
3274           if (aligned_ptr)
3275             free (((void **) aligned_ptr) [-1]);
3276
3277 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3278
3279         doc: update users.txt.
3280         * users.txt: Add barcode.
3281
3282 2011-04-19  Bruno Haible  <bruno@clisp.org>
3283
3284         ioctl: Remove link dependency on native Windows.
3285         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3286         (gl_close_fn, gl_ioctl_fn): New types.
3287         (struct fd_hook): Renamed from struct close_hook. Change type of
3288         private_close_fn field. Add private_ioctl_fn field.
3289         (close_hook_fn): Add parameter for primary close method.
3290         (execute_close_hooks, execute_all_close_hooks): Likewise.
3291         (ioctl_hook_fn): New type.
3292         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3293         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3294         argument.
3295         (unregister_fd_hook): Renamed from unregister_close_hook.
3296         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3297         Don't include <unistd.h>.
3298         (close): Remove undef.
3299         (anchor): Update.
3300         (execute_close_hooks): Add argument for primary close method.
3301         (execute_all_close_hooks): Likewise.
3302         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3303         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3304         argument. Allow each argument to be NULL.
3305         (unregister_fd_hook): Renamed from unregister_close_hook.
3306         * lib/close.c (rpl_close): Pass 'close' function pointer to
3307         execute_all_close_hooks.
3308         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3309         (primary_ioctl): New function.
3310         (ioctl): Don't call ioctlsocket here. Instead, call
3311         execute_all_ioctl_hooks.
3312         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3313         close method.
3314         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3315         (fd_sockets_hook): Renamed from close_sockets_hook.
3316         (gl_sockets_startup, gl_sockets_cleanup): Update.
3317         * modules/fd-hook: Renamed from modules/close-hook. Update.
3318         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3319         * modules/sockets (Depends-on): Likewise.
3320         * modules/ioctl (Depends-on): Add fd-hook.
3321         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3322         GNULIB_SOCKET.
3323
3324 2011-04-19  Bruno Haible  <bruno@clisp.org>
3325
3326         Move the support of O_NONBLOCK in open() to the 'open' module.
3327         * modules/nonblocking (Depends-on): Remove 'open'.
3328         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3329         gl_cv_have_open_O_NONBLOCK.
3330         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3331         O_NONBLOCK support.
3332         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3333
3334 2011-04-17  Bruno Haible  <bruno@clisp.org>
3335
3336         pipe2: Simplify code.
3337         * lib/pipe2.c (pipe2): Reduce code duplication.
3338
3339 2011-04-17  Bruno Haible  <bruno@clisp.org>
3340
3341         nonblocking: Add comment.
3342         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3343
3344 2011-04-17  Bruno Haible  <bruno@clisp.org>
3345
3346         nonblocking: Add tests for sockets.
3347         * tests/test-nonblocking-socket.sh: New file.
3348         * tests/test-nonblocking-socket-main.c: New file.
3349         * tests/test-nonblocking-socket-child.c: New file.
3350         * tests/test-nonblocking-socket.h: New file.
3351         * tests/socket-server.h: New file.
3352         * tests/socket-client.h: New file.
3353         * modules/nonblocking-socket-tests: New file.
3354         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3355
3356 2011-04-17  Bruno Haible  <bruno@clisp.org>
3357
3358         nonblocking: Add tests for pipes.
3359         * tests/test-nonblocking-pipe.sh: New file.
3360         * tests/test-nonblocking-pipe-main.c: New file.
3361         * tests/test-nonblocking-pipe-child.c: New file.
3362         * tests/test-nonblocking-pipe.h: New file.
3363         * tests/test-nonblocking-writer.h: New file.
3364         * tests/test-nonblocking-reader.h: New file.
3365         * tests/test-nonblocking-misc.h: New file.
3366         * modules/nonblocking-pipe-tests: New file.
3367         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3368
3369 2011-04-16  Bruno Haible  <bruno@clisp.org>
3370
3371         gettext: Clarify the needed programmer actions.
3372         * modules/gettext (Notice): New field.
3373         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3374
3375 2011-04-16  Bruno Haible  <bruno@clisp.org>
3376
3377         strchrnul: Tweak last commit.
3378         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3379         bug.
3380         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3381         as in _GL_FUNCDECL_SYS.
3382         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3383         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3384
3385 2011-04-15  Eric Blake  <eblake@redhat.com>
3386
3387         strchrnul: work around cygwin bug
3388         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3389         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3391         * modules/string (Makefile.am): Substitute it.
3392         * lib/string.in.h (strchrnul): Use it.
3393
3394 2011-04-15  Bruno Haible  <bruno@clisp.org>
3395
3396         Don't require lib/stdio-write.c when only module 'stdio' is used.
3397         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3398         invocation.
3399         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3400
3401 2011-04-14  Bruno Haible  <bruno@clisp.org>
3402
3403         Support non-blocking pipe I/O in read() on native Windows.
3404         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3405         (read): New declaration.
3406         * lib/read.c: New file.
3407         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3408         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3409         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3410         vscanf): New declarations.
3411         * lib/stdio-read.c: New file.
3412         * m4/read.m4: New file.
3413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3414         REPLACE_READ.
3415         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3416         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3417         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3418         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3419         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3420         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3421         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3422         * modules/read: New file.
3423         * modules/nonblocking (Files): Add lib/stdio-read.c.
3424         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3425         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3426         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3427         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3428         * modules/pread (Depends-on): Add read.
3429         * modules/safe-read (Depends-on): Likewise.
3430         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3431         gets, scanf, vfscanf, vscanf): Verify signatures.
3432         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3433         problem with non-blocking pipes.
3434         * doc/posix-functions/fgetc.texi: Likewise.
3435         * doc/posix-functions/fgets.texi: Likewise.
3436         * doc/posix-functions/fread.texi: Likewise.
3437         * doc/posix-functions/fscanf.texi: Likewise.
3438         * doc/posix-functions/getc.texi: Likewise.
3439         * doc/posix-functions/getchar.texi: Likewise.
3440         * doc/posix-functions/gets.texi: Likewise.
3441         * doc/posix-functions/scanf.texi: Likewise.
3442         * doc/posix-functions/vfscanf.texi: Likewise.
3443         * doc/posix-functions/vscanf.texi: Likewise.
3444
3445 2011-04-14  Bruno Haible  <bruno@clisp.org>
3446
3447         Support non-blocking pipe I/O in write() on native Windows.
3448         * lib/write.c (rpl_write): Split a write request that failed merely
3449         because the byte count was larger than the pipe buffer's size.
3450         * doc/posix-functions/write.texi: Mention the problem with large byte
3451         counts.
3452
3453 2011-04-14  Bruno Haible  <bruno@clisp.org>
3454
3455         wchar: Ensure that wchar_t gets defined on uClibc.
3456         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3457         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3458
3459 2011-04-13  Bruno Haible  <bruno@clisp.org>
3460
3461         safe-write, full-read: Avoid unnecessary compilation units.
3462         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3463         (Depends-on): Remove safe-read. Add ssize_t.
3464         * modules/full-read (Files): Add lib/full-write.c.
3465         (Depends-on): Add full-write.
3466
3467 2011-04-13  Bruno Haible  <bruno@clisp.org>
3468
3469         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3470         * modules/pwrite (Depends-on): Add 'write'.
3471
3472 2011-04-13  Bruno Haible  <bruno@clisp.org>
3473
3474         Support non-blocking pipe I/O in write() on native Windows.
3475         * lib/unistd.in.h (write): Enable replacement also if
3476         GNULIB_UNISTD_H_NONBLOCKING is 1.
3477         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3478         (rpl_write): When failing to write on a non-blocking pipe, change
3479         errno from ENOSPC to EAGAIN.
3480         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3481         putchar, puts, vfprintf, vprintf): Enable replacement also if
3482         GNULIB_STDIO_H_NONBLOCKING is 1.
3483         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3484         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3485         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3486         CALL_WITH_SIGPIPE_EMULATION.
3487         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3488         * m4/nonblocking.m4: New file.
3489         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3490         for non-blocking I/O support.
3491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3492         GNULIB_UNISTD_H_NONBLOCKING.
3493         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3494         required for non-blocking I/O support.
3495         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3496         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3497         lib/stdio-write.c, m4/asm-underscore.m4.
3498         (Depends-on): Add stdio, unistd.
3499         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3500         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3501         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3502         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3503         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3504         problem with non-blocking pipes.
3505         * doc/posix-functions/fputc.texi: Likewise.
3506         * doc/posix-functions/fputs.texi: Likewise.
3507         * doc/posix-functions/fwrite.texi: Likewise.
3508         * doc/posix-functions/printf.texi: Likewise.
3509         * doc/posix-functions/putc.texi: Likewise.
3510         * doc/posix-functions/putchar.texi: Likewise.
3511         * doc/posix-functions/puts.texi: Likewise.
3512         * doc/posix-functions/vfprintf.texi: Likewise.
3513         * doc/posix-functions/vprintf.texi: Likewise.
3514         * doc/posix-functions/write.texi: Likewise.
3515
3516 2011-04-10  Jim Meyering  <meyering@redhat.com>
3517
3518         maint.mk: prohibit doubled words
3519         Detect them also when they're separated by a newline.
3520         There are 3 ways to customize it:
3521           - disable the test on a per file basis, as usual with rules using
3522             $(VC_LIST_EXCEPT)
3523           - replace the default doubled-word-selecting regexp (affects all files)
3524           - ignore a particular file-vs-doubled-word match
3525         I nearly used that last one to ignore the "is is" match in
3526         coreutils' NEWS file, since the text was "ls -is is ..."
3527         To do that, I would have added this line to cfg.mk:
3528           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3529         but it would have ignored any "is is" match in NEWS.
3530         Low probability, but still...
3531         Instead, I changed the text, slightly:
3532           -  ls -is is now consistent with ls -lis in ignoring values returned
3533           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3534         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3535         (prohibit_doubled_word_): Define.
3536         (sc_prohibit_doubled_word): New rule.
3537         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3538
3539 2011-04-10  Jim Meyering  <meyering@redhat.com>
3540
3541         maint: fix doubled-word typo in comment
3542         * m4/gethostname.m4: s/is is/it is/
3543         * m4/getdomainname.m4: Likewise.
3544
3545 2011-04-10  Jim Meyering  <meyering@redhat.com>
3546
3547         maint: remove doubled word: s/it it/it/
3548         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3549
3550 2011-04-10  Jim Meyering  <meyering@redhat.com>
3551
3552         maint.mk: remove useless semicolon and backslash
3553         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3554         semicolon and backslash.
3555
3556 2011-04-10  Bruno Haible  <bruno@clisp.org>
3557
3558         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3559         * modules/stdint-tests (Depends-on): Add wchar.
3560
3561 2011-04-10  Jim Meyering  <meyering@redhat.com>
3562
3563         maint: remove doubled words in comments, e.g., s/a a/a/
3564         * lib/strptime.c (day_of_the_week): s/the the/the/
3565         * tests/test-chown.h (test_chown): s/a a/a/
3566
3567         test-chown.h: correct a cast
3568         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3569         when the destination is a stat.st_gid.
3570
3571 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3572
3573         getaddrinfo: Fix test for sa_len member.
3574         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3575         include <sys/types.h> before <sys/socket.h>.
3576
3577 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3578
3579         maint: change "can not" to "cannot"
3580         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3581         boundaries.
3582
3583 2011-04-09  Jim Meyering  <meyering@redhat.com>
3584
3585         maint: change "a a" to "a"
3586         * tests/test-lchown.h (test_lchown): s/a a/a/
3587
3588         maint.mk: prohibit \<the the\>
3589         * top/maint.mk (sc_prohibit_the_the): New rule.
3590
3591         maint: fix "the the" in comment
3592         * lib/count-one-bits.h: s/the the/the/
3593
3594         maint: change "can not" to "cannot"
3595         But do not change the occurrences in maintain.texi or in
3596         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3597         * doc/gnulib-tool.texi: s/can not/cannot/
3598         * doc/posix-functions/accept.texi (accept): Likewise.
3599         * doc/posix-functions/socket.texi (socket): Likewise.
3600         * lib/mbrtowc.c: Likewise.
3601
3602         maint.mk: prohibit use of "can not"
3603         * top/maint.mk (sc_prohibit_can_not): New rule.
3604         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3605
3606 2011-04-09  Bruno Haible  <bruno@clisp.org>
3607
3608         careadlinkat: Guard against misuse of careadlinkatcwd.
3609         * lib/careadlinkat.c: Include <stdlib.h>.
3610         (careadlinkatcwd): Check that the fd argument is as expected.
3611
3612 2011-04-09  Bruno Haible  <bruno@clisp.org>
3613
3614         careadlinkat: Use common coding style.
3615         * lib/careadlinkat.c: Move gnulib includes after system includes.
3616
3617 2011-04-09  Bruno Haible  <bruno@clisp.org>
3618
3619         careadlinkat: Clarify specification.
3620         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3621         (careadlinkatcwd): Add comment.
3622         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3623
3624 2011-04-09  Bruno Haible  <bruno@clisp.org>
3625
3626         areadlinkat: Avoid link error on many platforms.
3627         * modules/areadlinkat (Depends-on): Add areadlink.
3628
3629 2011-04-09  Bruno Haible  <bruno@clisp.org>
3630
3631         allocator, careadlinkat: Fix double-inclusion guard.
3632         * lib/allocator.h: Fix double-inclusion guard.
3633         * lib/careadlinkat.h: Likewise.
3634
3635 2011-04-09  Bruno Haible  <bruno@clisp.org>
3636
3637         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3638         * lib/relocwrapper.c: Update dependencies hierarchy.
3639         * build-aux/install-reloc: Update list of files to be compiled.
3640         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3641         lib/allocator.[hc].
3642
3643 2011-04-08  Eric Blake  <eblake@redhat.com>
3644
3645         strftime: silence gnulib-tool warning
3646         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3647
3648 2011-04-08  Bruno Haible  <bruno@clisp.org>
3649
3650         verify: Fix syntax error with GCC 4.6 in C++ mode.
3651         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3652         (HAVE_STATIC_ASSERT): New macro.
3653         (verify_true, verify): Use 'static_assert' if it is supported and
3654         '_Static_assert' is not supported.
3655
3656 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3657
3658         allocator: New module.
3659         * modules/allocator, lib/allocator.c: New files.
3660         * lib/allocator.h (stdlib_allocator): New decl.
3661         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3662         Remove.  Do not include <stdlib.h>.
3663         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3664         * modules/careadlinkat (Files): Remove lib/allocator.h.
3665         (Depends-on): Add allocator.
3666
3667         stdlib: let modules use system malloc, realloc
3668         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3669         if !_GL_USE_STDLIB_ALLOC.
3670         (malloc, realloc): Limit this change to a smaller scope.
3671
3672         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3673         (malloc, realloc): Don't #undef; no longer needed.
3674         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3675         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3676         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3677         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3678         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3679         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3680         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3681         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3682
3683         careadlinkat: rename members to avoid problem
3684         * lib/allocator.h (struct allocator): Rename members from
3685         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3686         and realloc are #define'd.  Reported by Eric Blake in
3687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3688         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3689
3690 2011-04-08  Eric Blake  <eblake@redhat.com>
3691
3692         nonblocking: reduce dependency
3693         * tests/test-nonblocking.c: Only test sockets when in use.
3694         * modules/nonblocking-tests (Depends-on): Drop socket.
3695         (Makefile.am): Link even if sockets are not present.
3696         * modules/pipe2-tests (Makefile.am): Likewise.
3697         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3698
3699         pipe2: fix O_NONBLOCK support on mingw
3700         * modules/pipe2 (Depends-on): Add nonblocking.
3701         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3702         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3703         * tests/test-nonblocking.c (main): Likewise.
3704         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3705
3706         fcntl-h: fix O_ACCMODE on cygwin
3707         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3708         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3709
3710         pipe-filter: drop O_NONBLOCK workarounds
3711         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3712         * modules/pipe-filter-ii (Depends-on): Likewise.
3713         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3714
3715         nonblocking: provide O_NONBLOCK for mingw
3716         * modules/nonblocking (Depends-on): Add open.
3717         (configure.ac): Set new witness macro.
3718         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3719         * modules/fcntl-h (Makefile.am): Substitute it.
3720         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3721         nonblocking module is in use.
3722         * lib/nonblocking.c: Adjust portability test.
3723         * lib/open.c (open): Don't let native open see gnulib flag.
3724         * tests/test-fcntl-h.c (main): Enhance test.
3725         * tests/test-open.h (test_open): Likewise.
3726         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3727
3728         careadlinkat: fix compilation error on mingw
3729         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3730         within struct allocator.
3731
3732 2011-04-06  Eric Blake  <eblake@redhat.com>
3733
3734         binary-io: relicense under LGPLv2+
3735         * modules/binary-io (License): Relax to LGPLv2+.
3736         Requested for libvirt, and required by pipe2.
3737
3738 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3739
3740         verify: use _Static_assert if available
3741         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3742         (verify_true, verify): Use it if available.  This generates better
3743         diagnostics with GCC 4.6.0 and later.
3744
3745 2011-04-05  Bruno Haible  <bruno@clisp.org>
3746
3747         Remove leftover generated .h files after config.status changed.
3748
3749         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3750         GL_GENERATE_ALLOCA_H.
3751         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3752         GL_GENERATE_ALLOCA_H evaluates to false.
3753
3754         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3755         GL_GENERATE_ARGZ_H.
3756         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3757         evaluates to false.
3758
3759         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3760         GL_GENERATE_BYTESWAP_H.
3761         * modules/byteswap (Makefile.am): Remove byteswap.h if
3762         GL_GENERATE_BYTESWAP_H evaluates to false.
3763
3764         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3765         GL_GENERATE_ERRNO_H.
3766         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3767         evaluates to false.
3768
3769         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3770         GL_GENERATE_FLOAT_H.
3771         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3772         evaluates to false.
3773
3774         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3775         GL_GENERATE_FNMATCH_H.
3776         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3777         GL_GENERATE_FNMATCH_H evaluates to false.
3778
3779         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3780         GL_GENERATE_GLOB_H.
3781         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3782         evaluates to false.
3783
3784         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3785         automake conditional GL_GENERATE_ICONV_H.
3786         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3787         evaluates to false.
3788
3789         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3790         GL_GENERATE_NETINET_IN_H.
3791         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3792         GL_GENERATE_NETINET_IN_H evaluates to false.
3793
3794         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3795         conditional GL_GENERATE_PTHREAD_H.
3796         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3797         * modules/pthread (Makefile.am): Remove pthread.h if
3798         GL_GENERATE_PTHREAD_H evaluates to false.
3799
3800         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3801         GL_GENERATE_SCHED_H.
3802         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3803         evaluates to false.
3804
3805         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3806         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3807         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3808         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3809
3810         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3811         GL_GENERATE_STDARG_H.
3812         * modules/stdarg (Makefile.am): Remove stdarg.h if
3813         GL_GENERATE_STDARG_H evaluates to false.
3814
3815         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3816         GL_GENERATE_STDBOOL_H.
3817         * modules/stdbool (Makefile.am): Remove stdbool.h if
3818         GL_GENERATE_STDBOOL_H evaluates to false.
3819
3820         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3821         conditional GL_GENERATE_STDDEF_H.
3822         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3823         * modules/stddef (Makefile.am): Remove stddef.h if
3824         GL_GENERATE_STDDEF_H evaluates to false.
3825
3826         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3827         GL_GENERATE_STDINT_H.
3828         * modules/stdint (Makefile.am): Remove stdint.h if
3829         GL_GENERATE_STDINT_H evaluates to false.
3830
3831         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3832         GL_GENERATE_SYSEXITS_H.
3833         * modules/sysexits (Makefile.am): Remove sysexits.h if
3834         GL_GENERATE_SYSEXITS_H evaluates to false.
3835
3836         Reported by Karl Berry and Ralf Wildenhues.
3837
3838 2011-04-05  Bruno Haible  <bruno@clisp.org>
3839
3840         Ensure to rebuild generated .h files when config.status has changed.
3841         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3842         config.status.
3843         * modules/ctype (Makefile.am): Likewise.
3844         * modules/dirent (Makefile.am): Likewise.
3845         * modules/errno (Makefile.am): Likewise.
3846         * modules/fcntl-h (Makefile.am): Likewise.
3847         * modules/float (Makefile.am): Likewise.
3848         * modules/getopt-posix (Makefile.am): Likewise.
3849         * modules/glob (Makefile.am): Likewise.
3850         * modules/iconv-h (Makefile.am): Likewise.
3851         * modules/inttypes (Makefile.am): Likewise.
3852         * modules/langinfo (Makefile.am): Likewise.
3853         * modules/locale (Makefile.am): Likewise.
3854         * modules/math (Makefile.am): Likewise.
3855         * modules/netdb (Makefile.am): Likewise.
3856         * modules/netinet_in (Makefile.am): Likewise.
3857         * modules/poll-h (Makefile.am): Likewise.
3858         * modules/pthread (Makefile.am): Likewise.
3859         * modules/pty (Makefile.am): Likewise.
3860         * modules/sched (Makefile.am): Likewise.
3861         * modules/search (Makefile.am): Likewise.
3862         * modules/selinux-h (Makefile.am): Likewise.
3863         * modules/signal (Makefile.am): Likewise.
3864         * modules/spawn (Makefile.am): Likewise.
3865         * modules/stdarg (Makefile.am): Likewise.
3866         * modules/stdbool (Makefile.am): Likewise.
3867         * modules/stddef (Makefile.am): Likewise.
3868         * modules/stdint (Makefile.am): Likewise.
3869         * modules/stdio (Makefile.am): Likewise.
3870         * modules/stdlib (Makefile.am): Likewise.
3871         * modules/string (Makefile.am): Likewise.
3872         * modules/strings (Makefile.am): Likewise.
3873         * modules/sys_file (Makefile.am): Likewise.
3874         * modules/sys_ioctl (Makefile.am): Likewise.
3875         * modules/sys_select (Makefile.am): Likewise.
3876         * modules/sys_socket (Makefile.am): Likewise.
3877         * modules/sys_stat (Makefile.am): Likewise.
3878         * modules/sys_time (Makefile.am): Likewise.
3879         * modules/sys_times (Makefile.am): Likewise.
3880         * modules/sys_utsname (Makefile.am): Likewise.
3881         * modules/sys_wait (Makefile.am): Likewise.
3882         * modules/sysexits (Makefile.am): Likewise.
3883         * modules/termios (Makefile.am): Likewise.
3884         * modules/time (Makefile.am): Likewise.
3885         * modules/unistd (Makefile.am): Likewise.
3886         * modules/wchar (Makefile.am): Likewise.
3887         * modules/wctype-h (Makefile.am): Likewise.
3888         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3889
3890 2011-04-05  Bruno Haible  <bruno@clisp.org>
3891
3892         pipe2: Relicense under LGPLv2+.
3893         * modules/pipe2 (License): Change to LGPLv2+.
3894         Requested by Eric Blake, for libvirt.
3895
3896 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3897
3898         bootstrap: compute gnulib_extra_files after updating build_aux
3899         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3900         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3901
3902 2011-04-05  Eric Blake  <eblake@redhat.com>
3903
3904         bootstrap: preserve git whitelist item sorting
3905         * build-aux/bootstrap (sort_patterns): New function.
3906         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3907
3908 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3909
3910         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3911         sc_space_tab check.
3912
3913 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3914
3915         areadlink, areadlinkat: rewrite in terms of careadlinkat
3916         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3917         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3918         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3919         (malloc, realloc): Remove #undefs.
3920         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3921         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3922         readlink, ssize_t, stdint, unistd.
3923         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3924         areadlink, stdint.
3925
3926         careadlinkat: new module
3927         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3928         * modules/careadlinkat: New files, written by me with
3929         a review and feedback from Ben Pfaff in
3930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3931
3932 2011-04-01  Bruno Haible  <bruno@clisp.org>
3933
3934         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3935         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3936         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3937         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3938         Reported by Bruce Korb <bruce.korb@gmail.com>.
3939
3940 2011-04-01  Bruno Haible  <bruno@clisp.org>
3941
3942         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3943         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3944         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3945         * modules/wcpcpy (Depends-on): Add extensions.
3946         * modules/wcpncpy (Depends-on): Likewise.
3947         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3948         systems.
3949         * doc/posix-functions/wcpncpy.texi: Likewise.
3950         * doc/posix-functions/wcwidth.texi: Likewise.
3951
3952 2011-03-31  Eric Blake  <eblake@redhat.com>
3953
3954         nonblocking: fix mingw test failures
3955         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3956         non-blocking flag on regular file.
3957         (get_nonblocking_flag): Set errno on invalid fd.
3958         * tests/test-nonblocking.c (main): Avoid test failure on
3959         directories if fchdir is not active.
3960         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3961
3962 2011-03-31  Bruno Haible  <bruno@clisp.org>
3963
3964         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3965         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3966         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3967         Reported by Simon Josefsson <simon@josefsson.org>.
3968
3969 2011-03-31  Bruno Haible  <bruno@clisp.org>
3970         and Eric Blake  <eblake@redhat.com>
3971
3972         nonblocking: new module
3973         * modules/nonblocking: New module.
3974         * modules/nonblocking-tests: Likewise.
3975         * lib/nonblocking.h: New file.
3976         * lib/nonblocking.c: Likewise.
3977         * tests/test-nonblocking.c: New test.
3978         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3979
3980 2011-03-30  Bruno Haible  <bruno@clisp.org>
3981
3982         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3983         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3984         instead of 'printf' format for GCC >= 4.4.
3985         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3986         (fprintf, printf, vfprintf, vprintf): Declare with
3987         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3988         the system's vfprintf() function.
3989         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3990
3991 2011-03-30  Eric Blake  <eblake@redhat.com>
3992
3993         passfd: fix scoping bug
3994         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3995         before sendmsg/recvmsg.
3996
3997         passfd: standardize coding conventions
3998         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3999         can be learned at compile time.
4000         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4001         ifdefs.
4002         (sendfd, recvfd): Follow gnulib code conventions.
4003
4004         passfd: fix incorrect sendmsg arguments
4005         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4006         incorrect msg_controllen value.
4007         * modules/passfd-tests (Depends-on): Check for alarm.
4008         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4009         Reported by Bastien ROUCARIES.
4010
4011 2011-03-30  Bruno Haible  <bruno@clisp.org>
4012
4013         c-strcasestr: Relicense under LGPLv2+.
4014         * modules/c-strcasestr (License): Change to LGPLv2+.
4015         Requested by Eric Blake, for libvirt.
4016
4017 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4018
4019         * users.txt: Add libidn2.  Fix libtasn1 link.
4020
4021 2011-03-30  Jim Meyering  <meyering@redhat.com>
4022
4023         tests: readlink* ("",... fails with EINVAL on newer kernels
4024         readlink and readlinkat have typically failed with ENOENT for
4025         the invalid, empty file name,  "".  However, with the advent
4026         of linux-2.6.39, they fail with EINVAL.
4027         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4028         when operating on the empty file name.
4029         * tests/test-readlink.h (test_readlink): Likewise.
4030
4031 2011-03-29  Bruno Haible  <bruno@clisp.org>
4032
4033         Relicense some modules under LGPLv2+, for libidn2.
4034         * modules/array-mergesort (License): Change to LGPLv2+.
4035         * modules/c-strcaseeq (License): Likewise.
4036         * modules/striconveh (License): Likewise.
4037         * modules/striconveha (License): Likewise.
4038         * modules/uniconv/base (License): Likewise.
4039         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4040         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4041         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4042         * modules/unictype/base (License): Likewise.
4043         * modules/unictype/bidiclass-of (License): Likewise.
4044         * modules/unictype/category-M (License): Likewise.
4045         * modules/unictype/category-none (License): Likewise.
4046         * modules/unictype/category-of (License): Likewise.
4047         * modules/unictype/category-test (License): Likewise.
4048         * modules/unictype/category-test-withtable (License): Likewise.
4049         * modules/unictype/combining-class (License): Likewise.
4050         * modules/unictype/joiningtype-of (License): Likewise.
4051         * modules/unictype/scripts (License): Likewise.
4052         * modules/uninorm/base (License): Likewise.
4053         * modules/uninorm/canonical-decomposition (License): Likewise.
4054         * modules/uninorm/composition (License): Likewise.
4055         * modules/uninorm/decompose-internal (License): Likewise.
4056         * modules/uninorm/decomposition-table (License): Likewise.
4057         * modules/uninorm/nfc (License): Likewise.
4058         * modules/uninorm/nfd (License): Likewise.
4059         * modules/uninorm/u32-normalize (License): Likewise.
4060         * modules/unistr/base (License): Likewise.
4061         * modules/unistr/u32-cpy (License): Likewise.
4062         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4063         * modules/unistr/u32-to-u8 (License): Likewise.
4064         * modules/unistr/u32-uctomb (License): Likewise.
4065         * modules/unistr/u8-check (License): Likewise.
4066         * modules/unistr/u8-mblen (License): Likewise.
4067         * modules/unistr/u8-mbtouc (License): Likewise.
4068         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4069         * modules/unistr/u8-mbtoucr (License): Likewise.
4070         * modules/unistr/u8-prev (License): Likewise.
4071         * modules/unistr/u8-strlen (License): Likewise.
4072         * modules/unistr/u8-to-u32 (License): Likewise.
4073         * modules/unistr/u8-uctomb (License): Likewise.
4074         * modules/unitypes (License): Likewise.
4075         Requested by Simon Josefsson.
4076
4077 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4078
4079         lib-symbol-visibility: Add a notice.
4080         * modules/lib-symbol-visibility (Notice): New field.
4081
4082 2011-03-29  Bruno Haible  <bruno@clisp.org>
4083
4084         getaddrinfo: Doc fix.
4085         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4086         section "fixed in Gnulib".
4087
4088 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4089
4090         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4091         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4092
4093 2011-03-26  Bruno Haible  <bruno@clisp.org>
4094
4095         unictype/property-byname: Reduce the number of load-time relocations.
4096         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4097         (UC_PROPERTY_INDEX_*): New enumeration values.
4098         (uc_property_byname): Convert an index from the lookup table to an
4099         uc_property_t.
4100         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4101         values.
4102
4103 2011-03-26  Bruno Haible  <bruno@clisp.org>
4104
4105         unictype/property-byname: Allow omitted word separators and aliases.
4106         * lib/unictype/pr_byname.gperf: Add property names without word
4107         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4108         for 'space'.
4109
4110 2011-03-26  Bruno Haible  <bruno@clisp.org>
4111
4112         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4113         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4114         also hyphens to space.
4115         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4116         without spaces.
4117         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4118
4119 2011-03-26  Bruno Haible  <bruno@clisp.org>
4120
4121         unictype/joiningtype-byname: Recognize long names as well.
4122         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4123         a long name.
4124         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4125         unictype/joiningtype_byname.h.
4126         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4127         * lib/unictype/joiningtype_byname.gperf: New file.
4128         * modules/unictype/joiningtype-byname (Files): Add
4129         lib/unictype/joiningtype_byname.gperf.
4130         (Depends-on): Add gperf.
4131         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4132         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4133         long names.
4134
4135         Tests for module 'unictype/joiningtype-longname'.
4136         * modules/unictype/joiningtype-longname-tests: New file.
4137         * tests/unictype/test-joiningtype_longname.c: New file.
4138
4139         New module 'unictype/joiningtype-longname'.
4140         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4141         * lib/unictype/joiningtype_longname.c: New file.
4142         * modules/unictype/joiningtype-longname: New file.
4143         * modules/unictype/joiningtype-all (Depends-on): Add
4144         unictype/joiningtype-longname.
4145
4146 2011-03-26  Bruno Haible  <bruno@clisp.org>
4147
4148         unictype/bidiclass-byname: Recognize long names as well.
4149         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4150         name.
4151         * lib/unictype/bidi_byname.c: Include <string.h>,
4152         unictype/bidi_byname.h.
4153         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4154         * lib/unictype/bidi_byname.gperf: New file.
4155         * modules/unictype/bidiclass-byname (Files): Add
4156         lib/unictype/bidi_byname.gperf.
4157         (Depends-on): Add gperf.
4158         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4159         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4160         long names.
4161
4162         Tests for module 'unictype/bidiclass-longname'.
4163         * modules/unictype/bidiclass-longname-tests: New file.
4164         * tests/unictype/test-bidi_longname.c: New file.
4165
4166         New module 'unictype/bidiclass-longname'.
4167         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4168         * lib/unictype/bidi_longname.c: New file.
4169         * modules/unictype/bidiclass-longname: New file.
4170         * modules/unictype/bidiclass-all (Depends-on): Add
4171         unictype/bidiclass-longname.
4172
4173 2011-03-26  Bruno Haible  <bruno@clisp.org>
4174
4175         unictype/bidi*: Rename modules.
4176         * modules/unictype/bidiclass-all: Renamed from
4177         modules/unictype/bidicategory-all.
4178         * modules/unictype/bidiclass-name: Renamed from
4179         modules/unictype/bidiclass-name.
4180         (Description): Update.
4181         * modules/unictype/bidiclass-name-tests: Renamed from
4182         modules/unictype/bidicategory-name-tests.
4183         * modules/unictype/bidiclass-byname: Renamed from
4184         modules/unictype/bidicategory-byname.
4185         (Description): Update.
4186         * modules/unictype/bidiclass-byname-tests: Renamed from
4187         modules/unictype/bidicategory-byname-tests.
4188         * modules/unictype/bidiclass-of: Renamed from
4189         modules/unictype/bidicategory-of.
4190         (Description): Update.
4191         * modules/unictype/bidiclass-of-tests: Renamed from
4192         modules/unictype/bidicategory-of-tests.
4193         * modules/unictype/bidiclass-test: Renamed from
4194         modules/unictype/bidicategory-test.
4195         (Description): Update.
4196         * modules/unictype/bidiclass-test-tests: Renamed from
4197         modules/unictype/bidicategory-test-tests.
4198         * modules/unictype/bidicategory-all: New file, a simple redirection.
4199         * modules/unictype/bidicategory-name: Likewise.
4200         * modules/unictype/bidicategory-byname: Likewise.
4201         * modules/unictype/bidicategory-of: Likewise.
4202         * modules/unictype/bidicategory-test: Likewise.
4203         * modules/unictype/property-bidi-* (Dependencies): Update.
4204         * lib/unictype/bidi_*.c: Update comment.
4205
4206 2011-03-26  Bruno Haible  <bruno@clisp.org>
4207
4208         unictype/bidi*: Rename functions, part 2.
4209         * modules/unictype/bidicategory-name (configure.ac): Update required
4210         libunistring version.
4211         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4212
4213 2011-03-25  Bruno Haible  <bruno@clisp.org>
4214
4215         New module 'unictype/combining-class-all'.
4216         * modules/unictype/combining-class-all: New file.
4217
4218         Tests for module 'unictype/combining-class-byname'.
4219         * modules/unictype/combining-class-byname-tests: New file.
4220         * tests/unictype/test-combiningclass_byname.c: New file.
4221
4222         New module 'unictype/combining-class-byname'.
4223         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4224         * lib/unictype/combiningclass_byname.c: New file.
4225         * lib/unictype/combiningclass_byname.gperf: New file.
4226         * modules/unictype/combining-class-byname: New file.
4227
4228         Tests for module 'unictype/combining-class-longname'.
4229         * modules/unictype/combining-class-longname-tests: New file.
4230         * tests/unictype/test-combiningclass_longname.c: New file.
4231
4232         New module 'unictype/combining-class-longname'.
4233         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4234         * lib/unictype/combiningclass_longname.c: New file.
4235         * modules/unictype/combining-class-longname: New file.
4236
4237         Tests for module 'unictype/combining-class-name'.
4238         * modules/unictype/combining-class-name-tests: New file.
4239         * tests/unictype/test-combiningclass_name.c: New file.
4240
4241         New module 'unictype/combining-class-name'.
4242         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4243         * lib/unictype/combiningclass_name.c: New file.
4244         * modules/unictype/combining-class-name: New file.
4245
4246 2011-03-25  Bruno Haible  <bruno@clisp.org>
4247
4248         unictype/combining-class: Rename source files.
4249         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4250         of unictype/combining.h.
4251         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4252         Update.
4253         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4254         * modules/unictype/combining-class (Description): Fix.
4255         (Files, Makefile.am): Update.
4256         * tests/unictype/test-combiningclass.c: Renamed from
4257         tests/unictype/test-combining.c.
4258         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4259
4260 2011-03-25  Bruno Haible  <bruno@clisp.org>
4261
4262         unictype: Update list of canonical combining classes.
4263         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4264
4265 2011-03-25  Bruno Haible  <bruno@clisp.org>
4266
4267         unictype/category-byname: Recognize long names as well.
4268         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4269         a long name.
4270         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4271         unictype/categ_byname.h.
4272         (UC_CATEGORY_INDEX_*): New enumeration values.
4273         (uc_general_category_byname): Use uc_general_category_lookup and
4274         convert from index to value.
4275         * lib/unictype/categ_byname.gperf: New file.
4276         * modules/unictype/category-byname (Files): Add
4277         lib/unictype/categ_byname.gperf.
4278         (Depends-on): Add gperf.
4279         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4280         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4281         long names.
4282
4283         Tests for module 'unictype/category-longname'.
4284         * modules/unictype/category-longname-tests: New file.
4285         * tests/unictype/test-categ_longname.c: New file.
4286
4287         New module 'unictype/category-longname'.
4288         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4289         * lib/unictype/categ_longname.c: New file.
4290         * modules/unictype/category-longname: New file.
4291         * modules/unictype/category-all (Depends-on): Add it.
4292
4293 2011-03-25  Bruno Haible  <bruno@clisp.org>
4294
4295         Tests for module 'unictype/category-LC'.
4296         * modules/unictype/category-LC-tests: New file.
4297         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4298
4299         New module 'unictype/category-LC'.
4300         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4301         (UC_CATEGORY_LC): New declaration.
4302         (UC_CASED_LETTER): New macro.
4303         * lib/gen-uni-tables.c (is_category_LC): New function.
4304         (output_categories): Also handle category LC.
4305         (UC_CATEGORY_MASK_LC): New enumeration value.
4306         (general_category_byname): Also handle category LC.
4307         * lib/unictype/categ_LC.c: New file.
4308         * lib/unictype/categ_LC.h: New file, automatically generated.
4309         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4310         category LC.
4311         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4312         * modules/unictype/category-LC: New file.
4313         * modules/unictype/category-byname (Depends-on): Add
4314         unictype/category-LC.
4315         * modules/unictype/category-all (Depends-on): Likewise.
4316
4317 2011-03-25  Eric Blake  <eblake@redhat.com>
4318
4319         xmalloc: revert yesterday's regression
4320         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4321         realloc's underlying behavior (allowing allocation of zero-size
4322         objects, especially if malloc-gnu is also in use).
4323
4324 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4325
4326         maint.mk: add missing version to VC-tag
4327         * top/maint.mk: git tag was missing actual tag name; add it.
4328
4329         valgrind: do leak checking, and exit with code 1 on error (not 0)
4330         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4331         to VALGRIND.
4332
4333 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4334
4335         posix-modules: say what it does.
4336         * posix-modules: Add a line to the --help output saying what it does.
4337
4338 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4339
4340         xmalloc: Do not leak if underlying realloc is C99 compatible.
4341         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4342         This avoids a leak on C99-based systems.  See
4343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4344
4345 2011-03-24  Eric Blake  <eblake@redhat.com>
4346
4347         realloc: document portability problem
4348         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4349         passing 0 size to realloc.
4350
4351 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4352
4353         doc: update users.txt
4354         * users.txt: Add cvsps, tmpwatch
4355
4356 2011-03-23  Matt Rice  <ratmice@gmail.com>
4357
4358         doc: update users.txt
4359         * users.txt: Add gdb.
4360
4361 2011-03-23  Jim Meyering  <meyering@redhat.com>
4362
4363         doc: update users.txt
4364         Looking through matches up to the following URL (there are still
4365         several more pages), I found several projects that use gnulib:
4366         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4367         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4368         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4369
4370 2011-03-22  Bruno Haible  <bruno@clisp.org>
4371
4372         unictype/bidi*: Rename functions.
4373         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4374         uc_bidi_class, uc_is_bidi_class): New declarations.
4375         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4376         uc_bidi_category_byname.
4377         (uc_bidi_category_byname): New function.
4378         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4379         u_bidi_category_name.
4380         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4381         (uc_bidi_category_name): New function.
4382         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4383         uc_bidi_category.
4384         (uc_bidi_category): New function.
4385         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4386         uc_is_bidi_category. Invoke uc_bidi_class.
4387         (uc_is_bidi_category): New function.
4388         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4389         instead of uc_bidi_category_byname.
4390         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4391         instead of uc_bidi_category_name.
4392         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4393         uc_bidi_category.
4394         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4395         instead of uc_is_bidi_category.
4396
4397 2011-03-21  Bruno Haible  <bruno@clisp.org>
4398
4399         New module 'unictype/joininggroup-all'.
4400         * modules/unictype/joininggroup-all: New file.
4401
4402         Tests for module 'unictype/joininggroup-of'.
4403         * modules/unictype/joininggroup-of-tests: New file.
4404         * tests/unictype/test-joininggroup_of.c: New file.
4405         * tests/unictype/test-joininggroup_of.h: New file, automatically
4406         generated by gen-uni-tables.
4407
4408         New module 'unictype/joininggroup-of'.
4409         * modules/unictype/joininggroup-of: New file.
4410         * lib/unictype/joininggroup_of.c: New file.
4411         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4412         gen-uni-tables.
4413
4414         Tests for module 'unictype/joininggroup-byname'.
4415         * modules/unictype/joininggroup-byname-tests: New file.
4416         * tests/unictype/test-joininggroup_byname.c: New file.
4417
4418         New module 'unictype/joininggroup-byname'.
4419         * modules/unictype/joininggroup-byname: New file.
4420         * lib/unictype/joininggroup_byname.c: New file.
4421         * lib/unictype/joininggroup_byname.gperf: New file.
4422
4423         Tests for module 'unictype/joininggroup-name'.
4424         * modules/unictype/joininggroup-name-tests: New file.
4425         * tests/unictype/test-joininggroup_name.c: New file.
4426
4427         New module 'unictype/joininggroup-name'.
4428         * modules/unictype/joininggroup-name: New file.
4429         * lib/unictype/joininggroup_name.c: New file.
4430         * lib/unictype/joininggroup_name.h: New file.
4431
4432         New module 'unictype/joiningtype-all'.
4433         * modules/unictype/joiningtype-all: New file.
4434
4435         Tests for module 'unictype/joiningtype-of'.
4436         * modules/unictype/joiningtype-of-tests: New file.
4437         * tests/unictype/test-joiningtype_of.c: New file.
4438         * tests/unictype/test-joiningtype_of.h: New file, automatically
4439         generated by gen-uni-tables.
4440
4441         New module 'unictype/joiningtype-of'.
4442         * modules/unictype/joiningtype-of: New file.
4443         * lib/unictype/joiningtype_of.c: New file.
4444         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4445         gen-uni-tables.
4446
4447         Tests for module 'unictype/joiningtype-byname'.
4448         * modules/unictype/joiningtype-byname-tests: New file.
4449         * tests/unictype/test-joiningtype_byname.c: New file.
4450
4451         New module 'unictype/joiningtype-byname'.
4452         * modules/unictype/joiningtype-byname: New file.
4453         * lib/unictype/joiningtype_byname.c: New file.
4454
4455         Tests for module 'unictype/joiningtype-name'.
4456         * modules/unictype/joiningtype-name-tests: New file.
4457         * tests/unictype/test-joiningtype_name.c: New file.
4458
4459         New module 'unictype/joiningtype-name'.
4460         * modules/unictype/joiningtype-name: New file.
4461         * lib/unictype/joiningtype_name.c: New file.
4462
4463         unictype: Add support for Arabic shaping properties.
4464         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4465         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4466         declarations.
4467         (UC_JOINING_GROUP_*): New enumeration values.
4468         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4469         declarations.
4470         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4471         (unicode_joining_type): New variable.
4472         (UC_JOINING_GROUP_*): New enumeration values.
4473         (unicode_joining_group): New variable.
4474         (fill_arabicshaping, joining_type_as_c_identifier,
4475         output_joining_type_test, output_joining_type,
4476         joining_group_as_c_identifier, output_joining_group_test,
4477         output_joining_group): New functions.
4478         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4479         fill_arabicshaping and output_joining_type_test, output_joining_type,
4480         output_joining_group_test, output_joining_group.
4481         Reported by Simon Josefsson.
4482
4483 2011-03-21  Jim Meyering  <meyering@redhat.com>
4484
4485         strftime: fix a bug in yesterday's change
4486         * lib/strftime.c (add): Accommodate width's initial value of -1.
4487         Otherwise, nstrftime would copy uninitialized data into
4488         the result buffer.
4489
4490 2011-03-21  Jim Meyering  <meyering@redhat.com>
4491
4492         tests: add strftime-tests module
4493         * tests/test-strftime.c: New file.
4494         * modules/strftime-tests: New module.
4495
4496 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4497
4498         strftime: don't assume a byte count fits in 'int'
4499         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4500         found this problem by static analysis, using gcc -Wstrict-overflow
4501         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4502         on an integer overflow having undefined behavior, but it turns out
4503         that the argument is a size, which might not fit in 'int' anyway,
4504
4505 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4506
4507         stdio: don't require ignore_value around fwrite
4508
4509         This patch works around libc bug 11959
4510         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4511         Without this patch, applications must often write
4512         ignore_value (fwrite (...)) even though the ignore_value is
4513         not helpful here.  It's common to write many objects, using
4514         fwrite/printf/etc., and then use ferror to detect output error.
4515
4516         I considered making this patch optional, but decided against it,
4517         because libc is obviously being inconsistent here: there is no
4518         reason libc should insist that user code must inspect fwrite
4519         return's value without also insisting that it inspect printf's,
4520         putchar's, etc.  If user code wants to have a strict style where
4521         all these functions' values are checked (so that ferror need not
4522         be checked), we could add support for that style in a new gnulib
4523         module, but in the meantime it's better to be consistent and to
4524         support common usage.
4525
4526         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4527         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4528         that we are compiling in checking mode, and if not C++, and
4529         if not already wrapping fwrite for some other reason.
4530         (fwrite): #define to rpl_fwrite if the latter is defined.
4531
4532 2011-03-20  Bruno Haible  <bruno@clisp.org>
4533
4534         verror: Fix compilation error introduced on 2011-02-13.
4535         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4536         instead of __attribute__.
4537         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4538
4539 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4540             Bruno Haible  <bruno@clisp.org>
4541
4542         socklen: do not depend on sys_socket
4543         While trying to modify Emacs to use gnulib's socklen module,
4544         I discovered a circular dependency: socklen depends on sys_socket
4545         and vice versa.  Emacs can use socklen, but it does not need
4546         sys_socket because it has its own substitute for sys/socket.h.
4547         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4548         gl_TYPE_SOCKLEN_T.
4549         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4550         gl_PREREQ_SYS_H_SOCKET.
4551         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4552         gl_PREREQ_SYS_H_SOCKET.
4553         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4554         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4555         * modules/socklen (Depends-on): Do not depend on sys_socket.
4556         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4557
4558 2011-03-20  Jim Meyering  <meyering@redhat.com>
4559
4560         maint.mk: sort file names *after* new transformation
4561         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4562         prefix would have led to an unwarranted failure in GNU parted.
4563         Sort after that transformation.
4564
4565 2011-03-19  Jim Meyering  <meyering@redhat.com>
4566
4567         maint.mk: fix po-file syntax-check rule
4568         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4569         Patch by Bruno Haible.
4570
4571 2011-03-19  Bruno Haible  <bruno@clisp.org>
4572
4573         socklen: Update comment.
4574         * m4/socklen.m4: Update comment about platforms.
4575
4576 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4577             Bruno Haible  <bruno@clisp.org>
4578
4579         inet_ntop, inet_pton: Simplify.
4580         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4581         documented to provide socklen_t and we already depend on sys_socket.
4582         * modules/inet_pton (Depends-on): Likewise.
4583         * lib/arpa_inet.in.h: Adjust comment.
4584
4585 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4586             Bruno Haible  <bruno@clisp.org>
4587
4588         netdb: Simplify.
4589         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4590         documented to provide socklen_t and we already depend on sys_socket.
4591         * lib/netdb.in.h: Adjust comment.
4592
4593 2011-03-19  Bruno Haible  <bruno@clisp.org>
4594
4595         sys_socket, netdb: Document problem with socklen_t.
4596         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4597         platforms.
4598         * doc/posix-headers/netdb.texi: Likewise.
4599
4600 2011-03-18  Eric Blake  <eblake@redhat.com>
4601
4602         maint.mk: let po check work in VPATH build
4603         * top/maint.mk (po_file): Allow cfg.mk override.
4604         (sc_po_check): Allow VPATH use.
4605         Reported by Jiri Denemark.
4606
4607 2011-03-16  Jim Meyering  <meyering@redhat.com>
4608
4609         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4610         Before, you would have had to create one .x-sc_ file per rule in order
4611         to exempt offending files.  Now, you may instead use a Make variable --
4612         usually defined in cfg.mk -- whose name identifies the affected rule.
4613         * top/maint.mk (_sc_excl): Define.
4614         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4615         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4616
4617 2011-03-13  Bruno Haible  <bruno@clisp.org>
4618
4619         ignore-value tests: Avoid warnings.
4620         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4621         empty for gcc < 3.4.
4622
4623 2011-03-13  Bruno Haible  <bruno@clisp.org>
4624
4625         passfd: Fix link error on Solaris.
4626         * modules/passfd (Description): Correct.
4627         (Depends-on): Add socketlib.
4628         (Link): New section.
4629         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4630
4631 2011-03-13  Bruno Haible  <bruno@clisp.org>
4632
4633         passfd: Fix link error on AIX 5.2.
4634         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4635
4636 2011-03-13  Bruno Haible  <bruno@clisp.org>
4637
4638         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4639         * lib/sys_socket.in.h: Include <stddef.h>.
4640         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4641         CMSG_FIRSTHDR. Remove unused variable.
4642
4643 2011-03-13  Bruno Haible  <bruno@clisp.org>
4644
4645         passfd: Fix compilation error on OpenBSD.
4646         * lib/passfd.c: Include <sys/uio.h>.
4647
4648 2011-03-13  Bruno Haible  <bruno@clisp.org>
4649
4650         passfd test: Fix warnings.
4651         * tests/test-passfd.c: Include <sys/wait.h>.
4652         (main): Fix typo.
4653
4654 2011-03-13  Bruno Haible  <bruno@clisp.org>
4655
4656         passfd module, part 4, tweaks.
4657         * tests/test-passfd.c: Reorder includes.
4658         (main): Fix perror and printf calls.
4659
4660 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4661
4662         passfd module, part 4.
4663         * modules/passfd-tests: New file.
4664         * tests/test-passfd.c: New file.
4665
4666 2011-03-13  Jim Meyering  <meyering@redhat.com>
4667
4668         Makefile: rely on GNU make; derive syntax-check rule names
4669         Rather than requiring that each sc_ rule be listed as a dependent
4670         of "check", use features of GNU make to derive the list.
4671         * Makefile (syntax-check-rules): Define.
4672         (check): Depend on the new variable, not the hard-coded list.
4673
4674 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4675             Bruno Haible  <bruno@clisp.org>
4676
4677         passfd module, part 3.
4678         * lib/passfd.h (recvfd): Add a flags argument.
4679         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4680         (recvfd): Add a flags argument.
4681         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4682         exists.
4683         * modules/passfd (Depends-on): Add cloexec.
4684         Suggested by Eric Blake.
4685
4686 2011-03-13  Bruno Haible  <bruno@clisp.org>
4687
4688         passfd module, part 2, tweaks.
4689         * modules/passfd (Files): Reorder.
4690         (Depends-on): Remove errno.
4691         (Include): Remove <sys/socket.h>, <sys/un.h>.
4692         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4693         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4694         specification header. Include <sys/socket.h> always. Don't include
4695         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4696         (sendfd): Clarify that it sets errno when it fails.
4697         (recvfd): Fix specification.
4698
4699 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4700
4701         passfd module, part 2.
4702         * modules/passfd: New file.
4703         * lib/passfd.h: New file.
4704         * lib/passfd.c: New file.
4705
4706 2011-03-12  Bruno Haible  <bruno@clisp.org>
4707
4708         wcswidth, mbswidth: Avoid integer overflow.
4709         * lib/wcswidth.c: Include <limits.h>.
4710         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4711         * lib/mbswidth.c: Include <limits.h>.
4712         (mbsnwidth): Avoid 'int' overflow.
4713         Reported by Jim Meyering.
4714
4715 2011-03-12  Bruno Haible  <bruno@clisp.org>
4716
4717         futimens, utimensat: Avoid endless recursion on Solaris 10.
4718         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4719         Solaris.
4720         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4721         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4722
4723 2011-03-11  Jim Meyering  <meyering@redhat.com>
4724
4725         maint.mk: relax a regexp to accommodate other formatting styles
4726         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4727         between "ngettext" and the following "(".
4728
4729 2011-03-11  Pádraig Brady <P@draigBrady.com>
4730
4731         maint.mk: suppress a false positive warning
4732         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4733         diagnostics are marked with ngettext.
4734
4735 2011-03-10  Eric Blake  <eblake@redhat.com>
4736
4737         wchar: add explicit dependencies, for Tru64
4738         * modules/mbmemcasecoll (Depends-on): Add wchar.
4739         * modules/mbtowc (Depends-on): Likewise.
4740         * modules/vasnprintf (Depends-on): Likewise.
4741         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4742         * modules/wctomb (Depends-on): Likewise.
4743         Reported by Peter O'Gorman.
4744
4745 2011-03-08  Bruno Haible  <bruno@clisp.org>
4746
4747         passfd module, part 1, tweaks.
4748         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4749         Improve indentation. Improve AC_MSG_CHECKING messages.
4750         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4751         gl_SOCKET_FAMILIES.
4752
4753 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4754
4755         passfd module, part 1.
4756         * m4/afunix.m4: New file.
4757         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4758         sockets.
4759
4760 2011-03-08  Bruno Haible  <bruno@clisp.org>
4761
4762         regex-quote: New API.
4763         * lib/regex-quote.h: Include <stdbool.h>.
4764         (struct regex_quote_spec): New type.
4765         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4766         New declarations.
4767         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4768         'const struct regex_quote_spec *' argument.
4769         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4770         (pcre_special): New constant.
4771         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4772         New functions.
4773         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4774         'const struct regex_quote_spec *' argument.
4775         * modules/regex-quote (Depends-on): Add stdbool.
4776         * tests/test-regex-quote.c (check): Update for new API. Add test for
4777         anchored results.
4778         * NEWS: Mention the API change.
4779         Reported by Reuben Thomas and Eric Blake.
4780
4781 2011-03-06  Bruno Haible  <bruno@clisp.org>
4782
4783         regex-quote: Fix creation of POSIX extended regular expressions.
4784         * lib/regex-quote.c (ere_special): Add grouping and alternation
4785         operators.
4786
4787 2011-03-05  Bruno Haible  <bruno@clisp.org>
4788
4789         doc: Improve doc regarding autopoint vs. gnulib.
4790         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4791         disable autopoint while running autoreconf.
4792         Suggested by Ralf Wildenhues.
4793
4794 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4795
4796         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4797         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4798
4799 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4800
4801         parse-duration: remove xalloc.h dependency
4802         * lib/parse-duration.c (parse_period): handle NULL return from
4803         strdup instead of calling xstrdup().
4804         * modules/parse-duration: remove "xalloc" dependency
4805
4806 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4807
4808         bootstrap: honor m4_base when running aclocal
4809         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4810
4811 2011-03-02  Jim Meyering  <meyering@redhat.com>
4812
4813         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4814         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4815         on request from Matt Booth.
4816
4817 2011-03-01  Eric Blake  <eblake@redhat.com>
4818
4819         test-link: work on Hurd
4820         * tests/test-link.h (test_link): Hurd rejects linking directories
4821         with EISDIR instead of the POSIX-mandated EPERM.
4822
4823 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4824
4825         stdio: simplify by moving files to printf-posix, sigpipe
4826         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4827         since this symbol is needed only if printf is replaced.
4828         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4829         Require gl_ASM_SYMBOL_PREFIX.
4830         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4831         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4832         (Depends-on): Add 'raise'.
4833         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4834         * modules/stdio (Files): Remove lib/stdio-write.c,
4835         m4/asm-underscore.m4.
4836         (Depends-on): Remove 'raise'.
4837
4838         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4839         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4840         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4841         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4842
4843 2011-02-28  Bruno Haible  <bruno@clisp.org>
4844
4845         localcharset: Assume ANSI C behaviour of free().
4846         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4847         calling free().
4848         Suggested by Simon Josefsson <simon@josefsson.org>.
4849
4850 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4851             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4852             Bruno Haible  <bruno@clisp.org>  (tiny change)
4853
4854         On Cygwin, use /proc file system instead of win32 API.
4855         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4856         Win32 file names.
4857         (DllMain): Simplify by removing Cygwin specific code.
4858         (find_shared_library_fullname): Use Linux specific implementation also
4859         for Cygwin.
4860         (get_shared_library_fullname): Update accordingly.
4861         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4862         Win32 file names.
4863         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4864         Cygwin specific code.
4865
4866 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4867             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4868
4869         Fix OpenMP flag detection for various Fortran compilers.
4870         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4871         OpenMP-conditional compilation construct, to force compile
4872         failure with missing OpenMP flag.
4873         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4874
4875 2011-02-25  Eric Blake  <eblake@redhat.com>
4876
4877         strstr: expand test coverage
4878         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4879         compilation.
4880         * tests/test-memmem.c (main): Duplicate tests.
4881         * tests/test-strcasestr.c (main): Likewise.
4882         * tests/test-c-strcasestr.c (main): Likewise.
4883
4884 2011-02-25  Jim Meyering  <meyering@redhat.com>
4885
4886         maint.mk: detect missing-NL-at-EOF, too
4887         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4888         it also detects when a file lacks a newline at EOF.
4889         (require_exactly_one_NL_at_EOF_): Renamed from
4890         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4891         since people may well have .x-sc_... file names tied to the
4892         existing name.  Suggested by Eric Blake.
4893
4894 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4895
4896         dirname: move m4/dos.m4 functionality into lib/dosname.h
4897
4898         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4899         extracts symbols from it, puts them into config.h; but it's much
4900         easier to use the symbols directly.  filename.h already does this,
4901         but it disagrees with dos.m4 in some respects.  This patch
4902         introduces a different include file dosname.h that packages up
4903         dos.m4, and then later we can work on merging filename.h and
4904         dosname.h.  Applications that need only the easy-to-configure
4905         symbols should consider including dosname.h rather than dirname.h.
4906         * NEWS: Mention incompatible changes.
4907         * m4/dos.m4: Remove.
4908         * lib/dosname.h, modules/dosname: New files.
4909         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4910         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4911         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4912         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4913         Include dosname.h, not dirname.h.
4914         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4915         Include dosname.h, for definitions of symbols like ISSLASH
4916         that used to be in config.h.
4917         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4918         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4919         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4920         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4921         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4922         * modules/rmdir (Files): Likewise.
4923         * modules/stat (Files): Likewise.
4924         * modules/unlink (Files): Likewise.
4925         * modules/dirname-lgpl (Depends-on): Add dosname.
4926         * modules/lstat (Depends-on): Likewise.
4927         * modules/openat (Depends-on): Likewise.
4928         * modules/rmdir (Depends-on): Likewise.
4929         * modules/savewd (Depends-on): Likewise.
4930         * modules/stat (Depends-on): Likewise.
4931         * modules/unlink (Depends-on): Likewise.
4932         * modules/openat (Depends-on): Remove dirname-lgpl.
4933         * modules/savewd (Depends-on): Likewise.
4934         * tests/test-dirname.c: Do not use removed symbols like
4935         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4936         the remaining symbols, e.g., ISSLASH ('\\').
4937
4938 2011-02-25  Eric Blake  <eblake@redhat.com>
4939
4940         strstr: revert patches that introduced bug and pessimization
4941         * lib/str-two-way.h: Add another reference.
4942         (two_way_short_needle, two_way_long_needle): Revert changes from
4943         2011-02-24; they pessimize search speed.
4944         (critical_factorization): Partially revert changes from
4945         2010-06-22; they violate the requirement that the left half of the
4946         needle be smaller than the period of the needle.
4947
4948 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4949
4950         filenamecat: remove unnecessary dependency on dirname-lgpl
4951         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4952         is no direct dependency, just an indirect one via filenamecat-lgpl.
4953
4954         remove: remove unnecessary use of m4/dos.m4
4955         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4956         * modules/remove (FILES): Remove m4/dos.m4.
4957
4958         * lib/openat-proc.c: Don't include dirname.h; not needed.
4959
4960         backupfile: remove unnecessary use of m4/dos.m4
4961         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4962         of its symbols are used by the backupfile code.  backupfile.c does
4963         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4964         for the rare case of programs that want all their backup file
4965         names to live within 8+3 limits, and dos.m4 doesn't address that.
4966         * modules/backupfile (Files): Remove m4/dos.m4.
4967
4968 2011-02-24  Jim Meyering  <meyering@redhat.com>
4969
4970         strstr: fix a bug whereby strstr would mistakenly return NULL
4971         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4972         in period calculation.
4973         (two_way_long_needle): Likewise.
4974         The original problem was reported by Mike Stump in
4975         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4976         Ralf Wildenhues provided the short needle and haystack.
4977         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4978         Add a more involved test to trigger the bug in two_way_long_needle.
4979
4980 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4981
4982         gnulib-tool: remove use of bold display in help screen
4983         * gnulib-tool (func_usage): Do not use bold display anymore in the
4984         help screen.  That was just meant to be a temporary emphasis for a
4985         backward-incompatible change.
4986
4987 2011-02-23  Bruno Haible  <bruno@clisp.org>
4988
4989         Fix misindentation of preprocessor directives.
4990         * lib/argp-namefrob.h: Reindent preprocessor directives.
4991         * lib/getopt_int.h (struct _getopt_data): Likewise.
4992         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4993         * lib/vasnprintf.c (decode_long_double): Likewise.
4994         * tests/test-argmatch.c: Insert blank lines, for clarity.
4995         * tests/test-exclude.c: Likewise.
4996
4997 2011-02-22  Bruno Haible  <bruno@clisp.org>
4998
4999         ioctl: Fix for MacOS X in 64-bit mode.
5000         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5001         value.
5002         Suggested by Eric Blake.
5003         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5004
5005 2011-02-22  Jim Meyering  <meyering@redhat.com>
5006
5007         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5008         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5009         in lib/.
5010
5011 2011-02-22  Eric Blake  <eblake@redhat.com>
5012
5013         maint: avoid any CDPATH issue
5014         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5015
5016         maint: adjust cpp indentation for my modules, as well
5017         * Makefile (sc_cpp_indent_check): Add my name.
5018         * lib/fbufmode.c: Filter through cppi.
5019         * lib/fpurge.c: Likewise.
5020         * lib/freadable.c: Likewise.
5021         * lib/freading.c: Likewise.
5022         * lib/fwritable.c: Likewise.
5023         * lib/fwriting.c: Likewise.
5024         * lib/sigaction.c: Likewise.
5025
5026 2011-02-22  Jim Meyering  <meyering@redhat.com>
5027
5028         maint: adjust cpp indentation to reflect nesting depth
5029         I.e., in a block of code that begins with an unnested "#if",
5030         put one space between the "#" in column 1 and following token.
5031         For example,
5032         -#include <sys/vfs.h>
5033         +# include <sys/vfs.h>
5034         Do this only in .c files that are part of a module I maintain.
5035         * lib/linkat.c: Filter through cppi.
5036         * lib/nanosleep.c: Likewise.
5037         * lib/openat.c: Likewise.
5038         * lib/openat-die.c: Likewise.
5039         * lib/dup3.c: Likewise.
5040         * lib/fchownat.c: Likewise.
5041         * lib/flock.c: Likewise.
5042         * lib/fsync.c: Likewise.
5043         * lib/fts.c: Likewise.
5044         * lib/getpass.c: Likewise.
5045         * lib/gettimeofday.c: Likewise.
5046         * lib/userspec.c: Likewise.
5047         * Makefile (sc_cpp_indent_check): New rule, to check this.
5048
5049 2011-02-22  Bruno Haible  <bruno@clisp.org>
5050
5051         New module 'wctomb'.
5052         * lib/stdlib.in.h (wctomb): New declaration.
5053         * lib/wctomb.c: New file.
5054         * lib/wctomb-impl.h: New file.
5055         * m4/wctomb.m4: New file.
5056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5057         REPLACE_WCTOMB.
5058         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5059         REPLACE_WCTOMB.
5060         * modules/wctomb: New file.
5061         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5062         * doc/posix-functions/wctomb.texi: Mention the new module.
5063         * modules/wctob (Depends-on): Add wctomb.
5064
5065 2011-02-22  Bruno Haible  <bruno@clisp.org>
5066
5067         New module 'mbtowc'.
5068         * lib/stdlib.in.h (mbtowc): New declaration.
5069         * lib/mbtowc.c: New file.
5070         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5071         * m4/mbtowc.m4: New file.
5072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5073         REPLACE_MBTOWC.
5074         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5075         REPLACE_MBTOWC.
5076         * modules/mbtowc: New file.
5077         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5078         * doc/posix-functions/mbtowc.texi: Mention the new module.
5079         * modules/btowc (Depends-on): Add mbtowc.
5080
5081 2011-02-22  Bruno Haible  <bruno@clisp.org>
5082
5083         wcrtomb: Add more tests for native Windows platforms.
5084         * tests/test-wcrtomb-w32-1.sh: New file.
5085         * tests/test-wcrtomb-w32-2.sh: New file.
5086         * tests/test-wcrtomb-w32-3.sh: New file.
5087         * tests/test-wcrtomb-w32-4.sh: New file.
5088         * tests/test-wcrtomb-w32-5.sh: New file.
5089         * tests/test-wcrtomb-w32.c: New file.
5090         * modules/wcrtomb-tests (Files): Add them.
5091         (Makefile.am): Arrange to run these tests.
5092         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5093         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5094
5095 2011-02-20  Bruno Haible  <bruno@clisp.org>
5096
5097         wcrtomb: Enhance test.
5098         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5099
5100 2011-02-20  Bruno Haible  <bruno@clisp.org>
5101
5102         mbrtowc: Tiny optimization.
5103         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5104
5105 2011-02-20  Jim Meyering  <meyering@redhat.com>
5106
5107         test-exclude.c: remove unmatched #endif
5108         * tests/test-exclude.c: Remove stray #endif, left over from
5109         the change of a week ago.
5110
5111 2011-02-19  Jim Meyering  <meyering@redhat.com>
5112
5113         git-version-gen: skip "-dirty" check when appropriate
5114         * build-aux/git-version-gen: Don't run any git commands when the
5115         version string comes from .tarball-version.  Prior to this, we
5116         would run git update-index --refresh even from a just-unpacked
5117         tarball directory, and that could affect a .git/ directory in a
5118         parent of the build directory.  Reported by Mike Frysinger.
5119
5120 2011-02-19  Bruno Haible  <bruno@clisp.org>
5121
5122         unictype/property-byname: Reduce the size of the 'data' segment.
5123         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5124
5125 2011-02-19  Bruno Haible  <bruno@clisp.org>
5126
5127         unictype/scripts: Reduce the size of the 'data' segment.
5128         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5129         '%pic'.
5130         * lib/unictype/scripts_byname.gperf: Regenerated.
5131
5132 2011-02-19  Bruno Haible  <bruno@clisp.org>
5133
5134         stdint: Update documentation.
5135         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5136
5137 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5138
5139         stdint: omit redundant check for wchar.h
5140         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5141         always tests whether wchar.h exists, so remove the now-redundant test.
5142
5143 2011-02-18  Bruno Haible  <bruno@clisp.org>
5144
5145         stdint: Cut dependency to module 'wchar'.
5146         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5147         include the necessary prerequisites.
5148         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5149         * modules/stdint (Depends-on): Remove wchar.
5150         (Makefile.am): Substitute HAVE_WCHAR_H.
5151         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5152
5153 2011-02-18  Eric Blake  <eblake@redhat.com>
5154
5155         longlong: skip, rather than fail, on cross-compilation
5156         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5157         when cross-compiling; regression from 2011-02-16.
5158
5159 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5160
5161         * NEWS: Mention 2011-02-08 change to stdlib.
5162
5163 2011-02-17  Bruno Haible  <bruno@clisp.org>
5164
5165         getloadavg: Add comments about platforms.
5166         * m4/getloadavg.m4: Add comment.
5167         * lib/getloadavg.c: Likewise.
5168
5169 2011-02-17  Bruno Haible  <bruno@clisp.org>
5170
5171         getloadavg: Fix link error on Solaris 2.6.
5172         * modules/getloadavg (Link): New section.
5173         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5174         linking test-getloadavg.
5175         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5176         getloadavg.
5177
5178 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5179
5180         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5181         It was 'int', but this doesn't match the IRIX 6.5 manual.
5182         Suggested by Bruno Haible in
5183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5184
5185 2011-02-17  Bruno Haible  <bruno@clisp.org>
5186
5187         havelib: Fix comments.
5188         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5189         change.
5190
5191 2011-02-17  Bruno Haible  <bruno@clisp.org>
5192
5193         havelib: Update config.rpath.
5194         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5195
5196 2011-02-17  Bruno Haible  <bruno@clisp.org>
5197
5198         getloadavg test: Add some plausibility checks.
5199         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5200         is improbable.
5201
5202 2011-02-16  Eric Blake  <eblake@redhat.com>
5203
5204         maintainer-makefile: make syntax-check a no-op from tarballs
5205         * top/maint.mk (no-vc-detected): New rule.
5206         (local-checks-available): Use it to avoid hanging if someone tries
5207         'make syntax-check' from a tarball.  Also append to any non-syntax
5208         checks already defined in cfg.mk.
5209
5210 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5211
5212         longlong: tune, particularly for common case of c99
5213
5214         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5215         or running anything if c99, or if unsigned long long int does not
5216         work.  In either case, we know the answer without further tests.
5217         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5218         it at most once, and use its results for both long long int and
5219         unsigned long long int.  This is more likely to be efficient in
5220         the common case where the program wants to check for both long
5221         long int and unsigned long long int.
5222         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5223         since the answer is already known.
5224
5225 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5226
5227         getloadavg: set errno
5228         * lib/getloadavg.c: Set errno when returning -1.  If no other
5229         error number looks appropriate, set it to ENOSYS if the getloadavg
5230         looks like it can't possibly ever work, ENOTSUP otherwise.
5231         Suggested by Bruno Haible in
5232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5233
5234         getloadavg: trim unused parts and speed up 'configure'
5235         * NEWS: Document this.
5236         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5237         always compiled if getloadavg is absent.
5238         Move test code to ...
5239         * tests/test-getloadavg.c: New file, containing previous
5240         contents of test from lib/getloadavg.c.  It also contains
5241         suggestions by Bruno Haible in
5242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5243         * modules/getloadavg-tests: New file.
5244         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5245         Do tests in the same order as they're needed for getloadavg.c.
5246         Omit setgid-related tests that generate symbols KMEM_GROUP,
5247         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5248         Do only the tests that are needed to see whether the system has
5249         getloadavg, moving the other tests into ...
5250         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5251         NLIST_NAME_UNION; nobody should be using it.  Do not define
5252         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5253         relevant, as the user of this module shouldn't care how getloadavg
5254         is implemented.
5255
5256         getloadavg: omit unused var
5257         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5258
5259 2011-02-15  Jim Meyering  <meyering@redhat.com>
5260
5261         doc: update users.txt
5262         * users.txt: Update iwhd's URL.
5263
5264 2011-02-13  Bruno Haible  <bruno@clisp.org>
5265
5266         Consistent macro naming for macros that use GCC __attribute__.
5267         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5268         _ATTRIBUTE_NONNULL_.
5269         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5270         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5271         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5272         ATTRIBUTE_DEPRECATED.
5273         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5274         ATTRIBUTE_NORETURN.
5275         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5276         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5277         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5278         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5279         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5280         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5281         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5282         ATTRIBUTE_SENTINEL.
5283         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5284         ATTRIBUTE_RETURN_CHECK.
5285         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5286         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5287         ATTRIBUTE_NORETURN.
5288         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5289         Reported by Paul Eggert.
5290
5291 2011-02-13  Bruno Haible  <bruno@clisp.org>
5292
5293         Don't interfere with a program's definition of __attribute__.
5294         * lib/argp.h (__attribute__): Remove definition.
5295         (_GL_ATTRIBUTE_FORMAT): New macro.
5296         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5297         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5298         (_GL_ATTRIBUTE_FORMAT): New macro.
5299         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5300         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5301         GCC 3 or newer.
5302         * lib/error.h (__attribute__): Remove definition.
5303         (_GL_ATTRIBUTE_FORMAT): New macro.
5304         (error, error_at_line): Use it.
5305         * lib/hash.h (__attribute__): Remove definition.
5306         (ATTRIBUTE_WUR): Update definition. Define always.
5307         * lib/openat.h (__attribute__): Remove definition.
5308         (ATTRIBUTE_NORETURN): Update definition. Define always.
5309         * lib/sigpipe-die.h (__attribute__): Remove definition.
5310         (ATTRIBUTE_NORETURN): Update definition. Define always.
5311         * lib/vasnprintf.h (__attribute__): Remove definition.
5312         (_GL_ATTRIBUTE_FORMAT): New macro.
5313         (asnprintf, vasnprintf): Use it.
5314         * lib/xalloc.h (__attribute__): Remove definition.
5315         (ATTRIBUTE_NORETURN): Update definition. Define always.
5316         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5317         * lib/xmemdup0.h (__attribute__): Remove definition.
5318         (ATTRIBUTE_NORETURN): Update definition. Define always.
5319         * lib/xprintf.h (__attribute__): Remove definition.
5320         (_GL_ATTRIBUTE_FORMAT): New macro.
5321         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5322         * lib/xstrtol.h (__attribute__): Remove definition.
5323         (ATTRIBUTE_NORETURN): Update definition. Define always.
5324         * lib/xvasprintf.h (__attribute__): Remove definition.
5325         (_GL_ATTRIBUTE_FORMAT): New macro.
5326         (xasprintf, xvasprintf): Use it.
5327         * tests/test-argmatch.c (__attribute__): Remove definition.
5328         (ATTRIBUTE_NORETURN): Update definition. Define always.
5329         * tests/test-exclude.c (__attribute__): Remove definition.
5330         (ATTRIBUTE_NORETURN): Update definition. Define always.
5331         Reported by Paul Eggert.
5332
5333 2011-02-13  Bruno Haible  <bruno@clisp.org>
5334
5335         mbrtowc: Add more tests for native Windows platforms.
5336         * tests/test-mbrtowc-w32-1.sh: New file.
5337         * tests/test-mbrtowc-w32-2.sh: New file.
5338         * tests/test-mbrtowc-w32-3.sh: New file.
5339         * tests/test-mbrtowc-w32-4.sh: New file.
5340         * tests/test-mbrtowc-w32-5.sh: New file.
5341         * tests/test-mbrtowc-w32.c: New file.
5342         * modules/mbrtowc-tests (Files): Add them.
5343         (Makefile.am): Arrange to run these tests.
5344         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5345         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5346
5347 2011-02-13  Bruno Haible  <bruno@clisp.org>
5348
5349         mbrtowc: Work around native Windows bug.
5350         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5351         guess when no suitable locale for testing was found.
5352         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5353
5354 2011-02-13  Bruno Haible  <bruno@clisp.org>
5355
5356         mbsinit: Work around mingw bug.
5357         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5358         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5359         Windows.
5360         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5361
5362 2011-02-13  Bruno Haible  <bruno@clisp.org>
5363
5364         mbsinit: Don't crash for a NULL argument.
5365         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5366         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5367
5368 2011-02-13  Bruno Haible  <bruno@clisp.org>
5369
5370         Don't interfere with a program's definition of __attribute__.
5371         * lib/stdio.in.h (__attribute__): Remove definition.
5372         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5373         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5374         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5375         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5376         * lib/string.in.h (__attribute__): Remove definition.
5377         Reported by Paul Eggert.
5378
5379 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5380
5381         stdlib: don't get in the way of non-GCC __attribute__
5382         See thread starting at
5383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5384         Revert previous stdlib change, installing the following instead:
5385         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5386         to get in the way of a non-GCC compiler that supports __attribute__.
5387         (_GL_ATTRIBUTE_RETURN): New macro.
5388         (_Exit): Use it instead of __attribute__.
5389
5390 2011-02-12  Bruno Haible  <bruno@clisp.org>
5391
5392         quotearg test: Avoid test failure on mingw.
5393         * tests/test-quotearg.sh: Convert the locale identifier from native
5394         Windows syntax to Unix syntax.
5395
5396 2011-02-12  Bruno Haible  <bruno@clisp.org>
5397
5398         setlocale: Prefer gnulib's override over libintl's override.
5399         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5400         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5401         GNULIB_defined_setlocale is set.
5402
5403 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5404
5405         stdlib: support non-GCC __attribute__
5406
5407         Fix a serious and tricky problem encountered when attempting to
5408         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5409         5.5, but it crashed due to memory corruption on Solaris 10 with
5410         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5411         bits that are otherwise zero.  This tagging is optional inside
5412         Emacs but is preferred and is used when __attribute__ ((__aligned
5413         (8))) works, as it does with both recent-enough GCC and with Sun C
5414         5.11.  However, Sun C 5.11 is not GCC and does not #define
5415         __GNUC__ and __GNUC_MINOR__.
5416
5417         When I added the getloadavg module to Emacs, it brought in
5418         stdlib.in.h, which contained this fragment:
5419
5420            #ifndef __attribute__
5421            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5422            #  define __attribute__(Spec)   /* empty */
5423            # endif
5424            #endif
5425
5426         When files that include <stdlib.h> were compiled with Sun C 5.11,
5427         the above code disabled __attribute__ ((__aligned (8))), which
5428         caused variables to not be properly aligned, which eventually led
5429         to the pointer corruption mentioned above.  (This was a bit hard
5430         to diagnose, unfortunately.)
5431
5432         Several "#define __attribute__(X) /* empty */" code snippets need
5433         to be eradicated from Gnulib to work with non-GCC compilers that
5434         support __attribute__.  The Autoconf way to do this is to test for
5435         each kind of attribute that we want support for, and selectively
5436         enable that in source code.
5437
5438         Fix this problem just for stdlib.h, by adding a test for the
5439         __noreturn__ attribute, and change stdlib.in.h to use that test
5440         when needed.  This technique can be easily generalized to the
5441         other *.in.h files and attributes, and a similar technique can be
5442         used for *.h and *.c files.  This patch is enough to solve the
5443         problem for Emacs + getloadavg, and I thought I'd publish it for
5444         feedback before undertaking further, similar fixes in other
5445         modules.
5446
5447         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5448         because it's not needed for stdlib.h.  It merely substitutes the
5449         value directly into stdlib.h.  We may well need to #define it, or
5450         similar symbols, for other modules, but it's nice to also have an
5451         option to not #define it for applications like Emacs that do not
5452         need it.
5453
5454         * lib/stdlib.in.h (__attribute__): Do not #define.
5455         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5456         be defined only if the _Exit module is also used.
5457         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5459         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5460         platforms.
5461         * modules/_Exit (Files): Add m4/attribute.m4.
5462         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5463         * m4/attribute.m4: New file.
5464
5465 2011-02-12  Bruno Haible  <bruno@clisp.org>
5466
5467         wcsrtombs: Work around bug on native Windows.
5468         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5469         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5470         instead of len.
5471         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5472
5473 2011-02-12  Bruno Haible  <bruno@clisp.org>
5474
5475         mbsrtowcs: Work around bug on native Windows.
5476         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5477         against mingw bug.
5478         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5479
5480 2011-02-12  Bruno Haible  <bruno@clisp.org>
5481
5482         Avoid setlocale bugs in tests.
5483         * modules/btowc (Dependencies): Add setlocale.
5484         * modules/c-strcase (Dependencies): Likewise.
5485         * modules/mbmemcasecmp (Dependencies): Likewise.
5486         * modules/mbmemcasecoll (Dependencies): Likewise.
5487         * modules/mbrtowc (Dependencies): Likewise.
5488         * modules/mbscasecmp (Dependencies): Likewise.
5489         * modules/mbscasestr (Dependencies): Likewise.
5490         * modules/mbschr (Dependencies): Likewise.
5491         * modules/mbscspn (Dependencies): Likewise.
5492         * modules/mbsinit (Dependencies): Likewise.
5493         * modules/mbsncasecmp (Dependencies): Likewise.
5494         * modules/mbsnrtowcs (Dependencies): Likewise.
5495         * modules/mbspbrk (Dependencies): Likewise.
5496         * modules/mbspcasecmp (Dependencies): Likewise.
5497         * modules/mbsrchr (Dependencies): Likewise.
5498         * modules/mbsrtowcs (Dependencies): Likewise.
5499         * modules/mbsspn (Dependencies): Likewise.
5500         * modules/mbsstr (Dependencies): Likewise.
5501         * modules/nl_langinfo (Dependencies): Likewise.
5502         * modules/quotearg (Dependencies): Likewise.
5503         * modules/unicase/locale-language (Dependencies): Likewise.
5504         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5505         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5506         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5507         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5508         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5509         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5510         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5511         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5512         * modules/vasnprintf-posix (Dependencies): Likewise.
5513         * modules/wcrtomb (Dependencies): Likewise.
5514         * modules/wcsnrtombs (Dependencies): Likewise.
5515         * modules/wcsrtombs (Dependencies): Likewise.
5516
5517 2011-02-12  Bruno Haible  <bruno@clisp.org>
5518
5519         setlocale: Workaround native Windows bug.
5520         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5521         succeeds but sets LC_CTYPE to "C", report a failure.
5522         * tests/test-setlocale2.sh: New file.
5523         * tests/test-setlocale2.c: New file.
5524         * modules/setlocale-tests (Files): Add the new files.
5525         (Makefile.am): Enable test-setlocale2.sh test.
5526         * doc/posix-functions/setlocale.texi: Mention workaround.
5527
5528 2011-02-11  Bruno Haible  <bruno@clisp.org>
5529
5530         Tests for module 'setlocale'.
5531         * modules/setlocale-tests: New file.
5532         * tests/test-setlocale1.sh: New file.
5533         * tests/test-setlocale1.c: New file.
5534
5535         New module 'setlocale'.
5536         * lib/locale.in.h (setlocale): New declaration.
5537         * lib/setlocale.c: New file, based on
5538         gettext/gettext-runtime/intl/setlocale.c.
5539         * m4/setlocale.m4: New file.
5540         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5541         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5542         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5543         REPLACE_SETLOCALE.
5544         * modules/setlocale: New file.
5545         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5546         * doc/posix-functions/setlocale.texi: Mention the new module.
5547
5548 2011-02-11  Bruno Haible  <bruno@clisp.org>
5549
5550         Prepare for locale dependent tests on mingw.
5551         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5552         because it has the wrong locale encoding.
5553         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5554         French_France.1252 instead of "fr".
5555         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5556         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5557         because it has the wrong locale encoding.
5558         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5559         native Windows, try Turkish_Turkey.65001.
5560         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5561         Chinese_China.54936.
5562
5563         Prepare for locale dependent tests on mingw.
5564         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5565         differently.
5566         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5567         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5568         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5569         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5570
5571 2011-02-11  Eric Blake  <eblake@redhat.com>
5572
5573         strptime: avoid compiler warnings
5574         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5575         compiler warnings about dead code.
5576         Reported by Daniel P. Berrange.
5577
5578 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5579
5580         doc: update users.txt
5581         * users.txt: Add rcs.
5582
5583 2011-02-10  John W. Eaton  <jwe@gnu.org>
5584
5585         doc: update users.txt
5586         * users.txt: Add octave.
5587
5588 2011-02-10  Jim Meyering  <meyering@redhat.com>
5589
5590         doc: update users.txt
5591         * users.txt: Add iwhd.
5592
5593 2011-02-09  Bruno Haible  <bruno@clisp.org>
5594
5595         gnulib-tool: Make copyright notice adjustment more robust.
5596         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5597         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5598         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5599         License".
5600         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5601
5602 2011-02-06  Bruno Haible  <bruno@clisp.org>
5603
5604         New module 'towctrans'.
5605         * modules/towctrans: New file.
5606         * lib/wctype.in.h (towctrans): New declaration.
5607         * lib/towctrans.c: New file.
5608         * lib/towctrans-impl.h: New file.
5609         * m4/towctrans.m4: New file.
5610         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5611         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5612         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5613         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5614         * doc/posix-functions/towctrans.texi: Mention the new module.
5615
5616 2011-02-06  Bruno Haible  <bruno@clisp.org>
5617
5618         New module 'wctrans'.
5619         * modules/wctrans: New file.
5620         * lib/wctype.in.h (wctrans): New declaration.
5621         * lib/wctrans.c: New file.
5622         * lib/wctrans-impl.h: New file.
5623         * m4/wctrans.m4: New file.
5624         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5625         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5626         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5627         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5628         * doc/posix-functions/wctrans.texi: Mention the new module.
5629
5630 2011-02-06  Bruno Haible  <bruno@clisp.org>
5631
5632         New module 'iswctype'.
5633         * modules/iswctype: New file.
5634         * lib/wctype.in.h (iswctype): New declaration.
5635         * lib/iswctype.c: New file.
5636         * lib/iswctype-impl.h: New file.
5637         * m4/iswctype.m4: New file.
5638         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5639         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5640         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5641         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5642         * doc/posix-functions/iswctype.texi: Mention the new module and the
5643         HP-UX 11.00 problem.
5644
5645 2011-02-06  Bruno Haible  <bruno@clisp.org>
5646
5647         New module 'wctype'.
5648         * modules/wctype: Change to represent the wctype() substitute.
5649         * lib/wctype.in.h (wctype): New declaration.
5650         * lib/wctype.c: New file.
5651         * lib/wctype-impl.h: New file.
5652         * m4/wctype.m4: New file.
5653         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5654         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5655         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5656         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5657         * doc/posix-functions/wctype.texi: Mention the new module and the
5658         HP-UX 11.00 problem.
5659
5660 2011-02-06  Bruno Haible  <bruno@clisp.org>
5661
5662         wctype-h: Ensure wctype_t and wctrans_t are defined.
5663         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5664         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5665         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5666         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5667         HAVE_WCTRANS_T.
5668         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5669
5670 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5671
5672         flock: fix license typo
5673
5674         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5675         omitted.
5676
5677 2011-02-08  Bruno Haible  <bruno@clisp.org>
5678
5679         Split large sed scripts, for HP-UX sed.
5680         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5681         to avoid HP-UX limit of 99 commands, in the near future.
5682         * modules/stdlib (Makefile.am): Likewise.
5683         * modules/unistd (Makefile.am): Likewise.
5684         * modules/wchar (Makefile.am): Likewise.
5685         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5686         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5688
5689 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5690             Bruno Haible  <bruno@clisp.org>
5691
5692         stdlib: improve random_r modularization
5693         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5694         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5695         you also need the random_r module to get this material right.
5696         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5697         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5698         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5699
5700 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5701
5702         stdlib: don't depend on stdint
5703         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5704         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5705         be independent of whether stdint.h is needed.
5706         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5707         here, instead of ...
5708         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5709         struct random_data should be using the random_r module, not just
5710         the stdlib module (which wouldn't make sense: what package needs
5711         just struct random_data without also needing random_r?).
5712         * modules/stdlib (Depends-on): Remove stdint.
5713
5714         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5715         See the thread rooted at
5716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5717         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5718         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5719         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5720         __VMS)); previously it was always included (via fcntl--.h).
5721         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5722         hand; this is good enough for load averages.  Also, do not use
5723         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5724         flags directly if available and don't bother otherwise.  (Packages
5725         that need the extra reliability should use the modules that define
5726         these flags on older platforms that lack them.)
5727         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5728         fcntl-safer.
5729
5730 2011-02-08  Jim Meyering  <meyering@redhat.com>
5731
5732         di-set.h, ino-map.h: add multiple-inclusion guard
5733         Technically, the guard is required only for ino-map.h, due to its
5734         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5735         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5736         * lib/ino-map.h: Likewise.
5737
5738 2011-02-06  Bruno Haible  <bruno@clisp.org>
5739
5740         iswblank: Ensure declaration on glibc systems.
5741         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5742         * modules/iswblank (Dependencies): Add 'extensions'.
5743         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5744
5745 2011-02-06  Bruno Haible  <bruno@clisp.org>
5746
5747         New module 'iswblank'.
5748         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5749         * modules/iswblank: New file.
5750         * modules/wctype-h (Files): Remove lib/iswblank.c.
5751         (Makefile.am): Substitute GNULIB_ISWBLANK.
5752         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5753         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5754         (gl_WCTYPE_H_DEFAULTS): New macro.
5755         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5756         * modules/iswblank-tests: New file.
5757         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5758         * tests/test-wctype-h.c (main): Remove iswblank tests.
5759         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5760         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5761         of 'wctype-h'.
5762         * NEWS: Mention the change.
5763         * modules/mbchar (Depends-on): Add iswblank.
5764
5765 2011-02-08  Bruno Haible  <bruno@clisp.org>
5766
5767         di-set tests: Refactor.
5768         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5769         unnecessary includes.
5770         (ASSERT): Remove macro.
5771         (main): Make C90 compliant by avoiding variable declaration after
5772         statement.
5773         * modules/di-set-tests (Files): Add tests/macros.h.
5774
5775 2011-02-08  Bruno Haible  <bruno@clisp.org>
5776
5777         ino-map tests: Refactor.
5778         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5779         unnecessary includes.
5780         (ASSERT): Remove macro.
5781         (main): Make C90 compliant by avoiding variable declaration after
5782         statement.
5783         * modules/ino-map-tests (Files): Add tests/macros.h.
5784
5785 2011-02-08  Jim Meyering  <meyering@redhat.com>
5786
5787         di-set: add "const" to a cast
5788         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5789         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5790
5791 2011-02-06  Bruno Haible  <bruno@clisp.org>
5792
5793         Rename module 'wctype' to 'wctype-h'.
5794         * modules/wctype-h: Renamed from modules/wctype.
5795         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5796         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5797         (Files, Depends-on, Makefile.am): Update.
5798         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5799         (Files, Makefile.am): Update.
5800         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5801         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5802         * doc/posix-headers/wctype.texi: Update.
5803         * doc/posix-functions/iswalnum.texi: Update.
5804         * doc/posix-functions/iswalpha.texi: Update.
5805         * doc/posix-functions/iswblank.texi: Update.
5806         * doc/posix-functions/iswcntrl.texi: Update.
5807         * doc/posix-functions/iswdigit.texi: Update.
5808         * doc/posix-functions/iswgraph.texi: Update.
5809         * doc/posix-functions/iswlower.texi: Update.
5810         * doc/posix-functions/iswprint.texi: Update.
5811         * doc/posix-functions/iswpunct.texi: Update.
5812         * doc/posix-functions/iswspace.texi: Update.
5813         * doc/posix-functions/iswupper.texi: Update.
5814         * doc/posix-functions/iswxdigit.texi: Update.
5815         * doc/posix-functions/towlower.texi: Update.
5816         * doc/posix-functions/towupper.texi: Update.
5817         * NEWS: Mention the change.
5818         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5819         * modules/mbchar (Dependencies): Likewise.
5820         * modules/mbswidth (Dependencies): Likewise.
5821         * modules/quotearg (Dependencies): Likewise.
5822         * modules/regex (Dependencies): Likewise.
5823         * modules/wcscasecmp (Dependencies): Likewise.
5824         * modules/wcsncasecmp (Dependencies): Likewise.
5825         * modules/wcwidth (Dependencies): Likewise.
5826
5827 2011-02-06  Bruno Haible  <bruno@clisp.org>
5828
5829         New module 'wcswidth'.
5830         * modules/wcswidth: New file.
5831         * lib/wchar.in.h (wcswidth): New declaration.
5832         * lib/wcswidth.c: New file.
5833         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5834         * m4/wcswidth.m4: New file.
5835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5837         REPLACE_WCSWIDTH.
5838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5839         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5840         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5841         * doc/posix-functions/wcswidth.texi: Mention the new module.
5842
5843 2011-02-06  Bruno Haible  <bruno@clisp.org>
5844
5845         New module 'wcstok'.
5846         * modules/wcstok: New file.
5847         * lib/wchar.in.h (wcstok): New declaration.
5848         * lib/wcstok.c: New file.
5849         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5850         * m4/wcstok.m4: New file.
5851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5854         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5855         * doc/posix-functions/wcstok.texi: Mention the new module.
5856
5857 2011-02-06  Bruno Haible  <bruno@clisp.org>
5858
5859         New module 'wcsstr'.
5860         * modules/wcsstr: New file.
5861         * lib/wchar.in.h (wcsstr): New declaration.
5862         * lib/wcsstr.c: New file.
5863         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5864         * m4/wcsstr.m4: New file.
5865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5868         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5869         * doc/posix-functions/wcsstr.texi: Mention the new module.
5870
5871 2011-02-06  Bruno Haible  <bruno@clisp.org>
5872
5873         New module 'wcspbrk'.
5874         * modules/wcspbrk: New file.
5875         * lib/wchar.in.h (wcspbrk): New declaration.
5876         * lib/wcspbrk.c: New file.
5877         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5878         * m4/wcspbrk.m4: New file.
5879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5882         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5883         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5884
5885 2011-02-06  Bruno Haible  <bruno@clisp.org>
5886
5887         New module 'wcsspn'.
5888         * modules/wcsspn: New file.
5889         * lib/wchar.in.h (wcsspn): New declaration.
5890         * lib/wcsspn.c: New file.
5891         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5892         * m4/wcsspn.m4: New file.
5893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5896         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5897         * doc/posix-functions/wcsspn.texi: Mention the new module.
5898
5899 2011-02-06  Bruno Haible  <bruno@clisp.org>
5900
5901         New module 'wcscspn'.
5902         * modules/wcscspn: New file.
5903         * lib/wchar.in.h (wcscspn): New declaration.
5904         * lib/wcscspn.c: New file.
5905         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5906         * m4/wcscspn.m4: New file.
5907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5910         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5911         * doc/posix-functions/wcscspn.texi: Mention the new module.
5912
5913 2011-02-06  Bruno Haible  <bruno@clisp.org>
5914
5915         New module 'wcsrchr'.
5916         * modules/wcsrchr: New file.
5917         * lib/wchar.in.h (wcsrchr): New declaration.
5918         * lib/wcsrchr.c: New file.
5919         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5920         * m4/wcsrchr.m4: New file.
5921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5924         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5925         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5926
5927 2011-02-06  Bruno Haible  <bruno@clisp.org>
5928
5929         New module 'wcschr'.
5930         * modules/wcschr: New file.
5931         * lib/wchar.in.h (wcschr): New declaration.
5932         * lib/wcschr.c: New file.
5933         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5934         * m4/wcschr.m4: New file.
5935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5938         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5939         * doc/posix-functions/wcschr.texi: Mention the new module.
5940
5941 2011-02-06  Bruno Haible  <bruno@clisp.org>
5942
5943         New module 'wcsdup'.
5944         * modules/wcsdup: New file.
5945         * lib/wchar.in.h (wcsdup): New declaration.
5946         * lib/wcsdup.c: New file.
5947         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5948         * m4/wcsdup.m4: New file.
5949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5952         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5953         * doc/posix-functions/wcsdup.texi: Mention the new module.
5954
5955 2011-02-06  Bruno Haible  <bruno@clisp.org>
5956
5957         New module 'wcsxfrm'.
5958         * modules/wcsxfrm: New file.
5959         * lib/wchar.in.h (wcsxfrm): New declaration.
5960         * lib/wcsxfrm.c: New file.
5961         * lib/wcsxfrm-impl.h: New file.
5962         * m4/wcsxfrm.m4: New file.
5963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5966         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5967         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5968
5969 2011-02-06  Bruno Haible  <bruno@clisp.org>
5970
5971         New module 'wcscoll'.
5972         * modules/wcscoll: New file.
5973         * lib/wchar.in.h (wcscoll): New declaration.
5974         * lib/wcscoll.c: New file.
5975         * lib/wcscoll-impl.h: New file.
5976         * m4/wcscoll.m4: New file.
5977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5980         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5981         * doc/posix-functions/wcscoll.texi: Mention the new module.
5982
5983 2011-02-06  Bruno Haible  <bruno@clisp.org>
5984
5985         New module 'wcsncasecmp'.
5986         * modules/wcsncasecmp: New file.
5987         * lib/wchar.in.h (wcsncasecmp): New declaration.
5988         * lib/wcsncasecmp.c: New file.
5989         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5990         * m4/wcsncasecmp.m4: New file.
5991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5994         HAVE_WCSNCASECMP.
5995         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5996         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5997
5998 2011-02-06  Bruno Haible  <bruno@clisp.org>
5999
6000         New module 'wcscasecmp'.
6001         * modules/wcscasecmp: New file.
6002         * lib/wchar.in.h (wcscasecmp): New declaration.
6003         * lib/wcscasecmp.c: New file.
6004         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6005         * m4/wcscasecmp.m4: New file.
6006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6008         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6009         HAVE_WCSCASECMP.
6010         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6011         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6012
6013 2011-02-05  Bruno Haible  <bruno@clisp.org>
6014
6015         New module 'wcsncmp'.
6016         * modules/wcsncmp: New file.
6017         * lib/wchar.in.h (wcsncmp): New declaration.
6018         * lib/wcsncmp.c: New file.
6019         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6020         * m4/wcsncmp.m4: New file.
6021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6024         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6025         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6026
6027 2011-02-05  Bruno Haible  <bruno@clisp.org>
6028
6029         New module 'wcscmp'.
6030         * modules/wcscmp: New file.
6031         * lib/wchar.in.h (wcscmp): New declaration.
6032         * lib/wcscmp.c: New file.
6033         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6034         * m4/wcscmp.m4: New file.
6035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6037         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6038         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6039         * doc/posix-functions/wcscmp.texi: Mention the new module.
6040
6041 2011-02-05  Bruno Haible  <bruno@clisp.org>
6042
6043         New module 'wcsncat'.
6044         * modules/wcsncat: New file.
6045         * lib/wchar.in.h (wcsncat): New declaration.
6046         * lib/wcsncat.c: New file.
6047         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6048         * m4/wcsncat.m4: New file.
6049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6052         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6053         * doc/posix-functions/wcsncat.texi: Mention the new module.
6054
6055 2011-02-05  Bruno Haible  <bruno@clisp.org>
6056
6057         New module 'wcscat'.
6058         * modules/wcscat: New file.
6059         * lib/wchar.in.h (wcscat): New declaration.
6060         * lib/wcscat.c: New file.
6061         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6062         * m4/wcscat.m4: New file.
6063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6066         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6067         * doc/posix-functions/wcscat.texi: Mention the new module.
6068
6069 2011-02-05  Bruno Haible  <bruno@clisp.org>
6070
6071         New module 'wcpncpy'.
6072         * modules/wcpncpy: New file.
6073         * lib/wchar.in.h (wcpncpy): New declaration.
6074         * lib/wcpncpy.c: New file.
6075         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6076         * m4/wcpncpy.m4: New file.
6077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6079         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6080         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6081         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6082
6083 2011-02-05  Bruno Haible  <bruno@clisp.org>
6084
6085         New module 'wcsncpy'.
6086         * modules/wcsncpy: New file.
6087         * lib/wchar.in.h (wcsncpy): New declaration.
6088         * lib/wcsncpy.c: New file.
6089         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6090         * m4/wcsncpy.m4: New file.
6091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6094         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6095         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6096
6097 2011-02-05  Bruno Haible  <bruno@clisp.org>
6098
6099         New module 'wcpcpy'.
6100         * modules/wcpcpy: New file.
6101         * lib/wchar.in.h (wcpcpy): New declaration.
6102         * lib/wcpcpy.c: New file.
6103         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6104         * m4/wcpcpy.m4: New file.
6105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6107         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6108         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6109         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6110
6111 2011-02-05  Bruno Haible  <bruno@clisp.org>
6112
6113         New module 'wcscpy'.
6114         * modules/wcscpy: New file.
6115         * lib/wchar.in.h (wcscpy): New declaration.
6116         * lib/wcscpy.c: New file.
6117         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6118         * m4/wcscpy.m4: New file.
6119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6121         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6122         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6123         * doc/posix-functions/wcscpy.texi: Mention the new module.
6124
6125 2011-02-05  Bruno Haible  <bruno@clisp.org>
6126
6127         New module 'wcsnlen'.
6128         * modules/wcsnlen: New file.
6129         * lib/wchar.in.h (wcsnlen): New declaration.
6130         * lib/wcsnlen.c: New file.
6131         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6132         * m4/wcsnlen.m4: New file.
6133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6135         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6136         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6137         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6138
6139 2011-02-05  Bruno Haible  <bruno@clisp.org>
6140
6141         New module 'wcslen'.
6142         * modules/wcslen: New file.
6143         * lib/wchar.in.h (wcslen): New declaration.
6144         * lib/wcslen.c: New file.
6145         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6146         * m4/wcslen.m4: New file.
6147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6150         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6151         * doc/posix-functions/wcslen.texi: Mention the new module.
6152
6153 2011-02-05  Bruno Haible  <bruno@clisp.org>
6154
6155         New module 'wmemset'.
6156         * modules/wmemset: New file.
6157         * lib/wchar.in.h (wmemset): New declaration.
6158         * lib/wmemset.c: New file.
6159         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6160         * m4/wmemset.m4: New file.
6161         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6162         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6163         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6164         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6165         * doc/posix-functions/wmemset.texi: Mention the new module.
6166
6167 2011-02-05  Bruno Haible  <bruno@clisp.org>
6168
6169         New module 'wmemmove'.
6170         * modules/wmemmove: New file.
6171         * lib/wchar.in.h (wmemmove): New declaration.
6172         * lib/wmemmove.c: New file.
6173         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6174         * m4/wmemmove.m4: New file.
6175         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6176         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6177         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6178         HAVE_WMEMMOVE.
6179         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6180         * doc/posix-functions/wmemmove.texi: Mention the new module.
6181
6182 2011-02-05  Bruno Haible  <bruno@clisp.org>
6183
6184         New module 'wmemcpy'.
6185         * modules/wmemcpy: New file.
6186         * lib/wchar.in.h (wmemcpy): New declaration.
6187         * lib/wmemcpy.c: New file.
6188         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6189         * m4/wmemcpy.m4: New file.
6190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6192         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6193         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6194         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6195
6196 2011-02-05  Bruno Haible  <bruno@clisp.org>
6197
6198         New module 'wmemcmp'.
6199         * modules/wmemcmp: New file.
6200         * lib/wchar.in.h (wmemcmp): New declaration.
6201         * lib/wmemcmp.c: New file.
6202         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6203         * m4/wmemcmp.m4: New file.
6204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6206         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6207         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6208         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6209
6210 2011-02-07  Jim Meyering  <meyering@redhat.com>
6211
6212         di-set, ino-map: new modules, from coreutils
6213         * lib/di-set.c: New file.
6214         * lib/di-set.h: Likewise.
6215         * lib/ino-map.c: Likewise.
6216         * lib/ino-map.h: Likewise.
6217         * modules/di-set: Likewise.
6218         * modules/di-set-tests: Likewise.
6219         * modules/ino-map: Likewise.
6220         * modules/ino-map-tests: Likewise.
6221         * tests/test-di-set.c: Likewise.
6222         * tests/test-ino-map.c: Likewise.
6223
6224 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6225
6226         getloadavg: merge minor changes from Emacs
6227
6228         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6229         (getloadavg): Use memset, not bzero.
6230
6231         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6232         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6233         clash (bug#86).
6234
6235 2010-11-14  Bruno Haible  <bruno@clisp.org>
6236
6237         Allow multiple gnulib generated replacements to coexist.
6238         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6239         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6240         * lib/langinfo.in.h (nl_item): Likewise.
6241         * lib/math.in.h (_NaN, NAN): Likewise.
6242         * lib/netdb.in.h (struct addrinfo): Likewise.
6243         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6244         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6245         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6246         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6247         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6248         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6249         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6250         pthread_mutexattr_init, pthread_mutexattr_settype,
6251         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6252         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6253         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6254         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6255         * lib/sched.in.h (struct sched_param): Likewise.
6256         * lib/se-selinux.in.h (security_class_t, security_context_t,
6257         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6258         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6259         lsetfilecon, fsetfilecon, security_check_context,
6260         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6261         Likewise.
6262         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6263         Likewise.
6264         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6265         _gl_function_taking_int_returning_void_t, union sigval,
6266         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6267         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6268         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6269         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6270         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6271         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6272         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6273         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6274         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6275         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6276         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6277         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6278         socklen_t, rpl_fd_isset): Likewise.
6279         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6280         * lib/sys_time.in.h (struct timeval): Likewise.
6281         * lib/sys_times.in.h (struct tms): Likewise.
6282         * lib/sys_utsname.in.h (struct utsname):
6283         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6284         * lib/unistd.in.h (getpagesize): Likewise.
6285         * lib/wchar.in.h (mbstate_t): Likewise.
6286         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6287         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6288         towlower, towupper): Likewise.
6289         Reported by Sam Steingold <sds@gnu.org>.
6290
6291 2011-02-05  Eric Blake  <eblake@redhat.com>
6292
6293         unsetenv: work around Haiku issues
6294         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6295         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6296
6297 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6298
6299         libposix: avoid calling error() within libposix
6300         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6301         is defined.
6302
6303 2011-02-05  Eric Blake  <eblake@redhat.com>
6304
6305         strerror_r-posix: port to cygwin
6306         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6307         implementation.
6308         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6309         * tests/test-strerror_r.c (main): Fix test.
6310         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6311         issue.
6312
6313 2011-02-05  Bruno Haible  <bruno@clisp.org>
6314
6315         New module 'wmemchr'.
6316         * modules/wmemchr: New file.
6317         * lib/wchar.in.h (wmemchr): New declaration.
6318         * lib/wmemchr.c: New file.
6319         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6320         * m4/wmemchr.m4: New file.
6321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6323         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6324         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6325         * doc/posix-functions/wmemchr.texi: Mention the new module.
6326
6327 2011-02-04  Eric Blake  <eblake@redhat.com>
6328
6329         fdopendir: detect FreeBSD bug
6330         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6331         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6332
6333 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6334
6335         stdbool: do not define HAVE_STDBOOL_H
6336         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6337         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6338         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6339         imported from the latest Autoconf git.  It was motivated by Emacs,
6340         which uses gnulib but does not need HAVE_STDBOOL_H.
6341
6342 2011-02-04  Bruno Haible  <bruno@clisp.org>
6343
6344         wcsnrtombs: Prepare for new module wwcsnrtombs.
6345         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6346         * lib/wcsnrtombs.c: Include it.
6347         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6348
6349         wcsrtombs: Prepare for new module wwcsrtombs.
6350         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6351         * lib/wcsrtombs.c: Include it.
6352         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6353
6354         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6355         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6356         * lib/mbsnrtowcs.c: Include it.
6357         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6358
6359         mbsrtowcs: Prepare for new module mbsrtowwcs.
6360         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6361         * lib/mbsrtowcs.c: Include it.
6362         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6363
6364 2011-02-04  Bruno Haible  <bruno@clisp.org>
6365
6366         vasnprintf: Reduce use of malloc for small format strings.
6367         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6368         (arguments): Add room for the first 7 arguments.
6369         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6370         (char_directives, u8_directives, u16_directives, u32_directives): Add
6371         room for the first 7 directives.
6372         * lib/printf-parse.c: Include <string.h>.
6373         (PRINTF_PARSE): Change memory handling code so that it uses the first
6374         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6375         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6376         Reported by Pádraig Brady <P@draigbrady.com>.
6377
6378 2011-01-31  Eric Blake  <eblake@redhat.com>
6379
6380         dup2: work around Haiku bug
6381         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6382         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6383         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6384         * tests/test-dup2.c (main): Enhance test.
6385
6386 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6387
6388         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6389         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6390         declared by eglibc 2.11.2.
6391         * lib/stdio.in.h: Likewise.
6392
6393 2011-01-31  Eric Blake  <eblake@redhat.com>
6394
6395         ignore-value: add missing test dependency
6396         * tests/test-ignore-value.c: Revert previous change; stdio.h
6397         provides off_t.
6398         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6399
6400 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6401
6402         mktime: clarify long_int width checking
6403         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6404         the top level, to make it clearer that the assumption about
6405         long_int width is being checked.  See
6406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6407
6408 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6409
6410         ignore-value: Fix self-test.
6411         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6412
6413 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6414
6415         TYPE_MAXIMUM: avoid theoretically undefined behavior
6416         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6417         negative number, which the C Standard says has undefined behavior.
6418         In practice this is not a problem, but might as well do it by the book.
6419         Reported by Rich Felker and Eric Blake; see
6420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6421         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6422         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6424         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6425         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6426         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6427
6428         mktime: #undef mktime before #defining it
6429         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6430
6431         mktime: systematically normalize tm_isdst comparisons
6432         * lib/mktime.c (isdst_differ): New function.
6433         (__mktime_internal): Use it systematically for all isdst comparisons.
6434         This completes the fix for libc BZ #6723, and removes the need for
6435         normalizing tm_isdst.  See
6436         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6437         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6438
6439         mktime: fix some integer overflow issues and sidestep the rest
6440
6441         This was prompted by a bug report by Benjamin Lindner for MinGW
6442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6443         His bug is due to signed integer overflow (0 - INT_MIN), and I
6444         I scanned through mktime.c looking for other integer overflow
6445         problems, fixing all the bugs I found.
6446
6447         Although the C Standard says the resulting code is still not safe
6448         in the presence of integer overflow, in practice it should be good
6449         enough for all real-world two's-complement implementations, except
6450         for debugging environments that deliberately trap on integer
6451         overflow (e.g., gcc -ftrapv).
6452
6453         * lib/mktime.c (WRAPV): New macro.
6454         (SHR): Also check that long_int and time_t shift right in the
6455         usual way, before using the fast-but-unportable method.
6456         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6457         used.  The code already assumed two's complement, so there's
6458         no need to test for alternatives.  All uses removed.
6459         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6460         the C standard.  Problem reported by Rich Felker in
6461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6462         (twos_complement_arithmetic): Also check long_int and time_t.
6463         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6464         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6465         (__mktime_internal): Avoid integer overflow with unary subtraction
6466         in two instances where -1 - X is an adequate replacement for -X,
6467         since the calculations are approximate.
6468
6469 2011-01-29  Eric Blake  <eblake@redhat.com>
6470
6471         mktime: avoid infinite loop
6472         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6473         type; behavior is still undefined but portable to all known targets.
6474         Reported by Rich Felker.
6475
6476 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6477
6478         rename, unlink, same-inode: Relicense.
6479         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6480         * modules/unlink (License): Likewise.
6481         * modules/same-inode (License): Likewise.
6482
6483 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6484
6485         mktime: avoid problems on NetBSD 5 / i386
6486         * lib/mktime.c (long_int): New type.  This works around a problem
6487         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6488         but time_t is 64 bits, and where I expect the existing code is
6489         wrong in some cases.
6490         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6491         (ydhms_diff): Bring back the compile-time check for wide-enough
6492         year and yday.
6493
6494         mktime: fix misspelling in comment
6495         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6496         This merges all recent glibc changes of importance.
6497
6498 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6499
6500         move-if-change: cope with concurrent mv of identical file.
6501         * build-aux/move-if-change (CMPPROG): Accept environment
6502         variable as an override for `cmp'.
6503         (usage): Document CMPPROG.
6504         Adjust comparison to drop stdout.  Cope with failure of mv if
6505         the target file exists and is identical to the source, for
6506         parallel builds.
6507         Report from H.J. Lu against binutils in PR binutils/12283.
6508
6509 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6510
6511         * users.txt: Mention sharutils.
6512
6513 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6514
6515         * users.txt: Mention OATH Toolkit.
6516
6517 2011-01-27  Bruno Haible  <bruno@clisp.org>
6518
6519         Prepare for supporting FreeBSD 10.
6520         * build-aux/config.libpath: Remove handling of freebsd1*.
6521
6522 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6523
6524         Prepare for supporting FreeBSD 10.
6525         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6526         match FreeBSD 10.0.
6527
6528 2011-01-27  Bruno Haible  <bruno@clisp.org>
6529
6530         vma-iter, get-rusage-as: Add OpenBSD support.
6531         * modules/vma-iter (configure.ac): Test for mquery.
6532         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6533         * lib/vma-iter.c: Include <sys/mman.h>.
6534         (vma_iterate): Add an implementation based on mquery().
6535         * lib/resource-ext.h (get_rusage_as): Update comments.
6536         * lib/get-rusage-as.c: Likewise.
6537         * lib/get-rusage-data.c: Likewise.
6538
6539 2011-01-26  Karl Berry  <karl@gnu.org>
6540
6541         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6542         variables to make it easier to override the makeinfo program used.
6543
6544 2011-01-26  Eric Blake  <eblake@redhat.com>
6545
6546         fcntl: work around Haiku F_DUPFD bugs
6547         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6548         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6549         cloexec bit on duplication.
6550         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6551
6552 2011-01-26  Bruno Haible  <bruno@clisp.org>
6553
6554         Enable memory leak tests on AIX.
6555         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6556         * tests/test-fprintf-posix3.c (main): Likewise.
6557
6558 2011-01-26  Bruno Haible  <bruno@clisp.org>
6559
6560         Tests for module 'get-rusage-data'.
6561         * modules/get-rusage-data-tests: New file.
6562         * tests/test-get-rusage-data.c: New file.
6563
6564         New module 'get-rusage-data'.
6565         * lib/resource-ext.h (get_rusage_data): New declaration.
6566         * lib/get-rusage-data.c: New file.
6567         * modules/get-rusage-data: New file.
6568
6569 2011-01-25  Bruno Haible  <bruno@clisp.org>
6570
6571         get-rusage-as: Allow for easier testing.
6572         * lib/resource-ext.h (get_rusage_as): Add comment.
6573         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6574         (main): New function for interactive testing.
6575
6576 2011-01-25  Bruno Haible  <bruno@clisp.org>
6577
6578         vma-iter: Treat Haiku like BeOS.
6579         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6580         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6581
6582 2011-01-25  Eric Blake  <eblake@redhat.com>
6583
6584         c-stack: fix regression on cygwin when libsigsegv is present
6585         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6586
6587 2011-01-24  Bruno Haible  <bruno@clisp.org>
6588
6589         vma-iter: Avoid empty intervals.
6590         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6591         on an empty interval.
6592
6593 2011-01-24  Jim Meyering  <meyering@redhat.com>
6594
6595         u64: remove unnecessary #include
6596         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6597
6598 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6599
6600         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6601         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6602
6603 2011-01-23  Bruno Haible  <bruno@clisp.org>
6604
6605         New module 'vma-iter'.
6606         * lib/vma-iter.h: New file.
6607         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6608         * modules/vma-iter: New file.
6609         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6610         for get_rusage_as_via_iterator.
6611         (vma_iterate_callback): New function.
6612         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6613         * modules/get-rusage-as (Depends-on): Add vma-iter.
6614
6615 2011-01-23  Bruno Haible  <bruno@clisp.org>
6616
6617         uninorm: Tweak includes.
6618         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6619         Reported by Jim Meyering.
6620
6621 2011-01-23  Bruno Haible  <bruno@clisp.org>
6622
6623         get-rusage-as: Improve on NetBSD.
6624         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6625         /proc, like on FreeBSD.
6626
6627 2011-01-23  Jim Meyering  <meyering@redhat.com>
6628
6629         xreadlink.h: remove unnecessary #include
6630         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6631
6632         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6633         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6634
6635 2011-01-23  Bruno Haible  <bruno@clisp.org>
6636
6637         get-rusage-as: Fix bug.
6638         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6639         original limit when aborting the first loop.
6640
6641 2011-01-23  Bruno Haible  <bruno@clisp.org>
6642
6643         wctype: Ensure valid C syntax.
6644         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6645         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6646
6647 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6648
6649         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6651         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6652         as they are needed only for configure's test case.
6653         This removes two unnecessary symbols from config.h.
6654
6655         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6656         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6657         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6658         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6659         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6661         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6662         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6663         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6664         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6665         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6666         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6667         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6668         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6669         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6670         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6671         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6672         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6673
6674 2011-01-21  Eric Blake  <eblake@redhat.com>
6675
6676         maintainer-makefile: work with older git for submodule check
6677         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6678         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6679         Reported by Matthias Bolte.
6680
6681         bootstrap: minor portability fixes
6682         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6683         (usage): Omit leading capital and trailing . on help phrases, per
6684         GNU Coding Standards.
6685         (check_versions, top level): Prefix messages with script name.
6686
6687 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6688
6689         bootstrap: support --no-git option
6690         * build-aux/bootstrap: Add --no-git option, to be used when
6691         --gnulib-srcdir points to the exact desired checkout.
6692
6693 2011-01-21  Eric Blake  <eblake@redhat.com>
6694
6695         strerror_r-posix: work with glibc 2.13
6696         * lib/strerror_r.c (strerror_r): Fix return type.
6697
6698 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6699             Bruno Haible  <bruno@clisp.org>
6700
6701         uN_strstr: New unit tests.
6702         * modules/unistr/u8-strstr-tests: New file.
6703         * modules/unistr/u16-strstr-tests: New file.
6704         * modules/unistr/u32-strstr-tests: New file.
6705         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6706         * tests/unistr/test-u8-strstr.c: New file.
6707         * tests/unistr/test-u16-strstr.c: New file.
6708         * tests/unistr/test-u32-strstr.c: New file.
6709
6710 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6711             Bruno Haible  <bruno@clisp.org>
6712
6713         Make uN_strstr functions O(n) worst-case.
6714         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6715         16-bit and 32-bit unit cases, use the unibyte algorithm from
6716         lib/mbsstr.c.
6717         * lib/unistr/u8-strstr.c: Include <string.h>.
6718         (UNIT_IS_UINT8_T): New macro.
6719         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6720         (U_STRLEN, U_STRNLEN): New macros.
6721         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6722         (U_STRLEN, U_STRNLEN): New macros.
6723         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6724         (configure.ac): Update required libunistring version.
6725         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6726         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6727         malloca.
6728         (configure.ac): Update required libunistring version.
6729         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6730         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6731         malloca.
6732         (configure.ac): Update required libunistring version.
6733
6734 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6735             Bruno Haible  <bruno@clisp.org>
6736
6737         Prepare for faster uN_strstr functions.
6738         * lib/str-kmp.h: Support definable UNITs.
6739         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6740         needle_len argument.
6741         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6742         * lib/mbscasestr.c (mbscasestr): Likewise.
6743
6744 2011-01-21  Pádraig Brady <P@draigBrady.com>
6745
6746         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6747         * tests/test-malloca.c (main): Unset the environment variable
6748         to greatly speed up the test.
6749         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6750         * modules/malloca-tests: Depend on unsetenv.
6751
6752 2011-01-21  Pádraig Brady <P@draigBrady.com>
6753
6754         ignore-value: remove stdint dependency
6755         * lib/ignore-value.h: Remove <stdint.h>
6756         * modules/ignore-value: Remove stdint dependency.
6757
6758 2011-01-21  Jim Meyering  <meyering@redhat.com>
6759
6760         maint.mk: adjust variable name to be consistent with other gl_ vars
6761         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6762         to be lower case.
6763
6764 2011-01-20  Jim Meyering  <meyering@redhat.com>
6765
6766         maint.mk: make "check" depend on public-submodule-commit by default
6767         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6768
6769 2011-01-20  Bruno Haible  <bruno@clisp.org>
6770
6771         mbfile, mbiter: Complete change from 2008-12-21.
6772         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6773         * m4/mbiter.m4 (gl_MBITER): Likewise.
6774
6775 2011-01-20  Jim Meyering  <meyering@redhat.com>
6776
6777         init.sh: insert space between each function name and "()"
6778         * tests/init.sh: Make it a little easier to see that a function's
6779         name is "warn_", and not "warn" when looking at the first part of
6780         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6781
6782 2011-01-20  Jim Meyering  <meyering@redhat.com>
6783
6784         mountlist: clean up code formatting
6785         * lib/mountlist.c (read_file_system_list): Split a long line,
6786         correct bracing style, use NULL in place of "(struct statfs *)0",
6787         don't parenthesize return value, add spaces around "=" and after
6788         ";-in-for-stmt".
6789
6790 2011-01-14  Markus Duft <mduft@gentoo.org>
6791
6792         mountlist: add support for Interix
6793         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6794         Apply statvfs to all entries of /dev/fs.
6795         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6796         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6797
6798 2011-01-20  Jim Meyering  <meyering@redhat.com>
6799
6800         maint.mk: improve the public-submodule-commit rule
6801         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6802         to suppress printing of its commands... unless V=1.
6803         Add git submodule's --quiet option to suppress printing of e.g.,
6804         "Entering gnulib" output.
6805         "cd" into $(srcdir) before running git submodule.
6806
6807 2011-01-20  Bruno Haible  <bruno@clisp.org>
6808
6809         include_next: Fix bug introduced on 2011-01-18.
6810         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6811         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6812         ac_cv_header_... variable if the second argument is not 'check'.
6813         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6814         gl_NEXT_HEADERS_INTERNAL.
6815
6816 2011-01-20  Bruno Haible  <bruno@clisp.org>
6817
6818         Allow the user to avoid the GNULIB_TEST_* macros.
6819         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6820         Suggested by Paul Eggert.
6821
6822 2011-01-14  Jim Meyering  <meyering@redhat.com>
6823
6824         bootstrap: avoid failure when there is no .gitmodules file
6825         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6826         has been assigned to, even when its value is the empty string.
6827         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6828         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6829         Reported by John W. Eaton <jwe@gnu.org>.
6830
6831 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6832
6833         assume <ctype.h>, ..., <time.h> exist
6834         For years gnulib has been assuming the existence of the headers
6835         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6836         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6837         them, since they don't appear to be needed.
6838         * README (Portability guidelines): Document this.
6839         * lib/flock.c: Assume <fcntl.h> exists.
6840         * lib/regex_internal.h: Assume <locale.h> exists.
6841         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6842         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6843         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6844         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6845         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6846         * m4/regex.m4 (gl_REGEX): Likewise.
6847         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6848         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6849         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6850         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6851         * tests/test-argp.c: Likewise.
6852         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6853
6854         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6855         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6856         AA_APPLE_UNIVERSAL_BUILD.  See
6857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6858         * NEWS: Document this.
6859
6860 2011-01-19  Eric Blake  <eblake@redhat.com>
6861
6862         c-stack: assume stack overflow if SA_SIGINFO unsupported
6863         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6864         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6865         sigaction will work.
6866         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6867         behavior match Linux.
6868         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6869
6870         stdbool-tests: accomodate Haiku
6871         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6872
6873         binary-io: fix O_TEXT on Haiku
6874         * modules/binary-io (Depends-on): Add fcntl-h.
6875         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6876         than blindly undefining O_TEXT.
6877         Reported by Scott McCreary.
6878
6879 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6880
6881         include_next: do not check for standard headers like stddef.h
6882
6883         I found this problem when modifying Emacs to use gnulib.
6884         I noticed that it added HAVE_STDDEF_H to config.h, even though
6885         gnulib always assumes <stddef.h> exists as per README and this
6886         symbol is unnecessary.
6887         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6888         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6889         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6890         faster for headers like stddef.h that are known to exist.
6891         (gl_CHECK_NEXT_HEADERS): Use it.
6892         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6893         rather than gl_CHECK_NEXT_HEADERS.
6894         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6895         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6896
6897 2011-01-18  Eric Blake  <eblake@redhat.com>
6898
6899         ansi-c++-opt: skip C++ dependency style if C++ is unused
6900         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6901         tests when we know C++ compilation is not desired.
6902         Reported by Scott McCreary.
6903
6904 2011-01-18  Bruno Haible  <bruno@clisp.org>
6905
6906         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6907         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6908         (main): Perform test also when getrlimit and setrlimit don't exist or
6909         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6910         limiting the address space size using setrlimit, compare the address
6911         space size before and after the the test.
6912         * tests/test-dprintf-posix2.c: Likewise.
6913         * tests/test-fprintf-posix3.sh: Update skip messages.
6914         * tests/test-dprintf-posix2.sh: Likewise.
6915         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6916         * modules/dprintf-posix-tests (Depends-on): Likewise.
6917         Reported by Bruce Korb <bkorb@gnu.org> and
6918         Gary V. Vaughan <gary@gnu.org>.
6919
6920 2011-01-18  Bruno Haible  <bruno@clisp.org>
6921
6922         get-rusage-as: Improvement for Cygwin.
6923         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6924         areas that are merely reserved.
6925
6926 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6927
6928         strftime: remove dependencies on multibyte modules
6929
6930         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6931         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6932         only if __osf__ is defined, and I suspect OSF doesn't need these
6933         other modules.  If my guess is wrong, we'll need to come up with a
6934         variant of strftime that doesn't need the multibyte modules.
6935
6936         I discovered this problem when attempting modify Emacs to use the
6937         strftime module.  With the previous gnulib, this caused Emacs to
6938         need 31 new files, ranging from lib/config.charset to
6939         m4/wint_t.m4.  This was overkill and I expect would be offputting
6940         to the Emacs maintainers.  After this change, only 6 new files are
6941         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6942         stdbool.m4, and tm_gmtoff.m4.
6943
6944         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6945         Suggested by Bruno Haible in
6946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6947         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6948         and do not check for wchar.h.
6949         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6950         (Depends-on): Remove mbrlen, mbsinit, wchar.
6951
6952 2011-01-18  Bruno Haible  <bruno@clisp.org>
6953
6954         Tests for module 'get-rusage-as'.
6955         * modules/get-rusage-as-tests: New file.
6956         * tests/test-get-rusage-as.c: New file.
6957
6958         New module 'get-rusage-as'.
6959         * modules/get-rusage-as: New file.
6960         * lib/resource-ext.h: New file.
6961         * lib/get-rusage-as.c: New file.
6962
6963 2011-01-17  Eric Blake  <eblake@redhat.com>
6964
6965         sigaction: relax license from LGPLv3+ to LGPLv2+
6966         * modules/sigaction (License): Relax to LGPLv2+.
6967
6968 2011-01-14  Bruno Haible  <bruno@clisp.org>
6969
6970         filemode: Make function declarations usable in C++ mode.
6971         * lib/filemode.h: Enclose function declarations in extern "C" block.
6972         Reported by John W. Eaton <jwe@gnu.org>.
6973
6974 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6975
6976         save-cwd: no longer include "xgetcwd.h"
6977         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6978         This avoids a compilation failure in projects that use save-cwd
6979         without also using the xgetcwd module.
6980
6981 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6982
6983         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6984         This is so that a program like Emacs, which needs only dtoastr,
6985         does not have to bother with distributing and compiling ftoastr
6986         and ldtoastr.
6987         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6988         * modules/dtoastr, modules/ldtoastr: New files.
6989         * modules/ftoastr: Now works just for 'float'.
6990         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6991         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6992         dtoastr.c, ldtoastr.c.
6993
6994 2011-01-11  Jim Meyering  <meyering@redhat.com>
6995
6996         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6997         There is no need to work around the lack of the fchdir function,
6998         since gnulib can now provide a replacement when required.
6999         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7000         * modules/save-cwd (Depends-on): Add fchdir.
7001
7002 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7003
7004         openat, save-cwd: avoid xmalloc
7005
7006         This removes a direct (but undocumented) dependency of openat on
7007         xalloc, along with an indirect dependency via save-cwd.  It also
7008         removes a dependency of save-cwd on xgetcwd, and thereby
7009         indirectly on xalloc.  This change causes the openat substitute
7010         to fall back on save_cwd when memory is tight, and for save_cwd to
7011         fail instead of dying when memory is tight, but that's good enough.
7012         Problem and initial idea for fix reported by Bastien Roucaries in
7013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7014
7015         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7016         xalloc.h (for xmalloc).
7017         (openat_proc_name): Use malloc, not xmalloc.
7018         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7019         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7020
7021         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7022         This avoids heap allocation for file names whose lengths are in
7023         the range 512..1023, with the upper bound increasing to at most
7024         4031 depending on the platform's PATH_MAX.  (We do not want
7025         pathmax.h here as it might supply a non-constant PATH_MAX.)
7026         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7027         Perhaps they should be moved to malloca.h?
7028         (OPENAT_BUFFER_SIZE): Use them.
7029
7030 2011-01-10  Bruno Haible  <bruno@clisp.org>
7031
7032         doc: Update users.txt.
7033         * users.txt: Add recutils.
7034
7035 2011-01-09  Karl Berry  <karl@gnu.org>
7036
7037         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7038
7039         * doc/configmake.texi: New file.
7040         * doc/gnulib.texi: Include it.
7041         * modules/configmake: Move documentation from here.
7042
7043 2011-01-09  Bruno Haible  <bruno@clisp.org>
7044
7045         Update to Unicode 6.0.0.
7046         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7047         (get_lbp): Update for Unicode 6.0.0.
7048         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7049         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7050         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7051         U+11001, U+11038..U+11046. Remove U+06DE.
7052         (uc_width): Fix bounds of planes.
7053         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7054         lib/uniwidth/width.c.
7055         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7056         trailing whitespace removed.
7057         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7058         without comments, but with the original copyright notice.
7059         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7060         * lib/unicase/ignorable.h: Likewise.
7061         * lib/unicase/tocasefold.h: Likewise.
7062         * lib/unicase/tolower.h: Likewise.
7063         * lib/unicase/totitle.h: Likewise.
7064         * lib/unicase/toupper.h: Likewise.
7065         * lib/unictype/bidi_of.h: Likewise.
7066         * lib/unictype/blocks.h: Likewise.
7067         * lib/unictype/categ_C.h: Likewise.
7068         * lib/unictype/categ_Cn.h: Likewise.
7069         * lib/unictype/categ_L.h: Likewise.
7070         * lib/unictype/categ_Ll.h: Likewise.
7071         * lib/unictype/categ_Lm.h: Likewise.
7072         * lib/unictype/categ_Lo.h: Likewise.
7073         * lib/unictype/categ_Lu.h: Likewise.
7074         * lib/unictype/categ_M.h: Likewise.
7075         * lib/unictype/categ_Mc.h: Likewise.
7076         * lib/unictype/categ_Me.h: Likewise.
7077         * lib/unictype/categ_Mn.h: Likewise.
7078         * lib/unictype/categ_N.h: Likewise.
7079         * lib/unictype/categ_Nd.h: Likewise.
7080         * lib/unictype/categ_No.h: Likewise.
7081         * lib/unictype/categ_P.h: Likewise.
7082         * lib/unictype/categ_Po.h: Likewise.
7083         * lib/unictype/categ_S.h: Likewise.
7084         * lib/unictype/categ_Sc.h: Likewise.
7085         * lib/unictype/categ_Sk.h: Likewise.
7086         * lib/unictype/categ_Sm.h: Likewise.
7087         * lib/unictype/categ_So.h: Likewise.
7088         * lib/unictype/categ_of.h: Likewise.
7089         * lib/unictype/combining.h: Likewise.
7090         * lib/unictype/ctype_alnum.h: Likewise.
7091         * lib/unictype/ctype_alpha.h: Likewise.
7092         * lib/unictype/ctype_graph.h: Likewise.
7093         * lib/unictype/ctype_lower.h: Likewise.
7094         * lib/unictype/ctype_print.h: Likewise.
7095         * lib/unictype/ctype_punct.h: Likewise.
7096         * lib/unictype/ctype_upper.h: Likewise.
7097         * lib/unictype/decdigit.h: Likewise.
7098         * lib/unictype/digit.h: Likewise.
7099         * lib/unictype/numeric.h: Likewise.
7100         * lib/unictype/pr_alphabetic.h: Likewise.
7101         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7102         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7103         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7104         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7105         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7106         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7107         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7108         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7109         * lib/unictype/pr_case_ignorable.h: Likewise.
7110         * lib/unictype/pr_cased.h: Likewise.
7111         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7112         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7113         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7114         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7115         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7116         * lib/unictype/pr_combining.h: Likewise.
7117         * lib/unictype/pr_composite.h: Likewise.
7118         * lib/unictype/pr_currency_symbol.h: Likewise.
7119         * lib/unictype/pr_decimal_digit.h: Likewise.
7120         * lib/unictype/pr_deprecated.h: Likewise.
7121         * lib/unictype/pr_format_control.h: Likewise.
7122         * lib/unictype/pr_grapheme_base.h: Likewise.
7123         * lib/unictype/pr_grapheme_extend.h: Likewise.
7124         * lib/unictype/pr_grapheme_link.h: Likewise.
7125         * lib/unictype/pr_id_continue.h: Likewise.
7126         * lib/unictype/pr_id_start.h: Likewise.
7127         * lib/unictype/pr_ideographic.h: Likewise.
7128         * lib/unictype/pr_lowercase.h: Likewise.
7129         * lib/unictype/pr_math.h: Likewise.
7130         * lib/unictype/pr_numeric.h: Likewise.
7131         * lib/unictype/pr_other_alphabetic.h: Likewise.
7132         * lib/unictype/pr_other_id_continue.h: Likewise.
7133         * lib/unictype/pr_other_math.h: Likewise.
7134         * lib/unictype/pr_punctuation.h: Likewise.
7135         * lib/unictype/pr_sentence_terminal.h: Likewise.
7136         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7137         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7138         * lib/unictype/pr_unified_ideograph.h: Likewise.
7139         * lib/unictype/pr_uppercase.h: Likewise.
7140         * lib/unictype/pr_xid_continue.h: Likewise.
7141         * lib/unictype/pr_xid_start.h: Likewise.
7142         * lib/unictype/scripts.h: Likewise.
7143         * lib/unictype/scripts_byname.gperf: Likewise.
7144         * lib/unictype/sy_java_ident.h: Likewise.
7145         * lib/unigbrk/gbrkprop.h: Likewise.
7146         * lib/unilbrk/lbrkprop1.h: Likewise.
7147         * lib/unilbrk/lbrkprop2.h: Likewise.
7148         * lib/uninorm/decomposition-table2.h: Likewise.
7149         * lib/uniwbrk/wbrkprop.h: Likewise.
7150         * tests/unicase/test-cased.c: Likewise.
7151         * tests/unicase/test-ignorable.c: Likewise.
7152         * tests/unicase/test-uc_tolower.c: Likewise.
7153         * tests/unicase/test-uc_totitle.c: Likewise.
7154         * tests/unicase/test-uc_toupper.c: Likewise.
7155         * tests/unictype/test-categ_C.c: Likewise.
7156         * tests/unictype/test-categ_Cn.c: Likewise.
7157         * tests/unictype/test-categ_L.c: Likewise.
7158         * tests/unictype/test-categ_Ll.c: Likewise.
7159         * tests/unictype/test-categ_Lm.c: Likewise.
7160         * tests/unictype/test-categ_Lo.c: Likewise.
7161         * tests/unictype/test-categ_Lu.c: Likewise.
7162         * tests/unictype/test-categ_M.c: Likewise.
7163         * tests/unictype/test-categ_Mc.c: Likewise.
7164         * tests/unictype/test-categ_Me.c: Likewise.
7165         * tests/unictype/test-categ_Mn.c: Likewise.
7166         * tests/unictype/test-categ_N.c: Likewise.
7167         * tests/unictype/test-categ_Nd.c: Likewise.
7168         * tests/unictype/test-categ_No.c: Likewise.
7169         * tests/unictype/test-categ_P.c: Likewise.
7170         * tests/unictype/test-categ_Po.c: Likewise.
7171         * tests/unictype/test-categ_S.c: Likewise.
7172         * tests/unictype/test-categ_Sc.c: Likewise.
7173         * tests/unictype/test-categ_Sk.c: Likewise.
7174         * tests/unictype/test-categ_Sm.c: Likewise.
7175         * tests/unictype/test-categ_So.c: Likewise.
7176         * tests/unictype/test-ctype_alnum.c: Likewise.
7177         * tests/unictype/test-ctype_alpha.c: Likewise.
7178         * tests/unictype/test-ctype_graph.c: Likewise.
7179         * tests/unictype/test-ctype_lower.c: Likewise.
7180         * tests/unictype/test-ctype_print.c: Likewise.
7181         * tests/unictype/test-ctype_punct.c: Likewise.
7182         * tests/unictype/test-ctype_upper.c: Likewise.
7183         * tests/unictype/test-decdigit.h: Likewise.
7184         * tests/unictype/test-digit.h: Likewise.
7185         * tests/unictype/test-numeric.h: Likewise.
7186         * tests/unictype/test-pr_alphabetic.c: Likewise.
7187         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7188         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7189         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7190         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7191         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7192         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7193         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7194         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7195         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7196         * tests/unictype/test-pr_cased.c: Likewise.
7197         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7198         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7199         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7200         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7201         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7202         * tests/unictype/test-pr_combining.c: Likewise.
7203         * tests/unictype/test-pr_composite.c: Likewise.
7204         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7205         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7206         * tests/unictype/test-pr_deprecated.c: Likewise.
7207         * tests/unictype/test-pr_format_control.c: Likewise.
7208         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7209         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7210         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7211         * tests/unictype/test-pr_id_continue.c: Likewise.
7212         * tests/unictype/test-pr_id_start.c: Likewise.
7213         * tests/unictype/test-pr_ideographic.c: Likewise.
7214         * tests/unictype/test-pr_lowercase.c: Likewise.
7215         * tests/unictype/test-pr_math.c: Likewise.
7216         * tests/unictype/test-pr_numeric.c: Likewise.
7217         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7218         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7219         * tests/unictype/test-pr_other_math.c: Likewise.
7220         * tests/unictype/test-pr_punctuation.c: Likewise.
7221         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7222         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7223         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7224         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7225         * tests/unictype/test-pr_uppercase.c: Likewise.
7226         * tests/unictype/test-pr_xid_continue.c: Likewise.
7227         * tests/unictype/test-pr_xid_start.c: Likewise.
7228         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7229         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7230         changes.
7231         * lib/unictype/categ_Cc.h: Likewise.
7232         * lib/unictype/categ_Cf.h: Likewise.
7233         * lib/unictype/categ_Co.h: Likewise.
7234         * lib/unictype/categ_Cs.h: Likewise.
7235         * lib/unictype/categ_Lt.h: Likewise.
7236         * lib/unictype/categ_Nl.h: Likewise.
7237         * lib/unictype/categ_Pc.h: Likewise.
7238         * lib/unictype/categ_Pd.h: Likewise.
7239         * lib/unictype/categ_Pe.h: Likewise.
7240         * lib/unictype/categ_Pf.h: Likewise.
7241         * lib/unictype/categ_Pi.h: Likewise.
7242         * lib/unictype/categ_Ps.h: Likewise.
7243         * lib/unictype/categ_Z.h: Likewise.
7244         * lib/unictype/categ_Zl.h: Likewise.
7245         * lib/unictype/categ_Zp.h: Likewise.
7246         * lib/unictype/categ_Zs.h: Likewise.
7247         * lib/unictype/ctype_blank.h: Likewise.
7248         * lib/unictype/ctype_cntrl.h: Likewise.
7249         * lib/unictype/ctype_digit.h: Likewise.
7250         * lib/unictype/ctype_space.h: Likewise.
7251         * lib/unictype/ctype_xdigit.h: Likewise.
7252         * lib/unictype/mirror.h: Likewise.
7253         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7254         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7255         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7256         * lib/unictype/pr_bidi_control.h: Likewise.
7257         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7258         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7259         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7260         * lib/unictype/pr_bidi_pdf.h: Likewise.
7261         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7262         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7263         * lib/unictype/pr_dash.h: Likewise.
7264         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7265         * lib/unictype/pr_diacritic.h: Likewise.
7266         * lib/unictype/pr_extender.h: Likewise.
7267         * lib/unictype/pr_hex_digit.h: Likewise.
7268         * lib/unictype/pr_hyphen.h: Likewise.
7269         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7270         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7271         * lib/unictype/pr_ignorable_control.h: Likewise.
7272         * lib/unictype/pr_iso_control.h: Likewise.
7273         * lib/unictype/pr_join_control.h: Likewise.
7274         * lib/unictype/pr_left_of_pair.h: Likewise.
7275         * lib/unictype/pr_line_separator.h: Likewise.
7276         * lib/unictype/pr_logical_order_exception.h: Likewise.
7277         * lib/unictype/pr_non_break.h: Likewise.
7278         * lib/unictype/pr_not_a_character.h: Likewise.
7279         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7280         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7281         * lib/unictype/pr_other_id_start.h: Likewise.
7282         * lib/unictype/pr_other_lowercase.h: Likewise.
7283         * lib/unictype/pr_other_uppercase.h: Likewise.
7284         * lib/unictype/pr_paired_punctuation.h: Likewise.
7285         * lib/unictype/pr_paragraph_separator.h: Likewise.
7286         * lib/unictype/pr_pattern_syntax.h: Likewise.
7287         * lib/unictype/pr_pattern_white_space.h: Likewise.
7288         * lib/unictype/pr_private_use.h: Likewise.
7289         * lib/unictype/pr_quotation_mark.h: Likewise.
7290         * lib/unictype/pr_radical.h: Likewise.
7291         * lib/unictype/pr_soft_dotted.h: Likewise.
7292         * lib/unictype/pr_space.h: Likewise.
7293         * lib/unictype/pr_titlecase.h: Likewise.
7294         * lib/unictype/pr_variation_selector.h: Likewise.
7295         * lib/unictype/pr_white_space.h: Likewise.
7296         * lib/unictype/pr_zero_width.h: Likewise.
7297         * lib/unictype/sy_c_ident.h: Likewise.
7298         * lib/unictype/sy_c_whitespace.h: Likewise.
7299         * lib/unictype/sy_java_whitespace.h: Likewise.
7300         * lib/uninorm/composition-table.gperf: Likewise.
7301         * lib/uninorm/decomposition-table1.h: Likewise.
7302         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7303         LB8.
7304         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7305         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7306         * modules/unictype/*: Bump version number of expected libunistring
7307         version.
7308
7309 2011-01-09  Bruno Haible  <bruno@clisp.org>
7310
7311         Update to Unicode 5.2.0.
7312         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7313         trailing whitespace removed.
7314
7315 2011-01-09  Bruno Haible  <bruno@clisp.org>
7316
7317         New Unicode character properties, from Unicode 5.2.0.
7318         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7319         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7320         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7321         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7322         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7323         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7324         uc_is_property_cased, uc_is_property_case_ignorable,
7325         uc_is_property_changes_when_lowercased,
7326         uc_is_property_changes_when_uppercased,
7327         uc_is_property_changes_when_titlecased,
7328         uc_is_property_changes_when_casefolded,
7329         uc_is_property_changes_when_casemapped): New declarations.
7330         * lib/unictype/pr_byname.gperf: Add the new properties.
7331         * modules/unictype/property-byname (Depends-on): Depend on the new
7332         properties modules.
7333         * modules/unictype/property-all (Depends-on): Likewise.
7334         * MODULES.html.sh (Unicode string functions): Add
7335         unictype/property-case-ignorable, unictype/property-cased,
7336         unictype/property-changes-when-casefolded,
7337         unictype/property-changes-when-casemapped,
7338         unictype/property-changes-when-lowercased,
7339         unictype/property-changes-when-titlecased,
7340         unictype/property-changes-when-uppercased.
7341
7342         New module 'unictype/property-changes-when-casemapped'.
7343         * modules/unictype/property-changes-when-casemapped: New file.
7344         * lib/unictype/pr_changes_when_casemapped.c: New file.
7345         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7346         generated by gen-uni-tables.
7347         * modules/unictype/property-changes-when-casemapped-tests: New file.
7348         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7349         automatically generated by gen-uni-tables.
7350
7351         New module 'unictype/property-changes-when-casefolded'.
7352         * modules/unictype/property-changes-when-casefolded: New file.
7353         * lib/unictype/pr_changes_when_casefolded.c: New file.
7354         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7355         generated by gen-uni-tables.
7356         * modules/unictype/property-changes-when-casefolded-tests: New file.
7357         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7358         automatically generated by gen-uni-tables.
7359
7360         New module 'unictype/property-changes-when-titlecased'.
7361         * modules/unictype/property-changes-when-titlecased: New file.
7362         * lib/unictype/pr_changes_when_titlecased.c: New file.
7363         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7364         generated by gen-uni-tables.
7365         * modules/unictype/property-changes-when-titlecased-tests: New file.
7366         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7367         automatically generated by gen-uni-tables.
7368
7369         New module 'unictype/property-changes-when-uppercased'.
7370         * modules/unictype/property-changes-when-uppercased: New file.
7371         * lib/unictype/pr_changes_when_uppercased.c: New file.
7372         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7373         generated by gen-uni-tables.
7374         * modules/unictype/property-changes-when-uppercased-tests: New file.
7375         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7376         automatically generated by gen-uni-tables.
7377
7378         New module 'unictype/property-changes-when-lowercased'.
7379         * modules/unictype/property-changes-when-lowercased: New file.
7380         * lib/unictype/pr_changes_when_lowercased.c: New file.
7381         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7382         generated by gen-uni-tables.
7383         * modules/unictype/property-changes-when-lowercased-tests: New file.
7384         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7385         automatically generated by gen-uni-tables.
7386
7387         New module 'unictype/property-case-ignorable'.
7388         * modules/unictype/property-case-ignorable: New file.
7389         * lib/unictype/pr_case_ignorable.c: New file.
7390         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7391         by gen-uni-tables.
7392         * modules/unictype/property-case-ignorable-tests: New file.
7393         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7394         generated by gen-uni-tables.
7395
7396         New module 'unictype/property-cased'.
7397         * modules/unictype/property-cased: New file.
7398         * lib/unictype/pr_cased.c: New file.
7399         * lib/unictype/pr_cased.h: New file, automatically generated by
7400         gen-uni-tables.
7401         * modules/unictype/property-cased-tests: New file.
7402         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7403         gen-uni-tables.
7404
7405 2011-01-09  Bruno Haible  <bruno@clisp.org>
7406
7407         Update to Unicode 5.2.0.
7408         * lib/gen-uni-tables.c (output_predicate, output_category,
7409         output_combclass, output_bidi_category, output_decimal_digit_test,
7410         output_decimal_digit, output_digit_test, output_digit,
7411         output_numeric_test, output_numeric, output_mirror, output_scripts,
7412         output_scripts_byname, output_blocks, output_ident_category): Fix
7413         comment header.
7414         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7415         get_wbp.
7416         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7417         items.
7418         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7419         Changes_When_Lowercased, Changes_When_Uppercased,
7420         Changes_When_Titlecased, Changes_When_Casefolded,
7421         Changes_When_Casemapped.
7422         (is_property_alphabetic, is_property_default_ignorable_code_point):
7423         Update for Unicode 5.2.0.
7424         (is_property_cased, is_property_case_ignorable,
7425         is_property_changes_when_lowercased,
7426         is_property_changes_when_uppercased,
7427         is_property_changes_when_titlecased,
7428         is_property_changes_when_casefolded,
7429         is_property_changes_when_casemapped): New functions.
7430         (output_properties): Output also the properties cased, case_ignorable,
7431         changes_when_lowercased, changes_when_uppercased,
7432         changes_when_titlecased, changes_when_casefolded,
7433         changes_when_casemapped.
7434         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7435         Unicode TR#11 revision 17 -> 19.
7436         (LBP_CP): New enumeration value.
7437         (LBP_*): Adjust values accordingly.
7438         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7439         TR#14 revision 22 -> 24.
7440         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7441         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7442         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7443         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7444         is_WBP_MIDLETTER.
7445         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7446         the code1 and code2 of each composition rule.
7447         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7448         * lib/unicase/ignorable.h: Likewise.
7449         * lib/unicase/tocasefold.h: Likewise.
7450         * lib/unicase/tolower.h: Likewise.
7451         * lib/unicase/totitle.h: Likewise.
7452         * lib/unicase/toupper.h: Likewise.
7453         * lib/unictype/bidi_of.h: Likewise.
7454         * lib/unictype/blocks.h: Likewise.
7455         * lib/unictype/categ_C.h: Likewise.
7456         * lib/unictype/categ_Cf.h: Likewise.
7457         * lib/unictype/categ_Cn.h: Likewise.
7458         * lib/unictype/categ_L.h: Likewise.
7459         * lib/unictype/categ_Ll.h: Likewise.
7460         * lib/unictype/categ_Lm.h: Likewise.
7461         * lib/unictype/categ_Lo.h: Likewise.
7462         * lib/unictype/categ_Lu.h: Likewise.
7463         * lib/unictype/categ_M.h: Likewise.
7464         * lib/unictype/categ_Mc.h: Likewise.
7465         * lib/unictype/categ_Mn.h: Likewise.
7466         * lib/unictype/categ_N.h: Likewise.
7467         * lib/unictype/categ_Nd.h: Likewise.
7468         * lib/unictype/categ_Nl.h: Likewise.
7469         * lib/unictype/categ_No.h: Likewise.
7470         * lib/unictype/categ_P.h: Likewise.
7471         * lib/unictype/categ_Pd.h: Likewise.
7472         * lib/unictype/categ_Po.h: Likewise.
7473         * lib/unictype/categ_S.h: Likewise.
7474         * lib/unictype/categ_Sc.h: Likewise.
7475         * lib/unictype/categ_So.h: Likewise.
7476         * lib/unictype/categ_of.h: Likewise.
7477         * lib/unictype/combining.h: Likewise.
7478         * lib/unictype/ctype_alnum.h: Likewise.
7479         * lib/unictype/ctype_alpha.h: Likewise.
7480         * lib/unictype/ctype_graph.h: Likewise.
7481         * lib/unictype/ctype_lower.h: Likewise.
7482         * lib/unictype/ctype_print.h: Likewise.
7483         * lib/unictype/ctype_punct.h: Likewise.
7484         * lib/unictype/ctype_upper.h: Likewise.
7485         * lib/unictype/decdigit.h: Likewise.
7486         * lib/unictype/digit.h: Likewise.
7487         * lib/unictype/numeric.h: Likewise.
7488         * lib/unictype/pr_alphabetic.h: Likewise.
7489         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7490         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7491         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7492         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7493         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7494         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7495         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7496         * lib/unictype/pr_combining.h: Likewise.
7497         * lib/unictype/pr_composite.h: Likewise.
7498         * lib/unictype/pr_currency_symbol.h: Likewise.
7499         * lib/unictype/pr_dash.h: Likewise.
7500         * lib/unictype/pr_decimal_digit.h: Likewise.
7501         * lib/unictype/pr_deprecated.h: Likewise.
7502         * lib/unictype/pr_diacritic.h: Likewise.
7503         * lib/unictype/pr_extender.h: Likewise.
7504         * lib/unictype/pr_grapheme_base.h: Likewise.
7505         * lib/unictype/pr_grapheme_extend.h: Likewise.
7506         * lib/unictype/pr_grapheme_link.h: Likewise.
7507         * lib/unictype/pr_id_continue.h: Likewise.
7508         * lib/unictype/pr_id_start.h: Likewise.
7509         * lib/unictype/pr_ideographic.h: Likewise.
7510         * lib/unictype/pr_ignorable_control.h: Likewise.
7511         * lib/unictype/pr_logical_order_exception.h: Likewise.
7512         * lib/unictype/pr_lowercase.h: Likewise.
7513         * lib/unictype/pr_numeric.h: Likewise.
7514         * lib/unictype/pr_other_alphabetic.h: Likewise.
7515         * lib/unictype/pr_punctuation.h: Likewise.
7516         * lib/unictype/pr_sentence_terminal.h: Likewise.
7517         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7518         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7519         * lib/unictype/pr_unified_ideograph.h: Likewise.
7520         * lib/unictype/pr_uppercase.h: Likewise.
7521         * lib/unictype/pr_xid_continue.h: Likewise.
7522         * lib/unictype/pr_xid_start.h: Likewise.
7523         * lib/unictype/pr_zero_width.h: Likewise.
7524         * lib/unictype/scripts.h: Likewise.
7525         * lib/unictype/scripts_byname.gperf: Likewise.
7526         * lib/unictype/sy_java_ident.h: Likewise.
7527         * lib/unigbrk/gbrkprop.h: Likewise.
7528         * lib/unilbrk/lbrkprop1.h: Likewise.
7529         * lib/unilbrk/lbrkprop2.h: Likewise.
7530         * lib/unilbrk/lbrktables.h: Likewise.
7531         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7532         LBP_CP. Implement rule LB30.
7533         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7534         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7535         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7536         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7537         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7538         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7539         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7540         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7541         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7542         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7543         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7544         bits instead of 16 bits in the code1 and code2 of each composition
7545         rule.
7546         (uc_composition): Update for Unicode 5.2.0.
7547         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7548         * lib/uninorm/decomposition-table2.h: Likewise.
7549         * lib/uniwbrk/wbrkprop.h: Likewise.
7550         * tests/unicase/test-cased.c: Likewise.
7551         * tests/unicase/test-ignorable.c: Likewise.
7552         * tests/unicase/test-uc_tolower.c: Likewise.
7553         * tests/unicase/test-uc_totitle.c: Likewise.
7554         * tests/unicase/test-uc_toupper.c: Likewise.
7555         * tests/unictype/test-categ_C.c: Likewise.
7556         * tests/unictype/test-categ_Cf.c: Likewise.
7557         * tests/unictype/test-categ_Cn.c: Likewise.
7558         * tests/unictype/test-categ_L.c: Likewise.
7559         * tests/unictype/test-categ_Ll.c: Likewise.
7560         * tests/unictype/test-categ_Lm.c: Likewise.
7561         * tests/unictype/test-categ_Lo.c: Likewise.
7562         * tests/unictype/test-categ_Lu.c: Likewise.
7563         * tests/unictype/test-categ_M.c: Likewise.
7564         * tests/unictype/test-categ_Mc.c: Likewise.
7565         * tests/unictype/test-categ_Mn.c: Likewise.
7566         * tests/unictype/test-categ_N.c: Likewise.
7567         * tests/unictype/test-categ_Nd.c: Likewise.
7568         * tests/unictype/test-categ_Nl.c: Likewise.
7569         * tests/unictype/test-categ_No.c: Likewise.
7570         * tests/unictype/test-categ_P.c: Likewise.
7571         * tests/unictype/test-categ_Pd.c: Likewise.
7572         * tests/unictype/test-categ_Po.c: Likewise.
7573         * tests/unictype/test-categ_S.c: Likewise.
7574         * tests/unictype/test-categ_Sc.c: Likewise.
7575         * tests/unictype/test-categ_So.c: Likewise.
7576         * tests/unictype/test-ctype_alnum.c: Likewise.
7577         * tests/unictype/test-ctype_alpha.c: Likewise.
7578         * tests/unictype/test-ctype_graph.c: Likewise.
7579         * tests/unictype/test-ctype_lower.c: Likewise.
7580         * tests/unictype/test-ctype_print.c: Likewise.
7581         * tests/unictype/test-ctype_punct.c: Likewise.
7582         * tests/unictype/test-ctype_upper.c: Likewise.
7583         * tests/unictype/test-decdigit.h: Likewise.
7584         * tests/unictype/test-digit.h: Likewise.
7585         * tests/unictype/test-numeric.h: Likewise.
7586         * tests/unictype/test-pr_alphabetic.c: Likewise.
7587         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7588         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7589         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7590         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7591         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7592         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7593         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7594         * tests/unictype/test-pr_combining.c: Likewise.
7595         * tests/unictype/test-pr_composite.c: Likewise.
7596         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7597         * tests/unictype/test-pr_dash.c: Likewise.
7598         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7599         * tests/unictype/test-pr_deprecated.c: Likewise.
7600         * tests/unictype/test-pr_diacritic.c: Likewise.
7601         * tests/unictype/test-pr_extender.c: Likewise.
7602         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7603         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7604         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7605         * tests/unictype/test-pr_id_continue.c: Likewise.
7606         * tests/unictype/test-pr_id_start.c: Likewise.
7607         * tests/unictype/test-pr_ideographic.c: Likewise.
7608         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7609         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7610         * tests/unictype/test-pr_lowercase.c: Likewise.
7611         * tests/unictype/test-pr_numeric.c: Likewise.
7612         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7613         * tests/unictype/test-pr_punctuation.c: Likewise.
7614         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7615         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7616         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7617         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7618         * tests/unictype/test-pr_uppercase.c: Likewise.
7619         * tests/unictype/test-pr_xid_continue.c: Likewise.
7620         * tests/unictype/test-pr_xid_start.c: Likewise.
7621         * tests/unictype/test-pr_zero_width.c: Likewise.
7622         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7623         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7624         changed behaviour: line breaking is now disallowed between a letter
7625         or '=' and '('.
7626         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7627         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7628         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7629         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7630         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7631         lib/uniwidth/width.c.
7632         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7633         without comments, but with the original copyright notice.
7634         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7635         changes.
7636         * lib/unictype/categ_Cc.h: Likewise.
7637         * lib/unictype/categ_Co.h: Likewise.
7638         * lib/unictype/categ_Cs.h: Likewise.
7639         * lib/unictype/categ_Lt.h: Likewise.
7640         * lib/unictype/categ_Me.h: Likewise.
7641         * lib/unictype/categ_Pc.h: Likewise.
7642         * lib/unictype/categ_Pe.h: Likewise.
7643         * lib/unictype/categ_Pf.h: Likewise.
7644         * lib/unictype/categ_Pi.h: Likewise.
7645         * lib/unictype/categ_Ps.h: Likewise.
7646         * lib/unictype/categ_Sk.h: Likewise.
7647         * lib/unictype/categ_Sm.h: Likewise.
7648         * lib/unictype/categ_Z.h: Likewise.
7649         * lib/unictype/categ_Zl.h: Likewise.
7650         * lib/unictype/categ_Zp.h: Likewise.
7651         * lib/unictype/categ_Zs.h: Likewise.
7652         * lib/unictype/ctype_blank.h: Likewise.
7653         * lib/unictype/ctype_cntrl.h: Likewise.
7654         * lib/unictype/ctype_digit.h: Likewise.
7655         * lib/unictype/ctype_space.h: Likewise.
7656         * lib/unictype/ctype_xdigit.h: Likewise.
7657         * lib/unictype/mirror.h: Likewise.
7658         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7659         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7660         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7661         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7662         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7663         * lib/unictype/pr_bidi_control.h: Likewise.
7664         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7665         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7666         * lib/unictype/pr_bidi_pdf.h: Likewise.
7667         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7668         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7669         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7670         * lib/unictype/pr_format_control.h: Likewise.
7671         * lib/unictype/pr_hex_digit.h: Likewise.
7672         * lib/unictype/pr_hyphen.h: Likewise.
7673         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7674         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7675         * lib/unictype/pr_iso_control.h: Likewise.
7676         * lib/unictype/pr_join_control.h: Likewise.
7677         * lib/unictype/pr_left_of_pair.h: Likewise.
7678         * lib/unictype/pr_line_separator.h: Likewise.
7679         * lib/unictype/pr_math.h: Likewise.
7680         * lib/unictype/pr_non_break.h: Likewise.
7681         * lib/unictype/pr_not_a_character.h: Likewise.
7682         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7683         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7684         * lib/unictype/pr_other_id_continue.h: Likewise.
7685         * lib/unictype/pr_other_id_start.h: Likewise.
7686         * lib/unictype/pr_other_lowercase.h: Likewise.
7687         * lib/unictype/pr_other_math.h: Likewise.
7688         * lib/unictype/pr_other_uppercase.h: Likewise.
7689         * lib/unictype/pr_paired_punctuation.h: Likewise.
7690         * lib/unictype/pr_paragraph_separator.h: Likewise.
7691         * lib/unictype/pr_pattern_syntax.h: Likewise.
7692         * lib/unictype/pr_pattern_white_space.h: Likewise.
7693         * lib/unictype/pr_private_use.h: Likewise.
7694         * lib/unictype/pr_quotation_mark.h: Likewise.
7695         * lib/unictype/pr_radical.h: Likewise.
7696         * lib/unictype/pr_soft_dotted.h: Likewise.
7697         * lib/unictype/pr_space.h: Likewise.
7698         * lib/unictype/pr_titlecase.h: Likewise.
7699         * lib/unictype/pr_variation_selector.h: Likewise.
7700         * lib/unictype/pr_white_space.h: Likewise.
7701         * lib/unictype/sy_c_ident.h: Likewise.
7702         * lib/unictype/sy_c_whitespace.h: Likewise.
7703         * lib/unictype/sy_java_whitespace.h: Likewise.
7704         * modules/uni*/*: Bump version number of expected libunistring version.
7705         Reported by Simon Josefsson.
7706
7707 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7708
7709         useless-if-before-free: fix typo in --help and make the internal,
7710         automatic version date update process work once again.
7711         --help output contained a NUL character instead of the
7712         backslash-zero that was intended.  Also, the "must lie within
7713         the first 8 lines" line is on line 9, and hence not getting
7714         automatically updated.
7715         * build-aux/useless-if-before-free: Fix the former by adding a
7716         backslash, and the latter by condensing the three lines of what-it-does
7717         to a single line, leaving one line of slack for the future.
7718
7719 2011-01-09  Bruno Haible  <bruno@clisp.org>
7720
7721         uniwidth/width: Fix width of U+1D173..U+1D17A.
7722         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7723         symbolic_width, output_width_property_test): New functions.
7724         (main): Invoke output_nonspacing_property, output_width_property_test.
7725         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7726         U+1D173..U+1D17A.
7727         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7728         1.
7729         * modules/uniwidth/*: Bump version number of expected libunistring
7730         version.
7731         * modules/unilbrk/*: Likewise.
7732
7733 2011-01-08  Bruno Haible  <bruno@clisp.org>
7734
7735         uninorm tests: Preserve copyright of Unicode data file.
7736         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7737         Mention modifications.
7738
7739 2011-01-08  Bruno Haible  <bruno@clisp.org>
7740
7741         gen-uni-tables: Prepare for Unicode 5.2.0.
7742         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7743         (debug_output_lbp, output_lbp): Update.
7744
7745 2011-01-08  Bruno Haible  <bruno@clisp.org>
7746
7747         unilbrk: Clarify gen-uni-tables.c code.
7748         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7749         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7750         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7751
7752 2011-01-07  Bruno Haible  <bruno@clisp.org>
7753
7754         strtod: Restore errno when successfully parsing Infinity or NaN.
7755         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7756         restore the original errno.
7757
7758 2011-01-07  Bruno Haible  <bruno@clisp.org>
7759
7760         remove test: Avoid failure on HP-UX 11.
7761         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7762
7763 2011-01-07  Bruno Haible  <bruno@clisp.org>
7764
7765         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7766         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7767         error code.
7768
7769 2011-01-07  Pádraig Brady <P@draigBrady.com>
7770
7771         ignore-value: fixup comments, and add Eric Blake
7772         as an author since he rewrote the macros.
7773         * lib/ignore-value.h (ignore_value):  State that
7774         we now support aggregates.  Also specify exactly
7775         when the GCC warn_unused_result feature was added.
7776
7777 2011-01-06  Eric Blake  <eblake@redhat.com>
7778
7779         ignore-value: support aggregate types
7780         * lib/ignore-value.h (ignore_value): Provide separate gcc
7781         definition.
7782         * modules/ignore-value-tests: New test module.
7783         * tests/test-ignore-value.c: New test.
7784
7785         maint.mk: improve sc_prohibit_strcmp regex
7786         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7787         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7788         definition of STRNEQ.
7789
7790         signal: work around Haiku issue with SIGBUS
7791         * lib/siglist.h: Add comment.
7792         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7793         strsignal's favoring of SIGSEGV.
7794         * tests/test-signal.c (main): Avoid test failure.
7795         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7796         Reported by Scott McCreary.
7797
7798         maint.mk: add pre-release check to ensure submodule commits are public
7799         * top/maint.mk (public-submodule-commit): New rule.
7800         (submodule-checks): New variable.
7801         (alpha beta stable): Depend on the variable.
7802
7803 2011-01-05  Pádraig Brady <P@draigBrady.com>
7804         and Jim Meyering  <meyering@redhat.com>
7805
7806         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7807         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7808         (ATTRIBUTE_DEPRECATED): Define.
7809         (_ignore_case): New function.
7810         (ignore_value): New macro, to replace the old function.
7811         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7812         * modules/ignore-value (Depends-on): Add stdint.
7813
7814 2011-01-04  Eric Blake  <eblake@redhat.com>
7815
7816         doc: regenerate INSTALL
7817         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7818         @firstparagraphindent support, now that autoconf dropped it.
7819         (INSTALL_PRELUDE): Reinstate old macro.
7820         * doc/install.texi: Resync from autoconf.
7821         * doc/INSTALL: Reflect recent autoconf update.
7822         * doc/INSTALL.ISO: Likewise.
7823         * doc/INSTALL.UTF-8: Likewise.
7824         Reported by Karl Berry.
7825
7826 2011-01-04  Bruce Korb  <address@hidden>
7827
7828         git-version-gen: avoid a sub-shell
7829         * build-aux/git-version-gen: Redirect stderr in `...` via
7830         "exec 2>...", rather than via an added sub-shell.
7831
7832 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7833
7834         git-version-gen: use (...) rather than sh -c '...'
7835         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7836         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7837
7838 2011-01-03  Jim Meyering  <meyering@redhat.com>
7839
7840         git-version-gen: convert leading TABs to spaces
7841         * build-aux/git-version-gen: Expand leading TABs.
7842
7843         git-version-gen: handle failed "git rev-list"
7844         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7845         from git and proceeding as if it had succeeded but printed no SHA1
7846         checksums, suppress the diagnostic and handle the failure.
7847         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7848
7849         git-version-gen: include command name in one more diagnostic
7850         * build-aux/git-version-gen: When the required .tarball-version file
7851         was missing or unreadable, you might see the diagnostic from "cat",
7852         but no trace of the name of the invoking script.  Now, you still see
7853         the diagnostic from cat, but also get one from "git-version-gen: ".
7854         Inspired by a patch from Bruce Korb.
7855
7856         update-copyright: adjust test to match changed code
7857         * tests/test-update-copyright.sh: Change test's expected output
7858         to match new actual output.
7859
7860 2011-01-02  Bruno Haible  <bruno@clisp.org>
7861
7862         getlogin_r: Avoid test failure on HP-UX 11.
7863         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7864         ERANGE when the second argument is zero.
7865         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7866         portability problem.
7867
7868 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7869
7870         * build-aux/update-copyright: doc Simon's changes
7871
7872 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7873
7874         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7875         environment variable.
7876
7877 2011-01-02  Bruno Haible  <bruno@clisp.org>
7878
7879         unigbrk: Avoid gcc warnings.
7880         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7881         unused variable.
7882         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7883         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7884         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7885         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7886         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7887         Change type of first argument to 'const char *'.
7888         (main): Remove unused variable.
7889         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7890         type of first argument to 'const char *'.
7891         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7892         Likewise.
7893         (main): Change type of variable 's'.
7894         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7895         to 'int'.
7896
7897 2011-01-02  Bruno Haible  <bruno@clisp.org>
7898
7899         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7900         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7901         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7902         bug.
7903         * lib/pwrite.c: Undo 2010-12-31 patch.
7904         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7905
7906 2011-01-02  Bruno Haible  <bruno@clisp.org>
7907
7908         pread: Fix test whether it works.
7909         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7910
7911 2011-01-02  Bruno Haible  <bruno@clisp.org>
7912
7913         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7914         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7915         ends in "6". Don't require a specific month name. Try also the locale
7916         names found on HP-UX 11 and Solaris 7.
7917
7918 2011-01-02  Bruno Haible  <bruno@clisp.org>
7919
7920         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7921         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7922         C linkage.
7923         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7924
7925 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7926
7927         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7928         for consistency, since the "cluster" term is not used elsewhere.
7929         * lib/unigbrk.in.h: Update name.
7930         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7931         * lib/unigbrk/u16-grapheme-next.c: Update name.
7932         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7933         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7934         * lib/unigbrk/u32-grapheme-next.c: Update name.
7935         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7936         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7937         * lib/unigbrk/u8-grapheme-next.c: Update name.
7938         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7939         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7940         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7941         Suggested by Bruno Haible.
7942
7943 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7944
7945         Remove module 'u8-grapheme-len' as too redundant with
7946         'u8-grapheme-next'.
7947         * modules/unigbrk/u8-grapheme-len: Delete file.
7948         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7949         * lib/unigbrk.in.h: Remove prototype for deleted function.
7950         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7951         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7952
7953         Remove module 'u16-grapheme-len' as too redundant with
7954         'u16-grapheme-next'.
7955         * modules/unigbrk/u16-grapheme-len: Delete file.
7956         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7957         * lib/unigbrk.in.h: Remove prototype for deleted function.
7958         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7959         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7960
7961         Remove module 'u32-grapheme-len' as too redundant with
7962         'u32-grapheme-next'.
7963         * modules/unigbrk/u32-grapheme-len: Delete file.
7964         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7965         * lib/unigbrk.in.h: Remove prototype for deleted function.
7966         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7967         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7968
7969         Suggested by Bruno Haible.
7970
7971 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7972
7973         * unigbrk.in.h: Fix typo: "ben" => "been".
7974         Reported by Bruno Haible.
7975
7976 2011-01-01  Jim Meyering  <meyering@redhat.com>
7977
7978         maint: update almost all copyright ranges to include 2011
7979         Run the new "make update-copyright" rule.
7980
7981 2011-01-01  Jim Meyering  <meyering@redhat.com>
7982
7983         maint: update-copyright: exempt doc/INSTALL*
7984         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7985         since they are generated.  Suggested by Bruno Haible.
7986
7987 2011-01-01  Jim Meyering  <meyering@redhat.com>
7988
7989         maint: refine the update-copyright rule
7990         * Makefile (update-copyright): Also exclude any file that includes
7991         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7992         code that merely generates the comment.
7993
7994 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7995
7996         New module 'u8-grapheme-len'.
7997         * modules/unigbrk/u8-grapheme-len: New file.
7998         * modules/unigbrk/u8-grapheme-len-tests: New file.
7999         * lib/unigbrk.in.h: Add prototype for new function.
8000         * lib/unigbrk/u8-grapheme-len.c: New file.
8001         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8002
8003         New module 'u16-grapheme-len'.
8004         * modules/unigbrk/u16-grapheme-len: New file.
8005         * modules/unigbrk/u16-grapheme-len-tests: New file.
8006         * lib/unigbrk.in.h: Add prototype for new function.
8007         * lib/unigbrk/u16-grapheme-len.c: New file.
8008         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8009
8010         New module 'u32-grapheme-len'.
8011         * modules/unigbrk/u32-grapheme-len: New file.
8012         * modules/unigbrk/u32-grapheme-len-tests: New file.
8013         * lib/unigbrk.in.h: Add prototype for new function.
8014         * lib/unigbrk/u32-grapheme-len.c: New file.
8015         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8016
8017         New module 'u8-grapheme-next'.
8018         * modules/unigbrk/u8-grapheme-next: New file.
8019         * modules/unigbrk/u8-grapheme-next-tests: New file.
8020         * lib/unigbrk.in.h: Add prototype for new function.
8021         * lib/unigbrk/u8-grapheme-next.c: New file.
8022         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8023
8024         New module 'u16-grapheme-next'.
8025         * modules/unigbrk/u16-grapheme-next: New file.
8026         * modules/unigbrk/u16-grapheme-next-tests: New file.
8027         * lib/unigbrk.in.h: Add prototype for new function.
8028         * lib/unigbrk/u16-grapheme-next.c: New file.
8029         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8030
8031         New module 'u32-grapheme-next'.
8032         * modules/unigbrk/u32-grapheme-next: New file.
8033         * modules/unigbrk/u32-grapheme-next-tests: New file.
8034         * lib/unigbrk.in.h: Add prototype for new function.
8035         * lib/unigbrk/u32-grapheme-next.c: New file.
8036         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8037
8038         New module 'u8-grapheme-prev'.
8039         * modules/unigbrk/u8-grapheme-prev: New file.
8040         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8041         * lib/unigbrk.in.h: Add prototype for new function.
8042         * lib/unigbrk/u8-grapheme-prev.c: New file.
8043         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8044
8045         New module 'u16-grapheme-prev'.
8046         * modules/unigbrk/u16-grapheme-prev: New file.
8047         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8048         * lib/unigbrk.in.h: Add prototype for new function.
8049         * lib/unigbrk/u16-grapheme-prev.c: New file.
8050         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8051
8052         New module 'u32-grapheme-prev'.
8053         * modules/unigbrk/u32-grapheme-prev: New file.
8054         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8055         * lib/unigbrk.in.h: Add prototype for new function.
8056         * lib/unigbrk/u32-grapheme-prev.c: New file.
8057         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8058
8059         New module 'u8-grapheme-breaks'.
8060         * modules/unigbrk/u8-grapheme-breaks: New file.
8061         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8062         * lib/unigbrk.in.h: Add prototype for new function.
8063         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8064         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8065
8066         New module 'u16-grapheme-breaks'.
8067         * modules/unigbrk/u16-grapheme-breaks: New file.
8068         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8069         * lib/unigbrk.in.h: Add prototype for new function.
8070         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8071         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8072
8073         New module 'u32-grapheme-breaks'.
8074         * modules/unigbrk/u32-grapheme-breaks: New file.
8075         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8076         * lib/unigbrk.in.h: Add prototype for new function.
8077         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8078         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8079
8080         New module 'ulc-grapheme-breaks'.
8081         * modules/unigbrk/ulc-grapheme-breaks: New file.
8082         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8083         * m4/locale-ar.m4: New file.
8084         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8085         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8086         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8087
8088 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8089
8090         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8091         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8092         modified how this file was generated before I initially submitted
8093         the module, but failed to regenerate it.  This meant that several
8094         of the level2 entries were wrong.
8095         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8096         Remove the division-by-2 that is folded into the table now that
8097         gbrkprop.h has been regenerated properly.  Now -1 entries are
8098         handled correctly.
8099
8100         New module 'unigbrk/uc-gbrk-prop-tests'.
8101         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8102         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8103         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8104         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8105
8106 2011-01-01  Bruno Haible  <bruno@clisp.org>
8107
8108         Avoid use of hexadecimal escapes.
8109         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8110         instead of hexadecimal escapes.
8111
8112 2011-01-01  Jim Meyering  <meyering@redhat.com>
8113
8114         maint: new rule to update copyright year ranges
8115         * Makefile (update-copyright): New rule.
8116
8117         maint: indent with TABs in Makefile
8118         * Makefile: Expand leading sequences of spaces to TABs
8119
8120         version-etc: update the copyright year it reports
8121         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8122
8123 2010-12-31  Bruno Haible  <bruno@clisp.org>
8124
8125         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8126         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8127         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8128         zero.
8129
8130 2010-12-31  Bruno Haible  <bruno@clisp.org>
8131
8132         pwrite: Work around HP-UX 11.11 bug.
8133         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8134         works and set REPLACE_PWRITE if not.
8135         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8136         function.
8137         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8138
8139 2010-12-31  Bruno Haible  <bruno@clisp.org>
8140
8141         pread: Work around HP-UX 11 bugs.
8142         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8143         and set REPLACE_PREAD if not.
8144         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8145
8146 2010-12-31  Eric Blake  <eblake@redhat.com>
8147
8148         nl_langinfo: fix YESEXPR on Irix 6.5
8149         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8150         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8151         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8152         it.
8153
8154 2010-12-31  Bruno Haible  <bruno@clisp.org>
8155
8156         iconv: Document HP-UX 11 bug.
8157         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8158
8159 2010-12-31  Bruno Haible  <bruno@clisp.org>
8160
8161         ldexpl: Fix link error on HP-UX 11.
8162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8163         LDEXPL_LIBM, using $ISNANL_LIBM.
8164
8165 2010-12-31  Eric Blake  <eblake@redhat.com>
8166
8167         ftello: avoid compilation failure with SunStudio c89
8168         * lib/ftello.c (ftello): Use lseek, not llseek.
8169
8170         tests: avoid failing coreutils tests on cygwin
8171         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8172         (create_exe_shims_): Return 0 when skipping.
8173
8174 2010-12-31  Bruno Haible  <bruno@clisp.org>
8175
8176         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8177         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8178
8179 2010-12-31  Bruno Haible  <bruno@clisp.org>
8180
8181         waitpid: Fix link error in C++ mode.
8182         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8183
8184 2010-12-31  Bruno Haible  <bruno@clisp.org>
8185
8186         isnan: Use GCC built-ins when possible.
8187         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8188         __builtin_isnan.
8189         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8190         (isnan): Define using GCC built-ins for GCC >= 4.0.
8191
8192 2010-12-31  Bruno Haible  <bruno@clisp.org>
8193
8194         isnand: Fix mistake.
8195         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8196         __builtin_isnand.
8197
8198 2010-12-31  Bruno Haible  <bruno@clisp.org>
8199
8200         open: Avoid C++ error on HP-UX 11.
8201         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8202
8203 2010-12-31  Bruno Haible  <bruno@clisp.org>
8204
8205         time_r: Add missing declarations on HP-UX 11.
8206         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8207         instead of HAVE_LOCALTIME_R.
8208         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8209         HAVE_LOCALTIME_R always.
8210         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8211         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8212         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8213         HAVE_LOCALTIME_R.
8214         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8215         * doc/posix-functions/localtime_r.texi: Likewise.
8216
8217 2010-12-29  Eric Blake  <eblake@redhat.com>
8218
8219         mountlist: tweak previous commit
8220         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8221         Reported by Paul Eggert.
8222
8223         mountlist: fix local drive detection on cygwin
8224         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8225         that works for cygwin.
8226
8227 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         ftoastr, snprintf: ftoastr + snprintf module
8230         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8231         since the snprintf module now should be good enough here.
8232         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8233         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8234         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8235         GNULIB_SNPRINTF only for the test directory, and the latter
8236         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8237         seems to suffice by itself.
8238
8239 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8240
8241         alloca: one step towards thread-safety
8242         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8243         need for a static variable.  All callers changed.  This does not
8244         make the alloca replacement thread-safe, but it's one step.
8245
8246         tests: minor indenting change
8247         * tests/init.sh: Sync from coreutils housekeeping patch
8248         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8249         to keep lines within 80 columns.
8250
8251 2010-12-28  Jim Meyering  <meyering@redhat.com>
8252
8253         regex: don't infloop on persistent failing calloc
8254         * lib/regexec.c (build_trtable): Return failure indication upon
8255         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8256         In glibc, this was fixed for version 2.13:
8257         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8258
8259 2010-12-28  Bruno Haible  <bruno@clisp.org>
8260             Paul Eggert <eggert@cs.ucla.edu>
8261
8262         linkat: Make implementation robust against system behaviour variations.
8263         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8264         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8265         way, and to -2 if it needs a generic runtime test.
8266         * lib/linkat.c (solaris_optimized_link_immediate,
8267         solaris_optimized_link_follow): New functions.
8268         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8269         (check_same_link): Use it.
8270
8271 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8272
8273         New module 'unigbrk/base'.
8274         * modules/unigbrk/base: New file.
8275         * lib/unigbrk.in.h: New file.
8276
8277         New module 'unigbrk/uc-gbrk-prop'.
8278         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8279         * modules/unigbrk/uc-gbrk-prop: New file.
8280         * lib/unigbrk/gbrkprop.h: New file.
8281         * lib/unigbrk/uc-gbrk-prop.c: New file.
8282
8283         New module 'unigbrk/uc-is-grapheme-break'.
8284         * modules/unigbrk/uc-is-grapheme-break: New file.
8285         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8286         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8287         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8288         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8289         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8290
8291         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8292
8293 2010-12-27  Bruno Haible  <bruno@clisp.org>
8294
8295         linkat test: Avoid failure on Solaris 11 2010-11.
8296         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8297
8298 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8299
8300         utimens: work around glibc rounding bug on more platforms
8301         * lib/utimens.c (fdutimens): Work around rounding bug even if
8302         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8303         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8304
8305 2010-12-27  Bruno Haible  <bruno@clisp.org>
8306
8307         select tests: Improve comments.
8308         * tests/test-select.c (do_select): Add comments.
8309
8310 2010-12-27  Bruno Haible  <bruno@clisp.org>
8311
8312         select tests: Safer way of handling timeout.
8313         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8314         at every invocation.
8315
8316 2010-12-27  Bruno Haible  <bruno@clisp.org>
8317
8318         select tests: Use 'bool' where appropriate.
8319         * tests/test-select.c (connect_to_socket): Change argument type to
8320         'bool'.
8321
8322 2010-12-27  Bruno Haible  <bruno@clisp.org>
8323
8324         select tests: Use existing modules.
8325         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8326         (configure.ac): Don't test for unistd.h.
8327         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8328         declared in <unistd.h>.
8329
8330 2010-12-27  Bruno Haible  <bruno@clisp.org>
8331
8332         mbrtowc: Work around a Solaris 7 bug.
8333         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8334         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8335         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8336         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8337         MBRTOWC_NULL_ARG1_BUG.
8338         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8339         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8340         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8341         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8342
8343 2010-12-27  Jim Meyering  <meyering@redhat.com>
8344
8345         read-file.c: tweak syntax
8346         * lib/read-file.c (fread_file): Remove space after "*" in function
8347         definitions.
8348
8349 2010-12-27  Bruno Haible  <bruno@clisp.org>
8350
8351         times test: Avoid gcc warnings on OSF/1.
8352         * tests/test-times.c (main): Cast printf arguments from clock_t to
8353         'long int'.
8354
8355 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8356
8357         utimens: work around glibc rounding bug on older Linux kernels
8358         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8359         on Linux with a glibc whose utimes might not work, then work
8360         around a longstanding glibc bug involving rounding rather than
8361         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8362         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8363
8364 2010-12-26  Bruno Haible  <bruno@clisp.org>
8365
8366         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8367         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8368         _GL_CXXALIAS_SYS.
8369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8370
8371 2010-12-26  Bruno Haible  <bruno@clisp.org>
8372
8373         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8374         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8375         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8376         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8377         looking for the declaration.
8378         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8379         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8380         problem.
8381         * doc/posix-functions/inet_pton.texi: Likewise.
8382
8383 2010-12-26  Bruno Haible  <bruno@clisp.org>
8384
8385         arpa_inet: Use the common idioms with C++ support.
8386         * lib/arpa_inet.in.h: Include c++defs.h.
8387         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8388         support.
8389         * modules/arpa_inet (Depends-on): Add c++defs.
8390         (Makefile.am): Substitute the contents of c++defs.h.
8391         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8392         * modules/arpa_inet-c++-tests: New file.
8393         * tests/test-arpa_inet-c++.cc: New file.
8394
8395 2010-12-25  Bruno Haible  <bruno@clisp.org>
8396
8397         Fix more C++ link errors on Solaris 8.
8398         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8399         $(LIB_EACCESS).
8400         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8401         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8402         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8403         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8404         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8405
8406 2010-12-25  Bruno Haible  <bruno@clisp.org>
8407
8408         printf-posix: Fix link error when a non-GCC compiler is used.
8409         * lib/stdio.in.h (printf): When not using GCC, override printf
8410         correctly.
8411         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8412
8413 2010-12-25  Bruno Haible  <bruno@clisp.org>
8414
8415         strerror_r-posix: Update doc.
8416         * doc/posix-functions/strerror_r.texi: Update doc about the return
8417         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8418
8419 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8420
8421         utimens: simplify the logic of the previous change
8422         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8423         This should not affect whether the test succeeds or fails.
8424
8425         utimens: configure better on hosts with NFS clock skew
8426         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8427         uses the clock of the local host.  It might use the clock of the
8428         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8430
8431 2010-12-25  Bruno Haible  <bruno@clisp.org>
8432
8433         ptsname test: Avoid failure on Solaris.
8434         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8435         open a pseudo-terminal; don't use BSD-style ptys.
8436         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8437
8438 2010-12-25  Bruno Haible  <bruno@clisp.org>
8439
8440         ptsname: Avoid ERANGE failure on some systems.
8441         * lib/ptsname.c (buffer): Increase size.
8442
8443 2010-12-25  Bruno Haible  <bruno@clisp.org>
8444
8445         rename, renameat: Avoid test failures at NFS mounted locations.
8446         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8447         so that subsequent mkdir calls succeed.
8448
8449 2010-12-25  Bruno Haible  <bruno@clisp.org>
8450
8451         iswblank: Fix C++ link error on Solaris 8.
8452         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8453         _GL_FUNCDECL_SYS.
8454
8455 2010-12-25  Bruno Haible  <bruno@clisp.org>
8456
8457         unistd: Fix C++ link error on Solaris 8.
8458         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8459
8460 2010-12-25  Bruno Haible  <bruno@clisp.org>
8461
8462         readlink doc: Mention an old glibc bug.
8463         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8464
8465 2010-12-25  Bruno Haible  <bruno@clisp.org>
8466
8467         fcntl-h: Fix for use of C++ on glibc systems.
8468         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8469         also on glibc systems in C++ mode.
8470         Reported by Gary V. Vaughan <gary@gnu.org>.
8471
8472 2010-12-25  Bruno Haible  <bruno@clisp.org>
8473
8474         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8475         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8476
8477 2010-12-25  Bruno Haible  <bruno@clisp.org>
8478
8479         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8480         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8481         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8482         test whether truncl works according to ISO C 99 with IEC 60559.
8483         * m4/truncl-ieee.m4: New file.
8484         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8485         m4/signbit.m4.
8486         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8487
8488 2010-12-25  Bruno Haible  <bruno@clisp.org>
8489
8490         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8491         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8492         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8493         test whether ceill works according to ISO C 99 with IEC 60559.
8494         * m4/ceill-ieee.m4: New file.
8495         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8496         m4/signbit.m4.
8497         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8498
8499 2010-12-25  Bruno Haible  <bruno@clisp.org>
8500
8501         Ensure all prerequisites of <wchar.h> are included.
8502         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8503         before <wchar.h>.
8504         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8505         gl_MBRLEN_NUL_RETVAL): Likewise.
8506         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8507         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8508         AC_FUNC_MBRTOWC): Likewise.
8509         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8510         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8511         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8512         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8513         Likewise.
8514         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8515         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8516         (gl_WCHAR_H): Improve comments.
8517         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8518
8519 2010-12-25  Bruno Haible  <bruno@clisp.org>
8520
8521         strtok_r: Fix C syntax error in autoconf macro.
8522         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8523         characters in test program.
8524
8525 2010-12-24  Bruno Haible  <bruno@clisp.org>
8526
8527         ceil, trunc, round: Fix gcc warnings.
8528         * lib/ceil.c (MIN): Undefine before redefining.
8529         * lib/trunc.c (MIN): Likewise.
8530         * lib/round.c (MIN): Likewise.
8531         Include <math.h> first.
8532
8533 2010-12-24  Bruno Haible  <bruno@clisp.org>
8534
8535         select tests: Avoid failures on OSF/1 5.1.
8536         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8537         failure of closing the last socket; it may fail with ECONNRESET.
8538
8539 2010-12-24  Eric Blake  <eblake@redhat.com>
8540
8541         stdint: avoid HP-UX 10.20 preprocessor bug
8542         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8543         than #if.
8544         * tests/test-floor2.c (main): Likewise.
8545         Reported by Peter O'Gorman.
8546
8547         pipe: make obsoletion transition easier
8548         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8549         * modules/pipe (Files): Include revived file.
8550         (Include): Drop reference, to mirror getdate's behavior.
8551
8552 2010-12-24  Bruno Haible  <bruno@clisp.org>
8553
8554         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8555         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8556         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8557         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8558
8559 2010-12-24  Bruno Haible  <bruno@clisp.org>
8560
8561         gethostname: Ensure declaration on NonStop Kernel.
8562         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8563         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8564
8565 2010-12-24  Bruno Haible  <bruno@clisp.org>
8566
8567         sys_select: Ensure all necessary types on NonStop Kernel.
8568         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8569         include <sys/time.h>.
8570         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8571         NonStop Kernel.
8572         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8573
8574 2010-12-24  Bruno Haible  <bruno@clisp.org>
8575
8576         sys_select: Remove unneeded include.
8577         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8578         have <sys/select.h>.
8579
8580 2010-12-24  Bruno Haible  <bruno@clisp.org>
8581
8582         gethostname: Provide a fallback for HOST_NAME_MAX.
8583         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8584         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8585         instead.
8586         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8587
8588 2010-12-24  Bruno Haible  <bruno@clisp.org>
8589
8590         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8591         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8592         (SA_RESTART): Likewise.
8593         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8594
8595 2010-12-24  Bruno Haible  <bruno@clisp.org>
8596
8597         signal: Define NSIG.
8598         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8599         * tests/test-signal.c (nsig): New variable.
8600         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8601
8602 2010-12-24  Bruno Haible  <bruno@clisp.org>
8603
8604         rename, renameat: Avoid test failures on OSF/1 5.1.
8605         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8606         alternative error codes.
8607         * tests/test-renameat.c (main): Likewise.
8608
8609 2010-12-24  Bruno Haible  <bruno@clisp.org>
8610
8611         *printf: Detect large precisions bug on Solaris 10/SPARC.
8612         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8613         by Paul Eggert.
8614         * tests/test-snprintf-posix.h (test_function): Add this test code here
8615         too.
8616         * tests/test-sprintf-posix.h (test_function): Likewise.
8617         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8618         * tests/test-vasprintf-posix.c (test_function): Likewise.
8619         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8620         around by gnulib.
8621         * doc/posix-functions/printf.texi: Likewise.
8622         * doc/posix-functions/snprintf.texi: Likewise.
8623         * doc/posix-functions/sprintf.texi: Likewise.
8624         * doc/posix-functions/vfprintf.texi: Likewise.
8625         * doc/posix-functions/vprintf.texi: Likewise.
8626         * doc/posix-functions/vsnprintf.texi: Likewise.
8627         * doc/posix-functions/vsprintf.texi: Likewise.
8628         * doc/posix-functions/dprintf.texi: Undo last commit.
8629         * doc/posix-functions/vdprintf.texi: Likewise.
8630
8631 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8632
8633         tests: port test-fdutimensat.c to Solaris 8
8634         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8635         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8636         On Solaris 8, it fails with errno == ENOSYS, because there is no
8637         futimens (so it can't use the fd), and there is no lutimens (so it
8638         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8639
8640         vsnprintf: make more consistent with snprintf; doc fixes
8641
8642         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8643         the byte count return problem was promoted from the snprintf-posix
8644         to the snprintf module.
8645         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8646         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8647         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8648         * tests/test-snprintf.c (main): Check the byte count returned.
8649         * tests/test-vsnprintf.c (main): Likewise.
8650
8651 2010-12-23  Eric Blake  <eblake@redhat.com>
8652
8653         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8654         * modules/sigpipe (License): Relax license.
8655
8656 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8657
8658         doc: document Solaris printf bug with large float precisions
8659         * doc/posix-functions/dprintf.texi (dprintf):
8660         * doc/posix-functions/fprintf.texi (fprintf):
8661         * doc/posix-functions/printf.texi (printf):
8662         * doc/posix-functions/snprintf.texi (snprintf):
8663         * doc/posix-functions/sprintf.texi (sprintf):
8664         * doc/posix-functions/vdprintf.texi (vdprintf):
8665         * doc/posix-functions/vfprintf.texi (vfprintf):
8666         * doc/posix-functions/vprintf.texi (vprintf):
8667         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8668         * doc/posix-functions/vsprintf.texi (vsprintf):
8669         Mention that these functions mishandle large floating point
8670         precisions on Solaris 10.  The same bug is also present in Solaris
8671         8, and I assume earlier.  This causes "cd gnulib-tests; make
8672         check" to fail on Solaris 8 (and I assume, later) when building
8673         the latest coreutils, in test-vasprintf-posix's call to
8674         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8675         the wide flavors (e.g., wprintf) so this patch just updates the
8676         documentation for the narrow ones.
8677
8678         test-posixtm.c: add two tests
8679         * tests/test-posixtm.c: Add two tests, to highlight the
8680         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8681         around this bug; this is merely to document it.
8682
8683 2010-12-22  Bruno Haible  <bruno@clisp.org>
8684
8685         getlogin_r: Work around portability problem on OSF/1.
8686         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8687         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8688         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8689         test for a truncated result.
8690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8691         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8692         * modules/getlogin_r (Depends-on): Add memchr.
8693         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8694
8695 2010-12-22  Bruno Haible  <bruno@clisp.org>
8696
8697         ptsname: Avoid test failure on OSF/1 5.1.
8698         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8699         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8700         (same_slave): New function.
8701         (main): Use it to compare ptsname's result with the expected file name.
8702
8703 2010-12-22  Bruno Haible  <bruno@clisp.org>
8704
8705         Port extended stdio modules to HP NonStop Kernel.
8706         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8707         macros.
8708         * lib/fbufmode.c: Update comments.
8709         * lib/fflush.c: Likewise.
8710         * lib/fpurge.c: Likewise.
8711         * lib/freadable.c: Likewise.
8712         * lib/freadahead.c: Likewise.
8713         * lib/freading.c: Likewise.
8714         * lib/freadptr.c: Likewise.
8715         * lib/freadseek.c: Likewise.
8716         * lib/fseeko.c: Likewise.
8717         * lib/fseterr.c: Likewise.
8718         * lib/fwritable.c: Likewise.
8719         * lib/fwriting.c: Likewise.
8720         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8721
8722 2010-12-22  Bruno Haible  <bruno@clisp.org>
8723
8724         ttyname_r: Work around bug on OSF/1 5.1.
8725         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8726         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8727         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8728         present.
8729         * lib/ttyname_r.c (ttyname_r): Update comments.
8730
8731 2010-12-22  Bruno Haible  <bruno@clisp.org>
8732
8733         round: Implement result sign according to IEEE 754.
8734         * lib/round.c (MIN, MINUS_ZERO): New macros.
8735         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8736         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8737         * tests/test-round-ieee.c (main): Likewise.
8738         * tests/test-roundl-ieee.c (main): Likewise.
8739
8740         trunc: Implement result sign according to IEEE 754.
8741         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8742         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8743         * tests/test-trunc2.c: Include minus-zero.h.
8744         (MINUS_ZERO): New macro.
8745         (trunc_reference): Keep in sync with lib/trunc.c.
8746         * tests/test-truncf2.c: Include minus-zero.h.
8747         (MINUS_ZERO): New macro.
8748         (truncf_reference): Keep in sync with lib/trunc.c.
8749         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8750         * tests/test-trunc-ieee.c (main): Likewise.
8751         * tests/test-truncl-ieee.c (main): Likewise.
8752
8753         ceil: Implement result sign according to IEEE 754.
8754         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8755         (FUNC): Return -0.0 for -1 < x < 0.
8756         * tests/test-ceil2.c: Include minus-zero.h.
8757         (MINUS_ZERO): New macro.
8758         (ceil_reference): Keep in sync with lib/ceil.c.
8759         * tests/test-ceilf2.c: Include minus-zero.h.
8760         (MINUS_ZERO): New macro.
8761         (ceilf_reference): Keep in sync with lib/ceil.c.
8762         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8763         * tests/test-ceil-ieee.c (main): Likewise.
8764         * tests/test-ceill-ieee.c (main): Likewise.
8765
8766         floor: Implement result sign according to IEEE 754.
8767         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8768         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8769         * tests/test-floorf2.c (floorf_reference): Likewise.
8770         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8771         * tests/test-floor-ieee.c (main): Likewise.
8772         * tests/test-floorl-ieee.c (main): Likewise.
8773
8774 2010-12-22  Bruno Haible  <bruno@clisp.org>
8775
8776         getaddrinfo: Update doc.
8777         * doc/posix-functions/gai_strerror.texi: Return type is also different
8778         on AIX and HP-UX.
8779
8780 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8781
8782         getaddrinfo, inet_ntop: Update doc for Solaris.
8783         * doc/posix-functions/gai_strerror.texi: Return type is also an
8784         issue on Solaris 9 and earlier.
8785         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8786         on Solaris 10 and earlier.
8787
8788 2010-12-21  Bruno Haible  <bruno@clisp.org>
8789
8790         New module 'roundl-ieee'.
8791         * modules/roundl-ieee: New file.
8792         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8793         test whether roundl works according to ISO C 99 with IEC 60559.
8794         * m4/roundl-ieee.m4: New file.
8795         * modules/roundl-ieee-tests: New file.
8796         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8797         * tests/test-roundl.c (main): Remove signbit tests.
8798         * modules/roundl-tests (Depends-on): Remove signbit.
8799         * doc/posix-functions/roundl.texi: Mention the new module.
8800
8801 2010-12-21  Bruno Haible  <bruno@clisp.org>
8802
8803         New module 'truncl-ieee'.
8804         * modules/truncl-ieee: New file.
8805         * modules/truncl-ieee-tests: New file.
8806         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8807         * tests/test-truncl.c (main): Remove signbit tests.
8808         * modules/truncl-tests (Depends-on): Remove signbit.
8809         * doc/posix-functions/truncl.texi: Mention the new module.
8810
8811 2010-12-21  Bruno Haible  <bruno@clisp.org>
8812
8813         New module 'ceill-ieee'.
8814         * modules/ceill-ieee: New file.
8815         * modules/ceill-ieee-tests: New file.
8816         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8817         * tests/test-ceill.c (main): Remove signbit tests.
8818         * modules/ceill-tests (Depends-on): Remove signbit.
8819         * doc/posix-functions/ceill.texi: Mention the new module.
8820
8821 2010-12-21  Bruno Haible  <bruno@clisp.org>
8822
8823         New module 'floorl-ieee'.
8824         * modules/floorl-ieee: New file.
8825         * modules/floorl-ieee-tests: New file.
8826         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8827         * tests/test-floorl.c (main): Remove signbit tests.
8828         * modules/floorl-tests (Depends-on): Remove signbit.
8829         * doc/posix-functions/floorl.texi: Mention the new module.
8830
8831 2010-12-21  Bruno Haible  <bruno@clisp.org>
8832
8833         New module 'round-ieee'.
8834         * modules/round-ieee: New file.
8835         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8836         whether round works according to ISO C 99 with IEC 60559.
8837         * m4/round-ieee.m4: New file.
8838         * modules/round-ieee-tests: New file.
8839         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8840         * tests/test-round1.c (main): Remove signbit tests.
8841         * modules/round-tests (Depends-on): Remove 'signbit'.
8842         * doc/posix-functions/round.texi: Mention the new module.
8843
8844 2010-12-21  Bruno Haible  <bruno@clisp.org>
8845
8846         New module 'trunc-ieee'.
8847         * modules/trunc-ieee: New file.
8848         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8849         whether trunc works according to ISO C 99 with IEC 60559.
8850         * m4/trunc-ieee.m4: New file.
8851         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8853         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8854         * modules/trunc-ieee-tests: New file.
8855         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8856         * tests/test-trunc1.c (main): Remove signbit tests.
8857         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8858         * doc/posix-functions/trunc.texi: Mention the new module.
8859
8860 2010-12-21  Bruno Haible  <bruno@clisp.org>
8861
8862         New module 'ceil-ieee'.
8863         * modules/ceil-ieee: New file.
8864         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8865         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8866         ISO C 99 with IEC 60559.
8867         * m4/ceil-ieee.m4: New file.
8868         * modules/ceil (Files): Add lib/ceil.c.
8869         (Depends-on): Add 'float'.
8870         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8871         * lib/math.in.h (ceil): New declaration.
8872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8873         REPLACE_CEIL.
8874         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8875         * modules/ceil-ieee-tests: New file.
8876         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8877         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8878         * doc/posix-functions/ceil.texi: Mention the new module.
8879
8880 2010-12-21  Bruno Haible  <bruno@clisp.org>
8881
8882         New module 'floor-ieee'.
8883         * modules/floor-ieee: New file.
8884         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8885         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8886         ISO C 99 with IEC 60559.
8887         * m4/floor-ieee.m4: New file.
8888         * modules/floor (Files): Add lib/floor.c.
8889         (Depends-on): Add 'float'.
8890         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8891         * lib/math.in.h (floor): New declaration.
8892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8893         REPLACE_FLOOR.
8894         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8895         * modules/floor-ieee-tests: New file.
8896         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8897         * tests/test-math-c++.cc: Check the signature of 'floor'.
8898         * doc/posix-functions/floor.texi: Mention the new module.
8899
8900 2010-12-21  Bruno Haible  <bruno@clisp.org>
8901
8902         New module 'roundf-ieee'.
8903         * modules/roundf-ieee: New file.
8904         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8905         test whether roundf works according to ISO C 99 with IEC 60559.
8906         * m4/roundf-ieee.m4: New file.
8907         * modules/roundf-ieee-tests: New file.
8908         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8909         * tests/test-roundf1.c (main): Remove signbit tests.
8910         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8911         * doc/posix-functions/roundf.texi: Mention the new module.
8912
8913 2010-12-21  Bruno Haible  <bruno@clisp.org>
8914
8915         New module 'truncf-ieee'.
8916         * modules/truncf-ieee: New file.
8917         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8918         test whether truncf works according to ISO C 99 with IEC 60559.
8919         * m4/truncf-ieee.m4: New file.
8920         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8922         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8923         * modules/truncf-ieee-tests: New file.
8924         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8925         * tests/test-truncf1.c (main): Remove signbit tests.
8926         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8927         * doc/posix-functions/truncf.texi: Mention the new module.
8928
8929 2010-12-21  Bruno Haible  <bruno@clisp.org>
8930
8931         New module 'ceilf-ieee'.
8932         * modules/ceilf-ieee: New file.
8933         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8934         test whether ceilf works according to ISO C 99 with IEC 60559.
8935         * m4/ceilf-ieee.m4: New file.
8936         * modules/ceilf-ieee-tests: New file.
8937         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8938         * tests/test-ceilf1.c (main): Remove signbit tests.
8939         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8940         * doc/posix-functions/ceilf.texi: Mention the new module.
8941
8942 2010-12-21  Bruno Haible  <bruno@clisp.org>
8943
8944         New module 'floorf-ieee'.
8945         * modules/floorf-ieee: New file.
8946         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8947         test whether floorf works according to ISO C 99 with IEC 60559.
8948         * m4/floorf-ieee.m4: New file.
8949         * modules/floorf-ieee-tests: New file.
8950         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8951         * tests/test-floorf1.c (main): Remove signbit tests.
8952         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8953         * doc/posix-functions/floorf.texi: Mention the new module.
8954
8955 2010-12-21  Bruno Haible  <bruno@clisp.org>
8956
8957         Support for minus zero in autoconf macros.
8958         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8959         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8960         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8961         * tests/minus-zero.h: Update comments.
8962
8963 2010-12-21  Bruno Haible  <bruno@clisp.org>
8964
8965         Tests for module 'ceil'.
8966         * modules/ceil-tests: New file.
8967         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8968         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8969
8970 2010-12-21  Bruno Haible  <bruno@clisp.org>
8971
8972         Tests for module 'floor'.
8973         * modules/floor-tests: New file.
8974         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8975         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8976
8977 2010-12-21  Bruno Haible  <bruno@clisp.org>
8978
8979         math: Fix indentation.
8980         * lib/math.in.h (floorf): Fix indentation.
8981
8982 2010-12-21  Bruno Haible  <bruno@clisp.org>
8983
8984         Fix cross-compilation guesses on Solaris.
8985         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8986         not match "solaris2.10".
8987         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8988         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8989         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8990
8991 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8992
8993         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8994         This fixes a problem observed with the latest coreutils snapshot
8995         that caused a test to fail on Solaris 8.  src/csplit.c's call
8996         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8997         earlier, instead of returning the number of bytes that would have
8998         been generated; this causes csplit to incorrectly report memory
8999         exhaustion.
9000         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9001         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9002         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9003         comments to match.
9004         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9005         Fix typo in matching older versions of Solaris: "solaris2.10"
9006         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9007         only for guessing while cross-compiling.
9008         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9009
9010 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9011
9012         ftoastr: fix comment again
9013         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9015         Also, simplify example a bit by using flags = 0.
9016
9017 2010-12-20  Bruno Haible  <bruno@clisp.org>
9018
9019         round*, trunc*: Update documentation regarding glibc.
9020         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9021         * doc/posix-functions/round.texi: Likewise.
9022         * doc/posix-functions/roundl.texi: Likewise.
9023         * doc/posix-functions/truncf.texi: Likewise.
9024         * doc/posix-functions/trunc.texi: Likewise.
9025         * doc/posix-functions/truncl.texi: Likewise.
9026
9027 2010-12-20  Bruno Haible  <bruno@clisp.org>
9028
9029         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9030         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9031         * doc/posix-functions/round.texi: Likewise.
9032         * doc/posix-functions/roundl.texi: Likewise.
9033
9034 2010-12-20  Bruno Haible  <bruno@clisp.org>
9035
9036         ttyname_r: Add missing declaration on HP-UX 11.
9037         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9038         HAVE_TTYNAME_R.
9039         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9040         declared. Set HAVE_TTYNAME_R always.
9041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9042         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9043         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9044         HAVE_TTYNAME_R.
9045         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9046
9047 2010-12-20  Bruno Haible  <bruno@clisp.org>
9048
9049         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9050         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9051         * doc/posix-functions/getlogin_r.texi: Likewise.
9052         * tests/test-getlogin.c: Include <errno.h>.
9053         (main): Avoid test failure on HP-UX 11.11.
9054         * tests/test-getlogin_r.c (main): Likewise.
9055
9056 2010-12-20  Bruno Haible  <bruno@clisp.org>
9057
9058         getlogin_r: Add missing declaration on HP-UX 11.
9059         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9060         declared also when it exists as a function.
9061         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9062
9063 2010-12-20  Bruno Haible  <bruno@clisp.org>
9064
9065         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9066         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9067         through wcrtomb.
9068
9069 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9070
9071         ftoastr: fix comment
9072         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9073         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9074
9075 2010-12-19  Bruno Haible  <bruno@clisp.org>
9076
9077         isnan: Ensure it is a macro.
9078         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9079         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9080         Solaris.
9081
9082 2010-12-19  Bruno Haible  <bruno@clisp.org>
9083
9084         ldexpl test: Fix link error on OSF/1 5.1.
9085         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9086
9087 2010-12-19  Bruno Haible  <bruno@clisp.org>
9088
9089         wctype: Make it work in C++ mode on OSF/1 5.1.
9090         * lib/wctype.in.h (iswblank): Declare but not define here.
9091         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9092         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9093         * modules/wctype (Files): Add lib/iswblank.c.
9094
9095 2010-12-19  Bruno Haible  <bruno@clisp.org>
9096
9097         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9098         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9099         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9100
9101 2010-12-19  Bruno Haible  <bruno@clisp.org>
9102
9103         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9104         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9105         _POSIX_PII_SOCKET.
9106         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9107         * doc/posix-functions/recvfrom.texi: Likewise.
9108         * doc/posix-functions/send.texi: Likewise.
9109         * doc/posix-functions/sendto.texi: Likewise.
9110
9111 2010-12-19  Bruno Haible  <bruno@clisp.org>
9112
9113         tcgetsid: Add missing declaration on OSF/1 5.1.
9114         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9115         HAVE_TCGETSID.
9116         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9117         Don't set HAVE_TCGETSID.
9118         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9119         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9120         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9121         HAVE_TCGETSID.
9122         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9123
9124 2010-12-19  Bruno Haible  <bruno@clisp.org>
9125
9126         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9127         * lib/stdio.in.h: During the include_next statement, let recursive
9128         includes of this file include only the system header file.
9129
9130 2010-12-19  Bruno Haible  <bruno@clisp.org>
9131
9132         iconv_open: Fix regression from 2010-12-04.
9133         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9134         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9135
9136 2010-12-19  Bruno Haible  <bruno@clisp.org>
9137
9138         stdbool test: Avoid a gcc warning.
9139         * tests/test-stdbool.c (main): Fail if e1 is false.
9140         Reported by Jim Meyering.
9141
9142 2010-12-19  Jim Meyering  <meyering@redhat.com>
9143
9144         setenv: restore to working order
9145         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9146         mistakenly removed.
9147         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9148         HAVE_SETENV.
9149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9150         HAVE_SETENV.
9151
9152 2010-12-19  Bruno Haible  <bruno@clisp.org>
9153
9154         Document some different function declarations on OSF/1 5.1.
9155         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9156         * doc/posix-functions/inet_ntop.texi: Likewise.
9157         * doc/posix-functions/gethostname.texi: Likewise.
9158         * lib/unistd.in.h (gethostname): Update comment.
9159
9160 2010-12-19  Bruno Haible  <bruno@clisp.org>
9161
9162         doc: Mention vasprintf-posix module.
9163         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9164         the 'vasprintf-posix' module.
9165         * doc/glibc-functions/vasprintf.texi: Likewise.
9166
9167 2010-12-19  Bruno Haible  <bruno@clisp.org>
9168
9169         unsetenv: Add missing declaration on OSF/1 5.1.
9170         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9171         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9172         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9174         not HAVE_UNSETENV.
9175         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9176         HAVE_UNSETENV.
9177         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9178
9179 2010-12-19  Bruno Haible  <bruno@clisp.org>
9180
9181         setenv: Add missing declaration on OSF/1 5.1.
9182         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9184         declared. Don't set HAVE_SETENV.
9185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9186         not HAVE_SETENV.
9187         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9188         HAVE_SETENV.
9189         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9190
9191 2010-12-19  Bruno Haible  <bruno@clisp.org>
9192
9193         nl_langinfo tests: Avoid gcc warning.
9194         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9195
9196 2010-12-19  Bruno Haible  <bruno@clisp.org>
9197
9198         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9199         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9200         _GL_CXXALIAS_SYS.
9201
9202 2010-12-19  Bruno Haible  <bruno@clisp.org>
9203
9204         stdbool: Relax test.
9205         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9206         address to 'bool' work in static initializer, for compilers other than
9207         GCC.
9208
9209 2010-12-19  Bruno Haible  <bruno@clisp.org>
9210
9211         ftello: Add missing declaration on OSF/1 5.1.
9212         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9213         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9215         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9216         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9217
9218 2010-12-19  Bruno Haible  <bruno@clisp.org>
9219
9220         fseeko: Add missing declaration on OSF/1 5.1.
9221         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9222         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9224         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9225         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9226
9227 2010-12-19  Bruno Haible  <bruno@clisp.org>
9228
9229         fchdir: Add missing declaration on OSF/1 5.1.
9230         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9233         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9234         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9235
9236 2010-12-19  Bruno Haible  <bruno@clisp.org>
9237
9238         relocatable-prog-wrapper: Separate from relocatable-prog.
9239         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9240         uninstall-relocwrapper rule here.
9241         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9242         Reported by Ian Beckwith <ianb@erislabs.net>.
9243
9244 2010-12-19  Bruno Haible  <bruno@clisp.org>
9245
9246         unistr/u8-mbsnlen: Add missing dependency.
9247         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9248         Reported by Ian Beckwith <ianb@erislabs.net>.
9249
9250 2010-12-19  Bruno Haible  <bruno@clisp.org>
9251
9252         iconv: Make it possible again to use this module without 'iconv-h'.
9253         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9254         if it is not defined.
9255         Reported by Ian Beckwith <ianb@erislabs.net>.
9256
9257 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9258
9259         acl: port to Solaris 8 when copying from tmpfs to ufs
9260         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9261         error number.  Problem observed on Solaris 8 with latest
9262         coreutils, with "mv A B", where A is on a tmpfs file system and B
9263         is on a ufs file system.  This caused coreutils' mv/part-symlink
9264         test to fail.
9265
9266         tests: set fail=0 at start
9267         * tests/init.sh (setup_): Move fail=0 initialization here ...
9268         (mktempd_): ... from here, so that tests can rely on fail being
9269         set to 0 initially.  This fixes a problem in coreutils; see:
9270         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9271
9272 2010-12-18  Bruno Haible  <bruno@clisp.org>
9273
9274         memmem-simple: Stylistic changes.
9275         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9276         Fix preprocessor directive indentation.
9277
9278 2010-12-15  Pádraig Brady <P@draigBrady.com>
9279
9280         memmem, memmem-simple: reorganize and expand empty needle check
9281         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9282         functional checks to memmem-simple so that one has a fully functional
9283         memmem by using just this module.
9284         Restrict the performance only check to the memmem module.
9285         Also expand the empty needle check to ensure the correct
9286         pointer is returned, not just a non NULL pointer.
9287         * doc/glibc-functions/memmem.texi: Rearrange the portability
9288         documentation to correlate with the rearranged checks.
9289         Clarify exactly how the memmem and memmem-simple modules
9290         relate to each other.
9291
9292 2010-12-15  Pádraig Brady <P@draigBrady.com>
9293             Bruno Haible  <bruno@clisp.org>
9294
9295         Improve cross-compilation guesses for uClibc.
9296         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9297         that uClibc does not have the glibc bug.
9298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9299         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9300
9301 2010-12-14  Eric Blake  <eblake@redhat.com>
9302
9303         configmake: provide fallbacks for oldest supported autotools
9304         * m4/configmake.m4: New file.
9305         * modules/configmake (Files): Ship it.
9306         (configure.ac): Use it to guarantee fallbacks.
9307
9308 2010-12-13  Pádraig Brady <P@draigBrady.com>
9309
9310         read-file: Improve handling of large files
9311         * lib/read-file.c (fread_file): Minimize realloc()s
9312         for regular files, and better manage sizes around SIZE_MAX.
9313
9314 2010-12-13  Eric Blake  <eblake@redhat.com>
9315
9316         cloexec, fcntl: relax license
9317         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9318         consent from all contributors.
9319         * modules/fcntl (License): Likewise.
9320
9321 2010-12-10  Bruno Haible  <bruno@clisp.org>
9322
9323         Tests for module 'pipe-posix'.
9324         * modules/pipe-posix-tests: New file.
9325         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9326
9327 2010-12-10  Bruno Haible  <bruno@clisp.org>
9328
9329         pipe-posix: Make it work in C++ mode.
9330         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9331         (pipe): Use common idiom, not a macro definition.
9332         * lib/pipe.c: New file.
9333         * m4/pipe.m4: New file.
9334         * modules/pipe-posix (Description): Enhance.
9335         (Files): Add lib/pipe.c, m4/pipe.m4.
9336         (configure.ac): Invoke gl_FUNC_PIPE.
9337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9338         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9339         * tests/test-unistd-c++.cc: Check the signature of pipe.
9340
9341 2010-12-10  Bruno Haible  <bruno@clisp.org>
9342
9343         Rename module 'pipe' to 'spawn-pipe'.
9344         * modules/spawn-pipe: New file, renamed from modules/pipe.
9345         (Files, configure.ac, Makefile.am): Update.
9346         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9347         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9348         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9349         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9350         "spawn-pipe.h" instead of "pipe.h".
9351         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9352         to gl_SPAWN_PIPE.
9353         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9354         (Files, Makefile.am): Update.
9355         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9356         Update.
9357         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9358         Include "spawn-pipe.h" instead of "pipe.h".
9359         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9360         * lib/javacomp.c: Likewise.
9361         * lib/javaversion.c: Likewise.
9362         * lib/pipe-filter-gi.c: Likewise.
9363         * lib/pipe-filter-ii.c: Likewise.
9364         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9365         * modules/javacomp (Depends-on): Likewise.
9366         * modules/javaversion (Depends-on): Likewise.
9367         * modules/pipe-filter-gi (Depends-on): Likewise.
9368         * modules/pipe-filter-ii (Depends-on): Likewise.
9369         * MODULES.html.sh (Executing programs): Update.
9370         * NEWS: Mention the change.
9371
9372 2010-12-10  Eric Blake  <eblake@redhat.com>
9373
9374         pipe-posix: new module
9375         * modules/pipe-posix: New file.
9376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9377         (gl_UNISTD_H): Check for declaration.
9378         * modules/unistd (Makefile.am): Substitute it.
9379         * lib/unistd.in.h (pipe): Provide it for mingw.
9380         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9381         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9382
9383 2010-12-07  Bruno Haible  <bruno@clisp.org>
9384
9385         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9386         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9387         u8_strcmp_gnu.
9388         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9389
9390 2010-12-06  Bruno Haible  <bruno@clisp.org>
9391
9392         Update internal documentation.
9393         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9394
9395 2010-12-04  Bruno Haible  <bruno@clisp.org>
9396
9397         Put more information about failed tests into the test return codes.
9398         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9399         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9400         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9401         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9402         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9403         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9404         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9405         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9406         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9408         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9409         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9410         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9411         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9412         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9413         returns a bit mask.
9414         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9415         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9416         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9417         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9418         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9419         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9422         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9423         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9424         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9425         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9426         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9428         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9429         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9430         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9431         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9432         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9433         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9435         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9436         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9437         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9438         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9439         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9440         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9441         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9442         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9443         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9444         gl_PRINTF_PRECISION): Likewise.
9445         * m4/regex.m4 (gl_REGEX): Likewise.
9446         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9447         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9448         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9449         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9450         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9452         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9453         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9454         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9455         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9456         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9457         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9458         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9459         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9460         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9461         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9462         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9463         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9465         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9466         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9467         enumerated value.
9468         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9469
9470 2010-12-04  Bruno Haible  <bruno@clisp.org>
9471
9472         Update for Solaris 11 2010-11.
9473         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9474         Express, released in November 2010.
9475
9476 2010-12-04  Bruno Haible  <bruno@clisp.org>
9477
9478         nproc: Relax license.
9479         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9480         and Paul Eggert.
9481         Requested by Ludovic Courtès <ludo@gnu.org>.
9482
9483 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9484
9485         utimecmp: fine-grained src to nearby coarse-grained dest
9486
9487         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9488         and the source is on a file system with higher-resolution time
9489         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9490         not work, and the time stamps are close together, the algorithm to
9491         determine the exact resolution from the read-back mtime was buggy:
9492         it had a "!=" where it should have had an "==".  This bug has been
9493         in the code ever since it was introduced to gnulib.
9494         Problem reported by Dan Jacobson in
9495         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9496
9497 2010-11-30  Bruno Haible  <bruno@clisp.org>
9498
9499         strerror_r-posix: Fix autoconf test.
9500         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9501
9502 2010-11-28  Bruno Haible  <bruno@clisp.org>
9503             Paul Eggert  <eggert@cs.ucla.edu>
9504
9505         Tests for module 'getdomainname'.
9506         * modules/getdomainname-tests: New file.
9507         * tests/test-getdomainname.c: New file, based on
9508         tests/test-gethostname.c.
9509
9510 2010-11-28  Bruno Haible  <bruno@clisp.org>
9511             Paul Eggert  <eggert@cs.ucla.edu>
9512
9513         getdomainname: Use the system function when possible.
9514         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9515         (getdomainname): Replace if needed. Provide the declaration if it is
9516         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9517         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9518         (getdomainname): When the system has getdomainname, call the system
9519         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9520         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9521         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9522         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9523         the function if its second argument is of type 'int' or if it is found
9524         in libnsl.
9525         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9526         <sys/systeminfo.h> and sysinfo().
9527         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9529         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9530         HAVE_GETDOMAINNAME.
9531         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9532         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9533         * doc/glibc-functions/getdomainname.texi: Document the problems with
9534         the getdomainname declaration.
9535
9536 2010-11-28  Bruno Haible  <bruno@clisp.org>
9537
9538         sys_socket: Ensure ss_family field on AIX.
9539         * lib/sys_socket.in.h (ss_family): New macro definition.
9540         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9541         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9542         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9543         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9544         * modules/sys_socket (Makefile.am): Substitute
9545         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9546         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9547
9548 2010-11-27  Bruno Haible  <bruno@clisp.org>
9549
9550         readline: Improve configure output.
9551         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9552         "checking for readline..." result understandable.
9553
9554 2010-11-27  Bruno Haible  <bruno@clisp.org>
9555
9556         *printf-posix: Detect a bug on Solaris 10/x86.
9557         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9558         for floating-point output.
9559         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9560         directive.
9561         * tests/test-snprintf-posix.h (test_function): Likewise.
9562         * tests/test-sprintf-posix.h (test_function): Likewise.
9563         * tests/test-vasprintf-posix.c (test_function): Likewise.
9564         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9565         * doc/posix-functions/printf.texi: Likewise.
9566         * doc/posix-functions/snprintf.texi: Likewise.
9567         * doc/posix-functions/sprintf.texi: Likewise.
9568         * doc/posix-functions/vfprintf.texi: Likewise.
9569         * doc/posix-functions/vprintf.texi: Likewise.
9570         * doc/posix-functions/vsnprintf.texi: Likewise.
9571         * doc/posix-functions/vsprintf.texi: Likewise.
9572         * doc/glibc-functions/obstack_printf.texi: Likewise.
9573         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9574
9575 2010-11-27  Bruno Haible  <bruno@clisp.org>
9576
9577         Fix link error when module libunistring-optional is in use.
9578         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9579         * modules/striconveha-tests (Makefile.am): Likewise.
9580
9581 2010-11-27  Bruno Haible  <bruno@clisp.org>
9582
9583         regex: Mention link dependencies.
9584         * modules/regex (Link): New section.
9585         * modules/rpmatch (Link): Likewise.
9586         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9587
9588 2010-11-27  Bruno Haible  <bruno@clisp.org>
9589
9590         ftoastr: Fix compilation error on Solaris.
9591         * lib/ftoastr.c: Include <config.h>.
9592
9593 2010-11-27  Bruno Haible  <bruno@clisp.org>
9594
9595         getloadavg: Update documentation.
9596         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9597
9598 2010-11-27  Bruno Haible  <bruno@clisp.org>
9599
9600         sys_socket: Fix test whether the functions are declared.
9601         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9602         not <sys/select.h>.
9603
9604 2010-11-27  Bruno Haible  <bruno@clisp.org>
9605
9606         getpass: Make sure to get system declaration on some platforms.
9607         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9608         gl_USE_SYSTEM_EXTENSIONS.
9609         * modules/getpass (Depends-on): Add extensions.
9610
9611 2010-11-26  Bruno Haible  <bruno@clisp.org>
9612
9613         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9614         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9615         'iconv' module is present.
9616         (ICONV_CONST): New macro.
9617         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9618         ICONV_CONST.
9619         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9620         set ICONV_CONST.
9621         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9622         here.
9623         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9624         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9625         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9626         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9627         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9628         present.
9629
9630 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9631
9632         ftoastr: comment fix
9633         * lib/ftoastr.c: "little" -> "little or no" in comment
9634
9635 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9636
9637         stdint: port to GCC 4.3 + OSX + Octave
9638         On this platform, stdint.h is buggy and defines int64_t to long
9639         long int.  The replacement defined it to long int, causing
9640         problems with C++ style name mangling.  Instead, trust the system
9641         definition if INT64_MAX is defined, and likewise for the unsigned
9642         variant.   Problem reported by Jarno Rajahalme in
9643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9644         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9645         and don't mess with int64_t and INT64_MAX in this case.
9646         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9647
9648 2010-11-24  Bruno Haible  <bruno@clisp.org>
9649
9650         doc: Corrections regarding MacOS X 10.4 and 10.5.
9651         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9652         MacOS X.
9653         Reported by Simon Josefsson.
9654
9655 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9656
9657         Uninstall ".bin" files installed by relocwrapper.
9658         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9659         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9660         unless it is already there.
9661
9662 2010-11-21  Bruno Haible  <bruno@clisp.org>
9663
9664         Update for NetBSD 5.0.
9665         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9666         NetBSD; the test fails on NetBSD 5.0.
9667         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9668         about NetBSD.
9669
9670 2010-11-21  Bruno Haible  <bruno@clisp.org>
9671
9672         Update for HP-UX 11.23 and HP-UX 11.31.
9673         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9674         HP-UX.
9675
9676 2010-11-21  Bruno Haible  <bruno@clisp.org>
9677
9678         Update for MacOS X 10.5.
9679         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9680         MacOS X; the test fails on MacOS X 10.5.8.
9681         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9682         about MacOS X.
9683
9684 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9685
9686         bootstrap: add bootstrap_sync option.
9687         See discussion at
9688         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9689         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9690         * build-aux/bootstrap: Accept --bootstrap-sync to update
9691         bootstrap if it is not identical to the local gnulib's
9692         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9693         enable this by default.  Accept --no-bootstrap-sync to disable
9694         it.
9695
9696 2010-11-20  Bruno Haible  <bruno@clisp.org>
9697
9698         Ensure that <features.h> is included before __GLIBC__ is tested.
9699         * lib/printf-parse.h: Include <features.h>.
9700         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9701         Reported by Mike Frysinger <vapier@gentoo.org>.
9702
9703         Ensure that <features.h> is included before __GLIBC__ is tested.
9704         * lib/wchar.in.h: Include <features.h>.
9705         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9706         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9707         Reported by Mike Frysinger <vapier@gentoo.org>.
9708
9709         Ensure that <features.h> is included before __GLIBC__ is tested.
9710         * lib/arpa_inet.in.h: Include <features.h>.
9711         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9712         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9713         Reported by Mike Frysinger <vapier@gentoo.org>.
9714
9715         Ensure that <features.h> is included before __GLIBC__ is tested.
9716         * build-aux/link-warning.h: Include <features.h>.
9717         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9718         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9719         Reported by Mike Frysinger <vapier@gentoo.org>.
9720
9721         Ensure that <features.h> is included before __GLIBC__ is tested.
9722         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9723         Reported by Mike Frysinger <vapier@gentoo.org>.
9724
9725 2010-11-20  Bruno Haible  <bruno@clisp.org>
9726
9727         memmem: Fix autoconf test.
9728         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9729
9730 2010-11-20  Bruno Haible  <bruno@clisp.org>
9731
9732         Port to uClibc.
9733         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9734         * lib/fcntl.in.h: Likewise.
9735         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9736         * lib/mbrtowc.c (mbrtowc): Likewise.
9737         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9738         * lib/strerror_r.c: Likewise.
9739         * lib/unistr/u8-strnlen.c: Likewise.
9740         * lib/vasnprintf.c (decimal_point_char): Likewise.
9741         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9742         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9743         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9744         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9745         * tests/test-sigaction.c (handler, main): Likewise.
9746         * lib/freading.h: Treat uClibc like a non-glibc platform.
9747         * lib/freading.c: Likewise.
9748         * lib/gettext.h: Likewise.
9749         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9750         Likewise.
9751         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9752         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9753         * lib/propername.c (proper_name_utf8): Likewise.
9754         * lib/spawn.in.h: Likewise.
9755         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9756         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9757         mem_cd_iconveh_internal): Likewise.
9758         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9759         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9760         strstr, strcasestr): Likewise.
9761         * lib/unicodeio.c (unicode_to_mb): Likewise.
9762         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9763         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9764         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9765         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9766         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9767         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9768         * lib/unistr/u8-stpncpy.c: Likewise.
9769         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9770         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9771         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9772         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9773         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9774         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9775         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9776         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9778         Likewise.
9779         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9780         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9781         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9782         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9783         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9784         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9785         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9786         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9787         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9788         * tests/test-striconveha.c (main): Likewise.
9789         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9790         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9791         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9792         * doc/posix-functions/getline.texi: Likewise.
9793         Reported by Mike Frysinger <vapier@gentoo.org>.
9794
9795 2010-11-20  Bruno Haible  <bruno@clisp.org>
9796
9797         nproc: Fix condition.
9798         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9799         HAVE_PTHREAD_AFFINITY_NP.
9800
9801 2010-11-20  Bruno Haible  <bruno@clisp.org>
9802
9803         Fix a comment.
9804         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9805
9806 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9807
9808         ftoastr: don't assume snprintf
9809         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9810         Implement a subset of snprintf here, by using sprintf safely.
9811         * modules/ftoastr (Depends-on): Remove snprintf.
9812
9813 2010-11-19  Jim Meyering  <meyering@redhat.com>
9814
9815         test-rename.h: fix compilation failure
9816         * tests/test-rename.h (test_rename): Add omitted "}".
9817
9818 2010-11-17  Jim Meyering  <meyering@redhat.com>
9819
9820         maint.mk: add a URL discussing the no-@acronym policy
9821         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9822
9823 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9824
9825         ftoastr: depend on snprintf, improve comments
9826         * lib/ftoastr.c: Also mention Loitsch's draft.
9827         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9828         needed in the current implementation, but it might simplify
9829         speeding up the code later.
9830         * modules/ftoastr: Depend on snprintf; this improves portability.
9831         Suggested by Bruno Haible in the same email.
9832
9833         ftoastr: port to hosts lacking strtof and strtold
9834         Problem reported by Bruno Haible in
9835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9836         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9837         environment and strtold (and presumably strtof) are not available.
9838         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9839         (configure.ac): Require gl_C99_STRTOLD.
9840
9841 2010-11-18  Bruno Haible  <bruno@clisp.org>
9842
9843         c-strtold: Avoid link error on AIX 7.
9844         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9845         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9846         (gl_C_STRTOLD): Test whether strtold_l exists.
9847         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9848
9849 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9850
9851         intprops: new macro INT_BITS_STRLEN_BOUND
9852         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9853         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9854         not exposed.  Also, it uses a slightly tighter bound than before;
9855         though this makes no practical difference, we might as well be as
9856         tight as we easily can.
9857
9858         ftoastr: new module, for lossless conversion of floats to short strings
9859         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9860         * modules/ftoastr: New files.
9861
9862 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9863
9864         bootstrap: port to Solaris sed
9865         * build-aux/bootstrap (get_version): Port to Solaris sed.
9866         See Ralf Wildenhues's note in
9867         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9868
9869 2010-11-14  Jim Meyering  <meyering@redhat.com>
9870
9871         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9872         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9873         and move definition closer to sole use.
9874
9875 2010-11-13  Jim Meyering  <meyering@redhat.com>
9876
9877         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9878         Now we require at least autoconf-2.59, which means the work-around
9879         is no longer needed.
9880         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9881         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9882         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9883         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9884         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9885
9886 2010-11-13  Bruno Haible  <bruno@clisp.org>
9887
9888         rename, renameat: Avoid test failures at NFS mounted locations.
9889         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9890         functions.
9891         (test_rename): Use assert_nonexistent.
9892         * tests/test-rename.c: Include <dirent.h>.
9893         * tests/test-renameat.c: Likewise.
9894         Reported by Gary V. Vaughan <gary@gnu.org>.
9895
9896         rename, renameat: Document Linux bug with NFS
9897         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9898         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9899         * doc/posix-functions/renameat.texi: Likewise.
9900         Suggested by Eric Blake.
9901
9902 2010-11-13  Bruno Haible  <bruno@clisp.org>
9903
9904         rename test: Add comments.
9905         * tests/test-rename.h (test_rename): Add structure and comments.
9906
9907 2010-11-13  Eric Blake  <eblake@redhat.com>
9908
9909         maintainer-makefile: cover a few more files
9910         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9911         scripts generated within C files, for libvirt.
9912
9913 2010-11-13  Bruno Haible  <bruno@clisp.org>
9914
9915         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9916         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9917         character, return the number of bytes that belong together, not always
9918         1.
9919         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9920         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9921         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9922         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9923         number of bytes of an invalid character.
9924         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9925         (main): Invoke it.
9926         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9927         results.
9928         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9929         malformed byte sequences.
9930         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9931         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9932         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9933         Reported by Ben Pfaff and Paolo Bonzini.
9934
9935 2010-11-13  Bruno Haible  <bruno@clisp.org>
9936
9937         openat: Work around glibc bug with fchownat() and empty file names.
9938         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9939         (gl_FUNC_FCHOWNAT): Invoke it.
9940         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9941         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9942         Reported by Gary V. Vaughan <gary@gnu.org>.
9943
9944 2010-11-13  Bruno Haible  <bruno@clisp.org>
9945
9946         openat: Ensure autoconf macro ordering.
9947         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9948         gl_USE_SYSTEM_EXTENSIONS.
9949         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9950
9951 2010-11-13  Bruno Haible  <bruno@clisp.org>
9952
9953         Update comments.
9954         * lib/unistr/u8-check.c: Update file name in comments.
9955         * lib/unistr/u8-mblen.c: Likewise.
9956         * lib/unistr/u8-prev.c: Likewise.
9957         * lib/unistr/u8-strmblen.c: Likewise.
9958         * lib/unistr/u8-strmbtouc.c: Likewise.
9959
9960 2010-11-13  Jim Meyering  <meyering@redhat.com>
9961
9962         tests: avoid test failure on Solaris 10 due to lack of PATH export
9963         * tests/test-update-copyright.sh: Don't forget to export PATH.
9964
9965         init.sh: ensure that IFS is defined, just in case...
9966         * tests/init.sh (setup_): Ensure that IFS is defined,
9967         so that saving and restoring it works as expected.  This
9968         appears to be useful at least for an old version of dash
9969         from a long time ago (RH 6).  See here for details:
9970         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9971
9972         maint.mk: tighten "test a == b" check
9973         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9974         test to files that contain something like #!/bin/sh.
9975         Without this, coreutils would get two false positives in
9976         the comments of C source files.
9977
9978 2010-11-12  Eric Blake  <eblake@redhat.com>
9979
9980         bootstrap: fix typo in previous attempt
9981         * build-aux/bootstrap (buildreq): Correct the grouping.
9982         Reported by Paul Eggert.
9983
9984         maintainer-makefile: prohibit test x == x
9985         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9986         Based on a report by Matthias Bolte.
9987
9988         bootstrap: allow FreeBSD gzip
9989         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9990         which has no '.' and goes to stderr.
9991         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9992         Reported by Matthias Bolte.
9993
9994         maintainer-makefile: check for i18n setup
9995         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9996         will likely work.
9997
9998 2010-11-12  Bruno Haible  <bruno@clisp.org>
9999
10000         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10001         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10002         * lib/nanosleep.c (nanosleep): Likewise.
10003
10004 2010-11-11  Bruno Haible  <bruno@clisp.org>
10005
10006         fcntl-h: Fix for use of C++ on glibc systems.
10007         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10008         also on glibc systems in C++ mode.
10009         Reported by Gary V. Vaughan <gary@gnu.org>.
10010
10011 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10012
10013         mknod: avoid false failure with dash
10014         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10015
10016 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10017
10018         unlink: Fix "is it should" typo in diagnostic.
10019         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10020         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10021
10022 2010-11-11  Bruno Haible  <bruno@clisp.org>
10023
10024         Tests for module 'strerror_r-posix'.
10025         * modules/strerror_r-posix-tests: New file.
10026         * tests/test-strerror_r.c: New file.
10027         * tests/test-string-c++.cc: Check the signature of strerror_r.
10028
10029         New module 'strerror_r-posix'.
10030         * lib/string.in.h (strerror_r): New declaration.
10031         * lib/strerror_r.c: New file.
10032         * m4/strerror_r.m4: New file.
10033         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10034         of strerror_r.
10035         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10036         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10037         * modules/strerror_r-posix: New file.
10038         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10039         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10040         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10041         portability problems.
10042
10043 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10044
10045         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10046         line is also considered for output. Quoted function name in shell
10047         command, so temporary files for functions like MyClass::operator()
10048         are removed correctly without errors.
10049
10050 2010-11-09  Bruno Haible  <bruno@clisp.org>
10051
10052         * doc/posix-functions/strerror.texi: List more failing platforms.
10053
10054         * doc/posix-functions/strerror.texi: Add a comment.
10055
10056 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10057
10058         fdopendir: fix bug on MacOS X when low on file descriptors
10059
10060         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10061         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10062         All callers changed.
10063         (fdopendir): Invoke save_cwd at the top level, not after using
10064         multiple dup() calls to use up file descriptors.  Then retry
10065         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10066         less than the maximum number of open file descriptors, because
10067         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10068         on Mac OS X 10.6.4 for tar 1.24
10069         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10070         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10071         and for tar 1.25
10072         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10073
10074 2010-11-07  Bruno Haible  <bruno@clisp.org>
10075
10076         vasnprintf: Support I flag on glibc systems.
10077         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10078         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10079         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10080         snprintf function.
10081         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10082         glibc systems.
10083         * tests/test-vasnprintf-posix3.c: New file.
10084         * modules/vasnprintf-posix-tests (Files): Add it.
10085         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10086
10087 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10088
10089         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10090         * MODULES.html.sh: For compiler warnings, use name
10091         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10092
10093 2010-11-05  Eric Blake  <eblake@redhat.com>
10094
10095         ceil, floor: avoid spurious failure with icc
10096         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10097         [denormals-as-zero] when optimizing without -mieee-fp option.
10098         * tests/test-floorf2.c (floorf_reference): Likewise.
10099         * tests/test-ceilf1.c (dummy): New function.
10100         (main): Use it to outsmart icc's optimization.
10101         * tests/test-floorf1.c (dummy, main): Likewise.
10102
10103         tests: require working signbit
10104         * modules/ceilf-tests (Depends-on): Add signbit.
10105         * modules/ceill-tests (Depends-on): Likewise.
10106         * modules/floorf-tests (Depends-on): Likewise.
10107         * modules/floorl-tests (Depends-on): Likewise.
10108         * modules/round-tests (Depends-on): Likewise.
10109         * modules/roundf-tests (Depends-on): Likewise.
10110         * modules/roundl-tests (Depends-on): Likewise.
10111         * modules/trunc-tests (Depends-on): Likewise.
10112         * modules/truncf-tests (Depends-on): Likewise.
10113         * modules/truncl-tests (Depends-on): Likewise.
10114
10115         strtod: work around icc bug
10116         * lib/strtod.c (minus_zero): Define to working value.
10117         (strtod): Use it to avoid icc bug.
10118
10119         copysign: enhance tests
10120         * modules/copysign-tests (Files): Add minus-zero.h.
10121         * tests/test-copysign.c (main): Also test zeros.
10122
10123 2010-11-04  Eric Blake  <eblake@redhat.com>
10124
10125         ceil, floor, round, trunc: enhance tests of -0
10126         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10127         * tests/test-ceill.c (main): Likewise.
10128         * tests/test-floorf1.c (main): Likewise.
10129         * tests/test-floorl.c (main): Likewise.
10130         * tests/test-round1.c (main): Likewise.
10131         * tests/test-roundf1.c (main): Likewise.
10132         * tests/test-roundl.c (main): Likewise.
10133         * tests/test-trunc1.c (main): Likewise.
10134         * tests/test-truncf1.c (main): Likewise.
10135         * tests/test-truncl.c (main): Likewise.
10136
10137 2010-11-04  Eric Blake  <eblake@redhat.com>
10138
10139         frexp, tests: work around ICC bug with -zero
10140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10141         works with more compilers.
10142         * tests/minus-zero.h: New file.
10143         * modules/ceilf-tests (Files): Include it.
10144         * modules/ceill-tests (Files): Likewise.
10145         * modules/floorf-tests (Files): Likewise.
10146         * modules/floorl-tests (Files): Likewise.
10147         * modules/frexp-nolibm-tests (Files): Likewise.
10148         * modules/frexp-tests (Files): Likewise.
10149         * modules/frexpl-nolibm-tests (Files): Likewise.
10150         * modules/frexpl-tests (Files): Likewise.
10151         * modules/isnan-tests (Files): Likewise.
10152         * modules/isnand-nolibm-tests (Files): Likewise.
10153         * modules/isnand-tests (Files): Likewise.
10154         * modules/isnanf-nolibm-tests (Files): Likewise.
10155         * modules/isnanf-tests (Files): Likewise.
10156         * modules/isnanl-nolibm-tests (Files): Likewise.
10157         * modules/isnanl-tests (Files): Likewise.
10158         * modules/round-tests (Files): Likewise.
10159         * modules/roundf-tests (Files): Likewise.
10160         * modules/roundl-tests (Files): Likewise.
10161         * modules/ldexpl-tests (Files): Likewise.
10162         * modules/signbit-tests (Files): Likewise.
10163         * modules/snprintf-posix-tests (Files): Likewise.
10164         * modules/sprintf-posix-tests (Files): Likewise.
10165         * modules/strtod-tests (Files): Likewise.
10166         * modules/trunc-tests (Files): Likewise.
10167         * modules/truncf-tests (Files): Likewise.
10168         * modules/truncl-tests (Files): Likewise.
10169         * modules/vsnprintf-posix-tests (Files): Likewise.
10170         * modules/vsprintf-posix-tests (Files): Likewise.
10171         * modules/vasnprintf-posix-tests (Files): Likewise.
10172         * modules/vasprintf-posix-tests (Files): Likewise.
10173         * tests/test-ceilf1.c (main): Use it.
10174         * tests/test-ceill.c (main): Likewise.
10175         * tests/test-floorf1.c (main): Likewise.
10176         * tests/test-floorl.c (main): Likewise.
10177         * tests/test-frexp.c (main): Likewise.
10178         * tests/test-frexpl.c (main): Likewise.
10179         * tests/test-isnan.c (main): Likewise.
10180         * tests/test-isnand.h (main): Likewise.
10181         * tests/test-isnanf.h (main): Likewise.
10182         * tests/test-isnanl.h (main): Likewise.
10183         * tests/test-ldexpl.c (main): Likewise.
10184         * tests/test-round.c (main): Likewise.
10185         * tests/test-roundf.c (main): Likewise.
10186         * tests/test-roundl.c (main): Likewise.
10187         * tests/test-signbit.c (test_signbitf, test_signbitd)
10188         (test_signbitl): Likewise.
10189         * tests/test-snprintf-posix.h (test_function): Likewise.
10190         * tests/test-sprintf-posix.h (test_function): Likewise.
10191         * tests/test-strtod.c (main): Likewise.
10192         * tests/test-trunc1.c (main): Likewise.
10193         * tests/test-truncf1.c (main): Likewise.
10194         * tests/test-truncl.c (main): Likewise.
10195
10196         isnanl: work around icc bug
10197         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10198
10199 2010-11-03  Eric Blake  <eblake@redhat.com>
10200
10201         tests: fix compiler warnings
10202         * tests/test-getopt.h (test_getopt): Fix condition.
10203         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10204         * tests/test-pipe2.c (main): Likewise.
10205         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10206
10207         utimens: fix broken m4 test
10208         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10209
10210 2010-10-28  Bruno Haible  <bruno@clisp.org>
10211
10212         posix_spawn*, getdtablesize: Relax license.
10213         * modules/posix_spawn (License): Change to LGPLv2+.
10214         * modules/posix_spawnp (License): Likewise.
10215         * modules/posix_spawn-internal (License): Likewise.
10216         * modules/posix_spawnattr_init (License): Likewise.
10217         * modules/posix_spawnattr_getflags (License): Likewise.
10218         * modules/posix_spawnattr_setflags (License): Likewise.
10219         * modules/posix_spawnattr_getpgroup (License): Likewise.
10220         * modules/posix_spawnattr_setpgroup (License): Likewise.
10221         * modules/posix_spawnattr_getschedparam (License): Likewise.
10222         * modules/posix_spawnattr_setschedparam (License): Likewise.
10223         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10224         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10225         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10226         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10227         * modules/posix_spawnattr_getsigmask (License): Likewise.
10228         * modules/posix_spawnattr_setsigmask (License): Likewise.
10229         * modules/posix_spawnattr_destroy (License): Likewise.
10230         * modules/posix_spawn_file_actions_init (License): Likewise.
10231         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10232         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10233         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10234         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10235         * modules/getdtablesize (License): Likewise.
10236         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10237
10238 2010-10-26  Bruno Haible  <bruno@clisp.org>
10239
10240         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10241         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10242         Cygwin and mingw.
10243         Suggested by Eric Blake.
10244
10245 2010-10-26  Bruno Haible  <bruno@clisp.org>
10246
10247         stdio: Work around compilation error due to renameat() on Solaris 10.
10248         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10249         * lib/renameat.c: Don't include <unistd.h> here.
10250         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10251         Reported by Paul Eggert and Eric Blake.
10252
10253 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10254
10255         renameat: port to Solaris 10, which declares renameat in unistd.h
10256
10257         * lib/renameat.c: Include unistd.h before stdio.h, because
10258         Solaris 10 declares renameat in unistd.h.  Problem encountered
10259         when building GNU tar 1.24 on Solaris 10.
10260
10261 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10262
10263         fdopendir: fix C89 compilation
10264         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10265         compilers.
10266
10267 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10268
10269         inttostr: simplify by removing unnecessary redundancy
10270         * lib/anytostr.c: Don't include verify.h.
10271         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10272         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10273         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10274         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10275         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10276         Likewise.
10277         * modules/inttostr (Depends-on): Remove 'verify'.
10278
10279 2010-10-23  Bruno Haible  <bruno@clisp.org>
10280
10281         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10282         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10283         Reported by Eric Blake.
10284
10285 2010-10-23  Bruno Haible  <bruno@clisp.org>
10286
10287         Tests: Fix LOCALE_JA on MirBSD 10.
10288         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10289         to an UTF-8 locale.
10290         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10291         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10292         Reported by Eric Blake.
10293
10294 2010-10-21  Bruno Haible  <bruno@clisp.org>
10295
10296         nl_langinfo test: Avoid test failure on NetBSD 5.
10297         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10298         Reported by Eric Blake.
10299
10300 2010-10-21  Eric Blake  <eblake@redhat.com>
10301
10302         c-stack: work around libsigsegv 2.8 bug
10303         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10304         overflow on at least PowerPC64.
10305
10306 2010-10-17  Bruno Haible  <bruno@clisp.org>
10307
10308         userspec: Drop redundant file.
10309         * modules/userspec (Files): Remove lib/inttostr.h.
10310
10311 2010-10-17  Bruno Haible  <bruno@clisp.org>
10312
10313         nl_langinfo tests: Silence some warnings.
10314         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10315         Reported by Jim Meyering.
10316
10317 2010-10-17  Bruno Haible  <bruno@clisp.org>
10318
10319         Make use of GCC's attribute __alloc_size__.
10320         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10321         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10322         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10323         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10324         __alloc_size__.
10325         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10326         Suggested by Jim Meyering.
10327
10328 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10329
10330         bootstrap: anchor .gitignore entries.
10331         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10332         with...
10333         (insert_vc_ignore): ... this new function, which prepends `/' to
10334         all .gitignore entries before passing them to
10335         insert_sorted_if_absent.
10336
10337 2010-10-16  Bruno Haible  <bruno@clisp.org>
10338
10339         nextafter: Fix configure check.
10340         * modules/nextafter (configure.ac): Correct expected prototype.
10341
10342 2010-10-16  Bruno Haible  <bruno@clisp.org>
10343
10344         termios: Update documentation.
10345         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10346
10347 2010-10-16  Bruno Haible  <bruno@clisp.org>
10348
10349         tests: Make them compile with TinyCC.
10350         * tests/test-strstr.c (main): Remove parentheses around array
10351         initializer.
10352
10353 2010-10-15  Eric Blake  <eblake@redhat.com>
10354
10355         ignore-value: make header idempotent
10356         * lib/ignore-value.h: Add double-inclusion guards.
10357         Reported by Stefan Berger.
10358
10359 2010-10-15  Jim Meyering  <meyering@redhat.com>
10360
10361         GNUmakefile: handle "stable" target, not "major"
10362         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10363         lists in maint.mk and announce-gen.  Without this, "make stable"
10364         would fail to ensure that $(VERSION) is up to date.
10365
10366 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10367
10368         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10369         & co.
10370
10371 2010-10-14  Bruno Haible  <bruno@clisp.org>
10372
10373         vasnprintf: Don't set errno to 0.
10374         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10375         block that sets it to 0.
10376         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10377
10378 2010-10-14  Bruno Haible  <bruno@clisp.org>
10379
10380         socketlib: Fix.
10381         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10382         gl_PREREQ_SYS_H_WINSOCK2.
10383         Reported by Ian Beckwith <ianb@erislabs.net>.
10384
10385 2010-10-13  Jim Meyering  <meyering@redhat.com>
10386
10387         test-select-stdin.c: avoid warn_unused_result warnings
10388         * tests/test-select-stdin.c: Include "macros.h".
10389         ASSERT that read and fflush succeed.
10390
10391 2010-10-13  Jim Meyering  <meyering@redhat.com>
10392
10393         git-version-gen: do require git-VC'd files in cwd
10394         * build-aux/git-version-gen: Reject a git version string
10395         if there are no commits associated with the current directory.
10396         This avoids an unlikely false-positive (unrelated dir whose parent
10397         repository also contains a tag matching v*), as pointed out
10398         by Giuseppe Scrivano in
10399         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10400
10401 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10402
10403         argv-iter: omit nonconforming declaration
10404         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10405         enum arg_iter_err declaration, which doesn't conform to C99.
10406         Solaris 10 cc warns about this.
10407
10408 2010-10-13  Eric Blake  <eblake@redhat.com>
10409
10410         termios: fix compilation on mingw
10411         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10412         (gl_TERMIOS_H): Adjust it on mingw.
10413         * modules/termios (Makefile.am): Substitute new key.
10414         * lib/termios.in.h (includes): Make include_next conditional.
10415         * doc/posix-headers/termios.texi (termios.h): Update
10416         documentation.
10417         Reported by Daniel P. Berrange.
10418
10419 2010-10-13  Jim Meyering  <meyering@redhat.com>
10420
10421         git-version-gen: don't require that .git/ be in the current dir
10422         * build-aux/git-version-gen: Adjust this script so that it works
10423         when run from any working directory beneath the top-level .git/-
10424         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10425         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10426
10427         test-select: avoid warn_unused_result warnings
10428         * tests/test-select.c: Include "macros.h".
10429         ASSERT that each call to read, write, and pipe succeeds.
10430         While not technically required, also check each "close".
10431         * modules/select-tests (Files): Add tests/macros.h.
10432
10433         test-symlinkat: remove declaration of unused local
10434         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10435
10436         test-inttostr: avoid shadowing warnings
10437         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10438         and use malloc rather than the stack for the same reason as
10439         mentioned in the comment justifying the other allocation.
10440
10441 2010-10-11  Bruno Haible  <bruno@clisp.org>
10442
10443         stdlib: Allow multiple gnulib generated replacements to coexist.
10444         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10445         Reported by Sam Steingold <sds@gnu.org>.
10446
10447 2010-10-11  Jim Meyering  <meyering@redhat.com>
10448
10449         fix a documentation typo
10450         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10451
10452 2010-10-11  Eric Blake  <eblake@redhat.com>
10453
10454         futimens: work around Solaris 11 bug
10455         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10456         * tests/test-futimens.h (test_futimens): Enhance, rather than
10457         weaken test.
10458         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10459
10460 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10461
10462         Indentation.
10463         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10464         higher-level operators more to the left.
10465
10466 2010-10-11  Jim Meyering  <meyering@redhat.com>
10467
10468         test-futimens: avoid unwarranted test failure on Solaris 5.11
10469         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10470         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10471         because it tries to dereference the NULL name argument.
10472
10473 2010-10-11  Bruno Haible  <bruno@clisp.org>
10474
10475         Indentation.
10476         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10477         indentation.
10478
10479 2010-10-11  Jim Meyering  <meyering@redhat.com>
10480
10481         spawn.in.h: make indentation consistent with parentheses
10482         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10483         Make indentation consistent with parentheses.
10484
10485 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10486
10487         Fix mismatched parens in previous commit
10488         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10489         parens.
10490
10491 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10492
10493         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10494
10495         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10496         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10497         * lib/malloca.c: Include "verify.h".
10498         (verify1): Remove, replacing with a verify call.
10499         * lib/relocwrapper.c (verify1): Likewise.
10500         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10501         Likewise.
10502         * modules/malloca (Depends-on): Add 'verify'.
10503         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10504         * modules/vasnprintf (Depends-on): Add 'verify'.
10505         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10506         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10507         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10508         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10509         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10510         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10511         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10512
10513         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10514
10515         Formerly the style was sometimes 2*X - 1, because the C standard
10516         was wrongly thought to disallow ?: in integral constant expressions.
10517         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10518         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10519         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10520         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10521         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10522         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10523         verify that time_t cannot be floating.
10524
10525 2010-10-08  Eric Blake  <eblake@redhat.com>
10526
10527         time: enforce recent POSIX ruling that time_t is integral
10528         * lib/time.in.h (__time_t_must_be_integral): Detect any
10529         problematic systems, allowing the rest of gnulib to assume POSIX.
10530
10531 2010-10-08  Jim Meyering  <meyering@redhat.com>
10532
10533         fdopendir: fix a bug on systems lacking openat and /proc support
10534         OpenBSD 4.7 is one such system.  The most noticeable effect was
10535         failure of any application making nontrivial use of fts: rm, du,
10536         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10537           ./rm: traversal failed: `a': Bad file descriptor
10538         Debugging that, you see that even though FD 6 was closed just
10539         prior to the opendir call in fd_clone_opendir, its resulting
10540         dir->dd_fd was 8, rather than the expected value of 6:
10541
10542         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10543         93                close (fd);
10544         (gdb) n
10545         94                dir = fd_clone_opendir (dupfd);
10546         (gdb) n
10547         95                saved_errno = errno;
10548         (gdb) p dir->dd_fd
10549         $11 = 8
10550
10551         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10552         The problem is that on OpenBSD, fd_clone_opendir has to resort
10553         to using the old-style save/restore CWD mechanism, due to its
10554         lack of openat/proc support, and *that* would steal the FD (6)
10555         that opendir was supposed to use.
10556
10557         The fix is to squirrel away the desired FD so that save_cwd uses a
10558         different one, and then free the dest FD right before calling opendir.
10559         That guarantees opendir will use the required file descriptor.
10560
10561         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10562
10563 2010-10-08  Bruno Haible  <bruno@clisp.org>
10564
10565         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10566         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10567
10568 2010-10-08  Bruno Haible  <bruno@clisp.org>
10569
10570         nanosleep: Make replacement POSIX compliant.
10571         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10572         is out of range.
10573         Reported by Jim Meyering.
10574
10575 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10576
10577         bootstrap: add hook for altering gnulib.mk, for Bison
10578         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10579         the Bison bootstrapping process can rewrite file names and variables
10580         in this file before later parts of 'bootstrap' use the file.
10581         Bison wants to include lib/gnulib.mk from the top-level makefile,
10582         so it needs the file names in this file to be relative to the top
10583         level, not relative to lib; plus it needs variable names to be
10584         rewritten.
10585         (slurp): Use the new function.
10586
10587         bootstrap: reformat for readability
10588         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10589
10590 2010-10-08  Eric Blake  <eblake@redhat.com>
10591
10592         docs: update cygwin progress
10593         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10594         1.7.7.
10595         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10596         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10597         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10598         * doc/posix-functions/carg.texi (carg): Likewise.
10599         * doc/posix-functions/cargf.texi (cargf): Likewise.
10600         * doc/posix-functions/casin.texi (casin): Likewise.
10601         * doc/posix-functions/casinf.texi (casinf): Likewise.
10602         * doc/posix-functions/casinh.texi (casinh): Likewise.
10603         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10604         * doc/posix-functions/catan.texi (catan): Likewise.
10605         * doc/posix-functions/catanf.texi (catanf): Likewise.
10606         * doc/posix-functions/catanh.texi (catanh): Likewise.
10607         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10608         * doc/posix-functions/ccos.texi (ccos): Likewise.
10609         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10610         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10611         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10612         * doc/posix-functions/cexp.texi (cexp): Likewise.
10613         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10614         * doc/posix-functions/cimag.texi (cimag): Likewise.
10615         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10616         * doc/posix-functions/clog.texi (clog): Likewise.
10617         * doc/posix-functions/clogf.texi (clogf): Likewise.
10618         * doc/posix-functions/conj.texi (conj): Likewise.
10619         * doc/posix-functions/conjf.texi (conjf): Likewise.
10620         * doc/posix-functions/cpow.texi (cpow): Likewise.
10621         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10622         * doc/posix-functions/cproj.texi (cproj): Likewise.
10623         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10624         * doc/posix-functions/creal.texi (creal): Likewise.
10625         * doc/posix-functions/crealf.texi (crealf): Likewise.
10626         * doc/posix-functions/csin.texi (csin): Likewise.
10627         * doc/posix-functions/csinf.texi (csinf): Likewise.
10628         * doc/posix-functions/csinh.texi (csinh): Likewise.
10629         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10630         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10631         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10632         * doc/posix-functions/ctan.texi (ctan): Likewise.
10633         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10634         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10635         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10636         * doc/posix-headers/complex.texi (complex.h): Likewise.
10637
10638 2010-10-07  Jim Meyering  <meyering@redhat.com>
10639
10640         parse-datetime: avoid compilation failure on OpenBSD 4.7
10641         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10642         This works around a compilation failure on OpenBSD 4.7:
10643         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10644
10645 2010-10-07  Eric Blake  <eblake@redhat.com>
10646
10647         docs: update cygwin progress
10648         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10649         1.7.6.
10650         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10651         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10652         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10653         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10654         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10655         Likewise.
10656         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10657         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10658         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10659         Likewise.
10660         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10661         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10662         Likewise.
10663         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10664         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10665         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10666         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10667         Likewise.
10668         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10669         Likewise.
10670         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10671
10672         docs: update parse-datetime history
10673         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10674         documentation of this function's history and alternatives.
10675
10676         cygwin: use more robust version check
10677         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10678         exclude an eventual cygwin 1.9.1.
10679         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10681         (gl_FUNC_STRCASESTR): Likewise.
10682         Reported by Bruno Haible.
10683
10684 2010-10-06  Bruno Haible  <bruno@clisp.org>
10685
10686         string, sys_select: Avoid #including large headers unless necessary.
10687         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10688         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10689         OSF/1, BeOS, Haiku.
10690         Reported by Jim Meyering.
10691
10692 2010-10-05  Eric Blake  <eblake@redhat.com>
10693
10694         memmem, strstr, strcasestr: fix bug with long periodic needle
10695         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10696         periodic needle having false positive.
10697         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10698         and cygwin 1.7.7.
10699         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10701         (gl_FUNC_STRCASESTR): Likewise.
10702         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10703         * tests/test-memmem.c (main): Expose the bug.
10704         * tests/test-strcasestr.c (main): Likewise.
10705         * tests/test-strstr.c (main): Likewise.
10706         * tests/test-c-strcasestr.c (main): Likewise.
10707         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10708         * doc/posix-functions/strstr.texi (strstr): Likewise.
10709         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10710         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10711
10712 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10713
10714         parse-datetime: do some more renaming
10715         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10716         parse_datetime, not get_date.  Mention the renaming.
10717         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10718         in comments.
10719         * m4/bison.m4: Likewise.
10720
10721 2010-10-05  Eric Blake  <eblake@redhat.com>
10722
10723         parse-datetime: better name than get_date
10724         * NEWS: Reword the deprecation notice.
10725         * modules/get_date: Rename to modules/parse-datetime.
10726         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10727         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10728         * lib/get_date.y: Rename to lib/parse-datetime.y.
10729         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10730         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10731         * doc/getdate.texi: Provide fallback wrapper.
10732         * lib/getdate.h: Move guts, and wrap...
10733         * lib/parse-datetime.h: ...new file.
10734         * lib/parse-datetime.y (get_date): Rename...
10735         (parse_datetime): ...to this.
10736         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10737         (gl_PARSE_DATETIME): ...to this.
10738         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10739         documentation.
10740         * modules/getdate (Files): Provide fallback docs and header.
10741         (Notice, Depends-on): Update references.
10742         * tests/test-parse-datetime.c: Likewise.
10743         * DEPENDENCIES: Likewise.
10744         * MODULES.html.sh (Date and time <time.h>): Likewise.
10745         * doc/parse-datetime.texi (Date input formats)
10746         (Authors of parse_datetime): Likewise.
10747         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10748         (Include): Likewise.
10749         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10750         * gnulib-tool: Likewise.
10751         * m4/bison.m4 (gl_BISON): Likewise.
10752         Suggested by Bruno Haible.
10753
10754 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10755
10756         more ports to Solaris tr, which needs [] around ranges
10757         * gnulib-tool: Solaris tr needs [] around ranges.
10758         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10759         * tests/test-pipe-filter-gi1.c (main): Likewise.
10760         * tests/test-pipe-filter-ii1.c (main): Likewise.
10761
10762 2010-10-05  Eric Blake  <eblake@redhat.com>
10763
10764         bootstrap: fix Solaris regression
10765         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10766         around ranges.
10767         Reported by Pádraig Brady.
10768
10769         bootstrap: work with pkg-config
10770         * build-aux/bootstrap (check_versions): Also transliterate - in
10771         prerequisite name.
10772         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10773         prerequisites that were already found, to avoid confusion.
10774         Reported by Justin Clift.
10775
10776         faccessat: remove unused wrappers
10777         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10778         presence of these wrappers dragged in -lgen on Solaris.
10779         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10780
10781 2010-10-05  Jim Meyering  <meyering@redhat.com>
10782
10783         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10784         * Makefile (sc_pragma_columns): New syntax-check rule.
10785
10786 2010-10-04  Bruno Haible  <bruno@clisp.org>
10787
10788         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10789         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10790         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10791         Reported by Bruce Korb and Eric Blake.
10792
10793 2010-10-04  Bruno Haible  <bruno@clisp.org>
10794
10795         threadlib: Make option --with-libpth-prefix work.
10796         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10797         use $LIBPTH, not just -lpth.
10798
10799 2010-10-04  Bruno Haible  <bruno@clisp.org>
10800
10801         Avoid line length limitation from HP NonStop system header files.
10802         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10803         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10804         * lib/ctype.in.h: Likewise.
10805         * lib/dirent.in.h: Likewise.
10806         * lib/errno.in.h: Likewise.
10807         * lib/fcntl.in.h: Likewise.
10808         * lib/float.in.h: Likewise.
10809         * lib/getopt.in.h: Likewise.
10810         * lib/iconv.in.h: Likewise.
10811         * lib/inttypes.in.h: Likewise.
10812         * lib/langinfo.in.h: Likewise.
10813         * lib/locale.in.h: Likewise.
10814         * lib/math.in.h: Likewise.
10815         * lib/netdb.in.h: Likewise.
10816         * lib/netinet_in.in.h: Likewise.
10817         * lib/poll.in.h: Likewise.
10818         * lib/pthread.in.h: Likewise.
10819         * lib/pty.in.h: Likewise.
10820         * lib/sched.in.h: Likewise.
10821         * lib/se-selinux.in.h: Likewise.
10822         * lib/search.in.h: Likewise.
10823         * lib/signal.in.h: Likewise.
10824         * lib/spawn.in.h: Likewise.
10825         * lib/stdarg.in.h: Likewise.
10826         * lib/stddef.in.h: Likewise.
10827         * lib/stdint.in.h: Likewise.
10828         * lib/stdio.in.h: Likewise.
10829         * lib/stdlib.in.h: Likewise.
10830         * lib/string.in.h: Likewise.
10831         * lib/strings.in.h: Likewise.
10832         * lib/sys_file.in.h: Likewise.
10833         * lib/sys_ioctl.in.h: Likewise.
10834         * lib/sys_select.in.h: Likewise.
10835         * lib/sys_socket.in.h: Likewise.
10836         * lib/sys_stat.in.h: Likewise.
10837         * lib/sys_time.in.h: Likewise.
10838         * lib/sys_times.in.h: Likewise.
10839         * lib/sys_utsname.in.h: Likewise.
10840         * lib/sys_wait.in.h: Likewise.
10841         * lib/sysexits.in.h: Likewise.
10842         * lib/termios.in.h: Likewise.
10843         * lib/time.in.h: Likewise.
10844         * lib/unistd.in.h: Likewise.
10845         * lib/wchar.in.h: Likewise.
10846         * lib/wctype.in.h: Likewise.
10847         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10848         * modules/ctype (Makefile.am): Likewise.
10849         * modules/dirent (Makefile.am): Likewise.
10850         * modules/errno (Makefile.am): Likewise.
10851         * modules/fcntl-h (Makefile.am): Likewise.
10852         * modules/float (Makefile.am): Likewise.
10853         * modules/getopt-posix (Makefile.am): Likewise.
10854         * modules/iconv-h (Makefile.am): Likewise.
10855         * modules/inttypes (Makefile.am): Likewise.
10856         * modules/langinfo (Makefile.am): Likewise.
10857         * modules/locale (Makefile.am): Likewise.
10858         * modules/math (Makefile.am): Likewise.
10859         * modules/netdb (Makefile.am): Likewise.
10860         * modules/netinet_in (Makefile.am): Likewise.
10861         * modules/poll-h (Makefile.am): Likewise.
10862         * modules/pthread (Makefile.am): Likewise.
10863         * modules/pty (Makefile.am): Likewise.
10864         * modules/sched (Makefile.am): Likewise.
10865         * modules/search (Makefile.am): Likewise.
10866         * modules/selinux-h (Makefile.am): Likewise.
10867         * modules/signal (Makefile.am): Likewise.
10868         * modules/spawn (Makefile.am): Likewise.
10869         * modules/stdarg (Makefile.am): Likewise.
10870         * modules/stddef (Makefile.am): Likewise.
10871         * modules/stdint (Makefile.am): Likewise.
10872         * modules/stdio (Makefile.am): Likewise.
10873         * modules/stdlib (Makefile.am): Likewise.
10874         * modules/string (Makefile.am): Likewise.
10875         * modules/strings (Makefile.am): Likewise.
10876         * modules/sys_file (Makefile.am): Likewise.
10877         * modules/sys_ioctl (Makefile.am): Likewise.
10878         * modules/sys_select (Makefile.am): Likewise.
10879         * modules/sys_socket (Makefile.am): Likewise.
10880         * modules/sys_stat (Makefile.am): Likewise.
10881         * modules/sys_time (Makefile.am): Likewise.
10882         * modules/sys_times (Makefile.am): Likewise.
10883         * modules/sys_utsname (Makefile.am): Likewise.
10884         * modules/sys_wait (Makefile.am): Likewise.
10885         * modules/sysexits (Makefile.am): Likewise.
10886         * modules/termios (Makefile.am): Likewise.
10887         * modules/time (Makefile.am): Likewise.
10888         * modules/unistd (Makefile.am): Likewise.
10889         * modules/wchar (Makefile.am): Likewise.
10890         * modules/wctype (Makefile.am): Likewise.
10891
10892 2010-10-04  Bruno Haible  <bruno@clisp.org>
10893
10894         read-file tests: Avoid a test failure on NonStop Kernel.
10895         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10896         a regular file.
10897         Reported by Joachim Schmitz <schmitz@hp.com>.
10898
10899 2010-10-03  Bruno Haible  <bruno@clisp.org>
10900
10901         gnulib-tool: Fixes for --create-testdir with --libtool.
10902         * gnulib-tool (func_get_automake_snippet): Don't augment
10903         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10904         an executable.
10905         (func_create_testdir): Handle module 'alloca' like func_import.
10906         Reported by Bruce Korb <bruce.korb@gmail.com>.
10907
10908 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10909
10910         Avoid some lines longer than 80 characters.
10911         * lib/stdint.in.h: Break long comment lines.
10912         * lib/math.in.h: Likewise.
10913         (_GL_NUM_UINT_WORDS): New macro, for readability.
10914         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10915         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10916         * lib/stdlib.in.h: Likewise.
10917         * lib/spawn.in.h: Likewise.
10918         * lib/sys_socket.in.h: Update an URL.
10919         * lib/sys_stat.in.h: Break long line.
10920
10921 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10922
10923         Improve pmccabe2html.
10924         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10925         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10926         when the sources change. Remove the line in the HTML about "Used
10927         ranges" (which implied that there might be other unused ranges),
10928         rename "Resume" to "Summary" (easier to understand for more users).
10929         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10930         styles, and some unnecessary blank lines.
10931
10932 2010-10-03  Bruno Haible  <bruno@clisp.org>
10933             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10934
10935         acl: Add support for ACLs on NonStop Kernel.
10936         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10937         Check whether the function aclsort() exists.
10938         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10939         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10940         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10941         (acl_nontrivial [HAVE_ACLSORT]: New function.
10942         (file_has_acl): Implement for NonStop Kernel.
10943         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10944         (qset_acl): Implement for NonStop Kernel.
10945         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10946         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10947         (main): Implement for NonStop Kernel.
10948         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10949         Kernel. Handle this flavor.
10950         * tests/test-set-mode-acl.sh: Likewise.
10951         * tests/test-copy-acl.sh: Likewise.
10952         * tests/test-copy-file.sh: Likewise.
10953
10954 2010-10-03  Bruno Haible  <bruno@clisp.org>
10955
10956         Info about ACLs on NonStop Kernel.
10957         * doc/acl-resources.txt: Add info about NonStop Kernel.
10958         References by Joachim Schmitz <schmitz@hp.com>.
10959
10960 2010-10-02  Bruno Haible  <bruno@clisp.org>
10961
10962         Define missing EDQUOT on NonStop Kernel.
10963         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10964         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10965         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10966         missing.
10967         * doc/posix-headers/errno.texi: Mention the NSK bug.
10968         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10969         Reported by Joachim Schmitz <schmitz@hp.com>.
10970
10971 2010-10-02  Bruno Haible  <bruno@clisp.org>
10972
10973         Update doc for POSIX:2008.
10974         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10975         Update URL of POSIX specification.
10976
10977 2010-10-02  Bruno Haible  <bruno@clisp.org>
10978
10979         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10980         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10981         from gnulib, not from Automake.
10982
10983 2010-10-02  Bruno Haible  <bruno@clisp.org>
10984
10985         New module 'system-posix'.
10986         * modules/system-posix: New file.
10987         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10988         module is present.
10989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10990         GNULIB_SYSTEM_POSIX.
10991         * modules/stdlib (Depends-on): Remove sys_wait.
10992         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10993         * doc/posix-functions/system.texi: Mention the new module.
10994         * doc/posix-headers/stdlib.texi: Likewise.
10995         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10996         define test_sys_wait_macros to a no-op.
10997         Reported by Sam Steingold <sds@gnu.org>.
10998
10999 2010-09-30  Bruno Haible  <bruno@clisp.org>
11000
11001         More renaming from 'getdate' to 'get_date'.
11002         * doc/get_date.texi: Renamed from doc/getdate.texi.
11003         * modules/get_date (Files): Update.
11004         * MODULES.html.sh (Date and time <time.h>): Update.
11005         * DEPENDENCIES: Update.
11006         * gnulib-tool: Update comment.
11007         * m4/bison.m4 (gl_BISON): Likewise.
11008         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11009
11010 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11011
11012         bootstrap: support ACLOCAL_FLAGS during aclocal
11013         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11014         can add additional -I dir for third-party .m4 files.
11015
11016 2010-09-30  Eric Blake  <eblake@redhat.com>
11017
11018         bootstrap: use glibtoolize on MacOS
11019         * build-aux/bootstrap (check_versions): Convert libtool into
11020         libtoolize.
11021         (tool search): Move libtool check earlier, and look for
11022         glibtoolize for MacOS.
11023         (gnulib_tool_options): Auto-add --libtool when appropriate.
11024         Reported by Justin Clift.
11025
11026         poll: fix typo that broke test on MacOS
11027         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11028         Reported by Justin Clift.
11029
11030         getdate: rename to get_date
11031         Note: getdate.h is not renamed, to minimize client impact.
11032         * modules/getdate: Mark obsolete.  Move old contents...
11033         * modules/get_date: ...to new module name.
11034         * modules/getdate-tests: Move...
11035         * modules/get_date-tests: ...here.
11036         * m4/getdate.m4: Move...
11037         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11038         * lib/getdate.y: Move...
11039         * lib/get_date.y: ...here.
11040         * tests/test-getdate.c: Move...
11041         * tests/test-get_date.c: ...here.
11042         * doc/posix-functions/getdate.texi (getdate): Update name.
11043         * NEWS: Mention the change.
11044
11045 2010-09-29  Bruno Haible  <bruno@clisp.org>
11046
11047         Separate the module 'waitpid' from the module 'sys_wait'.
11048         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11049         present.
11050         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11051         gl_MODULE_INDICATOR_FOR_TESTS.
11052         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11053         * modules/sys_wait (Depends-on): Remove waitpid.
11054         (Makefile.am): Substitute GNULIB_WAITPID.
11055         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11056         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11057         signature only if the 'waitpid' module is present.
11058         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11059         * NEWS: Mention the change.
11060         * modules/grantpt (Depends-on): Add waitpid.
11061         * modules/wait-process (Depends-on): Likewise.
11062
11063 2010-09-29  Bruno Haible  <bruno@clisp.org>
11064
11065         More tests for module 'sys_wait'.
11066         * modules/sys_wait-c++-tests: New file.
11067         * tests/test-sys_wait-c++.cc: New file.
11068         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11069         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11070
11071 2010-09-29  Bruno Haible  <bruno@clisp.org>
11072
11073         New module 'waitpid'.
11074         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11075         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11076         Don't include <process.h>.
11077         (waitpid): Declare only, using modern idiom.
11078         * m4/waitpid.m4: New file.
11079         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11080         * modules/waitpid: New file.
11081         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11082         (Makefile.am): Update.
11083         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11084
11085 2010-09-28  Bruno Haible  <bruno@clisp.org>
11086
11087         poll: Assume ANSI C.
11088         * lib/poll.c (poll): Use an ANSI C declaration.
11089
11090 2010-09-28  Bruno Haible  <bruno@clisp.org>
11091
11092         poll-h: Create poll.h on all platforms.
11093         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11094         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11095         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11096         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11097         (gl_REPLACE_POLL_H): Don't set POLL_H.
11098         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11099         * modules/poll-h (Depends-on): Add include_next.
11100         (Makefile.am): Create poll.h unconditionally. Substitute also
11101         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11102
11103 2010-09-28  Bruno Haible  <bruno@clisp.org>
11104
11105         Tests for module 'poll-h'.
11106         * modules/poll-h-c++-tests: New file.
11107         * tests/test-poll-h-c++.cc: New file.
11108
11109         Tests for module 'poll-h'.
11110         * modules/poll-h-tests: New file.
11111         * tests/test-poll-h.c: New file.
11112
11113 2010-09-28  Bruno Haible  <bruno@clisp.org>
11114
11115         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11116         * modules/poll-h (Depends-on): Add 'extensions'.
11117
11118 2010-09-28  Bruno Haible  <bruno@clisp.org>
11119
11120         New module 'poll-h'.
11121         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11122         (poll): Use modern idiom.
11123         * modules/poll-h: New file.
11124         * modules/poll (Files): Remove lib/poll.in.h.
11125         (Depends-on): Add poll-h.
11126         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11127         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11128         * m4/poll_h.m4: New file.
11129         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11130         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11131         and invoke gl_REPLACE_POLL_H.
11132         * lib/poll.c: Use common idiom.
11133         * tests/test-poll.c: Likewise.
11134         * doc/posix-headers/poll.texi: Mention the poll-h module.
11135         Suggested by Eric Blake.
11136
11137 2010-09-26  Bruno Haible  <bruno@clisp.org>
11138
11139         sys_wait: Implement WSTOPSIG.
11140         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11141         Reported by Simon Josefsson.
11142
11143 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11144
11145         stdlib, sys_wait: Avoid compilation error on mingw.
11146         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11147
11148 2010-09-26  Bruno Haible  <bruno@clisp.org>
11149
11150         stdlib tests: Avoid code duplication.
11151         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11152         * modules/sys_wait-tests (Files): Likewise.
11153         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11154         * tests/test-stdlib.c: Include test-sys_wait.h.
11155         (main): Invoke test_sys_wait_macros.
11156         * tests/test-sys_wait.c: Include test-sys_wait.h.
11157         (main): Invoke test_sys_wait_macros.
11158
11159 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11160
11161         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11162         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11163         sure Windows sockets are working before calling getaddrinfo.
11164         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11165         * doc/gnulib.texi (Windows sockets): Fix typo.
11166
11167 2010-09-25  Bruno Haible  <bruno@clisp.org>
11168
11169         Tests for module 'regex-quote'.
11170         * modules/regex-quote-tests: New file.
11171         * tests/test-regex-quote.c: New file.
11172
11173         New module 'regex-quote'.
11174         * lib/regex-quote.h: New file.
11175         * lib/regex-quote.c: New file.
11176         * modules/regex-quote: New file.
11177         Suggested by Reuben Thomas <rrt@sc3d.org>.
11178
11179 2010-09-24  Bruno Haible  <bruno@clisp.org>
11180
11181         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11182         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11183
11184 2010-09-23  Bruno Haible  <bruno@clisp.org>
11185
11186         setenv: Relax license.
11187         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11188         Blake.
11189         Requested by Eric Blake.
11190
11191 2010-09-22  Bruno Haible  <bruno@clisp.org>
11192
11193         termios: Relax license.
11194         * modules/termios (License): Change to LGPLv2+.
11195         Requested by Eric Blake.
11196
11197 2010-09-22  Bruno Haible  <bruno@clisp.org>
11198
11199         threadlib: Allow the package to change the default to 'no'.
11200         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11201         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11202         Reported by Paul Eggert.
11203
11204 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11205             Bruno Haible  <bruno@clisp.org>
11206
11207         Fix endless loop in mbmemcasecoll.
11208         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11209         byte.
11210         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11211
11212 2010-09-22  Bruno Haible  <bruno@clisp.org>
11213
11214         Tests for module 'memcoll'.
11215         * modules/memcoll-tests: New file.
11216         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11217
11218         memcoll, xmemcoll: Clarify size vs. length.
11219         * modules/memcoll.c (memcoll0): Clarify specification.
11220         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11221         passed to collate_error.
11222
11223 2010-09-22  Bruno Haible  <bruno@clisp.org>
11224
11225         Tests for module 'memcasecmp'.
11226         * modules/memcasecmp-tests: New file.
11227         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11228
11229 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11230
11231         * lib/pthread.in.h: Add split double-inclusion guard, and include
11232         system <pthread.h> if there is one.  Use @@-style as in other
11233         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11234         pthread.h doesn't.
11235         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11236         (pthread_mutexattr_settype, pthread_mutex_trylock):
11237         New static inline functions, if there's no system <pthread.h>.
11238         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11239         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11240         Approximate with mutexes if the system lacks spinlocks, as in
11241         MacOS.
11242         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11243         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11244         @@-style.  Check for spinlocks separately.
11245         (gl_PTHREAD_DEFAULTS): New macro.
11246         * modules/pthread: Redo to use a more typical style for in.h files.
11247
11248 2010-09-21  Eric Blake  <eblake@redhat.com>
11249
11250         net_if: enhance tests
11251         * tests/test-net_if.c (main): Move signature checks earlier.
11252         Print failures to stderr.
11253         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11254         Document the bug that we do not yet fix.
11255
11256 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11257
11258         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11259         about gnulib, not GSS.
11260
11261 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11262
11263         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11264         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11265         for Emacs.
11266         * build-aux/pmccabe2html: Make Makefile.am example code more
11267         cut-and-paste friendly.
11268
11269 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11270
11271         * tests/test-net_if.c: New file.
11272         * modules/net_if-tests: New file.
11273
11274 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11275
11276         pthread: add pthread_spin_destroy
11277         * lib/pthread.in.h (pthread_spin_destroy): New function.
11278
11279 2010-09-19  Bruno Haible  <bruno@clisp.org>
11280
11281         gnulib-tool: Fix --help output.
11282         * gnulib-tool (func_usage): Fix help message.
11283         Reported by Reuben Thomas <rrt@sc3d.org>.
11284
11285 2010-09-18  Jim Meyering  <meyering@redhat.com>
11286
11287         maint.mk: avoid unexpanded \n in two diagnostics
11288         * top/maint.mk (sc_prohibit_always_true_header_tests):
11289         Don't use a literal \n in a halt=... assignment.  It would not be
11290         expanded, and the two \n bytes would appear in the diagnostic output
11291         rather than the desired newline.  Use halt=$$(printf ... instead.
11292         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11293
11294 2010-09-18  Bruno Haible  <bruno@clisp.org>
11295
11296         netinet_in: Doc tweak.
11297         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11298         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11299
11300 2010-09-18  Jim Meyering  <meyering@redhat.com>
11301
11302         init.sh: correct an outdated comment
11303         * tests/init.sh (create_exe_shims_):  s/function/alias/
11304
11305         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11306         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11307         a file named "*.exe" is removed between the glob expansion and the
11308         processing of that oddly named file.
11309
11310 2010-09-17  Eric Blake  <eblake@redhat.com>
11311
11312         mirbsd: add some more support
11313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11314         in BSD family.
11315         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11316         devices as OpenBSD.
11317         * m4/host-os.m4 (mirbsd): Add MirBSD.
11318
11319         tests: fix unportable assumption on sys/wait.h
11320         * tests/test-sys_wait.c (main): Relax test.
11321         * tests/test-stdlib.c (main): Likewise.
11322
11323         init.sh: accomodate directory with no .exes
11324         * tests/init.sh: Accomodate directory containing only scripts.
11325
11326         tests: avoid compiler warning
11327         * tests/test-stdlib.c (main): Use the variable.
11328
11329         fdutimens, fdutimensat: update signature, again
11330         * lib/utimens.h (gl_futimens): Delete, and move signature...
11331         (fdutimens): ...here.
11332         (fdutimensat): Rearrange signature.
11333         (lutimensat): Rename variable for clarity.
11334         * lib/fdutimensat.c (fdutimensat): Update signature.
11335         * lib/utimens.c (fdutimens): Likewise.
11336         (gl_futimens): Delete.
11337         (utimens, lutimens): Update callers.
11338         * lib/futimens.c (futimens): Likewise.
11339         * tests/test-fdutimensat.c: Likewise.
11340         * tests/test-utimens.c: Likewise.
11341         * tests/test-futimens.h: Update comment.
11342         * NEWS: Mention this.
11343         Suggested by Paul Eggert.
11344
11345 2010-09-17  Bruno Haible  <bruno@clisp.org>
11346
11347         Take over the maintenance of some older macros from Autoconf.
11348         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11349         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11350         GNU Autoconf.
11351         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11352         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11353
11354 2010-09-17  Eric Blake  <eblake@redhat.com>
11355
11356         fdutimensat: drop atflag validation
11357         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11358         with valid fd, to close a race scenario where futimens is
11359         unsupported and FILE was replaced by a symlink.
11360         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11361         accordingly.
11362         Suggested by Paul Eggert.
11363
11364 2010-09-16  Bruno Haible  <bruno@clisp.org>
11365
11366         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11367         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11368
11369 2010-09-16  Bruno Haible  <bruno@clisp.org>
11370
11371         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11372         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11373         login_tty exists.
11374         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11375
11376 2010-09-16  Bruno Haible  <bruno@clisp.org>
11377
11378         login_tty: Make the replacement code work on BSD systems.
11379         * lib/login_tty.c: Include <sys/ioctl.h>.
11380         (login_tty): Use ioctl TIOCSCTTY when available.
11381         * modules/login_tty (Depends-on): Add sys_ioctl.
11382         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11383
11384 2010-09-16  Bruno Haible  <bruno@clisp.org>
11385
11386         login_tty: Stricter unit test.
11387         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11388         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11389         and tcgetsid() after login_tty.
11390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11391
11392 2010-09-16  Bruno Haible  <bruno@clisp.org>
11393
11394         New module 'tcgetsid'.
11395         * lib/tcgetsid.c: New file.
11396         * m4/tcgetsid.m4: New file.
11397         * modules/tcgetsid: New file.
11398         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11399         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11400         GNULIB_TCGETSID, HAVE_TCGETSID.
11401         * lib/termios.in.h: Include <sys/types.h>.
11402         (tcgetsid): New declaration.
11403         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11404         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11405         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11406         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11407
11408 2010-09-16  Bruno Haible  <bruno@clisp.org>
11409
11410         Tests for module 'termios'.
11411         * modules/termios-c++-tests: New file.
11412         * modules/termios-tests: New file.
11413         * tests/test-termios-c++.cc: New file.
11414         * tests/test-termios.c: New file.
11415
11416         New module 'termios'.
11417         * modules/termios: New file.
11418         * lib/termios.in.h: New file.
11419         * m4/termios_h.m4: New file.
11420         * doc/posix-headers/termios.texi: Mention the new module.
11421
11422 2010-09-16  Eric Blake  <eblake@redhat.com>
11423
11424         fdutimensat: add an atflag parameter
11425         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11426         * lib/utimens.h (fdutimensat): Update prototype.
11427         * tests/test-fdutimensat.c: Adjust test to match.
11428         * NEWS: Document the change.
11429         Suggested by Paul Eggert.
11430
11431 2010-09-16  Bruno Haible  <bruno@clisp.org>
11432
11433         Fix typos in comments.
11434         * lib/striconveh.h: Fix typo in comment.
11435         * lib/login_tty.c (login_tty): Likewise.
11436
11437 2010-09-15  Bruno Haible  <bruno@clisp.org>
11438
11439         stdlib: clarify MirBSD WEXITSTATUS bug
11440         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11441         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11442
11443 2010-09-15  Eric Blake  <eblake@redhat.com>
11444
11445         stdlib: work around MirBSD WEXITSTATUS bug
11446         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11447         * modules/stdlib (Depends-on): Add sys_wait.
11448         * tests/test-sys_wait.c (main): Enhance test.
11449         * tests/test-stdlib.c (main): Likewise.
11450         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11451
11452         docs: mention MacOS issue with WEXITSTATUS(constant)
11453         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11454         issue.
11455         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11456
11457         strnlen: add tests
11458         * modules/strnlen-tests: New file.
11459         * tests/test-strnlen.c: Likewise.
11460
11461 2010-09-14  Bruno Haible  <bruno@clisp.org>
11462
11463         unistr/base: Avoid link errors when module 'libunistring' is also used.
11464         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11465         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11466         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11467         Declare also when HAVE_LIBUNISTRING is set.
11468         Reported by Pádraig Brady <P@draigbrady.com>.
11469
11470 2010-09-14  Eric Blake  <eblake@redhat.com>
11471
11472         test-rawmemchr: make more robust
11473         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11474         (Depends-on, configure.ac): Add needed prerequisites to use it.
11475         * modules/memchr-tests (Files, Depends-on, configure.ac):
11476         Likewise, to avoid implicit reliance on memchr module prereqs.
11477         * tests/test-memchr.c (main): Ensure proper masking.
11478         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11479         reads.
11480
11481         memchr: detect glibc Alpha bug
11482         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11483         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11484         Alpha.
11485         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11486         * tests/test-memchr.c (main): Enhance test.
11487         Reported by Nelson H. F. Beebe.
11488
11489 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11490
11491         fts, getcwd, glob: audit for dirfd returning -1
11492         * lib/fts.c (opendir): Remove #define; no longer used.
11493         (opendirat): New arg PDIR_FD.  All callers changed.
11494         (fts_build, _opendir2): Use new opendirat to avoid the need for
11495         dirfd, or for checking whether dirfd returns a negative value.
11496         Don't use opendir; always use openat followed by fdopendir.
11497         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11498         it.
11499         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11500         returns -1 here.
11501         * modules/fts (Depends-on): Remove dirfd.
11502         * modules/getcwd (Depends-on): Likewise.
11503
11504 2010-09-13  Eric Blake  <eblake@redhat.com>
11505
11506         float: fix broken MirBSD header
11507         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11508         * doc/posix-headers/float.texi (float.h): Document it.
11509
11510 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11511
11512         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11513         * lib/fts.c (opendirat): New arg extra_flags.
11514         (__opendir2): Use it to avoid following symlinks when opening
11515         a directory, if symlinks are not supposed to be followed.  See
11516         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11517
11518         fdopendir: preserve argument fd before returning
11519         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11520         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11521         (fdopendir): Use them, arranging for FD to be open to the same
11522         directory that it was when it started.  (It might be temporarily
11523         closed while fdopendir is running, so this not thread- or
11524         signal-safe.)  Be careful to do the right thing even when file
11525         descriptors are scarce and dup fails with errno == EMFILE.  See
11526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11527
11528 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11529
11530         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11531         * NEWS: Document change.
11532         * m4/regex.m4: Disable test for regoff_t size.
11533
11534 2010-09-13  Jim Meyering  <meyering@redhat.com>
11535
11536         fts: don't operate on an invalid file descriptor after failed dup
11537         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11538         negative file descriptor.
11539
11540 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11541
11542         savedir: add streamsavedir, deprecate fdsavedir
11543         * NEWS: Mention deprecation of fdsavedir.
11544         * lib/savedir.c (streamsavedir): New extern function, whose name
11545         ends in "savedir" to be consistent with the others.  This differs
11546         from savedirstream in that it doesn't close its argument.  The
11547         next version of GNU tar will use this instead of fdsavedir, to
11548         avoid some race conditions and conserve file descriptors.
11549         (savedirstream): Reimplement as a wrapper around streamsavedir.
11550         (fdsavedir): Add a comment deprecating this function.  As far as
11551         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11552         * lib/savedir.h (streamsavedir): New decl.
11553         (fdsavedir): Add a comment deprecating this.
11554
11555 2010-09-10  Bruno Haible  <bruno@clisp.org>
11556
11557         langinfo: Fix last commit.
11558         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11559         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11561
11562 2010-09-10  Bruno Haible  <bruno@clisp.org>
11563
11564         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11565         * lib/progreloc.c (O_EXEC): Define fallback.
11566
11567 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11568
11569         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11570         * NEWS: Document recent changes to fcntl-h.
11571         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11572         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11573         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11574         Similarly for O_SEARCH; this last was already true, but not documented.
11575         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11576         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11577         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11578         Likewise.
11579         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11580         is zero, not whether it is defined.
11581         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11582         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11583         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11584
11585 2010-09-10  Bruno Haible  <bruno@clisp.org>
11586
11587         langinfo, nl_langinfo: Fix for IRIX 5.3.
11588         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11589         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11590         HAVE_LANGINFO_YESEXPR.
11591         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11592         HAVE_LANGINFO_YESEXPR.
11593         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11594         HAVE_LANGINFO_T_FMT_AMPM is 0.
11595         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11596         HAVE_LANGINFO_YESEXPR is 0.
11597         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11598         NOEXPR.
11599         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11600         * doc/posix-functions/nl_langinfo.texi: Likewise.
11601         Reported by Eric Blake.
11602
11603 2010-09-10  Bruno Haible  <bruno@clisp.org>
11604
11605         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11606         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11607         on FreeBSD 8.0 and OpenBSD 4.6.
11608         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11609         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11610         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11611         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11612         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11613         ac_includes_default.
11614         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11615
11616 2010-09-09  Eric Blake  <eblake@redhat.com>
11617
11618         strsignal: work around NetBSD bug
11619         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11620         * lib/string.in.h (includes): Likewise.
11621         * doc/posix-functions/strsignal.texi (strsignal): Document the
11622         bug.
11623         Reported by Nelson H. F. Beebe.
11624
11625         gnulib-tool: work with NetBSD /bin/sh
11626         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11627         (func_get_description, func_get_comment, func_get_status)
11628         (func_get_notice, func_get_applicability, func_get_filelist)
11629         (func_get_dependencies, func_get_autoconf_early_snippet)
11630         (func_get_autoconf_snippet, func_get_automake_snippet)
11631         (func_get_include_directive, func_get_link_directive)
11632         (func_get_license, func_get_maintainer, func_import): Avoid
11633         shell syntax errors from parsing syntax extensions.
11634
11635 2010-09-09  Bruno Haible  <bruno@clisp.org>
11636
11637         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11638         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11639         a reliable way to determine whether the 'alias' command works.
11640
11641 2010-09-08  Jim Meyering  <meyering@redhat.com>
11642
11643         init.sh: penalize a set-x-impaired shell; don't disqualify it
11644         * tests/init.sh: Too many shells corrupt application stderr when
11645         you set -x, so we can't afford to disqualify them, since at least
11646         on Irix-6.5, that would disqualify all bourne shells.
11647         Instead, use a two-pass approach.
11648         On the first pass, try to find a shell that meets the stricter
11649         condition that set -x does not corrupt stderr.
11650         If no shell meets the stricter condition, retest each candidate
11651         shell, but without that extra condition.  Finally, when
11652         VERBOSE=yes is requested and set -x might cause trouble, simply
11653         issue a warning and refrain from enabling debug output.
11654
11655 2010-09-08  Eric Blake  <eblake@redhat.com>
11656
11657         unsetenv: fix OpenBSD bug
11658         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11659         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11660         documentation.
11661         Reported by Jim Meyering.
11662
11663         strtod: work around IRIX 6.5 bug
11664         * lib/strtod.c (strtod): Reparse number on shorter string if
11665         exponent parse was invalid.
11666         * tests/test-strtod.c (main): Add check for "0x1p 2".
11667         Reported by Tom G. Christensen.
11668
11669         getopt: optimize previous patch
11670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11671         empty variable.  Speed up awk script.
11672         Reported by Paolo Bonzini.
11673
11674 2010-09-08  Jim Meyering  <meyering@redhat.com>
11675
11676         test.sh: disqualify shells for which set -x corrupts stderr
11677         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11678         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11679         appear in stderr output.  For example, this command:
11680             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11681         prints "P=1" on those two systems:
11682
11683 2010-09-08  Bruno Haible  <bruno@clisp.org>
11684
11685         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11686         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11687         commands, because some shells ignore redirections when there is an
11688         error in the command lookup.
11689         Reported by Eric Blake.
11690
11691 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11692
11693         * lib/regex.h: Fix a mention of `regex_compile' (should be
11694         `re_compile_pattern').
11695         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11696         (re_set_registers): Correct name of parameter in comment.
11697
11698         * doc/regex.texi: Add documentation for missing syntax flags.
11699         Remove commented-out documentation of defunct syntax option
11700         RE_NO_EMPTY_ALTS.
11701         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11702         Add documentation of re_set_registers.
11703         Document trick to re-use a pattern buffer by setting fastmap manually.
11704         Update documentation of struct re_pattern_buffer per public members.
11705         Uncomment documentation of equivalence class operators and
11706         collating symbol operators, since they are now implemented,
11707         Explain leftmost-longest matching in relation to alternatives.
11708         Tidy documentation of substring matching.
11709         Remove POSIX documentation, which is done better in
11710         glibc, and refer the reader there. Keep BSD API documentation, as
11711         that is not readily available elsewhere.
11712
11713 2010-09-07  Eric Blake  <eblake@redhat.com>
11714
11715         getopt: handle POSIXLY_CORRECT set but not exported
11716         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11717         export state of POSIXLY_CORRECT, due to bash set -o posix.
11718         Reported by Dustin J. Mitchell.
11719
11720 2010-09-05  Bruno Haible  <bruno@clisp.org>
11721
11722         gnulib-tool: Highlight the changed options.
11723         * gnulib-tool (func_usage): Display the --import, --add-import,
11724         --remove-import explanations in bold font.
11725
11726 2010-09-06  Karl Berry  <karl@gnu.org>
11727
11728         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11729
11730 2010-09-05  Bruno Haible  <bruno@clisp.org>
11731
11732         uniwidth/width: Update comment.
11733         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11734         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11735
11736 2010-09-05  Bruno Haible  <bruno@clisp.org>
11737
11738         isinf, isnan: Relax license.
11739         * modules/isinf (License): Change from GPL to LGPL, with consent from
11740         Ben Pfaff.
11741         * modules/isnan (License): Likewise.
11742         Requested by Ludovic Courtès.
11743
11744 2010-09-04  Bruno Haible  <bruno@clisp.org>
11745
11746         gnulib-tool: Help migration from --import to --add-import or --update.
11747         * gnulib-tool: Emit a verbose error message when --import is used
11748         without any module name.
11749
11750 2010-09-04  Bruno Haible  <bruno@clisp.org>
11751
11752         Update doc about gnulib-tool.
11753         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11754         'gnulib-tool --update' in more detail.
11755         Reported by Eric Blake.
11756
11757 2010-09-04  Bruno Haible  <bruno@clisp.org>
11758
11759         gnulib-tool: Change --import. New options --add/remove-import.
11760         * gnulib-tool: New options --add-import, --remove-import.
11761         (func_usage): Document them.
11762         (have_associative): Define always.
11763         (func_import): In import mode, don't merge the specified settings with
11764         the cached settings. Implement remove-import mode.
11765         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11766         Explain when to use them versus --import.
11767         (Simple update): Use --add-import instead of --import.
11768         * NEWS: Mention the change.
11769
11770 2010-09-04  Bruno Haible  <bruno@clisp.org>
11771
11772         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11773         separate gnulib.mk.
11774
11775 2010-09-04  Bruno Haible  <bruno@clisp.org>
11776
11777         gnulib-tool: Don't talk about CVS any more.
11778         * gnulib-tool (func_usage, func_import): Write "version control"
11779         instead of CVS.
11780
11781 2010-09-04  Jim Meyering  <meyering@redhat.com>
11782
11783         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11784         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11785         false positives (whose names may be ill-chosen) when searching
11786         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11787         would cause a false-positive.
11788
11789         avoid coreutils "make distcheck" failure
11790         Coreutils tests with an absolute build directory name that contains
11791         a space.  Not quoting this directory name caused a failure.
11792         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11793         * tests/test-vc-list-files-cvs.sh: Likewise.
11794
11795 2010-09-04  Bruno Haible  <bruno@clisp.org>
11796
11797         gnulib-tool: Avoid error when run in a package without Makefile.am.
11798         * gnulib-tool: When collecting the m4dirs in a package that does not
11799         have a Makefile.am, eliminate those directories that contain no
11800         gnulib-cache.m4. Fix expression that counts these directories.
11801
11802 2010-09-04  Bruno Haible  <bruno@clisp.org>
11803
11804         update-copyright test: Improve output when perl is missing or too old.
11805         * tests/test-update-copyright.sh: Move test of Perl version down after
11806         the test whether Perl exists. Provide an explanation relating Perl's
11807         error message to Automake's SKIP: message.
11808
11809 2010-09-04  Bruno Haible  <bruno@clisp.org>
11810
11811         Don't augment PATH in TESTS_ENVIRONMENT.
11812         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11813         set abs_aux_dir instead of augmenting PATH.
11814         * modules/vc-list-files-tests (Makefile.am): Likewise.
11815         * tests/test-update-copyright.sh: Augment PATH here.
11816         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11817         path_prepend_.
11818         * tests/test-vc-list-files-git.sh: Likewise.
11819
11820 2010-09-04  Jim Meyering  <meyering@redhat.com>
11821
11822         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11823         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11824
11825 2010-09-04  Bruno Haible  <bruno@clisp.org>
11826
11827         strdup: Fix compilation error in C++ mode.
11828         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11829         the macro.
11830
11831 2010-09-04  Bruno Haible  <bruno@clisp.org>
11832
11833         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11834         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11835         macro into a function.
11836         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11837
11838 2010-09-04  Bruno Haible  <bruno@clisp.org>
11839
11840         Set PATH_SEPARATOR the same way autoconf does.
11841         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11842         the value of PATH_SEPARATOR the same way autoconf-generated configure
11843         scripts do.
11844         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11845         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11846
11847 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11848
11849         Set PATH_SEPARATOR the same way autoconf does.
11850         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11851         the same way autoconf-generated configure scripts do.
11852         * posix-modules: Likewise.
11853
11854 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11855
11856         hash: fix safe_hasher const typo
11857         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11858         const; otherwise, there is a type error later.
11859
11860 2010-09-02  Jim Meyering  <meyering@redhat.com>
11861
11862         test-update-copyright.sh: require perl 5.8.0
11863         * tests/test-update-copyright.sh: Require 5.8.0,
11864         which Tom G. Christensen has confirmed is adequate,
11865         while 5.6.1 is not.
11866
11867 2010-09-02  Eric Blake  <eblake@redhat.com>
11868
11869         tests: init.sh improvements for re-exec'ing with zsh
11870         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11871         -vx through shell re-exec.
11872         Reported by Tom G. Christensen.
11873
11874         wctype: fix typo in previous commit
11875         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11876         Reported by Ludovic Courtès.
11877
11878 2010-09-02  Jim Meyering  <meyering@redhat.com>
11879
11880         test-update-copyright.sh: skip test if Perl is too old
11881         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11882         Reported by Tom G. Christensen.
11883
11884 2010-09-02  Bruno Haible  <bruno@clisp.org>
11885
11886         wctype: Avoid compilation error on IRIX 6.5.30.
11887         * lib/wctype.in.h (iswblank): Declare with a replacement if
11888         REPLACE_ISWBLANK is set.
11889         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11890         declared. Set REPLACE_ISWBLANK.
11891         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11892         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11893         * doc/posix-headers/wctype.texi: Likewise.
11894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11895
11896 2010-09-01  Bruno Haible  <bruno@clisp.org>
11897
11898         New module 'socketlib'.
11899         * modules/socketlib: New file.
11900         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11901         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11902         * modules/sockets (Depends-on): Add socketlib.
11903         Suggested by Sam Steingold <sds@gnu.org>.
11904
11905 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11906
11907         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11908
11909         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11910         when one needs search access to a directory but not read access.
11911         On systems where it is available, it works in some cases where
11912         O_RDONLY does not, namely on directories that are searchable but
11913         not readable, and which need only to be searchable.  If O_SEARCH
11914         is not available, fall back to the traditional method of using
11915         O_RDONLY.
11916
11917         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11918         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11919         when opening a directory that needs only to be searchable.
11920         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11921         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11922         * lib/openat-proc.c (openat_proc_name): Likewise.
11923         * lib/openat.c (openat_needs_fchdir): Likewise.
11924         * lib/save-cwd.c (save_cwd): Likewise.
11925         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11926
11927 2010-08-28  Bruno Haible  <bruno@clisp.org>
11928
11929         New module 'host-cpu-c-abi'.
11930         * modules/host-cpu-c-abi: New file.
11931         * m4/host-cpu-c-abi.m4: New file, based on part of
11932         clisp/src/m4/general.m4.
11933         Requested by Sam Steingold <sds@gnu.org>.
11934
11935 2010-08-31  Eric Blake  <eblake@redhat.com>
11936         and Jim Meyering  <meyering@redhat.com>
11937
11938         hash: factor, and guard against misbehaving hasher function
11939         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11940         of table->hasher's return value.  Also protect against a hash value
11941         so large that adding it to table->bucket results in a NULL pointer.
11942         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11943         Use it in place of open-coded check-and-abort.
11944
11945 2010-08-30  Bruno Haible  <bruno@clisp.org>
11946
11947         hash: silence spurious clang warning
11948         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11949         Reported by Eric Blake.
11950
11951 2010-08-30  Eric Blake  <eblake@redhat.com>
11952
11953         strstr, memmem, strcasestr: avoid leaked shell message
11954         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11955         FreeBSD.
11956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11957         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11958
11959         tests: silence clang warning
11960         * tests/test-malloca.c (do_allocation): Avoid dead store.
11961
11962 2010-08-29  Bruno Haible  <bruno@clisp.org>
11963
11964         gettext: Fix recent mistake.
11965         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11966
11967 2010-08-29  Bruno Haible  <bruno@clisp.org>
11968
11969         selinux-h: Offer a --without-selinux option.
11970         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11971         --without-selinux was specified, skip all tests and define
11972         HAVE_SELINUX_SELINUX_H to 0.
11973         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11974         set LIB_SELINUX to empty.
11975         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11976         gl_LIBSELINUX. If --without-selinux was specified, replace
11977         selinux/context.h.
11978         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11979
11980 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11981             Bruno Haible  <bruno@clisp.org>
11982
11983         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11984         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11985         of HAVE_REALLOC.
11986         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11987         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11988         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11989         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11990
11991 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11992             Bruno Haible  <bruno@clisp.org>
11993
11994         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11995         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11996         HAVE_CALLOC.
11997         * lib/xmalloc.c: Update accordingly.
11998         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11999         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12000         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12001
12002 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12003             Bruno Haible  <bruno@clisp.org>
12004
12005         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12006         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12007         HAVE_MALLOC.
12008         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12009         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12010         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12011
12012 2010-08-29  Bruno Haible  <bruno@clisp.org>
12013
12014         Update modules list.
12015         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12016         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12017         (String handling <string.h>): Add astrxfrm.
12018         (File system functions): Add readlinkat.
12019
12020 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12021
12022         Tests for module 'realloc-gnu'.
12023         * modules/realloc-gnu-tests: New file.
12024         * tests/test-realloc-gnu.c: New file.
12025
12026         Tests for module 'calloc-gnu'.
12027         * modules/calloc-gnu-tests: New file.
12028         * tests/test-calloc-gnu.c: New file.
12029
12030         Tests for module 'malloc-gnu'.
12031         * modules/malloc-gnu-tests: New file.
12032         * tests/test-malloc-gnu.c: New file.
12033
12034 2010-08-28  Bruno Haible  <bruno@clisp.org>
12035
12036         Rename module 'realloc' -> 'realloc-gnu'.
12037         * modules/realloc-gnu: New file, copied from modules/realloc.
12038         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12039         obsolete.
12040         * modules/mgetgroups (Depends-on): Update.
12041         * doc/posix-functions/realloc.texi: Update.
12042         * NEWS: Mention the change.
12043
12044         Rename module 'calloc' -> 'calloc-gnu'.
12045         * modules/calloc-gnu: New file, copied from modules/calloc.
12046         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12047         obsolete.
12048         * doc/posix-functions/calloc.texi: Update.
12049         * NEWS: Mention the change.
12050
12051         Rename module 'malloc' -> 'malloc-gnu'.
12052         * modules/malloc-gnu: New file, copied from modules/malloc.
12053         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12054         obsolete.
12055         * modules/argp (Depends-on): Update.
12056         * modules/regex (Depends-on): Update.
12057         * doc/posix-functions/malloc.texi: Update.
12058         * NEWS: Mention the change.
12059
12060 2010-08-28  Eric Blake  <eblake@redhat.com>
12061
12062         pread, pwrite: add missing dependency
12063         * modules/pread (Depends-on): Add extensions.
12064         * modules/pwrite (Depends-on): Likewise.
12065
12066 2010-08-28  Bruno Haible  <bruno@clisp.org>
12067
12068         unistr/u*-strchr: Fix tests dependencies.
12069         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12070         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12071         Reported by Ian Beckwith <ianb@erislabs.net>.
12072
12073 2010-08-28  Bruno Haible  <bruno@clisp.org>
12074
12075         read-file: Don't occupy too much unused memory.
12076         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12077
12078 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12079             Eric Blake  <eblake@redhat.com>
12080             Bruno Haible  <bruno@clisp.org>
12081
12082         read-file: Avoid memory reallocations with regular files.
12083         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12084         (fread_file): With regular files, use the remaining length as the
12085         initial buffer size.  Check against overflow.
12086         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12087         sys_stat.
12088
12089 2010-08-28  Bruno Haible  <bruno@clisp.org>
12090
12091         ftello: Relax license.
12092         * modules/ftello (License): Relax to LGPLv2+.
12093         Reported by Eric Blake.
12094
12095 2010-08-28  Bruno Haible  <bruno@clisp.org>
12096
12097         Avoid relocwrapper link errors due to gnulib replacement functions.
12098         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12099         function.
12100         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12101
12102 2010-08-28  Bruno Haible  <bruno@clisp.org>
12103
12104         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12105         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12106         defined.
12107         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12108         Suggested by Eric Blake.
12109
12110 2010-08-28  Bruno Haible  <bruno@clisp.org>
12111
12112         sys_socket, netdb: Ensure socklen_t gets defined.
12113         * modules/sys_socket (Depends-on): Add socklen.
12114         * modules/netdb (Depends-on): Likewise.
12115         * modules/getaddrinfo (Depends-on): Remove socklen.
12116         * modules/getsockopt (Depends-on): Likewise.
12117         * modules/setsockopt (Depends-on): Likewise.
12118         * tests/test-sys_socket.c: Check that socklen_t is defined.
12119         * tests/test-netdb.c: Likewise.
12120         * m4/socklen.m4: Update comments.
12121         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12122
12123 2010-08-27  Eric Blake  <eblake@redhat.com>
12124
12125         login_tty: add missing dependency
12126         * modules/login_tty (Depends-on): Add pty.
12127
12128 2010-08-26  Eric Blake  <eblake@redhat.com>
12129
12130         lib-symbol-versions: fix m4 quoting
12131         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12132         format for AC_LINK_IFELSE.
12133
12134         glob: fix compile test
12135         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12136
12137         btowc: fix missing file
12138         * modules/btowc (Files): Also ship locale-fr.m4.
12139
12140         lseek: fix link test
12141         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12142         AC_LINK_IFELSE.
12143
12144         include_next: silence autoconf 2.68 warning
12145         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12146         AC_COMPILE_IFELSE as special.
12147         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12148         autoconf < 2.68.
12149
12150         acl: fix compilation test
12151         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12152         AC_COMPILE_IFELSE.
12153
12154 2010-08-26  Bruno Haible  <bruno@clisp.org>
12155
12156         Modernize AC_TRY_RUN invocations.
12157         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12158         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12159         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12160         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12161         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12162         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12163         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12164         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12165         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12166         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12167         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12168         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12169         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12170         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12171         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12172         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12173         gl_MBRLEN_NUL_RETVAL): Likewise.
12174         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12175         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12176         Likewise.
12177         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12178         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12179         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12180         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12181         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12182         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12183         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12184         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12185         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12186         Likewise.
12187         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12188         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12189         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12190         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12191         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12192         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12193         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12194         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12195         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12197
12198 2010-08-26  Bruno Haible  <bruno@clisp.org>
12199
12200         Modernize AC_TRY_LINK invocations.
12201         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12202         AC_TRY_LINK.
12203         * m4/argp.m4 (gl_ARGP): Likewise.
12204         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12205         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12206         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12207         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12208         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12209         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12210         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12211         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12212         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12213         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12214         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12215         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12216         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12217         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12218         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12219         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12220         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12221         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12222         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12223         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12224         Likewise.
12225         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12226         Likewise.
12227         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12228         Likewise.
12229         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12231         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12232         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12233         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12234         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12235         * m4/servent.m4 (gl_SERVENT): Likewise.
12236         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12237         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12238         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12239         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12240         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12241         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12242         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12243         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12244         * modules/tsearch-tests (configure.ac): Likewise.
12245
12246 2010-08-26  Bruno Haible  <bruno@clisp.org>
12247
12248         Modernize AC_TRY_COMPILE invocations.
12249         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12250         AC_TRY_COMPILE.
12251         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12252         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12253         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12254         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12255         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12256         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12257         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12258         * m4/lock.m4 (gl_LOCK): Likewise.
12259         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12260         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12261         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12262         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12263         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12264         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12265         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12267         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12268         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12269         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12270         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12271         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12272         extraneous semicolon.
12273
12274 2010-08-26  Jim Meyering  <meyering@redhat.com>
12275
12276         stat-time: relax license LGPL
12277         * modules/stat-time (License): Change from GPL to LGPL,
12278         with consent from all contributors, for use in libguile.
12279         Requested by Ludovic Courtès.
12280
12281 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12282
12283         poll: return immediately on POLLHUP.
12284         * lib/poll.c (poll): Always set timeout before wait_timeout is
12285         computed.
12286
12287 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12288
12289         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12290         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12291         rmdir ("dir/.//"), unlinkat.
12292
12293 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12294
12295         stdbool: avoid spurious failure with modern xlc
12296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12297
12298 2010-08-24  Bruno Haible  <bruno@clisp.org>
12299
12300         getloadavg: simplify code
12301         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12302         gl_have_func. Update comments.
12303
12304 2010-08-24  Eric Blake  <eblake@redhat.com>
12305
12306         getloadavg: don't define SVR4 on cygwin
12307         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12308         only define SVR4 when -lkvm is required.
12309         Reported by Yaakov Selkowitz.
12310
12311 2010-08-24  Bruno Haible  <bruno@clisp.org>
12312
12313         priv-set: fix comment
12314         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12315
12316 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12317
12318         priv-set: fix comments
12319         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12320         to match code, as suggested by David Bartley in:
12321         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12322
12323 2010-08-23  Eric Blake  <eblake@redhat.com>
12324
12325         stdbool: avoid rejecting clang
12326         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12327         * tests/test-stdbool.c: Enable more tests if using the system
12328         <stdbool.h> instead of the gnulib replacement.
12329         (main): Move xlc bug test to a runtime test for all compilers.
12330         Reported by Anders Kaseorg.
12331
12332         argz: fix shell quoting issue
12333         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12334         Reported by Charles Wilson.
12335
12336 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12337             Erik Faye-Lund <kusmabite@gmail.com>
12338
12339         poll, select: handle ERROR_BROKEN_PIPE.
12340         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12341         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12342         * lib/select.c (win32_compute_revents): Do not mark a pipe
12343         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12344
12345 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12346
12347         fts: allow compilation with C++
12348         * lib/fts_.h: Specify extern "C" linkage with C++.
12349
12350 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12351
12352         Fix gnulib-tool sed script de-commentation for AIX sed.
12353         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12354         sed.
12355
12356 2010-08-17  Eric Blake  <eblake@redhat.com>
12357
12358         test-stddef: test for (some) offsetof bugs
12359         * tests/test-stddef.c: Enhance test to ensure correct type of
12360         offsetof.
12361         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12362         that we are not fixing at this time.
12363
12364 2010-08-15  Bruno Haible  <bruno@clisp.org>
12365
12366         stpncpy: Allow stpncpy to be defined as a macro.
12367         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12368         if it's already correctly declared.
12369         * lib/string.in.h (stpncpy): Undefine before redefining.
12370         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12371
12372 2010-08-14  Bruno Haible  <bruno@clisp.org>
12373
12374         Rename module 'memxfrm' to 'amemxfrm'.
12375         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12376         (amemxfrm): Renamed from memxfrm.
12377         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12378         (amemxfrm): Renamed from memxfrm.
12379         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12380         * NEWS: Mention the change.
12381         * MODULES.html.sh (String handling <string.h>): Update.
12382         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12383         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12384         * lib/unicase/u16-casexfrm.c: Likewise.
12385         * lib/unicase/u32-casexfrm.c: Likewise.
12386         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12387         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12388         * lib/uninorm/u16-normxfrm.c: Likewise.
12389         * lib/uninorm/u32-normxfrm.c: Likewise.
12390         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12391         memxfrm.
12392         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12393         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12394         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12395         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12396         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12397         Suggested by Paul Eggert.
12398
12399 2010-08-14  Bruno Haible  <bruno@clisp.org>
12400
12401         Tests for module 'astrxfrm'.
12402         * modules/astrxfrm-tests: New file.
12403         * tests/test-astrxfrm.c: New file.
12404
12405         New module 'astrxfrm'.
12406         * lib/astrxfrm.h: New file.
12407         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12408         * modules/astrxfrm: New file.
12409
12410 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12411
12412         regex: Tweak doc.
12413         * doc/regex.texi (Overview): Don't mention regex.c.
12414         (GNU Regular Expression Compiling): Likewise.
12415         (Match-end-of-line Operator): Mention 'not_eol'.
12416
12417 2010-08-14  Brian Gough  <bjg@gnu.org>
12418             Bruno Haible  <bruno@clisp.org>
12419
12420         git-merge-changelog: add doc relating to use with bzr and hg.
12421         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12422
12423 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12424
12425         pthread: fix pthread.h creation for srcdir != builddir
12426         * modules/pthread (Makefile.am): Fix the rule to work also in a
12427         non-srcdir build.
12428
12429 2010-08-13  Karl Berry  <karl@gnu.org>
12430
12431         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12432         * doc/posix-*/*: force line break before @url of POSIX
12433         specifications.
12434         Suggested by Werner Lemberg.
12435
12436 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12437
12438         strtod: fix const diagnostic
12439         * lib/strtod.c (strtod): Don't assign const char * to char *,
12440         as this elicits a warning from GCC when warnings are enabled.
12441
12442 2010-08-10  Pádraig Brady <P@draigbrady.com>
12443         and Eric Blake  <eblake@redhat.com>
12444
12445         copy-acl: ignore ENOTSUP on HP-UX
12446         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12447         so that it is available for HP-UX.
12448         * lib/copy-acl.c (qcopy_acl): Use it.
12449         Reported by Patrick M. Callahan.
12450
12451 2010-08-10  Eric Blake  <eblake@redhat.com>
12452
12453         open, chown: relax license
12454         * modules/open (License): Change to LGPLv2+, with consent by all
12455         authors, for use in augeas.
12456         * modules/chown (License): Likewise.
12457         * modules/lchown (Likewise): Likewise.
12458         Requested by Adam Stokes.
12459
12460 2010-08-09  Karl Berry  <karl@gnu.org>
12461
12462         * build-aux/ar-lib: new file, import from Automake.
12463         * config/srclist.txt: autocheck for updates.
12464
12465 2010-08-09  Eric Blake  <eblake@redhat.com>
12466
12467         readlinkat: adjust client modules
12468         * modules/areadlinkat (Depends-on): Use readlinkat, not
12469         symlinkat.
12470         * modules/areadlinkat-with-size (Depends-on): Likewise.
12471
12472         mknod: be more vocal about danger of running tests as root
12473         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12474         root, since that is just asking for problems.
12475         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12476
12477         readlinkat: split into its own module
12478         * modules/symlinkat: Split readlinkat...
12479         * modules/readlinkat: ...into separate module.
12480         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12481         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12482         * lib/symlinkat.c (readlinkat): Move...
12483         * lib/readlinkat.c: ...into new file.
12484         * modules/symlinkat-tests: Split readlinkat test...
12485         * modules/readlinkat-tests: ...into separate module.
12486         * tests/test-symlinkat.c: Split...
12487         * tests/test-readlinkat.c: ...into new file.
12488         * NEWS: Document the split.
12489         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12490         * lib/unistd.in.h (readlinkat): Likewise.
12491         Suggested by Bruno Haible.
12492
12493 2010-08-08  Bruno Haible  <bruno@clisp.org>
12494
12495         memxfrm: Speed up.
12496         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12497         that usually only one call to strxfrm is necessary for each string
12498         part.
12499         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12500
12501 2010-08-07  Karl Berry  <karl@gnu.org>
12502
12503         * doc/posix-headers/limits.texi,
12504         * doc/posix-functions/malloc.texi,
12505         * doc/posix-functions/strsignal.texi: missing @item.
12506         * doc/ld-version-script.texi: spurious leading i.
12507         * doc/regex.texi (Interval Operators): no commas inside @var.
12508
12509 2010-08-01  Bruno Haible  <bruno@clisp.org>
12510
12511         Integrate the regex documentation.
12512         * doc/gnulib.texi: Define 'cn' index.
12513         (Regular expressions): New a chapter that includes regex.texi and
12514         regexprops-generic.texi.
12515         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12516         syntax.
12517
12518         Whitespace cleanup.
12519         * doc/regex.texi: Remove trailing spaces.
12520
12521         Add regex documentation.
12522         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12523         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12524         Written by Kathy A. Hargreaves and Karl Berry.
12525
12526 2010-08-01  Bruno Haible  <bruno@clisp.org>
12527
12528         link: Update documentation.
12529         * doc/posix-functions/link.texi: Update regarding Solaris.
12530
12531 2010-07-31  Bruno Haible  <bruno@clisp.org>
12532
12533         Update modules list.
12534         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12535         (String handling <string.h>): Add memcmp2, memxfrm.
12536         (Container data structures): Add xlist, xsublist, xoset.
12537         (Core language properties): Add alignof, unused-parameter.
12538         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12539         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12540         (Unibyte characters <ctype.h>): New section.
12541         (String handling <string.h>): New section.
12542         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12543         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12544         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12545         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12546         tan, tanh, tanl, y0, y1, yn.
12547         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12548         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12549         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12550         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12551         unlockpt, vdprintf, vdprintf-posix.
12552         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12553         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12554         xconcat-filename.
12555         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12556         getdtablesize, pipe2, pipe2-safer.
12557         (Security): New section.
12558         (Networking functions): Add accept4.
12559         (Signal handling): Add sigpipe.
12560         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12561         mbmemcasecoll.
12562         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12563         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12564         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12565         pipe-filter-ii.
12566         (Misc): Add argp-version-etc, login_tty, parse-duration.
12567
12568 2010-07-31  Bruno Haible  <bruno@clisp.org>
12569
12570         Improve doc in MODULES.html.
12571         * modules/linkat (Description): Add the word "function".
12572         * modules/mkfifo (Description): Likewise.
12573         * modules/mknod (Description): Likewise.
12574         * modules/remove (Description): Likewise.
12575         * modules/renameat (Description): Likewise.
12576         * modules/stat (Description): Likewise.
12577         * modules/symlink (Description): Likewise.
12578         * modules/unlink (Description): Likewise.
12579
12580 2010-07-31  Bruno Haible  <bruno@clisp.org>
12581
12582         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12583         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12584         option --enable/disable-c++ instead of --enable/disable-cxx.
12585         * NEWS: Mention the change.
12586
12587 2010-07-31  Bruno Haible  <bruno@clisp.org>
12588
12589         readlink, areadlink: Relax test a bit.
12590         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12591         alternative to ENOTDIR.
12592         * tests/test-areadlink.h (test_areadlink): Likewise.
12593         Reported by Rainer Tammer.
12594
12595 2010-07-31  Bruno Haible  <bruno@clisp.org>
12596
12597         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12598         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12599         character, perform the search using U_STRCHR.
12600         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12601         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12602         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12603         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12604         Suggested by Paolo Bonzini.
12605
12606 2010-07-31  Bruno Haible  <bruno@clisp.org>
12607
12608         unistr/u*-strstr: Fix dependencies.
12609         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12610         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12611         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12612
12613 2010-07-31  Bruno Haible  <bruno@clisp.org>
12614
12615         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12616         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12617         the beginning of the loop.
12618         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12619         cases in 'switch' statement.
12620
12621         unistr/u8-strchr: Fix several bugs.
12622         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12623         the string. When not found, return NULL, not a pointer near the end.
12624
12625         More tests for unistr/u8-strchr.
12626         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12627         that the function does not read past the first occurrence of the byte
12628         being searched.
12629         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12630         * tests/unistr/test-u16-strchr.c (main): New function.
12631         * tests/unistr/test-u32-strchr.c (main): New function.
12632
12633 2010-07-31  Bruno Haible  <bruno@clisp.org>
12634
12635         posix-modules: Ignore backup files of documentation files.
12636         * posix-modules: grep only through files named *.texi.
12637
12638 2010-07-31  Bruno Haible  <bruno@clisp.org>
12639
12640         symlinkat: Fix documentation.
12641         * doc/posix-functions/readlinkat.texi: Fix module name.
12642
12643 2010-07-31  Bruno Haible  <bruno@clisp.org>
12644
12645         fchownat: Replace also when chown has the trailing slash bug.
12646         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12647         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12648         introduced on 2010-04-10.
12649         Reported by Rainer Tammer.
12650
12651 2010-07-31  Bruno Haible  <bruno@clisp.org>
12652
12653         linkat: Work around AIX 7.1 bug.
12654         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12655         whether linkat handles trailing slash correctly. If not, replace linkat
12656         and define LINKAT_TRAILING_SLASH_BUG.
12657         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12658         check whether (fd1,file1) points to a directory if file1 or file2 ends
12659         in a slash. Code taken from lib/link.c.
12660         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12661         Reported by Rainer Tammer.
12662
12663 2010-07-31  Bruno Haible  <bruno@clisp.org>
12664
12665         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12666         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12667         This disables an xlc optimization that was causing wrong test results.
12668         Reported by Rainer Tammer.
12669
12670 2010-07-31  Bruno Haible  <bruno@clisp.org>
12671
12672         iconv: Work around AIX 6.1..7.1 bug.
12673         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12674         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12675         cross-compiling, guess no on all versions of AIX.
12676         Reported by Rainer Tammer.
12677
12678 2010-07-31  Bruno Haible  <bruno@clisp.org>
12679
12680         readlink: Relax test a bit.
12681         * tests/test-readlink.h (test_readlink): Allow different errno value
12682         when readlink is called with a file name that ends in / and refers to
12683         a file.
12684         Suggested by Eric Blake.
12685         Reported by Rainer Tammer.
12686
12687 2010-07-31  Bruno Haible  <bruno@clisp.org>
12688
12689         copysign: Does not require -lm on glibc systems.
12690         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12691         gl_COMMON_DOUBLE_MATHFUNC.
12692         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12693
12694 2010-07-31  Bruno Haible  <bruno@clisp.org>
12695
12696         duplocale: Work around AIX 7.1 bug.
12697         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12698         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12699         * lib/duplocale.c (rpl_duplocale): Update comment.
12700         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12701         Reported by Rainer Tammer.
12702
12703 2010-07-30  Bruno Haible  <bruno@clisp.org>
12704
12705         dirfd: Avoid link error on AIX 7.1.
12706         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12707         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12708         exist, set REPLACE_DIRFD.
12709         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12710         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12711         * doc/posix-functions/dirfd.texi: Update.
12712         Reported by Rainer Tammer.
12713
12714 2010-07-30  Eric Blake  <eblake@redhat.com>
12715
12716         strtod: next round of AIX fixes
12717         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12718         exponent.
12719         * tests/test-strtod.c (main): Enhance tests.
12720         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12721         Reported by Rainer Tammer.
12722
12723         futimens: fix configure check
12724         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12725         Reported by Bruno Haible.
12726
12727 2010-07-30  Bruno Haible  <bruno@clisp.org>
12728
12729         getline: Update regarding AIX.
12730         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12731         Reported by Rainer Tammer.
12732
12733 2010-07-30  Bruno Haible  <bruno@clisp.org>
12734
12735         wcwidth: Drop replacement on AIX 7.
12736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12737         AIX 7.
12738         Reported by Rainer Tammer.
12739
12740 2010-07-30  Bruno Haible  <bruno@clisp.org>
12741
12742         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12743         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12744         a 'char *'.
12745         Reported by Rainer Tammer.
12746
12747 2010-07-30  Bruno Haible  <bruno@clisp.org>
12748
12749         unlink: Update regarding AIX.
12750         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12751         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12752         Reported by Rainer Tammer.
12753
12754 2010-07-30  Bruno Haible  <bruno@clisp.org>
12755
12756         symlink: Update regarding AIX.
12757         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12758         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12759         Reported by Rainer Tammer.
12760
12761 2010-07-30  Bruno Haible  <bruno@clisp.org>
12762
12763         strndup: Update regarding AIX.
12764         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12765         AIX 7.
12766         Reported by Rainer Tammer.
12767
12768 2010-07-30  Bruno Haible  <bruno@clisp.org>
12769
12770         stat: Update regarding AIX.
12771         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12772         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12773         Reported by Rainer Tammer.
12774
12775 2010-07-30  Bruno Haible  <bruno@clisp.org>
12776
12777         truncl: Fix autoconf test.
12778         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12779         whether truncl works.
12780         Reported by Rainer Tammer.
12781
12782 2010-07-30  Bruno Haible  <bruno@clisp.org>
12783
12784         round: Update regarding AIX.
12785         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12786         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12787         Reported by Rainer Tammer.
12788
12789 2010-07-30  Bruno Haible  <bruno@clisp.org>
12790
12791         rename: Update regarding AIX.
12792         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12793         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12794         Reported by Rainer Tammer.
12795
12796 2010-07-30  Bruno Haible  <bruno@clisp.org>
12797
12798         printf.m4: Update regarding AIX.
12799         * m4/printf.m4: Update comments regarding AIX.
12800         Reported by Rainer Tammer.
12801
12802 2010-07-30  Bruno Haible  <bruno@clisp.org>
12803
12804         iconv: Update regarding AIX.
12805         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12806         AIX 7.
12807         Reported by Rainer Tammer.
12808
12809 2010-07-30  Bruno Haible  <bruno@clisp.org>
12810
12811         getopt: Update regarding AIX.
12812         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12813         no on AIX.
12814         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12815         Reported by Rainer Tammer.
12816
12817 2010-07-30  Bruno Haible  <bruno@clisp.org>
12818
12819         ldexpl; Update regarding AIX.
12820         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12821         on AIX 7.
12822         Reported by Rainer Tammer.
12823
12824 2010-07-30  Bruno Haible  <bruno@clisp.org>
12825
12826         frexpl: Update regarding AIX.
12827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12828         on AIX 7.
12829         Reported by Rainer Tammer.
12830
12831 2010-07-30  Bruno Haible  <bruno@clisp.org>
12832
12833         open, fopen: Update regarding AIX.
12834         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12835         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12836         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12837         * doc/posix-functions/fopen.texi: Likewise.
12838         Reported by Rainer Tammer.
12839
12840 2010-07-30  Bruno Haible  <bruno@clisp.org>
12841
12842         chown: Update doc regarding AIX.
12843         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12844         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12845         Reported by Rainer Tammer.
12846
12847 2010-07-30  Eric Blake  <eblake@redhat.com>
12848
12849         strtod: fix bug in replacement function on AIX
12850         * lib/strtod.c (strtod): Special case broken "0x" parse in
12851         underlying strtod.
12852         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12853         * doc/posix-functions/strtod.texi (strtod): Likewise.
12854         Reported by Rainer Tammer.
12855
12856 2010-07-30  Bruno Haible  <bruno@clisp.org>
12857
12858         mbrlen: Fix cross-compilation guess for AIX.
12859         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12860         guess. Leftover from 2008-12-22.
12861
12862 2010-07-30  Bruno Haible  <bruno@clisp.org>
12863
12864         mbrtowc: Fix cross-compilation guess for AIX.
12865         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12866         guess. Leftover from 2008-12-21.
12867
12868 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12869
12870         init.sh: work around trap limitation of some shells
12871         * tests/init.sh (setup_): Move exit trap outside of shell function.
12872
12873 2010-07-29  Eric Blake  <eblake@redhat.com>
12874
12875         strtod: aid debugging
12876         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12877         understanding why strtod is rejected.
12878
12879 2010-07-28  Bruno Haible  <bruno@clisp.org>
12880
12881         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12882         * lib/unistr/u8-chr.c: Include <string.h>.
12883         * tests/unistr/test-u8-chr.c: Likewise.
12884         * tests/unistr/test-u16-chr.c: Likewise.
12885         * tests/unistr/test-u32-chr.c: Likewise.
12886         * tests/unistr/test-u8-strchr.c: Likewise.
12887         * tests/unistr/test-u16-strchr.c: Likewise.
12888         * tests/unistr/test-u32-strchr.c: Likewise.
12889         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12890         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12891         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12892         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12893
12894 2010-07-28  Bruno Haible  <bruno@clisp.org>
12895
12896         Use spaces for indentation, not tabs.
12897         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12898
12899 2010-07-27  Bruno Haible  <bruno@clisp.org>
12900
12901         mbspcasecmp: Fix function specification.
12902         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12903         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12904         Reported by Eric Blake <eblake@redhat.com>.
12905
12906 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12907
12908         timespec: use cast and not conditional, as truncation isn't possible
12909         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12910         instead of a conditional.  Comment about the situation in more detail.
12911         This undoes most of the 2009-10-29 patch.
12912
12913 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12914
12915         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12916         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12917         * lib/unistr/u8-strchr.c: Likewise.
12918         * modules/unistr/u8-chr: Depend on memchr.
12919
12920         unistr/u*-strchr: add tests
12921         * modules/unistr/u8-strchr-tests: New file.
12922         * modules/unistr/u16-strchr-tests: New file.
12923         * modules/unistr/u32-strchr-tests: New file.
12924         * tests/unistr/test-strchr.h: New file.
12925         * tests/unistr/test-u8-strchr.c: New file.
12926         * tests/unistr/test-u16-strchr.c: New file.
12927         * tests/unistr/test-u32-strchr.c: New file.
12928
12929         unistr/u*-chr: test multibyte sequences more
12930         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12931         test vector.
12932         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12933         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12934         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12935
12936         unistr/u*-chr: test multibyte sequences
12937         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12938
12939         unistr/u*-chr: prepare for multibyte tests
12940         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12941         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12942         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12943         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12944         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12945         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12946
12947 2010-07-18  Bruno Haible  <bruno@clisp.org>
12948
12949         unistr/u8-strchr: Optimize non-ASCII argument case.
12950         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12951         because the first byte often matches anyway.
12952         Reported by Pádraig Brady <P@draigbrady.com>.
12953
12954 2010-07-15  Karl Berry  <karl@gnu.org>
12955
12956         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12957
12958 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12959
12960         getcwd: on Solaris, work better if ancestors are inaccessible
12961         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12962         buffer and size, try again with a large buffer.  This works better
12963         on Solaris, since its getcwd succeeds even if the path to the root
12964         is inaccessible, and this is helpful in common cases such as .zfs
12965         hidden directories.  Problem reported by J Chapman Flack in
12966         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12967         Use system getcwd if it's declared, not merely if it's partly
12968         working; use the partly-working test only to avoid needless effort
12969         if the system getcwd fails.
12970         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12971         comment that was already obsolete and is now even more obsolete.
12972         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12973         now might call strdup.
12974
12975 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12976
12977         pthread: Add enough so that coreutils/src/sort.c compiles.
12978         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12979         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12980         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12981         Include <sys/types.h>, in case it defines pthread_t.
12982         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12983         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12984         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12985         (pthread_rwlockattr_t, pthread_spinlock_t):
12986         New typedefs, if HAVE_PTHREAD_T is not defined.
12987         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12988         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12989         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12990         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12991         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12992         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12993         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12994         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12995         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12996         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12997         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12998         New macros.
12999         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13000         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13001         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13002         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13003         (pthread_spin_unlock): New dummy functions.
13004         (pthread_create): Return EAGAIN; don't set errno.
13005         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13006         require AC_C_INLINE.
13007         * modules/pthread (Depends-on): Add sched, time.
13008         (pthread.h): Use AM_V_GEN.
13009
13010 2010-07-13  Bruno Haible  <bruno@clisp.org>
13011
13012         striconveh: Don't malloc memory if the result buffer is sufficient.
13013         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13014         buffer if its size is sufficient.
13015         Reported by Ludovic Courtès <ludo@gnu.org>.
13016
13017 2010-07-13  Bruno Haible  <bruno@clisp.org>
13018
13019         strtod: Add safety check.
13020         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13021
13022 2010-07-12  Bruno Haible  <bruno@clisp.org>
13023
13024         Unify tests that set gl_cv_func_ldexpl_no_libm.
13025         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13026         gl_FUNC_LDEXPL.
13027         (gl_FUNC_LDEXPL): Invoke it.
13028         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13029
13030 2010-07-12  Bruno Haible  <bruno@clisp.org>
13031
13032         Unify tests that set gl_cv_func_ldexp_no_libm.
13033         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13034         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13035         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13036         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13037         * modules/strtod (Files): Add m4/ldexp.m4.
13038
13039 2010-07-12  Bruno Haible  <bruno@clisp.org>
13040
13041         Unify tests that set gl_cv_func_frexpl_no_libm.
13042         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13043         gl_FUNC_FREXPL_NO_LIBM.
13044         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13045         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13046
13047 2010-07-12  Bruno Haible  <bruno@clisp.org>
13048
13049         Unify tests that set gl_cv_func_frexp_no_libm.
13050         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13051         gl_FUNC_FREXP_NO_LIBM.
13052         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13053         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13054
13055 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13056
13057         memcoll: clarify sizes versus lengths, document better, and tweak perf
13058         * lib/memcoll.c (strcoll_loop, memcoll0):
13059         Improve quality of descriptive comments.  Name variables
13060         consistently as to whether they are lengths (which do not include
13061         terminating null) versus sizes (which do).
13062         * lib/xmemcoll.c (xmemcoll0): Likewise.
13063         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13064         returned when s1size == 0; this is easier to compile and saves
13065         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13066
13067 2010-07-12  Bruno Haible  <bruno@clisp.org>
13068
13069         Tests for module '_Exit'.
13070         * modules/_Exit-tests: New file.
13071         * tests/test-_Exit.sh: New file.
13072         * tests/test-_Exit.c: New file.
13073
13074         New module '_Exit'.
13075         * lib/stdlib.in.h (__attribute__): New macro.
13076         (_Exit): New declaration.
13077         * lib/_Exit.c: New file.
13078         * m4/_Exit.m4: New file.
13079         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13080         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13081         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13082         * modules/_Exit: New file.
13083         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13084         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13085
13086 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13087
13088         strtod: make it more-accurate typically, and don't require libm
13089         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13090         Include limits.h.  Don't include string.h.
13091         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13092         (locale_isspace): New function, so that no casts are needed to
13093         check whether *s is a space.
13094         (ldexp): Provide an unused dummy if not available.
13095         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13096         (strtod): Use them.  This implementation prefers to use the
13097         underlying strtod if available, falling back on our own code
13098         only to fix known bugs.  This is more likely to produce an
13099         accurate result.  Also, it avoids the use of libm functions.
13100         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13101         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13102         was absent, but it caused a test failure with coreutils.
13103         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13104         with libm.
13105         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13106         * modules/strtod-tests (Makefile.am): Likewise.
13107
13108 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13109             Bruno Haible  <bruno@clisp.org>
13110
13111         unistr/u8-strchr: Optimize ASCII argument case.
13112         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13113
13114 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13115
13116         (x)memcoll: minor tweaks
13117         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13118         is after the type that it qualifies.
13119         (memcoll0): Likewise.
13120         * lib/memcoll.h (memcoll0): Likewise.
13121         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13122         * lib/xmemcoll.h (xmemcoll0): Likewise.
13123         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13124         differs from memcoll in that the NUL byte is part of the argument.
13125         Omit the abort-checks, as performance is a real issue here.  Plus,
13126         the checks were wrong anyway (an off-by-one error).  Omit local
13127         variable 'diff', as it's a bit clearer that way.
13128         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13129         no longer needed.
13130
13131 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13132
13133         (x)memcoll: speedup when input is known to be NUL delimited
13134         * lib/memcoll.c: Include stdlib.
13135         (memcoll0): New function.
13136         (strcoll_loop): New function, refactored for use in both memcoll
13137         and memcoll0.
13138         * lib/memcoll.h (memcoll0): Add prototype.
13139         * lib/xmemcoll.c (xmemcoll0): New function.
13140         (collate_error): New function, refactored for use in both xmemcoll
13141         and xmemcoll0.
13142         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13143         * m4/memcoll.m4: add inline invocation.
13144
13145 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13146
13147         * build-aux/bootstrap: Remove any local translations
13148         from the translation project synchronization directory,
13149         so that local only translations are not distributed.
13150
13151 2010-07-04  Bruno Haible  <bruno@clisp.org>
13152
13153         fsusage: Clarify which code applies to which platforms.
13154         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13155         platform.
13156         * lib/fsusage.c (get_fs_usage): Likewise.
13157
13158 2010-07-04  Bruno Haible  <bruno@clisp.org>
13159
13160         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13161         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13162         Reported by Martin Lambers <marlam@marlam.de>.
13163
13164 2010-07-04  Jim Meyering  <meyering@redhat.com>
13165
13166         hash: once again explicitly disallow insertion of NULL
13167         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13168         inserting a NULL pointer cannot work with these functions.
13169         Add a comment with details.
13170         This reverts part of the 2010-07-01 commit, 5bef1a35
13171         "hash: extend module to deal with non-pointer keys".
13172
13173 2010-07-01  Bruno Haible  <bruno@clisp.org>
13174
13175         stdbool: Update doc.
13176         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13177         Info from Christian Weisgerber <naddy@mips.inka.de>.
13178
13179 2010-07-01  Jim Meyering  <meyering@redhat.com>
13180
13181         hash: extend module to deal with non-pointer keys
13182         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13183         but that allows insertion of non-pointer entries.
13184         Do not disallow an ENTRY value of NULL.
13185         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13186         * lib/hash.h (hash_insert0): Declare.
13187
13188 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13189
13190         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13191         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13192         not present (i.e. with autoconf 2.59 and when using gettextize, not
13193         gnulib), require AC_GNU_SOURCE instead.
13194
13195 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13196
13197         idpriv-drop: Fix tests.
13198         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13199         not to the test-idpriv-droptemp program.
13200
13201 2010-06-29  Bruno Haible  <bruno@clisp.org>
13202
13203         string: Fix syntax error with g++ 2.96.
13204         * lib/string.in.h (__pure__): Remove definition.
13205         (_GL_ATTRIBUTE_PURE): New macro.
13206         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13207         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13208         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13209
13210 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13211
13212         unitypes: Fix bug introduced on 2010-05-18.
13213         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13214
13215 2010-06-22  Eric Blake  <eblake@redhat.com>
13216
13217         memmem: slight optimization
13218         * lib/str-two-way.h (critical_factorization): Update comments.
13219         Reduce work during factorization phase.
13220         Reported by Carlos Bueno <carlos@bueno.org>.
13221
13222 2010-06-21  Bruno Haible  <bruno@clisp.org>
13223
13224         Fix HAVE_CALLOC_POSIX misnomer.
13225         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13226         !HAVE_CALLOC_POSIX.
13227         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13228         HAVE_CALLOC_POSIX.
13229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13230         instead of HAVE_CALLOC_POSIX.
13231         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13232         HAVE_CALLOC_POSIX.
13233
13234         Use modern idiom for calloc() replacement.
13235         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13236         AC_FUNC_CALLOC.
13237         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13238         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13239         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13240         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13241         (gl_REPLACE_CALLOC): New macro.
13242
13243 2010-06-21  Bruno Haible  <bruno@clisp.org>
13244
13245         Fix HAVE_REALLOC_POSIX misnomer.
13246         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13247         !HAVE_REALLOC_POSIX.
13248         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13249         HAVE_REALLOC_POSIX.
13250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13251         instead of HAVE_REALLOC_POSIX.
13252         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13253         HAVE_REALLOC_POSIX.
13254
13255         Use modern idiom for realloc() replacement.
13256         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13257         AC_FUNC_REALLOC.
13258         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13259         Autoconf's AC_FUNC_REALLOC.
13260         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13261         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13262         (gl_REPLACE_REALLOC): New macro.
13263         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13264
13265 2010-06-21  Bruno Haible  <bruno@clisp.org>
13266
13267         Fix HAVE_MALLOC_POSIX misnomer.
13268         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13269         !HAVE_MALLOC_POSIX.
13270         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13271         HAVE_MALLOC_POSIX.
13272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13273         instead of HAVE_MALLOC_POSIX.
13274         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13275         HAVE_MALLOC_POSIX.
13276
13277         Use modern idiom for malloc() replacement.
13278         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13279         AC_FUNC_MALLOC.
13280         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13281         Autoconf's AC_FUNC_MALLOC.
13282         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13283         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13284         (gl_REPLACE_MALLOC): New macro.
13285         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13286
13287 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13288
13289         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13290         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13291         This macro takes 3 arguments, not 4.
13292
13293 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13294
13295         ipv6: fix detection under mingw
13296         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13297         in6_addr.
13298
13299 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13300
13301         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13302         that strtod() works when cross-compiling to a glibc version known
13303         to work.
13304
13305 2010-06-15  Bruno Haible  <bruno@clisp.org>
13306
13307         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13308
13309 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13310
13311         select: Correct timeout.
13312         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13313
13314 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13315
13316         git-version-gen: init shell var to avoid env var influence
13317         * build-aux/git-version-gen (v): Init shell var to empty.
13318
13319 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13320
13321         priv-set: Don't assume that priv.h exists merely because getppriv does.
13322         See Jan Andersen's bug report about AIX 5L in
13323         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13324         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13325         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13326         * lib/priv-set.h: Likewise.
13327         * tests/test-priv-set.c: Likewise.
13328
13329 2010-06-13  Bruno Haible  <bruno@clisp.org>
13330
13331         relocatable: Make it easier to test whether to install wrappers.
13332         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13333         RELOCATABLE_VIA_WRAPPER.
13334
13335 2010-06-13  Bruno Haible  <bruno@clisp.org>
13336
13337         gnulib-tool: Display specified modules and dependencies differently.
13338         * gnulib-tool (func_show_module_list): New function.
13339         (func_import, func_create_testdir): Invoke it.
13340         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13341
13342 2010-06-13  Bruno Haible  <bruno@clisp.org>
13343
13344         gnulib-tool: Align code of func_import and func_create_testdir.
13345         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13346         specified_modules.
13347
13348 2010-06-12  Jim Meyering  <meyering@redhat.com>
13349
13350         test-inttostr: avoid spurious failure on Solaris 9
13351         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13352         to accept "%ju".  Reported by Bruno Haible.
13353
13354 2010-06-11  Jim Meyering  <meyering@redhat.com>
13355
13356         test-sys_socket: mark variables as used more readably
13357         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13358         as "used" explicitly via (void) statement casts.  This is more
13359         readable than using them in an artificial return expression.
13360         Suggestion from Bruno Haible.
13361
13362 2010-06-11  Bruno Haible  <bruno@clisp.org>
13363
13364         Avoid some more warnings from "gcc -Wwrite-strings".
13365         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13366         to 'const char *'.
13367         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13368         * tests/test-c-strcasestr.c (main): Likewise.
13369         * tests/test-mbscasestr1.c (main): Likewise.
13370         * tests/test-mbscasestr2.c (main): Likewise.
13371         * tests/test-memmem.c (main): Likewise.
13372         * tests/test-strstr.c (main): Likewise.
13373         * tests/test-strcasestr.c (main): Likewise.
13374
13375 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13376
13377         init.sh: change framework_failure_ to fail with status 99, not 1
13378         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13379         automake's parallel-tests rule that this is an unexpected failure,
13380         even if the test is listed in XFAIL_TESTS.
13381
13382 2010-06-11  Jim Meyering  <meyering@redhat.com>
13383
13384         test-inttostr: avoid warnings about 4-6KB literal strings
13385         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13386         Include "macros.h", for its definition of ASSERT.
13387         (CK): s/assert/ASSERT/
13388         * modules/inttostr-tests (Files): Add macros.h.
13389
13390         init.sh: don't use $ME_ or skip_ before they are defined
13391         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13392         their first uses.  Also hoist their companions: warn_, fail_,
13393         framework_failure_, $stderr_fileno.  Prompted by a patch from
13394         Stefano Lattarini.
13395
13396         test-sys_socket: avoid set-but-not-used warnings from gcc
13397         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13398         avoid warning about set-but-not-used variables.
13399
13400         test-xvasprintf: avoid 'const' discard warnings
13401         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13402         "const" when assigning from literal strings.
13403         (test_xasprintf): Add "void" in function argument list to placate
13404         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13405
13406         tests: avoid compilation warnings in argmatch and exclude tests...
13407         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13408         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13409         Since it always exits, declare with the "noreturn" attribute.
13410         * tests/test-argmatch.c: Likewise.
13411
13412         tests: avoid 'const' discard warnings in mbsstr tests
13413         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13414         * tests/test-mbsstr2.c (main): Likewise.
13415
13416         test-verify: avoid warning from gcc's -Wmissing-declarations
13417         * tests/test-verify.c (function): Declare to be static.
13418
13419         test-inttostr.c: include <string.h> for use of strcmp
13420         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13421
13422         test-linkat: avoid failed assertion on "other" architectures
13423         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13424         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13425         sparc: https://bugs.launchpad.net/bugs/591968
13426
13427 2010-06-11  Jim Meyering  <meyering@redhat.com>
13428
13429         printf.m4: avoid autoconf's "Expanded Before Required" warning
13430         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13431         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13432         autoconf warning.
13433
13434 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13435
13436         Replacement header templates are now named with ".in", not "_".
13437         * doc/gnulib-intro.texi: Correct.
13438
13439 2010-06-10  Jim Meyering  <meyering@redhat.com>
13440
13441         inttostr-tests: depend on snprintf, not snprintf-posix
13442         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13443         snprintf-posix, to avoid this aclocal failure:
13444           missing file gnulib-tests/vasnprintf.c
13445           configure.ac:45: error: expected source file, required through \
13446           AC_LIBSOURCES, not found
13447
13448 2010-06-10  Jim Meyering  <meyering@redhat.com>
13449
13450         inttostr: add a new function, inttostr, and tests
13451         The namesake function was not available.  The existence of the
13452         template file, inttostr.c makes its addition nontrivial.
13453         * lib/anytostr.c: Rename from inttostr.c.
13454         (anytostr): Rename from inttostr.
13455         * lib/inttostr.c: New file.
13456         * modules/inttostr (Files): Add anytostr.c.
13457         (Makefile.am): Set lib_SOURCES instead of ...
13458         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13459         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13460         * lib/offtostr.c: Likewise.
13461         * lib/uinttostr.c: Likewise.
13462         * lib/umaxtostr.c: Likewise.
13463         * modules/inttostr-tests: New file.
13464         * tests/test-inttostr.c: New file.  Test these functions.
13465
13466 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13467             Bruno Haible  <bruno@clisp.org>
13468
13469         Add "Extending Gnulib" chapter to manual.
13470         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13471         chapter.
13472         (Extending Gnulib): New chapter.
13473         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13474         chapter.
13475
13476 2010-06-09  Bruno Haible  <bruno@clisp.org>
13477
13478         Avoid relocwrapper link errors due to gnulib replacement functions.
13479         * lib/areadlink.c: Use the system's malloc, realloc functions.
13480         (areadlink): Set errno to ENOMEM explicitly.
13481         * modules/areadlink (Depends-on): Remove malloc-posix.
13482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13483
13484 2010-06-09  Bruno Haible  <bruno@clisp.org>
13485
13486         Avoid relocwrapper link errors due to gnulib replacement functions.
13487         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13488         * lib/malloca.c: Likewise.
13489         * lib/relocatable.c: Likewise.
13490         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13491         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13492         * lib/setenv.c: Use the system's malloc, realloc functions.
13493         * lib/strerror.c: Use the system's sprintf function.
13494         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13495
13496 2010-06-04  Bruno Haible  <bruno@clisp.org>
13497
13498         Prefer documented low-level autoconf macro names.
13499         * m4/lib-link.m4: Use m4_translit instead of translit.
13500         * m4/environ.m4: Likewise.
13501         * m4/mathfunc.m4: Likewise.
13502         * m4/onceonly.m4: Likewise.
13503         * m4/stdint.m4: Likewise.
13504         Suggested by Eric Blake.
13505
13506 2010-06-04  Martin Lambers  <marlam@marlam.de>
13507             Bruno Haible  <bruno@clisp.org>
13508
13509         havelib: Allow library names with '+' characters.
13510         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13511         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13512
13513 2010-06-09  Bruno Haible  <bruno@clisp.org>
13514
13515         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13516         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13517         realloc failed.
13518
13519 2010-06-08  Peter Simons  <simons@cryp.to>
13520
13521         maint.mk: make the news-check rule more configurable
13522         * top/maint.mk (news-check-lines-spec): New variable.
13523         (news-check): Use "sed -n 1,10p" in place of "head".
13524
13525 2010-06-07  Jim Meyering  <meyering@redhat.com>
13526
13527         do-release-commit-and-tag: fix typo in --help
13528         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13529
13530         regex: avoid new dead-code warning with gcc-4.6.0
13531         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13532         if-block containing a while-loop.  It's been unused for at least
13533         5 years.
13534
13535 2010-06-05  Bruno Haible  <bruno@clisp.org>
13536
13537         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13538         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13539
13540 2010-06-04  Bruno Haible  <bruno@clisp.org>
13541
13542         Update to GNU gettext 0.18.1.
13543         * modules/gettext (configure.ac): Require gettext infrastructure from
13544         version 0.18.1.
13545
13546 2010-06-03  Bruno Haible  <bruno@clisp.org>
13547
13548         Don't use AC_LIBOBJ with file names in subdirectories.
13549         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13550         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13551         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13552         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13553         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13554         gl_LIBUNISTRING_LIBSOURCE.
13555         (Makefile.am): Augment lib_SOURCES here, conditionally.
13556         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13557
13558 2010-06-03  Bruno Haible  <bruno@clisp.org>
13559
13560         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13561         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13562         expansion does not end with a newline.
13563         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13564         unnecessary newline.
13565
13566 2010-06-03  Bruno Haible  <bruno@clisp.org>
13567
13568         Reduce dependencies.
13569         * tests/test-quotearg.h: New file, extracted from
13570         tests/test-quotearg.c.
13571         * tests/test-quotearg-simple.c: New file, extracted from
13572         tests/test-quotearg.c.
13573         * tests/test-quotearg.c: Don't include <ctype.h>.
13574         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13575         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13576         use_quote_double_quotes, use_quotearg_colon): Moved to
13577         tests/test-quotearg.h.
13578         (results_g, flag_results, custom_quotes, custom_results): Moved
13579         to tests/test-quotearg-simple.c.
13580         (main): Moved the part that does not depend on gettext to
13581         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13582         performed.
13583         * modules/quotearg-simple: New file.
13584         * modules/quotearg-simple-tests: New file.
13585         * modules/quotearg (Depends-on): Add quotearg-simple.
13586         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13587         (Files): Add tests/test-quotearg.h.
13588         Reported by Paolo Bonzini.
13589
13590 2010-06-03  Bruno Haible  <bruno@clisp.org>
13591
13592         Reduce dependencies.
13593         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13594
13595 2010-06-03  Bruno Haible  <bruno@clisp.org>
13596
13597         time: Undefine more broken macros.
13598         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13599         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13600         Reported by Eric Blake.
13601
13602 2010-06-03  Bruno Haible  <bruno@clisp.org>
13603
13604         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13605         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13606         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13607         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13608         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13609         Reported by Ludovic Courtès <ludo@gnu.org>.
13610
13611 2010-06-02  Eric Blake  <eblake@redhat.com>
13612
13613         time: work with mingw + pthreads-win32 library
13614         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13615         if timespec is defined only in pthread.h.
13616         * modules/time (Makefile.am): Substitute it.
13617         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13618         <pthread.h>, when needed.
13619         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13620         from the library.
13621
13622 2010-05-31  Bruno Haible  <bruno@clisp.org>
13623
13624         Avoid expanding two macros in the wrong order.
13625         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13626         gl_LIBUNISTRING if it is defined.
13627         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13628         autoconf >= 2.64.
13629         Reported by Ludovic Courtès <ludo@gnu.org>.
13630
13631 2010-05-27  Jim Meyering  <meyering@redhat.com>
13632
13633         maint.mk: also prohibit "#undef" of always-defined symbols
13634         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13635         Allow more than one space before the symbol name.
13636         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13637         the regexp uses alternation.
13638
13639 2010-05-26  Eric Blake  <eblake@redhat.com>
13640
13641         maint.mk: avoid echo -e
13642         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13643         Convert all uses of echo -* to printf.
13644         Reported by Matthias Bolte.
13645
13646 2010-05-25  Bruno Haible  <bruno@clisp.org>
13647
13648         Update to GNU gettext 0.18, part 2.
13649         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13650         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13651
13652 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13653
13654         Add missing include in test-pwrite.c.
13655         * tests/test-pwrite.c: Include string.h, for strcmp.
13656
13657 2010-05-24  Bruno Haible  <bruno@clisp.org>
13658
13659         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13660
13661 2010-05-24  Bruno Haible  <bruno@clisp.org>
13662
13663         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13664         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13665         iconveh_error argument.
13666         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13667         U_STRCONV_TO_LOCALE.
13668         * lib/unistr/u16-strcoll.c: Likewise.
13669         * lib/unistr/u32-strcoll.c: Likewise.
13670         * modules/unistr/u8-strcoll (Depends-on): Add
13671         uniconv/u8-strconv-to-enc, localcharset. Remove
13672         uniconv/u8-strconv-to-locale.
13673         (configure.ac): Bump version number.
13674         * modules/unistr/u16-strcoll (Depends-on): Add
13675         uniconv/u16-strconv-to-enc, localcharset. Remove
13676         uniconv/u16-strconv-to-locale.
13677         (configure.ac): Bump version number.
13678         * modules/unistr/u32-strcoll (Depends-on): Add
13679         uniconv/u32-strconv-to-enc, localcharset. Remove
13680         uniconv/u32-strconv-to-locale.
13681         (configure.ac): Bump version number.
13682
13683 2010-05-24  Bruno Haible  <bruno@clisp.org>
13684
13685         Avoid a test failure on NetBSD 5.0.
13686         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13687         an iconv() bug.
13688
13689 2010-05-24  Bruno Haible  <bruno@clisp.org>
13690
13691         Adjust #include directive style.
13692         * modules/regex (Includes): Recommend to write <regex.h>.
13693
13694 2010-05-24  Bruno Haible  <bruno@clisp.org>
13695
13696         regex: Don't require alloca.
13697         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13698         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13699         only inside if (0).
13700
13701 2010-05-23  Jim Meyering  <meyering@redhat.com>
13702
13703         test-renameat.c: include <sys/stat.h>
13704         * tests/test-renameat.c: Include <sys/stat.h>; required for
13705         definition of S_IS* macros.
13706
13707 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13708
13709         Update maintainer documentation for 'relocatable-prog' module.
13710         * doc/relocatable-maint.texi: Update.
13711         Comments by Bruno Haible.
13712
13713 2010-05-23  Bruno Haible  <bruno@clisp.org>
13714
13715         git-merge-changelog: Enable --split-merged-entry by default.
13716         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13717         (usage): Don't mention this option any more.
13718         Reported by Ralf Wildenhues.
13719
13720 2010-05-23  Jim Meyering  <meyering@redhat.com>
13721
13722         test-pwrite: do not leave behind a test file named "out"
13723         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13724         The trivial-looking use of init.sh is really necessary.
13725         It ensures that the temporary file, "out", is created in
13726         a temporary directory, and removed upon termination.
13727         * tests/test-pwrite.sh: Re-add file.
13728         * modules/pwrite-tests: Reference it.
13729
13730 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13731
13732         Fix output redirection buglet in init.sh.
13733         * tests/init.sh: Fix redirection of stderr.
13734
13735 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13736
13737         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13738
13739 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13740
13741         * modules/valgrind-tests: New file.
13742         * m4/valgrind-tests.m4: New file.
13743         * doc/valgrind-tests.texi: New file.
13744         * doc/gnulib.texi (Running self-tests under valgrind): New
13745         section.
13746
13747 2010-05-19  Bruno Haible  <bruno@clisp.org>
13748
13749         Clean up dead code in recent commit.
13750         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13751         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13752         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13753         Suggested by Paolo Bonzini.
13754
13755 2010-05-19  Bruno Haible  <bruno@clisp.org>
13756
13757         Avoid valgrind error reports from libunistring.
13758         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13759         * modules/libunistring (Files): Add it.
13760         * modules/libunistring-optional (Files): Likewise.
13761
13762 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13763             Bruno Haible  <bruno@clisp.org>
13764
13765         New module 'libunistring-optional'.
13766         * modules/libunistring-optional: New file.
13767         * m4/libunistring-base.m4: New file.
13768         * m4/libunistring-optional.m4: New file.
13769         * lib/unicase.in.h: Renamed from lib/unicase.h.
13770         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13771         * lib/unictype.in.h: Renamed from lib/unictype.h.
13772         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13773         * lib/uniname.in.h: Renamed from lib/uniname.h.
13774         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13775         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13776         * lib/unistr.in.h: Renamed from lib/unistr.h.
13777         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13778         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13779         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13780         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13781         gl_LIBUNISTRING. If the library was found, determine the installed
13782         version and set LIBUNISTRING_VERSION.
13783         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13784         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13785         handle a configuration option --with-included-libunistring.
13786         * modules/libunistring (Files): Add m4/absolute-header.m4.
13787         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13788         Add m4/libunistring-base.m4.
13789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13790         (Makefile.am): Build unicase.h from unicase.in.h.
13791         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13792         Add m4/libunistring-base.m4.
13793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13794         (Makefile.am): Build uniconv.h from uniconv.in.h.
13795         * modules/unictype/base (Files): Use unictype.in.h instead of
13796         unictype.h. Add m4/libunistring-base.m4.
13797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13798         (Makefile.am): Build unictype.h from unictype.in.h.
13799         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13800         Add m4/libunistring-base.m4.
13801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13802         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13803         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13804         Add m4/libunistring-base.m4.
13805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13806         (Makefile.am): Build uniname.h from uniname.in.h.
13807         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13808         Add m4/libunistring-base.m4.
13809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13810         (Makefile.am): Build uninorm.h from uninorm.in.h.
13811         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13812         unistdio.h. Add m4/libunistring-base.m4.
13813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13814         (Makefile.am): Build unistdio.h from unistdio.in.h.
13815         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13816         Add m4/libunistring-base.m4.
13817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13818         (Makefile.am): Build unistr.h from unistr.in.h.
13819         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13820         Add m4/libunistring-base.m4.
13821         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13822         (Makefile.am): Build unitypes.h from unitypes.in.h.
13823         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13824         Add m4/libunistring-base.m4.
13825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13826         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13827         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13828         uniwidth.h. Add m4/libunistring-base.m4.
13829         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13830         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13831         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13832         instead of augmenting lib_SOURCES.
13833         * modules/unicase/empty-suffix-context: Likewise.
13834         * modules/unicase/locale-language: Likewise.
13835         * modules/unicase/tolower: Likewise.
13836         * modules/unicase/totitle: Likewise.
13837         * modules/unicase/toupper: Likewise.
13838         * modules/unicase/u8-casecmp: Likewise.
13839         * modules/unicase/u8-casecoll: Likewise.
13840         * modules/unicase/u8-casefold: Likewise.
13841         * modules/unicase/u8-casexfrm: Likewise.
13842         * modules/unicase/u8-ct-casefold: Likewise.
13843         * modules/unicase/u8-ct-tolower: Likewise.
13844         * modules/unicase/u8-ct-totitle: Likewise.
13845         * modules/unicase/u8-ct-toupper: Likewise.
13846         * modules/unicase/u8-is-cased: Likewise.
13847         * modules/unicase/u8-is-casefolded: Likewise.
13848         * modules/unicase/u8-is-lowercase: Likewise.
13849         * modules/unicase/u8-is-titlecase: Likewise.
13850         * modules/unicase/u8-is-uppercase: Likewise.
13851         * modules/unicase/u8-prefix-context: Likewise.
13852         * modules/unicase/u8-suffix-context: Likewise.
13853         * modules/unicase/u8-tolower: Likewise.
13854         * modules/unicase/u8-totitle: Likewise.
13855         * modules/unicase/u8-toupper: Likewise.
13856         * modules/unicase/u16-casecmp: Likewise.
13857         * modules/unicase/u16-casecoll: Likewise.
13858         * modules/unicase/u16-casefold: Likewise.
13859         * modules/unicase/u16-casexfrm: Likewise.
13860         * modules/unicase/u16-ct-casefold: Likewise.
13861         * modules/unicase/u16-ct-tolower: Likewise.
13862         * modules/unicase/u16-ct-totitle: Likewise.
13863         * modules/unicase/u16-ct-toupper: Likewise.
13864         * modules/unicase/u16-is-cased: Likewise.
13865         * modules/unicase/u16-is-casefolded: Likewise.
13866         * modules/unicase/u16-is-lowercase: Likewise.
13867         * modules/unicase/u16-is-titlecase: Likewise.
13868         * modules/unicase/u16-is-uppercase: Likewise.
13869         * modules/unicase/u16-prefix-context: Likewise.
13870         * modules/unicase/u16-suffix-context: Likewise.
13871         * modules/unicase/u16-tolower: Likewise.
13872         * modules/unicase/u16-totitle: Likewise.
13873         * modules/unicase/u16-toupper: Likewise.
13874         * modules/unicase/u32-casecmp: Likewise.
13875         * modules/unicase/u32-casecoll: Likewise.
13876         * modules/unicase/u32-casefold: Likewise.
13877         * modules/unicase/u32-casexfrm: Likewise.
13878         * modules/unicase/u32-ct-casefold: Likewise.
13879         * modules/unicase/u32-ct-tolower: Likewise.
13880         * modules/unicase/u32-ct-totitle: Likewise.
13881         * modules/unicase/u32-ct-toupper: Likewise.
13882         * modules/unicase/u32-is-cased: Likewise.
13883         * modules/unicase/u32-is-casefolded: Likewise.
13884         * modules/unicase/u32-is-lowercase: Likewise.
13885         * modules/unicase/u32-is-titlecase: Likewise.
13886         * modules/unicase/u32-is-uppercase: Likewise.
13887         * modules/unicase/u32-prefix-context: Likewise.
13888         * modules/unicase/u32-suffix-context: Likewise.
13889         * modules/unicase/u32-tolower: Likewise.
13890         * modules/unicase/u32-totitle: Likewise.
13891         * modules/unicase/u32-toupper: Likewise.
13892         * modules/unicase/ulc-casecmp: Likewise.
13893         * modules/unicase/ulc-casecoll: Likewise.
13894         * modules/unicase/ulc-casexfrm: Likewise.
13895         * modules/uniconv/u8-conv-from-enc: Likewise.
13896         * modules/uniconv/u8-conv-to-enc: Likewise.
13897         * modules/uniconv/u8-strconv-from-enc: Likewise.
13898         * modules/uniconv/u8-strconv-from-locale: Likewise.
13899         * modules/uniconv/u8-strconv-to-enc: Likewise.
13900         * modules/uniconv/u8-strconv-to-locale: Likewise.
13901         * modules/uniconv/u16-conv-from-enc: Likewise.
13902         * modules/uniconv/u16-conv-to-enc: Likewise.
13903         * modules/uniconv/u16-strconv-from-enc: Likewise.
13904         * modules/uniconv/u16-strconv-from-locale: Likewise.
13905         * modules/uniconv/u16-strconv-to-enc: Likewise.
13906         * modules/uniconv/u16-strconv-to-locale: Likewise.
13907         * modules/uniconv/u32-conv-from-enc: Likewise.
13908         * modules/uniconv/u32-conv-to-enc: Likewise.
13909         * modules/uniconv/u32-strconv-from-enc: Likewise.
13910         * modules/uniconv/u32-strconv-from-locale: Likewise.
13911         * modules/uniconv/u32-strconv-to-enc: Likewise.
13912         * modules/uniconv/u32-strconv-to-locale: Likewise.
13913         * modules/unictype/bidicategory-byname: Likewise.
13914         * modules/unictype/bidicategory-name: Likewise.
13915         * modules/unictype/bidicategory-of: Likewise.
13916         * modules/unictype/bidicategory-test: Likewise.
13917         * modules/unictype/block-list: Likewise.
13918         * modules/unictype/block-test: Likewise.
13919         * modules/unictype/category-C: Likewise.
13920         * modules/unictype/category-Cc: Likewise.
13921         * modules/unictype/category-Cf: Likewise.
13922         * modules/unictype/category-Cn: Likewise.
13923         * modules/unictype/category-Co: Likewise.
13924         * modules/unictype/category-Cs: Likewise.
13925         * modules/unictype/category-L: Likewise.
13926         * modules/unictype/category-Ll: Likewise.
13927         * modules/unictype/category-Lm: Likewise.
13928         * modules/unictype/category-Lo: Likewise.
13929         * modules/unictype/category-Lt: Likewise.
13930         * modules/unictype/category-Lu: Likewise.
13931         * modules/unictype/category-M: Likewise.
13932         * modules/unictype/category-Mc: Likewise.
13933         * modules/unictype/category-Me: Likewise.
13934         * modules/unictype/category-Mn: Likewise.
13935         * modules/unictype/category-N: Likewise.
13936         * modules/unictype/category-Nd: Likewise.
13937         * modules/unictype/category-Nl: Likewise.
13938         * modules/unictype/category-No: Likewise.
13939         * modules/unictype/category-P: Likewise.
13940         * modules/unictype/category-Pc: Likewise.
13941         * modules/unictype/category-Pd: Likewise.
13942         * modules/unictype/category-Pe: Likewise.
13943         * modules/unictype/category-Pf: Likewise.
13944         * modules/unictype/category-Pi: Likewise.
13945         * modules/unictype/category-Po: Likewise.
13946         * modules/unictype/category-Ps: Likewise.
13947         * modules/unictype/category-S: Likewise.
13948         * modules/unictype/category-Sc: Likewise.
13949         * modules/unictype/category-Sk: Likewise.
13950         * modules/unictype/category-Sm: Likewise.
13951         * modules/unictype/category-So: Likewise.
13952         * modules/unictype/category-Z: Likewise.
13953         * modules/unictype/category-Zl: Likewise.
13954         * modules/unictype/category-Zp: Likewise.
13955         * modules/unictype/category-Zs: Likewise.
13956         * modules/unictype/category-and: Likewise.
13957         * modules/unictype/category-and-not: Likewise.
13958         * modules/unictype/category-byname: Likewise.
13959         * modules/unictype/category-name: Likewise.
13960         * modules/unictype/category-none: Likewise.
13961         * modules/unictype/category-of: Likewise.
13962         * modules/unictype/category-or: Likewise.
13963         * modules/unictype/category-test: Likewise.
13964         * modules/unictype/combining-class: Likewise.
13965         * modules/unictype/ctype-alnum: Likewise.
13966         * modules/unictype/ctype-alpha: Likewise.
13967         * modules/unictype/ctype-blank: Likewise.
13968         * modules/unictype/ctype-cntrl: Likewise.
13969         * modules/unictype/ctype-digit: Likewise.
13970         * modules/unictype/ctype-graph: Likewise.
13971         * modules/unictype/ctype-lower: Likewise.
13972         * modules/unictype/ctype-print: Likewise.
13973         * modules/unictype/ctype-punct: Likewise.
13974         * modules/unictype/ctype-space: Likewise.
13975         * modules/unictype/ctype-upper: Likewise.
13976         * modules/unictype/ctype-xdigit: Likewise.
13977         * modules/unictype/decimal-digit: Likewise.
13978         * modules/unictype/digit: Likewise.
13979         * modules/unictype/mirror: Likewise.
13980         * modules/unictype/numeric: Likewise.
13981         * modules/unictype/property-alphabetic: Likewise.
13982         * modules/unictype/property-ascii-hex-digit: Likewise.
13983         * modules/unictype/property-bidi-arabic-digit: Likewise.
13984         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13985         * modules/unictype/property-bidi-block-separator: Likewise.
13986         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13987         * modules/unictype/property-bidi-common-separator: Likewise.
13988         * modules/unictype/property-bidi-control: Likewise.
13989         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13990         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13991         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13992         * modules/unictype/property-bidi-european-digit: Likewise.
13993         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13994         * modules/unictype/property-bidi-left-to-right: Likewise.
13995         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13996         * modules/unictype/property-bidi-other-neutral: Likewise.
13997         * modules/unictype/property-bidi-pdf: Likewise.
13998         * modules/unictype/property-bidi-segment-separator: Likewise.
13999         * modules/unictype/property-bidi-whitespace: Likewise.
14000         * modules/unictype/property-byname: Likewise.
14001         * modules/unictype/property-combining: Likewise.
14002         * modules/unictype/property-composite: Likewise.
14003         * modules/unictype/property-currency-symbol: Likewise.
14004         * modules/unictype/property-dash: Likewise.
14005         * modules/unictype/property-decimal-digit: Likewise.
14006         * modules/unictype/property-default-ignorable-code-point: Likewise.
14007         * modules/unictype/property-deprecated: Likewise.
14008         * modules/unictype/property-diacritic: Likewise.
14009         * modules/unictype/property-extender: Likewise.
14010         * modules/unictype/property-format-control: Likewise.
14011         * modules/unictype/property-grapheme-base: Likewise.
14012         * modules/unictype/property-grapheme-extend: Likewise.
14013         * modules/unictype/property-grapheme-link: Likewise.
14014         * modules/unictype/property-hex-digit: Likewise.
14015         * modules/unictype/property-hyphen: Likewise.
14016         * modules/unictype/property-id-continue: Likewise.
14017         * modules/unictype/property-id-start: Likewise.
14018         * modules/unictype/property-ideographic: Likewise.
14019         * modules/unictype/property-ids-binary-operator: Likewise.
14020         * modules/unictype/property-ids-trinary-operator: Likewise.
14021         * modules/unictype/property-ignorable-control: Likewise.
14022         * modules/unictype/property-iso-control: Likewise.
14023         * modules/unictype/property-join-control: Likewise.
14024         * modules/unictype/property-left-of-pair: Likewise.
14025         * modules/unictype/property-line-separator: Likewise.
14026         * modules/unictype/property-logical-order-exception: Likewise.
14027         * modules/unictype/property-lowercase: Likewise.
14028         * modules/unictype/property-math: Likewise.
14029         * modules/unictype/property-non-break: Likewise.
14030         * modules/unictype/property-not-a-character: Likewise.
14031         * modules/unictype/property-numeric: Likewise.
14032         * modules/unictype/property-other-alphabetic: Likewise.
14033         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14034         * modules/unictype/property-other-grapheme-extend: Likewise.
14035         * modules/unictype/property-other-id-continue: Likewise.
14036         * modules/unictype/property-other-id-start: Likewise.
14037         * modules/unictype/property-other-lowercase: Likewise.
14038         * modules/unictype/property-other-math: Likewise.
14039         * modules/unictype/property-other-uppercase: Likewise.
14040         * modules/unictype/property-paired-punctuation: Likewise.
14041         * modules/unictype/property-paragraph-separator: Likewise.
14042         * modules/unictype/property-pattern-syntax: Likewise.
14043         * modules/unictype/property-pattern-white-space: Likewise.
14044         * modules/unictype/property-private-use: Likewise.
14045         * modules/unictype/property-punctuation: Likewise.
14046         * modules/unictype/property-quotation-mark: Likewise.
14047         * modules/unictype/property-radical: Likewise.
14048         * modules/unictype/property-sentence-terminal: Likewise.
14049         * modules/unictype/property-soft-dotted: Likewise.
14050         * modules/unictype/property-space: Likewise.
14051         * modules/unictype/property-terminal-punctuation: Likewise.
14052         * modules/unictype/property-test: Likewise.
14053         * modules/unictype/property-titlecase: Likewise.
14054         * modules/unictype/property-unassigned-code-value: Likewise.
14055         * modules/unictype/property-unified-ideograph: Likewise.
14056         * modules/unictype/property-uppercase: Likewise.
14057         * modules/unictype/property-variation-selector: Likewise.
14058         * modules/unictype/property-white-space: Likewise.
14059         * modules/unictype/property-xid-continue: Likewise.
14060         * modules/unictype/property-xid-start: Likewise.
14061         * modules/unictype/property-zero-width: Likewise.
14062         * modules/unictype/scripts: Likewise.
14063         * modules/unictype/syntax-c-ident: Likewise.
14064         * modules/unictype/syntax-c-whitespace: Likewise.
14065         * modules/unictype/syntax-java-ident: Likewise.
14066         * modules/unictype/syntax-java-whitespace: Likewise.
14067         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14068         * modules/unilbrk/u8-width-linebreaks: Likewise.
14069         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14070         * modules/unilbrk/u16-width-linebreaks: Likewise.
14071         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14072         * modules/unilbrk/u32-width-linebreaks: Likewise.
14073         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14074         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14075         * modules/uniname/uniname: Likewise.
14076         * modules/uninorm/canonical-decomposition: Likewise.
14077         * modules/uninorm/composition: Likewise.
14078         * modules/uninorm/decomposing-form: Likewise.
14079         * modules/uninorm/decomposition: Likewise.
14080         * modules/uninorm/filter: Likewise.
14081         * modules/uninorm/nfc: Likewise.
14082         * modules/uninorm/nfd: Likewise.
14083         * modules/uninorm/nfkc: Likewise.
14084         * modules/uninorm/nfkd: Likewise.
14085         * modules/uninorm/u8-normalize: Likewise.
14086         * modules/uninorm/u8-normcmp: Likewise.
14087         * modules/uninorm/u8-normcoll: Likewise.
14088         * modules/uninorm/u8-normxfrm: Likewise.
14089         * modules/uninorm/u16-normalize: Likewise.
14090         * modules/uninorm/u16-normcmp: Likewise.
14091         * modules/uninorm/u16-normcoll: Likewise.
14092         * modules/uninorm/u16-normxfrm: Likewise.
14093         * modules/uninorm/u32-normalize: Likewise.
14094         * modules/uninorm/u32-normcmp: Likewise.
14095         * modules/uninorm/u32-normcoll: Likewise.
14096         * modules/uninorm/u32-normxfrm: Likewise.
14097         * modules/unistdio/u8-asnprintf: Likewise.
14098         * modules/unistdio/u8-asprintf: Likewise.
14099         * modules/unistdio/u8-snprintf: Likewise.
14100         * modules/unistdio/u8-sprintf: Likewise.
14101         * modules/unistdio/u8-u8-asnprintf: Likewise.
14102         * modules/unistdio/u8-u8-asprintf: Likewise.
14103         * modules/unistdio/u8-u8-snprintf: Likewise.
14104         * modules/unistdio/u8-u8-sprintf: Likewise.
14105         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14106         * modules/unistdio/u8-u8-vasprintf: Likewise.
14107         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14108         * modules/unistdio/u8-u8-vsprintf: Likewise.
14109         * modules/unistdio/u8-vasnprintf: Likewise.
14110         * modules/unistdio/u8-vasprintf: Likewise.
14111         * modules/unistdio/u8-vsnprintf: Likewise.
14112         * modules/unistdio/u8-vsprintf: Likewise.
14113         * modules/unistdio/u16-asnprintf: Likewise.
14114         * modules/unistdio/u16-asprintf: Likewise.
14115         * modules/unistdio/u16-snprintf: Likewise.
14116         * modules/unistdio/u16-sprintf: Likewise.
14117         * modules/unistdio/u16-u16-asnprintf: Likewise.
14118         * modules/unistdio/u16-u16-asprintf: Likewise.
14119         * modules/unistdio/u16-u16-snprintf: Likewise.
14120         * modules/unistdio/u16-u16-sprintf: Likewise.
14121         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14122         * modules/unistdio/u16-u16-vasprintf: Likewise.
14123         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14124         * modules/unistdio/u16-u16-vsprintf: Likewise.
14125         * modules/unistdio/u16-vasnprintf: Likewise.
14126         * modules/unistdio/u16-vasprintf: Likewise.
14127         * modules/unistdio/u16-vsnprintf: Likewise.
14128         * modules/unistdio/u16-vsprintf: Likewise.
14129         * modules/unistdio/u32-asnprintf: Likewise.
14130         * modules/unistdio/u32-asprintf: Likewise.
14131         * modules/unistdio/u32-snprintf: Likewise.
14132         * modules/unistdio/u32-sprintf: Likewise.
14133         * modules/unistdio/u32-u32-asnprintf: Likewise.
14134         * modules/unistdio/u32-u32-asprintf: Likewise.
14135         * modules/unistdio/u32-u32-snprintf: Likewise.
14136         * modules/unistdio/u32-u32-sprintf: Likewise.
14137         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14138         * modules/unistdio/u32-u32-vasprintf: Likewise.
14139         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14140         * modules/unistdio/u32-u32-vsprintf: Likewise.
14141         * modules/unistdio/u32-vasnprintf: Likewise.
14142         * modules/unistdio/u32-vasprintf: Likewise.
14143         * modules/unistdio/u32-vsnprintf: Likewise.
14144         * modules/unistdio/u32-vsprintf: Likewise.
14145         * modules/unistdio/ulc-asnprintf: Likewise.
14146         * modules/unistdio/ulc-asprintf: Likewise.
14147         * modules/unistdio/ulc-fprintf: Likewise.
14148         * modules/unistdio/ulc-snprintf: Likewise.
14149         * modules/unistdio/ulc-sprintf: Likewise.
14150         * modules/unistdio/ulc-vasnprintf: Likewise.
14151         * modules/unistdio/ulc-vasprintf: Likewise.
14152         * modules/unistdio/ulc-vfprintf: Likewise.
14153         * modules/unistdio/ulc-vsnprintf: Likewise.
14154         * modules/unistdio/ulc-vsprintf: Likewise.
14155         * modules/unistr/u8-check: Likewise.
14156         * modules/unistr/u8-chr: Likewise.
14157         * modules/unistr/u8-cmp: Likewise.
14158         * modules/unistr/u8-cmp2: Likewise.
14159         * modules/unistr/u8-cpy: Likewise.
14160         * modules/unistr/u8-cpy-alloc: Likewise.
14161         * modules/unistr/u8-endswith: Likewise.
14162         * modules/unistr/u8-mblen: Likewise.
14163         * modules/unistr/u8-mbsnlen: Likewise.
14164         * modules/unistr/u8-mbtouc: Likewise.
14165         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14166         * modules/unistr/u8-mbtoucr: Likewise.
14167         * modules/unistr/u8-move: Likewise.
14168         * modules/unistr/u8-next: Likewise.
14169         * modules/unistr/u8-prev: Likewise.
14170         * modules/unistr/u8-set: Likewise.
14171         * modules/unistr/u8-startswith: Likewise.
14172         * modules/unistr/u8-stpcpy: Likewise.
14173         * modules/unistr/u8-stpncpy: Likewise.
14174         * modules/unistr/u8-strcat: Likewise.
14175         * modules/unistr/u8-strchr: Likewise.
14176         * modules/unistr/u8-strcmp: Likewise.
14177         * modules/unistr/u8-strcoll: Likewise.
14178         * modules/unistr/u8-strcpy: Likewise.
14179         * modules/unistr/u8-strcspn: Likewise.
14180         * modules/unistr/u8-strdup: Likewise.
14181         * modules/unistr/u8-strlen: Likewise.
14182         * modules/unistr/u8-strmblen: Likewise.
14183         * modules/unistr/u8-strmbtouc: Likewise.
14184         * modules/unistr/u8-strncat: Likewise.
14185         * modules/unistr/u8-strncmp: Likewise.
14186         * modules/unistr/u8-strncpy: Likewise.
14187         * modules/unistr/u8-strnlen: Likewise.
14188         * modules/unistr/u8-strpbrk: Likewise.
14189         * modules/unistr/u8-strrchr: Likewise.
14190         * modules/unistr/u8-strspn: Likewise.
14191         * modules/unistr/u8-strstr: Likewise.
14192         * modules/unistr/u8-strtok: Likewise.
14193         * modules/unistr/u8-to-u16: Likewise.
14194         * modules/unistr/u8-to-u32: Likewise.
14195         * modules/unistr/u8-uctomb: Likewise.
14196         * modules/unistr/u16-check: Likewise.
14197         * modules/unistr/u16-chr: Likewise.
14198         * modules/unistr/u16-cmp: Likewise.
14199         * modules/unistr/u16-cmp2: Likewise.
14200         * modules/unistr/u16-cpy: Likewise.
14201         * modules/unistr/u16-cpy-alloc: Likewise.
14202         * modules/unistr/u16-endswith: Likewise.
14203         * modules/unistr/u16-mblen: Likewise.
14204         * modules/unistr/u16-mbsnlen: Likewise.
14205         * modules/unistr/u16-mbtouc: Likewise.
14206         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14207         * modules/unistr/u16-mbtoucr: Likewise.
14208         * modules/unistr/u16-move: Likewise.
14209         * modules/unistr/u16-next: Likewise.
14210         * modules/unistr/u16-prev: Likewise.
14211         * modules/unistr/u16-set: Likewise.
14212         * modules/unistr/u16-startswith: Likewise.
14213         * modules/unistr/u16-stpcpy: Likewise.
14214         * modules/unistr/u16-stpncpy: Likewise.
14215         * modules/unistr/u16-strcat: Likewise.
14216         * modules/unistr/u16-strchr: Likewise.
14217         * modules/unistr/u16-strcmp: Likewise.
14218         * modules/unistr/u16-strcoll: Likewise.
14219         * modules/unistr/u16-strcpy: Likewise.
14220         * modules/unistr/u16-strcspn: Likewise.
14221         * modules/unistr/u16-strdup: Likewise.
14222         * modules/unistr/u16-strlen: Likewise.
14223         * modules/unistr/u16-strmblen: Likewise.
14224         * modules/unistr/u16-strmbtouc: Likewise.
14225         * modules/unistr/u16-strncat: Likewise.
14226         * modules/unistr/u16-strncmp: Likewise.
14227         * modules/unistr/u16-strncpy: Likewise.
14228         * modules/unistr/u16-strnlen: Likewise.
14229         * modules/unistr/u16-strpbrk: Likewise.
14230         * modules/unistr/u16-strrchr: Likewise.
14231         * modules/unistr/u16-strspn: Likewise.
14232         * modules/unistr/u16-strstr: Likewise.
14233         * modules/unistr/u16-strtok: Likewise.
14234         * modules/unistr/u16-to-u32: Likewise.
14235         * modules/unistr/u16-to-u8: Likewise.
14236         * modules/unistr/u16-uctomb: Likewise.
14237         * modules/unistr/u32-check: Likewise.
14238         * modules/unistr/u32-chr: Likewise.
14239         * modules/unistr/u32-cmp: Likewise.
14240         * modules/unistr/u32-cmp2: Likewise.
14241         * modules/unistr/u32-cpy: Likewise.
14242         * modules/unistr/u32-cpy-alloc: Likewise.
14243         * modules/unistr/u32-endswith: Likewise.
14244         * modules/unistr/u32-mblen: Likewise.
14245         * modules/unistr/u32-mbsnlen: Likewise.
14246         * modules/unistr/u32-mbtouc: Likewise.
14247         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14248         * modules/unistr/u32-mbtoucr: Likewise.
14249         * modules/unistr/u32-move: Likewise.
14250         * modules/unistr/u32-next: Likewise.
14251         * modules/unistr/u32-prev: Likewise.
14252         * modules/unistr/u32-set: Likewise.
14253         * modules/unistr/u32-startswith: Likewise.
14254         * modules/unistr/u32-stpcpy: Likewise.
14255         * modules/unistr/u32-stpncpy: Likewise.
14256         * modules/unistr/u32-strcat: Likewise.
14257         * modules/unistr/u32-strchr: Likewise.
14258         * modules/unistr/u32-strcmp: Likewise.
14259         * modules/unistr/u32-strcoll: Likewise.
14260         * modules/unistr/u32-strcpy: Likewise.
14261         * modules/unistr/u32-strcspn: Likewise.
14262         * modules/unistr/u32-strdup: Likewise.
14263         * modules/unistr/u32-strlen: Likewise.
14264         * modules/unistr/u32-strmblen: Likewise.
14265         * modules/unistr/u32-strmbtouc: Likewise.
14266         * modules/unistr/u32-strncat: Likewise.
14267         * modules/unistr/u32-strncmp: Likewise.
14268         * modules/unistr/u32-strncpy: Likewise.
14269         * modules/unistr/u32-strnlen: Likewise.
14270         * modules/unistr/u32-strpbrk: Likewise.
14271         * modules/unistr/u32-strrchr: Likewise.
14272         * modules/unistr/u32-strspn: Likewise.
14273         * modules/unistr/u32-strstr: Likewise.
14274         * modules/unistr/u32-strtok: Likewise.
14275         * modules/unistr/u32-to-u16: Likewise.
14276         * modules/unistr/u32-to-u8: Likewise.
14277         * modules/unistr/u32-uctomb: Likewise.
14278         * modules/uniwbrk/u8-wordbreaks: Likewise.
14279         * modules/uniwbrk/u16-wordbreaks: Likewise.
14280         * modules/uniwbrk/u32-wordbreaks: Likewise.
14281         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14282         * modules/uniwbrk/wordbreak-property: Likewise.
14283         * modules/uniwidth/u8-strwidth: Likewise.
14284         * modules/uniwidth/u8-width: Likewise.
14285         * modules/uniwidth/u16-strwidth: Likewise.
14286         * modules/uniwidth/u16-width: Likewise.
14287         * modules/uniwidth/u32-strwidth: Likewise.
14288         * modules/uniwidth/u32-width: Likewise.
14289         * modules/uniwidth/width: Likewise.
14290         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14291         with $(LIBUNISTRING).
14292         * modules/unicase/ignorable-tests: Likewise.
14293         * modules/unicase/locale-language-tests: Likewise.
14294         * modules/unicase/tolower-tests: Likewise.
14295         * modules/unicase/totitle-tests: Likewise.
14296         * modules/unicase/toupper-tests: Likewise.
14297         * modules/unicase/u8-casecmp-tests: Likewise.
14298         * modules/unicase/u8-casecoll-tests: Likewise.
14299         * modules/unicase/u8-casefold-tests: Likewise.
14300         * modules/unicase/u8-is-cased-tests: Likewise.
14301         * modules/unicase/u8-is-casefolded-tests: Likewise.
14302         * modules/unicase/u8-is-lowercase-tests: Likewise.
14303         * modules/unicase/u8-is-titlecase-tests: Likewise.
14304         * modules/unicase/u8-is-uppercase-tests: Likewise.
14305         * modules/unicase/u8-tolower-tests: Likewise.
14306         * modules/unicase/u8-totitle-tests: Likewise.
14307         * modules/unicase/u8-toupper-tests: Likewise.
14308         * modules/unicase/u16-casecmp-tests: Likewise.
14309         * modules/unicase/u16-casecoll-tests: Likewise.
14310         * modules/unicase/u16-casefold-tests: Likewise.
14311         * modules/unicase/u16-is-cased-tests: Likewise.
14312         * modules/unicase/u16-is-casefolded-tests: Likewise.
14313         * modules/unicase/u16-is-lowercase-tests: Likewise.
14314         * modules/unicase/u16-is-titlecase-tests: Likewise.
14315         * modules/unicase/u16-is-uppercase-tests: Likewise.
14316         * modules/unicase/u16-tolower-tests: Likewise.
14317         * modules/unicase/u16-totitle-tests: Likewise.
14318         * modules/unicase/u16-toupper-tests: Likewise.
14319         * modules/unicase/u32-casecmp-tests: Likewise.
14320         * modules/unicase/u32-casecoll-tests: Likewise.
14321         * modules/unicase/u32-casefold-tests: Likewise.
14322         * modules/unicase/u32-is-cased-tests: Likewise.
14323         * modules/unicase/u32-is-casefolded-tests: Likewise.
14324         * modules/unicase/u32-is-lowercase-tests: Likewise.
14325         * modules/unicase/u32-is-titlecase-tests: Likewise.
14326         * modules/unicase/u32-is-uppercase-tests: Likewise.
14327         * modules/unicase/u32-tolower-tests: Likewise.
14328         * modules/unicase/u32-totitle-tests: Likewise.
14329         * modules/unicase/u32-toupper-tests: Likewise.
14330         * modules/unicase/ulc-casecmp-tests: Likewise.
14331         * modules/unicase/ulc-casecoll-tests: Likewise.
14332         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14333         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14334         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14335         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14336         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14337         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14338         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14339         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14340         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14341         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14342         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14343         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14344         * modules/unictype/bidicategory-byname-tests: Likewise.
14345         * modules/unictype/bidicategory-name-tests: Likewise.
14346         * modules/unictype/bidicategory-of-tests: Likewise.
14347         * modules/unictype/bidicategory-test-tests: Likewise.
14348         * modules/unictype/block-list-tests: Likewise.
14349         * modules/unictype/block-of-tests: Likewise.
14350         * modules/unictype/block-test-tests: Likewise.
14351         * modules/unictype/category-C-tests: Likewise.
14352         * modules/unictype/category-Cc-tests: Likewise.
14353         * modules/unictype/category-Cf-tests: Likewise.
14354         * modules/unictype/category-Cn-tests: Likewise.
14355         * modules/unictype/category-Co-tests: Likewise.
14356         * modules/unictype/category-Cs-tests: Likewise.
14357         * modules/unictype/category-L-tests: Likewise.
14358         * modules/unictype/category-Ll-tests: Likewise.
14359         * modules/unictype/category-Lm-tests: Likewise.
14360         * modules/unictype/category-Lo-tests: Likewise.
14361         * modules/unictype/category-Lt-tests: Likewise.
14362         * modules/unictype/category-Lu-tests: Likewise.
14363         * modules/unictype/category-M-tests: Likewise.
14364         * modules/unictype/category-Mc-tests: Likewise.
14365         * modules/unictype/category-Me-tests: Likewise.
14366         * modules/unictype/category-Mn-tests: Likewise.
14367         * modules/unictype/category-N-tests: Likewise.
14368         * modules/unictype/category-Nd-tests: Likewise.
14369         * modules/unictype/category-Nl-tests: Likewise.
14370         * modules/unictype/category-No-tests: Likewise.
14371         * modules/unictype/category-P-tests: Likewise.
14372         * modules/unictype/category-Pc-tests: Likewise.
14373         * modules/unictype/category-Pd-tests: Likewise.
14374         * modules/unictype/category-Pe-tests: Likewise.
14375         * modules/unictype/category-Pf-tests: Likewise.
14376         * modules/unictype/category-Pi-tests: Likewise.
14377         * modules/unictype/category-Po-tests: Likewise.
14378         * modules/unictype/category-Ps-tests: Likewise.
14379         * modules/unictype/category-S-tests: Likewise.
14380         * modules/unictype/category-Sc-tests: Likewise.
14381         * modules/unictype/category-Sk-tests: Likewise.
14382         * modules/unictype/category-Sm-tests: Likewise.
14383         * modules/unictype/category-So-tests: Likewise.
14384         * modules/unictype/category-Z-tests: Likewise.
14385         * modules/unictype/category-Zl-tests: Likewise.
14386         * modules/unictype/category-Zp-tests: Likewise.
14387         * modules/unictype/category-Zs-tests: Likewise.
14388         * modules/unictype/category-and-not-tests: Likewise.
14389         * modules/unictype/category-and-tests: Likewise.
14390         * modules/unictype/category-byname-tests: Likewise.
14391         * modules/unictype/category-name-tests: Likewise.
14392         * modules/unictype/category-none-tests: Likewise.
14393         * modules/unictype/category-of-tests: Likewise.
14394         * modules/unictype/category-or-tests: Likewise.
14395         * modules/unictype/category-test-withtable-tests: Likewise.
14396         * modules/unictype/combining-class-tests: Likewise.
14397         * modules/unictype/ctype-alnum-tests: Likewise.
14398         * modules/unictype/ctype-alpha-tests: Likewise.
14399         * modules/unictype/ctype-blank-tests: Likewise.
14400         * modules/unictype/ctype-cntrl-tests: Likewise.
14401         * modules/unictype/ctype-digit-tests: Likewise.
14402         * modules/unictype/ctype-graph-tests: Likewise.
14403         * modules/unictype/ctype-lower-tests: Likewise.
14404         * modules/unictype/ctype-print-tests: Likewise.
14405         * modules/unictype/ctype-punct-tests: Likewise.
14406         * modules/unictype/ctype-space-tests: Likewise.
14407         * modules/unictype/ctype-upper-tests: Likewise.
14408         * modules/unictype/ctype-xdigit-tests: Likewise.
14409         * modules/unictype/decimal-digit-tests: Likewise.
14410         * modules/unictype/digit-tests: Likewise.
14411         * modules/unictype/mirror-tests: Likewise.
14412         * modules/unictype/numeric-tests: Likewise.
14413         * modules/unictype/property-alphabetic-tests: Likewise.
14414         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14415         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14416         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14417         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14418         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14419         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14420         * modules/unictype/property-bidi-control-tests: Likewise.
14421         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14422         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14423         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14424         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14425         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14426         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14427         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14428         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14429         * modules/unictype/property-bidi-pdf-tests: Likewise.
14430         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14431         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14432         * modules/unictype/property-byname-tests: Likewise.
14433         * modules/unictype/property-combining-tests: Likewise.
14434         * modules/unictype/property-composite-tests: Likewise.
14435         * modules/unictype/property-currency-symbol-tests: Likewise.
14436         * modules/unictype/property-dash-tests: Likewise.
14437         * modules/unictype/property-decimal-digit-tests: Likewise.
14438         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14439         * modules/unictype/property-deprecated-tests: Likewise.
14440         * modules/unictype/property-diacritic-tests: Likewise.
14441         * modules/unictype/property-extender-tests: Likewise.
14442         * modules/unictype/property-format-control-tests: Likewise.
14443         * modules/unictype/property-grapheme-base-tests: Likewise.
14444         * modules/unictype/property-grapheme-extend-tests: Likewise.
14445         * modules/unictype/property-grapheme-link-tests: Likewise.
14446         * modules/unictype/property-hex-digit-tests: Likewise.
14447         * modules/unictype/property-hyphen-tests: Likewise.
14448         * modules/unictype/property-id-continue-tests: Likewise.
14449         * modules/unictype/property-id-start-tests: Likewise.
14450         * modules/unictype/property-ideographic-tests: Likewise.
14451         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14452         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14453         * modules/unictype/property-ignorable-control-tests: Likewise.
14454         * modules/unictype/property-iso-control-tests: Likewise.
14455         * modules/unictype/property-join-control-tests: Likewise.
14456         * modules/unictype/property-left-of-pair-tests: Likewise.
14457         * modules/unictype/property-line-separator-tests: Likewise.
14458         * modules/unictype/property-logical-order-exception-tests: Likewise.
14459         * modules/unictype/property-lowercase-tests: Likewise.
14460         * modules/unictype/property-math-tests: Likewise.
14461         * modules/unictype/property-non-break-tests: Likewise.
14462         * modules/unictype/property-not-a-character-tests: Likewise.
14463         * modules/unictype/property-numeric-tests: Likewise.
14464         * modules/unictype/property-other-alphabetic-tests: Likewise.
14465         * modules/unictype/property-other-default-ignorable-code-point-tests:
14466         Likewise.
14467         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14468         * modules/unictype/property-other-id-continue-tests: Likewise.
14469         * modules/unictype/property-other-id-start-tests: Likewise.
14470         * modules/unictype/property-other-lowercase-tests: Likewise.
14471         * modules/unictype/property-other-math-tests: Likewise.
14472         * modules/unictype/property-other-uppercase-tests: Likewise.
14473         * modules/unictype/property-paired-punctuation-tests: Likewise.
14474         * modules/unictype/property-paragraph-separator-tests: Likewise.
14475         * modules/unictype/property-pattern-syntax-tests: Likewise.
14476         * modules/unictype/property-pattern-white-space-tests: Likewise.
14477         * modules/unictype/property-private-use-tests: Likewise.
14478         * modules/unictype/property-punctuation-tests: Likewise.
14479         * modules/unictype/property-quotation-mark-tests: Likewise.
14480         * modules/unictype/property-radical-tests: Likewise.
14481         * modules/unictype/property-sentence-terminal-tests: Likewise.
14482         * modules/unictype/property-soft-dotted-tests: Likewise.
14483         * modules/unictype/property-space-tests: Likewise.
14484         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14485         * modules/unictype/property-test-tests: Likewise.
14486         * modules/unictype/property-titlecase-tests: Likewise.
14487         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14488         * modules/unictype/property-unified-ideograph-tests: Likewise.
14489         * modules/unictype/property-uppercase-tests: Likewise.
14490         * modules/unictype/property-variation-selector-tests: Likewise.
14491         * modules/unictype/property-white-space-tests: Likewise.
14492         * modules/unictype/property-xid-continue-tests: Likewise.
14493         * modules/unictype/property-xid-start-tests: Likewise.
14494         * modules/unictype/property-zero-width-tests: Likewise.
14495         * modules/unictype/scripts-tests: Likewise.
14496         * modules/unictype/syntax-c-ident-tests: Likewise.
14497         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14498         * modules/unictype/syntax-java-ident-tests: Likewise.
14499         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14500         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14501         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14502         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14503         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14504         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14505         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14506         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14507         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14508         * modules/uniname/uniname-tests: Likewise.
14509         * modules/uninorm/canonical-decomposition-tests: Likewise.
14510         * modules/uninorm/compat-decomposition-tests: Likewise.
14511         * modules/uninorm/composition-tests: Likewise.
14512         * modules/uninorm/decomposing-form-tests: Likewise.
14513         * modules/uninorm/decomposition-tests: Likewise.
14514         * modules/uninorm/filter-tests: Likewise.
14515         * modules/uninorm/nfc-tests: Likewise.
14516         * modules/uninorm/nfd-tests: Likewise.
14517         * modules/uninorm/nfkc-tests: Likewise.
14518         * modules/uninorm/nfkd-tests: Likewise.
14519         * modules/uninorm/u8-normcmp-tests: Likewise.
14520         * modules/uninorm/u8-normcoll-tests: Likewise.
14521         * modules/uninorm/u16-normcmp-tests: Likewise.
14522         * modules/uninorm/u16-normcoll-tests: Likewise.
14523         * modules/uninorm/u32-normcmp-tests: Likewise.
14524         * modules/uninorm/u32-normcoll-tests: Likewise.
14525         * modules/unistdio/u8-asnprintf-tests: Likewise.
14526         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14527         * modules/unistdio/u8-vasprintf-tests: Likewise.
14528         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14529         * modules/unistdio/u8-vsprintf-tests: Likewise.
14530         * modules/unistdio/u16-asnprintf-tests: Likewise.
14531         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14532         * modules/unistdio/u16-vasprintf-tests: Likewise.
14533         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14534         * modules/unistdio/u16-vsprintf-tests: Likewise.
14535         * modules/unistdio/u32-asnprintf-tests: Likewise.
14536         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14537         * modules/unistdio/u32-vasprintf-tests: Likewise.
14538         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14539         * modules/unistdio/u32-vsprintf-tests: Likewise.
14540         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14541         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14542         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14543         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14544         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14545         * modules/unistr/u8-check-tests: Likewise.
14546         * modules/unistr/u8-chr-tests: Likewise.
14547         * modules/unistr/u8-cmp-tests: Likewise.
14548         * modules/unistr/u8-cmp2-tests: Likewise.
14549         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14550         * modules/unistr/u8-cpy-tests: Likewise.
14551         * modules/unistr/u8-mblen-tests: Likewise.
14552         * modules/unistr/u8-mbsnlen-tests: Likewise.
14553         * modules/unistr/u8-mbtouc-tests: Likewise.
14554         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14555         * modules/unistr/u8-mbtoucr-tests: Likewise.
14556         * modules/unistr/u8-move-tests: Likewise.
14557         * modules/unistr/u8-next-tests: Likewise.
14558         * modules/unistr/u8-prev-tests: Likewise.
14559         * modules/unistr/u8-set-tests: Likewise.
14560         * modules/unistr/u8-stpcpy-tests: Likewise.
14561         * modules/unistr/u8-stpncpy-tests: Likewise.
14562         * modules/unistr/u8-strcat-tests: Likewise.
14563         * modules/unistr/u8-strcmp-tests: Likewise.
14564         * modules/unistr/u8-strcoll-tests: Likewise.
14565         * modules/unistr/u8-strcpy-tests: Likewise.
14566         * modules/unistr/u8-strdup-tests: Likewise.
14567         * modules/unistr/u8-strlen-tests: Likewise.
14568         * modules/unistr/u8-strmblen-tests: Likewise.
14569         * modules/unistr/u8-strmbtouc-tests: Likewise.
14570         * modules/unistr/u8-strncat-tests: Likewise.
14571         * modules/unistr/u8-strncmp-tests: Likewise.
14572         * modules/unistr/u8-strncpy-tests: Likewise.
14573         * modules/unistr/u8-strnlen-tests: Likewise.
14574         * modules/unistr/u8-to-u16-tests: Likewise.
14575         * modules/unistr/u8-to-u32-tests: Likewise.
14576         * modules/unistr/u8-uctomb-tests: Likewise.
14577         * modules/unistr/u16-check-tests: Likewise.
14578         * modules/unistr/u16-chr-tests: Likewise.
14579         * modules/unistr/u16-cmp-tests: Likewise.
14580         * modules/unistr/u16-cmp2-tests: Likewise.
14581         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14582         * modules/unistr/u16-cpy-tests: Likewise.
14583         * modules/unistr/u16-mblen-tests: Likewise.
14584         * modules/unistr/u16-mbsnlen-tests: Likewise.
14585         * modules/unistr/u16-mbtouc-tests: Likewise.
14586         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14587         * modules/unistr/u16-mbtoucr-tests: Likewise.
14588         * modules/unistr/u16-move-tests: Likewise.
14589         * modules/unistr/u16-next-tests: Likewise.
14590         * modules/unistr/u16-prev-tests: Likewise.
14591         * modules/unistr/u16-set-tests: Likewise.
14592         * modules/unistr/u16-stpcpy-tests: Likewise.
14593         * modules/unistr/u16-stpncpy-tests: Likewise.
14594         * modules/unistr/u16-strcat-tests: Likewise.
14595         * modules/unistr/u16-strcmp-tests: Likewise.
14596         * modules/unistr/u16-strcoll-tests: Likewise.
14597         * modules/unistr/u16-strcpy-tests: Likewise.
14598         * modules/unistr/u16-strdup-tests: Likewise.
14599         * modules/unistr/u16-strlen-tests: Likewise.
14600         * modules/unistr/u16-strmblen-tests: Likewise.
14601         * modules/unistr/u16-strmbtouc-tests: Likewise.
14602         * modules/unistr/u16-strncat-tests: Likewise.
14603         * modules/unistr/u16-strncmp-tests: Likewise.
14604         * modules/unistr/u16-strncpy-tests: Likewise.
14605         * modules/unistr/u16-strnlen-tests: Likewise.
14606         * modules/unistr/u16-to-u32-tests: Likewise.
14607         * modules/unistr/u16-to-u8-tests: Likewise.
14608         * modules/unistr/u16-uctomb-tests: Likewise.
14609         * modules/unistr/u32-check-tests: Likewise.
14610         * modules/unistr/u32-chr-tests: Likewise.
14611         * modules/unistr/u32-cmp-tests: Likewise.
14612         * modules/unistr/u32-cmp2-tests: Likewise.
14613         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14614         * modules/unistr/u32-cpy-tests: Likewise.
14615         * modules/unistr/u32-mblen-tests: Likewise.
14616         * modules/unistr/u32-mbsnlen-tests: Likewise.
14617         * modules/unistr/u32-mbtouc-tests: Likewise.
14618         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14619         * modules/unistr/u32-mbtoucr-tests: Likewise.
14620         * modules/unistr/u32-move-tests: Likewise.
14621         * modules/unistr/u32-next-tests: Likewise.
14622         * modules/unistr/u32-prev-tests: Likewise.
14623         * modules/unistr/u32-set-tests: Likewise.
14624         * modules/unistr/u32-stpcpy-tests: Likewise.
14625         * modules/unistr/u32-stpncpy-tests: Likewise.
14626         * modules/unistr/u32-strcat-tests: Likewise.
14627         * modules/unistr/u32-strcmp-tests: Likewise.
14628         * modules/unistr/u32-strcoll-tests: Likewise.
14629         * modules/unistr/u32-strcpy-tests: Likewise.
14630         * modules/unistr/u32-strdup-tests: Likewise.
14631         * modules/unistr/u32-strlen-tests: Likewise.
14632         * modules/unistr/u32-strmblen-tests: Likewise.
14633         * modules/unistr/u32-strmbtouc-tests: Likewise.
14634         * modules/unistr/u32-strncat-tests: Likewise.
14635         * modules/unistr/u32-strncmp-tests: Likewise.
14636         * modules/unistr/u32-strncpy-tests: Likewise.
14637         * modules/unistr/u32-strnlen-tests: Likewise.
14638         * modules/unistr/u32-to-u16-tests: Likewise.
14639         * modules/unistr/u32-to-u8-tests: Likewise.
14640         * modules/unistr/u32-uctomb-tests: Likewise.
14641         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14642         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14643         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14644         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14645         * modules/uniwidth/u8-strwidth-tests: Likewise.
14646         * modules/uniwidth/u8-width-tests: Likewise.
14647         * modules/uniwidth/u16-strwidth-tests: Likewise.
14648         * modules/uniwidth/u16-width-tests: Likewise.
14649         * modules/uniwidth/u32-strwidth-tests: Likewise.
14650         * modules/uniwidth/u32-width-tests: Likewise.
14651         * modules/uniwidth/width-tests: Likewise.
14652
14653 2010-05-18  Richard Jones  <rjones@redhat.com>
14654
14655         doc: users.txt: list hivex
14656         * users.txt: Add hivex.
14657
14658 2010-05-18  Richard Jones  <rjones@redhat.com>
14659
14660         doc: users.txt: list febootstrap
14661         * users.txt: Add febootstrap.
14662
14663 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14664
14665         bootstrap: fix an error when gnulib is not used as a git submodule
14666         * build-aux/bootstrap (gnulib_path): If its length is zero then
14667         assign "gnulib" to it.
14668         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14669
14670 2010-05-16  Bruno Haible  <bruno@clisp.org>
14671
14672         Avoid autoconf warnings about AM_ICONV.
14673         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14674         2.64.
14675
14676 2010-05-16  Bruno Haible  <bruno@clisp.org>
14677
14678         absolute-header: Make the macro usable in more situations.
14679         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14680         from gl_ABSOLUTE_HEADER.
14681         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14682
14683 2010-05-16  James Youngman  <jay@gnu.org>
14684
14685         doc: update users.txt
14686         * users.txt: Add CSSC.
14687
14688 2010-05-16  Jim Meyering  <meyering@redhat.com>
14689
14690         init.sh: fix an error in the previous change; add more comments
14691         * tests/init.sh: Compare exit code in loop against 9, not 2.
14692         Patch by Bruno Haible.
14693         Make the two tests more similar by adding an empty "then" clause.
14694         Add comments.
14695
14696         init.sh: avoid unnecessary shell re-exec
14697         * tests/init.sh: Improve the re-exec-required check to first test the
14698         current shell.  If it passes the test, do not search for a shell that
14699         does pass, and do not re-exec.  This test is particularly contorted to
14700         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14701         of $(...) evokes a syntax error and causes immediate shell exit with
14702         status 2.  Bruno Haible reported that the re-exec made it impossible
14703         to single-step through any init.sh-using script.
14704
14705 2010-05-16  Bruno Haible  <bruno@clisp.org>
14706
14707         Fix collision between gnulib's and libintl's printf replacements.
14708         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14709         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14710         (printf): When using GNU C, map the __printf__ function to rpl_printf
14711         via __asm__. When not using GNU C, define rpl_printf instead of
14712         __printf__.
14713         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14714         commit.
14715         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14716         commit.
14717         * m4/asm-underscore.m4: New file.
14718         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14719         * modules/stdio (Files): Add m4/asm-underscore.m4.
14720         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14721         Reported by Ben Pfaff.
14722
14723 2010-05-16  Bruno Haible  <bruno@clisp.org>
14724
14725         verify: Avoid skipping the test on openSUSE 11.0.
14726         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14727
14728 2010-05-13  Bruno Haible  <bruno@clisp.org>
14729
14730         Avoid useless warnings from G++.
14731         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14732         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14733         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14734
14735 2010-05-11  Jim Meyering  <meyering@redhat.com>
14736
14737         maint.mk: tweak preceding change
14738         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14739         regexps tighter by anchoring at EOL, and make the new group "shy"
14740         for slightly decreased overhead.
14741
14742 2010-05-11  Eric Blake  <eblake@redhat.com>
14743
14744         maint.mk: gnulib doesn't guarantee NSIG
14745         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14746
14747 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14748
14749         test-pwrite.c: Remove unused variable declaration.
14750         * tests/test-pwrite.c (main): Remove read_buf declaration.
14751
14752         Remove useless test-pwrite.sh file.
14753         * tests/test-pwrite.sh: Delete file.
14754         * modules/pwrite-tests: Remove references.
14755         Reported by Bruno Haible.
14756
14757 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14758
14759         init.sh: fix a typo
14760         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14761
14762 2010-05-10  Jim Meyering  <meyering@redhat.com>
14763
14764         maint.mk: avoid using a temporary file in the always-defined-macros check
14765         * top/maint.mk (.re-defmac): Remove rule.
14766         (gl_trap_): Remove definition.
14767         (sc_prohibit_always-defined_macros): Rewrite not to create and
14768         depend on a temporary file.  Instead, depend on GNU grep's ability
14769         to read a list of regular expressions from stdin when given "-f -".
14770
14771 2010-05-09  Bruno Haible  <bruno@clisp.org>
14772
14773         Update to GNU gettext 0.18, part 1.
14774         * m4/gettext.m4: Update to GNU gettext 0.18.
14775         * m4/intl.m4: Likewise.
14776         * m4/po.m4: Likewise.
14777         * modules/gettext (Files): Add m4/fcntl-o.m4.
14778         (configure.ac): Require gettext infrastructure from version 0.18.
14779
14780 2010-05-09  Jim Meyering  <meyering@redhat.com>
14781
14782         init.sh: enable MALLOC_PERTURB_
14783         * tests/init.sh: Enable glibc's malloc-perturbing option.
14784
14785         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14786         With my recent change in init.sh from the two-line form:
14787             -#   : ${srcdir=.}
14788             -#   . "$srcdir/init.sh"; path_prepend_ .
14789             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14790         I noticed that using the one-line form would cause this test
14791         to fail with a false-positive, or to stop working altogether,
14792         depending on whether help-version changed or all the tests did.
14793         * top/maint.mk (_hv_regex): Remove this definition.
14794         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14795         (_hv_regex_strong): Use a stronger regex to check for conformance.
14796         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14797         Give a separate diagnostic for lack of conforming use.
14798
14799         maint.mk: prohibit definition of symbols defined by gnulib
14800         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14801         definition of symbols defined by gnulib.
14802
14803 2010-05-09  Bruno Haible  <bruno@clisp.org>
14804
14805         acl: Avoid test failure on Cygwin-hosted mingw.
14806         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14807
14808 2010-05-09  Bruno Haible  <bruno@clisp.org>
14809
14810         error: Use system's fcntl function.
14811         * lib/error.c (fcntl): Undefine.
14812
14813 2010-05-09  Jim Meyering  <meyering@redhat.com>
14814
14815         verify: adjust formatting to be more consistent
14816         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14817         argument-list '('s, and after one comma.
14818
14819 2010-05-09  Bruno Haible  <bruno@clisp.org>
14820
14821         error: More reliable output on mingw.
14822         * lib/error.c: Include <windows.h>.
14823         (is_open): New function.
14824         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14825         defined.
14826
14827 2010-05-09  Bruno Haible  <bruno@clisp.org>
14828
14829         vasnprintf: Fix syntax errors in libintl build on mingw.
14830         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14831         pad_ourselves and prec_ourselves after use.
14832
14833 2010-05-08  Bruno Haible  <bruno@clisp.org>
14834
14835         * lib/config.charset: Update comments for Cygwin 1.7.
14836         * lib/localcharset.c: Likewise.
14837
14838 2010-05-07  Jim Meyering  <meyering@redhat.com>
14839
14840         init.sh: improve comments
14841         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14842         . "${srcdir=.}/init.sh"; path_prepend_ .
14843         Add a note about path_prepend_ and the alternative of using
14844         TESTS_ENVIRONMENT.
14845
14846 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14847
14848         exclude: Unescape hashed patterns in wildcard mode.
14849         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14850         to the hash list.
14851         * tests/test-exclude8.sh: New test case.
14852         * modules/exclude-tests: Add new test.
14853
14854 2010-05-05  Eric Blake  <eblake@redhat.com>
14855
14856         verify: automate tests
14857         * modules/verify-tests: New module.
14858         * tests/test-verify.sh: New file.
14859         * tests/test-verify.c: Guard each negative test with a unique id.
14860         Also avoid warning about unused left hand of comma expressions.
14861
14862 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14863
14864         Further improvements to verify.h, suggested by Eric Blake.
14865         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14866         the GL_* versions, to avoid collision with OpenGL.
14867         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14868         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14869         than testing merely whether it's defined.
14870
14871         Modify verify.h to pacify gcc -Wredundant_decls.
14872         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14873         These use the prefix "GL_" since they're likely to be useful elsewhere.
14874         We may need to break them out into a different .h file.
14875         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14876         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14877         of verify_function__.
14878
14879 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14880
14881         Tests for module pwrite.
14882         * modules/pwrite-tests: New file.
14883         * tests/test-pwrite.sh: New file.
14884         * tests/test-pwrite.c: New file.
14885
14886         New module pwrite.
14887         * lib/unistd.in.h (pwrite): New declaration.
14888         * lib/pwrite.c: New file, from glibc with modifications.
14889         * m4/pwrite.m4: New file.
14890         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14891         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14892         REPLACE_PWRITE.
14893         * modules/pwrite: New file.
14894         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14895         REPLACE_PWRITE.
14896         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14897         * doc/posix-functions/pwrite.texi: Mention the new module.
14898
14899 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14900
14901         pread: Update documentation.
14902         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14903
14904 2010-05-04  Eric Blake  <eblake@redhat.com>
14905
14906         docs: update cygwin progress
14907         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14908         this bug.
14909         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14910         Added in cygwin 1.7.2.
14911         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14912         Likewise.
14913         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14914         Likewise.
14915         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14916         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14917         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14918         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14919         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14920         Mention nproc module.
14921         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14922         bug in cygwin 1.7.5 addition.
14923         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14924         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14925         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14926         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14927         1.7.5.
14928         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14929         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14930         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14931         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14932         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14933         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14934         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14935         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14936         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14937         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14938         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14939         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14940         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14941         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14942         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14943         Likewise.
14944         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14945         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14946         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14947         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14948         Likewise.
14949         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14950         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14951         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14952         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14953         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14954         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14955         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14956         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14957         Likewise.
14958         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14959         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14960         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14961         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14962         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14963         Likewise.
14964         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14965         Likewise.
14966         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14967         Likewise.
14968         * doc/glibc-functions/xdrrec_endofrecord.texi
14969         (xdrrec_endofrecord): Likewise.
14970         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14971         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14972         Likewise.
14973         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14974         Likewise.
14975
14976 2010-05-04  Jim Meyering  <meyering@redhat.com>
14977
14978         gendocs.sh: make its "-s FILE" option more useful
14979         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14980         $PACKAGE to reflect the probably-different basename of "FILE".
14981
14982 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14983
14984         bootstrap: don't ignore download_po_files failure
14985         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14986         failure.
14987
14988 2010-05-03  Jim Meyering  <meyering@redhat.com>
14989
14990         maint.mk: allow to pass options to gendocs.sh
14991         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14992         (gendocs_options_): New overridable variable.
14993
14994         gnu-web-doc-update: don't ignore configure or build failure
14995         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14996
14997         announce-gen: backslash-escape '@'s in --help output
14998         * build-aux/announce-gen: Fix syntax errors.
14999
15000         maint.mk, announce-gen: allow project-specific announcement mail headers
15001         * top/maint.mk (translation_project_): Define default.
15002         (announcement_Cc_, announcement_mail_headers_): Likewise.
15003         (announcement): Invoke announce-gen with new --mail-headers option.
15004         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15005
15006         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15007         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15008         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15009         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15010         line in the "err2" output file when running "make check" in verbose
15011         mode (i.e., with set -x enabled).
15012
15013 2010-05-03  Bruno Haible  <bruno@clisp.org>
15014
15015         wctob: Fix for weird platforms.
15016         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15017         argument value.
15018
15019 2010-05-03  Jim Meyering  <meyering@redhat.com>
15020
15021         maint.mk: prohibit unwarranted use of <strings.h>
15022         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15023         strings.h in a file that does not also use strcasecmp, strncasecmp,
15024         ffs or ffsll.
15025
15026         maint.mk: remove obsolete comments
15027         * top/maint.mk: Remove stale, commented-out rules.
15028
15029 2010-05-02  Bruno Haible  <bruno@clisp.org>
15030
15031         wcwidth: Declare also when it's aliased.
15032         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15033         macro.
15034
15035 2010-05-02  Bruno Haible  <bruno@clisp.org>
15036
15037         Fix regression from 2010-04-25.
15038         * gnulib-tool (func_modules_transitive_closure): Check the status of
15039         all modules, not only of the tests that are of the form foo-tests where
15040         foo is a module.
15041
15042 2010-05-02  Bruno Haible  <bruno@clisp.org>
15043
15044         wctob: Work around nasty Cygwin 1.7.2 bug.
15045         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15046         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15047
15048 2010-05-01  Bruno Haible  <bruno@clisp.org>
15049
15050         fpurge: Sharper test.
15051         * tests/test-fpurge.c (main): Add one more ftell check.
15052         * modules/fpurge-tests (Depends-on): Add ftell.
15053         Suggested by Eric Blake.
15054
15055 2010-05-01  Bruno Haible  <bruno@clisp.org>
15056
15057         ftello: Another test.
15058         * tests/test-ftello3.c: New file.
15059         * modules/ftello-tests (Files): Add it.
15060         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15061         MOSTLYCLEANFILES.
15062
15063         ftell: Another test.
15064         * tests/test-ftell3.c: New file.
15065         * modules/ftell-tests (Files): Add it.
15066         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15067         MOSTLYCLEANFILES.
15068
15069 2010-05-01  Bruno Haible  <bruno@clisp.org>
15070
15071         ftell, ftello: Work around Solaris bug.
15072         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15073         * lib/ftello.c: Include stdio-impl.h.
15074         (ftello): On Solaris, when _IOWRT is set, compute the result without
15075         looking at _IOREAD.
15076         * modules/ftello (Files): Add lib/stdio-impl.h.
15077         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15078         * doc/posix-functions/ftello.texi: Likewise.
15079         Reported by Eric Blake.
15080
15081 2010-05-01  Bruno Haible  <bruno@clisp.org>
15082
15083         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15084         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15085         the _IOWRT flag is also set.
15086
15087 2010-05-01  Bruno Haible  <bruno@clisp.org>
15088
15089         Fix doc about a HP-UX stdio bug.
15090         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15091         * doc/posix-functions/ftello.texi: Likewise.
15092
15093 2010-05-01  Bruno Haible  <bruno@clisp.org>
15094
15095         lseek test: Fix failure on Solaris.
15096         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15097         output.
15098
15099 2010-04-30  Jim Meyering  <meyering@redhat.com>
15100
15101         bootstrap: don't ignore failure to generate po*/Makevars
15102         * build-aux/bootstrap (with_gettext): Don't ignore failure
15103         to create po/Makevars or runtime-po/Makevars.
15104
15105 2010-04-29  Eric Blake  <eblake@redhat.com>
15106
15107         headers: relax license to LGPLv2+
15108         * modules/fcntl-h (License): Relax license.
15109         * modules/getopt-posix (License): Likewise.
15110         * modules/locale (License): Likewise.
15111         * modules/math (License): Likewise.
15112         * modules/pty (License): Likewise.
15113         * modules/sched (License): Likewise.
15114         * modules/search (License): Likewise.
15115         * modules/spawn (License): Likewise.
15116         * modules/stdarg (License): Likewise.
15117         * modules/sysexits (License): Likewise.
15118
15119 2010-04-29  Jim Meyering  <meyering@redhat.com>
15120
15121         inttypes: relax license to LGPLv2+
15122         * modules/inttypes (License): Relax license.
15123
15124 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15125
15126         * top/maint.mk (indent): Run twice to produce idempotent results.
15127
15128 2010-04-28  Bruno Haible  <bruno@clisp.org>
15129
15130         getdate: Generate getdate.c in the source directory.
15131         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15132         MOSTLYCLEANFILES.
15133         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15134
15135 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15136
15137         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15138         is not declared as a const *; avoid warnings in that case.
15139
15140 2010-04-28  Eric Blake  <eblake@redhat.com>
15141
15142         canonicalize-lgpl: avoid compiler warning
15143         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15144         declaration' / 'extraneous semicolon' warning with some compilers.
15145         Reported by Andreas Gruenbacher.
15146
15147 2010-04-28  Jim Meyering  <meyering@redhat.com>
15148
15149         init.sh: ensure a more reliable exit status when exiting via trap
15150         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15151         Inspired by patches from Dmitry V. Levin.
15152         Also trap on signal 3 (SIGQUIT).
15153
15154 2010-04-27  Bruno Haible  <bruno@clisp.org>
15155
15156         Update doc about utimes().
15157         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15158         'utimens' module.
15159         Reported by Andreas Gruenbacher <agruen@suse.de>.
15160
15161 2010-04-27  Eric Blake  <eblake@redhat.com>
15162
15163         full-read, full-write: relax license
15164         * modules/full-read (License): Drop to LGPLv2+.
15165         * modules/full-write (License): Likewise.
15166         * modules/safe-read (License): Likewise.
15167         * modules/safe-write (License): Likewise.
15168
15169         pthread: mention library for linking
15170         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15171
15172 2010-04-27  Jim Meyering  <meyering@redhat.com>
15173
15174         maint.mk: fix a bug introduced in last change
15175         * top/maint.mk (gl_assured_headers_): Now that all names are on
15176         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15177         is not anchored to end of word, it should be adequate.
15178
15179         maint.mk: avoid side-effect in latest syntax-check
15180         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15181         to run commands via $(shell...), and hence to incur cost only when
15182         the new rule is actually run.
15183
15184         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15185         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15186         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15187         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15188         (gl_assured_headers_, az_, AZ_): Define.
15189         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15190
15191 2010-04-26  Jim Meyering  <jim@meyering.net>
15192             Bruno Haible  <bruno@clisp.org>
15193
15194         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15195         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15196         Prompted by an exchange with Gilles Espinasse.
15197
15198 2010-04-26  Jim Meyering  <meyering@redhat.com>
15199
15200         git-version-gen: aesthetic tweak
15201         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15202         so that the command remains on a single line.
15203
15204 2010-04-26  Eric Blake  <eblake@redhat.com>
15205
15206         git-version-gen: allow use on EBCDIC hosts
15207         * build-aux/git-version-gen (dirty): Use literal rather than tying
15208         ourselves to ascii.
15209         Reported by Steve Goetze.
15210
15211 2010-04-25  Bruno Haible  <bruno@clisp.org>
15212
15213         netdb: Add support for GNULIB_POSIXCHECK.
15214         * lib/netdb.in.h: Include warn-on-use.h.
15215         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15216         functions are used when GNULIB_POSIXCHECK is defined and the
15217         getaddrinfo module is not in use.
15218         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15219         freeaddrinfo, gai_strerror, getnameinfo are declared.
15220         * modules/netdb (Depends-on): Add warn-on-use.
15221         (Makefile.am): Include warn-on-use.h in netdb.h.
15222
15223 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15224
15225         build: avoid "make check" failure without .git/ directory
15226         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15227         there is no .git/ directory.
15228
15229 2010-04-25  Bruno Haible  <bruno@clisp.org>
15230
15231         ptsname: Fix misuse of ttyname_r.
15232         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15233         of errno.
15234
15235 2010-04-25  Bruno Haible  <bruno@clisp.org>
15236
15237         ttyname_r: Make it work on Solaris 10.
15238         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15239         if the system function has the POSIX declaration. Test whether the
15240         function fails if the buffer is less than 128 bytes large.
15241         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15242         system's ttyname_r function. Provide a reasonably large buffer.
15243         * modules/ttyname_r (Depends-on): Add extensions.
15244         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15245
15246 2010-04-25  Bruno Haible  <bruno@clisp.org>
15247
15248         Use the 'extensions' module for some more functions on Solaris.
15249         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15250         module.
15251         * doc/posix-functions/ctime_r.texi: Likewise.
15252         * doc/posix-functions/getgrgid_r.texi: Likewise.
15253         * doc/posix-functions/getgrnam_r.texi: Likewise.
15254         * doc/posix-functions/getpwnam_r.texi: Likewise.
15255         * doc/posix-functions/getpwuid_r.texi: Likewise.
15256         * doc/posix-functions/readdir_r.texi: Likewise.
15257         * doc/posix-functions/sigwait.texi: Likewise.
15258         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15259         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15260
15261 2010-04-25  Bruno Haible  <bruno@clisp.org>
15262
15263         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15264         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15265         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15266         * lib/ttyname_r.c: Include <limits.h>.
15267         (ttyname_r): Define using the system's ttyname_r function, if it exists
15268         and not on Solaris.
15269         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15270         set.
15271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15272         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15273         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15274         Reported by Simon Josefsson.
15275
15276 2010-04-25  Bruno Haible  <bruno@clisp.org>
15277
15278         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15279         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15280         * doc/posix-functions/ctime_r.texi: Likewise.
15281         * doc/posix-functions/getgrgid_r.texi: Likewise.
15282         * doc/posix-functions/getgrnam_r.texi: Likewise.
15283         * doc/posix-functions/getlogin_r.texi: Likewise.
15284         * doc/posix-functions/getpwnam_r.texi: Likewise.
15285         * doc/posix-functions/getpwuid_r.texi: Likewise.
15286         * doc/posix-functions/readdir_r.texi: Likewise.
15287         * doc/posix-functions/sigwait.texi: Likewise.
15288         * doc/posix-functions/ttyname_r.texi: Likewise.
15289         Reported by Simon Josefsson.
15290
15291 2010-04-25  Bruno Haible  <bruno@clisp.org>
15292
15293         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15294         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15295         also to --create-testdir.
15296         (func_acceptable): Don't consider the status of *-tests modules here.
15297         (func_modules_transitive_closure): Consider it here, before including a
15298         test module.
15299         (func_import, func_create_testdir): Set inc_all_direct_tests,
15300         inc_all_indirect_tests.
15301         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15302         --create-testdir and --create-megatestdir.
15303
15304 2010-04-25  Bruno Haible  <bruno@clisp.org>
15305
15306         gnulib-tool: Add --without-*-tests options.
15307         * gnulib-tool (func_usage): Document the --without-*-tests options.
15308         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15309         excl_unportable_tests): New variables.
15310         Fail if they are specified with --import or --update.
15311         (func_acceptable): Respect the excl_*_tests variables.
15312         (func_import): Set the excl_*_tests variables to empty.
15313
15314 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15315             Bruno Haible  <bruno@clisp.org>
15316
15317         Work around a MacOS X 10.4 bug with openpty.
15318         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15319         * tests/test-openpty.c (main): Close the master side explicitly.
15320
15321 2010-04-25  Bruno Haible  <bruno@clisp.org>
15322
15323         strnlen: Fix a C++ test error on MacOS X and Solaris.
15324         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15325         the function is not declared.
15326         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15327         Simon Josefsson.
15328
15329 2010-04-24  Bruno Haible  <bruno@clisp.org>
15330
15331         Avoid a gcc warning.
15332         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15333         of correct type for %08lx directive.
15334         Reported by Eric Blake.
15335
15336 2010-04-24  Bruno Haible  <bruno@clisp.org>
15337
15338         vasnprintf: Correct errno value in case of out-of-memory.
15339         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15340         or sprintf. Use the errno value from SNPRINTF or sprintf.
15341         Reported by Ian Beckwith <ianb@erislabs.net>.
15342
15343 2010-04-24  Bruno Haible  <bruno@clisp.org>
15344
15345         ansi-c++-opt: Find correct compiler when cross-compiling.
15346         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15347         AC_CHECK_PROGS.
15348         Reported by Simon Josefsson.
15349
15350 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15351
15352         vc-list-files: Add support for subversion
15353         * build-aux/vc-list-files: Use "svn list" to generate the list of
15354         files controlled by subversion.
15355
15356 2010-04-23  Jim Meyering  <meyering@redhat.com>
15357
15358         vc-list-files tests: convert to use init.sh
15359         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15360         path_prepend_.
15361         Use Exit, not exit.
15362         Use skip_ rather than open coding it.
15363         Remove trap set-up and compare definitions.
15364         * tests/test-vc-list-files-git.sh: Likewise.
15365         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15366
15367 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15368
15369         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15370         backup files.
15371
15372 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15373
15374         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15375
15376 2010-04-20  Eric Blake  <eblake@redhat.com>
15377
15378         tests: be robust to ignored SIGPIPE
15379         * tests/test-select-in.sh: Consume all output.
15380         * tests/test-lseek.sh: Check correct exit status, while avoiding
15381         EPIPE.
15382
15383 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15384             Bruno Haible  <bruno@clisp.org>
15385
15386         visibility: Don't use -fvisibility if it leads to a warning.
15387         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15388         yes, don't pretend that visibility works if it leads to a warning.
15389         Reported by Mike Gran <spk121@yahoo.com>.
15390
15391 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15392
15393         * build-aux/bootstrap: Use "git -h" for testing for supported options
15394         instead of "git --help".  The short-form option only shows a summary,
15395         and doesn't layout the full man page.  Grep for the full option name
15396         in the summary, too.
15397
15398 2010-04-19  Bruno Haible  <bruno@clisp.org>
15399
15400         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15401         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15402         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15403         mention of RELOCATABLE_STRIP.
15404         Reported by Sylvain Beucler <beuc@beuc.net>.
15405
15406 2010-04-19  Bruno Haible  <bruno@clisp.org>
15407
15408         * lib/diffseq.h: Fix typo in comment.
15409         Reported by Eric Blake.
15410
15411 2010-04-19  Bruno Haible  <bruno@clisp.org>
15412
15413         ioctl: Move autoconf macro to a .m4 file.
15414         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15415         * modules/ioctl (Files): Add it.
15416         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15417         Reported by Ian Beckwith <ianb@erislabs.net>.
15418
15419 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15420             Bruno Haible  <bruno@clisp.org>
15421
15422         diffseq: Accommodate use-case with abstract arrays.
15423         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15424         is not defined.
15425         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15426         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15427
15428 2010-04-18  Bruno Haible  <bruno@clisp.org>
15429
15430         * doc/posix-headers/stdbool.texi: More precise wording.
15431
15432 2010-04-17  Jim Meyering  <meyering@redhat.com>
15433
15434         maint.mk: use gnu-style indentation in an embedded perl script
15435         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15436         Rename variable: s/two/last_two_bytes/
15437
15438 2010-04-16  Eric Blake  <eblake@redhat.com>
15439
15440         test-stdbool: skip test that fails with Solaris CC
15441         * tests/test-stdbool.c (f): Skip test that causes compilation
15442         error under buggy C++ compiler.
15443         * lib/stdbool.in.h: Document the limitation.
15444         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15445
15446         setenv: allow compilation with C++
15447         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15448         register keyword.
15449
15450         stdint: allow test to pass with C++
15451         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15452
15453         getopt: allow compilation with C++
15454         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15455         struct.
15456         * lib/getopt.c (_getopt_internal_r): Use correct type.
15457         Reported by Dagobert Michelson, via Joel E. Denny.
15458
15459 2010-04-16  Bruno Haible  <bruno@clisp.org>
15460
15461         Override netdb.h always.
15462         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15463         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15464         Reported by Ludovic Courtès <ludo@gnu.org>.
15465
15466 2010-04-15  Bruno Haible  <bruno@clisp.org>
15467
15468         openpty: Fix mistake from 2010-03-21.
15469         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15470         Reported by Simon Josefsson.
15471
15472 2010-04-15  Eric Blake  <eblake@redhat.com>
15473
15474         test-forkpty: fix expected signature
15475         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15476         Reported by Simon Josefsson.
15477
15478 2010-04-15  Jim Meyering  <meyering@redhat.com>
15479
15480         maint.mk: texinfo_suffix_re_: correct the default regexp
15481         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15482
15483         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15484         make it configurable via texinfo_suffix_re_.
15485
15486 2010-04-14  Eric Blake  <eblake@redhat.com>
15487
15488         strtok_r: relax license to LGPLv2+
15489         * modules/strtok_r (License): Relax license.
15490         Reported by Matthias Bolte.
15491
15492 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15493
15494         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15495         version 1.4.4 by default instead of requiring the libgcrypt
15496         version used during build.  This makes it possible to use the
15497         application with older but still binary compatible libgcrypt
15498         versions.
15499
15500 2010-04-13  Eric Blake  <eblake@redhat.com>
15501
15502         getopt-gnu: match recent glibc fixes and posix ruling
15503         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15504         '+' handling, when requesting extensions.
15505         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15506         'W;' handling.
15507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15508         * doc/posix-functions/getopt.texi (getopt): Document this.
15509         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15510         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15511         Likewise.
15512
15513         getopt: merge bug fixes from glibc
15514         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15515         diagnostics.  Honor '+:' correctly.  Reject ';'.
15516
15517         getopt-posix: detect MacOS bug
15518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15519         optind when missing a required argument.
15520         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15521         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15522         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15523         Likewise.
15524
15525         getopt-posix: avoid spurious failure on Solaris
15526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15527         an indicator that setting optind=1 is sufficient for reset.
15528
15529         getopt-posix: avoid spurious failure on FreeBSD
15530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15531         in POSIX mode, since the m4 test uses it.
15532
15533         gnulib-tool: silence warning on BSD sh
15534         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15535
15536 2010-04-13  Jim Meyering  <meyering@redhat.com>
15537
15538         doc: users.txt: GNU patch now uses gnulib
15539         * users.txt: Add patch.
15540
15541 2010-04-12  Jim Meyering  <meyering@redhat.com>
15542
15543         maint.mk: generate more concise timing data for syntax-check rules
15544         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15545         " done" from each line that reports a syntax-check test duration.
15546
15547 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15548
15549         git-version-gen: use "git update-index..." rather than "git status"
15550         * build-aux/git-version-gen: Use git update-index --refresh, not
15551         "git status".  With some versions of git, "git status" would fail
15552         to update the index and result in an unwarranted "-dirty" suffix.
15553
15554 2010-04-11  Jim Meyering  <meyering@redhat.com>
15555
15556         openat: correct formatting (no semantic change)
15557         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15558         Suggested by Bruno Haible.
15559
15560 2010-04-11  Bruno Haible  <bruno@clisp.org>
15561
15562         Stricter declaration checking in testdirs.
15563         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15564         If for_tests is true, augment AM_CPPFLAGS to define
15565         GNULIB_STRICT_CHECKING.
15566         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15567         GNULIB_STRICT_CHECKING is defined, verify that the function is
15568         declared.
15569
15570 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15571             Bruno Haible  <bruno@clisp.org>
15572
15573         libunistring: Improve configure output.
15574         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15575         Don't say "consider installing GNU libunistring" when checking again
15576         with libiconv.
15577
15578 2010-04-11  Bruno Haible  <bruno@clisp.org>
15579
15580         libunistring: Correct value of $LTLIBUNISTRING.
15581         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15582         correct the value of $LTLIBUNISTRING.
15583
15584 2010-04-11  Bruno Haible  <bruno@clisp.org>
15585
15586         havelib: Add static libraries to LIBS in the right order.
15587         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15588         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15589
15590 2010-04-11  Bruno Haible  <bruno@clisp.org>
15591
15592         libunistring: Detect libunistring also when it depends on libiconv.
15593         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15594         the second AC_LIB_HAVE_LINKFLAGS invocation.
15595
15596 2010-04-11  James Youngman  <jay@gnu.org>
15597
15598         close-stream: declare local scalars to be "const"
15599         * lib/close-stream.c (close_stream): Make boolean variables const
15600         to document the fact that we set but do not change them.
15601
15602 2010-04-11  Bruno Haible  <bruno@clisp.org>
15603
15604         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15605
15606 2010-04-11  Jim Meyering  <meyering@redhat.com>
15607
15608         maint.mk: don't include dist-check.mk
15609         * top/maint.mk: Remove bogus include directive.
15610
15611         maint.mk: improve empty-line-at-EOF check
15612         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15613         solution, rather than tail+Perl-based one.  The latter would read
15614         a few kilobytes from the end of each file, and did not handle empty
15615         files properly.
15616
15617         maint.mk: print the elapsed time for each syntax-check rule
15618         * top/maint.mk (sc_m_rules_): Save start time in a file.
15619         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15620         (local-check): Interpose the .z rules
15621
15622 2010-04-11  Jim Meyering  <meyering@redhat.com>
15623
15624         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15625         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15626         empty file with one that ends in an empty line.
15627
15628 2010-04-10  Bruno Haible  <bruno@clisp.org>
15629
15630         mkdir: Make it work on mingw64.
15631         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15632         * lib/mkdir.c: Update comment.
15633         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15634
15635 2010-04-10  Bruno Haible  <bruno@clisp.org>
15636
15637         Don't override improved macro from newer autoconf.
15638         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15639         autoconf >= 2.62.
15640         Reported by Joel E. Denny <jdenny@clemson.edu>.
15641
15642 2010-04-10  Jim Meyering  <meyering@redhat.com>
15643
15644         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15645         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15646
15647         maint.mk: correct a diagnostic
15648         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15649         in diagnostic; now use $prohibit.
15650
15651 2010-04-10  Bruno Haible  <address@hidden>
15652
15653         fchownat: Fix a C++ test error on Solaris 8.
15654         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15655         the function does not exist.
15656
15657 2010-04-10  Bruno Haible  <bruno@clisp.org>
15658
15659         vasnprintf: Add more tests.
15660         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15661         (test_function): Test converting an invalid wide string.
15662
15663         vasnprintf: Correct handling of unconvertible wide string arguments.
15664         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15665         VASNPRINTF.
15666         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15667         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15668         smaller than the expected maximum need for the directive. Set errno to
15669         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15670         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15672         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15673         * modules/vasnprintf (Files): Add m4/printf.m4.
15674         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15675
15676 2010-04-10  Bruno Haible  <bruno@clisp.org>
15677
15678         vasnprintf: Fix crash in %ls directive.
15679         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15680         string is passed as argument to %ls, with no precision and no width.
15681         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15682
15683 2010-04-10  Bruno Haible  <bruno@clisp.org>
15684
15685         vasnprintf: Fix multiple test failures on mingw.
15686         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15687         _snprintf, or snwprintf, not _snwprintf.
15688
15689 2010-04-10  Bruno Haible  <bruno@clisp.org>
15690
15691         write: Fix a C++ test error on mingw.
15692         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15693
15694 2010-04-10  Bruno Haible  <bruno@clisp.org>
15695
15696         vasnprintf test: Reduce code duplication.
15697         * tests/test-vasnprintf.c (test_function): New function, extracted from
15698         test_vasnprintf.
15699         (test_vasnprintf, test_asnprintf): Invoke it.
15700
15701 2010-04-10  Bruno Haible  <bruno@clisp.org>
15702
15703         strnlen: Fix warning in C++ mode on MacOS X.
15704         * lib/string.in.h (strnlen): Use the modern idiom.
15705         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15706         defining strnlen as a macro already in <config.h>.
15707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15708         REPLACE_STRNLEN.
15709         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15710         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15711
15712 2010-04-08  James Youngman  <jay@gnu.org>
15713
15714         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15715         the example.
15716
15717 2010-04-09  Jim Meyering  <meyering@redhat.com>
15718
15719         maint.mk: print better diagnostic when there is no $(_hv_file)
15720         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15721         announce that when $(_hv_file) (aka help-version) does not exist.
15722
15723         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15724         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15725         not try to interpret its random input bytes.  Jarno Rajahalme reported
15726         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15727         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15728         (mktempd_): Likewise, just in case.
15729
15730         ftruncate: add two years to projected module removal date: 2012
15731         * m4/ftruncate.m4: Adjust comments.
15732
15733         ftruncate: mark module as obsolete; even MinGW provides it, now
15734         * modules/ftruncate (Status): Obsolete.
15735         (Notice): Say that.
15736         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15737         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15738
15739 2010-04-08  Bruno Haible  <bruno@clisp.org>
15740
15741         Fix side effects from tests-related modules.
15742         * modules/dprintf-posix (Comment): New section.
15743         * modules/fprintf-posix (Comment): Likewise.
15744         * modules/obstack-printf-posix (Comment): Likewise.
15745         * modules/printf-posix (Comment): Likewise.
15746         * modules/snprintf-posix (Comment): Likewise.
15747         * modules/sprintf-posix (Comment): Likewise.
15748         * modules/vasnprintf-posix (Comment): Likewise.
15749         * modules/vasprintf-posix (Comment): Likewise.
15750         * modules/vdprintf-posix (Comment): Likewise.
15751         * modules/vfprintf-posix (Comment): Likewise.
15752         * modules/vprintf-posix (Comment): Likewise.
15753         * modules/vsnprintf-posix (Comment): Likewise.
15754         * modules/vsprintf-posix (Comment): Likewise.
15755         * modules/xprintf-posix (Comment): Likewise.
15756         * modules/xvasprintf-posix (Comment): Likewise.
15757         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15758         * modules/floorf-tests (Depends-on): Likewise.
15759         * modules/round-tests (Depends-on): Likewise.
15760         * modules/roundf-tests (Depends-on): Likewise.
15761         * modules/trunc-tests (Depends-on): Likewise.
15762         * modules/truncf-tests (Depends-on): Likewise.
15763         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15764         'fprintf-posix' module is not present.
15765         * tests/test-floorf2.c (check): Likewise.
15766         * tests/test-trunc2.c (check): Likewise.
15767         * tests/test-truncf2.c (check): Likewise.
15768         * tests/test-round2.c (equal): Likewise.
15769         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15770
15771 2010-04-07  Karl Berry  <karl@gnu.org>
15772
15773         * config/srclist.txt,
15774         * config/srclistvars.sh,
15775         * config/srclist-update: doc fixes.
15776
15777 2010-04-07  Jim Meyering  <meyering@redhat.com>
15778
15779         maint.mk: add a PATH crosschecking syntax-check rule
15780         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15781         Useful if you use a test like the one in help-version (coreutils,
15782         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15783         printed by prog --version.
15784
15785 2010-04-06  Bruno Haible  <bruno@clisp.org>
15786
15787         Fix link error on mingw.
15788         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15789         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15790
15791 2010-04-06  Bruno Haible  <bruno@clisp.org>
15792
15793         Assume rmdir exists.
15794         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15795
15796 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15797
15798         doc: update users.txt
15799         * users.txt: Add gcal.
15800
15801 2010-04-06  Jim Meyering  <meyering@redhat.com>
15802
15803         init.sh: simply unset TMPDIR rather than risking env -i
15804         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15805         although it probably works fine on all Unix-based systems, some
15806         systems (Cygwin?) cannot tolerate a totally cleared environment.
15807         Suggestion from Eric Blake.
15808
15809 2010-04-06  Jim Meyering  <meyering@redhat.com>
15810
15811         init.sh: portability fix: use env's POSIX-specified -i option not -u
15812         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15813         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15814
15815 2010-04-05  Bruno Haible  <bruno@clisp.org>
15816
15817         btowc: Work around Cygwin 1.7.2 bug.
15818         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15819         does not map NUL to 0.
15820         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15821
15822 2010-04-05  Bruno Haible  <bruno@clisp.org>
15823
15824         Make the multithread modules work on Cygwin 1.7.2.
15825         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15826         imported symbols can be declared weak, so that it returns "no" on
15827         Cygwin 1.7.2.
15828
15829 2010-04-05  Bruno Haible  <bruno@clisp.org>
15830
15831         Use the module 'strncat'.
15832         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15833
15834         Tests for module 'strncat'.
15835         * modules/strncat-tests: New file.
15836         * tests/test-strncat.c: New file.
15837
15838         New module 'strncat'.
15839         * lib/string.in.h (strncat): New declaration.
15840         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15841         * m4/strncat.m4: New file, based on m4/memchr.m4.
15842         * modules/strncat: New file.
15843         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15844         is declared.
15845         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15846         REPLACE_STRNCAT.
15847         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15848         REPLACE_STRNCAT.
15849         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15850         module.
15851         * tests/test-string-c++.cc: Check signature of strncat.
15852
15853 2010-04-05  Jim Meyering  <meyering@redhat.com>
15854
15855         xstrtoumax-tests: convert to use init.sh
15856         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15857         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15858         Use Exit, not exit.
15859         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15860
15861         xstrtoimax-tests: convert to use init.sh
15862         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15863         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15864         Use Exit, not exit.
15865         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15866
15867 2010-04-05  Bruno Haible  <bruno@clisp.org>
15868
15869         sys_socket: Avoid #define replacements in C++ mode.
15870         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15871         warning to the function if possible, rather than #defining the symbol
15872         to a dysfunctional alias.
15873
15874 2010-04-05  Bruno Haible  <bruno@clisp.org>
15875
15876         fseeko: Fix C++ test error on mingw.
15877         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15878         gl_FUNC_FSEEKO.
15879         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15880         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15881         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15882         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15883
15884 2010-04-05  Bruno Haible  <bruno@clisp.org>
15885
15886         duplocale: Improve test output.
15887         * tests/test-duplocale.c (main): Print reason for skipped test.
15888
15889 2010-04-05  Bruno Haible  <bruno@clisp.org>
15890
15891         Assume rmdir exists.
15892         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15893         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15894
15895 2010-04-05  Bruno Haible  <bruno@clisp.org>
15896
15897         Fix link error on Solaris 8 with cc.
15898         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15899
15900 2010-04-05  Bruno Haible  <bruno@clisp.org>
15901
15902         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15903         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15904
15905 2010-04-05  Bruno Haible  <bruno@clisp.org>
15906
15907         vasprintf: Update documentation.
15908         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15909
15910 2010-04-05  Bruno Haible  <bruno@clisp.org>
15911
15912         ptsname: Improve test.
15913         * tests/test-ptsname.c (main): Also try the various master names of BSD
15914         systems.
15915
15916 2010-04-05  Bruno Haible  <bruno@clisp.org>
15917
15918         memchr: Avoid a possible C++ test error.
15919         * lib/string.in.h (memchr): Provide declaration if function is missing.
15920         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15921         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15923         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15924
15925 2010-04-05  Bruno Haible  <bruno@clisp.org>
15926
15927         strtok_r: Improve idiom.
15928         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15929         AC_LIBOBJ is used.
15930
15931 2010-04-05  Bruno Haible  <bruno@clisp.org>
15932
15933         strdup: Improve idiom.
15934         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15935         AC_LIBOBJ is used.
15936         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15937         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15938         when AC_LIBOBJ is used.
15939
15940 2010-04-05  Bruno Haible  <bruno@clisp.org>
15941
15942         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15943         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15944         don't set REPLACE_MBSINIT to 1.
15945         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15946         don't set REPLACE_MBRTOWC to 1.
15947         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15948         exist, don't set REPLACE_MBSRTOWCS to 1.
15949         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15950         exist, don't set REPLACE_MBSNRTOWCS to 1.
15951         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15952         don't set REPLACE_WCRTOMB to 1.
15953         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15954         exist, don't set REPLACE_WCSRTOMBS to 1.
15955         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15956         exist, don't set REPLACE_WCSNRTOMBS to 1.
15957
15958 2010-04-05  Bruno Haible  <bruno@clisp.org>
15959
15960         ldexpl: Improve idiom.
15961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15962         make sure to set HAVE_DECL_LDEXPL to 0.
15963
15964 2010-04-05  Jim Meyering  <meyering@redhat.com>
15965
15966         xstrtol-tests: convert to use init.sh
15967         * modules/xstrtol-tests (Files): Add tests/init.sh.
15968         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15969         Use Exit, not exit.
15970         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15971
15972         atexit-tests: convert to use init.sh
15973         * modules/atexit-tests (Files): Add tests/init.sh.
15974         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15975         Use Exit, not exit.
15976         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15977
15978         init.sh: fix typo
15979         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15980
15981         init.sh: make it easier for a test script to write to the tty, ...
15982         when using automake's parallel-tests mode.
15983         * tests/init.sh (stderr_fileno_): Define overridable variable.
15984         (warn_): New function, to use it.
15985         (fail_, skip_, framework_failure_): Use warn_.
15986
15987 2010-04-04  Bruno Haible  <bruno@clisp.org>
15988
15989         btowc: Avoid warning.
15990         * lib/btowc.c: Include <stdlib.h>.
15991         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15992
15993 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15994             Bruno Haible  <bruno@clisp.org>
15995
15996         wchar: Port to NetBSD 1.5.
15997         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15998         * lib/wctype.in.h (WEOF): Likewise.
15999
16000 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16001             Bruno Haible  <bruno@clisp.org>
16002
16003         Port extended stdio to NetBSD 1.5.
16004         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16005         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16006         older.
16007
16008 2010-04-04  Bruno Haible  <bruno@clisp.org>
16009
16010         string: Remove unused substitution.
16011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16012         HAVE_DECL_STRERROR.
16013         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16014
16015 2010-04-04  Bruno Haible  <bruno@clisp.org>
16016
16017         strtod: Avoid a possible C++ test error.
16018         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16019         set REPLACE_STRTOD.
16020
16021 2010-04-04  Bruno Haible  <bruno@clisp.org>
16022
16023         strerror: Update documentation.
16024         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16025
16026 2010-04-04  Bruno Haible  <bruno@clisp.org>
16027
16028         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16029         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16030         _GL_CXXALIAS_SYS_CAST.
16031
16032 2010-04-04  Bruno Haible  <bruno@clisp.org>
16033
16034         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16035         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16036         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16037         REPLACE_FREXPL to 1.
16038         * doc/posix-functions/frexpl.texi: Update documentation.
16039
16040 2010-04-04  Bruno Haible  <bruno@clisp.org>
16041
16042         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16043         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16044
16045 2010-04-04  Bruno Haible  <bruno@clisp.org>
16046
16047         Implement nanosleep for native Windows.
16048         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16049
16050 2010-04-04  Bruno Haible  <bruno@clisp.org>
16051
16052         math: Fix some C++ test errors on Solaris 8.
16053         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16054
16055 2010-04-04  Bruno Haible  <bruno@clisp.org>
16056
16057         math: Fix some C++ test errors on Cygwin.
16058         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16059         truncl): Provide declaration if the system does not have it.
16060         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16061         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16062         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16063         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16064         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16065         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16066         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16067         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16068         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16069         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16070         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16071         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16072         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16073         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16074         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16075         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16077         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16078         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16079         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16080         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16081         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16082
16083 2010-04-04  Bruno Haible  <bruno@clisp.org>
16084
16085         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16086         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16087         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16088         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16089         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16090         * m4/isinf.m4 (gl_ISINF): Likewise.
16091         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16092
16093 2010-04-04  Bruno Haible  <bruno@clisp.org>
16094
16095         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16096         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16097
16098 2010-04-04  Bruno Haible  <bruno@clisp.org>
16099
16100         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16101         * modules/tmpfile (configure.ac): Update.
16102
16103         tmpfile: Fix C++ test error on mingw.
16104         * lib/stdio.in.h (tmpfile): New declaration.
16105         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16106         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16107         * modules/tmpfile (Depends-on): Add stdio.
16108         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16109         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16110         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16111         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16112         REPLACE_TMPFILE.
16113         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16114
16115 2010-04-04  Bruno Haible  <bruno@clisp.org>
16116
16117         ioctl: Fix C++ test error on mingw.
16118         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16119         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16120         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16121
16122 2010-04-03  Bruno Haible  <bruno@clisp.org>
16123
16124         wcwidth: Fix C++ test error on mingw.
16125         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16127         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16128
16129 2010-04-03  Bruno Haible  <bruno@clisp.org>
16130
16131         nanosleep: Fix C++ test error on mingw.
16132         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16133         * lib/time.in.h (nanosleep): Use modern idiom.
16134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16135         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16136         REPLACE_NANOSLEEP to 1.
16137         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16138         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16139
16140 2010-04-03  Bruno Haible  <bruno@clisp.org>
16141
16142         strptime: Fix C++ test error on mingw.
16143         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16144         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16145         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16146         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16147         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16148         not REPLACE_STRPTIME.
16149         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16150         REPLACE_STRPTIME.
16151
16152 2010-04-03  Bruno Haible  <bruno@clisp.org>
16153
16154         timegm: Fix C++ test error on mingw.
16155         * lib/time.in.h (timegm): Use modern idiom.
16156         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16157         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16158         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16159         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16160
16161 2010-04-03  Bruno Haible  <bruno@clisp.org>
16162
16163         timegm: Assume declaration if function exists.
16164         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16165         if it exists. Don't clobber ac_cv_func_timegm.
16166
16167 2010-04-03  Bruno Haible  <bruno@clisp.org>
16168
16169         time_r: Fix C++ test error on mingw.
16170         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16171         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16172         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16173         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16174         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16175
16176 2010-04-03  Bruno Haible  <bruno@clisp.org>
16177
16178         time_r: Minor updates.
16179         * modules/time_r (Description): Mention the provided functions.
16180         * lib/time_r.c: Don't include <string.h>.
16181         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16182         * doc/posix-functions/localtime_r.texi: Likewise.
16183
16184 2010-04-03  Bruno Haible  <bruno@clisp.org>
16185
16186         time: Fix regression introduced on 2010-03-08.
16187         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16188         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16189
16190 2010-04-03  Jim Meyering  <meyering@redhat.com>
16191
16192         maint.mk: don't silently disable project-specific syntax-check rules
16193         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16194         that they need to convert their project-specific syntax-check rules
16195         to use the new _sc_search_regexp.
16196
16197 2010-04-03  Bruno Haible  <bruno@clisp.org>
16198
16199         fchdir: Fix regression introduced on 2010-03-08.
16200         * lib/unistd.in.h (fchdir): Fix declaration.
16201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16203         REPLACE_FCHDIR.
16204         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16205         REPLACE_FCHDIR.
16206
16207 2010-04-03  Bruno Haible  <bruno@clisp.org>
16208
16209         getpagesize: Fix C++ test error on mingw.
16210         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16211         system does not declare the function.
16212         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16213         declared.
16214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16215         HAVE_DECL_GETPAGESIZE.
16216         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16217
16218 2010-04-03  Bruno Haible  <bruno@clisp.org>
16219
16220         stdio: Make C++ tests work on mingw.
16221         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16222         does not declare the function.
16223
16224 2010-04-03  Bruno Haible  <bruno@clisp.org>
16225
16226         ftello: Fix C++ test error on mingw.
16227         * lib/stdio.in.h (ftello): Use modern idiom.
16228         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16229         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16230         is missing and that it needs to be replaced.
16231         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16233         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16234
16235 2010-04-03  Bruno Haible  <bruno@clisp.org>
16236
16237         fseeko: Fix C++ test error on mingw.
16238         * lib/stdio.in.h (fseeko): Use modern idiom.
16239         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16240         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16241         is missing and that it needs to be replaced.
16242         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16244         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16245
16246 2010-04-03  Bruno Haible  <bruno@clisp.org>
16247
16248         mkstemp: Fix C++ test error on mingw.
16249         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16250         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16251         function is missing and that it needs to be replaced.
16252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16253         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16254
16255 2010-04-03  Bruno Haible  <bruno@clisp.org>
16256
16257         stpncpy: Fix C++ test error on mingw.
16258         * lib/string.in.h (stpncpy): Use modern idiom.
16259         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16260         function is missing and that it needs to be replaced.
16261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16262         REPLACE_STPNCPY.
16263         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16264
16265 2010-04-03  Bruno Haible  <bruno@clisp.org>
16266
16267         sys_stat: Fix C++ test error on mingw.
16268         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16269         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16270
16271 2010-04-03  Bruno Haible  <bruno@clisp.org>
16272
16273         pty: Update doc.
16274         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16275
16276 2010-04-03  Bruno Haible  <bruno@clisp.org>
16277
16278         unistd: Fix C++ test error on mingw.
16279         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16280
16281 2010-04-03  Bruno Haible  <bruno@clisp.org>
16282
16283         Update doc regarding mingw.
16284         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16285         * doc/glibc-functions/login_tty.texi: Likewise.
16286         * doc/glibc-functions/forkpty.texi: Likewise.
16287
16288 2010-04-03  Bruno Haible  <bruno@clisp.org>
16289
16290         stdlib: Avoid compilation failure of c-strtold on mingw.
16291         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16292
16293 2010-04-03  Bruno Haible  <bruno@clisp.org>
16294
16295         locale: Make C++ tests work on Cygwin and mingw.
16296         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16297         cannot provide the function.
16298         Reported by Simon Josefsson.
16299
16300 2010-04-03  Bruno Haible  <bruno@clisp.org>
16301
16302         localename: Port to MacOS X 10.6.
16303         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16304         memory layout of the locales in MacOS X 10.6 as well.
16305         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16306
16307 2010-04-02  Bruno Haible  <bruno@clisp.org>
16308
16309         gnulib-tool: Ensure that long-running tests are executed last.
16310         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16311         running tests after the one for the other tests.
16312
16313 2010-04-02  Bruno Haible  <bruno@clisp.org>
16314
16315         gnulib-tool: Ensure the tests in the main directory are executed first.
16316         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16317         start with the current directory.
16318
16319 2010-04-02  Bruno Haible  <bruno@clisp.org>
16320
16321         Tests for module 'havelib', moved here from GNU gettext.
16322         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16323         modifications.
16324         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16325         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16326         with modifications.
16327         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16328         modifications.
16329         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16330         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16331         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16332         with modifications.
16333         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16334         with modifications.
16335         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16336         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16337         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16338         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16339         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16340         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16341         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16342         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16343         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16344         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16345         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16346         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16347         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16348         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16349         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16350         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16351         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16352         with modifications.
16353         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16354         with modifications.
16355         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16356         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16357         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16358         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16359         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16360         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16361         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16362         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16363         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16364         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16365         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16366         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16367         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16368         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16369         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16370         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16371         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16372         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16373         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16374         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16375         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16376         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16377         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16378         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16379         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16380         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16381         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16382         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16383         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16384         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16385         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16386         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16387         * tests/havelib/rpathx/rpathx.c: New file, from
16388         gettext/autoconf-lib-link.
16389         * tests/havelib/rpathx/Makefile.am: New file, from
16390         gettext/autoconf-lib-link.
16391         * tests/havelib/rpathx/configure.ac: New file, from
16392         gettext/autoconf-lib-link with modifications.
16393         * tests/havelib/rpathy/rpathy.c: New file, from
16394         gettext/autoconf-lib-link.
16395         * tests/havelib/rpathy/Makefile.am: New file, from
16396         gettext/autoconf-lib-link.
16397         * tests/havelib/rpathy/configure.ac: New file, from
16398         gettext/autoconf-lib-link with modifications.
16399         * tests/havelib/rpathz/rpathz.c: New file, from
16400         gettext/autoconf-lib-link.
16401         * tests/havelib/rpathz/Makefile.am: New file, from
16402         gettext/autoconf-lib-link.
16403         * tests/havelib/rpathz/configure.ac: New file, from
16404         gettext/autoconf-lib-link with modifications.
16405         * tests/havelib/rpathlx/usex.c: New file, from
16406         gettext/autoconf-lib-link.
16407         * tests/havelib/rpathlx/Makefile.am: New file, from
16408         gettext/autoconf-lib-link.
16409         * tests/havelib/rpathlx/configure.ac: New file, from
16410         gettext/autoconf-lib-link with modifications.
16411         * tests/havelib/rpathly/usey.c: New file, from
16412         gettext/autoconf-lib-link.
16413         * tests/havelib/rpathly/Makefile.am: New file, from
16414         gettext/autoconf-lib-link.
16415         * tests/havelib/rpathly/configure.ac: New file, from
16416         gettext/autoconf-lib-link with modifications.
16417         * tests/havelib/rpathlz/usez.c: New file, from
16418         gettext/autoconf-lib-link.
16419         * tests/havelib/rpathlz/Makefile.am: New file, from
16420         gettext/autoconf-lib-link.
16421         * tests/havelib/rpathlz/configure.ac: New file, from
16422         gettext/autoconf-lib-link with modifications.
16423         * tests/havelib/rpathlyx/usey.c: New file, from
16424         gettext/autoconf-lib-link.
16425         * tests/havelib/rpathlyx/Makefile.am: New file, from
16426         gettext/autoconf-lib-link.
16427         * tests/havelib/rpathlyx/configure.ac: New file, from
16428         gettext/autoconf-lib-link with modifications.
16429         * tests/havelib/rpathlzyx/usez.c: New file, from
16430         gettext/autoconf-lib-link.
16431         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16432         gettext/autoconf-lib-link.
16433         * tests/havelib/rpathlzyx/configure.ac: New file, from
16434         gettext/autoconf-lib-link with modifications.
16435         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16436         with modifications.
16437
16438 2010-04-02  Bruno Haible  <bruno@clisp.org>
16439
16440         gnulib-tool: Create distributed built sources also for the tests.
16441         * gnulib-tool (func_create_testdir): Also generate distributed built
16442         sources in the tests directory.
16443
16444 2010-04-02  Bruno Haible  <bruno@clisp.org>
16445
16446         gnulib-tool: Obey user's environment variables.
16447         * gnulib-tool (func_create_testdir): When creating built sources,
16448         respect the environment variables for autoconf, automake, etc. given by
16449         the user.
16450
16451 2010-04-02  Bruno Haible  <bruno@clisp.org>
16452
16453         gnulib-tool: Provide the value of --m4-base to modules.
16454         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16455         of gl_m4_base.
16456
16457 2010-04-02  Eric Blake  <eblake@redhat.com>
16458
16459         maint.mk: fix some fallout
16460         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16461         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16462
16463 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16464
16465         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16466         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16467         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16468         (sc_cast_of_x_alloc_return_value): Likewise.
16469         (sc_cast_of_alloca_return_value): Likewise.
16470         (sc_space_tab): Likewise.
16471         (sc_prohibit_atoi_atof): Likewise.
16472         (sc_prohibit_magic_number_exit): Likewise.
16473         (sc_error_exit_success): Likewise.
16474         (sc_file_system): Likewise.
16475         (sc_prohibit_have_config_h): Likewise.
16476         (sc_require_config_h): Likewise.
16477         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16478         (sc_obsolete_symbols): Likewise.
16479         (sc_changelog): Likewise.
16480         (sc_program_name): Likewise.
16481         (sc_the_the): Likewise.
16482         (sc_trailing_blank): Likewise.
16483         (sc_two_space_separator_in_usage): Likewise.
16484         (sc_useless_cpp_parens): Likewise.
16485         (sc_GPL_version): Likewise.
16486         (sc_GFDL_version): Likewise.
16487         (sc_texinfo_acronym): Likewise.
16488         (sc_prohibit_cvs_keyword): Likewise.
16489         (sc_prohibit_stat_st_blocks): Likewise.
16490         (sc_prohibit_S_IS_definition): Likewise.
16491         (sc_redundant_const): Likewise.
16492         (sc_makefile_TAB_only_indentation): Likewise.
16493         (sc_m4_quote_check): Likewise.
16494         (sc_makefile_path_separator_check): Likewise.
16495         (sc_copyright_check): Likewise.
16496         (sc_Wundef_boolean): Likewise.
16497         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16498
16499         maint.mk: match 0 or more whitespace-before-function-call '('
16500         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16501         that have zero or two-and-more spaces between the function name
16502         and the open parenthesis.
16503         (sc_error_message_warn_fatal): Likewise.
16504         (sc_error_message_uppercase): Likewise.
16505         (sc_error_message_period): Likewise.
16506
16507 2010-03-31  Eric Blake  <eblake@redhat.com>
16508
16509         maint.mk: check for [ as well as test
16510         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16511         Based on a libvirt report by Matthias Bolte.
16512
16513         gnumakefile: don't squelch _version output
16514         * top/GNUmakefile (_version): Create one-shot dependency rather
16515         than using $(shell) when version must be regenerated.
16516         (_autoreconf): Run verbosely, by default.
16517
16518         sys_time: avoid compiler warnings
16519         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16520         unconditional, fixing regression from 2010-03-29.
16521         Reported by Simon Josefsson.
16522
16523 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16524
16525         maint.mk: s/_header_without_use/_sc_header_without_use/
16526         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16527         (sc_prohibit_assert_without_use): Use the new name.
16528         (sc_prohibit_close_stream_without_use): Likewise.
16529         (sc_prohibit_getopt_without_use): Likewise.
16530         (sc_prohibit_quotearg_without_use): Likewise.
16531         (sc_prohibit_quote_without_use): Likewise.
16532         (sc_prohibit_long_options_without_use): Likewise.
16533         (sc_prohibit_inttostr_without_use): Likewise.
16534         (sc_prohibit_ignore_value_without_use): Likewise.
16535         (sc_prohibit_error_without_use): Likewise.
16536         (sc_prohibit_xalloc_without_use): Likewise.
16537         (sc_prohibit_hash_without_use): Likewise.
16538         (sc_prohibit_hash_pjw_without_use): Likewise.
16539         (sc_prohibit_safe_read_without_use): Likewise.
16540         (sc_prohibit_argmatch_without_use): Likewise.
16541         (sc_prohibit_canonicalize_without_use): Likewise.
16542         (sc_prohibit_root_dev_ino_without_use): Likewise.
16543         (sc_prohibit_openat_without_use): Likewise.
16544         (sc_prohibit_c_ctype_without_use): Likewise.
16545         (sc_prohibit_signal_without_use): Likewise.
16546         (sc_prohibit_intprops_without_use): Likewise.
16547
16548 2010-03-30  Eric Blake  <eblake@redhat.com>
16549
16550         maint: improve module indicators
16551         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16552         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16553         columns, and avoid extra macro expansion.
16554
16555         fdopendir: work around FreeBSD bug
16556         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16557         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16558         * modules/dirent (Makefile.am): Substitute it.
16559         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16560         declaration.
16561         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16562         fix.
16563         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16564
16565 2010-03-29  Bruno Haible  <bruno@clisp.org>
16566
16567         Emit #pragma system_header after the inclusion guard, not before.
16568         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16569         guard that spans the entire file, not before. This enables an
16570         optimization in GCC's preprocessor.
16571         * lib/ctype.in.h: Likewise.
16572         * lib/dirent.in.h: Likewise.
16573         * lib/errno.in.h: Likewise.
16574         * lib/float.in.h: Likewise.
16575         * lib/getopt.in.h: Likewise.
16576         * lib/iconv.in.h: Likewise.
16577         * lib/langinfo.in.h: Likewise.
16578         * lib/locale.in.h: Likewise.
16579         * lib/math.in.h: Likewise.
16580         * lib/netdb.in.h: Likewise.
16581         * lib/netinet_in.in.h: Likewise.
16582         * lib/pty.in.h: Likewise.
16583         * lib/sched.in.h: Likewise.
16584         * lib/se-selinux.in.h: Likewise.
16585         * lib/search.in.h: Likewise.
16586         * lib/spawn.in.h: Likewise.
16587         * lib/stdarg.in.h: Likewise.
16588         * lib/stdint.in.h: Likewise.
16589         * lib/string.in.h: Likewise.
16590         * lib/strings.in.h: Likewise.
16591         * lib/sys_file.in.h: Likewise.
16592         * lib/sys_ioctl.in.h: Likewise.
16593         * lib/sys_time.in.h: Likewise.
16594         * lib/sys_times.in.h: Likewise.
16595         * lib/sys_utsname.in.h: Likewise.
16596         * lib/sys_wait.in.h: Likewise.
16597         * lib/sysexits.in.h: Likewise.
16598         * lib/wctype.in.h: Likewise.
16599
16600 2010-03-28  James Youngman  <jay@gnu.org>
16601
16602         save-cwd: don't leak a file descriptor when the caller execs.
16603         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16604         saved file descriptor.
16605         * modules/save-cwd (Depends-on): Depend on cloexec.
16606
16607 2010-03-29  Bruno Haible  <bruno@clisp.org>
16608
16609         Remove vestiges of fts-lgpl module.
16610         * lib/fts_.h: Assume GNULIB_FTS is 1.
16611         * lib/fts.c: Likewise.
16612         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16613
16614 2010-03-28  Bruno Haible  <bruno@clisp.org>
16615
16616         Fix definition of tests witness macro.
16617         * gnulib-tool (func_import): Fix definition of witness macro.
16618
16619 2010-03-28  Bruno Haible  <bruno@clisp.org>
16620
16621         Fix ioctl's protoype on glibc systems.
16622         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16623         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16624         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16625         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16626         signature. If not, arrange to replace the ioctl function.
16627         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16628         REPLACE_IOCTL.
16629         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16630         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16631         Reported by Ludovic Courtès <ludo@gnu.org>.
16632
16633 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16634
16635         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16636         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16637         made it so grep -r --include=GLOB* ... did not work.
16638
16639 2010-03-26  Jim Meyering  <meyering@redhat.com>
16640             Eric Blake  <eblake@redhat.com>
16641
16642         maint.mk: prohibit use of test's -o and -a operators
16643         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16644
16645 2010-03-28  Bruno Haible  <bruno@clisp.org>
16646
16647         Remove unused GNULIB_XYZ macro definitions.
16648         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16649         invocation.
16650
16651 2010-03-28  Bruno Haible  <bruno@clisp.org>
16652
16653         Mark privileged tests modules.
16654         * modules/idpriv-drop-tests (Status): New section.
16655         * modules/idpriv-droptemp-tests (Status): New section.
16656
16657 2010-03-28  Bruno Haible  <bruno@clisp.org>
16658
16659         Split C++ tests into separate tests modules.
16660         * modules/dirent-c++-tests: New file, extracted from
16661         modules/dirent-tests.
16662         * modules/dirent-tests: Depend on it.
16663         * modules/fcntl-h-c++-tests: New file, extracted from
16664         modules/fcntl-h-tests.
16665         * modules/fcntl-h-tests: Depend on it.
16666         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16667         * modules/glob-tests: Depend on it.
16668         * modules/iconv-h-c++-tests: New file, extracted from
16669         modules/iconv-h-tests.
16670         * modules/iconv-h-tests: Depend on it.
16671         * modules/langinfo-c++-tests: New file, extracted from
16672         modules/langinfo-tests.
16673         * modules/langinfo-tests: Depend on it.
16674         * modules/locale-c++-tests: New file, extracted from
16675         modules/locale-tests.
16676         * modules/locale-tests: Depend on it.
16677         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16678         * modules/math-tests: Depend on it.
16679         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16680         * modules/pty-tests: Depend on it.
16681         * modules/search-c++-tests: New file, extracted from
16682         modules/search-tests.
16683         * modules/search-tests: Depend on it.
16684         * modules/signal-c++-tests: New file, extracted from
16685         modules/signal-tests.
16686         * modules/signal-tests: Depend on it.
16687         * modules/spawn-c++-tests: New file, extracted from
16688         modules/spawn-tests.
16689         * modules/spawn-tests: Depend on it.
16690         * modules/stdio-c++-tests: New file, extracted from
16691         modules/stdio-tests.
16692         * modules/stdio-tests: Depend on it.
16693         * modules/stdlib-c++-tests: New file, extracted from
16694         modules/stdlib-tests.
16695         * modules/stdlib-tests: Depend on it.
16696         * modules/string-c++-tests: New file, extracted from
16697         modules/string-tests.
16698         * modules/string-tests: Depend on it.
16699         * modules/sys_ioctl-c++-tests: New file, extracted from
16700         modules/sys_ioctl-tests.
16701         * modules/sys_ioctl-tests: Depend on it.
16702         * modules/sys_select-c++-tests: New file, extracted from
16703         modules/sys_select-tests.
16704         * modules/sys_select-tests: Depend on it.
16705         * modules/sys_socket-c++-tests: New file, extracted from
16706         modules/sys_socket-tests.
16707         * modules/sys_socket-tests: Depend on it.
16708         * modules/sys_stat-c++-tests: New file, extracted from
16709         modules/sys_stat-tests.
16710         * modules/sys_stat-tests: Depend on it.
16711         * modules/sys_time-c++-tests: New file, extracted from
16712         modules/sys_time-tests.
16713         * modules/sys_time-tests: Depend on it.
16714         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16715         * modules/time-tests: Depend on it.
16716         * modules/unistd-c++-tests: New file, extracted from
16717         modules/unistd-tests.
16718         * modules/unistd-tests: Depend on it.
16719         * modules/wchar-c++-tests: New file, extracted from
16720         modules/wchar-tests.
16721         * modules/wchar-tests: Depend on it.
16722         * modules/wctype-c++-tests: New file, extracted from
16723         modules/wctype-tests.
16724         * modules/wctype-tests: Depend on it.
16725         Reported by Simon Josefsson.
16726
16727 2010-03-28  Bruno Haible  <bruno@clisp.org>
16728
16729         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16730         * gnulib-tool (func_exists_module): New function, extracted from
16731         func_verify_module.
16732         (func_verify_module): Use it.
16733         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16734         'foo' only if 'foo' exists.
16735         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16736         module.
16737
16738 2010-03-28  Bruno Haible  <bruno@clisp.org>
16739
16740         gnulib-tool: Add support for special categories of tests.
16741         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16742         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16743         (func_usage): Document them.
16744         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16745         inc_unportable_tests, inc_all_tests): New variables.
16746         (func_acceptable): Consider these variables.
16747         (func_modules_transitive_closure): Make it work when the 'Status' field
16748         consists of multiple words.
16749         (func_import): Store and restore the values of inc_cxx_tests,
16750         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16751         inc_all_tests in gnulib-comp.m4.
16752         (func_create_testdir): Set inc_all_tests to true.
16753         * doc/gnulib.texi (Extra tests modules): New section.
16754         Suggested by Jim Meyering.
16755
16756 2010-03-28  Bruno Haible  <bruno@clisp.org>
16757
16758         ansi-c++-opt: Allow turning off the C++ build by default.
16759         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16760         gl_CXX_CHOICE_DEFAULT_NO is defined.
16761         Requested by Eric Blake.
16762
16763 2010-03-28  Bruno Haible  <bruno@clisp.org>
16764
16765         unistd: Avoid #define replacements in C++ mode.
16766         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16767         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16768         setsockopt, shutdown, select): In C++, attach a warning to the function
16769         if possible, rather than #defining the symbol to a dysfunctional alias.
16770         Reported by John W. Eaton <jwe@gnu.org>.
16771
16772 2010-03-28  Bruno Haible  <bruno@clisp.org>
16773
16774         Fix link errors on mingw.
16775         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16776         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16777         $(LIBSOCKET).
16778         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16779         $(LIBSOCKET).
16780
16781 2010-03-28  Bruno Haible  <bruno@clisp.org>
16782             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16783
16784         lib-ignore: Determine different options for different compilers.
16785         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16786         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16787         Add comments.
16788         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16789         * NEWS: Mention the change.
16790
16791 2010-03-27  Bruno Haible  <bruno@clisp.org>
16792
16793         Remove unused GNULIB_XYZ macro definitions.
16794         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16795         * modules/fseek (configure.ac): Likewise.
16796         * modules/ioctl (configure.ac): Likewise.
16797         * modules/open (configure.ac): Likewise.
16798         * modules/stdlib-safer (configure.ac): Likewise.
16799
16800 2010-03-27  Bruno Haible  <bruno@clisp.org>
16801
16802         Add a remark about certain modules.
16803         * modules/malloc (Comment): New section.
16804         * modules/realloc (Comment): Likewise.
16805         * modules/sigpipe (Comment): Likewise.
16806
16807 2010-03-27  Bruno Haible  <bruno@clisp.org>
16808
16809         Resolve conflict between the two kinds of module indicators.
16810         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16811         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16812         * modules/canonicalize (configure.ac): Invoke
16813         gl_MODULE_INDICATOR_FOR_TESTS.
16814         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16815         GNULIB_XYZ.
16816         * tests/test-dirent-c++.cc: Likewise.
16817         * tests/test-dirent-safer.c: Likewise.
16818         * tests/test-dup2.c: Likewise.
16819         * tests/test-fchdir.c: Likewise.
16820         * tests/test-fcntl-h-c++.cc: Likewise.
16821         * tests/test-getopt.c: Likewise.
16822         * tests/test-getopt.h: Likewise.
16823         * tests/test-langinfo-c++.cc: Likewise.
16824         * tests/test-locale-c++.cc: Likewise.
16825         * tests/test-math-c++.cc: Likewise.
16826         * tests/test-pty-c++.cc: Likewise.
16827         * tests/test-search-c++.cc: Likewise.
16828         * tests/test-signal-c++.cc: Likewise.
16829         * tests/test-spawn-c++.cc: Likewise.
16830         * tests/test-stdio-c++.cc: Likewise.
16831         * tests/test-stdlib-c++.cc: Likewise.
16832         * tests/test-string-c++.cc: Likewise.
16833         * tests/test-sys_ioctl-c++.cc: Likewise.
16834         * tests/test-sys_select-c++.cc: Likewise.
16835         * tests/test-sys_socket-c++.cc: Likewise.
16836         * tests/test-sys_stat-c++.cc: Likewise.
16837         * tests/test-sys_time-c++.cc: Likewise.
16838         * tests/test-time-c++.cc: Likewise.
16839         * tests/test-unistd-c++.cc: Likewise.
16840         * tests/test-wchar-c++.cc: Likewise.
16841         * tests/uninorm/test-u8-nfc.c: Likewise.
16842         * tests/uninorm/test-u8-nfd.c: Likewise.
16843         * tests/uninorm/test-u8-nfkc.c: Likewise.
16844         * tests/uninorm/test-u8-nfkd.c: Likewise.
16845         * tests/uninorm/test-u16-nfc.c: Likewise.
16846         * tests/uninorm/test-u16-nfd.c: Likewise.
16847         * tests/uninorm/test-u16-nfkc.c: Likewise.
16848         * tests/uninorm/test-u16-nfkd.c: Likewise.
16849         * tests/uninorm/test-u32-nfc.c: Likewise.
16850         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16851         * tests/uninorm/test-u32-nfd.c: Likewise.
16852         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16853         * tests/uninorm/test-u32-nfkc.c: Likewise.
16854         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16855         * tests/uninorm/test-u32-nfkd.c: Likewise.
16856         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16857         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16858
16859 2010-03-27  Bruno Haible  <bruno@clisp.org>
16860
16861         Distinguish two kinds of module indicators.
16862         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16863         gl_MODULE_INDICATOR.
16864         (gl_MODULE_INDICATOR): New macro.
16865         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16866         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16867         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16868         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16869         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16870         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16871         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16872         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16873         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16874         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16875         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16876         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16877         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16878         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16879         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16880         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16881         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16882         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16883         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16884         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16885         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16886         * modules/cloexec (configure.ac): Likewise.
16887         * modules/getopt-gnu (configure.ac): Likewise.
16888         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16889         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16890         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16891         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16892
16893 2010-03-27  Bruno Haible  <bruno@clisp.org>
16894
16895         New module description field 'Comment'.
16896         * gnulib-tool: New option --extract-comment.
16897         (func_usage): Document it.
16898         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16899         (func_get_comment): New function.
16900         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16901
16902 2010-03-27  Bruno Haible  <bruno@clisp.org>
16903
16904         Addendum to 2010-02-07 commit.
16905         * gnulib-tool (func_usage): Document --extract-applicability option.
16906
16907 2010-03-27  Bruno Haible  <bruno@clisp.org>
16908
16909         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16910         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16911         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16912         rather than link errors.
16913
16914 2010-03-27  Bruno Haible  <bruno@clisp.org>
16915
16916         Avoid side effects from tests-related modules on the compilation of lib.
16917         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16918         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16919         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16920         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16921         macro.
16922         (func_import): Define a witness macro. Assign it a value that depends
16923         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16924         tests-related modules.
16925         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16926         Reported by Jim Meyering.
16927
16928 2010-03-27  Bruno Haible  <bruno@clisp.org>
16929
16930         Factorize common .m4 code.
16931         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16932         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16933         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16934         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16935         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16936         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16937         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16938         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16939         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16940         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16941         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16942         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16943         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16944         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16945         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16946         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16947         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16948         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16950         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16951         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16952         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16953         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16954         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16955         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16956         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16957         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16959         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16960         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16961         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16962         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16963
16964 2010-03-27  Bruno Haible  <bruno@clisp.org>
16965
16966         Fix a compilation error on Cygwin with g++ >= 4.3.
16967         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16968         if it is undefined or if we alias it to chmod.
16969         (lstat): Don't warn about the use of this function if it is undefined
16970         or if we alias it to stat.
16971         Reported by Simon Josefsson.
16972
16973 2010-03-27  Bruno Haible  <bruno@clisp.org>
16974
16975         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16976         * modules/getlogin (configure.ac): Update.
16977
16978         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16979         * modules/getlogin_r (configure.ac): Update.
16980
16981         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16983         * modules/inet_ntop (configure.ac): Update.
16984
16985         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16986         * modules/inet_pton (configure.ac): Update.
16987
16988         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16989         * modules/mbslen (configure.ac): Update.
16990
16991         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16992         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16993         * modules/forkpty (configure.ac): Update.
16994         * modules/openpty (configure.ac): Update.
16995
16996 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16997
16998         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16999         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17000
17001 2010-03-25  Eric Blake  <eblake@redhat.com>
17002
17003         maint: use pragma consistently across replacement headers
17004         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17005         * lib/dirent.in.h (system_header): Likewise.
17006         * lib/errno.in.h (system_header): Likewise.
17007         * lib/float.in.h (system_header): Likewise.
17008         * lib/getopt.in.h (system_header): Likewise.
17009         * lib/iconv.in.h (system_header): Likewise.
17010         * lib/inttypes.in.h (system_header): Likewise.
17011         * lib/langinfo.in.h (system_header): Likewise.
17012         * lib/locale.in.h (system_header): Likewise.
17013         * lib/math.in.h (system_header): Likewise.
17014         * lib/netdb.in.h (system_header): Likewise.
17015         * lib/netinet_in.in.h (system_header): Likewise.
17016         * lib/pty.in.h (system_header): Likewise.
17017         * lib/sched.in.h (system_header): Likewise.
17018         * lib/se-selinux.in.h (system_header): Likewise.
17019         * lib/search.in.h (system_header): Likewise.
17020         * lib/spawn.in.h (system_header): Likewise.
17021         * lib/stdarg.in.h (system_header): Likewise.
17022         * lib/stdint.in.h (system_header): Likewise.
17023         * lib/string.in.h (system_header): Likewise.
17024         * lib/strings.in.h (system_header): Likewise.
17025         * lib/sys_file.in.h (system_header): Likewise.
17026         * lib/sys_ioctl.in.h (system_header): Likewise.
17027         * lib/sys_socket.in.h (system_header): Likewise.
17028         * lib/sys_times.in.h (system_header): Likewise.
17029         * lib/sys_utsname.in.h (system_header): Likewise.
17030         * lib/sys_wait.in.h (system_header): Likewise.
17031         * lib/sysexits.in.h (system_header): Likewise.
17032         * lib/unistd.in.h (system_header): Likewise.
17033         * lib/wctype.in.h (system_header): Likewise.
17034
17035         arpa/inet: fix mingw compilation warning
17036         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17037         Reported by Matthew Bolte.
17038
17039 2010-03-25  Bruno Haible  <bruno@clisp.org>
17040
17041         Avoid collision between gnulib wrapper and libintl wrapper.
17042         * lib/printf.c (printf): Don't define if a printf wrapper is already
17043         defined in intl/printf.c.
17044         Reported by Michel Boaventura <michel@michelboaventura.com>.
17045
17046 2010-03-25  Bruno Haible  <bruno@clisp.org>
17047
17048         Use ANSI C.
17049         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17050
17051 2010-03-25  Bruno Haible  <bruno@clisp.org>
17052
17053         Minor formatting changes.
17054         * lib/acosl.c: Insert space before function argument list.
17055         * lib/argz.c: Likewise.
17056         * lib/asinl.c: Likewise.
17057         * lib/expl.c: Likewise.
17058         * lib/gen-uni-tables.c: Likewise.
17059         * lib/gettext.h: Likewise.
17060         * lib/glthread/lock.h: Likewise.
17061         * lib/tanl.c: Likewise.
17062         * lib/uniname/uniname.c: Likewise.
17063         * tests/test-idpriv-drop.c: Likewise.
17064         * tests/test-idpriv-droptemp.c: Likewise.
17065         * tests/test-lock.c: Likewise.
17066         * tests/test-tls.c: Likewise.
17067         * lib/argp-help.c: Insert space before function-like macro argument
17068         list.
17069         * lib/memcmp.c: Likewise.
17070         * tests/test-base64.c: Likewise.
17071         * lib/localename.c: Insert space before sizeof's argument list.
17072         * lib/safe-alloc.h: Likewise.
17073         * lib/file-set.h: Insert space before macro argument list.
17074         * tests/test-argp.c: Likewise.
17075         * lib/argp-namefrob.h: Insert space before function parameter list.
17076         * lib/getaddrinfo.c: Likewise.
17077         * lib/netdb.in.h: Likewise.
17078         * lib/parse-duration.h: Likewise.
17079         * lib/parse-duration.c: Likewise.
17080         * lib/poll.c: Likewise.
17081         * lib/select.c: Likewise.
17082         * lib/trim.h: Likewise.
17083         * tests/test-usleep.c: Likewise.
17084         * lib/ldexpl.c: Insert space before function parameter list and before
17085         function argument list.
17086         * lib/logl.c: Likewise.
17087         * lib/sqrtl.c: Likewise.
17088         * lib/trim.c: Likewise.
17089         * lib/cosl.c: Use GNU style indentation. Insert space before function
17090         argument list.
17091         * lib/sinl.c: Likewise.
17092         * lib/tsearch.c: Insert space after 'for'.
17093         Reported by Jim Meyering.
17094
17095 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17096
17097         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17098         config header before grepping, as it's not present before
17099         autoreconf/configure are run.  Reported by Simon Josefsson.
17100
17101 2010-03-23  Bruno Haible  <bruno@clisp.org>
17102
17103         pt_chown: Make it work with automake < 1.11.
17104         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17105         Reported by Simon Josefsson.
17106
17107 2010-03-23  Bruno Haible  <bruno@clisp.org>
17108
17109         pt_chown: Don't depend on GPLed modules.
17110         * lib/pt_chown.c: Don't include idpriv.h.
17111         (main): Don't drop privileges.
17112         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17113         Reported by Simon Josefsson.
17114
17115 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17116
17117         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17118         suggestions from karl@freefriends.org (Karl Berry).
17119
17120 2010-03-22  Eric Blake  <eblake@redhat.com>
17121
17122         gethostname: further tweaks
17123         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17124         are overriding gethostname.
17125         Suggested by Bruno Haible.
17126
17127 2010-03-21  Bruno Haible  <bruno@clisp.org>
17128
17129         Fix comments.
17130         * lib/forkpty.c (rpl_forkpty): Fix comment.
17131         * lib/openpty.c (rpl_openpty): Likewise.
17132         Reported by Eric Blake.
17133
17134 2010-03-22  Eric Blake  <eblake@redhat.com>
17135
17136         gethostname: fix build on mingw
17137         * lib/unistd.in.h (includes): Work around fact that mingw
17138         <winsock2.h> re-includes <unistd.h>, by avoiding any
17139         redeclarations if we are being included by <winsock2.h>.
17140         Reported by Matthias Bolte.
17141
17142 2010-03-21  Bruno Haible  <bruno@clisp.org>
17143
17144         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17145         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17146         modifications.
17147         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17148         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17149         provide the replacement.
17150         * modules/forkpty (Depends-on): Add openpty, login_tty.
17151         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17152         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17153         * doc/glibc-functions/forkpty.texi: More supported platforms.
17154         * config/srclist.txt: Add forkpty.c (commented).
17155
17156 2010-03-21  Bruno Haible  <bruno@clisp.org>
17157
17158         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17159         (Makefile.am): Verify that PTY_LIB is defined.
17160
17161         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17162
17163 2010-03-21  Bruno Haible  <bruno@clisp.org>
17164
17165         Tests for module 'login_tty'.
17166         * modules/login_tty-tests: New file.
17167         * tests/test-login_tty.c: New file.
17168
17169         New module 'login_tty'.
17170         * lib/login_tty.c: New file.
17171         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17172         * modules/login_tty: New file.
17173         * doc/glibc-functions/login_tty.texi: Mention the new module.
17174
17175 2010-03-21  Bruno Haible  <bruno@clisp.org>
17176
17177         login_tty: Documentation.
17178         * doc/glibc-functions/login_tty.texi: New file.
17179         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17180
17181 2010-03-21  Bruno Haible  <bruno@clisp.org>
17182
17183         pty: Consistent macro naming.
17184         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17185         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17186         * modules/pty (configure.ac): Update.
17187
17188 2010-03-21  Bruno Haible  <bruno@clisp.org>
17189
17190         Tests for openpty: Make stricter.
17191         * tests/test-openpty.c (main): Add test of canonical processing and
17192         erase.
17193         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17194
17195         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17196         * lib/openpty.c (openpty): New replacement function.
17197         * lib/pty.in.h: Include <termios.h>.
17198         (openpty): Update declaration. Add comments.
17199         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17200         is not declared, arrange to provide the replacement. Check for _getpty
17201         and posix_openpt.
17202         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17203         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17204         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17205         * modules/pty-tests (test_pty_c___LDADD): New variable.
17206         * doc/glibc-functions/openpty.texi: More supported platforms.
17207
17208 2010-03-21  Bruno Haible  <bruno@clisp.org>
17209
17210         setenv: Tweaks.
17211         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17212         the test program.
17213         * doc/posix-functions/setenv.texi: Update platforms list.
17214
17215 2010-03-21  Bruno Haible  <bruno@clisp.org>
17216
17217         New module 'unlockpt'.
17218         * lib/unlockpt.c: New file, from glibc with modifications.
17219         * m4/unlockpt.m4: New file.
17220         * modules/unlockpt: New file.
17221         * lib/stdlib.in.h (unlockpt): New declaration.
17222         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17223         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17224         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17225         HAVE_UNLOCKPT.
17226         * doc/posix-functions/unlockpt.texi: Mention the new module.
17227         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17228         * config/srclist.txt: Add unlockpt.c (commented).
17229
17230 2010-03-21  Jim Meyering  <meyering@redhat.com>
17231
17232         maint.mk: prohibit inclusion of "intprops.h" without use
17233         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17234
17235 2010-03-21  Bruno Haible  <bruno@clisp.org>
17236
17237         New module 'grantpt'.
17238         * lib/grantpt.c: New file, from glibc with modifications.
17239         * m4/grantpt.m4: New file.
17240         * modules/grantpt: New file.
17241         * lib/stdlib.in.h (grantpt): New declaration.
17242         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17243         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17244         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17245         HAVE_GRANTPT.
17246         * doc/posix-functions/grantpt.texi: Mention the new module.
17247         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17248         * config/srclist.txt: Add grantpt.c (commented).
17249
17250 2010-03-21  Bruno Haible  <bruno@clisp.org>
17251
17252         New module 'pt_chown'.
17253         * lib/pt_chown.c: New file, from glibc with modifications.
17254         * lib/pty-private.h: New file, from glibc with modifications.
17255         * modules/pt_chown: New file.
17256         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17257
17258 2010-03-21  Bruno Haible  <bruno@clisp.org>
17259
17260         Tests for module 'ptsname'.
17261         * modules/ptsname-tests: New file.
17262         * tests/test-ptsname.c: New file.
17263
17264         New module 'ptsname'.
17265         * lib/ptsname.c: New file, from glibc with modifications.
17266         * m4/ptsname.m4: New file.
17267         * modules/ptsname: New file.
17268         * lib/stdlib.in.h (ptsname): New declaration.
17269         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17270         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17271         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17272         HAVE_PTSNAME.
17273         * doc/posix-functions/ptsname.texi: Mention the new module.
17274         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17275         * config/srclist.txt: Add ptsname.c (commented).
17276
17277 2010-03-21  Bruno Haible  <bruno@clisp.org>
17278
17279         Tests for module 'ttyname_r'.
17280         * modules/ttyname_r-tests: New file.
17281         * tests/test-ttyname_r.c: New file.
17282
17283         New module 'ttyname_r'.
17284         * lib/ttyname_r.c: New file.
17285         * m4/ttyname_r.m4: New file.
17286         * modules/ttyname_r: New file.
17287         * lib/unistd.in.h (ttyname_r): New declaration.
17288         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17289         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17290         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17291         HAVE_TTYNAME_R.
17292         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17293         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17294
17295 2010-03-20  Bruno Haible  <bruno@clisp.org>
17296
17297         signal: Undefine macro definitions in C++ mode.
17298         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17299         sigfillset): Undefine macro definitions from the system header in C++
17300         mode.
17301         Reported by John W. Eaton <jwe@gnu.org>.
17302
17303 2010-03-20  Bruno Haible  <bruno@clisp.org>
17304
17305         Ensure no #include statements inside extern "C" { ... }.
17306         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17307         contain #include statements.
17308         * lib/time.in.h: Likewise.
17309
17310 2010-03-20  Bruno Haible  <bruno@clisp.org>
17311
17312         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17313         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17314         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17315         Reported by John W. Eaton <jwe@gnu.org>.
17316
17317 2010-03-20  Bruno Haible  <bruno@clisp.org>
17318
17319         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17320         Reported by Jim Meyering.
17321
17322 2010-03-20  Bruno Haible  <bruno@clisp.org>
17323
17324         pipe: Set errno upon failure.
17325         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17326         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17327         errno value in error message.
17328
17329 2010-03-20  Bruno Haible  <bruno@clisp.org>
17330             Jim Meyering  <meyering@redhat.com>
17331
17332         lchown: Avoid "unused variable" warning.
17333         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17334
17335 2010-03-20  Bruno Haible  <bruno@clisp.org>
17336
17337         Work around unlink() bug on MacOS X 10.5.6.
17338         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17339         attempting to unlink a parent directory.
17340         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17341         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17342         activate for the replacement function.
17343         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17344
17345 2010-03-20  Bruno Haible  <bruno@clisp.org>
17346
17347         Fix link errors on Solaris 8.
17348         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17349         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17350
17351 2010-03-19  Jim Meyering  <meyering@redhat.com>
17352
17353         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17354         The _LIBC implementation of build_range_exp correctly honors the
17355         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17356         However, the non-_LIBC implementation would ignore that syntax-bit
17357         flag and return REG_ERANGE unconditionally.
17358         This change makes it honor that flag.
17359         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17360         Make two pointer parameters "const".
17361         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17362         (parse_bracket_exp): Update caller.
17363
17364         regex.m4: correct the reversed range endpoint ([b-a]) test
17365         * m4/regex.m4: When requiring that [b-a] evoke failure,
17366         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17367         test pass once again for x86-based systems.
17368
17369 2010-03-19  Bruno Haible  <bruno@clisp.org>
17370
17371         scandir: Fix link error on Solaris 8.
17372         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17373         macros.
17374
17375 2010-03-19  Bruno Haible  <bruno@clisp.org>
17376
17377         getusershell: Fix documentation.
17378         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17379         module.
17380         * doc/glibc-functions/setusershell.texi: Likewise.
17381
17382         getusershell: Provide declaration, missing on Solaris 9.
17383         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17384         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17385         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17386         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17388         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17389         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17390         HAVE_GETUSERSHELL.
17391         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17392
17393 2010-03-19  Bruno Haible  <bruno@clisp.org>
17394
17395         wctype: Provide iswblank function.
17396         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17397         exists and is fine.
17398         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17399         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17400         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17401         * doc/posix-functions/iswblank.texi: Update.
17402
17403 2010-03-19  Bruno Haible  <bruno@clisp.org>
17404
17405         Tests of module 'pty' in C++ mode.
17406         * modules/pty-tests: New file.
17407         * tests/test-pty-c++.cc: New file.
17408         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17409
17410 2010-03-19  Eric Blake  <eblake@redhat.com>
17411
17412         logb: fix documentation
17413         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17414         1.5 declaration bug.
17415
17416         forkpty, openpty: prefer glibc's const-safe prototype
17417         * lib/forkpty.c (rpl_forkpty): New file.
17418         * lib/openpty.c (rpl_openpty): Likewise.
17419         * modules/forkpty (Files): Distribute it.
17420         * modules/openpty (Files): Likewise.
17421         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17422         check...
17423         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17424         replacement for for non-const BSD signature.
17425         * modules/pty (Makefile.am): Substitute witnesses.
17426         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17427         * tests/test-forkpty.c: Update signature check.
17428         * tests/test-openpty.c: Likewise.
17429         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17430         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17431
17432         forkpty, openpty: split functions into new modules
17433         * modules/pty (Makefile.am): Substitute new witnesses.
17434         (Libraries): Move library detection...
17435         * modules/forkpty: ...into new module.
17436         * modules/openpty: Another new module.
17437         * modules/pty-tests: Rename and split...
17438         * modules/forkpty-tests: ...to this...
17439         * modules/openpty-tests: ...and this.
17440         * tests/test-pty.c: Rename and split...
17441         * tests/test-forkpty.c: ...to this...
17442         * tests/test-openpty.c: ...and this.
17443         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17444         (gl_PTY): Split library searching...
17445         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17446         (gl_FORKPTY, gl_OPENPTY): New macros.
17447         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17448         * NEWS: Mention the split.
17449         * MODULES.html.sh (Misc): Document the modules.
17450         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17451         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17452
17453         pty: improve replacement header
17454         * lib/pty.in.h: New file.
17455         * modules/pty (Files): Ship it.
17456         (Makefile.am): Always build replacement.
17457         * m4/pty.m4: Rename...
17458         * m4/pty_h.m4: ...to this.
17459         (gl_PTY): Modernize setting of witness macros; update check of
17460         forkpty to take proper advantage of cache.
17461         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17462
17463         getopt: avoid compiler warning
17464         * lib/getopt.c (attribute_hidden): Remove unused macro.
17465
17466 2010-03-18  Bruno Haible  <bruno@clisp.org>
17467
17468         Fix link errors on Solaris 8.
17469         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17470         * modules/search-tests (test_search_c___LDADD): Likewise.
17471         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17472         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17473         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17474         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17475         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17476         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17477         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17478
17479 2010-03-18  Bruno Haible  <bruno@clisp.org>
17480
17481         Fix bug introduced on 2010-03-14.
17482         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17483         (gl_SPAWN_H): Require it.
17484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17485         Reported by Simon Josefsson.
17486
17487 2010-03-18  Bruno Haible  <bruno@clisp.org>
17488
17489         Fix typo introduced on 2009-12-31.
17490         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17491         posix_spawn_file_actions_adddup2.
17492
17493 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17494         and Eric Blake  <eblake@redhat.com>
17495
17496         test-vc-list-files-git: make more robust
17497         * tests/test-vc-list-files-git.sh: Unset problematic environment
17498         variables.  Chain commands together.
17499
17500 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17501
17502         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17503         `AC_CHECK_DECL' invocation.
17504
17505 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17506
17507         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17508         appears before executable statements. Suggested by Petr Sumbera
17509         <Petr.Sumbera@Sun.COM>.
17510
17511 2010-03-14  Bruno Haible  <bruno@clisp.org>
17512
17513         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17514         portability problems. Instead use a simpler test.
17515         (main): Check that invalid arguments are rejected only on Linux.
17516
17517 2010-03-14  Bruno Haible  <bruno@clisp.org>
17518
17519         Fix bug introduced on 2009-12-31.
17520         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17521         gl_PREREQ_SYS_H_WINSOCK2 always.
17522         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17523         SYS_SOCKET_H variable.
17524         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17525         Update comments.
17526         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17527         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17528         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17529         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17530         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17531
17532 2010-03-14  Bruno Haible  <bruno@clisp.org>
17533
17534         Fix values returned by sinl, cosl.
17535         * lib/trigl.h: Add specification comments.
17536         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17537         that combines the values from the precomputed table with the values of
17538         the Chebyshev polynomials.
17539
17540 2010-03-14  Bruno Haible  <bruno@clisp.org>
17541
17542         Fix compilation error when modules 'posix_spawn[p]' are not used.
17543         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17544         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17545
17546 2010-03-14  Bruno Haible  <bruno@clisp.org>
17547
17548         Fix compilation error on mingw when module 'time_r' is not used.
17549         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17550         is 1.
17551         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17552         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17553         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17554         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17555
17556 2010-03-14  Bruno Haible  <bruno@clisp.org>
17557
17558         Fix compilation error with Sun C.
17559         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17560         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17561         instead of GCC specific ULONG_LONG_MAX.
17562         * lib/xstrtoll.c: Likewise.
17563         * lib/xstrtoull.c: Likewise.
17564
17565 2010-03-13  Bruno Haible  <bruno@clisp.org>
17566
17567         Allow the user to disable C++ code and tests.
17568         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17569         (gl_PROG_ANSI_CXX): Require it.
17570
17571 2010-03-13  Bruno Haible  <bruno@clisp.org>
17572
17573         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17574         cases.
17575
17576 2010-03-13  Bruno Haible  <bruno@clisp.org>
17577
17578         Test that gnulib does not break the standard C++ headers.
17579         * tests/test-locale-c++2.cc: New file.
17580         * modules/locale-tests (Files): Add it.
17581         (Makefile.am): Compile it for test-locale-c++.
17582         * tests/test-math-c++2.cc: New file.
17583         * modules/math-tests (Files): Add it.
17584         (Makefile.am): Compile it for test-math-c++.
17585         * tests/test-signal-c++2.cc: New file.
17586         * modules/signal-tests (Files): Add it.
17587         (Makefile.am): Compile it for test-signal-c++.
17588         * tests/test-stdio-c++2.cc: New file.
17589         * modules/stdio-tests (Files): Add it.
17590         (Makefile.am): Compile it for test-stdio-c++.
17591         * tests/test-stdlib-c++2.cc: New file.
17592         * modules/stdlib-tests (Files): Add it.
17593         (Makefile.am): Compile it for test-stdlib-c++.
17594         * tests/test-string-c++2.cc: New file.
17595         * modules/string-tests (Files): Add it.
17596         (Makefile.am): Compile it for test-string-c++.
17597         * tests/test-time-c++2.cc: New file.
17598         * modules/time-tests (Files): Add it.
17599         (Makefile.am): Compile it for test-time-c++.
17600         Reported by John W. Eaton <jwe@gnu.org>.
17601
17602 2010-03-13  Bruno Haible  <bruno@clisp.org>
17603
17604         * gnulib-tool (func_usage): Clarify which options are available for
17605         --create-testdir and --create-megatestdir.
17606
17607 2010-03-13  Bruno Haible  <bruno@clisp.org>
17608
17609         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17610         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17611         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17612         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17613         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17614         when appropriate.
17615         Reported by Jim Meyering.
17616
17617 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17618
17619         * gnulib-tool (func_import): Explain origin of code.
17620
17621 2010-03-12  Bruno Haible  <bruno@clisp.org>
17622
17623         Fix problem with automake's definition of CXXLINK.
17624         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17625         Reported by Simon Josefsson and Ludovic Courtès.
17626
17627 2010-03-12  Bruno Haible  <bruno@clisp.org>
17628
17629         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17630         stable releases.
17631
17632 2010-03-11  Bruno Haible  <bruno@clisp.org>
17633
17634         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17635         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17636         whether the system provides one variant or multiple variants of the
17637         function.
17638         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17639         C++ compilers.
17640         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17641         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17642         Reported by Jim Meyering.
17643
17644 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17645
17646         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17647
17648 2010-03-08  Bruno Haible  <bruno@clisp.org>
17649
17650         gnulib-tool: Add support for --libtool in --create-testdir.
17651         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17652         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17653
17654 2010-03-08  Eric Blake  <eblake@redhat.com>
17655
17656         gnulib-tool.texi: mention possibility of git submodule
17657         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17658         submodules.
17659         * doc/.gitignore: Ignore another generated file.
17660
17661 2010-03-08  Karl Berry  <karl@gnu.org>
17662
17663         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17664         of committing gnulib files while skipping others.
17665
17666 2010-03-07  Bruno Haible  <bruno@clisp.org>
17667
17668         Tests of module 'wctype' in C++ mode.
17669         * tests/test-wctype-c++.cc: New file.
17670         * modules/wctype-tests (Files): Add it and tests/signature.h.
17671         (Depends-on): Add ansi-c++-opt.
17672         (Makefile.am): Arrange to compile and run test-wctype-c++.
17673
17674         Tests of module 'wchar' in C++ mode.
17675         * tests/test-wchar-c++.cc: New file.
17676         * modules/wchar-tests (Files): Add it and tests/signature.h.
17677         (Depends-on): Add ansi-c++-opt.
17678         (Makefile.am): Arrange to compile and run test-wchar-c++.
17679         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17680         gl_MODULE_INDICATOR.
17681
17682         Tests of module 'unistd' in C++ mode.
17683         * tests/test-unistd-c++.cc: New file.
17684         * modules/unistd-tests (Files): Add it and tests/signature.h.
17685         (Depends-on): Add ansi-c++-opt.
17686         (Makefile.am): Arrange to compile and run test-unistd-c++.
17687         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17688         gl_MODULE_INDICATOR.
17689
17690         Tests of module 'time' in C++ mode.
17691         * tests/test-time-c++.cc: New file.
17692         * modules/time-tests (Files): Add it and tests/signature.h.
17693         (Depends-on): Add ansi-c++-opt.
17694         (Makefile.am): Arrange to compile and run test-time-c++.
17695         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17696
17697         Tests of module 'sys_time' in C++ mode.
17698         * tests/test-sys_time-c++.cc: New file.
17699         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17700         (Depends-on): Add ansi-c++-opt.
17701         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17702         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17703         gl_MODULE_INDICATOR.
17704
17705         Tests of module 'sys_stat' in C++ mode.
17706         * tests/test-sys_stat-c++.cc: New file.
17707         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17708         (Depends-on): Add ansi-c++-opt.
17709         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17710         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17711         gl_MODULE_INDICATOR.
17712
17713         Tests of module 'sys_socket' in C++ mode.
17714         * tests/test-sys_socket-c++.cc: New file.
17715         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17716         (Depends-on): Add ansi-c++-opt.
17717         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17718         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17719         gl_MODULE_INDICATOR.
17720
17721         Tests of module 'sys_select' in C++ mode.
17722         * tests/test-sys_select-c++.cc: New file.
17723         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17724         (Depends-on): Add ansi-c++-opt.
17725         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17726         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17727         gl_MODULE_INDICATOR.
17728
17729         Tests of module 'sys_ioctl' in C++ mode.
17730         * tests/test-sys_ioctl-c++.cc: New file.
17731         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17732         (Depends-on): Add ansi-c++-opt.
17733         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17734         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17735         gl_MODULE_INDICATOR.
17736
17737         Tests of module 'string' in C++ mode.
17738         * tests/test-string-c++.cc: New file.
17739         * modules/string-tests (Files): Add it and tests/signature.h.
17740         (Depends-on): Add ansi-c++-opt.
17741         (Makefile.am): Arrange to compile and run test-string-c++.
17742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17743         gl_MODULE_INDICATOR.
17744
17745         Tests of module 'stdlib' in C++ mode.
17746         * tests/test-stdlib-c++.cc: New file.
17747         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17748         (Depends-on): Add ansi-c++-opt.
17749         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17750         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17751         gl_MODULE_INDICATOR.
17752
17753         Tests of module 'stdio' in C++ mode.
17754         * tests/test-stdio-c++.cc: New file.
17755         * modules/stdio-tests (Files): Add it and tests/signature.h.
17756         (Depends-on): Add ansi-c++-opt.
17757         (Makefile.am): Arrange to compile and run test-stdio-c++.
17758         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17759         gl_MODULE_INDICATOR.
17760
17761         Tests of module 'spawn' in C++ mode.
17762         * tests/test-spawn-c++.cc: New file.
17763         * modules/spawn-tests (Files): Add it and tests/signature.h.
17764         (Depends-on): Add ansi-c++-opt.
17765         (Makefile.am): Arrange to compile and run test-spawn-c++.
17766         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17767         gl_MODULE_INDICATOR.
17768
17769         Tests of module 'signal' in C++ mode.
17770         * tests/test-signal-c++.cc: New file.
17771         * modules/signal-tests (Files): Add it and tests/signature.h.
17772         (Depends-on): Add ansi-c++-opt.
17773         (Makefile.am): Arrange to compile and run test-signal-c++.
17774         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17775         gl_MODULE_INDICATOR.
17776
17777         Tests of module 'search' in C++ mode.
17778         * tests/test-search-c++.cc: New file.
17779         * modules/search-tests (Files): Add it and tests/signature.h.
17780         (Depends-on): Add ansi-c++-opt.
17781         (Makefile.am): Arrange to compile and run test-search-c++.
17782         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17783         gl_MODULE_INDICATOR.
17784
17785         Tests of module 'math' in C++ mode.
17786         * tests/test-math-c++.cc: New file.
17787         * modules/math-tests (Files): Add it and tests/signature.h.
17788         (Depends-on): Add ansi-c++-opt.
17789         (Makefile.am): Arrange to compile and run test-math-c++.
17790         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17791
17792         Tests of module 'locale' in C++ mode.
17793         * tests/test-locale-c++.cc: New file.
17794         * modules/locale-tests (Files): Add it and tests/signature.h.
17795         (Depends-on): Add ansi-c++-opt.
17796         (Makefile.am): Arrange to compile and run test-locale-c++.
17797         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17798         gl_MODULE_INDICATOR.
17799
17800         Tests of module 'langinfo' in C++ mode.
17801         * tests/test-langinfo-c++.cc: New file.
17802         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17803         (Depends-on): Add ansi-c++-opt.
17804         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17805         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17806         gl_MODULE_INDICATOR.
17807
17808         Tests of module 'iconv-h' in C++ mode.
17809         * tests/test-iconv-h-c++.cc: New file.
17810         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17811         (Depends-on): Add ansi-c++-opt.
17812         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17813
17814         Tests of module 'glob' in C++ mode.
17815         * tests/test-glob-c++.cc: New file.
17816         * modules/glob-tests (Files): Add it.
17817         (Depends-on): Add ansi-c++-opt.
17818         (Makefile.am): Arrange to compile and run test-glob-c++.
17819
17820         Tests of module 'fcntl-h' in C++ mode.
17821         * tests/test-fcntl-h-c++.cc: New file.
17822         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17823         (Depends-on): Add ansi-c++-opt.
17824         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17825         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17826         gl_MODULE_INDICATOR.
17827
17828         Tests of module 'dirent' in C++ mode.
17829         * tests/test-dirent-c++.cc: New file.
17830         * modules/dirent-tests (Files): Add it and tests/signature.h.
17831         (Depends-on): Add ansi-c++-opt.
17832         (Makefile.am): Arrange to compile and run test-dirent-c++.
17833         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17834         gl_MODULE_INDICATOR.
17835
17836         New module 'ansi-c++-opt'.
17837         * modules/ansi-c++-opt: New file.
17838         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17839
17840         Document C++ namespace mode.
17841         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17842
17843         wctype: Avoid #define replacements in C++ mode.
17844         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17845         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17846         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17847         In C++, define a namespaced alias symbol.
17848         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17849         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17850         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17851         rule.
17852
17853         wchar: Avoid #define replacements in C++ mode.
17854         * lib/wchar.in.h: Include c++defs.h.
17855         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17856         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17857         symbol.
17858         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17859         * modules/wchar (Depends-on): Add c++defs.
17860         (Makefile.am): Update wchar.h rule.
17861
17862         unistd: Avoid #define replacements in C++ mode.
17863         * lib/unistd.in.h: Include c++defs.h.
17864         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17865         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17866         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17867         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17868         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17869         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17870         symbol.
17871         (environ): Update.
17872         * modules/unistd (Depends-on): Add c++defs.
17873         (Makefile.am): Update unistd.h rule.
17874
17875         time: Avoid #define replacements in C++ mode.
17876         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17877         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17878         define a namespaced alias symbol.
17879         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17880         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17881         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17882         * modules/time (Depends-on): Add c++defs, warn-on-use.
17883         (Makefile.am): Update time.h rule.
17884         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17885         * modules/nanosleep (configure.ac): Likewise.
17886         * modules/strptime (configure.ac): Likewise.
17887         * modules/timegm (configure.ac): Likewise.
17888
17889         sys_time: Avoid #define replacements in C++ mode.
17890         * lib/sys_time.in.h: Include c++defs.h.
17891         (gettimeofday): In C++, define a namespaced alias symbol.
17892         * modules/sys_time (Depends-on): Add c++defs.
17893         (Makefile.am): Update sys/time.h rule.
17894
17895         sys_stat: Avoid #define replacements in C++ mode.
17896         * lib/sys_stat.in.h: Include c++defs.h.
17897         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17898         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17899         namespaced alias symbol.
17900         In C++, define a namespaced alias symbol.
17901         * modules/sys_stat (Depends-on): Add c++defs.
17902         (Makefile.am): Update sys/stat.h rule.
17903
17904         sys_socket: Avoid #define replacements in C++ mode.
17905         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17906         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17907         definitions also when the system has a <sys/socket.h>.
17908         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17909         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17910         In C++, define a namespaced alias symbol.
17911         * modules/sys_socket (Depends-on): Add c++defs.
17912         (Makefile.am): Update sys/socket.h rule.
17913
17914         sys_select: Avoid #define replacements in C++ mode.
17915         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17916         definitions also when the system has a <sys/select.h>.
17917         (select): In C++, define a namespaced alias symbol.
17918         * modules/sys_select (Depends-on): Add c++defs.
17919         (Makefile.am): Update sys/select.h rule.
17920
17921         sys_ioctl: Avoid #define replacements in C++ mode.
17922         * lib/sys_ioctl.in.h: Include c++defs.h.
17923         (ioctl): In C++, define a namespaced alias symbol.
17924         * modules/sys_ioctl (Depends-on): Add c++defs.
17925         (Makefile.am): Update sys/ioctl.h rule.
17926
17927         string: Avoid #define replacements in C++ mode.
17928         * lib/string.in.h: Include c++defs.h.
17929         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17930         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17931         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17932         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17933         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17934         * modules/string (Depends-on): Add c++defs.
17935         (Makefile.am): Update string.h rule.
17936
17937         stdlib: Avoid #define replacements in C++ mode.
17938         * lib/stdlib.in.h: Include c++defs.h.
17939         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17940         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17941         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17942         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17943         symbol.
17944         * modules/stdlib (Depends-on): Add c++defs.
17945         (Makefile.am): Update stdlib.h rule.
17946
17947         stdio: Avoid #define replacements in C++ mode.
17948         * lib/stdio.in.h: Include c++defs.h.
17949         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17950         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17951         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17952         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17953         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17954         namespaced alias symbol.
17955         * modules/stdio (Depends-on): Add c++defs.
17956         (Makefile.am): Update stdio.h rule.
17957
17958         spawn: Avoid #define replacements in C++ mode.
17959         * lib/spawn.in.h: Include c++defs.h.
17960         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17961         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17962         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17963         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17964         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17965         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17966         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17967         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17968         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17969         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17970         In C++, define a namespaced alias symbol.
17971         * modules/spawn (Depends-on): Add c++defs.
17972         (Makefile.am): Update spawn.h rule.
17973
17974         signal: Avoid #define replacements in C++ mode.
17975         * lib/signal.in.h: Include c++defs.h.
17976         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17977         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17978         namespaced alias symbol.
17979         * modules/signal (Depends-on): Add c++defs.
17980         (Makefile.am): Update signal.h rule.
17981
17982         search: Avoid #define replacements in C++ mode.
17983         * lib/search.in.h: Include c++defs.h.
17984         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17985         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17986         symbol.
17987         * modules/search (Depends-on): Add c++defs.
17988         (Makefile.am): Update search.h rule.
17989
17990         math: Avoid #define replacements in C++ mode.
17991         * lib/math.in.h: Include c++defs.h.
17992         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17993         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17994         trunc, truncl): In C++, define a namespaced alias symbol.
17995         * modules/math (Depends-on): Add c++defs.
17996         (Makefile.am): Update math.h rule.
17997
17998         locale: Avoid #define replacements in C++ mode.
17999         * lib/locale.in.h: Include c++defs.h.
18000         (duplocale): In C++, define a namespaced alias symbol.
18001         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18002         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18003         * modules/locale (Depends-on): Add c++defs.
18004         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18005
18006         langinfo: Avoid #define replacements in C++ mode.
18007         * lib/langinfo.in.h: Include c++defs.h.
18008         (nl_langinfo): In C++, define a namespaced alias symbol.
18009         * modules/langinfo (Depends-on): Add c++defs.
18010         (Makefile.am): Update langinfo.h rule.
18011
18012         iconv-h: Avoid #define replacements in C++ mode.
18013         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18014         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18015         symbol.
18016         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18017         whenever iconv is present.
18018         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18019         (Makefile.am): Update iconv.h rule.
18020
18021         glob: Avoid #define replacements in C++ mode.
18022         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18023         (_gl_glob_errfunc_fn): New type.
18024         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18025         symbol.
18026         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18027         (Makefile.am): Update glob.h rule.
18028
18029         fcntl-h: Avoid #define replacements in C++ mode.
18030         * lib/fcntl.in.h: Include c++defs.h.
18031         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18032         * modules/fcntl-h (Depends-on): Add c++defs.
18033         (Makefile.am): Update fcntl.h rule.
18034
18035         dirent: Avoid #define replacements in C++ mode.
18036         * lib/dirent.in.h: Include c++defs.h.
18037         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18038         namespaced alias symbol.
18039         (dirfd): Update declaration.
18040         * modules/dirent (Depends-on): Add c++defs.
18041         (Makefile.am): Update dirent.h rule.
18042
18043         ctype: Make it usable in C++ code.
18044         * lib/ctype.in.h: Include c++defs.h.
18045         (isblank): Declare as extern "C".
18046         * modules/ctype (Depends-on): Add c++defs.
18047         (Makefile.am): Update ctype.h rule.
18048
18049         New module 'c++defs'.
18050         * modules/c++defs: New file.
18051         * build-aux/c++defs.h: New file.
18052         Reported by John W. Eaton <jwe@gnu.org>.
18053
18054 2010-03-07  Bruno Haible  <bruno@clisp.org>
18055
18056         logb: Provide missing declaration for Cygwin.
18057         * lib/math.in.h (logb): New declaration.
18058         * m4/logb.m4: New file.
18059         * modules/logb (Files): Add m4/logb.m4.
18060         (Depends-on): Add math.
18061         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18062         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18064         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18065         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18066
18067 2010-03-07  Bruno Haible  <bruno@clisp.org>
18068
18069         Fix test-cond link error.
18070         * tests/test-cond.c: Include <stdio.h>.
18071
18072 2010-03-07  Bruno Haible  <bruno@clisp.org>
18073
18074         Fix test-dirent-safer link error.
18075         * modules/dirent-safer-tests (Makefile.am): Define
18076         test_dirent_safer_LDADD.
18077
18078 2010-03-07  Bruno Haible  <bruno@clisp.org>
18079
18080         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18081         among default module list.
18082
18083 2010-03-07  Bruno Haible  <bruno@clisp.org>
18084
18085         Fix link error on platforms with GNU libiconv.
18086         * modules/unistr/u8-strcoll-tests (Makefile): Define
18087         test_u8_strcoll_LDADD.
18088         * modules/unistr/u16-strcoll-tests (Makefile): Define
18089         test_u16_strcoll_LDADD.
18090         * modules/unistr/u32-strcoll-tests (Makefile): Define
18091         test_u32_strcoll_LDADD.
18092
18093 2010-03-07  Bruno Haible  <bruno@clisp.org>
18094
18095         Use POSIX declarations for socket functions.
18096         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18097         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18098         rpl_sendto): Change declaration to match POSIX.
18099         * lib/connect.c (rpl_connect): Likewise.
18100         * lib/accept.c (rpl_accept): Likewise.
18101         * lib/bind.c (rpl_bind): Likewise.
18102         * lib/getpeername.c (rpl_getpeername): Likewise.
18103         * lib/getsockname.c (rpl_getsockname): Likewise.
18104         * lib/recv.c (rpl_recv): Likewise.
18105         * lib/send.c (rpl_send): Likewise.
18106         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18107         * lib/sendto.c (rpl_sendto): Likewise.
18108
18109 2010-03-06  Bruno Haible  <bruno@clisp.org>
18110
18111         Clarify access, euidaccess, faccessat.
18112         * doc/posix-functions/faccessat.texi: Mention security problem under
18113         "Other problems", not "Portability problems".
18114         * doc/posix-functions/access.texi: Likewise. Mention a related security
18115         problem.
18116         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18117         * lib/euidaccess.c: Add comments about platforms.
18118         * lib/unistd.in.h (access, euidaccess): Add warnings.
18119
18120 2010-03-07  Bruno Haible  <bruno@clisp.org>
18121
18122         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18123         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18124         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18125         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18126         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18127         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18128         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18129         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18130         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18132         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18133         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18134         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18135         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18136         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18137         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18138         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18139         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18140         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18141         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18142         Likewise.
18143         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18144         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18145         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18146         Likewise.
18147         * tests/test-spawn.c (main): Make it work when
18148         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18149
18150 2010-03-07  Bruno Haible  <bruno@clisp.org>
18151
18152         Fix incorrect Makefile.am generation in German locale.
18153         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18154         Execute sed command with character range in C locale.
18155
18156 2010-03-06  Bruno Haible  <bruno@clisp.org>
18157
18158         Tests for module 'iconv-h'.
18159         * modules/iconv-h-tests: New file.
18160         * tests/test-iconv-h.c: New file.
18161
18162         New module 'iconv-h'.
18163         * modules/iconv-h: New file.
18164         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18165         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18166         (configure.ac): Remove gl_ICONV_H.
18167         (Makefile.am): Remove rule for iconv.h.
18168
18169 2010-03-06  Bruno Haible  <bruno@clisp.org>
18170
18171         More consistent naming of *.m4 files.
18172         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18173         * modules/wctype (Files): Update.
18174
18175         More consistent naming of *.m4 files.
18176         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18177         * modules/wchar (Files): Update.
18178
18179 2010-03-06  Jim Meyering  <meyering@redhat.com>
18180
18181         euidaccess: relax license to LGPLv2+
18182         * modules/euidaccess (License): Relax to LGPLv2+.
18183
18184 2010-03-06  Bruno Haible  <bruno@clisp.org>
18185
18186         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18187         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18188         (Makefile.am): Augment lib_SOURCES instead.
18189
18190 2010-03-04  Jim Meyering  <meyering@redhat.com>
18191
18192         utime: remove obsolete module
18193         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18194         unnecessary for years, and has been marked as obsolete for 10 months.
18195         * modules/utime: Remove file.
18196         * lib/utime.c: Remove file.
18197         * m4/utime.m4: Remove file.
18198         * m4/utimes-null.m4: Remove file.
18199         * doc/posix-functions/utime.texi (utime): Remove reference to
18200         the module.  Move the sole "fixed by gnulib" item into the
18201         "problems not fixed by Gnulib" list.
18202         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18203
18204 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18205
18206         * modules/exit (License): Relax license to LGPLv2+.
18207         (Status): Mark as obsolete.
18208         * NEWS: Mention deprecated 'exit' module.
18209         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18210         of now obsolete 'exit'.
18211
18212 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18213
18214         fts-lgpl: remove unused module
18215         * modules/fts-lgpl: Remove.
18216         * MODULES.html.sh (func_all_modules): Adjust.
18217         * check-module (find_included_lib_files): Adjust.
18218         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18219
18220 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18221
18222         copy-acl: enhance Solaris ACL error handling
18223         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18224         * lib/set-mode-acl.c (qset_acl): Likewise.
18225
18226 2010-03-02  Bruno Haible  <bruno@clisp.org>
18227
18228         spawn: Don't override the system defined values on FreeBSD 8.
18229         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18230         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18231         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18232         if HAVE_POSIX_SPAWN is 1.
18233         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18234
18235 2010-03-01  Bruno Haible  <bruno@clisp.org>
18236
18237         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18238         regarding Automake.
18239
18240 2010-02-25  Bruno Haible  <bruno@clisp.org>
18241
18242         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18243         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18244         setting, not afterwards.
18245         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18246
18247 2010-02-24  Eric Blake  <eblake@redhat.com>
18248
18249         bootstrap, git-version-gen: use timestamp
18250         * build-aux/git-version-gen (scriptversion): Force UTC.
18251         * build-aux/bootstrap (scriptversion): New variable.
18252
18253         bootstrap: allow older git
18254         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18255         older than 1.6.4.  Requested by the libvirt project.
18256
18257 2010-02-23  Eric Blake  <eblake@redhat.com>
18258
18259         warn-on-use: work with old autoconf
18260         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18261         AS_VAR semantics of autoconf 2.60.
18262         Reported by Bruno Haible.
18263
18264         bootstrap: improve some comments
18265         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18266         clarification comments.
18267
18268         gettimeofday: provide correct function
18269         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18270         when replacement is declared, otherwise provide gettimeofday.
18271         Reported by Michael Goffioul.
18272
18273 2010-02-23  Jim Meyering  <meyering@redhat.com>
18274
18275         lib-ignore: relax license to "unlimited", not LGPLv2+
18276         * modules/lib-ignore (License): Relax to "unlimited".
18277
18278 2010-02-23  Jim Meyering  <meyering@redhat.com>
18279
18280         lib-ignore: relax license to LGPLv2+
18281         * modules/lib-ignore (License): Relax to LGPLv2+.
18282
18283 2010-02-22  Eric Blake  <eblake@redhat.com>
18284
18285         lseek: avoid bash 3.2 broken pipe bug
18286         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18287         warning from bash 3.2.
18288         Reported by Ben Pfaff, with analysis from Bruno Haible.
18289
18290         bootstrap: support non-FSF copyright holder
18291         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18292         bootstrap.conf override of COPYRIGHT_HOLDER.
18293         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18294
18295         bootstrap: interoperate with gettext 0.14.1
18296         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18297
18298         bootstrap: allow for alternate submodule location
18299         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18300         hardcoding submodule location.
18301         (gnulib_mk): Allow direct use of Makefile.am.
18302
18303         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18304         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18305         rather than reconfiguring where the submodule points.
18306
18307         gettimeofday: restore support for platforms that lack function
18308         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18309         replacement if function is missing.
18310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18311         * modules/sys_time (Makefile.am): Substitute it.
18312         * lib/sys_time.in.h (gettimeofday): Check it.
18313         Reported by Michael Goffioul.
18314
18315 2010-02-21  Bruno Haible  <bruno@clisp.org>
18316
18317         * lib/stdio.in.h (obstack_printf): Fix typo.
18318
18319 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18320
18321         vc-list-files: use bzr ls's -R option
18322         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18323         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18324
18325 2010-02-21  Jim Meyering  <meyering@redhat.com>
18326
18327         init.sh: fix EXEEXT shims to work also for names like test-prog
18328         * tests/init.sh: Re-exec a better shell, when needed.
18329         If the current shell lacks support for posix $(...), an init.sh-using
18330         test will now try to find a shell that supports that.  If EXEEXT is
18331         nonempty, we also require support for hyphen-in-alias-name and shell
18332         substitutions like ${var#glob}.  Failure to find such a shell results
18333         in a skipped test.
18334
18335 2010-02-21  Bruno Haible  <bruno@clisp.org>
18336
18337         Really work around around "broken pipe" error message from bash 3.2.
18338         * gnulib-tool (func_reset_sigpipe): Remove function.
18339         (echo): In bash 3.2, define to a function that uses printf.
18340         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18341
18342 2010-02-20  Bruno Haible  <bruno@clisp.org>
18343
18344         Restore support for automake 1.9.6 with autoconf 2.61.
18345         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18346         Reported by James Youngman <jay@gnu.org>.
18347
18348 2010-02-20  Bruno Haible  <bruno@clisp.org>
18349
18350         Improve *printf warning condition.
18351         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18352         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18353         and the function is overridden due to SIGPIPE emulation.
18354
18355 2010-02-20  Bruno Haible  <bruno@clisp.org>
18356
18357         * lib/stdio.in.h: Tweak comments.
18358
18359 2010-02-19  Bruno Haible  <bruno@clisp.org>
18360
18361         Make it easier to find modules. New gnulib-tool option '--find'.
18362         * gnulib-tool: New option --find.
18363         (func_usage): Document it.
18364         (func_sanitize_modulelist): New function, extracted from
18365         func_all_modules.
18366         (func_all_modules): Invoke it.
18367         * doc/gnulib-tool.texi (Which modules?): New node.
18368
18369 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18370
18371         * lib/sys_select.in.h: Provide select replacement even if
18372         sys/select.h exists on a system, for Interix.
18373
18374 2010-02-18  Jim Meyering  <meyering@redhat.com>
18375
18376         init.sh: don't use $(...) just yet
18377         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18378         to accommodate e.g., Solaris' /bin/sh.
18379
18380 2010-02-17  Bruno Haible  <bruno@clisp.org>
18381
18382         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18383         Reported by Ludovic Courtès <ludo@gnu.org>.
18384
18385 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18386
18387         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18388         linking with -lintl.
18389
18390 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18391
18392         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18393         if not provided by the system's netdb.h.  Reported by
18394         ludo@gnu.org (Ludovic Courtès).
18395
18396 2010-02-15  Jim Meyering  <meyering@redhat.com>
18397
18398         init.sh: improve portability and efficiency
18399         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18400         "dummy" in a for loop.
18401         Use '!', not '^' to select the complement of a character set used
18402         in a "case" statement.
18403         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18404         Suggestions from Eric Blake.
18405
18406         init.sh: automatically accommodate programs with the .exe suffix
18407         Automatically arrange for an invocation of "prog" to execute the
18408         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18409         may use the simpler "prog", yet still work when built on a system
18410         that requires specifying the added suffix.
18411         Do this by constructing a function named "prog" that invokes
18412         "prog.exe" for each .exe file in selected directories.
18413         * tests/init.sh (find_exe_basenames_): New function.
18414         (create_exe_shim_functions_): New function.
18415         (path_prepend_): Use it.
18416
18417         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18418         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18419         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18420
18421 2010-02-14  Jim Meyering  <meyering@redhat.com>
18422
18423         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18424         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18425         (sc_prohibit_hash_pjw_without_use): New rule.
18426
18427         maint.mk: allow the default upload destination dir to be overridden
18428         * top/maint.mk (upload_dest_dir_): Define with a default that
18429         preserves the status quo.
18430         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18431         Reported by Peter Simons.
18432
18433         maint.mk: prohibit inclusion of "hash.h" without_use
18434         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18435
18436 2010-02-10  Jim Meyering  <meyering@redhat.com>
18437
18438         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18439         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18440
18441 2010-02-09  Eric Blake  <ebb9@byu.net>
18442         and Bruno Haible  <bruno@clisp.org>
18443
18444         obstack-printf-posix: ensure declaration
18445         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18446         extracted from gl_FUNC_OBSTACK_PRINTF.
18447         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18448         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18449         Likewise.
18450         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18451         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18452         0.
18453
18454 2010-02-08  Bruno Haible  <bruno@clisp.org>
18455
18456         gnulib-tool: Fix typo in 2010-02-07 commit.
18457         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18458         Reported by Eric Blake.
18459
18460 2010-02-07  Bruno Haible  <bruno@clisp.org>
18461
18462         gnulib-tool: Fix up caching patches.
18463         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18464         option --no-cache. Use associative arrays when supported by the shell.
18465         (sed_comments): New variable.
18466         (modcache): Renamed from do_cache.
18467         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18468         abbreviate unnecessarily.
18469         (have_associative): New variable.
18470         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18471         way also for ksh and zsh.
18472         (func_init_sed_convert_to_cache_statements): New function, extracted
18473         from func_cache_lookup_module. Add support for associative arrays.
18474         Don't set the c_MODULE_cached variable here. Ignore all lines before
18475         the first field header. Remove only the final newline, not all trailing
18476         newlines. Support empty fields correctly. Limit the use of 'eval' to
18477         assignments.
18478         (func_get_description, func_get_status, func_get_notice,
18479         func_get_applicability, func_get_filelist, func_get_dependencies,
18480         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18481         func_get_automake_snippet, func_get_include_directive,
18482         func_get_link_directive, func_get_license, func_get_maintainer):
18483         Update documentation. List the unoptimized code first. Add support for
18484         associative arrays. Limit the use of 'eval' to assignments.
18485         (func_get_applicability): Undo stylistic pessimisations.
18486         (func_get_automake_snippet, func_get_include_directive): Reduce code
18487         duplication.
18488         (func_modules_transitive_closure, func_modules_add_dummy,
18489         func_modules_notice, func_modules_to_filelist, func_add_file,
18490         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18491         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18492         func_create_testdir, func_create_megatestdir): Update documentation.
18493
18494 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18495
18496         * gnulib-tool (func_cache_lookup_module): Store the module name
18497         belonging to the cache variable; error out if two different
18498         module names map to the same cache variable name.
18499
18500 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18501
18502         gnulib-tool: Make caching optional.
18503         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18504         Update matching short versions of --no-changelog.
18505         (func_usage): Update.
18506         (sed_extract_cache_prog): Renamed from ...
18507         (sed_extract_prog): ... this; revert to old extraction script.
18508         (func_get_description, func_get_status)
18509         (func_get_notice, func_get_applicability, func_get_filelist)
18510         (func_get_dependencies, func_get_autoconf_early_snippet)
18511         (func_get_autoconf_snippet, func_get_automake_snippet)
18512         (func_get_include_directive, func_get_link_directive)
18513         (func_get_license, func_get_maintainer): If $do_cache is false,
18514         use old, non-caching extraction scripts.
18515         Suggestion by Bruno Haible.
18516
18517 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18518
18519         gnulib-tool: cache module metainformation.
18520         * gnulib-tool (sed_extract_prog): Match newline before each
18521         header, and rewrite header to a shell variable suffix.
18522         (func_cache_var, func_cache_lookup_module): New functions,
18523         to turn a module name into a cache variable prefix, and to
18524         look up and cache module metainformation.
18525         (func_get_description, func_get_status)
18526         (func_get_notice, func_get_applicability, func_get_filelist)
18527         (func_get_dependencies, func_get_autoconf_early_snippet)
18528         (func_get_autoconf_snippet, func_get_automake_snippet)
18529         (func_get_include_directive, func_get_link_directive)
18530         (func_get_license, func_get_maintainer): Use
18531         func_cache_lookup_module.
18532
18533 2010-02-07  Bruno Haible  <bruno@clisp.org>
18534
18535         fnctl: Fix missing dependency.
18536         * modules/fcntl (Depends-on): Add getdtablesize.
18537         Reported by John W. Eaton <jwe@gnu.org>.
18538
18539 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18540
18541         Argp: fix recognition of short alias options.
18542
18543         * lib/argp-parse.c (convert_options): Fix improper use of
18544         `|' between character values.
18545         * tests/test-argp.c (group1_option): New alias option
18546         --read (-r).
18547         (group1_parser): Special handling for 'r'.
18548         (test15): New test case.
18549         (test_fun): Add test15.
18550         * tests/test-argp-2.sh: Update expected --help and --usage
18551         outputs.
18552
18553 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18554
18555         * tests/test-argp.c: Fix indentation.
18556
18557 2010-02-04  Eric Blake  <ebb9@byu.net>
18558
18559         gettimeofday: expose type of second argument
18560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18561         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18562         * tests/test-gettimeofday.c: Use it to silence warning.
18563         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18564         the issue.
18565
18566 2010-02-03  Jim Meyering  <meyering@redhat.com>
18567
18568         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18569         * lib/regcomp.c (TYPE_SIGNED): Define.
18570         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18571
18572         regcomp.c: avoid a new -Wshadow warning
18573         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18574
18575 2010-02-01  Jim Meyering  <meyering@redhat.com>
18576
18577         removing useless parentheses in cpp #define directives
18578         For motivation, see commit c0221df4, "define STREQ(a,b)
18579         consistently, removing useless parentheses"
18580         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18581         * lib/mountlist.c (MNT_IGNORE): Likewise.
18582         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18583
18584 2010-02-01  Eric Blake  <ebb9@byu.net>
18585
18586         sys_time: use link-warning
18587         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18588         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18589         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18590         * modules/sys_time (Depends-on): Add warn-on-use.
18591         (Makefile.am): Always build replacement.
18592         (configure.ac): Update substitutions.
18593         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18594         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18595         bother with SYS_TIME_H.
18596         * modules/gettimeofday (configure.ac): Declare indicator.
18597         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18598         in use.
18599
18600         closein-tests: silence compiler warning
18601         * tests/test-closein.c (main): Ignore fread result.
18602         * modules/closein-tests (Depends-on): Add ignore-value.
18603
18604         tests: silence warning about system return
18605         * tests/test-areadlink-with-size.c (main): Ignore system result.
18606         * tests/test-areadlink.c (main): Likewise.
18607         * tests/test-areadlinkat-with-size.c (main): Likewise.
18608         * tests/test-areadlinkat.c (main): Likewise.
18609         * tests/test-canonicalize-lgpl.c (main): Likewise.
18610         * tests/test-canonicalize.c (main): Likewise.
18611         * tests/test-chown.c (main): Likewise.
18612         * tests/test-fchownat.c (main): Likewise.
18613         * tests/test-fdutimensat.c (main): Likewise.
18614         * tests/test-fstatat.c (main): Likewise.
18615         * tests/test-futimens.c (main): Likewise.
18616         * tests/test-lchown.c (main): Likewise.
18617         * tests/test-link.c (main): Likewise.
18618         * tests/test-linkat.c (main): Likewise.
18619         * tests/test-lstat.c (main): Likewise.
18620         * tests/test-mkdir.c (main): Likewise.
18621         * tests/test-mkdirat.c (main): Likewise.
18622         * tests/test-mkfifo.c (main): Likewise.
18623         * tests/test-mkfifoat.c (main): Likewise.
18624         * tests/test-mknod.c (main): Likewise.
18625         * tests/test-readlink.c (main): Likewise.
18626         * tests/test-remove.c (main): Likewise.
18627         * tests/test-rename.c (main): Likewise.
18628         * tests/test-renameat.c (main): Likewise.
18629         * tests/test-rmdir.c (main): Likewise.
18630         * tests/test-symlink.c (main): Likewise.
18631         * tests/test-symlinkat.c (main): Likewise.
18632         * tests/test-unlink.c (main): Likewise.
18633         * tests/test-unlinkat.c (main): Likewise.
18634         * tests/test-utimens.c (main): Likewise.
18635         * tests/test-utimensat.c (main): Likewise.
18636         * modules/areadlink-tests (Depends-on): Add ignore-value.
18637         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18638         * modules/areadlinkat-tests (Depends-on): Likewise.
18639         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18640         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18641         * modules/canonicalize-tests (Depends-on): Likewise.
18642         * modules/chown-tests (Depends-on): Likewise.
18643         * modules/fdutimensat-tests (Depends-on): Likewise.
18644         * modules/futimens-tests (Depends-on): Likewise.
18645         * modules/lchown-tests (Depends-on): Likewise.
18646         * modules/link-tests (Depends-on): Likewise.
18647         * modules/linkat-tests (Depends-on): Likewise.
18648         * modules/lstat-tests (Depends-on): Likewise.
18649         * modules/mkdir-tests (Depends-on): Likewise.
18650         * modules/mkfifo-tests (Depends-on): Likewise.
18651         * modules/mkfifoat-tests (Depends-on): Likewise.
18652         * modules/mknod-tests (Depends-on): Likewise.
18653         * modules/openat-tests (Depends-on): Likewise.
18654         * modules/readlink-tests (Depends-on): Likewise.
18655         * modules/remove-tests (Depends-on): Likewise.
18656         * modules/rename-tests (Depends-on): Likewise.
18657         * modules/renameat-tests (Depends-on): Likewise.
18658         * modules/rmdir-tests (Depends-on): Likewise.
18659         * modules/symlink-tests (Depends-on): Likewise.
18660         * modules/symlinkat-tests (Depends-on): Likewise.
18661         * modules/unlink-tests (Depends-on): Likewise.
18662         * modules/utimens-tests (Depends-on): Likewise.
18663         * modules/utimensat-tests (Depends-on): Likewise.
18664
18665 2010-01-31  Bruno Haible  <bruno@clisp.org>
18666
18667         Perform the same test for many <math.h> functions.
18668         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18669         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18670         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18671         of gl_MATHFUNC.
18672         * modules/acos (configure.ac): Likewise.
18673         * modules/asin (configure.ac): Likewise.
18674         * modules/atan (configure.ac): Likewise.
18675         * modules/atan2 (configure.ac): Likewise.
18676         * modules/cbrt (configure.ac): Likewise.
18677         * modules/copysign (configure.ac): Likewise.
18678         * modules/cos (configure.ac): Likewise.
18679         * modules/cosh (configure.ac): Likewise.
18680         * modules/erf (configure.ac): Likewise.
18681         * modules/erfc (configure.ac): Likewise.
18682         * modules/exp (configure.ac): Likewise.
18683         * modules/fmod (configure.ac): Likewise.
18684         * modules/hypot (configure.ac): Likewise.
18685         * modules/j0 (configure.ac): Likewise.
18686         * modules/j1 (configure.ac): Likewise.
18687         * modules/jn (configure.ac): Likewise.
18688         * modules/lgamma (configure.ac): Likewise.
18689         * modules/log (configure.ac): Likewise.
18690         * modules/log10 (configure.ac): Likewise.
18691         * modules/log1p (configure.ac): Likewise.
18692         * modules/pow (configure.ac): Likewise.
18693         * modules/remainder (configure.ac): Likewise.
18694         * modules/sin (configure.ac): Likewise.
18695         * modules/sinh (configure.ac): Likewise.
18696         * modules/tan (configure.ac): Likewise.
18697         * modules/tanh (configure.ac): Likewise.
18698         * modules/y0 (configure.ac): Likewise.
18699         * modules/y1 (configure.ac): Likewise.
18700         * modules/yn (configure.ac): Likewise.
18701         Suggested by Paolo Bonzini.
18702
18703 2010-01-31  Bruno Haible  <bruno@clisp.org>
18704
18705         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18706
18707 2010-01-31  Bruno Haible  <bruno@clisp.org>
18708
18709         Work around getdelim() bug on FreeBSD 8.0.
18710         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18711         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18712         not work.
18713         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18714         is 1.
18715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18716         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18717         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18718         a non-zero size.
18719         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18720
18721 2010-01-31  Bruno Haible  <bruno@clisp.org>
18722
18723         Work around getline() bug on FreeBSD 8.0.
18724         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18725         and a non-zero size.
18726         * tests/test-getline.c (main): Likewise.
18727         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18728         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18729
18730 2010-01-28  Eric Blake  <ebb9@byu.net>
18731
18732         regex: fix build failure
18733         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18734         platforms.
18735
18736 2010-01-28  Jim Meyering  <meyering@redhat.com>
18737
18738         regex: do not ignore memory allocation failure
18739         * lib/regex_internal.c (create_cd_newstate): Detect
18740         re_node_set_init_copy failure.   Extracted from glibc commit
18741         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18742
18743         regex: sync more white-space changes from libc
18744         * lib/regex_internal.c: White-space only changes.
18745         * lib/regexec.c: Likewise.
18746
18747         regex: add many uses of __attribute_warn_unused_result__
18748         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18749         * lib/regexec.c: Likewise.
18750         Extracted from a messy glibc commit.
18751
18752         regcomp.c: spelling and merge-artifact from glibc
18753         * lib/regcomp.c: Merge remainder of glibc's
18754         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18755
18756         regcomp.c: sync white-space changes from glibc
18757         * lib/regcomp.c: Merge to accommodate white space
18758         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18759
18760         regcomp.c: do not ignore internal return values
18761         * lib/regcomp.c: Do not ignore internal return values.
18762         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18763         but without its white-space changes and spelling fixes.
18764
18765         regex_internal.h: define __attribute_warn_unused_result__
18766         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18767
18768         maint: add a syntax-check rule to check for vulnerable Makefile.in
18769         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18770
18771 2010-01-27  Jim Meyering  <meyering@redhat.com>
18772
18773         ncftpput-ftp: clean up spaces
18774         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18775         Remove trailing blanks.
18776
18777 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18778
18779         * build-aux/git-version-gen: Fix copyright statement.
18780         * build-aux/gnupload: Likewise.
18781         * tests/test-arcfour.c: Likewise.
18782         * tests/test-arctwo.c: Likewise.
18783         * tests/test-count-one-bits.c: Likewise.
18784         * tests/test-crc.c: Likewise.
18785         * tests/test-des.c: Likewise.
18786         * tests/test-gc-arcfour.c: Likewise.
18787         * tests/test-gc-arctwo.c: Likewise.
18788         * tests/test-gc-des.c: Likewise.
18789         * tests/test-gc-hmac-md5.c: Likewise.
18790         * tests/test-gc-hmac-sha1.c: Likewise.
18791         * tests/test-gc-md2.c: Likewise.
18792         * tests/test-gc-md4.c: Likewise.
18793         * tests/test-gc-md5.c: Likewise.
18794         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18795         * tests/test-gc-rijndael.c: Likewise.
18796         * tests/test-gc-sha1.c: Likewise.
18797         * tests/test-gc.c: Likewise.
18798         * tests/test-gethostname.c: Likewise.
18799         * tests/test-gettimeofday.c: Likewise.
18800         * tests/test-hash.c: Likewise.
18801         * tests/test-hmac-md5.c: Likewise.
18802         * tests/test-hmac-sha1.c: Likewise.
18803         * tests/test-md2.c: Likewise.
18804         * tests/test-md4.c: Likewise.
18805         * tests/test-md5.c: Likewise.
18806         * tests/test-memchr.c: Likewise.
18807         * tests/test-memchr2.c: Likewise.
18808         * tests/test-memcmp.c: Likewise.
18809         * tests/test-memmem.c: Likewise.
18810         * tests/test-memrchr.c: Likewise.
18811         * tests/test-rawmemchr.c: Likewise.
18812         * tests/test-read-file.c: Likewise.
18813         * tests/test-rijndael.c: Likewise.
18814         * tests/test-sockets.c: Likewise.
18815         * tests/test-strchrnul.c: Likewise.
18816         * tests/test-strstr.c: Likewise.
18817         * tests/test-strtod.c: Likewise.
18818         * build-aux/ncftpput-ftp: Likewise.
18819
18820 2010-01-26  Eric Blake  <ebb9@byu.net>
18821
18822         ignore-value: update recommended header name
18823         * modules/ignore-value (Include): Only use <> for headers that
18824         exist in glibc.
18825
18826 2010-01-26  Jim Meyering  <meyering@redhat.com>
18827
18828         test-userspec.c: avoid compiler warnings
18829         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18830         and "initialization discards qualifiers..." warnings.
18831         Put the first "uid" in its own scope, and make char* members "const".
18832
18833 2010-01-25  Bruno Haible  <bruno@clisp.org>
18834
18835         gnulib-tool: Make warning diagnostics consistent.
18836         * gnulib-tool (func_warning): New function.
18837         Use it everywhere where gnulib-tool produces output to stderr and it is
18838         not a fatal error.
18839
18840 2010-01-25  Bruno Haible  <bruno@clisp.org>
18841
18842         Fix test dependencies.
18843         * modules/xstrtol-tests (Depends-on): Add inttypes.
18844         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18845
18846 2010-01-25 Pádraig Brady <P@draigBrady.com>
18847
18848         syntax-check: detect incorrect boolean macro values in config.h
18849         * modules/maintainer-makefile (configure.ac): Parameterize the location
18850         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18851         The logic is from Eric Blake and the location indicated by Jim Meyering.
18852         Note the more natural CONFIG_HEADER name is prohibited by automake
18853         for backwards compatibility reasons.
18854         * top/maint.mk (sc_Wundef_boolean): New rule.
18855
18856 2010-01-25  Jim Meyering  <meyering@redhat.com>
18857
18858         bootstrap: detect MacOS 10.6's shasum, too
18859         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18860         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18861
18862 2010-01-23  Jim Meyering  <meyering@redhat.com>
18863
18864         xstrtoll: new module
18865         * modules/xstrtoll: New file.
18866         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18867         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18868         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18869         ./configure fails if you use this module and lack "long long".
18870         * modules/xstrtoll-tests: New module.
18871         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18872         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18873         new init.sh-based test framework.
18874
18875 2010-01-24  Bruno Haible  <bruno@clisp.org>
18876
18877         Tests for module 'yn'.
18878         * modules/yn-tests: New file.
18879         * tests/test-yn.c: New file.
18880
18881         Tests for module 'y1'.
18882         * modules/y1-tests: New file.
18883         * tests/test-y1.c: New file.
18884
18885         Tests for module 'y0'.
18886         * modules/y0-tests: New file.
18887         * tests/test-y0.c: New file.
18888
18889         Tests for module 'tanh'.
18890         * modules/tanh-tests: New file.
18891         * tests/test-tanh.c: New file.
18892
18893         Tests for module 'tan'.
18894         * modules/tan-tests: New file.
18895         * tests/test-tan.c: New file.
18896
18897         Tests for module 'sqrt'.
18898         * modules/sqrt-tests: New file.
18899         * tests/test-sqrt.c: New file.
18900
18901         Tests for module 'sinh'.
18902         * modules/sinh-tests: New file.
18903         * tests/test-sinh.c: New file.
18904
18905         Tests for module 'sin'.
18906         * modules/sin-tests: New file.
18907         * tests/test-sin.c: New file.
18908
18909         Tests for module 'rint'.
18910         * modules/rint-tests: New file.
18911         * tests/test-rint.c: New file.
18912
18913         Tests for module 'remainder'.
18914         * modules/remainder-tests: New file.
18915         * tests/test-remainder.c: New file.
18916
18917         Tests for module 'pow'.
18918         * modules/pow-tests: New file.
18919         * tests/test-pow.c: New file.
18920
18921         Tests for module 'nextafter'.
18922         * modules/nextafter-tests: New file.
18923         * tests/test-nextafter.c: New file.
18924
18925         Tests for module 'modf'.
18926         * modules/modf-tests: New file.
18927         * tests/test-modf.c: New file.
18928
18929         Tests for module 'logb'.
18930         * modules/logb-tests: New file.
18931         * tests/test-logb.c: New file.
18932
18933         Tests for module 'log1p'.
18934         * modules/log1p-tests: New file.
18935         * tests/test-log1p.c: New file.
18936
18937         Tests for module 'log10'.
18938         * modules/log10-tests: New file.
18939         * tests/test-log10.c: New file.
18940
18941         Tests for module 'log'.
18942         * modules/log-tests: New file.
18943         * tests/test-log.c: New file.
18944
18945         Tests for module 'lgamma'.
18946         * modules/lgamma-tests: New file.
18947         * tests/test-lgamma.c: New file.
18948
18949         Tests for module 'ldexp'.
18950         * modules/ldexp-tests: New file.
18951         * tests/test-ldexp.c: New file.
18952
18953         Tests for module 'jn'.
18954         * modules/jn-tests: New file.
18955         * tests/test-jn.c: New file.
18956
18957         Tests for module 'j1'.
18958         * modules/j1-tests: New file.
18959         * tests/test-j1.c: New file.
18960
18961         Tests for module 'j0'.
18962         * modules/j0-tests: New file.
18963         * tests/test-j0.c: New file.
18964
18965         Tests for module 'hypot'.
18966         * modules/hypot-tests: New file.
18967         * tests/test-hypot.c: New file.
18968
18969         Tests for module 'fmod'.
18970         * modules/fmod-tests: New file.
18971         * tests/test-fmod.c: New file.
18972
18973         Tests for module 'fabs'.
18974         * modules/fabs-tests: New file.
18975         * tests/test-fabs.c: New file.
18976
18977         Tests for module 'exp'.
18978         * modules/exp-tests: New file.
18979         * tests/test-exp.c: New file.
18980
18981         Tests for module 'erfc'.
18982         * modules/erfc-tests: New file.
18983         * tests/test-erfc.c: New file.
18984
18985         Tests for module 'erf'.
18986         * modules/erf-tests: New file.
18987         * tests/test-erf.c: New file.
18988
18989         Tests for module 'cosh'.
18990         * modules/cosh-tests: New file.
18991         * tests/test-cosh.c: New file.
18992
18993         Tests for module 'cos'.
18994         * modules/cos-tests: New file.
18995         * tests/test-cos.c: New file.
18996
18997         Tests for module 'copysign'.
18998         * modules/copysign-tests: New file.
18999         * tests/test-copysign.c: New file.
19000
19001         Tests for module 'cbrt'.
19002         * modules/cbrt-tests: New file.
19003         * tests/test-cbrt.c: New file.
19004
19005         Tests for module 'atan2'.
19006         * modules/atan2-tests: New file.
19007         * tests/test-atan2.c: New file.
19008
19009         Tests for module 'atan'.
19010         * modules/atan-tests: New file.
19011         * tests/test-atan.c: New file.
19012
19013         Tests for module 'asin'.
19014         * modules/asin-tests: New file.
19015         * tests/test-asin.c: New file.
19016
19017         Tests for module 'acos'.
19018         * modules/acos-tests: New file.
19019         * tests/test-acos.c: New file.
19020
19021 2010-01-24  Bruno Haible  <bruno@clisp.org>
19022
19023         Fix tests for common <math.h> functions.
19024         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19025         code snippet that references the function pointer, rather than merely
19026         calling the function. Substitute the FUNC_LIBM variable.
19027         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19028         * modules/acos (configure.ac): Likewise.
19029         * modules/asin (configure.ac): Likewise.
19030         * modules/atan (configure.ac): Likewise.
19031         * modules/atan2 (configure.ac): Likewise.
19032         * modules/cbrt (configure.ac): Likewise.
19033         * modules/copysign (configure.ac): Likewise.
19034         * modules/cos (configure.ac): Likewise.
19035         * modules/cosh (configure.ac): Likewise.
19036         * modules/erf (configure.ac): Likewise.
19037         * modules/erfc (configure.ac): Likewise.
19038         * modules/exp (configure.ac): Likewise.
19039         * modules/fabs (configure.ac): Likewise.
19040         * modules/fmod (configure.ac): Likewise.
19041         * modules/hypot (configure.ac): Likewise.
19042         * modules/j0 (configure.ac): Likewise.
19043         * modules/j1 (configure.ac): Likewise.
19044         * modules/jn (configure.ac): Likewise.
19045         * modules/ldexp (configure.ac): Likewise.
19046         * modules/lgamma (configure.ac): Likewise.
19047         * modules/log (configure.ac): Likewise.
19048         * modules/log10 (configure.ac): Likewise.
19049         * modules/log1p (configure.ac): Likewise.
19050         * modules/logb (configure.ac): Likewise.
19051         * modules/modf (configure.ac): Likewise.
19052         * modules/nextafter (configure.ac): Likewise.
19053         * modules/pow (configure.ac): Likewise.
19054         * modules/remainder (configure.ac): Likewise.
19055         * modules/rint (configure.ac): Likewise.
19056         * modules/sin (configure.ac): Likewise.
19057         * modules/sinh (configure.ac): Likewise.
19058         * modules/tan (configure.ac): Likewise.
19059         * modules/tanh (configure.ac): Likewise.
19060         * modules/y0 (configure.ac): Likewise.
19061         * modules/y1 (configure.ac): Likewise.
19062         * modules/yn (configure.ac): Likewise.
19063
19064 2010-01-24  Bruno Haible  <bruno@clisp.org>
19065
19066         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19067         * tests/test-acosl.c (x): New variable.
19068         (main): Store argument in x and fetch it from x.
19069         * tests/test-asinl.c (x): New variable.
19070         (main): Store argument in x and fetch it from x.
19071         * tests/test-atanl.c (x): New variable.
19072         (main): Store argument in x and fetch it from x.
19073         * tests/test-cosl.c (x): New variable.
19074         (main): Store argument in x and fetch it from x.
19075         * tests/test-expl.c (x): New variable.
19076         (main): Store argument in x and fetch it from x.
19077         * tests/test-logl.c (x): New variable.
19078         (main): Store argument in x and fetch it from x.
19079         * tests/test-sinl.c (x): New variable.
19080         (main): Store argument in x and fetch it from x.
19081         * tests/test-sqrtl.c (x): New variable.
19082         (main): Store argument in x and fetch it from x.
19083         * tests/test-tanl.c (x): New variable.
19084         (main): Store argument in x and fetch it from x.
19085
19086 2010-01-24  Bruno Haible  <bruno@clisp.org>
19087
19088         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19089         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19090         assignments to the initial TESTS_ENVIRONMENT.
19091         * doc/gnulib.texi (Unit test modules): Document it.
19092         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19093         TESTS_ENVIRONMENT.
19094         * modules/btowc-tests (Makefile.am): Likewise.
19095         * modules/c-stack-tests (Makefile.am): Likewise.
19096         * modules/c-strcase-tests (Makefile.am): Likewise.
19097         * modules/copy-file-tests (Makefile.am): Likewise.
19098         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19099         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19100         * modules/mbrtowc-tests (Makefile.am): Likewise.
19101         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19102         * modules/mbscasestr-tests (Makefile.am): Likewise.
19103         * modules/mbschr-tests (Makefile.am): Likewise.
19104         * modules/mbscspn-tests (Makefile.am): Likewise.
19105         * modules/mbsinit-tests (Makefile.am): Likewise.
19106         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19107         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19108         * modules/mbspbrk-tests (Makefile.am): Likewise.
19109         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19110         * modules/mbsrchr-tests (Makefile.am): Likewise.
19111         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19112         * modules/mbsspn-tests (Makefile.am): Likewise.
19113         * modules/mbsstr-tests (Makefile.am): Likewise.
19114         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19115         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19116         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19117         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19118         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19119         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19120         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19121         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19122         * modules/wcrtomb-tests (Makefile.am): Likewise.
19123         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19124         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19125         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19126         assignments from TESTS_ENVIRONMENT.
19127         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19128         augmentation.
19129         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19130         * modules/atexit-tests (Makefile.am): Likewise.
19131         * modules/binary-io-tests (Makefile.am): Likewise.
19132         * modules/closein-tests (Makefile.am): Likewise.
19133         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19134         * modules/exclude-tests (Makefile.am): Likewise.
19135         * modules/fflush-tests (Makefile.am): Likewise.
19136         * modules/fpending-tests (Makefile.am): Likewise.
19137         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19138         * modules/freadahead-tests (Makefile.am): Likewise.
19139         * modules/freadptr-tests (Makefile.am): Likewise.
19140         * modules/freadseek-tests (Makefile.am): Likewise.
19141         * modules/fseek-tests (Makefile.am): Likewise.
19142         * modules/fseeko-tests (Makefile.am): Likewise.
19143         * modules/ftell-tests (Makefile.am): Likewise.
19144         * modules/ftello-tests (Makefile.am): Likewise.
19145         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19146         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19147         * modules/lseek-tests (Makefile.am): Likewise.
19148         * modules/parse-duration-tests (Makefile.am): Likewise.
19149         * modules/perror-tests (Makefile.am): Likewise.
19150         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19151         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19152         * modules/pipe-tests (Makefile.am): Likewise.
19153         * modules/pread-tests (Makefile.am): Likewise.
19154         * modules/printf-posix-tests (Makefile.am): Likewise.
19155         * modules/select-tests (Makefile.am): Likewise.
19156         * modules/sigpipe-tests (Makefile.am): Likewise.
19157         * modules/tsearch-tests (Makefile.am): Likewise.
19158         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19159         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19160         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19161         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19162         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19163         * modules/version-etc-tests (Makefile.am): Likewise.
19164         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19165         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19166         * modules/xalloc-die-tests (Makefile.am): Likewise.
19167         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19168         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19169         * modules/xstrtol-tests (Makefile.am): Likewise.
19170         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19171         * modules/yesno-tests (Makefile.am): Likewise.
19172         Suggested by Jim Meyering.
19173
19174 2010-01-24  Bruno Haible  <bruno@clisp.org>
19175
19176         More documentation.
19177         * doc/gnulib.texi (Writing modules): New chapter.
19178         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19179         the new chapter.
19180
19181 2010-01-24  Jim Meyering  <meyering@redhat.com>
19182
19183         maint.mk: do not prepend "./" after filtering
19184         * top/maint.mk (_prepend_srcdir_prefix): New variable
19185         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19186         "./" when $(srcdir) is ".".
19187
19188         define STREQ(a,b) consistently, removing useless parentheses
19189         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19190         since the only risk is that "a" or "b" contains an unparenthesized
19191         comma, but if either did that, STREQ would have 3 or more arguments.
19192         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19193         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19194         * lib/hash-triple.c (STREQ): Likewise.
19195         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19196         * lib/getugroups.c (STREQ): Likewise.
19197
19198 2010-01-23  Jim Meyering  <meyering@redhat.com>
19199
19200         maint.mk: fix syntax-check in a non-srcdir build directory
19201         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19202         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19203
19204 2010-01-22  Jim Meyering  <meyering@redhat.com>
19205
19206         userspec: add unit tests
19207         * tests/test-userspec.c: New file.
19208         * modules/userspec-tests: Likewise.
19209
19210 2010-01-21  Jim Meyering  <meyering@redhat.com>
19211
19212         maint.mk: handle source file names containing "." robustly
19213         * top/maint.mk (_dot_escaped_srcdir): Define.
19214         (VC_LIST): Use it in LHS of sed substitution.
19215
19216 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19217
19218         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19219         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19220         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19221         from a non-srcdir build.
19222
19223 2010-01-20  Eric Blake  <ebb9@byu.net>
19224
19225         warn-on-use: use instead of link-warning
19226         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19227         * modules/unistd (Depends-on, Makefile.am): Likewise.
19228         * modules/arpa_inet (Depends-on): Replace link-warning with
19229         warn-on-use.
19230         (Makefile.am): Update rules accordingly.
19231         * modules/ctype (Depends-on, Makefile.am): Likewise.
19232         * modules/dirent (Depends-on, Makefile.am): Likewise.
19233         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19234         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19235         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19236         * modules/locale (Depends-on, Makefile.am): Likewise.
19237         * modules/math (Depends-on, Makefile.am): Likewise.
19238         * modules/search (Depends-on, Makefile.am): Likewise.
19239         * modules/signal (Depends-on, Makefile.am): Likewise.
19240         * modules/spawn (Depends-on, Makefile.am): Likewise.
19241         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19242         * modules/string (Depends-on, Makefile.am): Likewise.
19243         * modules/strings (Depends-on, Makefile.am): Likewise.
19244         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19245         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19246         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19247         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19248         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19249         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19250         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19251         * modules/wchar (Depends-on, Makefile.am): Likewise.
19252         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19253         should be poisoned.
19254         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19255         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19256         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19257         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19258         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19259         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19260         * m4/math_h.m4 (gl_MATH_H): Likewise.
19261         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19262         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19263         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19264         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19265         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19266         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19267         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19268         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19271         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19272         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19273         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19274         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19275         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19276         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19277         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19278         GL_LINK_WARNING.
19279         * lib/ctype.in.h: Likewise.
19280         * lib/dirent.in.h: Likewise.
19281         * lib/fcntl.in.h: Likewise.
19282         * lib/inttypes.in.h: Likewise.
19283         * lib/langinfo.in.h: Likewise.
19284         * lib/locale.in.h: Likewise.
19285         * lib/math.in.h: Likewise.
19286         * lib/search.in.h: Likewise.
19287         * lib/signal.in.h: Likewise.
19288         * lib/spawn.in.h: Likewise.
19289         * lib/stdio.in.h: Likewise.
19290         * lib/stdlib.in.h: Likewise.
19291         * lib/string.in.h: Likewise.
19292         * lib/strings.in.h: Likewise.
19293         * lib/sys_file.in.h: Likewise.
19294         * lib/sys_ioctl.in.h: Likewise.
19295         * lib/sys_select.in.h: Likewise.
19296         * lib/sys_socket.in.h: Likewise.
19297         * lib/sys_stat.in.h: Likewise.
19298         * lib/sys_times.in.h: Likewise.
19299         * lib/sys_utsname.in.h: Likewise.
19300         * lib/unistd.in.h: Likewise.
19301         * lib/wchar.in.h: Likewise.
19302
19303 2010-01-20  Bruno Haible  <bruno@clisp.org>
19304
19305         Avoid duplicate -lm.
19306         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19307         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19308         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19309         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19310         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19311         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19312         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19313         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19314         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19315         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19316         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19317         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19318         Reported by Paolo Bonzini.
19319
19320 2010-01-19  Bruno Haible  <bruno@clisp.org>
19321
19322         langinfo, nl_langinfo: Relicense under LGPLv2+.
19323         * modules/langinfo (License): Change to LGPLv2+.
19324         * modules/nl_langinfo (License): Likewise.
19325         Patch by David Lutterkort <lutter@redhat.com>.
19326
19327 2010-01-19  Bruno Haible  <bruno@clisp.org>
19328
19329         Avoid compilation error with cc on OSF/1 5.1.
19330         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19331         statement, not before.
19332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19333
19334 2010-01-18  Bruno Haible  <bruno@clisp.org>
19335
19336         Avoid a link error due to the __printf__ symbol.
19337         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19338         and 2.6.x.
19339         (__format__, __printf__): Remove definitions.
19340         * lib/argp-fmtstream.h: Likewise.
19341         * lib/argp.h: Likewise.
19342         * lib/error.h: Likewise.
19343         * lib/vasnprintf.h: Likewise.
19344         * lib/xprintf.h: Likewise.
19345         * lib/xvasprintf.h: Likewise.
19346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19347
19348 2010-01-18  Bruno Haible  <bruno@clisp.org>
19349
19350         Tests for module 'tanl'.
19351         * modules/tanl-tests: New file.
19352         * tests/test-tanl.c: New file.
19353
19354         Tests for module 'sqrtl'.
19355         * modules/sqrtl-tests: New file.
19356         * tests/test-sqrtl.c: New file.
19357
19358         Tests for module 'sinl'.
19359         * modules/sinl-tests: New file.
19360         * tests/test-sinl.c: New file.
19361
19362         Tests for module 'logl'.
19363         * modules/logl-tests: New file.
19364         * tests/test-logl.c: New file.
19365
19366         Tests for module 'expl'.
19367         * modules/expl-tests: New file.
19368         * tests/test-expl.c: New file.
19369
19370         Tests for module 'cosl'.
19371         * modules/cosl-tests: New file.
19372         * tests/test-cosl.c: New file.
19373
19374         Tests for module 'atanl'.
19375         * modules/atanl-tests: New file.
19376         * tests/test-atanl.c: New file.
19377
19378         Tests for module 'asinl'.
19379         * modules/asinl-tests: New file.
19380         * tests/test-asinl.c: New file.
19381
19382         Tests for module 'acosl'.
19383         * modules/acosl-tests: New file.
19384         * tests/test-acosl.c: New file.
19385
19386         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19387         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19388         tanl): Use the standard gnulib idiom.
19389         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19390         * lib/sinl.c: Likewise.
19391         * lib/tanl.c: Don't include trigl.c.
19392         (kernel_tanl): Make static.
19393         * lib/sincosl.c: Include trigl.h first.
19394         * lib/trigl.c: Likewise.
19395         * m4/acosl.m4: New file.
19396         * m4/asinl.m4: New file.
19397         * m4/atanl.m4: New file.
19398         * m4/cosl.m4: New file.
19399         * m4/expl.m4: New file.
19400         * m4/logl.m4: New file.
19401         * m4/sinl.m4: New file.
19402         * m4/sqrtl.m4: New file.
19403         * m4/tanl.m4: New file.
19404         * m4/mathl.m4: Remove file.
19405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19406         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19407         Don't initialize GNULIB_MATHL.
19408         * modules/acosl: New file.
19409         * modules/asinl: New file.
19410         * modules/atanl: New file.
19411         * modules/cosl: New file.
19412         * modules/expl: New file.
19413         * modules/logl: New file.
19414         * modules/sinl: New file.
19415         * modules/sqrtl: New file.
19416         * modules/tanl: New file.
19417         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19418         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19419         substitute GNULIB_MATHL.
19420         * modules/mathl: Rewritten.
19421         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19422         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19423         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19424         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19425         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19426         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19427         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19428         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19429         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19430
19431 2010-01-18  Bruno Haible  <bruno@clisp.org>
19432
19433         sqrt: Make gl_FUNC_SQRT requirable.
19434         * m4/sqrt.m4: New file.
19435         * modules/sqrt (Files): Add it.
19436         (configure.ac): Invoke gl_FUNC_SQRT.
19437
19438 2010-01-18  Bruno Haible  <bruno@clisp.org>
19439
19440         New modules for common <math.h> functions.
19441         * m4/mathfunc.m4: New file.
19442         * modules/acos: New file.
19443         * modules/asin: New file.
19444         * modules/atan: New file.
19445         * modules/atan2: New file.
19446         * modules/cbrt: New file.
19447         * modules/copysign: New file.
19448         * modules/cos: New file.
19449         * modules/cosh: New file.
19450         * modules/erf: New file.
19451         * modules/erfc: New file.
19452         * modules/exp: New file.
19453         * modules/fabs: New file.
19454         * modules/fmod: New file.
19455         * modules/hypot: New file.
19456         * modules/j0: New file.
19457         * modules/j1: New file.
19458         * modules/jn: New file.
19459         * modules/ldexp: New file.
19460         * modules/lgamma: New file.
19461         * modules/log: New file.
19462         * modules/log10: New file.
19463         * modules/log1p: New file.
19464         * modules/logb: New file.
19465         * modules/modf: New file.
19466         * modules/nextafter: New file.
19467         * modules/pow: New file.
19468         * modules/remainder: New file.
19469         * modules/rint: New file.
19470         * modules/sin: New file.
19471         * modules/sinh: New file.
19472         * modules/sqrt: New file.
19473         * modules/tan: New file.
19474         * modules/tanh: New file.
19475         * modules/y0: New file.
19476         * modules/y1: New file.
19477         * modules/yn: New file.
19478         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19479         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19480         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19481         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19482         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19483         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19484         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19485         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19486         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19487         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19488         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19489         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19490         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19491         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19492         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19493         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19494         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19495         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19496         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19497         * doc/posix-functions/log.texi: Mention the 'log' module.
19498         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19499         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19500         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19501         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19502         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19503         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19504         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19505         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19506         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19507         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19508         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19509         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19510         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19511         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19512         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19513         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19514
19515 2010-01-18  Jim Meyering  <meyering@redhat.com>
19516
19517         ignore-value: relax license to LGPLv2+
19518         * modules/ignore-value (License): Relax to LGPLv2+.
19519
19520         getdate: don't leak when TZ contains two or more '"'s
19521         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19522         double quote in TZ after the first one.
19523
19524         readtokens: do not leak internal token_lengths buffer
19525         * lib/readtokens.c (readtokens): Free the local, lengths,
19526         when the supplied "token_lengths" parameter is NULL.
19527
19528 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19529
19530         Fix a couple of missing LIBTHREAD link failures on AIX.
19531         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19532         $(LIBTHREAD).
19533         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19534
19535         Link test-poll against INET_PTON_LIB.
19536         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19537         for inet_pton on Solaris 10.
19538
19539 2010-01-17  Bruno Haible  <bruno@clisp.org>
19540
19541         unistdio/*-sprintf: Fix typo in module description.
19542         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19543         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19544         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19545         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19546         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19547         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19548         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19550
19551 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19552
19553         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19554         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19555         variables in shell case patterns, for AIX and HP-UX ksh.
19556
19557         Split large sed scripts, for HP-UX sed.
19558         * modules/stdio: Split sed scripts around 50 sed commands,
19559         to avoid HP-UX limit of 99 commands, in the near future.
19560         * modules/string: Likewise.
19561         * modules/unistd: Likewise.
19562
19563         gnulib-tool: avoid writing in the current directory.
19564         * gnulib-tool (func_emit_lib_Makefile_am)
19565         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19566         not in the current directory, so concurrent gnulib-tool
19567         instances do not interfere.
19568
19569 2010-01-16  Jim Meyering  <meyering@redhat.com>
19570
19571         doc: update users.txt
19572         * users.txt: Add grep.
19573         (diffutils, gzip): Update URLs.
19574
19575 2010-01-12  Bruno Haible  <bruno@clisp.org>
19576
19577         posix_spawn: Avoid test failure on Cygwin.
19578         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19579         characters.
19580         Reported by Simon Josefsson.
19581
19582 2010-01-12  Bruno Haible  <bruno@clisp.org>
19583
19584         * tests/test-cond.c (main): When skipping the test, show the reason.
19585
19586 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19587
19588         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19589
19590 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19591
19592         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19593         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19594
19595 2010-01-12  Eric Blake  <ebb9@byu.net>
19596
19597         build: guarantee AS_VAR_IF
19598         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19599         (gl_AS_VAR_IF): Move...
19600         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19601         Reported by Simon Josefsson.
19602
19603 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19604
19605         * lib/stdio.in.h: Fix typo.
19606
19607 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19608
19609         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19610         libgpg-error.
19611
19612 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19613
19614         * tests/test-xalloc-die.sh: Use $EXEEXT.
19615
19616 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19617             Bruno Haible  <bruno@clisp.org>
19618
19619         getlogin, getlogin_r: Avoid test failure.
19620         * tests/test-getlogin.c: Include <stdio.h>.
19621         (main): Skip the test when the function fails because stdin is not a
19622         tty.
19623         * tests/test-getlogin_r.c: Include <stdio.h>.
19624         (main): Skip the test when the function fails because stdin is not a
19625         tty.
19626
19627 2010-01-11  Eric Blake  <ebb9@byu.net>
19628
19629         tests: avoid more large file warnings
19630         * tests/test-fflush.c: Avoid warning about ftell use.
19631         * tests/test-fseek.c: Avoid warning about fseek use.
19632
19633 2010-01-10  Bruno Haible  <bruno@clisp.org>
19634
19635         nproc: Work better on Linux when /proc and /sys are not mounted.
19636         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19637         as lower bound when, on glibc/Linux systems,
19638         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19639         Suggested by Pádraig Brady <P@draigbrady.com>.
19640         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19641
19642         nproc: Refactor.
19643         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19644         extracted from num_processors.
19645         (num_processors): Call it.
19646
19647 2010-01-11  Jim Meyering  <meyering@redhat.com>
19648
19649         utimecmp: avoid new warning from upcoming gcc-4.5.0
19650         * lib/utimecmp.c (BILLION): Define using #define rather than an
19651         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19652
19653 2010-01-11  Eric Blake  <ebb9@byu.net>
19654
19655         math: add portability warnings for classification macros
19656         * modules/math (Depends-on): Add warn-on-use.
19657         (Makefile.am): Provide new substitutions.
19658         * m4/math_h.m4 (gl_MATH_H): Require inline.
19659         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19660         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19661         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19662         implement warnings.
19663
19664         unistd: warn on use of environ without module
19665         * modules/unistd (Depends-on): Add warn-on-use.
19666         (Makefile.am): Provide new substitutions.
19667         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19668         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19669
19670         stdio: warn on suspicious uses
19671         * modules/stdio (Depends-on): Add warn-on-use.
19672         (Makefile.am): Provide new substitutions.
19673         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19674         fseeko.
19675         * lib/stdio.in.h (gets): Always warn on use.
19676         (fseek, ftell): Adjust when warnings are issued, and honor
19677         _GL_NO_LARGE_FILES as a way to silence the warning.
19678         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19679         any warning about large file offsets.
19680         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19681         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19682         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19683         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19684         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19685         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19686         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19687         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19688
19689         warn-on-use: new module
19690         * modules/warn-on-use: New file.
19691         * build-aux/warn-on-use.h: Likewise.
19692         * m4/warn-on-use.m4: Likewise.
19693         * MODULES.html.sh (Support for building): Mention it.
19694
19695 2010-01-10  Bruno Haible  <bruno@clisp.org>
19696
19697         Tests for module 'unistr/u32-strdup'.
19698         * modules/unistr/u32-strdup-tests: New file.
19699         * tests/unistr/test-u32-strdup.c: New file.
19700
19701         Tests for module 'unistr/u16-strdup'.
19702         * modules/unistr/u16-strdup-tests: New file.
19703         * tests/unistr/test-u16-strdup.c: New file.
19704
19705         Tests for module 'unistr/u8-strdup'.
19706         * modules/unistr/u8-strdup-tests: New file.
19707         * tests/unistr/test-u8-strdup.c: New file.
19708         * tests/unistr/test-strdup.h: New file.
19709
19710         Tests for module 'unistr/u32-strncmp'.
19711         * modules/unistr/u32-strncmp-tests: New file.
19712         * tests/unistr/test-u32-strncmp.c: New file.
19713
19714         Tests for module 'unistr/u16-strncmp'.
19715         * modules/unistr/u16-strncmp-tests: New file.
19716         * tests/unistr/test-u16-strncmp.c: New file.
19717
19718         Tests for module 'unistr/u8-strncmp'.
19719         * modules/unistr/u8-strncmp-tests: New file.
19720         * tests/unistr/test-u8-strncmp.c: New file.
19721         * tests/unistr/test-strncmp.h: New file.
19722
19723         Tests for module 'unistr/u32-strcoll'.
19724         * modules/unistr/u32-strcoll-tests: New file.
19725         * tests/unistr/test-u32-strcoll.c: New file.
19726
19727         Tests for module 'unistr/u16-strcoll'.
19728         * modules/unistr/u16-strcoll-tests: New file.
19729         * tests/unistr/test-u16-strcoll.c: New file.
19730
19731         Tests for module 'unistr/u8-strcoll'.
19732         * modules/unistr/u8-strcoll-tests: New file.
19733         * tests/unistr/test-u8-strcoll.c: New file.
19734
19735         Tests for module 'unistr/u32-strcmp'.
19736         * modules/unistr/u32-strcmp-tests: New file.
19737         * tests/unistr/test-u32-strcmp.c: New file.
19738         * tests/unistr/test-u32-strcmp.h: New file.
19739
19740         Tests for module 'unistr/u16-strcmp'.
19741         * modules/unistr/u16-strcmp-tests: New file.
19742         * tests/unistr/test-u16-strcmp.c: New file.
19743         * tests/unistr/test-u16-strcmp.h: New file.
19744
19745         Tests for module 'unistr/u8-strcmp'.
19746         * modules/unistr/u8-strcmp-tests: New file.
19747         * tests/unistr/test-u8-strcmp.c: New file.
19748         * tests/unistr/test-u8-strcmp.h: New file.
19749         * tests/unistr/test-strcmp.h: New file.
19750
19751         Tests for module 'unistr/u32-strncat'.
19752         * modules/unistr/u32-strncat-tests: New file.
19753         * tests/unistr/test-u32-strncat.c: New file.
19754
19755         Tests for module 'unistr/u16-strncat'.
19756         * modules/unistr/u16-strncat-tests: New file.
19757         * tests/unistr/test-u16-strncat.c: New file.
19758
19759         Tests for module 'unistr/u8-strncat'.
19760         * modules/unistr/u8-strncat-tests: New file.
19761         * tests/unistr/test-u8-strncat.c: New file.
19762         * tests/unistr/test-strncat.h: New file.
19763
19764         Tests for module 'unistr/u32-strcat'.
19765         * modules/unistr/u32-strcat-tests: New file.
19766         * tests/unistr/test-u32-strcat.c: New file.
19767
19768         Tests for module 'unistr/u16-strcat'.
19769         * modules/unistr/u16-strcat-tests: New file.
19770         * tests/unistr/test-u16-strcat.c: New file.
19771
19772         Tests for module 'unistr/u8-strcat'.
19773         * modules/unistr/u8-strcat-tests: New file.
19774         * tests/unistr/test-u8-strcat.c: New file.
19775         * tests/unistr/test-strcat.h: New file.
19776
19777         Tests for module 'unistr/u32-stpncpy'.
19778         * modules/unistr/u32-stpncpy-tests: New file.
19779         * tests/unistr/test-u32-stpncpy.c: New file.
19780
19781         Tests for module 'unistr/u16-stpncpy'.
19782         * modules/unistr/u16-stpncpy-tests: New file.
19783         * tests/unistr/test-u16-stpncpy.c: New file.
19784
19785         Tests for module 'unistr/u8-stpncpy'.
19786         * modules/unistr/u8-stpncpy-tests: New file.
19787         * tests/unistr/test-u8-stpncpy.c: New file.
19788         * tests/unistr/test-stpncpy.h: New file.
19789
19790         Tests for module 'unistr/u32-strncpy'.
19791         * modules/unistr/u32-strncpy-tests: New file.
19792         * tests/unistr/test-u32-strncpy.c: New file.
19793
19794         Tests for module 'unistr/u16-strncpy'.
19795         * modules/unistr/u16-strncpy-tests: New file.
19796         * tests/unistr/test-u16-strncpy.c: New file.
19797
19798         Tests for module 'unistr/u8-strncpy'.
19799         * modules/unistr/u8-strncpy-tests: New file.
19800         * tests/unistr/test-u8-strncpy.c: New file.
19801         * tests/unistr/test-strncpy.h: New file.
19802
19803         Tests for module 'unistr/u32-stpcpy'.
19804         * modules/unistr/u32-stpcpy-tests: New file.
19805         * tests/unistr/test-u32-stpcpy.c: New file.
19806
19807         Tests for module 'unistr/u16-stpcpy'.
19808         * modules/unistr/u16-stpcpy-tests: New file.
19809         * tests/unistr/test-u16-stpcpy.c: New file.
19810
19811         Tests for module 'unistr/u8-stpcpy'.
19812         * modules/unistr/u8-stpcpy-tests: New file.
19813         * tests/unistr/test-u8-stpcpy.c: New file.
19814         * tests/unistr/test-stpcpy.h: New file.
19815
19816         Tests for module 'unistr/u32-strcpy'.
19817         * modules/unistr/u32-strcpy-tests: New file.
19818         * tests/unistr/test-u32-strcpy.c: New file.
19819
19820         Tests for module 'unistr/u16-strcpy'.
19821         * modules/unistr/u16-strcpy-tests: New file.
19822         * tests/unistr/test-u16-strcpy.c: New file.
19823
19824         Tests for module 'unistr/u8-strcpy'.
19825         * modules/unistr/u8-strcpy-tests: New file.
19826         * tests/unistr/test-u8-strcpy.c: New file.
19827         * tests/unistr/test-strcpy.h: New file.
19828
19829         Tests for module 'unistr/u32-strnlen'.
19830         * modules/unistr/u32-strnlen-tests: New file.
19831         * tests/unistr/test-u32-strnlen.c: New file.
19832
19833         Tests for module 'unistr/u16-strnlen'.
19834         * modules/unistr/u16-strnlen-tests: New file.
19835         * tests/unistr/test-u16-strnlen.c: New file.
19836
19837         Tests for module 'unistr/u8-strnlen'.
19838         * modules/unistr/u8-strnlen-tests: New file.
19839         * tests/unistr/test-u8-strnlen.c: New file.
19840         * tests/unistr/test-strnlen.h: New file.
19841
19842         Tests for module 'unistr/u32-strlen'.
19843         * modules/unistr/u32-strlen-tests: New file.
19844         * tests/unistr/test-u32-strlen.c: New file.
19845
19846         Tests for module 'unistr/u16-strlen'.
19847         * modules/unistr/u16-strlen-tests: New file.
19848         * tests/unistr/test-u16-strlen.c: New file.
19849
19850         Tests for module 'unistr/u8-strlen'.
19851         * modules/unistr/u8-strlen-tests: New file.
19852         * tests/unistr/test-u8-strlen.c: New file.
19853
19854         Tests for module 'unistr/u32-prev'.
19855         * modules/unistr/u32-prev-tests: New file.
19856         * tests/unistr/test-u32-prev.c: New file.
19857
19858         Tests for module 'unistr/u16-prev'.
19859         * modules/unistr/u16-prev-tests: New file.
19860         * tests/unistr/test-u16-prev.c: New file.
19861
19862         Tests for module 'unistr/u8-prev'.
19863         * modules/unistr/u8-prev-tests: New file.
19864         * tests/unistr/test-u8-prev.c: New file.
19865
19866         Tests for module 'unistr/u32-next'.
19867         * modules/unistr/u32-next-tests: New file.
19868         * tests/unistr/test-u32-next.c: New file.
19869
19870         Tests for module 'unistr/u16-next'.
19871         * modules/unistr/u16-next-tests: New file.
19872         * tests/unistr/test-u16-next.c: New file.
19873
19874         Tests for module 'unistr/u8-next'.
19875         * modules/unistr/u8-next-tests: New file.
19876         * tests/unistr/test-u8-next.c: New file.
19877
19878         Tests for module 'unistr/u32-strmbtouc'.
19879         * modules/unistr/u32-strmbtouc-tests: New file.
19880         * tests/unistr/test-u32-strmbtouc.c: New file.
19881
19882         Tests for module 'unistr/u16-strmbtouc'.
19883         * modules/unistr/u16-strmbtouc-tests: New file.
19884         * tests/unistr/test-u16-strmbtouc.c: New file.
19885
19886         Tests for module 'unistr/u8-strmbtouc'.
19887         * modules/unistr/u8-strmbtouc-tests: New file.
19888         * tests/unistr/test-u8-strmbtouc.c: New file.
19889
19890         Tests for module 'unistr/u32-strmblen'.
19891         * modules/unistr/u32-strmblen-tests: New file.
19892         * tests/unistr/test-u32-strmblen.c: New file.
19893
19894         Tests for module 'unistr/u16-strmblen'.
19895         * modules/unistr/u16-strmblen-tests: New file.
19896         * tests/unistr/test-u16-strmblen.c: New file.
19897
19898         Tests for module 'unistr/u8-strmblen'.
19899         * modules/unistr/u8-strmblen-tests: New file.
19900         * tests/unistr/test-u8-strmblen.c: New file.
19901
19902         Tests for module 'unistr/u32-cpy-alloc'.
19903         * modules/unistr/u32-cpy-alloc-tests: New file.
19904         * tests/unistr/test-u32-cpy-alloc.c: New file.
19905
19906         Tests for module 'unistr/u16-cpy-alloc'.
19907         * modules/unistr/u16-cpy-alloc-tests: New file.
19908         * tests/unistr/test-u16-cpy-alloc.c: New file.
19909
19910         Tests for module 'unistr/u8-cpy-alloc'.
19911         * modules/unistr/u8-cpy-alloc-tests: New file.
19912         * tests/unistr/test-u8-cpy-alloc.c: New file.
19913         * tests/unistr/test-cpy-alloc.h: New file.
19914
19915         Tests for module 'unistr/u32-mbsnlen'.
19916         * modules/unistr/u32-mbsnlen-tests: New file.
19917         * tests/unistr/test-u32-mbsnlen.c: New file.
19918
19919         Tests for module 'unistr/u16-mbsnlen'.
19920         * modules/unistr/u16-mbsnlen-tests: New file.
19921         * tests/unistr/test-u16-mbsnlen.c: New file.
19922
19923         Tests for module 'unistr/u8-mbsnlen'.
19924         * modules/unistr/u8-mbsnlen-tests: New file.
19925         * tests/unistr/test-u8-mbsnlen.c: New file.
19926
19927         Tests for module 'unistr/u32-chr'.
19928         * modules/unistr/u32-chr-tests: New file.
19929         * tests/unistr/test-u32-chr.c: New file.
19930
19931         Tests for module 'unistr/u16-chr'.
19932         * modules/unistr/u16-chr-tests: New file.
19933         * tests/unistr/test-u16-chr.c: New file.
19934
19935         Tests for module 'unistr/u8-chr'.
19936         * modules/unistr/u8-chr-tests: New file.
19937         * tests/unistr/test-u8-chr.c: New file.
19938         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19939
19940         Tests for module 'unistr/u32-cmp2'.
19941         * modules/unistr/u32-cmp2-tests: New file.
19942         * tests/unistr/test-u32-cmp2.c: New file.
19943
19944         Tests for module 'unistr/u16-cmp2'.
19945         * modules/unistr/u16-cmp2-tests: New file.
19946         * tests/unistr/test-u16-cmp2.c: New file.
19947
19948         Tests for module 'unistr/u8-cmp2'.
19949         * modules/unistr/u8-cmp2-tests: New file.
19950         * tests/unistr/test-u8-cmp2.c: New file.
19951         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19952
19953         Tests for module 'unistr/u32-cmp'.
19954         * modules/unistr/u32-cmp-tests: New file.
19955         * tests/unistr/test-u32-cmp.c: New file.
19956
19957         Tests for module 'unistr/u16-cmp'.
19958         * modules/unistr/u16-cmp-tests: New file.
19959         * tests/unistr/test-u16-cmp.c: New file.
19960
19961         Tests for module 'unistr/u8-cmp'.
19962         * modules/unistr/u8-cmp-tests: New file.
19963         * tests/unistr/test-u8-cmp.c: New file.
19964         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19965
19966         Tests for module 'unistr/u32-set'.
19967         * modules/unistr/u32-set-tests: New file.
19968         * tests/unistr/test-u32-set.c: New file.
19969
19970         Tests for module 'unistr/u16-set'.
19971         * modules/unistr/u16-set-tests: New file.
19972         * tests/unistr/test-u16-set.c: New file.
19973
19974         Tests for module 'unistr/u8-set'.
19975         * modules/unistr/u8-set-tests: New file.
19976         * tests/unistr/test-u8-set.c: New file.
19977         * tests/unistr/test-set.h: New file.
19978
19979         Tests for module 'unistr/u32-move'.
19980         * modules/unistr/u32-move-tests: New file.
19981         * tests/unistr/test-u32-move.c: New file.
19982
19983         Tests for module 'unistr/u16-move'.
19984         * modules/unistr/u16-move-tests: New file.
19985         * tests/unistr/test-u16-move.c: New file.
19986
19987         Tests for module 'unistr/u8-move'.
19988         * modules/unistr/u8-move-tests: New file.
19989         * tests/unistr/test-u8-move.c: New file.
19990         * tests/unistr/test-move.h: New file.
19991
19992         Tests for module 'unistr/u32-cpy'.
19993         * modules/unistr/u32-cpy-tests: New file.
19994         * tests/unistr/test-u32-cpy.c: New file.
19995
19996         Tests for module 'unistr/u16-cpy'.
19997         * modules/unistr/u16-cpy-tests: New file.
19998         * tests/unistr/test-u16-cpy.c: New file.
19999
20000         Tests for module 'unistr/u8-cpy'.
20001         * modules/unistr/u8-cpy-tests: New file.
20002         * tests/unistr/test-u8-cpy.c: New file.
20003         * tests/unistr/test-cpy.h: New file.
20004
20005 2010-01-09  Bruno Haible  <bruno@clisp.org>
20006
20007         Tests for module 'unistr/u32-uctomb'.
20008         * modules/unistr/u32-uctomb-tests: New file.
20009         * tests/unistr/test-u32-uctomb.c: New file.
20010
20011         Tests for module 'unistr/u16-uctomb'.
20012         * modules/unistr/u16-uctomb-tests: New file.
20013         * tests/unistr/test-u16-uctomb.c: New file.
20014
20015         Tests for module 'unistr/u8-uctomb'.
20016         * modules/unistr/u8-uctomb-tests: New file.
20017         * tests/unistr/test-u8-uctomb.c: New file.
20018
20019         Tests for module 'unistr/u32-mbtoucr'.
20020         * modules/unistr/u32-mbtoucr-tests: New file.
20021         * tests/unistr/test-u32-mbtoucr.c: New file.
20022
20023         Tests for module 'unistr/u16-mbtoucr'.
20024         * modules/unistr/u16-mbtoucr-tests: New file.
20025         * tests/unistr/test-u16-mbtoucr.c: New file.
20026
20027         Tests for module 'unistr/u8-mbtoucr'.
20028         * modules/unistr/u8-mbtoucr-tests: New file.
20029         * tests/unistr/test-u8-mbtoucr.c: New file.
20030
20031         Tests for module 'unistr/u32-mbtouc'.
20032         * modules/unistr/u32-mbtouc-tests: New file.
20033         * tests/unistr/test-u32-mbtouc.c: New file.
20034
20035         Tests for module 'unistr/u16-mbtouc'.
20036         * modules/unistr/u16-mbtouc-tests: New file.
20037         * tests/unistr/test-u16-mbtouc.c: New file.
20038
20039         Tests for module 'unistr/u8-mbtouc'.
20040         * modules/unistr/u8-mbtouc-tests: New file.
20041         * tests/unistr/test-u8-mbtouc.c: New file.
20042
20043         Tests for module 'unistr/u32-mbtouc-unsafe'.
20044         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20045         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20046         * tests/unistr/test-u32-mbtouc.h: New file.
20047
20048         Tests for module 'unistr/u16-mbtouc-unsafe'.
20049         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20050         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20051         * tests/unistr/test-u16-mbtouc.h: New file.
20052
20053         Tests for module 'unistr/u8-mbtouc-unsafe'.
20054         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20055         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20056         * tests/unistr/test-u8-mbtouc.h: New file.
20057
20058         Tests for module 'unistr/u32-mblen'.
20059         * modules/unistr/u32-mblen-tests: New file.
20060         * tests/unistr/test-u32-mblen.c: New file.
20061
20062         Tests for module 'unistr/u16-mblen'.
20063         * modules/unistr/u16-mblen-tests: New file.
20064         * tests/unistr/test-u16-mblen.c: New file.
20065
20066         Tests for module 'unistr/u8-mblen'.
20067         * modules/unistr/u8-mblen-tests: New file.
20068         * tests/unistr/test-u8-mblen.c: New file.
20069
20070         Tests for module 'unistr/u32-to-u16'.
20071         * modules/unistr/u32-to-u16-tests: New file.
20072         * tests/unistr/test-u32-to-u16.c: New file.
20073
20074         Tests for module 'unistr/u32-to-u8'.
20075         * modules/unistr/u32-to-u8-tests: New file.
20076         * tests/unistr/test-u32-to-u8.c: New file.
20077
20078         Tests for module 'unistr/u16-to-u32'.
20079         * modules/unistr/u16-to-u32-tests: New file.
20080         * tests/unistr/test-u16-to-u32.c: New file.
20081
20082         Tests for module 'unistr/u16-to-u8'.
20083         * modules/unistr/u16-to-u8-tests: New file.
20084         * tests/unistr/test-u16-to-u8.c: New file.
20085
20086         Tests for module 'unistr/u8-to-u32'.
20087         * modules/unistr/u8-to-u32-tests: New file.
20088         * tests/unistr/test-u8-to-u32.c: New file.
20089
20090         Tests for module 'unistr/u8-to-u16'.
20091         * modules/unistr/u8-to-u16-tests: New file.
20092         * tests/unistr/test-u8-to-u16.c: New file.
20093
20094         Tests for module 'unistr/u32-check'.
20095         * modules/unistr/u32-check-tests: New file.
20096         * tests/unistr/test-u32-check.c: New file.
20097
20098         Tests for module 'unistr/u16-check'.
20099         * modules/unistr/u16-check-tests: New file.
20100         * tests/unistr/test-u16-check.c: New file.
20101
20102         Tests for module 'unistr/u8-check'.
20103         * modules/unistr/u8-check-tests: New file.
20104         * tests/unistr/test-u8-check.c: New file.
20105
20106         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20107         (category_equals): New function.
20108         (main): Add more tests.
20109         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20110
20111         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20112
20113 2010-01-10  Bruno Haible  <bruno@clisp.org>
20114
20115         unistr/u*-strcoll: Try harder to distinguish different strings.
20116         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20117         compare s1 and s2 to see if they are different.
20118
20119 2010-01-10  Bruno Haible  <bruno@clisp.org>
20120
20121         unistr/u*-stpncpy: Fix the return value.
20122         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20123         description of the return value consistent with stpncpy in glibc.
20124         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20125         written non-NUL unit.
20126
20127 2010-01-10  Bruno Haible  <bruno@clisp.org>
20128
20129         unistr/u*-next: Add missing dependencies.
20130         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20131         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20132         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20133
20134 2010-01-10  Bruno Haible  <bruno@clisp.org>
20135
20136         unistr/u8-mbsnlen: Fix return value for incomplete character.
20137         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20138         u8_mblen.
20139         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20140         Remove unistr/u8-mblen.
20141         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20142         u16_mblen.
20143         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20144         Remove unistr/u16-mblen.
20145
20146 2010-01-10  Bruno Haible  <bruno@clisp.org>
20147
20148         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20149         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20150         Reported by Brian Gough <bjg@gnu.org> and
20151         Chris Clayton <chris2553@googlemail.com> via
20152         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20153
20154 2010-01-09  Bruno Haible  <bruno@clisp.org>
20155
20156         unistr/u16-to-u32: Reject invalid input.
20157         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20158         u16_mbtouc.
20159         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20160         Remove unistr/u16-mbtouc.
20161
20162         unistr/u16-to-u8: Reject invalid input.
20163         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20164         u16_mbtouc.
20165         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20166         Remove unistr/u16-mbtouc.
20167
20168         unistr/u8-to-u32: Reject invalid input.
20169         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20170         u8_mbtouc.
20171         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20172         Remove unistr/u8-mbtouc.
20173
20174         unistr/u8-to-u16: Reject invalid input.
20175         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20176         u8_mbtouc.
20177         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20178         Remove unistr/u8-mbtouc.
20179
20180 2010-01-09  Bruno Haible  <bruno@clisp.org>
20181
20182         Tests for module 'getlogin'.
20183         * modules/getlogin-tests: New file.
20184         * tests/test-getlogin.c: New file.
20185
20186         New module 'getlogin'.
20187         * lib/unistd.in.h (getlogin): New declaration.
20188         * lib/getlogin.c: New file.
20189         * m4/getlogin.m4: New file.
20190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20191         HAVE_GETLOGIN.
20192         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20193         HAVE_GETLOGIN.
20194         * modules/getlogin: New file.
20195         * doc/posix-functions/getlogin.texi: Mention the new module.
20196         Reported by John W. Eaton <jwe@gnu.org>.
20197
20198 2010-01-09  Bruno Haible  <bruno@clisp.org>
20199
20200         getlogin_r: Support for native Windows.
20201         * lib/getlogin_r.c: Include <windows.h>
20202         (getlogin_r): Implement for native Windows.
20203         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20204         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20205         via John W. Eaton <jwe@gnu.org>.
20206
20207 2010-01-09  Bruno Haible  <bruno@clisp.org>
20208
20209         getlogin_r: Small fixes.
20210         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20211         succeeds.
20212         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20213         before testing whether getlogin_r is declared. No need to set
20214         HAVE_DECL_GETLOGIN_R to 1.
20215         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20216
20217 2010-01-09  Bruno Haible  <bruno@clisp.org>
20218
20219         * lib/unistd.in.h (getlogin_r): Add comment.
20220
20221 2010-01-09  Bruno Haible  <bruno@clisp.org>
20222
20223         Tests for module 'getlogin_r'.
20224         * modules/getlogin_r-tests: New file.
20225         * tests/test-getlogin_r.c: New file.
20226
20227 2010-01-09  Jim Meyering  <meyering@redhat.com>
20228
20229         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20230         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20231         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20232
20233 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20234
20235         * lib/dup2.c (rpl_dup2): Improve comment.
20236
20237 2010-01-08  Eric Blake  <ebb9@byu.net>
20238
20239         maint.mk: allow packages to add makefile @@ exceptions
20240         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20241         (sc_makefile_check): Rename...
20242         (sc_makefile_at_at_check): ...to this, and use hook.
20243
20244         dup2: work around mingw bug
20245         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20246         Reported by Simon Josefsson.
20247
20248 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20249
20250         glob: Fix C++ compilation.
20251         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20252         C++.
20253
20254 2010-01-07  Bruno Haible  <bruno@clisp.org>
20255
20256         Fix indentation of wctype.in.h, broken since 2007-01-06.
20257         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20258
20259 2010-01-07  Bruno Haible  <bruno@clisp.org>
20260
20261         mbslen: Avoid collision with system function.
20262         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20263         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20264         * m4/mbslen.m4: New file.
20265         * modules/mbslen (Files): Add it.
20266         (configure.ac): Invoke gl_MBSLEN.
20267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20268         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20269         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20270         via Ian Beckwith <ianb@erislabs.net>.
20271
20272 2010-01-07  Bruno Haible  <bruno@clisp.org>
20273
20274         dirent: Document the last fix.
20275         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20276
20277 2010-01-07  Bruno Haible  <bruno@clisp.org>
20278
20279         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20280         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20281         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20282         va_list are defined.
20283         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20284         Reported by Eric Blake.
20285
20286 2010-01-07  Bruno Haible  <bruno@clisp.org>
20287
20288         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20289         * modules/xlist (Depends-on): Add 'list',
20290         * modules/xoset (Depends-on): Add 'oset'.
20291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20292
20293 2010-01-07  Bruno Haible  <bruno@clisp.org>
20294
20295         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20296         * doc/posix-functions/strncasecmp.texi: Likewise.
20297
20298 2010-01-07  Bruno Haible  <bruno@clisp.org>
20299
20300         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20301
20302 2010-01-07  John W. Eaton  <jwe@octave.org>
20303
20304         wctype: allow C++ use
20305         * lib/wctype.in.h: Add extern "C" block for C++.
20306
20307 2010-01-06  Eric Blake  <ebb9@byu.net>
20308
20309         maint.mk: detect incorrect GFDL usage
20310         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20311
20312 2010-01-06  Jim Meyering  <meyering@redhat.com>
20313         and Eric Blake  <ebb9@byu.net>
20314
20315         maint.mk: ignore multi-line copyright in NEWS
20316         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20317
20318 2010-01-06  Eric Blake  <ebb9@byu.net>
20319
20320         select: add missing dependency
20321         * modules/select-tests (Depends-on): Move sockets dependency...
20322         * modules/select (Depends-on): ...here.
20323         Reported by Ian Beckwith.
20324
20325         doc: regenerate INSTALL
20326         * doc/INSTALL: Reflect recent autoconf update.
20327         * doc/INSTALL.ISO: Likewise.
20328         * doc/INSTALL.UTF-8: Likewise.
20329
20330         pread: fix compilation on glibc
20331         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20332         Reported by Ralf Wildenhues.
20333
20334         dirent: fix test failure
20335         * lib/dirent.in.h (includes): Guarantee ino_t.
20336         Reported by Ralf Wildenhues.
20337
20338 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20339
20340         linkat, renameat: avoid bad free
20341         * lib/at-func2.c (at_func2): Fix typo.
20342         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20343
20344 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20345
20346         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20347         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20348         to avoid failure of symlink test later.
20349
20350 2010-01-06  Eric Blake  <ebb9@byu.net>
20351
20352         stdio, unistd: guarantee ssize_t
20353         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20354         2008 are exposed when needed.
20355         * lib/stdio.in.h (includes): Likewise.
20356         Reported by Ralf Wildenhues.
20357
20358 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20359
20360         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20361         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20362         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20363
20364 2010-01-06  Jim Meyering  <meyering@redhat.com>
20365
20366         readtokens: this module *does* require xalloc.h
20367         It uses only functions that were omitted by the old syntax-check rule.
20368         * lib/readtokens.c: Include "xalloc.h" once again.
20369         * modules/readtokens (Depends-on): Add xalloc.
20370         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20371
20372 2010-01-05  Eric Blake  <ebb9@byu.net>
20373
20374         maint: support 'make announcement' from a VPATH build
20375         * top/maint.mk (announcement): Look for correct NEWS file.
20376
20377 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20378
20379         utimens (fdutimens): ignore a negative FD, per contract
20380         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20381         when we have a valid file descriptor.  Otherwise, using a brand
20382         new glibc (with just-patched futimens that now fails with EBADF)
20383         would cause this function to fail with ENOSYS.
20384         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20385         See also http://bugzilla.redhat.com/552320.
20386
20387 2010-01-05  Eric Blake  <ebb9@byu.net>
20388
20389         strcase: document what it provides
20390         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20391         gnulib module.
20392         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20393         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20394
20395 2010-01-05  Jim Meyering  <meyering@redhat.com>
20396
20397         maint: remove useless inclusions of "xalloc.h"
20398         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20399         * lib/readtokens.c: Likewise.
20400         * lib/same.c: Likewise.
20401         * modules/getloadavg (Depends-on): Remove xalloc.
20402         * modules/readtokens: Likewise.
20403         * modules/same: Likewise.
20404
20405         maint.mk: include 4 more function names in alloca.h-checking regexp
20406         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20407         regexp.  Before, we would give a false-positive (saying alloca.h
20408         is included unnecessarily) when the only uses involved omitted symbols.
20409
20410         xalloc.h: use consistent formatting
20411         * lib/xalloc.h: Move declarations to start in the first column.
20412
20413 2010-01-05  Eric Blake  <ebb9@byu.net>
20414
20415         mkdir: avoid xalloc
20416         * lib/mkdir.c (includes): Drop unused header.
20417         Reported by John W. Eaton.
20418
20419 2010-01-04  Jim Meyering  <meyering@redhat.com>
20420
20421         nl_langinfo: avoid configure-time syntax error
20422         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20423         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20424         the empty string.  Don't let that provoke a shell syntax error.
20425
20426         regcomp, regexec, fnmatch: avoid array bounds read error
20427         * lib/regcomp.c (build_equiv_class): From glibc:
20428         Use only the low 24 bits of a findidx return value as an index
20429         into the weights array.  Patch by Ulrich Drepper:
20430         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20431         * lib/regexec.c (check_node_accept_bytes): Likewise.
20432         * lib/fnmatch_loop.c (FCT): Likewise.
20433
20434         regcomp: skip collseq lookup when there are no rules
20435         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20436         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20437
20438         regcomp: recognize ill-formed { } expressions
20439         * lib/regcomp.c (parse_dup_op): From glibc:
20440         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20441
20442         regcomp: fix typo in comment
20443         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20444         s/satisfy/satisfies/.
20445
20446         regcomp: sync from glibc: remove dead store
20447         * lib/regcomp.c (duplicate_node_closure): Remove useless
20448         search_duplicated_node call and dead store.
20449
20450         regcomp: sync from glibc; always use nl_langinfo
20451         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20452         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20453         * modules/regex (Depends-on): Add nl_langinfo.
20454
20455 2010-01-04  Eric Blake  <ebb9@byu.net>
20456
20457         fdopendir: fix configure test
20458         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20459
20460 2010-01-01  Bruno Haible  <bruno@clisp.org>
20461
20462         wchar: Remove unused configure check.
20463         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20464
20465 2010-01-01  Eric Blake  <ebb9@byu.net>
20466
20467         headers: make check of system header explicit
20468         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20469         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20470         ourselves.
20471         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20473         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20474         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20475         internals.
20476         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20477         missing.
20478         Suggested by Bruno Haible.
20479
20480 2010-01-01  Jim Meyering  <meyering@redhat.com>
20481
20482         ChangeLog: tweak to eliminate unnecessary copyright line
20483         * ChangeLog: Remove a copyright line that was mistakenly updated
20484         by today's update-copyright run.  Reported by Eric Blake.
20485
20486         test-update-copyright: don't let envvar setting cause test failure
20487         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20488
20489 2010-01-01  Bruno Haible  <bruno@clisp.org>
20490
20491         localename: Avoid gcc warning.
20492         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20493         function if it is not used.
20494
20495 2010-01-01  Jim Meyering  <meyering@redhat.com>
20496
20497         update nearly all FSF copyright year lists to include 2010
20498         Use the same procedure as for 2009, outlined in
20499         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20500
20501         version-etc: set COPYRIGHT_YEAR to 2010
20502         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20503
20504 2009-12-31  Eric Blake  <ebb9@byu.net>
20505
20506         doc: correct availability of cygwin 1.5.x getopt
20507         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20508         variables.
20509         * doc/posix-functions/opterr.texi (opterr): Likewise.
20510         * doc/posix-functions/optind.texi (optind): Likewise.
20511         * doc/posix-functions/optopt.texi (optopt): Likewise.
20512         * doc/posix-functions/tzname.texi (tzname): Likewise.
20513
20514         openat: update maintainer
20515         * modules/openat (Maintainer): Add myself.
20516
20517         utimens: avoid shadowing warning
20518         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20519         buffers into one, to avoid shadowing, as well as avoiding a
20520         redundant stat.
20521         Reported by Jim Meyering.
20522
20523         test-dup2: avoid compiler warning
20524         * tests/test-dup2.c (is_inheritable): Only define if used.
20525
20526 2010-01-01  Bruno Haible  <bruno@clisp.org>
20527
20528         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20529         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20530         defined, use wctomb instead of wcrtomb.
20531
20532 2010-01-01  Bruno Haible  <bruno@clisp.org>
20533
20534         iconv: Reject native Solaris iconv.
20535         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20536         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20537
20538 2009-12-31  Bruno Haible  <bruno@clisp.org>
20539
20540         * tests/test-signal.c (main): Remove test of 'SIG'.
20541
20542 2009-12-31  Bruno Haible  <bruno@clisp.org>
20543
20544         spawn: Fix incomplete fix.
20545         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20546         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20547         warnings for GNULIB_POSIXCHECK again.
20548         Reported by Eric Blake.
20549
20550 2009-12-31  Bruno Haible  <bruno@clisp.org>
20551
20552         Avoid namespace pollution on glibc systems.
20553         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20554         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20555         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20556         glibc systems.
20557
20558 2009-12-31  Bruno Haible  <bruno@clisp.org>
20559
20560         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20561         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20562         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20563         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20564         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20565         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20566         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20567
20568 2009-12-31  Bruno Haible  <bruno@clisp.org>
20569
20570         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20571         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20572         afterwards.
20573
20574 2009-12-31  Bruno Haible  <bruno@clisp.org>
20575
20576         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20577         SYS_UTSNAME_H.
20578
20579 2009-12-31  Bruno Haible  <bruno@clisp.org>
20580
20581         spawn: Fix misapplied patch.
20582         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20583         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20584         warnings for GNULIB_POSIXCHECK.
20585
20586 2009-12-31  Bruno Haible  <bruno@clisp.org>
20587
20588         times: Update after sys_times changed.
20589         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20590         * modules/times (Files): Add it.
20591         (configure.ac): Invoke gl_FUNC_TIMES.
20592
20593 2009-12-31  Bruno Haible  <bruno@clisp.org>
20594
20595         Use AC_C_INLINE where necessary.
20596         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20597         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20598         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20599         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20600         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20601         * m4/mbiter.m4 (gl_MBITER): Likewise.
20602         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20603         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20604         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20605         * modules/u64 (configure.ac): Likewise.
20606
20607 2009-12-31  Bruno Haible  <bruno@clisp.org>
20608
20609         Use AC_C_INLINE instead of module 'inline' where possible.
20610         * modules/inline (Description): Clarify purpose.
20611         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20612         * modules/count-one-bits (Depends-on): Remove inline.
20613         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20614         * modules/openat (Depends-on): Remove inline.
20615         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20616         instead of depending on module 'inline'.
20617         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20618         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20619         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20620         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20621         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20622         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20623         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20624         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20625         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20626         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20627         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20628         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20629         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20630         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20631         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20632         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20633         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20634         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20635         Likewise.
20636         * modules/unictype/property-ascii-hex-digit (Depends-on,
20637         configure.ac): Likewise.
20638         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20639         configure.ac): Likewise.
20640         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20641         configure.ac): Likewise.
20642         * modules/unictype/property-bidi-block-separator (Depends-on,
20643         configure.ac): Likewise.
20644         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20645         configure.ac): Likewise.
20646         * modules/unictype/property-bidi-common-separator (Depends-on,
20647         configure.ac): Likewise.
20648         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20649         Likewise.
20650         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20651         configure.ac): Likewise.
20652         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20653         configure.ac): Likewise.
20654         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20655         configure.ac): Likewise.
20656         * modules/unictype/property-bidi-european-digit (Depends-on,
20657         configure.ac): Likewise.
20658         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20659         configure.ac): Likewise.
20660         * modules/unictype/property-bidi-left-to-right (Depends-on,
20661         configure.ac): Likewise.
20662         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20663         configure.ac): Likewise.
20664         * modules/unictype/property-bidi-other-neutral (Depends-on,
20665         configure.ac): Likewise.
20666         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20667         Likewise.
20668         * modules/unictype/property-bidi-segment-separator (Depends-on,
20669         configure.ac): Likewise.
20670         * modules/unictype/property-bidi-whitespace (Depends-on,
20671         configure.ac): Likewise.
20672         * modules/unictype/property-combining (Depends-on, configure.ac):
20673         Likewise.
20674         * modules/unictype/property-composite (Depends-on, configure.ac):
20675         Likewise.
20676         * modules/unictype/property-currency-symbol (Depends-on,
20677         configure.ac): Likewise.
20678         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20679         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20680         Likewise.
20681         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20682         configure.ac): Likewise.
20683         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20684         Likewise.
20685         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20686         Likewise.
20687         * modules/unictype/property-extender (Depends-on, configure.ac):
20688         Likewise.
20689         * modules/unictype/property-format-control (Depends-on, configure.ac):
20690         Likewise.
20691         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20692         Likewise.
20693         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20694         Likewise.
20695         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20696         Likewise.
20697         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20698         Likewise.
20699         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20700         Likewise.
20701         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20702         Likewise.
20703         * modules/unictype/property-id-start (Depends-on, configure.ac):
20704         Likewise.
20705         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20706         Likewise.
20707         * modules/unictype/property-ids-binary-operator (Depends-on,
20708         configure.ac): Likewise.
20709         * modules/unictype/property-ids-trinary-operator (Depends-on,
20710         configure.ac): Likewise.
20711         * modules/unictype/property-ignorable-control (Depends-on,
20712         configure.ac): Likewise.
20713         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20714         Likewise.
20715         * modules/unictype/property-join-control (Depends-on, configure.ac):
20716         Likewise.
20717         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20718         Likewise.
20719         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20720         Likewise.
20721         * modules/unictype/property-logical-order-exception (Depends-on,
20722         configure.ac): Likewise.
20723         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20724         Likewise.
20725         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20726         * modules/unictype/property-non-break (Depends-on, configure.ac):
20727         Likewise.
20728         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20729         Likewise.
20730         * modules/unictype/property-numeric (Depends-on, configure.ac):
20731         Likewise.
20732         * modules/unictype/property-other-alphabetic (Depends-on,
20733         configure.ac): Likewise.
20734         * modules/unictype/property-other-default-ignorable-code-point
20735         (Depends-on, configure.ac): Likewise.
20736         * modules/unictype/property-other-grapheme-extend (Depends-on,
20737         configure.ac): Likewise.
20738         * modules/unictype/property-other-id-continue (Depends-on,
20739         configure.ac): Likewise.
20740         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20741         Likewise.
20742         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20743         Likewise.
20744         * modules/unictype/property-other-math (Depends-on, configure.ac):
20745         Likewise.
20746         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20747         Likewise.
20748         * modules/unictype/property-paired-punctuation (Depends-on,
20749         configure.ac): Likewise.
20750         * modules/unictype/property-paragraph-separator (Depends-on,
20751         configure.ac): Likewise.
20752         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20753         Likewise.
20754         * modules/unictype/property-pattern-white-space (Depends-on,
20755         configure.ac): Likewise.
20756         * modules/unictype/property-private-use (Depends-on, configure.ac):
20757         Likewise.
20758         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20759         Likewise.
20760         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20761         Likewise.
20762         * modules/unictype/property-radical (Depends-on, configure.ac):
20763         Likewise.
20764         * modules/unictype/property-sentence-terminal (Depends-on,
20765         configure.ac): Likewise.
20766         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20767         Likewise.
20768         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20769         * modules/unictype/property-terminal-punctuation (Depends-on,
20770         configure.ac): Likewise.
20771         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20772         Likewise.
20773         * modules/unictype/property-unassigned-code-value (Depends-on,
20774         configure.ac): Likewise.
20775         * modules/unictype/property-unified-ideograph (Depends-on,
20776         configure.ac): Likewise.
20777         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20778         Likewise.
20779         * modules/unictype/property-variation-selector (Depends-on,
20780         configure.ac): Likewise.
20781         * modules/unictype/property-white-space (Depends-on, configure.ac):
20782         Likewise.
20783         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20784         Likewise.
20785         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20786         Likewise.
20787         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20788         Likewise.
20789         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20790         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20791         Likewise.
20792
20793 2009-12-31  Bruno Haible  <bruno@clisp.org>
20794
20795         Remove unnecessary AC_C_INLINE invocation.
20796         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20797         since 2009-08-21.
20798
20799 2009-12-31  Jim Meyering  <meyering@redhat.com>
20800
20801         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20802         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20803         With this change, we can all remove the gpg_key_ID = ... definition
20804         from our respective cfg.mk files.
20805
20806         maint.mk: create announcement template in ~/, not in /tmp
20807         * top/maint.mk (emit_upload_commands): Adjust.
20808         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20809         Remove temporary file, .ci-msg.
20810
20811 2009-12-31  Eric Blake  <ebb9@byu.net>
20812
20813         link-warning: always build headers with link warnings
20814         * modules/arpa_inet (Makefile.am): Always build replacement
20815         header.
20816         * modules/ctype (Makefile.am): Likewise.
20817         * modules/dirent (Makefile.am): Likewise.
20818         * modules/inttypes (Makefile.am): Likewise.
20819         * modules/langinfo (Makefile.am): Likewise.
20820         * modules/locale (Makefile.am): Likewise.
20821         * modules/spawn (Makefile.am): Likewise.
20822         * modules/sys_file (Makefile.am): Likewise.
20823         * modules/sys_ioctl (Makefile.am): Likewise.
20824         * modules/sys_select (Makefile.am): Likewise.
20825         * modules/sys_socket (Makefile.am): Likewise.
20826         * modules/sys_times (Makefile.am): Likewise.
20827         * modules/sys_utsname (Makefile.am): Likewise.
20828         * modules/sys_wait (Makefile.am): Likewise.
20829         * modules/wchar (Makefile.am): Likewise.
20830         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20831         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20832         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20833         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20834         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20835         Likewise.
20836         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20837         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20838         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20839         Likewise.
20840         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20841         Likewise.
20842         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20843         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20844         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20845         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20846         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20847         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20848         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20849         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20850         (gl_WCHAR_H_DEFAULTS): Likewise.
20851
20852 2009-12-31  Eric Blake  <ebb9@byu.net>
20853
20854         signal, spawn: use link warnings
20855         * lib/signal.in.h (sigset_t): Make unconditional.
20856         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20857         (sigpending, sigprocmask, sigaction): Add link warnings.
20858         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20859         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20860         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20861         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20862         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20863         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20864         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20865         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20866         (posix_spawn_file_actions_destroy)
20867         (posix_spawn_file_actions_addopen)
20868         (posix_spawn_file_actions_addclose)
20869         (posix_spawn_file_actions_adddup2): Likewise.
20870         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20871         * tests/test-signal.c (main): Enhance test.
20872
20873         spawn: improve wrapper support
20874         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20875         (gl_SPAWN_H_DEFAULTS): New defaults.
20876         * modules/spawn (Makefile.am): Substitute them.
20877         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20878         Only declare if missing or broken.
20879
20880         sys_times, sys_utsname: use include_next
20881         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20882         header.
20883         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20884         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20885         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20886         * modules/sys_times (Depends-on): Add include_next.
20887         (Makefile.am): Substitute additional values.
20888         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20889         * lib/sys_times.in.h (includes): Include native header, if
20890         available.
20891         * lib/sys_utsname.in.h (includes): Likewise.
20892         * tests/test-sys_times.c (main): Enhance test.
20893
20894         fdutimensat: revert prior patch
20895         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20896         utimens.h.
20897         Reported by Bruno Haible.
20898
20899 2009-12-30  Eric Blake  <ebb9@byu.net>
20900
20901         sys_wait: drop link-warning dependency
20902         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20903         link-warning efforts.
20904         * lib/sys_wait.in.h: Likewise.
20905
20906         fdutimensat: remove bogus dependency
20907         * modules/fdutimensat (Depends-on): Drop inline.
20908
20909         unistd: fix typo
20910         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20911
20912 2009-12-30  Bruno Haible  <bruno@clisp.org>
20913
20914         Fix compilation error with Solaris cc.
20915         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20916         * lib/unicase/u16-is-invariant.c: Likewise.
20917         * lib/unicase/u32-is-invariant.c: Likewise.
20918         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20919
20920 2009-12-30  Bruno Haible  <bruno@clisp.org>
20921
20922         Fix test crash.
20923         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20924         locales.
20925         Reported by Simon Josefsson <simon@josefsson.org>.
20926
20927 2009-12-30  Bruno Haible  <bruno@clisp.org>
20928
20929         Fix compilation error on most platforms.
20930         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20931         Reported by Simon Josefsson <simon@josefsson.org>
20932         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20933
20934 2009-12-30  Eric Blake  <ebb9@byu.net>
20935
20936         futimens, utimensat: work around ntfs-3g bug
20937         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20938         a ctime bug is present, and expand workaround to cover ntfs-3g.
20939         * lib/utimens.c (fdutimens, lutimens): Likewise.
20940         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20941         (validate_timespec): Adjust return value.
20942         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20943         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20944         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20945
20946 2009-12-29  Eric Blake  <ebb9@byu.net>
20947
20948         link-warning: make usage consistent
20949         * modules/ctype (Depends-on): Add link-warning.
20950         (Makefile.am): Update rules accordingly.
20951         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20952         * modules/locale (Depends-on, Makefile.am): Likewise.
20953         * modules/sys_file (Makefile.am): Likewise.
20954         * modules/getopt-posix (Makefile.am): Delete unused link warning
20955         efforts.
20956         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20957         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20958         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20959         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20960
20961         stdio: remove unused variables
20962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20963         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20964         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20965
20966         tests: test more substitute headers
20967         * modules/ctype-tests: New file.
20968         * modules/dirent-tests: Likewise.
20969         * modules/spawn-tests: Likewise.
20970         * modules/sys_file-tests: Likewise.
20971         * modules/sys_ioctl-tests: Likewise.
20972         * modules/sys_wait-tests: Likewise.
20973         * tests/test-ctype.c: Likewise.
20974         * tests/test-dirent.c: Likewise.
20975         * tests/test-spawn.c: Likewise.
20976         * tests/test-sys_file.c: Likewise.
20977         * tests/test-sys_ioctl.c: Likewise.
20978         * tests/test-sys_wait.c: Likewise.
20979         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20980         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20981         whether or not flock is in use.
20982
20983         tests: remove License section from module
20984         * modules/arpa_inet-tests: Remove unneeded section.
20985         * modules/byteswap-tests: Likewise.
20986         * modules/ceilf-tests: Likewise.
20987         * modules/ceill-tests: Likewise.
20988         * modules/crypto/des-tests: Likewise.
20989         * modules/crypto/gc-arcfour-tests: Likewise.
20990         * modules/crypto/gc-arctwo-tests: Likewise.
20991         * modules/crypto/gc-des-tests: Likewise.
20992         * modules/crypto/gc-hmac-md5-tests: Likewise.
20993         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20994         * modules/crypto/gc-md2-tests: Likewise.
20995         * modules/crypto/gc-md4-tests: Likewise.
20996         * modules/crypto/gc-md5-tests: Likewise.
20997         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20998         * modules/crypto/gc-rijndael-tests: Likewise.
20999         * modules/crypto/gc-sha1-tests: Likewise.
21000         * modules/crypto/gc-tests: Likewise.
21001         * modules/crypto/md2-tests: Likewise.
21002         * modules/crypto/md4-tests: Likewise.
21003         * modules/fcntl-h-tests: Likewise.
21004         * modules/floorf-tests: Likewise.
21005         * modules/floorl-tests: Likewise.
21006         * modules/frexp-nolibm-tests: Likewise.
21007         * modules/frexp-tests: Likewise.
21008         * modules/frexpl-nolibm-tests: Likewise.
21009         * modules/frexpl-tests: Likewise.
21010         * modules/getaddrinfo-tests: Likewise.
21011         * modules/inttypes-tests: Likewise.
21012         * modules/isfinite-tests: Likewise.
21013         * modules/isinf-tests: Likewise.
21014         * modules/ldexpl-tests: Likewise.
21015         * modules/locale-tests: Likewise.
21016         * modules/math-tests: Likewise.
21017         * modules/netdb-tests: Likewise.
21018         * modules/netinet_in-tests: Likewise.
21019         * modules/printf-frexp-tests: Likewise.
21020         * modules/printf-frexpl-tests: Likewise.
21021         * modules/priv-set-tests: Likewise.
21022         * modules/random_r-tests: Likewise.
21023         * modules/round-tests: Likewise.
21024         * modules/roundf-tests: Likewise.
21025         * modules/roundl-tests: Likewise.
21026         * modules/search-tests: Likewise.
21027         * modules/select-tests: Likewise.
21028         * modules/signal-tests: Likewise.
21029         * modules/stdbool-tests: Likewise.
21030         * modules/stddef-tests: Likewise.
21031         * modules/stdint-tests: Likewise.
21032         * modules/stdio-tests: Likewise.
21033         * modules/stdlib-tests: Likewise.
21034         * modules/string-tests: Likewise.
21035         * modules/strings-tests: Likewise.
21036         * modules/sys_select-tests: Likewise.
21037         * modules/sys_socket-tests: Likewise.
21038         * modules/sys_stat-tests: Likewise.
21039         * modules/sys_time-tests: Likewise.
21040         * modules/sys_utsname-tests: Likewise.
21041         * modules/sysexits-tests: Likewise.
21042         * modules/time-tests: Likewise.
21043         * modules/trunc-tests: Likewise.
21044         * modules/truncf-tests: Likewise.
21045         * modules/truncl-tests: Likewise.
21046         * modules/tsearch-tests: Likewise.
21047         * modules/unistd-tests: Likewise.
21048         * modules/wchar-tests: Likewise.
21049         * modules/wctype-tests: Likewise.
21050
21051         tests: fix license on several tests
21052         * tests/test-des.c: Update to GPLv3+.
21053         * tests/test-flock.c: Likewise.
21054         * tests/test-fsync.c: Likewise.
21055         * tests/test-futimens.h: Likewise.
21056         * tests/test-gc-arcfour.c: Likewise.
21057         * tests/test-gc-arctwo.c: Likewise.
21058         * tests/test-gc-des.c: Likewise.
21059         * tests/test-gc-hmac-md5.c: Likewise.
21060         * tests/test-gc-hmac-sha1.c: Likewise.
21061         * tests/test-gc-md2.c: Likewise.
21062         * tests/test-gc-md4.c: Likewise.
21063         * tests/test-gc-md5.c: Likewise.
21064         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21065         * tests/test-gc-rijndael.c: Likewise.
21066         * tests/test-gc-sha1.c: Likewise.
21067         * tests/test-gc.c: Likewise.
21068         * tests/test-getcwd.c: Likewise.
21069         * tests/test-link.c: Likewise.
21070         * tests/test-link.h: Likewise.
21071         * tests/test-lutimens.h: Likewise.
21072         * tests/test-md2.c: Likewise.
21073         * tests/test-md4.c: Likewise.
21074         * tests/test-mkdir.h: Likewise.
21075         * tests/test-rename.c: Likewise.
21076         * tests/test-rename.h: Likewise.
21077         * tests/test-safe-alloc.c: Likewise.
21078         * tests/test-utimens-common.h: Likewise.
21079         * tests/test-utimens.h: Likewise.
21080
21081         maint: sync license texts
21082         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21083         * doc/gpl-3.0.texi: Revert copyright year update.
21084         * doc/lgpl-3.0.texi: Likewise.
21085
21086 2009-12-29  Jim Meyering  <meyering@redhat.com>
21087
21088         update nearly all FSF copyright year lists to include 2009
21089         The files named by the following are exempted:
21090             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21091               test -f "$dst" && { echo "$dst"; continue; }
21092               test -d "$dst" || continue
21093               echo "$dst"/$(basename "$src")
21094             done > exempt
21095             git ls-files tests/unictype >> exempt
21096         In the remaining files, convert to all-interval notation if
21097         - there is already at least one year interval like 2000-2003
21098         - the file is maintained by me
21099         - the file is in lib/uni*/, where that style already prevails
21100         Otherwise, use update-copyright's default.
21101
21102 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21103         and Eric Blake  <ebb9@byu.net>
21104
21105         tests: don't require debug system() to pass
21106         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21107         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21108         * tests/test-unlink.h (test_unlink_func): Likewise.
21109         * tests/test-fstatat.c (main): ...into callers.
21110         * tests/test-lstat.c (main): Likewise.
21111         * tests/test-rmdir.c (main): Likewise.
21112         * tests/test-unlink.c (main): Likewise.
21113         * tests/test-unlinkat.c (main): Likewise.
21114         * tests/test-areadlink-with-size.c (main): Don't require a
21115         debug-only system call to pass, aiding cross-testing to mingw.
21116         * tests/test-areadlink.c (main): Likewise.
21117         * tests/test-areadlinkat-with-size.c (main): Likewise.
21118         * tests/test-areadlinkat.c (main): Likewise.
21119         * tests/test-canonicalize-lgpl.c (main): Likewise.
21120         * tests/test-canonicalize.c (main): Likewise.
21121         * tests/test-chown.c (main): Likewise.
21122         * tests/test-fchownat.c (main): Likewise.
21123         * tests/test-lchown.c (main): Likewise.
21124         * tests/test-fdutimensat.c (main): Likewise.
21125         * tests/test-futimens.c (main): Likewise.
21126         * tests/test-link.c (main): Likewise.
21127         * tests/test-linkat.c (main): Likewise.
21128         * tests/test-mkdir.c (main): Likewise.
21129         * tests/test-mkdirat.c (main): Likewise.
21130         * tests/test-mkfifo.c (main): Likewise.
21131         * tests/test-mkfifoat.c (main): Likewise.
21132         * tests/test-mknod.c (main): Likewise.
21133         * tests/test-readlink.c (main): Likewise.
21134         * tests/test-remove.c (main): Likewise.
21135         * tests/test-rename.c (main): Likewise.
21136         * tests/test-renameat.c (main): Likewise.
21137         * tests/test-symlink.c (main): Likewise.
21138         * tests/test-symlinkat.c (main): Likewise.
21139         * tests/test-utimens.c (main): Likewise.
21140         * tests/test-utimensat.c (main): Likewise.
21141
21142 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21143
21144         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21145         on $(UNUSED_PARAMETER_H) to avoid build failure.
21146
21147 2009-12-28  Jim Meyering  <meyering@redhat.com>
21148
21149         update-copyright: you may specify a max. line length other than 72
21150         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21151
21152         maint: use consistent FSF copyright line syntax
21153         * lib/posixtm.c: Add missing comma in FSF copyright line.
21154         * lib/posixtm.h: Likewise.
21155         * lib/getugroups.c: Add missing ", Inc.".
21156
21157         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21158         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21159         FSF copyright line.  Remove trailing blanks.
21160
21161 2009-12-28  Eric Blake  <ebb9@byu.net>
21162
21163         test-dup2: reduce dependencies
21164         * modules/cloexec (Configure.ac): Set witness.
21165         * modules/dup2-tests (Depends-on): Drop cloexec.
21166         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21167         not present.
21168         Suggested by Bruno Haible.
21169
21170 2009-12-26  Bruno Haible  <bruno@clisp.org>
21171
21172         Remove an unneeded dependency.
21173         * modules/fseterr (Depends-on): Remove dup2.
21174
21175 2009-12-26  Eric Blake  <ebb9@byu.net>
21176
21177         tests: use macros.h in more places
21178         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21179         (ASSERT_STREAM): Provide default of stderr.
21180         * tests/test-dirent-safer.c: Include macros.h, using alternate
21181         stream for assertions.
21182         * tests/test-dup-safer.c: Likewise.
21183         * tests/test-freopen-safer.c: Likewise.
21184         * tests/test-getopt.c: Likewise.
21185         * tests/test-openat-safer.c: Likewise.
21186         * tests/test-pipe.c: Likewise.
21187         * tests/test-popen-safer.c: Likewise.
21188         * modules/dirent-safer-tests (Files): Include macros.h.
21189         * modules/unistd-safer-tests (Files): Likewise.
21190         * modules/freopen-safer-tests (Files): Likewise.
21191         * modules/getopt-posix-tests (Files): Likewise.
21192         * modules/openat-safer-tests (Files): Likewise.
21193         * modules/pipe-tests (Files): Likewise.
21194
21195 2009-12-26  Bruno Haible  <bruno@clisp.org>
21196
21197         javacomp: Portability fix.
21198         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21199         that it also works on Solaris.
21200
21201 2009-12-26  Bruno Haible  <bruno@clisp.org>
21202
21203         localename: Fix storage allocation of gl_locale_name_thread's result.
21204         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21205         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21206         all platforms that have 'uselocale'.
21207         (gl_locale_name_thread_unsafe): New function, extracted from
21208         gl_locale_name_thread.
21209         (gl_locale_name_thread): Call struniq on all platforms that have
21210         'uselocale'.
21211         * tests/test-localename.c (test_locale_name_thread): Check that the
21212         resulting strings are permanently allocated.
21213         * modules/localename-tests (Depends-on): Add strdup.
21214
21215 2009-12-26  Bruno Haible  <bruno@clisp.org>
21216
21217         * tests/test-localename.c (categories): Fill in the strings.
21218
21219 2009-12-26  Jim Meyering  <meyering@redhat.com>
21220
21221         isdir: complete the removal of m4/isdir.m4
21222         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21223
21224         isdir: clean up, since at least grep still uses it
21225         * lib/isdir.c: Include "isdir.h".
21226         (S_ISDIR): Remove now-unneeded definition.
21227         * modules/isdir (Files): Add lib/isdir.h.
21228         * lib/isdir.h: New file, with declaration.
21229         * m4/isdir.m4: Remove file -- unneeded.
21230
21231 2009-12-25  Bruno Haible  <bruno@clisp.org>
21232
21233         selinux-h: Make generated .h files standalone.
21234         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21235         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21236         * lib/se-selinux.in.h: Likewise.
21237         * modules/selinux-h (Depends-on): Add unused-parameter.
21238         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21239         selinux/selinux.h and selinux/context.h.
21240         Suggested by Eric Blake.
21241
21242 2009-12-25  Bruno Haible  <bruno@clisp.org>
21243
21244         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21245         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21246         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21247         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21248         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21249
21250 2009-12-24  Bruno Haible  <bruno@clisp.org>
21251
21252         openat: Fix warning.
21253         * lib/openat-proc.c: Include <unistd.h>.
21254
21255 2009-12-24  Bruno Haible  <bruno@clisp.org>
21256
21257         New module 'unused-parameter'.
21258         * build-aux/unused-parameter.h: New file, extracted from earlier
21259         gnulib-common.m4.
21260         * modules/unused-parameter: New file.
21261         * lib/unistr.h: Include unused-parameter.h.
21262         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21263         _GL_UNUSED.
21264         * modules/unistr/base (Depends-on): Add unused-parameter.
21265
21266 2009-12-24  Bruno Haible  <bruno@clisp.org>
21267
21268         Add missing dependencies to 'extensions' module.
21269         * m4/extensions.m4: Add comment.
21270         * modules/accept4 (Depends-on): Add extensions.
21271         * modules/dup3 (Depends-on): Likewise.
21272         * modules/fcntl (Depends-on): Likewise.
21273         * modules/futimens (Depends-on): Likewise.
21274         * modules/mknod (Depends-on): Likewise.
21275         * modules/pipe2 (Depends-on): Likewise.
21276         * modules/stat-time (Depends-on): Likewise.
21277         * modules/strcasestr-simple (Depends-on): Likewise.
21278         * modules/strsignal (Depends-on): Likewise.
21279         * modules/utimensat (Depends-on): Likewise.
21280         * modules/localcharset (Depends-on): Likewise. Needed because of
21281         gl_FCNTL_O_FLAGS.
21282         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21283         AC_TYPE_MBSTATE_T.
21284         * modules/wcsnrtombs (Depends-on): Likewise.
21285         * modules/wcsrtombs (Depends-on): Likewise.
21286
21287 2009-12-24  Bruno Haible  <bruno@clisp.org>
21288
21289         binary-io: Avoid gcc warning due to SET_BINARY.
21290         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21291         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21292
21293 2009-12-24  Bruno Haible  <bruno@clisp.org>
21294
21295         Avoid future namespace pollution on glibc systems.
21296         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21297         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21298         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21299         glibc systems.
21300
21301 2009-12-24  Bruno Haible  <bruno@clisp.org>
21302
21303         Refactor common macros used in tests.
21304         * tests/macros.h: New file.
21305         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21306         and/or <stdlib.h>, if appropriate.
21307         (ASSERT, SIZEOF): Remove macros.
21308         * tests/test-areadlink-with-size.c: Likewise.
21309         * tests/test-areadlinkat.c: Likewise.
21310         * tests/test-areadlinkat-with-size.c: Likewise.
21311         * tests/test-argmatch.c: Likewise.
21312         * tests/test-argv-iter.c: Likewise.
21313         * tests/test-array-mergesort.c: Likewise.
21314         * tests/test-array_list.c: Likewise.
21315         * tests/test-array_oset.c: Likewise.
21316         * tests/test-avltree_list.c: Likewise.
21317         * tests/test-avltree_oset.c: Likewise.
21318         * tests/test-avltreehash_list.c: Likewise.
21319         * tests/test-base64.c: Likewise.
21320         * tests/test-binary-io.c: Likewise.
21321         * tests/test-bitrotate.c: Likewise.
21322         * tests/test-btowc.c: Likewise.
21323         * tests/test-byteswap.c: Likewise.
21324         * tests/test-c-ctype.c: Likewise.
21325         * tests/test-c-stack.c: Likewise.
21326         * tests/test-c-strcasecmp.c: Likewise.
21327         * tests/test-c-strcasestr.c: Likewise.
21328         * tests/test-c-strncasecmp.c: Likewise.
21329         * tests/test-c-strstr.c: Likewise.
21330         * tests/test-canonicalize-lgpl.c: Likewise.
21331         * tests/test-canonicalize.c: Likewise.
21332         * tests/test-carray_list.c: Likewise.
21333         * tests/test-ceilf1.c: Likewise.
21334         * tests/test-ceilf2.c: Likewise.
21335         * tests/test-ceill.c: Likewise.
21336         * tests/test-chown.c: Likewise.
21337         * tests/test-cloexec.c: Likewise.
21338         * tests/test-copy-acl.c: Likewise.
21339         * tests/test-copy-file.c: Likewise.
21340         * tests/test-count-one-bits.c: Likewise.
21341         * tests/test-dprintf-posix.c: Likewise.
21342         * tests/test-dup2.c: Likewise.
21343         * tests/test-dup3.c: Likewise.
21344         * tests/test-duplocale.c: Likewise.
21345         * tests/test-fbufmode.c: Likewise.
21346         * tests/test-fchdir.c: Likewise.
21347         * tests/test-fchownat.c: Likewise.
21348         * tests/test-fcntl-safer.c: Likewise.
21349         * tests/test-fcntl.c: Likewise.
21350         * tests/test-fdopendir.c: Likewise.
21351         * tests/test-fdutimensat.c: Likewise.
21352         * tests/test-fflush2.c: Likewise.
21353         * tests/test-file-has-acl.c: Likewise.
21354         * tests/test-filevercmp.c: Likewise.
21355         * tests/test-flock.c: Likewise.
21356         * tests/test-floorf1.c: Likewise.
21357         * tests/test-floorf2.c: Likewise.
21358         * tests/test-floorl.c: Likewise.
21359         * tests/test-fnmatch.c: Likewise.
21360         * tests/test-fopen.h: Likewise.
21361         * tests/test-fpending.c: Likewise.
21362         * tests/test-fprintf-posix.c: Likewise.
21363         * tests/test-fpurge.c: Likewise.
21364         * tests/test-freadable.c: Likewise.
21365         * tests/test-freadahead.c: Likewise.
21366         * tests/test-freading.c: Likewise.
21367         * tests/test-freadptr.c: Likewise.
21368         * tests/test-freadptr2.c: Likewise.
21369         * tests/test-freadseek.c: Likewise.
21370         * tests/test-freopen.c: Likewise.
21371         * tests/test-frexp.c: Likewise.
21372         * tests/test-frexpl.c: Likewise.
21373         * tests/test-fseek.c: Likewise.
21374         * tests/test-fseeko.c: Likewise.
21375         * tests/test-fstatat.c: Likewise.
21376         * tests/test-fstrcmp.c: Likewise.
21377         * tests/test-fsync.c: Likewise.
21378         * tests/test-ftell.c: Likewise.
21379         * tests/test-ftello.c: Likewise.
21380         * tests/test-func.c: Likewise.
21381         * tests/test-futimens.c: Likewise.
21382         * tests/test-fwritable.c: Likewise.
21383         * tests/test-fwriting.c: Likewise.
21384         * tests/test-getcwd.c: Likewise.
21385         * tests/test-getdate.c: Likewise.
21386         * tests/test-getdelim.c: Likewise.
21387         * tests/test-getdtablesize.c: Likewise.
21388         * tests/test-getgroups.c: Likewise.
21389         * tests/test-getline.c: Likewise.
21390         * tests/test-getndelim2.c: Likewise.
21391         * tests/test-glob.c: Likewise.
21392         * tests/test-hash.c: Likewise.
21393         * tests/test-i-ring.c: Likewise.
21394         * tests/test-iconv-utf.c: Likewise.
21395         * tests/test-iconv.c: Likewise.
21396         * tests/test-idpriv-drop.c: Likewise.
21397         * tests/test-idpriv-droptemp.c: Likewise.
21398         * tests/test-inet_ntop.c: Likewise.
21399         * tests/test-inet_pton.c: Likewise.
21400         * tests/test-isblank.c: Likewise.
21401         * tests/test-isfinite.c: Likewise.
21402         * tests/test-isinf.c: Likewise.
21403         * tests/test-isnan.c: Likewise.
21404         * tests/test-isnand.h: Likewise.
21405         * tests/test-isnanf.h: Likewise.
21406         * tests/test-isnanl.h: Likewise.
21407         * tests/test-lchown.c: Likewise.
21408         * tests/test-ldexpl.c: Likewise.
21409         * tests/test-link.c: Likewise.
21410         * tests/test-linkat.c: Likewise.
21411         * tests/test-linked_list.c: Likewise.
21412         * tests/test-linkedhash_list.c: Likewise.
21413         * tests/test-localename.c: Likewise.
21414         * tests/test-lseek.c: Likewise.
21415         * tests/test-lstat.c: Likewise.
21416         * tests/test-mbmemcasecmp.c: Likewise.
21417         * tests/test-mbmemcasecoll.c: Likewise.
21418         * tests/test-mbrtowc.c: Likewise.
21419         * tests/test-mbscasecmp.c: Likewise.
21420         * tests/test-mbscasestr1.c: Likewise.
21421         * tests/test-mbscasestr2.c: Likewise.
21422         * tests/test-mbscasestr3.c: Likewise.
21423         * tests/test-mbscasestr4.c: Likewise.
21424         * tests/test-mbschr.c: Likewise.
21425         * tests/test-mbscspn.c: Likewise.
21426         * tests/test-mbsinit.c: Likewise.
21427         * tests/test-mbsncasecmp.c: Likewise.
21428         * tests/test-mbsnrtowcs.c: Likewise.
21429         * tests/test-mbspbrk.c: Likewise.
21430         * tests/test-mbspcasecmp.c: Likewise.
21431         * tests/test-mbsrchr.c: Likewise.
21432         * tests/test-mbsrtowcs.c: Likewise.
21433         * tests/test-mbsspn.c: Likewise.
21434         * tests/test-mbsstr1.c: Likewise.
21435         * tests/test-mbsstr2.c: Likewise.
21436         * tests/test-mbsstr3.c: Likewise.
21437         * tests/test-memchr.c: Likewise.
21438         * tests/test-memchr2.c: Likewise.
21439         * tests/test-memcmp.c: Likewise.
21440         * tests/test-memmem.c: Likewise.
21441         * tests/test-memrchr.c: Likewise.
21442         * tests/test-mkdir.c: Likewise.
21443         * tests/test-mkdirat.c: Likewise.
21444         * tests/test-mkfifo.c: Likewise.
21445         * tests/test-mkfifoat.c: Likewise.
21446         * tests/test-mknod.c: Likewise.
21447         * tests/test-nanosleep.c: Likewise.
21448         * tests/test-nl_langinfo.c: Likewise.
21449         * tests/test-obstack-printf.c: Likewise.
21450         * tests/test-open.c: Likewise.
21451         * tests/test-openat.c: Likewise.
21452         * tests/test-pipe-filter-gi1.c: Likewise.
21453         * tests/test-pipe-filter-gi2-main.c: Likewise.
21454         * tests/test-pipe-filter-ii1.c: Likewise.
21455         * tests/test-pipe-filter-ii2-main.c: Likewise.
21456         * tests/test-pipe2.c: Likewise.
21457         * tests/test-popen.h: Likewise.
21458         * tests/test-posixtm.c: Likewise.
21459         * tests/test-pread.c: Likewise.
21460         * tests/test-printf-frexp.c: Likewise.
21461         * tests/test-printf-frexpl.c: Likewise.
21462         * tests/test-printf-posix.c: Likewise.
21463         * tests/test-priv-set.c: Likewise.
21464         * tests/test-quotearg.c: Likewise.
21465         * tests/test-random_r.c: Likewise.
21466         * tests/test-rawmemchr.c: Likewise.
21467         * tests/test-rbtree_list.c: Likewise.
21468         * tests/test-rbtree_oset.c: Likewise.
21469         * tests/test-rbtreehash_list.c: Likewise.
21470         * tests/test-readlink.c: Likewise.
21471         * tests/test-remove.c: Likewise.
21472         * tests/test-rename.c: Likewise.
21473         * tests/test-renameat.c: Likewise.
21474         * tests/test-rmdir.c: Likewise.
21475         * tests/test-round1.c: Likewise.
21476         * tests/test-roundf1.c: Likewise.
21477         * tests/test-roundl.c: Likewise.
21478         * tests/test-safe-alloc.c: Likewise.
21479         * tests/test-sameacls.c: Likewise.
21480         * tests/test-set-mode-acl.c: Likewise.
21481         * tests/test-setenv.c: Likewise.
21482         * tests/test-sigaction.c: Likewise.
21483         * tests/test-signbit.c: Likewise.
21484         * tests/test-sleep.c: Likewise.
21485         * tests/test-snprintf-posix.c: Likewise.
21486         * tests/test-snprintf.c: Likewise.
21487         * tests/test-sprintf-posix.c: Likewise.
21488         * tests/test-stat-time.c: Likewise.
21489         * tests/test-stat.c: Likewise.
21490         * tests/test-strcasestr.c: Likewise.
21491         * tests/test-strchrnul.c: Likewise.
21492         * tests/test-strerror.c: Likewise.
21493         * tests/test-striconv.c: Likewise.
21494         * tests/test-striconveh.c: Likewise.
21495         * tests/test-striconveha.c: Likewise.
21496         * tests/test-strsignal.c: Likewise.
21497         * tests/test-strstr.c: Likewise.
21498         * tests/test-strtod.c: Likewise.
21499         * tests/test-strverscmp.c: Likewise.
21500         * tests/test-symlink.c: Likewise.
21501         * tests/test-symlinkat.c: Likewise.
21502         * tests/test-trunc1.c: Likewise.
21503         * tests/test-trunc2.c: Likewise.
21504         * tests/test-truncf1.c: Likewise.
21505         * tests/test-truncf2.c: Likewise.
21506         * tests/test-truncl.c: Likewise.
21507         * tests/test-uname.c: Likewise.
21508         * tests/test-unlink.c: Likewise.
21509         * tests/test-unlinkat.c: Likewise.
21510         * tests/test-unsetenv.c: Likewise.
21511         * tests/test-usleep.c: Likewise.
21512         * tests/test-utimens.c: Likewise.
21513         * tests/test-utimensat.c: Likewise.
21514         * tests/test-vasnprintf-posix.c: Likewise.
21515         * tests/test-vasnprintf-posix2.c: Likewise.
21516         * tests/test-vasnprintf.c: Likewise.
21517         * tests/test-vasprintf-posix.c: Likewise.
21518         * tests/test-vasprintf.c: Likewise.
21519         * tests/test-vdprintf-posix.c: Likewise.
21520         * tests/test-vfprintf-posix.c: Likewise.
21521         * tests/test-vprintf-posix.c: Likewise.
21522         * tests/test-vsnprintf-posix.c: Likewise.
21523         * tests/test-vsnprintf.c: Likewise.
21524         * tests/test-vsprintf-posix.c: Likewise.
21525         * tests/test-wcrtomb.c: Likewise.
21526         * tests/test-wcsnrtombs.c: Likewise.
21527         * tests/test-wcsrtombs.c: Likewise.
21528         * tests/test-wctype.c: Likewise.
21529         * tests/test-wcwidth.c: Likewise.
21530         * tests/test-xfprintf-posix.c: Likewise.
21531         * tests/test-xmemdup0.c: Likewise.
21532         * tests/test-xprintf-posix.c: Likewise.
21533         * tests/test-xvasprintf.c: Likewise.
21534         * tests/unicase/test-locale-language.c: Likewise.
21535         * tests/unicase/test-mapping-part1.h: Likewise.
21536         * tests/unicase/test-predicate-part1.h: Likewise.
21537         * tests/unicase/test-u8-casecmp.c: Likewise.
21538         * tests/unicase/test-u8-casecoll.c: Likewise.
21539         * tests/unicase/test-u8-casefold.c: Likewise.
21540         * tests/unicase/test-u8-is-cased.c: Likewise.
21541         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21542         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21543         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21544         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21545         * tests/unicase/test-u8-tolower.c: Likewise.
21546         * tests/unicase/test-u8-totitle.c: Likewise.
21547         * tests/unicase/test-u8-toupper.c: Likewise.
21548         * tests/unicase/test-u16-casecmp.c: Likewise.
21549         * tests/unicase/test-u16-casecoll.c: Likewise.
21550         * tests/unicase/test-u16-casefold.c: Likewise.
21551         * tests/unicase/test-u16-is-cased.c: Likewise.
21552         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21553         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21554         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21555         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21556         * tests/unicase/test-u16-tolower.c: Likewise.
21557         * tests/unicase/test-u16-totitle.c: Likewise.
21558         * tests/unicase/test-u16-toupper.c: Likewise.
21559         * tests/unicase/test-u32-casecmp.c: Likewise.
21560         * tests/unicase/test-u32-casecoll.c: Likewise.
21561         * tests/unicase/test-u32-casefold.c: Likewise.
21562         * tests/unicase/test-u32-is-cased.c: Likewise.
21563         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21564         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21565         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21566         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21567         * tests/unicase/test-u32-tolower.c: Likewise.
21568         * tests/unicase/test-u32-totitle.c: Likewise.
21569         * tests/unicase/test-u32-toupper.c: Likewise.
21570         * tests/unicase/test-ulc-casecmp.c: Likewise.
21571         * tests/unicase/test-ulc-casecoll.c: Likewise.
21572         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21573         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21574         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21575         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21576         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21577         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21578         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21579         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21580         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21581         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21582         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21583         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21584         * tests/unictype/test-bidi_byname.c: Likewise.
21585         * tests/unictype/test-bidi_name.c: Likewise.
21586         * tests/unictype/test-bidi_of.c: Likewise.
21587         * tests/unictype/test-bidi_test.c: Likewise.
21588         * tests/unictype/test-block_list.c: Likewise.
21589         * tests/unictype/test-block_of.c: Likewise.
21590         * tests/unictype/test-block_test.c: Likewise.
21591         * tests/unictype/test-categ_and.c: Likewise.
21592         * tests/unictype/test-categ_and_not.c: Likewise.
21593         * tests/unictype/test-categ_byname.c: Likewise.
21594         * tests/unictype/test-categ_name.c: Likewise.
21595         * tests/unictype/test-categ_none.c: Likewise.
21596         * tests/unictype/test-categ_of.c: Likewise.
21597         * tests/unictype/test-categ_or.c: Likewise.
21598         * tests/unictype/test-categ_test_withtable.c: Likewise.
21599         * tests/unictype/test-combining.c: Likewise.
21600         * tests/unictype/test-decdigit.c: Likewise.
21601         * tests/unictype/test-digit.c: Likewise.
21602         * tests/unictype/test-mirror.c: Likewise.
21603         * tests/unictype/test-numeric.c: Likewise.
21604         * tests/unictype/test-pr_byname.c: Likewise.
21605         * tests/unictype/test-pr_test.c: Likewise.
21606         * tests/unictype/test-predicate-part1.h: Likewise.
21607         * tests/unictype/test-scripts.c: Likewise.
21608         * tests/unictype/test-sy_c_ident.c: Likewise.
21609         * tests/unictype/test-sy_java_ident.c: Likewise.
21610         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21611         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21612         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21613         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21614         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21615         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21616         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21617         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21618         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21619         * tests/uninorm/test-compat-decomposition.c: Likewise.
21620         * tests/uninorm/test-composition.c: Likewise.
21621         * tests/uninorm/test-decomposing-form.c: Likewise.
21622         * tests/uninorm/test-decomposition.c: Likewise.
21623         * tests/uninorm/test-u8-nfc.c: Likewise.
21624         * tests/uninorm/test-u8-nfd.c: Likewise.
21625         * tests/uninorm/test-u8-nfkc.c: Likewise.
21626         * tests/uninorm/test-u8-nfkd.c: Likewise.
21627         * tests/uninorm/test-u8-normcmp.c: Likewise.
21628         * tests/uninorm/test-u8-normcoll.c: Likewise.
21629         * tests/uninorm/test-u16-nfc.c: Likewise.
21630         * tests/uninorm/test-u16-nfd.c: Likewise.
21631         * tests/uninorm/test-u16-nfkc.c: Likewise.
21632         * tests/uninorm/test-u16-nfkd.c: Likewise.
21633         * tests/uninorm/test-u16-normcmp.c: Likewise.
21634         * tests/uninorm/test-u16-normcoll.c: Likewise.
21635         * tests/uninorm/test-u32-nfc.c: Likewise.
21636         * tests/uninorm/test-u32-nfd.c: Likewise.
21637         * tests/uninorm/test-u32-nfkc.c: Likewise.
21638         * tests/uninorm/test-u32-nfkd.c: Likewise.
21639         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21640         * tests/uninorm/test-u32-normcmp.c: Likewise.
21641         * tests/uninorm/test-u32-normcoll.c: Likewise.
21642         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21643         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21644         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21645         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21646         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21647         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21648         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21649         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21650         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21651         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21652         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21653         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21654         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21655         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21656         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21657         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21658         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21659         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21660         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21661         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21662         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21663         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21664         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21665         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21666         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21667         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21668         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21669         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21670         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21671         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21672         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21673         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21674         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21675         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21676         * tests/uniwidth/test-u8-width.c: Likewise.
21677         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21678         * tests/uniwidth/test-u16-width.c: Likewise.
21679         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21680         * tests/uniwidth/test-u32-width.c: Likewise.
21681         * tests/uniwidth/test-uc_width.c: Likewise.
21682         * tests/uniwidth/test-uc_width2.c: Likewise.
21683         * modules/acl-tests (Files): Add tests/macros.h.
21684         * modules/areadlink-tests (Files): Likewise.
21685         * modules/areadlink-with-size-tests (Files): Likewise.
21686         * modules/areadlinkat-tests (Files): Likewise.
21687         * modules/areadlinkat-with-size-tests (Files): Likewise.
21688         * modules/argmatch-tests (Files): Likewise.
21689         * modules/argv-iter-tests (Files): Likewise.
21690         * modules/array-list-tests (Files): Likewise.
21691         * modules/array-mergesort-tests (Files): Likewise.
21692         * modules/array-oset-tests (Files): Likewise.
21693         * modules/avltree-list-tests (Files): Likewise.
21694         * modules/avltree-oset-tests (Files): Likewise.
21695         * modules/avltreehash-list-tests (Files): Likewise.
21696         * modules/base64-tests (Files): Likewise.
21697         * modules/binary-io-tests (Files): Likewise.
21698         * modules/bitrotate-tests (Files): Likewise.
21699         * modules/btowc-tests (Files): Likewise.
21700         * modules/byteswap-tests (Files): Likewise.
21701         * modules/c-ctype-tests (Files): Likewise.
21702         * modules/c-stack-tests (Files): Likewise.
21703         * modules/c-strcase-tests (Files): Likewise.
21704         * modules/c-strcasestr-tests (Files): Likewise.
21705         * modules/c-strstr-tests (Files): Likewise.
21706         * modules/canonicalize-lgpl-tests (Files): Likewise.
21707         * modules/canonicalize-tests (Files): Likewise.
21708         * modules/carray-list-tests (Files): Likewise.
21709         * modules/ceilf-tests (Files): Likewise.
21710         * modules/ceill-tests (Files): Likewise.
21711         * modules/chown-tests (Files): Likewise.
21712         * modules/cloexec-tests (Files): Likewise.
21713         * modules/copy-file-tests (Files): Likewise.
21714         * modules/count-one-bits-tests (Files): Likewise.
21715         * modules/dprintf-posix-tests (Files): Likewise.
21716         * modules/dup2-tests (Files): Likewise.
21717         * modules/dup3-tests (Files): Likewise.
21718         * modules/duplocale-tests (Files): Likewise.
21719         * modules/fbufmode-tests (Files): Likewise.
21720         * modules/fchdir-tests (Files): Likewise.
21721         * modules/fcntl-safer-tests (Files): Likewise.
21722         * modules/fcntl-tests (Files): Likewise.
21723         * modules/fdopendir-tests (Files): Likewise.
21724         * modules/fdutimensat-tests (Files): Likewise.
21725         * modules/fflush-tests (Files): Likewise.
21726         * modules/filevercmp-tests (Files): Likewise.
21727         * modules/flock-tests (Files): Likewise.
21728         * modules/floorf-tests (Files): Likewise.
21729         * modules/floorl-tests (Files): Likewise.
21730         * modules/fnmatch-tests (Files): Likewise.
21731         * modules/fopen-safer-tests (Files): Likewise.
21732         * modules/fopen-tests (Files): Likewise.
21733         * modules/fpending-tests (Files): Likewise.
21734         * modules/fprintf-posix-tests (Files): Likewise.
21735         * modules/fpurge-tests (Files): Likewise.
21736         * modules/freadable-tests (Files): Likewise.
21737         * modules/freadahead-tests (Files): Likewise.
21738         * modules/freading-tests (Files): Likewise.
21739         * modules/freadptr-tests (Files): Likewise.
21740         * modules/freadseek-tests (Files): Likewise.
21741         * modules/freopen-tests (Files): Likewise.
21742         * modules/frexp-nolibm-tests (Files): Likewise.
21743         * modules/frexp-tests (Files): Likewise.
21744         * modules/frexpl-nolibm-tests (Files): Likewise.
21745         * modules/frexpl-tests (Files): Likewise.
21746         * modules/fseek-tests (Files): Likewise.
21747         * modules/fseeko-tests (Files): Likewise.
21748         * modules/fstrcmp-tests (Files): Likewise.
21749         * modules/fsync-tests (Files): Likewise.
21750         * modules/ftell-tests (Files): Likewise.
21751         * modules/ftello-tests (Files): Likewise.
21752         * modules/func-tests (Files): Likewise.
21753         * modules/futimens-tests (Files): Likewise.
21754         * modules/fwritable-tests (Files): Likewise.
21755         * modules/fwriting-tests (Files): Likewise.
21756         * modules/getcwd-tests (Files): Likewise.
21757         * modules/getdate-tests (Files): Likewise.
21758         * modules/getdelim-tests (Files): Likewise.
21759         * modules/getdtablesize-tests (Files): Likewise.
21760         * modules/getgroups-tests (Files): Likewise.
21761         * modules/getline-tests (Files): Likewise.
21762         * modules/getndelim2-tests (Files): Likewise.
21763         * modules/glob-tests (Files): Likewise.
21764         * modules/hash-tests (Files): Likewise.
21765         * modules/i-ring-tests (Files): Likewise.
21766         * modules/iconv-tests (Files): Likewise.
21767         * modules/iconv_open-utf-tests (Files): Likewise.
21768         * modules/idpriv-drop-tests (Files): Likewise.
21769         * modules/idpriv-droptemp-tests (Files): Likewise.
21770         * modules/inet_ntop-tests (Files): Likewise.
21771         * modules/inet_pton-tests (Files): Likewise.
21772         * modules/isblank-tests (Files): Likewise.
21773         * modules/isfinite-tests (Files): Likewise.
21774         * modules/isinf-tests (Files): Likewise.
21775         * modules/isnan-tests (Files): Likewise.
21776         * modules/isnand-nolibm-tests (Files): Likewise.
21777         * modules/isnand-tests (Files): Likewise.
21778         * modules/isnanf-nolibm-tests (Files): Likewise.
21779         * modules/isnanf-tests (Files): Likewise.
21780         * modules/isnanl-nolibm-tests (Files): Likewise.
21781         * modules/isnanl-tests (Files): Likewise.
21782         * modules/lchown-tests (Files): Likewise.
21783         * modules/ldexpl-tests (Files): Likewise.
21784         * modules/link-tests (Files): Likewise.
21785         * modules/linkat-tests (Files): Likewise.
21786         * modules/linked-list-tests (Files): Likewise.
21787         * modules/linkedhash-list-tests (Files): Likewise.
21788         * modules/localename-tests (Files): Likewise.
21789         * modules/lseek-tests (Files): Likewise.
21790         * modules/lstat-tests (Files): Likewise.
21791         * modules/mbmemcasecmp-tests (Files): Likewise.
21792         * modules/mbmemcasecoll-tests (Files): Likewise.
21793         * modules/mbrtowc-tests (Files): Likewise.
21794         * modules/mbscasecmp-tests (Files): Likewise.
21795         * modules/mbscasestr-tests (Files): Likewise.
21796         * modules/mbschr-tests (Files): Likewise.
21797         * modules/mbscspn-tests (Files): Likewise.
21798         * modules/mbsinit-tests (Files): Likewise.
21799         * modules/mbsncasecmp-tests (Files): Likewise.
21800         * modules/mbsnrtowcs-tests (Files): Likewise.
21801         * modules/mbspbrk-tests (Files): Likewise.
21802         * modules/mbspcasecmp-tests (Files): Likewise.
21803         * modules/mbsrchr-tests (Files): Likewise.
21804         * modules/mbsrtowcs-tests (Files): Likewise.
21805         * modules/mbsspn-tests (Files): Likewise.
21806         * modules/mbsstr-tests (Files): Likewise.
21807         * modules/memchr-tests (Files): Likewise.
21808         * modules/memchr2-tests (Files): Likewise.
21809         * modules/memcmp-tests (Files): Likewise.
21810         * modules/memmem-tests (Files): Likewise.
21811         * modules/memrchr-tests (Files): Likewise.
21812         * modules/mkdir-tests (Files): Likewise.
21813         * modules/mkfifo-tests (Files): Likewise.
21814         * modules/mkfifoat-tests (Files): Likewise.
21815         * modules/mknod-tests (Files): Likewise.
21816         * modules/nanosleep-tests (Files): Likewise.
21817         * modules/nl_langinfo-tests (Files): Likewise.
21818         * modules/obstack-printf-tests (Files): Likewise.
21819         * modules/open-tests (Files): Likewise.
21820         * modules/openat-tests (Files): Likewise.
21821         * modules/pipe-filter-gi-tests (Files): Likewise.
21822         * modules/pipe-filter-ii-tests (Files): Likewise.
21823         * modules/pipe2-tests (Files): Likewise.
21824         * modules/popen-safer-tests (Files): Likewise.
21825         * modules/popen-tests (Files): Likewise.
21826         * modules/posixtm-tests (Files): Likewise.
21827         * modules/pread-tests (Files): Likewise.
21828         * modules/printf-frexp-tests (Files): Likewise.
21829         * modules/printf-frexpl-tests (Files): Likewise.
21830         * modules/printf-posix-tests (Files): Likewise.
21831         * modules/priv-set-tests (Files): Likewise.
21832         * modules/quotearg-tests (Files): Likewise.
21833         * modules/random_r-tests (Files): Likewise.
21834         * modules/rawmemchr-tests (Files): Likewise.
21835         * modules/rbtree-list-tests (Files): Likewise.
21836         * modules/rbtree-oset-tests (Files): Likewise.
21837         * modules/rbtreehash-list-tests (Files): Likewise.
21838         * modules/readlink-tests (Files): Likewise.
21839         * modules/remove-tests (Files): Likewise.
21840         * modules/rename-tests (Files): Likewise.
21841         * modules/renameat-tests (Files): Likewise.
21842         * modules/rmdir-tests (Files): Likewise.
21843         * modules/round-tests (Files): Likewise.
21844         * modules/roundf-tests (Files): Likewise.
21845         * modules/roundl-tests (Files): Likewise.
21846         * modules/safe-alloc-tests (Files): Likewise.
21847         * modules/setenv-tests (Files): Likewise.
21848         * modules/sigaction-tests (Files): Likewise.
21849         * modules/signbit-tests (Files): Likewise.
21850         * modules/sleep-tests (Files): Likewise.
21851         * modules/snprintf-posix-tests (Files): Likewise.
21852         * modules/snprintf-tests (Files): Likewise.
21853         * modules/sprintf-posix-tests (Files): Likewise.
21854         * modules/stat-tests (Files): Likewise.
21855         * modules/stat-time-tests (Files): Likewise.
21856         * modules/strcasestr-tests (Files): Likewise.
21857         * modules/strchrnul-tests (Files): Likewise.
21858         * modules/strerror-tests (Files): Likewise.
21859         * modules/striconv-tests (Files): Likewise.
21860         * modules/striconveh-tests (Files): Likewise.
21861         * modules/striconveha-tests (Files): Likewise.
21862         * modules/strsignal-tests (Files): Likewise.
21863         * modules/strstr-tests (Files): Likewise.
21864         * modules/strtod-tests (Files): Likewise.
21865         * modules/strverscmp-tests (Files): Likewise.
21866         * modules/symlink-tests (Files): Likewise.
21867         * modules/symlinkat-tests (Files): Likewise.
21868         * modules/trunc-tests (Files): Likewise.
21869         * modules/truncf-tests (Files): Likewise.
21870         * modules/truncl-tests (Files): Likewise.
21871         * modules/uname-tests (Files): Likewise.
21872         * modules/unicase/cased-tests (Files): Likewise.
21873         * modules/unicase/ignorable-tests (Files): Likewise.
21874         * modules/unicase/locale-language-tests (Files): Likewise.
21875         * modules/unicase/tolower-tests (Files): Likewise.
21876         * modules/unicase/totitle-tests (Files): Likewise.
21877         * modules/unicase/toupper-tests (Files): Likewise.
21878         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21879         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21880         * modules/unicase/u8-casefold-tests (Files): Likewise.
21881         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21882         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21883         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21884         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21885         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21886         * modules/unicase/u8-tolower-tests (Files): Likewise.
21887         * modules/unicase/u8-totitle-tests (Files): Likewise.
21888         * modules/unicase/u8-toupper-tests (Files): Likewise.
21889         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21890         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21891         * modules/unicase/u16-casefold-tests (Files): Likewise.
21892         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21893         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21894         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21895         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21896         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21897         * modules/unicase/u16-tolower-tests (Files): Likewise.
21898         * modules/unicase/u16-totitle-tests (Files): Likewise.
21899         * modules/unicase/u16-toupper-tests (Files): Likewise.
21900         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21901         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21902         * modules/unicase/u32-casefold-tests (Files): Likewise.
21903         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21904         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21905         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21906         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21907         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21908         * modules/unicase/u32-tolower-tests (Files): Likewise.
21909         * modules/unicase/u32-totitle-tests (Files): Likewise.
21910         * modules/unicase/u32-toupper-tests (Files): Likewise.
21911         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21912         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21913         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21914         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21915         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21916         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21917         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21918         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21919         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21920         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21921         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21922         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21923         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21924         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21925         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21926         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21927         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21928         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21929         * modules/unictype/block-list-tests (Files): Likewise.
21930         * modules/unictype/block-of-tests (Files): Likewise.
21931         * modules/unictype/block-test-tests (Files): Likewise.
21932         * modules/unictype/category-C-tests (Files): Likewise.
21933         * modules/unictype/category-Cc-tests (Files): Likewise.
21934         * modules/unictype/category-Cf-tests (Files): Likewise.
21935         * modules/unictype/category-Cn-tests (Files): Likewise.
21936         * modules/unictype/category-Co-tests (Files): Likewise.
21937         * modules/unictype/category-Cs-tests (Files): Likewise.
21938         * modules/unictype/category-L-tests (Files): Likewise.
21939         * modules/unictype/category-Ll-tests (Files): Likewise.
21940         * modules/unictype/category-Lm-tests (Files): Likewise.
21941         * modules/unictype/category-Lo-tests (Files): Likewise.
21942         * modules/unictype/category-Lt-tests (Files): Likewise.
21943         * modules/unictype/category-Lu-tests (Files): Likewise.
21944         * modules/unictype/category-M-tests (Files): Likewise.
21945         * modules/unictype/category-Mc-tests (Files): Likewise.
21946         * modules/unictype/category-Me-tests (Files): Likewise.
21947         * modules/unictype/category-Mn-tests (Files): Likewise.
21948         * modules/unictype/category-N-tests (Files): Likewise.
21949         * modules/unictype/category-Nd-tests (Files): Likewise.
21950         * modules/unictype/category-Nl-tests (Files): Likewise.
21951         * modules/unictype/category-No-tests (Files): Likewise.
21952         * modules/unictype/category-P-tests (Files): Likewise.
21953         * modules/unictype/category-Pc-tests (Files): Likewise.
21954         * modules/unictype/category-Pd-tests (Files): Likewise.
21955         * modules/unictype/category-Pe-tests (Files): Likewise.
21956         * modules/unictype/category-Pf-tests (Files): Likewise.
21957         * modules/unictype/category-Pi-tests (Files): Likewise.
21958         * modules/unictype/category-Po-tests (Files): Likewise.
21959         * modules/unictype/category-Ps-tests (Files): Likewise.
21960         * modules/unictype/category-S-tests (Files): Likewise.
21961         * modules/unictype/category-Sc-tests (Files): Likewise.
21962         * modules/unictype/category-Sk-tests (Files): Likewise.
21963         * modules/unictype/category-Sm-tests (Files): Likewise.
21964         * modules/unictype/category-So-tests (Files): Likewise.
21965         * modules/unictype/category-Z-tests (Files): Likewise.
21966         * modules/unictype/category-Zl-tests (Files): Likewise.
21967         * modules/unictype/category-Zp-tests (Files): Likewise.
21968         * modules/unictype/category-Zs-tests (Files): Likewise.
21969         * modules/unictype/category-and-not-tests (Files): Likewise.
21970         * modules/unictype/category-and-tests (Files): Likewise.
21971         * modules/unictype/category-byname-tests (Files): Likewise.
21972         * modules/unictype/category-name-tests (Files): Likewise.
21973         * modules/unictype/category-none-tests (Files): Likewise.
21974         * modules/unictype/category-of-tests (Files): Likewise.
21975         * modules/unictype/category-or-tests (Files): Likewise.
21976         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21977         * modules/unictype/combining-class-tests (Files): Likewise.
21978         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21979         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21980         * modules/unictype/ctype-blank-tests (Files): Likewise.
21981         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21982         * modules/unictype/ctype-digit-tests (Files): Likewise.
21983         * modules/unictype/ctype-graph-tests (Files): Likewise.
21984         * modules/unictype/ctype-lower-tests (Files): Likewise.
21985         * modules/unictype/ctype-print-tests (Files): Likewise.
21986         * modules/unictype/ctype-punct-tests (Files): Likewise.
21987         * modules/unictype/ctype-space-tests (Files): Likewise.
21988         * modules/unictype/ctype-upper-tests (Files): Likewise.
21989         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21990         * modules/unictype/decimal-digit-tests (Files): Likewise.
21991         * modules/unictype/digit-tests (Files): Likewise.
21992         * modules/unictype/mirror-tests (Files): Likewise.
21993         * modules/unictype/numeric-tests (Files): Likewise.
21994         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21995         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21996         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21997         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21998         Likewise.
21999         * modules/unictype/property-bidi-block-separator-tests (Files):
22000         Likewise.
22001         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22002         Likewise.
22003         * modules/unictype/property-bidi-common-separator-tests (Files):
22004         Likewise.
22005         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22006         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22007         Likewise.
22008         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22009         Likewise.
22010         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22011         Likewise.
22012         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22013         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22014         Likewise.
22015         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22016         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22017         Likewise.
22018         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22019         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22020         * modules/unictype/property-bidi-segment-separator-tests (Files):
22021         Likewise.
22022         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22023         * modules/unictype/property-byname-tests (Files): Likewise.
22024         * modules/unictype/property-combining-tests (Files): Likewise.
22025         * modules/unictype/property-composite-tests (Files): Likewise.
22026         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22027         * modules/unictype/property-dash-tests (Files): Likewise.
22028         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22029         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22030         Likewise.
22031         * modules/unictype/property-deprecated-tests (Files): Likewise.
22032         * modules/unictype/property-diacritic-tests (Files): Likewise.
22033         * modules/unictype/property-extender-tests (Files): Likewise.
22034         * modules/unictype/property-format-control-tests (Files): Likewise.
22035         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22036         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22037         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22038         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22039         * modules/unictype/property-hyphen-tests (Files): Likewise.
22040         * modules/unictype/property-id-continue-tests (Files): Likewise.
22041         * modules/unictype/property-id-start-tests (Files): Likewise.
22042         * modules/unictype/property-ideographic-tests (Files): Likewise.
22043         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22044         * modules/unictype/property-ids-trinary-operator-tests (Files):
22045         Likewise.
22046         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22047         * modules/unictype/property-iso-control-tests (Files): Likewise.
22048         * modules/unictype/property-join-control-tests (Files): Likewise.
22049         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22050         * modules/unictype/property-line-separator-tests (Files): Likewise.
22051         * modules/unictype/property-logical-order-exception-tests (Files):
22052         Likewise.
22053         * modules/unictype/property-lowercase-tests (Files): Likewise.
22054         * modules/unictype/property-math-tests (Files): Likewise.
22055         * modules/unictype/property-non-break-tests (Files): Likewise.
22056         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22057         * modules/unictype/property-numeric-tests (Files): Likewise.
22058         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22059         * modules/unictype/property-other-default-ignorable-code-point-tests
22060         (Files): Likewise.
22061         * modules/unictype/property-other-grapheme-extend-tests (Files):
22062         Likewise.
22063         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22064         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22065         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22066         * modules/unictype/property-other-math-tests (Files): Likewise.
22067         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22068         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22069         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22070         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22071         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22072         * modules/unictype/property-private-use-tests (Files): Likewise.
22073         * modules/unictype/property-punctuation-tests (Files): Likewise.
22074         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22075         * modules/unictype/property-radical-tests (Files): Likewise.
22076         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22077         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22078         * modules/unictype/property-space-tests (Files): Likewise.
22079         * modules/unictype/property-terminal-punctuation-tests (Files):
22080         Likewise.
22081         * modules/unictype/property-test-tests (Files): Likewise.
22082         * modules/unictype/property-titlecase-tests (Files): Likewise.
22083         * modules/unictype/property-unassigned-code-value-tests (Files):
22084         Likewise.
22085         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22086         * modules/unictype/property-uppercase-tests (Files): Likewise.
22087         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22088         * modules/unictype/property-white-space-tests (Files): Likewise.
22089         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22090         * modules/unictype/property-xid-start-tests (Files): Likewise.
22091         * modules/unictype/property-zero-width-tests (Files): Likewise.
22092         * modules/unictype/scripts-tests (Files): Likewise.
22093         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22094         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22095         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22096         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22097         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22098         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22099         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22100         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22101         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22102         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22103         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22104         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22105         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22106         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22107         * modules/uninorm/composition-tests (Files): Likewise.
22108         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22109         * modules/uninorm/decomposition-tests (Files): Likewise.
22110         * modules/uninorm/filter-tests (Files): Likewise.
22111         * modules/uninorm/nfc-tests (Files): Likewise.
22112         * modules/uninorm/nfd-tests (Files): Likewise.
22113         * modules/uninorm/nfkc-tests (Files): Likewise.
22114         * modules/uninorm/nfkd-tests (Files): Likewise.
22115         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22116         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22117         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22118         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22119         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22120         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22121         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22122         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22123         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22124         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22125         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22126         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22127         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22128         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22129         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22130         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22131         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22132         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22133         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22134         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22135         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22136         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22137         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22138         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22139         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22140         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22141         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22142         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22143         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22144         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22145         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22146         * modules/uniwidth/u8-width-tests (Files): Likewise.
22147         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22148         * modules/uniwidth/u16-width-tests (Files): Likewise.
22149         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22150         * modules/uniwidth/u32-width-tests (Files): Likewise.
22151         * modules/uniwidth/width-tests (Files): Likewise.
22152         * modules/unlink-tests (Files): Likewise.
22153         * modules/unsetenv-tests (Files): Likewise.
22154         * modules/usleep-tests (Files): Likewise.
22155         * modules/utimens-tests (Files): Likewise.
22156         * modules/utimensat-tests (Files): Likewise.
22157         * modules/vasnprintf-posix-tests (Files): Likewise.
22158         * modules/vasnprintf-tests (Files): Likewise.
22159         * modules/vasprintf-posix-tests (Files): Likewise.
22160         * modules/vasprintf-tests (Files): Likewise.
22161         * modules/vdprintf-posix-tests (Files): Likewise.
22162         * modules/vfprintf-posix-tests (Files): Likewise.
22163         * modules/vprintf-posix-tests (Files): Likewise.
22164         * modules/vsnprintf-posix-tests (Files): Likewise.
22165         * modules/vsnprintf-tests (Files): Likewise.
22166         * modules/vsprintf-posix-tests (Files): Likewise.
22167         * modules/wcrtomb-tests (Files): Likewise.
22168         * modules/wcsnrtombs-tests (Files): Likewise.
22169         * modules/wcsrtombs-tests (Files): Likewise.
22170         * modules/wctype-tests (Files): Likewise.
22171         * modules/wcwidth-tests (Files): Likewise.
22172         * modules/xmemdup0-tests (Files): Likewise.
22173         * modules/xprintf-posix-tests (Files): Likewise.
22174         * modules/xvasprintf-tests (Files): Likewise.
22175
22176 2009-12-24  Eric Blake  <ebb9@byu.net>
22177
22178         test-nanosleep: fix typo
22179         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22180         patch.
22181         Reported by Bruno Haible.
22182
22183 2009-12-24  Bruno Haible  <bruno@clisp.org>
22184
22185         Reduce namespace pollution on glibc systems.
22186         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22187         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22188         systems.
22189         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22190         <getopt.h> on glibc systems.
22191         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22192         systems.
22193         * lib/fcntl.c: Include <unistd.h> here instead.
22194
22195 2009-12-24  Bruno Haible  <bruno@clisp.org>
22196
22197         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22198
22199 2009-12-24  Eric Blake  <ebb9@byu.net>
22200
22201         tests: add signature checks
22202         * tests/signature.h (SIGNATURE_CHECK): New file.
22203         * modules/atexit-tests (Files): Use it.
22204         * modules/btowc-tests (Files): Likewise.
22205         * modules/canonicalize-lgpl-tests (Files): Likewise.
22206         * modules/ceilf-tests (Files): Likewise.
22207         * modules/ceill-tests (Files): Likewise.
22208         * modules/chown-tests (Files): Likewise.
22209         * modules/dprintf-posix-tests (Files): Likewise.
22210         * modules/dup2-tests (Files): Likewise.
22211         * modules/dup3-tests (Files): Likewise.
22212         * modules/duplocale-tests (Files): Likewise.
22213         * modules/fchdir-tests (Files): Likewise.
22214         * modules/fcntl-tests (Files): Likewise.
22215         * modules/fdopendir-tests (Files): Likewise.
22216         * modules/fflush-tests (Files): Likewise.
22217         * modules/flock-tests (Files): Likewise.
22218         * modules/floorf-tests (Files): Likewise.
22219         * modules/floorl-tests (Files): Likewise.
22220         * modules/fnmatch-tests (Files): Likewise.
22221         * modules/fopen-tests (Files): Likewise.
22222         * modules/fprintf-posix-tests (Files): Likewise.
22223         * modules/freopen-tests (Files): Likewise.
22224         * modules/frexp-nolibm-tests (Files): Likewise.
22225         * modules/frexp-tests (Files): Likewise.
22226         * modules/frexpl-nolibm-tests (Files): Likewise.
22227         * modules/frexpl-tests (Files): Likewise.
22228         * modules/fseek-tests (Files): Likewise.
22229         * modules/fseeko-tests (Files): Likewise.
22230         * modules/fsync-tests (Files): Likewise.
22231         * modules/ftell-tests (Files): Likewise.
22232         * modules/ftello-tests (Files): Likewise.
22233         * modules/futimens-tests (Files): Likewise.
22234         * modules/getaddrinfo-tests (Files): Likewise.
22235         * modules/getcwd-tests (Files): Likewise.
22236         * modules/getdelim-tests (Files): Likewise.
22237         * modules/getdtablesize-tests (Files): Likewise.
22238         * modules/getgroups-tests (Files): Likewise.
22239         * modules/gethostname-tests (Files): Likewise.
22240         * modules/getline-tests (Files): Likewise.
22241         * modules/getopt-posix-tests (Files): Likewise.
22242         * modules/gettimeofday-tests (Files): Likewise.
22243         * modules/glob-tests (Files): Likewise.
22244         * modules/iconv-tests (Files): Likewise.
22245         * modules/inet_ntop-tests (Files): Likewise.
22246         * modules/inet_pton-tests (Files): Likewise.
22247         * modules/isblank-tests (Files): Likewise.
22248         * modules/lchown-tests (Files): Likewise.
22249         * modules/ldexpl-tests (Files): Likewise.
22250         * modules/link-tests (Files): Likewise.
22251         * modules/linkat-tests (Files): Likewise.
22252         * modules/lseek-tests (Files): Likewise.
22253         * modules/lstat-tests (Files): Likewise.
22254         * modules/mbrtowc-tests (Files): Likewise.
22255         * modules/mbsinit-tests (Files): Likewise.
22256         * modules/mbsnrtowcs-tests (Files): Likewise.
22257         * modules/mbsrtowcs-tests (Files): Likewise.
22258         * modules/memchr-tests (Files): Likewise.
22259         * modules/memcmp-tests (Files): Likewise.
22260         * modules/memmem-tests (Files): Likewise.
22261         * modules/memrchr-tests (Files): Likewise.
22262         * modules/mkdir-tests (Files): Likewise.
22263         * modules/mkfifo-tests (Files): Likewise.
22264         * modules/mkfifoat-tests (Files): Likewise.
22265         * modules/mknod-tests (Files): Likewise.
22266         * modules/nanosleep-tests (Files): Likewise.
22267         * modules/nl_langinfo-tests (Files): Likewise.
22268         * modules/obstack-printf-tests (Files): Likewise.
22269         * modules/open-tests (Files): Likewise.
22270         * modules/openat-tests (Files): Likewise.
22271         * modules/perror-tests (Files): Likewise.
22272         * modules/pipe2-tests (Files): Likewise.
22273         * modules/poll-tests (Files): Likewise.
22274         * modules/popen-tests (Files): Likewise.
22275         * modules/posix_spawn-tests (Files): Likewise.
22276         * modules/posix_spawnp-tests (Files): Likewise.
22277         * modules/pread-tests (Files): Likewise.
22278         * modules/printf-posix-tests (Files): Likewise.
22279         * modules/pty-tests (Files): Likewise.
22280         * modules/random_r-tests (Files): Likewise.
22281         * modules/rawmemchr-tests (Files): Likewise.
22282         * modules/readlink-tests (Files): Likewise.
22283         * modules/remove-tests (Files): Likewise.
22284         * modules/rename-tests (Files): Likewise.
22285         * modules/renameat-tests (Files): Likewise.
22286         * modules/rmdir-tests (Files): Likewise.
22287         * modules/round-tests (Files): Likewise.
22288         * modules/roundf-tests (Files): Likewise.
22289         * modules/roundl-tests (Files): Likewise.
22290         * modules/select-tests (Files): Likewise.
22291         * modules/setenv-tests (Files): Likewise.
22292         * modules/sigaction-tests (Files): Likewise.
22293         * modules/sleep-tests (Files): Likewise.
22294         * modules/snprintf-posix-tests (Files): Likewise.
22295         * modules/snprintf-tests (Files): Likewise.
22296         * modules/sprintf-posix-tests (Files): Likewise.
22297         * modules/stat-tests (Files): Likewise.
22298         * modules/strcasestr-tests (Files): Likewise.
22299         * modules/strchrnul-tests (Files): Likewise.
22300         * modules/strerror-tests (Files): Likewise.
22301         * modules/strsignal-tests (Files): Likewise.
22302         * modules/strstr-tests (Files): Likewise.
22303         * modules/strtod-tests (Files): Likewise.
22304         * modules/strverscmp-tests (Files): Likewise.
22305         * modules/symlink-tests (Files): Likewise.
22306         * modules/symlinkat-tests (Files): Likewise.
22307         * modules/times-tests (Files): Likewise.
22308         * modules/trunc-tests (Files): Likewise.
22309         * modules/truncf-tests (Files): Likewise.
22310         * modules/truncl-tests (Files): Likewise.
22311         * modules/tsearch-tests (Files): Likewise.
22312         * modules/uname-tests (Files): Likewise.
22313         * modules/unlink-tests (Files): Likewise.
22314         * modules/unsetenv-tests (Files): Likewise.
22315         * modules/usleep-tests (Files): Likewise.
22316         * modules/utimensat-tests (Files): Likewise.
22317         * modules/vasprintf-tests (Files): Likewise.
22318         * modules/vdprintf-posix-tests (Files): Likewise.
22319         * modules/vfprintf-posix-tests (Files): Likewise.
22320         * modules/vprintf-posix-tests (Files): Likewise.
22321         * modules/vsnprintf-posix-tests (Files): Likewise.
22322         * modules/vsnprintf-tests (Files): Likewise.
22323         * modules/vsprintf-posix-tests (Files): Likewise.
22324         * modules/wcrtomb-tests (Files): Likewise.
22325         * modules/wcsnrtombs-tests (Files): Likewise.
22326         * modules/wcsrtombs-tests (Files): Likewise.
22327         * modules/wcwidth-tests (Files): Likewise.
22328         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22329         * tests/test-isinf.c (isinf): Likewise.
22330         * tests/test-isnan.c (isnan): Likewise.
22331         * tests/test-signbit.c (signbit): Likewise.
22332         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22333         declaration, either as macro or with correct signature.
22334         (select): Ensure function under test is declared with correct
22335         signature in correct header.
22336         * tests/test-atexit.c (atexit): Likewise.
22337         * tests/test-btowc.c (btowc): Likewise.
22338         * tests/test-canonicalize-lgpl.c (realpath)
22339         (canonicalize_file_name): Likewise.
22340         * tests/test-ceilf1.c (ceilf): Likewise.
22341         * tests/test-ceill.c (ceill): Likewise.
22342         * tests/test-chown.c (chown): Likewise.
22343         * tests/test-dprintf-posix.c (dprintf): Likewise.
22344         * tests/test-dup2.c (dup2): Likewise.
22345         * tests/test-dup3.c (dup3): Likewise.
22346         * tests/test-duplocale.c (duplocale): Likewise.
22347         * tests/test-fchdir.c (fchdir): Likewise.
22348         * tests/test-fchownat.c (fchownat): Likewise.
22349         * tests/test-fcntl.c (fcntl): Likewise.
22350         * tests/test-fdopendir.c (fdopendir): Likewise.
22351         * tests/test-fflush.c (fflush): Likewise.
22352         * tests/test-flock.c (flock): Likewise.
22353         * tests/test-floorf1.c (floorf): Likewise.
22354         * tests/test-floorl.c (floorl): Likewise.
22355         * tests/test-fnmatch.c (fnmatch): Likewise.
22356         * tests/test-fopen.c (fopen): Likewise.
22357         * tests/test-fprintf-posix.c (fprintf): Likewise.
22358         * tests/test-freopen.c (freopen): Likewise.
22359         * tests/test-frexp.c (frexp): Likewise.
22360         * tests/test-frexpl.c (frexpl): Likewise.
22361         * tests/test-fseek.c (fseek): Likewise.
22362         * tests/test-fseeko.c (fseeko): Likewise.
22363         * tests/test-fstatat.c (fstatat): Likewise.
22364         * tests/test-fsync.c (fsync): Likewise.
22365         * tests/test-ftell.c (ftell): Likewise.
22366         * tests/test-ftello.c (ftello): Likewise.
22367         * tests/test-futimens.c (futimens): Likewise.
22368         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22369         (gai_strerror): Likewise.
22370         * tests/test-getcwd.c (getcwd): Likewise.
22371         * tests/test-getdelim.c (getdelim): Likewise.
22372         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22373         * tests/test-getgroups.c (getgroups): Likewise.
22374         * tests/test-gethostname.c (gethostname): Likewise.
22375         * tests/test-getline.c (getline): Likewise.
22376         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22377         Likewise.
22378         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22379         * tests/test-glob.c (glob, globfree): Likewise.
22380         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22381         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22382         * tests/test-inet_pton.c (inet_pton): Likewise.
22383         * tests/test-isblank.c (isblank): Likewise.
22384         * tests/test-lchown.c (lchown): Likewise.
22385         * tests/test-ldexpl.c (ldexpl): Likewise.
22386         * tests/test-link.c (link): Likewise.
22387         * tests/test-linkat.c (linkat): Likewise.
22388         * tests/test-lseek.c (lseek): Likewise.
22389         * tests/test-lstat.c (lstat): Likewise.
22390         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22391         * tests/test-mbsinit.c (mbsinit): Likewise.
22392         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22393         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22394         * tests/test-memchr.c (memchr): Likewise.
22395         * tests/test-memcmp.c (memcmp): Likewise.
22396         * tests/test-memmem.c (memmem): Likewise.
22397         * tests/test-memrchr.c (memrchr): Likewise.
22398         * tests/test-mkdir.c (mkdir): Likewise.
22399         * tests/test-mkdirat.c (mkdirat): Likewise.
22400         * tests/test-mkfifo.c (mkfifo): Likewise.
22401         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22402         * tests/test-mknod.c (mknod): Likewise.
22403         * tests/test-nanosleep.c (nanosleep): Likewise.
22404         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22405         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22406         Likewise.
22407         * tests/test-open.c (open): Likewise.
22408         * tests/test-openat.c (openat): Likewise.
22409         * tests/test-perror.c (perror): Likewise.
22410         * tests/test-pipe2.c (pipe2): Likewise.
22411         * tests/test-poll.c (poll): Likewise.
22412         * tests/test-popen.c (popen, pclose): Likewise.
22413         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22414         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22415         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22416         (posix_spawn_file_actions_destroy)
22417         (posix_spawn_file_actions_addclose)
22418         (posix_spawn_file_actions_addopen)
22419         (posix_spawn_file_actions_adddup2): Likewise.
22420         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22421         * tests/test-pread.c (pread): Likewise.
22422         * tests/test-printf-posix.c (printf): Likewise.
22423         * tests/test-pty.c (openpty, forkpty): Likewise.
22424         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22425         (random_r): Likewise.
22426         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22427         * tests/test-readlink.c (readlink): Likewise.
22428         * tests/test-remove.c (remove): Likewise.
22429         * tests/test-rename.c (rename): Likewise.
22430         * tests/test-renameat.c (renameat): Likewise.
22431         * tests/test-rmdir.c (rmdir): Likewise.
22432         * tests/test-round1.c (round): Likewise.
22433         * tests/test-roundf1.c (roundf): Likewise.
22434         * tests/test-roundl.c (roundl): Likewise.
22435         * tests/test-setenv.c (setenv): Likewise.
22436         * tests/test-sigaction.c (sigaction): Likewise.
22437         * tests/test-sleep.c (sleep): Likewise.
22438         * tests/test-snprintf.c (snprintf): Likewise.
22439         * tests/test-sprintf-posix.c (sprintf): Likewise.
22440         * tests/test-stat.c (stat): Likewise.
22441         * tests/test-stpncpy.c (stpncpy): Likewise.
22442         * tests/test-strcasestr.c (strcasestr): Likewise.
22443         * tests/test-strchrnul.c (strchrnul): Likewise.
22444         * tests/test-strerror.c (strerror): Likewise.
22445         * tests/test-strsignal.c (strsignal): Likewise.
22446         * tests/test-strstr.c (strstr): Likewise.
22447         * tests/test-strtod.c (strtod): Likewise.
22448         * tests/test-strverscmp.c (strverscmp): Likewise.
22449         * tests/test-symlink.c (symlink): Likewise.
22450         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22451         * tests/test-times.c (times): Likewise.
22452         * tests/test-trunc1.c (trunc): Likewise.
22453         * tests/test-truncf1.c (truncf): Likewise.
22454         * tests/test-truncl.c (truncl): Likewise.
22455         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22456         Likewise.
22457         * tests/test-uname.c (uname): Likewise.
22458         * tests/test-unlink.c (unlink): Likewise.
22459         * tests/test-unlinkat.c (unlinkat): Likewise.
22460         * tests/test-unsetenv.c (unsetenv): Likewise.
22461         * tests/test-usleep.c (usleep): Likewise.
22462         * tests/test-utimensat.c (utimensat): Likewise.
22463         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22464         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22465         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22466         * tests/test-vprintf-posix.c (vprintf): Likewise.
22467         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22468         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22469         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22470         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22471         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22472         * tests/test-wcwidth.c (wcwidth): Likewise.
22473
22474         build: pull in conditional headers during GNULIB_POSIXCHECK
22475         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22476         definitions from any conditionally-included headers.
22477         * lib/stdlib.in.h (includes): Likewise.
22478         * lib/unistd.in.h (includes): Likewise.
22479
22480 2009-12-24  Bruno Haible  <bruno@clisp.org>
22481
22482         * tests/test-argv-iter.c: Include header file being tested immediately
22483         after config.h.
22484         * tests/test-base64.c: Likewise.
22485         * tests/test-flock.c: Likewise.
22486         * tests/test-fsync.c: Likewise.
22487         * tests/test-getdate.c: Likewise.
22488         * tests/test-getndelim2.c: Likewise.
22489         * tests/test-isfinite.c: Likewise.
22490         * tests/test-isinf.c: Likewise.
22491         * tests/test-strerror.c: Likewise.
22492         * tests/test-strsignal.c: Likewise.
22493
22494 2009-12-23  Eric Blake  <ebb9@byu.net>
22495
22496         unistd: work around cygwin bug
22497         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22498         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22499         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22500
22501 2009-12-23  Bruno Haible  <bruno@clisp.org>
22502
22503         localename: More tests.
22504         * tests/test-localename.c (SIZEOF): New macro.
22505         (categories): New variable.
22506         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22507         test_locale_name_default): Add test w.r.t. thread locale.
22508         (test_locale_name_thread): New function.
22509         (main): Invoke it.
22510
22511         localename: Make aware of thread locale.
22512         * lib/localename.h (gl_locale_name_thread): New declaration.
22513         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22514         behaviour with respect to thread locale.
22515         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22516         <langinfo.h>, glthread/lock.h.
22517         (SIZE_BITS): New macro.
22518         (string_hash): New function.
22519         (struct hash_node): New type.
22520         (HASH_TABLE_SIZE): New macro.
22521         (struniq_hash_table, struniq_lock): New variables.
22522         (struniq): New function.
22523         (gl_locale_name_thread): New function.
22524         (gl_locale_name): Invoke it.
22525         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22526         * modules/localename (Depends-on): Add lock.
22527         Reported by Mike Gran <spk121@yahoo.com>.
22528
22529 2009-12-23  Eric Blake  <ebb9@byu.net>
22530
22531         va-args: new module
22532         * modules/va-args: New file.
22533         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22534         * MODULES.html.sh (Core language properties): Mention it.
22535
22536         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22537         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22538         named alias for __attribute__((__unused__)).
22539         * lib/chown.c: Update client.
22540         * lib/fchmodat.c: Likewise.
22541         * lib/fts.c: Likewise.
22542         * lib/getdate.y: Likewise.
22543         * lib/getgroups.c: Likewise.
22544         * lib/getopt.c: Likewise.
22545         * lib/getugroups.c: Likewise.
22546         * lib/mkdir.c: Likewise.
22547         * lib/mkfifo.c: Likewise.
22548         * lib/mkfifoat.c: Likewise.
22549         * lib/mknod.c: Likewise.
22550         * lib/mknodat.c: Likewise.
22551         * lib/readlink.c: Likewise.
22552         * lib/se-context.in.h: Likewise.
22553         * lib/se-selinux.in.h: Likewise.
22554         * lib/sockets.c: Likewise.
22555         * lib/symlink.c: Likewise.
22556         * lib/symlinkat.c: Likewise.
22557         * lib/unicodeio.c: Likewise.
22558         * lib/unistr.h: Likewise.
22559         * tests/test-areadlink.c: Likewise.
22560         * tests/test-areadlinkat.c: Likewise.
22561         * tests/test-filenamecat.c: Likewise.
22562         * tests/test-fseeko.c: Likewise.
22563         * tests/test-ftello.c: Likewise.
22564         * tests/test-getdate.c: Likewise.
22565         * tests/test-getgroups.c: Likewise.
22566         * tests/test-gethostname.c: Likewise.
22567         * tests/test-quotearg.c: Likewise.
22568         * tests/test-version-etc.c: Likewise.
22569         * tests/test-xalloc-die.c: Likewise.
22570         * tests/test-xfprintf-posix.c: Likewise.
22571         * tests/test-xprintf-posix.c: Likewise.
22572         * tests/test-xvasprintf.c: Likewise.
22573
22574         tests: avoid compiler warnings
22575         * tests/test-fcntl.c (main): Delete unused parameters.
22576         * tests/test-freopen-safer.c (main): Likewise.
22577         * tests/test-xalloc-die.c (main): Mark unused parameters.
22578         * tests/test-fseeko.c (main): Likewise.
22579         * tests/test-ftello.c (main): Likewise.
22580         * tests/test-nanosleep.c (main): Avoid declaration warning.
22581         * tests/test-sleep.c (main): Likewise.
22582         * tests/test-unsetenv.c (main): Silence warning about string
22583         literal.
22584         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22585
22586 2009-12-23  Bruno Haible  <bruno@clisp.org>
22587
22588         * tests/test-localename.c (test_locale_name): New function, extracted
22589         from main. Also test mixed situations.
22590         (test_locale_name_posix, test_locale_name_environ,
22591         test_locale_name_default): New functions.
22592         (main): Invoke them all.
22593         * modules/localename-tests (configure.ac): Test for newlocale.
22594
22595 2009-12-23  Bruno Haible  <bruno@clisp.org>
22596
22597         unistd: Ensure getcwd gets declared before being overridden.
22598         * lib/unistd.in.h: Conditionally include <io.h>.
22599
22600 2009-12-22  Bruno Haible  <bruno@clisp.org>
22601
22602         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22603         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22604         (gl_WCHAR_H): Invoke it.
22605         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22606         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22607         Reported by Karl Berry <karl@freefriends.org>.
22608
22609 2009-12-22  Eric Blake  <ebb9@byu.net>
22610
22611         math, unistd: avoid redundant includes
22612         * lib/math.in.h (isnan): No need to re-include <math.h>.
22613         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22614
22615         getsubopt: work around cygwin bug
22616         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22617         avoid conflicting with system getsubopt.
22618         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22619         bug.
22620
22621         getopt: synchronize from glibc
22622         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22623         parameter order.  Adjust all callers.
22624         (_getopt_internal_r, main): Adjust quoting in error messages.
22625         Drop considerations for outdated POSIX 1003.2 error message.
22626         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22627         callers.
22628         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22629
22630         test-getopt: test stderr behavior
22631         * modules/getopt-posix-tests (Depends-on): Add dup2.
22632         * tests/test-getopt.c (ASSERT): Avoid stderr.
22633         (main): Move stderr to a temporary file.
22634         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22635         Instead, add parameter to inform caller if output occurred.
22636         (test_getopt): Adjust all existing tests to expect silence, and
22637         add new tests of leading ":".
22638         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22639         glibc shortcomings with leading "-:" or "+:" in optstring.
22640         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22641         Likewise.
22642         * doc/posix-functions/getopt.texi (getopt): Likewise.
22643
22644         test-getopt: enhance test
22645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22646         supports optind=0.
22647         * tests/test-getopt.c (OPTIND_MIN): Move...
22648         * tests/test-getopt.h (OPTIND_MIN): ...here.
22649         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22650         Require that optind=0 works, since modern BSD supports it in
22651         addition to optreset, and since coreutils expects it.
22652         (test_getopt_long_only): New test.
22653         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22654         glibc shortcomings with 'W;', and enforcement of optind=0.
22655         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22656         Likewise.
22657
22658 2009-12-21  Bruno Haible  <bruno@clisp.org>
22659
22660         localename: Improvements for MacOS X and Cygwin.
22661         * lib/localename.h (gl_locale_name_environ): New declaration.
22662         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22663         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22664         (gl_locale_name_posix): Invoke it.
22665         (gl_locale_name_default): Add comments. Use Windows native API also on
22666         Cygwin.
22667
22668 2009-12-21  Bruno Haible  <bruno@clisp.org>
22669
22670         Update list of Win32 locale ids.
22671         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22672         (LANG_SAMI): Renamed from LANG_SAAMI.
22673         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22674         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22675         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22676         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22677         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22678         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22679         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22680         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22681         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22682         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22683         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22684         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22685         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22686         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22687         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22688         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22689         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22690         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22691         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22692         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22693         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22694         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22695         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22696         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22697         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22698         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22699         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22700         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22701         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22702         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22703         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22704         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22705         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22706         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22707         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22708         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22709         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22710         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22711         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22712         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22713         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22714         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22715         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22716         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22717         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22718         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22719         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22720         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22721         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22722         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22723         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22724         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22725         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22726         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22727         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22728         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22729         Add more languages and countries for Sami, Sorbian. Add more countries
22730         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22731         for Pashto. Change country for Syriac, Tswana.
22732
22733 2009-12-21  Eric Blake  <ebb9@byu.net>
22734
22735         test-utimens: avoid spurious failure
22736         * tests/test-chown.h (nap): Factor...
22737         * tests/nap.h: ...into new file.
22738         * tests/test-lchown.h (nap): Avoid duplication.
22739         * tests/test-utimens-common.h (nap): Use shared implementation,
22740         necessary on file systems with 1-second resolution.
22741         * modules/chown-tests (Files): Include new file.
22742         * modules/fdutimensat-tests (Files): Likewise.
22743         * modules/futimens-tests (Files): Likewise.
22744         * modules/lchown-tests (Files): Likewise.
22745         * modules/openat-tests (Files): Likewise.
22746         * modules/utimens-tests (Files): Likewise.
22747         * modules/utimensat-tests (Files): Likewise.
22748
22749 2009-12-19  Eric Blake  <ebb9@byu.net>
22750
22751         futimens, utimensat: work around Linux bug
22752         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22753         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22754         * lib/utimensat.c (rpl_utimensat): Work around it.
22755         * lib/futimens.c (rpl_futimens): Adjust comment.
22756
22757         utimens: work around Linux ctime bug
22758         * lib/utimens.c (detect_ctime_bug): New helper function.
22759         (update_timespec): Differentiate between workaround needed for
22760         this bug vs. what is needed for systems that lack utimensat.
22761         (fdutimens, lutimens): Work around bug.
22762
22763         utimens: check for ctime update
22764         * tests/test-utimens-common.h (check_ctime): Define.
22765         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22766         * tests/test-futimens.h (test_futimens): Likewise.
22767         * tests/test-lutimens.h (test_lutimens): Likewise.
22768         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22769         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22770
22771 2009-12-19  Bruno Haible  <bruno@clisp.org>
22772
22773         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22774         * tests/test-dprintf-posix2.sh: New file.
22775         * tests/test-dprintf-posix2.c: New file.
22776         * modules/dprintf-posix-tests (Files): Add them.
22777         (configure.ac): Check for getrlimit and setrlimit.
22778         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22779
22780 2009-12-19  Bruno Haible  <bruno@clisp.org>
22781
22782         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22783         * tests/test-fprintf-posix3.sh: New file.
22784         * tests/test-fprintf-posix3.c: New file.
22785         * modules/fprintf-posix-tests (Files): Add them.
22786         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22787
22788 2009-12-19  Eric Blake  <ebb9@byu.net>
22789
22790         dirfd: fix prototype
22791         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22792         * lib/dirfd.c (dirfd): Likewise.
22793
22794         canonicalize: reduce memory usage
22795         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22796         allocation to size.
22797         Reported by Solar Designer <solar@openwall.com>.
22798
22799 2009-12-19  Bruno Haible  <bruno@clisp.org>
22800
22801         New module attribute 'Applicability'.
22802         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22803         * gnulib-tool: New option --extract-applicability.
22804         (func_usage): Document it.
22805         (sed_extract_prog): Recognize it.
22806         (func_get_applicability): New function.
22807         (func_import): Generalize handling of 'link-warning' module.
22808         * modules/link-warning (Applicability): New section.
22809         * modules/arg-nonnull (Applicability): New section.
22810         Repoted by Simon Josefsson <simon@josefsson.org>.
22811
22812 2009-12-19  Bruno Haible  <bruno@clisp.org>
22813
22814         fflush: tweak
22815         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22816         * lib/fseeko.c (rpl_fseeko): Likewise.
22817
22818 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22819
22820         * lib/gl_list.h: Fix typo in comment.
22821
22822 2009-12-16  Eric Blake  <ebb9@byu.net>
22823
22824         fcntl: use to simplify other modules
22825         * modules/cloexec (Depends-on): Add fcntl.
22826         * modules/fchdir (Depends-on): Likewise.
22827         * modules/fd-safer-flag (Depends-on): Likewise.
22828         * modules/unistd-safer (Depends-on): Likewise.
22829         * modules/dup3 (configure.ac): Set module indicator.
22830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22831         missing.
22832         * lib/fchdir.c (_gl_register_dup): Fix comment.
22833         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22834         * lib/dup-safer.c (dup_safer): Likewise.
22835         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22836         * lib/dup3.c (dup3): Likewise.
22837         * tests/test-fchdir.c (main): Enhance test.
22838         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22839
22840         fcntl: port portions of fcntl to mingw
22841         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22842         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22843         replacement for mingw.
22844         * modules/fcntl (Description): Update.
22845         (Depends-on): Add dup2.
22846         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22847         * modules/fcntl-h (Makefile.am): Substitute it.
22848         * lib/fcntl.in.h (fcntl): Update declaration.
22849         (F_DUPFD, F_GETFD): New macros, when needed.
22850         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22851         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22852         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22853         we now guarantee.
22854
22855         fcntl: work around cygwin bug in F_DUPFD
22856         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22857         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22858         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22859         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22860         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22861
22862         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22863         * modules/fcntl (Files): List new files.
22864         (configure.ac): Run a test.
22865         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22866         * lib/fcntl.c (rpl_fcntl): Likewise.
22867         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22868         (gl_FCNTL_H): Always replace fcntl.h.
22869         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22870         * lib/fcntl.in.h (fcntl): Declare replacement.
22871         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22872         needed, plus a witness.
22873         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22874         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22875         * tests/test-fcntl.c: New file.
22876         * modules/fcntl-tests: Likewise.
22877
22878         binary-io: avoid potential compilation warning
22879         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22880         directives.
22881
22882         fflush: avoid compilation error on NetBSD
22883         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22884         between off_t and fpos_t, since the latter is sometimes a struct.
22885         * lib/fseeko.c (rpl_fseeko): Likewise.
22886         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22887
22888 2009-12-15  Eric Blake  <ebb9@byu.net>
22889
22890         fcntl-h, stdio, sys_ioctl: fix declarations
22891         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22892         function must not take arguments.
22893         * lib/sys_ioctl.in.h (ioctl): Likewise.
22894         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22895         (open): Add a link warning.
22896
22897 2009-12-15  Jim Meyering  <meyering@redhat.com>
22898
22899         areadlink, areadlink-with-size: relax license to LGPLv2+
22900         * modules/areadlink (License): Relax to LGPLv2+.
22901         * modules/areadlink-with-size (License): Likewise.
22902
22903 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22904             Bruno Haible  <bruno@clisp.org>
22905
22906         *printf: Fix memory leak.
22907         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22908         * lib/vfprintf.c (vfprintf): Likewise.
22909         * lib/dprintf.c (dprintf): Likewise.
22910         * lib/vdprintf.c (vdprintf): Likewise.
22911
22912 2009-12-14  Eric Blake  <ebb9@byu.net>
22913
22914         accept4: adjust module dependencies
22915         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22916
22917         utimens: one more try at avoiding compiler warning
22918         * lib/utimens.c (lutimens): Lower scope of result.
22919
22920 2009-12-13  Bruno Haible  <bruno@clisp.org>
22921
22922         Move the malloc checking from module 'list' to new module 'xlist'.
22923         * modules/xlist: New file.
22924         * lib/gl_xlist.h: New file.
22925         * lib/gl_xlist.c: New file.
22926         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22927         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22928         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22929         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22930         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22931         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22932         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22933         gl_sortedlist_nx_add): New declarations.
22934         (struct gl_list_implementation): Rename and change methods accordingly.
22935         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22936         (gl_list_nx_create): Renamed from gl_list_create.
22937         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22938         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22939         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22940         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22941         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22942         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22943         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22944         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22945         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22946         gl_list_create_empty.
22947         (gl_list_nx_create): Renamed from gl_list_create.
22948         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22949         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22950         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22951         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22952         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22953         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22954         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22955         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22956         * lib/gl_array_list.c: Don't include xalloc.h.
22957         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22958         NULL upon out-of-memory.
22959         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22960         out-of-memory.
22961         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22962         Change return type to 'int'.
22963         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22964         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22965         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22966         upon out-of-memory.
22967         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22968         upon out-of-memory.
22969         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22970         upon out-of-memory.
22971         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22972         upon out-of-memory.
22973         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22974         out-of-memory.
22975         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22976         Update.
22977         (gl_array_list_implementation): Update.
22978         * lib/gl_carray_list.c: Don't include xalloc.h.
22979         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22980         Return NULL upon out-of-memory.
22981         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22982         out-of-memory.
22983         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22984         Change return type to 'int'.
22985         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22986         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22987         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22988         upon out-of-memory.
22989         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22990         upon out-of-memory.
22991         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22992         out-of-memory.
22993         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22994         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22995         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22996         Update.
22997         (gl_carray_list_implementation): Update.
22998         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22999         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23000         gl_linked_create_empty. Return NULL upon out-of-memory.
23001         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23002         out-of-memory.
23003         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23004         Change return type to 'int'. Return -1 upon out-of-memory.
23005         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23006         out-of-memory.
23007         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23008         upon out-of-memory.
23009         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23010         upon out-of-memory.
23011         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23012         NULL upon out-of-memory.
23013         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23014         upon out-of-memory.
23015         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23016         out-of-memory.
23017         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23018         Update.
23019         * lib/gl_linked_list.c: Don't include xalloc.h.
23020         (gl_linked_list_implementation): Update.
23021         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23022         (add_to_bucket): Change return type to 'int'.
23023         (gl_linkedhash_list_implementation): Update.
23024         * lib/gl_anytree_list1.h (free_subtree): New function.
23025         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23026         gl_tree_create_empty. Return NULL upon out-of-memory.
23027         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23028         Change return type to 'int'. Return -1 upon out-of-memory.
23029         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23030         out-of-memory.
23031         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23032         (gl_tree_remove_node): New function, moved here from
23033         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23034         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23035         Update.
23036         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23037         malloc, not xmalloc. Return NULL upon out-of-memory.
23038         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23039         out-of-memory.
23040         (gl_tree_remove_node_from_tree): New function, extracted from
23041         gl_tree_remove_node.
23042         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23043         upon out-of-memory.
23044         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23045         out-of-memory.
23046         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23047         upon out-of-memory.
23048         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23049         upon out-of-memory.
23050         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23051         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23052         not xmalloc. Return NULL upon out-of-memory.
23053         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23054         out-of-memory.
23055         (gl_tree_remove_node_from_tree): New function, extracted from
23056         gl_tree_remove_node.
23057         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23058         upon out-of-memory.
23059         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23060         out-of-memory.
23061         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23062         upon out-of-memory.
23063         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23064         upon out-of-memory.
23065         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23066         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23067         gl_anytree_list1.h before gl_anyavltree_list2.h.
23068         (gl_avltree_list_implementation): Update.
23069         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23070         gl_anytree_list1.h before gl_anyavltree_list2.h.
23071         (gl_rbtree_list_implementation): Update.
23072         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23073         Change return type to 'int'. Return -1 upon out-of-memory. Use
23074         __builtin_expect.
23075         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23076         (gl_avltreehash_list_implementation): Update.
23077         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23078         (gl_rbtreehash_list_implementation): Update.
23079         * modules/array-list (Depends-on): Remove xalloc.
23080         * modules/carray-list (Depends-on): Likewise.
23081         * modules/linked-list (Depends-on): Likewise.
23082         * modules/linkedhash-list (Depends-on): Likewise.
23083         * modules/avltree-list (Depends-on): Likewise.
23084         * modules/rbtree-list (Depends-on): Likewise.
23085         * modules/avltreehash-list (Depends-on): Likewise.
23086         * modules/rbtreehash-list (Depends-on): Likewise.
23087
23088         * modules/xsublist: New file.
23089         * lib/gl_xsublist.h: New file.
23090         * lib/gl_xsublist.c: New file.
23091         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23092         (gl_sublist_nx_create): New declaration.
23093         * lib/gl_sublist.c: Don't include xalloc.h.
23094         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23095         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23096         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23097         Change return type to 'int'. Return -1 upon out-of-memory.
23098         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23099         upon out-of-memory.
23100         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23101         NULL upon out-of-memory.
23102         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23103         upon out-of-memory.
23104         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23105         NULL upon out-of-memory.
23106         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23107         NULL upon out-of-memory.
23108         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23109         upon out-of-memory.
23110         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23111         (gl_sublist_list_implementation): Update.
23112         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23113         upon out-of-memory.
23114         * modules/sublist (Depends-on): Remove xalloc.
23115
23116         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23117         * tests/test-carray_list.c: Likewise.
23118         * tests/test-linked_list.c: Likewise.
23119         * tests/test-linkedhash_list.c: Likewise.
23120         * tests/test-avltree_list.c: Likewise.
23121         * tests/test-rbtree_list.c: Likewise.
23122         * tests/test-avltreehash_list.c: Likewise.
23123         * tests/test-rbtreehash_list.c: Likewise.
23124         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23125         * modules/carray-list-tests (Makefile.am): Likewise.
23126         * modules/linked-list-tests (Makefile.am): Likewise.
23127         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23128         * modules/avltree-list-tests (Makefile.am): Likewise.
23129         * modules/rbtree-list-tests (Makefile.am): Likewise.
23130         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23131         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23132
23133         * NEWS: Mention the changes.
23134
23135         * lib/clean-temp.c: Include gl_xlist.h.
23136         * modules/clean-temp (Depends-on): Add xlist.
23137
23138         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23139         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23140
23141         * tests/test-array_oset.c: Include gl_xlist.h.
23142         * modules/array-oset-tests (Depends-on): Add xlist.
23143
23144         Reported by José E. Marchesi <jemarch@gnu.org>.
23145
23146 2009-12-13  Bruno Haible  <bruno@clisp.org>
23147
23148         Move the malloc checking from module 'oset' to new module 'xoset'.
23149         * modules/xoset: New file.
23150         * lib/gl_xoset.h: New file.
23151         * lib/gl_xoset.c: New file.
23152         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23153         declarations.
23154         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23155         (struct gl_oset_implementation): Rename and change methods accordingly.
23156         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23157         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23158         'int'. Mark as __warn_unused_result__.
23159         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23160         gl_oset_create_empty.
23161         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23162         'int'.
23163         * lib/gl_array_oset.c: Don't include xalloc.h.
23164         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23165         malloc, not xmalloc.
23166         (grow): Change return type to 'int'. Don't call xalloc_die.
23167         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23168         to 'int'.
23169         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23170         'int'.
23171         (gl_array_oset_implementation): Update.
23172         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23173         gl_tree_create_empty.
23174         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23175         'int'.
23176         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23177         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23178         xmalloc.
23179         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23180         not xmalloc.
23181         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23182         xmalloc.
23183         (gl_avltree_oset_implementation): Update.
23184         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23185         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23186         xmalloc.
23187         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23188         not xmalloc.
23189         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23190         xmalloc.
23191         (gl_rbtree_oset_implementation): Update.
23192         * modules/array-oset (Depends-on): Remove xalloc.
23193         * modules/avltree-oset (Depends-on): Likewise.
23194         * modules/rbtree-oset (Depends-on): Likewise.
23195         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23196         * tests/test-avltree_oset.c: Likewise.
23197         * tests/test-rbtree_oset.c: Likewise.
23198         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23199         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23200         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23201         * NEWS: Mention the change.
23202
23203 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23204
23205         maint.mk: allow a project to override release-prep commands
23206         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23207         commands into a new rule.
23208         (release-prep): New rule.
23209         (release-prep-hook): New overridable variable.
23210
23211 2009-12-13  Bruno Haible  <bruno@clisp.org>
23212
23213         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23214
23215 2009-12-13  Jim Meyering  <meyering@redhat.com>
23216
23217         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23218         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23219
23220 2009-12-12  Bruno Haible  <bruno@clisp.org>
23221
23222         duplocale: Tweak.
23223         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23224
23225 2009-12-12  Karl Berry  <karl@gnu.org>
23226
23227         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23228
23229 2009-12-12  Bruno Haible  <bruno@clisp.org>
23230
23231         * m4/po.m4: Undo incorrect untabification.
23232
23233 2009-12-12  Bruno Haible  <bruno@clisp.org>
23234
23235         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23236         * modules/c-strtod (Depends-on): Add locale.
23237         * modules/c-strtold (Depends-on): Likewise.
23238
23239 2009-12-12  Bruno Haible  <bruno@clisp.org>
23240
23241         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23242
23243 2009-12-11  Eric Blake  <ebb9@byu.net>
23244
23245         setenv: relax requirement in light of POSIX ruling
23246         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23247         not NULL.
23248         * tests/test-setenv.c (main): Relax test.
23249         * tests/test-unsetenv.c (main): Likewise.
23250         * doc/posix-functions/setenv.texi (setenv): Document this.
23251         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23252
23253 2009-12-11  Bruno Haible  <bruno@clisp.org>
23254
23255         New module 'fd-safer-flag'.
23256         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23257         * lib/dup-safer.c (dup_safer_flag): Remove function.
23258         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23259         * lib/fd-safer.c (fd_safer_flag): Remove function.
23260         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23261         * modules/cloexec (configure.ac): Drop indicator macro.
23262         * modules/fd-safer-flag: New file.
23263         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23264         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23265         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23266
23267 2009-12-11  Bruno Haible  <bruno@clisp.org>
23268
23269         Tests for module 'nl_langinfo'.
23270         * modules/nl_langinfo-tests: New file.
23271         * tests/test-nl_langinfo.sh: New file.
23272         * tests/test-nl_langinfo.c: New file.
23273
23274         New module 'nl_langinfo'.
23275         * lib/nl_langinfo.c: New file.
23276         * m4/nl_langinfo.m4: New file.
23277         * modules/nl_langinfo: New file.
23278         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23279
23280 2009-12-11  Bruno Haible  <bruno@clisp.org>
23281
23282         Tests for module 'langinfo'.
23283         * modules/langinfo-tests: New file.
23284         * tests/test-langinfo.c: New file.
23285
23286         New module 'langinfo'.
23287         * lib/langinfo.in.h: New file.
23288         * m4/langinfo_h.m4: New file.
23289         * modules/langinfo: New file.
23290         * doc/posix-headers/langinfo.texi: Mention the new module.
23291
23292 2009-12-11  Bruno Haible  <bruno@clisp.org>
23293
23294         * lib/config.charset: Untabify.
23295
23296 2009-12-11  Bruno Haible  <bruno@clisp.org>
23297
23298         * modules/unistd-safer (configure.ac): Drop indicator macro.
23299
23300 2009-12-11  Bruno Haible  <bruno@clisp.org>
23301
23302         Move pipe2-safer code to its own file.
23303         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23304         * lib/pipe-safer.c (pipe2_safer): Remove function.
23305         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23306         (Makefile.am): Add it to lib_SOURCES.
23307
23308 2009-12-10  Bruno Haible  <bruno@clisp.org>
23309
23310         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23311
23312 2009-12-10  Bruno Haible  <bruno@clisp.org>
23313
23314         Declare which arguments expect non-NULL values, for GCC and clang.
23315         * build-aux/arg-nonnull.h: New file.
23316         * modules/arg-nonnull: New file.
23317         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23318         (inet_ntop, inet_pton): Use it.
23319         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23320         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23321         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23322         (open, openat): Use it.
23323         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23324         (fnmatch): Use it.
23325         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23326         (getopt, getopt_long, getopt_long_only): Use it.
23327         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23328         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23329         Use it.
23330         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23331         (iconv_open): Use it.
23332         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23333         (strtoimax, strtoumax): Use it.
23334         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23335         (duplocale): Use it.
23336         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23337         (frexp, frexpl): Use it.
23338         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23339         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23340         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23341         (tsearch, tfind, tdelete, twalk): Use it.
23342         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23343         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23344         sigpending): Use it.
23345         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23346         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23347         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23348         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23349         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23350         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23351         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23352         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23353         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23354         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23355         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23356         Use it.
23357         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23358         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23359         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23360         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23361         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23362         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23363         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23364         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23365         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23366         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23367         strtoull, unsetenv): Use it.
23368         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23369         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23370         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23371         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23372         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23373         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23374         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23375         (strcasecmp, strncasecmp): Use it.
23376         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23377         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23378         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23379         rpl_setsockopt): Use it.
23380         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23381         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23382         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23383         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23384         (gettimeofday): Use it.
23385         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23386         (times): Use it.
23387         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23388         (uname): Use it.
23389         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23390         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23391         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23392         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23393         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23394         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23395         unlinkat, write): Use it.
23396         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23397         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23398         * lib/argv-iter.h: Include arg-nonnull.h.
23399         (_ATTRIBUTE_NONNULL_): Remove macro.
23400         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23401         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23402         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23403         optimization.
23404         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23405         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23406         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23407         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23408         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23409         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23410         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23411         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23412         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23413         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23414         * modules/dirent (Depends-on): Add arg-nonnull.
23415         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23416         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23417         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23418         * modules/fnmatch (Depends-on): Add arg-nonnull.
23419         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23420         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23421         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23422         * modules/glob (Depends-on): Add arg-nonnull.
23423         (Makefile.am): Insert arg-nonnull.h into glob.h.
23424         * modules/iconv_open (Depends-on): Add arg-nonnull.
23425         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23426         * modules/inttypes (Depends-on): Add arg-nonnull.
23427         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23428         * modules/locale (Depends-on): Add arg-nonnull.
23429         (Makefile.am): Insert arg-nonnull.h into locale.h.
23430         * modules/math (Depends-on): Add arg-nonnull.
23431         (Makefile.am): Insert arg-nonnull.h into math.h.
23432         * modules/netdb (Depends-on): Add arg-nonnull.
23433         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23434         * modules/search (Depends-on): Add arg-nonnull.
23435         (Makefile.am): Insert arg-nonnull.h into search.h.
23436         * modules/signal (Depends-on): Add arg-nonnull.
23437         (Makefile.am): Insert arg-nonnull.h into signal.h.
23438         * modules/spawn (Depends-on): Add arg-nonnull.
23439         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23440         * modules/stdio (Depends-on): Add arg-nonnull.
23441         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23442         * modules/stdlib (Depends-on): Add arg-nonnull.
23443         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23444         * modules/string (Depends-on): Add arg-nonnull.
23445         (Makefile.am): Insert arg-nonnull.h into string.h.
23446         * modules/strings (Depends-on): Add arg-nonnull.
23447         (Makefile.am): Insert arg-nonnull.h into strings.h.
23448         * modules/sys_socket (Depends-on): Add arg-nonnull.
23449         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23450         * modules/sys_stat (Depends-on): Add arg-nonnull.
23451         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23452         * modules/sys_time (Depends-on): Add arg-nonnull.
23453         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23454         * modules/sys_times (Depends-on): Add arg-nonnull.
23455         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23456         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23457         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23458         * modules/time (Depends-on): Add arg-nonnull.
23459         (Makefile.am): Insert arg-nonnull.h into time.h.
23460         * modules/unistd (Depends-on): Add arg-nonnull.
23461         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23462         * modules/wchar (Depends-on): Add arg-nonnull.
23463         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23464         * modules/argv-iter (Depends-on): Add arg-nonnull.
23465         * tests/test-canonicalize.c (null_ptr): New function.
23466         (main): Use it.
23467         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23468         (main): Use it.
23469         * tests/test-memmem.c (null_ptr): New function.
23470         (main): Use it.
23471         Reported by Jim Meyering.
23472
23473 2009-12-10  Bruno Haible  <bruno@clisp.org>
23474
23475         Use spaces for indentation, not tabs.
23476         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23477         * m4/*.m4: Untabify.
23478         * build-aux/*.h: Untabify.
23479         * tests/**/*.[hc]: Untabify.
23480         * README: New section "Indent with spaces, not TABs", based on
23481         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23482         * NEWS: Mention the change.
23483
23484 2009-12-10  Bruno Haible  <bruno@clisp.org>
23485
23486         pty test: Fix link error.
23487         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23488         test_pty_LDADD.
23489
23490 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23491
23492         * modules/pty: New file.
23493         * modules/pty-tests: New file.
23494         * m4/pty.m4: New file.
23495         * tests/test-pty.c: New file.
23496         * doc/glibc-headers/pty.texi: Modified.
23497         * doc/glibc-functions/forkpty.texi: Modified.
23498         * doc/glibc-functions/openpty.texi: Modified.
23499
23500 2009-12-10  Bruno Haible  <bruno@clisp.org>
23501
23502         Avoid syntax error in C++ mode.
23503         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23504
23505 2009-12-10  Bruno Haible  <bruno@clisp.org>
23506
23507         Use sed with option -e.
23508         * gnulib-tool (func_version, func_emit_copyright_notice,
23509         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23510         option -e to sed.
23511         * modules/link-warning (Makefile.am): Likewise.
23512
23513 2009-12-10  Jim Meyering  <meyering@redhat.com>
23514
23515         mgetgroups: do not write bytes beyond end of malloc'd buffer
23516         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23517         username, we call getgroups with a one-element-shorter buffer,
23518         but still told it the length was original, max_n_groups.
23519
23520 2009-12-09  Eric Blake  <ebb9@byu.net>
23521
23522         cloexec: relax license
23523         * modules/cloexec (Maintainer): Add myself.
23524         (License): Use LGPL, not GPL.
23525
23526         link-warning: optimize generation
23527         * modules/link-warning (Makefile.am): Reduce process usage.
23528
23529 2009-12-09  Bruno Haible  <bruno@clisp.org>
23530
23531         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23532         workaround was added on 2009-11-17.
23533
23534 2009-12-09  Jim Meyering  <meyering@redhat.com>
23535             Bruno Haible  <bruno@clisp.org>
23536
23537         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23538         * modules/link-warning (Makefile.am): Make the comment-removing sed
23539         command more robust in the face of bootstrap-prepended comment lines.
23540
23541 2009-12-09  Bruno Haible  <bruno@clisp.org>
23542
23543         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23544         most one group.
23545
23546 2009-12-09  Simon Josefsson <simon@josefsson.org>
23547             Bruno Haible  <bruno@clisp.org>
23548
23549         * build-aux/link-warning.h: Add copyright notice.
23550         * modules/link-warning (Makefile.am): Generate link-warning.h from
23551         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23552         * NEWS: Mention change in link-warning module.
23553         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23554         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23555         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23556         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23557         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23558         * modules/math (Makefile.am): Add dependency to math.h.
23559         * modules/search (Makefile.am): Add dependency to search.h.
23560         * modules/signal (Makefile.am): Add dependency to signal.h.
23561         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23562         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23563         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23564         * modules/string (Makefile.am): Add dependency to string.h.
23565         * modules/strings (Makefile.am): Add dependency to strings.h.
23566         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23567         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23568         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23569         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23570         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23571         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23572         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23573         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23574         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23575
23576 2009-12-09  Bruno Haible  <bruno@clisp.org>
23577
23578         fchdir: Optimize away rpl_fstat when possible.
23579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23580         REPLACE_OPEN_DIRECTORY.
23581         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23582
23583 2009-12-09  Bruno Haible  <bruno@clisp.org>
23584
23585         * lib/fchdir.c: Update comment.
23586
23587 2009-12-09  Bruno Haible  <bruno@clisp.org>
23588
23589         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23590
23591 2009-12-08  Eric Blake  <ebb9@byu.net>
23592
23593         fchdir: avoid memory leak on re-registration.
23594         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23595
23596 2009-12-08  Jim Meyering  <meyering@redhat.com>
23597
23598         init.sh: avoid Solaris 10 /bin/sh portability problem
23599         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23600         sourced script:
23601           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23602           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23603           bar
23604         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23605         and two tests used that idiom.
23606         * tests/init.sh: Update suggested usage comments.
23607         (path_prepend_): New function, to be used in place
23608         of the --src-path=DIR option.
23609         (setup_): Move PATH-prepending code into path_prepend_.
23610         * tests/test-pread.sh: Adapt to new usage.
23611         * tests/test-xalloc-die.sh: Likewise.
23612
23613 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23614
23615         * doc/gnulib.texi (Glibc pty.h): Add.
23616         * doc/glibc-functions/forkpty.texi: Add.
23617         * doc/glibc-functions/openpty.texi: Add.
23618         Suggested by Bruno Haible.
23619
23620 2009-12-08  Eric Blake  <ebb9@byu.net>
23621
23622         fchdir: fix logic bugs
23623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23624         * tests/test-fchdir.c (main): Enhance test.
23625         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23626         is in use.
23627
23628         dup2: fix logic bugs
23629         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23630         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23631         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23632         exists.
23633         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23634
23635 2009-12-07  Eric Blake  <ebb9@byu.net>
23636
23637         unlink: fix m4 detection
23638         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23639
23640         unistd-safer: add unit test
23641         * modules/unistd-safer-tests: New file.
23642         * tests/test-dup-safer.c: Likewise.
23643         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23644         * tests/test-dup2.c (setmode): Likewise.
23645         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23646
23647         cloexec: preserve text vs. binary across dup_cloexec
23648         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23649         mode.
23650         * modules/dup2-tests (Depends-on): Add binary-io.
23651         * modules/cloexec-tests (Depends-on): Likewise.
23652         * tests/test-dup2.c (setmode, is_mode): New helpers.
23653         (main): Add tests that translation mode is preserved.
23654         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23655         Reported by Bruno Haible.
23656
23657         mgetgroups: reduce duplicate listings
23658         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23659         resulting array.
23660         * tests/test-chown.h (test_chown): Simplify client.
23661         * tests/test-lchown.h (test_lchown): Likewise.
23662
23663 2009-12-06  Bruno Haible  <bruno@clisp.org>
23664
23665         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23666         value.
23667
23668 2009-12-06  Bruno Haible  <bruno@clisp.org>
23669
23670         * lib/progname.c: Include stdio.h, stdlib.h.
23671         (set_program_name): Reject a NULL argument.
23672
23673 2009-12-05  Eric Blake  <ebb9@byu.net>
23674
23675         pipe2-safer: new module
23676         * modules/pipe2-safer: New file.
23677         * lib/unistd-safer.h (pipe2_safer): New prototype.
23678         * lib/unistd--.h (pipe2): New wrapper.
23679         * lib/pipe-safer.c (pipe2_safer): New function.
23680         * modules/pipe (Depends-on): Add pipe2-safer.
23681         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23682
23683         stdlib-safer: preserve cloexec flag for mkostemp[s]
23684         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23685         fd_safer_flag.
23686
23687         unistd-safer: allow preservation of cloexec status via flag
23688         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23689         prototypes.
23690         * lib/dup-safer.c (dup_safer_flag): New function.
23691         * lib/fd-safer.c (fd_safer_flag): Likewise.
23692         * modules/cloexec (configure.ac): Set witness.
23693
23694         test-dup2: enhance test
23695         * modules/dup2-tests (Depends-on): Add cloexec.
23696         * tests/test-dup2.c (main): Enhance test.
23697
23698         cloexec: add dup_cloexec
23699         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23700         header and comments.
23701         * lib/cloexec.c (set_cloexec_flag): Add comments.
23702         (dup_cloexec): New function, with mingw implementation borrowed
23703         from...
23704         * lib/w32spawn.h (dup_noinherit): ...here.
23705         * modules/execute (Depends-on): Add cloexec.
23706         * modules/pipe (Depends-on): Likewise.
23707         * modules/cloexec (Depends-on): Add dup2.
23708         * modules/cloexec-tests (Files): New file.
23709         * tests/test-cloexec.c: Likewise.
23710
23711         test-xalloc-die: fix test for mingw
23712         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23713         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23714         directory and .exe suffix off argv[0] output.
23715
23716         test-fseeko: fix test for mingw
23717         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23718         than undefining fseek, so test will pass on mingw.
23719
23720 2009-12-05  Bruno Haible  <bruno@clisp.org>
23721
23722         * lib/progname.h (set_program_name): Clarify specification.
23723         * lib/progname.c (set_program_name): Likewise.
23724         Reported by Jim Meyering.
23725
23726 2009-12-05  Jim Meyering  <meyering@redhat.com>
23727
23728         maint.mk: backslash-escape parens in default regexp
23729         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23730         backslash-escape the literal parentheses.
23731
23732         maint.mk: news-date-check: use grep -E
23733         * top/maint.mk (today): Define a Make variable, not a...
23734         (news-date-check): ...shell variable.
23735         (news-date-regexp): Use the Make variable.
23736         Use grep's -E option.  Change the failing diagnostic to mention
23737         the variable, $(news-date-regexp).
23738
23739 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23740
23741         maintainer-makefile: allow customization of NEWS entry format
23742         * top/maint.mk (news-date-regexp): New overridable variable.
23743         (news-date-check): Use it.
23744
23745 2009-12-04  Eric Blake  <ebb9@byu.net>
23746
23747         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23748         * lib/mgetgroups.h (xgetgroups): New prototype.
23749         * lib/mgetgroups.c (xgetgroups): New wrapper.
23750         (mgetgroups): Handle ENOSYS.
23751         * modules/mgetgroups (Depends-on): Add realloc.
23752         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23753
23754         mgetgroups: avoid argument promotion issues with -1
23755         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23756         for invalid gid_t.
23757         * tests/test-chown.h (getegid, test_chown): Likewise.
23758         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23759
23760 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23761
23762         exclude: Fix header file problems.
23763         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23764
23765 2009-12-01  Jim Meyering  <meyering@redhat.com>
23766
23767         fts: fts_open: do not let an empty string cause immediate failure
23768         This is required in support of GNU rm, for which the command
23769         "rm A '' B" must process and remove both A and B, in spite of
23770         the empty string argument.
23771         * lib/fts.c (fts_open): Do not let the presence of an empty string
23772         cause fts_open to fail immediately.  Most fts-using tools must be
23773         able to process all arguments, in order, and can be expected to
23774         diagnose such arguments themselves.
23775
23776 2009-11-30  Eric Blake  <ebb9@byu.net>
23777
23778         utimens: fix compilation error
23779         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23780         Declare variable at right scope.
23781
23782 2009-11-29  Jim Meyering  <meyering@redhat.com>
23783
23784         bootstrap: handle perl-5.11's changed --version output
23785         * build-aux/bootstrap (get_version): Handle perl separately,
23786         since perl-5.11's --version output is different.
23787
23788 2009-11-28  Jim Meyering  <meyering@redhat.com>
23789
23790         userspec: depend on the inttostr module, too
23791         * modules/userspec (Depends-on): Add inttostr.
23792
23793         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23794         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23795         number of MAXUID when it evaluates to (uid_t) -1.
23796         Likewise for group ID.  Reported by Matt McCutchen in
23797         <http://savannah.gnu.org/bugs/?28113>
23798
23799         userspec: reformat to use spaces, not TABs
23800         * lib/userspec.c: Expand TABs to spaces.
23801         Add Emacs' "indent-tabs-mode: nil" hint.
23802
23803 2009-11-27  Eric Blake  <ebb9@byu.net>
23804
23805         getopt-gnu: flush out another BSD bug
23806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23807         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23808         flush out BSD bug.
23809         * tests/test-getopt.h (test_getopt): End lists with NULL.
23810         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23811         (test_getopt_long_posix): Enhance test.
23812         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23813         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23814         getopt-gnu.
23815         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23816         Likewise.
23817
23818 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23819
23820         * modules/idpriv-droptemp-tests (Notice): Fix text.
23821
23822 2009-11-27  Jim Meyering  <meyering@redhat.com>
23823
23824         test-xalloc-die: avoid spurious failure due to libtool argv difference
23825         In a libtool-enabled project, this test would fail due to a difference
23826         in the emitted program name, e.g.,
23827         -test-xalloc-die: memory exhausted
23828         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23829         Use program to avoid that.
23830         * modules/xalloc-die-tests (Depends-on): Add progname.
23831         * tests/test-xalloc-die.c: Include progname.h".
23832         (program_name): Remove decl.
23833         (main): Call set_program_name.
23834         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23835
23836 2009-11-26  Richard Jones  <rjones@redhat.com>
23837
23838         w32sock: leave win32 error in place.
23839         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23840
23841 2009-11-26  Eric Blake  <ebb9@byu.net>
23842
23843         init.sh: suggest to use skip_ and fail_ functions in comments
23844         * tests/init.sh: Add a sentence.
23845
23846 2009-11-25  Bruno Haible  <bruno@clisp.org>
23847
23848         init.sh: add documentation in comments
23849         * tests/init.sh: Add some developer and user documentation.
23850
23851 2009-11-26  Jim Meyering  <meyering@redhat.com>
23852
23853         init.sh: accommodate even those who specify bogus srcdir manually
23854         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23855         configure-time tests to be sanitized, so that there is no need to
23856         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23857         (with no double quotes) suffices.  However, since tests may be
23858         invoked manually, and since you may explicitly set srcdir to the
23859         name of a directory containing spaces, do quote its uses here.
23860         * tests/test-pread.sh: Likewise.
23861         Suggested by Bruno Haible.
23862
23863         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23864         * tests/test-pread.sh: Write no data into the pipe, because
23865         test-pread actually reads none.  This avoids a diagnostic,
23866         "bash: echo: write error: Broken pipe", that arises in the unusual
23867         event something is ignoring SIGPIPE, and might be interpreted
23868         as some sort of failure.  Reported by Bruno Haible.
23869
23870 2009-11-25  Jim Meyering  <meyering@redhat.com>
23871
23872         test-pread: cover failure with ESPIPE and EINVAL
23873         * tests/test-pread.c (main): Test for failure, too.
23874         * tests/test-pread.sh: Invoke with stdin on a pipe.
23875         Suggested by Eric Blake.
23876
23877         pread: improvement and fix
23878         * modules/pread (Depends-on): Depend on lseek, for portability to
23879         e.g., mingw.  Suggested by Eric Blake.
23880         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23881
23882         unistd.in.h: correct declaration of pread
23883         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23884         Reported by Richard W.M. Jones.
23885
23886         test-pread.sh: distribute the test script
23887         * modules/pread-tests (Files): Include test-pread.sh.
23888
23889         test-pread.sh: clean up
23890         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23891         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23892         That is unnecessary, since it's always ".".
23893         Suggestion from Eric Blake.
23894
23895         test-pread.sh: make executable
23896         * tests/test-pread.sh: Set executable bit.
23897         Reported by Eric Blake.
23898
23899         correct typo in test-pread.sh
23900         * tests/test-pread.sh: Add #! line.
23901
23902         test pread
23903         * tests/test-pread.c: New file.
23904         * tests/test-pread.sh: Likewise.
23905         * modules/pread-tests: Likewise.
23906
23907         pread: new module
23908         * modules/pread: New file.
23909         * lib/unistd.in.h (pread): Define/declare.
23910         * lib/pread.c (pread): New file.
23911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23912         * modules/unistd (Makefile.am): Substitute witnesses.
23913         * doc/posix-functions/pread.texi (pread): Update.
23914         * MODULES.html.sh: Add pread.
23915
23916 2009-11-25  Jim Meyering  <meyering@redhat.com>
23917
23918         tests/init.sh: new file to be used via most *.sh tests
23919         * tests/init.sh: New file.
23920
23921 2009-11-25  Eric Blake  <ebb9@byu.net>
23922
23923         utimens: work around older Linux failure with symlinks
23924         * lib/utimens.c (lutimensat_works_really): New variable.
23925         (fdutimens, lutimens): Use it to manage kernels that support
23926         nanosecond times on files, but not on symlinks.
23927         Reported by OndÅ™ej Vašík.
23928
23929         utimes: fix configure grammar
23930         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23931
23932 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23933
23934         regex: Fix fastmap for multibyte character ranges.
23935         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23936         characters when a multibyte character range is included.
23937
23938 2009-11-22  Andy Wingo  <wingo@pobox.com>
23939
23940         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23941         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23942
23943 2009-11-24  Bruno Haible  <bruno@clisp.org>
23944
23945         doc: Most *_l functions exist in MacOS X 10.5.
23946         * doc/posix-functions/duplocale.texi: Update platforms list.
23947         * doc/posix-functions/freelocale.texi: Likewise.
23948         * doc/posix-functions/newlocale.texi: Likewise.
23949         * doc/posix-functions/uselocale.texi: Likewise.
23950         * doc/posix-functions/isalnum_l.texi: Likewise.
23951         * doc/posix-functions/isalpha_l.texi: Likewise.
23952         * doc/posix-functions/isblank_l.texi: Likewise.
23953         * doc/posix-functions/iscntrl_l.texi: Likewise.
23954         * doc/posix-functions/isdigit_l.texi: Likewise.
23955         * doc/posix-functions/isgraph_l.texi: Likewise.
23956         * doc/posix-functions/islower_l.texi: Likewise.
23957         * doc/posix-functions/isprint_l.texi: Likewise.
23958         * doc/posix-functions/ispunct_l.texi: Likewise.
23959         * doc/posix-functions/isspace_l.texi: Likewise.
23960         * doc/posix-functions/isupper_l.texi: Likewise.
23961         * doc/posix-functions/iswalnum_l.texi: Likewise.
23962         * doc/posix-functions/iswalpha_l.texi: Likewise.
23963         * doc/posix-functions/iswblank_l.texi: Likewise.
23964         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23965         * doc/posix-functions/iswctype_l.texi: Likewise.
23966         * doc/posix-functions/iswdigit_l.texi: Likewise.
23967         * doc/posix-functions/iswgraph_l.texi: Likewise.
23968         * doc/posix-functions/iswlower_l.texi: Likewise.
23969         * doc/posix-functions/iswprint_l.texi: Likewise.
23970         * doc/posix-functions/iswpunct_l.texi: Likewise.
23971         * doc/posix-functions/iswspace_l.texi: Likewise.
23972         * doc/posix-functions/iswupper_l.texi: Likewise.
23973         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23974         * doc/posix-functions/isxdigit_l.texi: Likewise.
23975         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23976         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23977         * doc/posix-functions/strcoll_l.texi: Likewise.
23978         * doc/posix-functions/strfmon_l.texi: Likewise.
23979         * doc/posix-functions/strftime_l.texi: Likewise.
23980         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23981         * doc/posix-functions/strxfrm_l.texi: Likewise.
23982         * doc/posix-functions/tolower_l.texi: Likewise.
23983         * doc/posix-functions/toupper_l.texi: Likewise.
23984         * doc/posix-functions/towctrans_l.texi: Likewise.
23985         * doc/posix-functions/towlower_l.texi: Likewise.
23986         * doc/posix-functions/towupper_l.texi: Likewise.
23987         * doc/posix-functions/wcscoll_l.texi: Likewise.
23988         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23989         * doc/posix-functions/wctrans_l.texi: Likewise.
23990         * doc/posix-functions/wctype_l.texi: Likewise.
23991         * doc/glibc-functions/strptime_l.texi: Likewise.
23992         * doc/glibc-functions/strtod_l.texi: Likewise.
23993         * doc/glibc-functions/strtof_l.texi: Likewise.
23994         * doc/glibc-functions/strtol_l.texi: Likewise.
23995         * doc/glibc-functions/strtold_l.texi: Likewise.
23996         * doc/glibc-functions/strtoll_l.texi: Likewise.
23997         * doc/glibc-functions/strtoul_l.texi: Likewise.
23998         * doc/glibc-functions/strtoull_l.texi: Likewise.
23999         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24000         * doc/glibc-functions/wcstod_l.texi: Likewise.
24001         * doc/glibc-functions/wcstof_l.texi: Likewise.
24002         * doc/glibc-functions/wcstol_l.texi: Likewise.
24003         * doc/glibc-functions/wcstold_l.texi: Likewise.
24004         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24005         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24006         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24007
24008 2009-11-24  Bruno Haible  <bruno@clisp.org>
24009
24010         duplocale: Fix logic bug.
24011         * lib/duplocale.c: Don't include <langinfo.h>.
24012         (_NL_LOCALE_NAME): Remove macro.
24013         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24014         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24015
24016 2009-11-23  Jim Meyering  <meyering@redhat.com>
24017
24018         test-update-copyright: don't hard-code /usr/bin/perl
24019         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24020         perl to print the current year.  Gilles Espinasse reported that
24021         the replaced use of perl was hard-coded as /usr/bin/perl.
24022
24023 2009-11-23  Bruno Haible  <bruno@clisp.org>
24024
24025         duplocale: Add support for glibc 2.3.x.
24026         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24027
24028 2009-11-22  Bruno Haible  <bruno@clisp.org>
24029
24030         vasnprintf: Tiny optimization.
24031         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24032         MacOS X.
24033
24034 2009-11-22  Bruno Haible  <bruno@clisp.org>
24035
24036         Tests for module 'duplocale'.
24037         * modules/duplocale-tests: New file.
24038         * tests/test-duplocale.c: New file.
24039
24040         New module 'duplocale'.
24041         * m4/duplocale.m4: New file.
24042         * lib/locale.in.h (duplocale): New declaration.
24043         * lib/duplocale.c: New file.
24044         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24045         gl_LOCALE_H_DEFAULTS): New macros.
24046         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24047         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24048         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24049         REPLACE_DUPLOCALE.
24050         * modules/duplocale: New file.
24051         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24052
24053 2009-11-22  Bruno Haible  <bruno@clisp.org>
24054
24055         * modules/locale-tests (configure.ac): Test for newlocale function.
24056         * tests/test-locale.c: When the system has extended locale functions,
24057         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24058
24059         locale: Make locale_t available when possible.
24060         * lib/locale.in.h: Include <xlocale.h> when it exists.
24061         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24062         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24063         * modules/locale (Depends-on): Add extensions.
24064         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24065         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24066
24067 2009-11-22  Bruno Haible  <bruno@clisp.org>
24068
24069         Add comments.
24070         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24071         invocation.
24072         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24073         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24074         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24075
24076 2009-11-22  Bruno Haible  <bruno@clisp.org>
24077
24078         error: account for the possibility of freopen (stdout).
24079         * lib/error.c: Include <unistd.h>.
24080         (flush_stdout): New function, extracted from error and error_at_line.
24081         Determine stdout's fd dynamically.
24082         (error, error_at_line): Invoke flush_stdout.
24083         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24084         * modules/error (Depends-on): Add unistd.
24085
24086 2009-11-22  Bruno Haible  <bruno@clisp.org>
24087
24088         diffseq: Add comment.
24089         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24090
24091 2009-11-22  Jim Meyering  <meyering@redhat.com>
24092
24093         c-stack: avoid defining an unused static function
24094         * lib/c-stack.c (find_stack_direction): Do not define this function
24095         when it will not be used.
24096
24097         diffseq: avoid spurious gcc warnings
24098         * lib/diffseq.h (IF_LINT2): Define.
24099         (compareseq): Use it to initialize two members of "part".
24100         This avoids two used-uninitialized warnings.
24101
24102 2009-11-21  Jim Meyering  <meyering@redhat.com>
24103
24104         c-stack: avoid "ignoring return value of `write'" warning
24105         * lib/c-stack.c: Include "ignore-value.h".
24106         (die): Explicitly ignore each write return value.
24107         * modules/c-stack (Depends-on): Add ignore-value.
24108
24109 2009-11-21  Bruno Haible  <bruno@clisp.org>
24110
24111         diffseq: reduce scope of variable 'best'.
24112         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24113         variable, earlier used for two different purposes.
24114
24115 2009-11-21  Jim Meyering  <meyering@redhat.com>
24116
24117         diffseq: remove useless assignment to "best"
24118         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24119         assignment.  At that point "best" is already guaranteed to be zero.
24120
24121 2009-11-20  Eric Blake  <ebb9@byu.net>
24122
24123         build: mention ftp redirector in release announcements
24124         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24125         values that used to come from cfg.mk; mention FTP redirect URL.
24126         * build-aux/announce-gen: Mention the mirror list.
24127         Suggested by Karl Berry.
24128
24129         nanosleep: improve port to mingw
24130         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24132         LIB_NANOSLEEP, but only when needed.
24133         * modules/select (Link): Document LIBSOCKET.
24134         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24135         enough.
24136
24137         nanosleep: work around cygwin bug
24138         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24139         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24140         bug.
24141         (getnow): Delete, not needed.
24142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24143         LIB_CLOCK_GETTIME.
24144         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24145         clock-time, gettime.
24146         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24147         bug.
24148         * modules/nanosleep-tests: New test.
24149         * tests/test-nanosleep.c: New file.
24150
24151         sleep: work around cygwin bug
24152         * lib/sleep.c (rpl_sleep): Work around the bug.
24153         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24154         (gl_PREREQ_SLEEP): Delete unused macro.
24155         * modules/sleep (Depends-on): Add verify.
24156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24157         * modules/unistd (Makefile.am): Substitute witness.
24158         * lib/unistd.in.h (sleep): Update prototype.
24159         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24160         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24161         * modules/sleep-tests (Depends-on): Check for alarm.
24162
24163 2009-11-20  Jim Meyering  <meyering@redhat.com>
24164
24165         maint.mk: improve sc_prohibit_magic_number_exit
24166         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24167         so it does not match uses like System.exit(1).
24168         Add comments showing how to correct all offenders.
24169
24170 2009-11-19  Eric Blake  <ebb9@byu.net>
24171
24172         xalloc-die-tests: add missing library
24173         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24174
24175         test-xvasprintf: silence compiler warnings
24176         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24177         empty string from gcc.
24178
24179 2009-11-19  Jim Meyering  <meyering@redhat.com>
24180
24181         xfreopen: new module, from coreutils
24182         * modules/xfreopen: New module.
24183         * lib/xfreopen.c: New file.
24184         * lib/xfreopen.h: New file.
24185         * MODULES.html.sh (File stream based Input/Output"): Add it.
24186
24187 2009-11-19  Eric Blake  <ebb9@byu.net>
24188
24189         manywarnings: depend on warnings
24190         * modules/manywarnings (Depends-on): Add warnings.
24191
24192         build: avoid compiler warnings
24193         * lib/select.c (rpl_select): Delete unused variable.
24194         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24195
24196 2009-11-18  Eric Blake  <ebb9@byu.net>
24197
24198         tests: avoid false negative with --with-packager
24199         * tests/test-version-etc.sh: Discard packager information.
24200         * tests/test-argp-version-etc-1.sh: Likewise.
24201         Reported by Mike Frysinger.
24202
24203         utimens: fix regression on Solaris
24204         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24205         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24206         can only change fd timestamps via futimesat.  Instead, use an
24207         additional witness macro to avoid BSD bug.
24208         Reported by Jim Meyering.
24209
24210 2009-11-17  Eric Blake  <ebb9@byu.net>
24211
24212         usleep: use it to simplify tests
24213         * modules/stat-time-tests (Depends-on): Add usleep.
24214         (configure.ac): Drop usleep check.
24215         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24216         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24217         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24218         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24219         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24220         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24221         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24222         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24223         Likewise.
24224         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24225         * tests/test-lchown.h (nap): Likewise.
24226         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24227         * tests/test-stat-time.c (nap): Likewise.
24228         * tests/test-utimens-common.h (nap): Update comments.
24229
24230         usleep: new module
24231         * modules/usleep: New file.
24232         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24233         * lib/usleep.c (usleep): Likewise.
24234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24235         * modules/unistd (Makefile.am): Substitute witnesses.
24236         * lib/unistd.in.h (usleep): Add declaration.
24237         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24238         * MODULES.html.sh (Date and time): Likewise.
24239         * modules/usleep-tests (Depends-on): New test.
24240         * tests/test-usleep.c: New file.
24241
24242         chown: work around OpenBSD bug
24243         * lib/chown.c (rpl_chown): Work around the bug.
24244         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24245         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24246         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24247         * modules/chown (Depends-on): Add stdbool.
24248         * modules/lchown (Depends-on): Likewise.
24249         * doc/posix-functions/chown.texi (chown): Document the bug.
24250         * doc/posix-functions/lchown.texi (lchown): Likewise.
24251         * tests/test-lchown.h (test_chown): Relax test.
24252
24253         mkstemp: avoid conflict with C++ keyword template
24254         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24255         * lib/mkostemp.c (mkostemp): Likewise.
24256         * lib/mkostemps.c (mkostemps): Likewise.
24257         * lib/mkstemp.c (mkstemp): Likewise.
24258         * lib/mkstemps.c (mkstemps): Likewise.
24259
24260         xalloc-die-tests: optimize
24261         * tests/test-xalloc-die.sh: Reduce number of processes.
24262
24263 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24264
24265         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24266         patch from ludo@gnu.org (Ludovic Courtès).
24267
24268 2009-11-17  Jim Meyering  <meyering@redhat.com>
24269
24270         version-etc: use proper license string
24271         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24272         * modules/version-etc-fsf: Likewise.
24273
24274 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24275
24276         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24277         printed to stdout.  Deal with EOL differences.
24278
24279 2009-11-17  Eric Blake  <ebb9@byu.net>
24280
24281         unsetenv: work around Solaris bug
24282         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24283         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24284         Reported by Jim Meyering.
24285
24286         vasnprintf: avoid compiler warnings
24287         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24288         variables.
24289         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24290
24291 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24292
24293         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24294         settings since xalloc-die is no longer the self test,
24295         xalloc-die.sh is.
24296
24297 2009-11-17  Jim Meyering  <meyering@redhat.com>
24298
24299         test-xalloc-die.sh: make the code agree with the commit log
24300         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24301         at the end, just in case you happen to have a test-xalloc-die
24302         program in some other PATH directory.
24303
24304         test-xalloc-die.sh: fix a portability bug
24305         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24306         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24307         Otherwise, argv[0] (as often seen in diagnostics) would be too
24308         system-dependent, sometimes with, and sometimes without the leading "./".
24309
24310         version-etc-fsf: relax license to LGPLv3+
24311         * modules/version-etc-fsf (License): Relax license.
24312
24313 2009-11-16  Eric Blake  <ebb9@byu.net>
24314
24315         xalloc-die-tests: avoid printing null pointer
24316         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24317         shell script.
24318         * tests/test-xalloc-die.c (program_name): Declare.
24319         * tests/test-xalloc-die.sh (tmpfiles): New file.
24320
24321         setenv, unsetenv: work around various bugs
24322         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24323         (setenv) [HAVE_SETENV]: Work around bugs.
24324         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24325         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24326         for bugs.
24327         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24328         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24330         * modules/stdlib (Makefile.am): Update substitutions.
24331         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24332         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24333         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24334         * modules/setenv-tests: New test.
24335         * modules/unsetenv-tests: Likewise.
24336         * tests/test-setenv.c: New file.
24337         * tests/test-unsetenv.c: Likewise.
24338
24339 2009-11-16  Jim Meyering  <meyering@redhat.com>
24340
24341         version-etc: relax license to LGPLv3+
24342         * modules/version-etc (License): Relax license.
24343
24344         better AC_REQUIRE expanded-before-required-warning avoidance
24345         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24346         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24347         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24348         which is no longer needed.
24349
24350 2009-11-16  Eric Blake  <ebb9@byu.net>
24351
24352         test-freading: clean up temporary file
24353         * tests/test-freading.c (main): Remove file on success, and use
24354         ASSERT more liberally.
24355         Reported by Jim Meyering.
24356
24357 2009-11-16  Jim Meyering  <meyering@redhat.com>
24358
24359         avoid new AC_REQUIRE expanded-before-required warnings
24360         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24361         merely using it.
24362         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24363         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24364
24365 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24366
24367         * tests/test-xalloc-die.c: New file.
24368         * modules/xalloc-die-tests: New file.
24369         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24370         XFAIL_TESTS so it can be appended by modules.
24371
24372 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24373
24374         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24375         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24376
24377 2009-11-14  Eric Blake  <ebb9@byu.net>
24378
24379         fnmatch: avoid compiler warning
24380         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24381         to silence compiler warning about mismatch signedness in ?:.
24382         Reported by Robert Millan.
24383
24384         intprops: add double-inclusion guard
24385         * lib/intprops.h: Allow idempotent includes.
24386         Suggested by Bruce Korb.
24387
24388         openat: detect Solaris fchownat bug
24389         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24390         penalizing glibc chownat when only lchownat is broken.
24391         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24392         trailing slash bugs.
24393         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24394         * modules/openat-tests (Files): Include more files.
24395         (Depends-on): Add mgetgroups, sleep, stat-time.
24396         (configure.ac): Add additional checks.
24397         (Makefile.am): Build new test.
24398         * tests/test-fchownat.c: New file.
24399
24400         lchown: detect Solaris and FreeBSD bug
24401         * lib/lchown.c (rpl_lchown): Work around bug.
24402         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24404         * modules/unistd (Makefile.am): Populate it.
24405         * lib/unistd.in.h (lchown): Update declaration.
24406         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24407         * modules/lchown-tests: New file.
24408         * tests/test-lchown.h (test_lchown): Likewise.
24409         * tests/test-lchown.c (main): Likewise.
24410
24411         chown: detect Solaris and FreeBSD bug
24412         * lib/chown.c (rpl_chown): Work around bug.
24413         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24414         (gl_PREREQ_CHOWN): Delete.
24415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24416         * modules/unistd (Makefile.am): Populate it.
24417         * lib/unistd.in.h (chown): Update declaration.
24418         * lib/lchown.c (chown): Update client.
24419         * modules/lchown (Depends-on): Add lstat.
24420         * doc/posix-functions/chown.texi (chown): Document the bug.
24421         * doc/posix-functions/getgroups.texi (getgroups): Document
24422         getgroups pitfall.
24423         * modules/chown-tests: New file.
24424         * tests/test-chown.h (test_chown): Likewise.
24425         * tests/test-chown.c (main): Likewise.
24426
24427 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24428
24429         gnulib-tool: correctly detect absence of m4 directories
24430         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24431
24432 2009-11-14  Jim Meyering  <meyering@redhat.com>
24433
24434         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24435         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24436
24437 2009-11-14  John W. Eaton  <jwe@gnu.org>
24438
24439         strftime.h: wrap funtion declaration in extern "C" block
24440         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24441
24442 2009-11-13  Eric Blake  <ebb9@byu.net>
24443
24444         getgroups: avoid compiler warning
24445         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24446
24447         getgroups: work around FreeBSD bug
24448         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24449         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24450         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24451         * tests/test-getgroups.c (main): Fix buffer overrun.
24452
24453         getgroups: avoid compilation failure
24454         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24455         * modules/getgroups (Depends-on): Add stdint.
24456
24457 2009-11-13  Jim Meyering  <meyering@redhat.com>
24458
24459         test-getgroups: avoid compilation failure
24460         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24461
24462 2009-11-13  Eric Blake  <ebb9@byu.net>
24463
24464         mgetgroups: new module, taken from coreutils
24465         * modules/mgetgroups: New file.
24466         * lib/mgetgroups.h: Likewise.
24467         * lib/mgetgroups.c (mgetgroups): Likewise.
24468         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24469         * MODULES.html.sh (Users and groups): Mention it.
24470
24471         getgroups: don't expose GETGROUPS_T to user
24472         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24473         an element at a time if GETGROUPS_T is wrong size.
24474         * lib/getugroups.h (getugroups): Change signature.
24475         * lib/unistd.in.h (getgroups): Likewise.
24476         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24477         signature needs fixing.
24478         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24479         AC_TYPE_GETGROUPS.
24480         * modules/group-member (Depends-on): Add getgroups.
24481         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24482         (group_member): Rely on getgroups replacement.
24483         * lib/getugroups.c (getugroups): Use gid_t.
24484         * tests/test-getgroups.c (main): Likewise.
24485         * NEWS: Mention the signature change.
24486         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24487         problem with signature.
24488         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24489         GETGROUPS_T is still useful for setgroups.
24490
24491         getgroups, getugroups: provide stubs for mingw
24492         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24493         * lib/getugroups.c (getugroups): Likewise.
24494         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24495         function.  Modernize replacement scheme.
24496         (gl_PREREQ_GETGROUPS): Delete.
24497         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24498         * modules/getgroups (configure.ac): Declare witness.
24499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24500         * modules/unistd (Depends-on): Substitute witness.
24501         * lib/unistd.in.h (getgroups): Declare replacement.
24502
24503         getgroups: avoid calling exit
24504         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24505         drop xalloc.
24506         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24507         dependencies.
24508         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24509         exiting, in the rare case of malloc failure.
24510
24511         getgroups: fix logic error
24512         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24513         has more than 20 groups.
24514         * modules/getgroups-tests: New test.
24515         * tests/test-getgroups.c: New file.
24516
24517 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24518
24519         * tests/test-base64.c: Improve.
24520
24521 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24522
24523         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24524         Blake <ebb9@byu.net>.
24525
24526 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24527
24528         * tests/test-xvasprintf.c: Add %s%s related checks.
24529
24530 2009-11-12  Eric Blake  <ebb9@byu.net>
24531
24532         version-etc: match standards.texi style
24533         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24534         and use <> only for URLs.
24535
24536 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24537
24538         fts: do not fail on a submount during traversal
24539         * lib/fts.c (fts_build): Read the stat info again after opening
24540         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24541         Original report at http://bugzilla.redhat.com/501848.
24542
24543 2009-11-12  Jim Meyering  <meyering@redhat.com>
24544
24545         bootstrap: sync from coreutils
24546         * build-aux/bootstrap (bootstrap_epilogue): New function.
24547         Use git_modules_config in one more place.  This make bootstrap's
24548         --gnulib-srcdir option more useful for testing.
24549
24550         bootstrap: generalize autoheader check
24551         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24552         AC_CONFIG_HEADERS.
24553
24554 2009-11-11  Eric Blake  <ebb9@byu.net>
24555
24556         mkfifoat: use new modules for Solaris and BSD bugs
24557         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24558         * lib/mkfifoat.c (mknodat): Split...
24559         * lib/mknodat.c (mknodat): ...into new file.
24560         * modules/mkfifoat (Files): Ship new file.
24561         (Depends-on): Add mkfifo, mknod.
24562         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24563         (Depends-on): Add symlink.
24564         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24565         redundant with test_mkfifo.h.
24566         (do_mkfifoat, do_mknodat): New helpers.
24567
24568         mknod: new module
24569         * modules/mknod: New file.
24570         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24571         * lib/mknod.c (mknod): Likewise.
24572         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24573         defaults.
24574         * modules/sys_stat (Makefile.am): Substitute them.
24575         * lib/sys_stat.in.h (mknod): Declare replacement.
24576         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24577         Document it.
24578         * doc/posix-functions/mknod.texi (mknod): Likewise.
24579         * modules/mknod-tests: New test.
24580         * tests/test-mknod.c: Likewise.
24581
24582         mkfifo: new module
24583         * modules/mkfifo: New file.
24584         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24585         * lib/mkfifo.c (mkfifo): Likewise.
24586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24587         defaults.
24588         * modules/sys_stat (Makefile.am): Substitute them.
24589         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24590         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24591         Document it.
24592         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24593         * modules/mkfifo-tests: New test.
24594         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24595         from test-mkfifoat.c.
24596         * tests/test-mkfifo.c: New file.
24597
24598         readlink: detect FreeBSD bug
24599         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24600         slash on symlink.
24601         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24602         * tests/test-readlink.h (test_readlink): Enhance test.
24603
24604         symlink: detect FreeBSD bug
24605         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24606         slash on symlink.
24607         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24608         * tests/test-symlink.h (test_symlink): Enhance test.
24609
24610 2009-11-10  Eric Blake  <ebb9@byu.net>
24611
24612         link: detect FreeBSD bug
24613         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24614         symlink.
24615         * doc/posix-functions/link.texi (link): Document the bug.
24616         * tests/test-link.h (test_link): Enhance test.
24617         * tests/test-linkat.c (main): Update caller.
24618
24619         unlink, remove: detect FreeBSD bug
24620         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24621         slash on symlink.
24622         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24623         * doc/posix-functions/remove.texi (remove): Likewise.
24624         * tests/test-unlink.h (test_unlink): Enhance test.
24625         * tests/test-remove.c (main): Likewise.
24626
24627 2009-11-09  Eric Blake  <ebb9@byu.net>
24628
24629         rename: detect FreeBSD bug
24630         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24631         slash on symlink.
24632         * modules/renameat-tests (Depends-on): Add filenamecat.
24633         * tests/test-rename.h (test_rename): Allow one more errno.
24634         * tests/test-renameat.c (main): Likewise.
24635         * doc/posix-functions/rename.texi (rename): Document the bug.
24636
24637         open: detect FreeBSD bug
24638         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24639         symlink.
24640         * doc/posix-functions/open.texi (open): Document the bug.
24641         * doc/posix-functions/utimes.texi (utimes): Likewise.
24642         * tests/test-open.h (test_open): Add parameters, and test symlink
24643         handling.
24644         * tests/test-open.c (main): Adjust caller.
24645         * tests/test-fcntl-safer.c (main): Likewise.
24646         * modules/open-tests (Depends-on): Add stdbool, symlink.
24647         * modules/fcntl-safer-tests (Depends-on): Likewise.
24648         * tests/test-openat.c (main): Add test-open tests.
24649
24650         stat: detect FreeBSD bug
24651         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24652         symlink.
24653         * doc/posix-functions/stat.texi (stat): Document the bug.
24654         * tests/test-stat.h (test_stat_func): Add argument.
24655         * tests/test-stat.c (main): Adjust caller.
24656         * tests/test-fstatat.c (main): Likewise.
24657         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24658         Reported by Jim Meyering.
24659
24660 2009-11-09  James Youngman  <jay@gnu.org>
24661
24662         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24663         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24664
24665 2009-11-08  Jim Meyering  <meyering@redhat.com>
24666
24667         utimens: remove invalid futimesat call
24668         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24669         It used the file descriptor of the target file as the DIR_FD
24670         parameter and NULL as the file name.  That caused failure with
24671         errno == EFAULT on FreeBSD-8.0-rc2
24672
24673 2009-11-07  Eric Blake  <ebb9@byu.net>
24674
24675         fflush, freadseek: use fseeko, not fseek
24676         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24677         (clear_ungetc_buffer): Avoid potential problems on large files.
24678         * lib/freadseek.c (freadseek): Likewise.
24679         * modules/freadseek (Depends-on): Add fseeko.
24680         * modules/fseek (configure.ac): Set a witness.
24681         * tests/test-fflush.c (main): Use fseeko.
24682         * tests/test-fpurge.c (fseek): Disable link warning.
24683         * tests/test-freadable.c (fseek): Likewise.
24684         * tests/test-freading.c (fseek): Likewise.
24685         * tests/test-fseeko.c (fseek): Likewise.
24686         * tests/test-ftell.c (fseek): Likewise.
24687         * tests/test-ftello.c (fseek): Likewise.
24688         * tests/test-fwritable.c (fseek): Likewise.
24689         * tests/test-fwriting.c (fseek): Likewise.
24690
24691 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24692
24693         * modules/memchr (Depends-on): Drop getpagesize dependency.
24694
24695 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24696
24697         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24698         Reported by Ludovic Courtès.
24699         * build-aux/pmccabe2html: Improve example usage.
24700         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24701
24702 2009-11-06  Jim Meyering  <meyering@redhat.com>
24703
24704         do-release-commit-and-tag: New module.
24705         Automate the release-commit and tag process.
24706         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24707         * modules/do-release-commit-and-tag: New file.
24708         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24709
24710 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24711
24712         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24713         because test-select.c uses inet_pton.
24714
24715 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24716
24717         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24718         GETADDRINFO_LIB.  Bump serial number.
24719         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24720         Suggested by Eric Blake <ebb9@byu.net>.
24721
24722 2009-11-05  Eric Blake  <ebb9@byu.net>
24723
24724         strtod: detect darwin bug
24725         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24726         Reported by Leo Davis.
24727
24728         freopen-safer: new module
24729         * modules/freopen-safer: New module.
24730         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24731         * lib/freopen-safer.c (freopen_safer): New file.
24732         * lib/stdio-safer.h (freopen_safer): New declaration.
24733         * lib/stdio--.h (freopen): New override.
24734         * MODULES.html.sh (File stream based Input/Output): Mention it.
24735         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24736         freopen-safer module.
24737         * doc/posix-functions/stderr.texi (stderr): Likewise.
24738         * doc/posix-functions/stdin.texi (stdin): Likewise.
24739         * doc/posix-functions/stdout.texi (stdout): Likewise.
24740         * modules/freopen-safer-tests: New test.
24741         * tests/test-reopen-safer.c: New file.
24742
24743 2009-11-05  Jim Meyering  <meyering@redhat.com>
24744
24745         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24746         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24747
24748 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24749
24750         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24751
24752 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24753
24754         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24755
24756 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24757
24758         Fix link error.
24759         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24760         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24761
24762 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24763
24764         * tests/test-func.c: Also test value of __func__.
24765
24766 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24767
24768         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24769         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24770
24771 2009-11-05  Bruno Haible  <bruno@clisp.org>
24772
24773         Fix link error.
24774         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24775         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24776         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24777
24778 2009-11-05  Bruno Haible  <bruno@clisp.org>
24779
24780         Tests for module 'inet_pton'.
24781         * modules/inet_pton-tests: New file.
24782         * tests/test-inet_pton.c: New file.
24783
24784 2009-11-05  Bruno Haible  <bruno@clisp.org>
24785
24786         Tests for module 'inet_ntop'.
24787         * modules/inet_ntop-tests: New file.
24788         * tests/test-inet_ntop.c: New file.
24789
24790 2009-11-04  Eric Blake  <ebb9@byu.net>
24791
24792         stdlib-safer: wrap all mkstemp variants
24793         * modules/mkostemp (configure.ac): Set witness.
24794         * modules/mkostemps (configure.ac): Likewise.
24795         * modules/mkstemps (configure.ac): Likewise.
24796         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24797         (mkstemps_safer): Wrap more functions.
24798         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24799         wrapping.
24800         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24801         (mkstemps_safer): Implement the wrappers.
24802
24803         mkstemps, mkostemps: new modules
24804         * modules/mkostemps: New module.
24805         * modules/mkstemps: Likewise.
24806         * lib/mkostemps.c (mkostemps): New file.
24807         * lib/mkstemps.c (mkstemps): Likewise.
24808         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24809         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24811         * modules/stdlib (Makefile.am): Substitute them.
24812         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24813         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24814         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24815         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24816         * MODULES.html.sh (File system functions): Mention them.
24817
24818         tempname: resync from glibc
24819         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24820         same values for __GT_FILE as glibc.  Abort even when assertions
24821         are disabled.
24822         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24823         match its value otherwise.  Allow idempotent inclusion.
24824         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24825         * lib/mkostemp.c (mkostemp): Likewise.
24826         * lib/mkstemp.c (mkstemp): Likewise.
24827         * lib/tmpfile.c (tmpfile): Likewise.
24828         * NEWS: Document this.
24829
24830         utimens: fix use of futimens on older Linux
24831         * lib/utimens.c (fdutimens): Use updated, rather than original,
24832         timespec to avoid bug in older Linux kernel.
24833         Reported by Simon Josefsson.
24834
24835 2009-11-04  Bruno Haible  <bruno@clisp.org>
24836
24837         Make num_processors more flexible and consistent.
24838         * lib/nproc.h (enum nproc_query): New type.
24839         (num_processors): Add a 'query' argument.
24840         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24841         (num_processors): Add a 'query' argument. Test the value of the
24842         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24843         mingw, count the number of CPUs available for the current process.
24844         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24845         Check for sched_getaffinity and sched_getaffinity_np.
24846         * modules/nproc (Depends-on): Add c-ctype, extensions.
24847         * NEWS: Mention the change.
24848
24849 2009-11-03  Bruno Haible  <bruno@clisp.org>
24850
24851         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24852
24853 2009-11-03  Jim Meyering  <meyering@redhat.com>
24854
24855         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24856         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24857         if it is defined.
24858
24859 2009-11-02  Eric Blake  <ebb9@byu.net>
24860
24861         mktime, timegm: share common declaration
24862         * lib/mktime-internal.h: New file.
24863         * lib/mktime.c: Use it rather than open-coding a declaration.
24864         * lib/timegm.c: Likewise.
24865         * modules/mktime (Files): Ship it.
24866         * modules/timegm (Files): Likewise.
24867         Suggested by Bruno Haible.
24868
24869         test-update-copyright: update test to match script changes
24870         * tests/test-update-copyright.sh: Avoid hard-coding perl
24871         location.  Don't update *.bak created by earlier runs.
24872
24873 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24874             Simon Josefsson  <simon@josefsson.org>
24875             Bruno Haible  <bruno@clisp.org>
24876
24877         Fix link error on Solaris 8.
24878         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24879         also in libnsl. Define also INET_PTON_LIB.
24880         * modules/inet_pton (Link): New section.
24881
24882 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24883             Bruno Haible  <bruno@clisp.org>
24884
24885         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24886         * modules/inet_ntop (Link): New section.
24887         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24888
24889 2009-11-02  Eric Blake  <ebb9@byu.net>
24890
24891         maint: avoid compiler warnings in m4 macros
24892         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24893         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24894
24895 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24896
24897         * m4/pmccabe2html.m4: Remove file.
24898         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24899         function.  Change maintainer.
24900         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24901         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24902         Courtès).
24903
24904 2009-10-31  Eric Blake  <ebb9@byu.net>
24905
24906         fseeko: fix m4 regression
24907         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24908         regression from 2009-10-27.
24909         Reported by Ralf Wildenhues.
24910
24911 2009-10-31  Jim Meyering  <meyering@redhat.com>
24912
24913         inttostr: aesthetics and improved (compile-time) safety
24914         Define inttype_is_signed rather than inttype_is_unsigned,
24915         since the sole use is via "#if inttype_is_signed".
24916         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24917         inttype_is_unsigned.
24918         * lib/offtostr.c (inttype_is_signed): Likewise.
24919         * lib/uinttostr.c (inttype_is_signed): Likewise.
24920         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24921         * lib/inttostr.c (inttostr): Use verify to cross-check the
24922         inttype_is_signed value and the signedness of the actual type.
24923         * modules/inttostr (Depends-on): Add verify.
24924
24925 2009-10-30  Eric Blake  <ebb9@byu.net>
24926
24927         build: avoid compiler warnings
24928         * lib/fchmodat.c (lchmod): Mark unused variables.
24929         * lib/getopt.c (_getopt_initialize): Likewise.
24930         * lib/mktime.c (__mktime_internal): Provide prototype.
24931         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24932         older gcc that do not understand #pragma GCC diagnostic.
24933         * lib/uinttostr.c (inttype_is_unsigned): Define.
24934         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24935
24936 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24937
24938         stat: fix compilation on AIX
24939         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24940         only see struct stat64.
24941
24942 2009-10-30  Eric Blake  <ebb9@byu.net>
24943
24944         exclude: make more robust
24945         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24946         rather than masking a coding bug.
24947         Suggested by Bruno Haible.
24948
24949 2009-10-30  Jim Meyering  <meyering@redhat.com>
24950
24951         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24952         Rather than putting #!/usr/bin/perl on the first line,
24953         start with a variant of what's recommended by "man perlrun" that
24954         invokes the first "perl" program from your shell's search path.
24955         * build-aux/gitlog-to-changelog: Replace #!... as above.
24956         Add a "Local Variables" perl mode setting.
24957         Prompted by a patch from Ludovic Courtès.
24958         Improved by Eric Blake.
24959         * build-aux/useless-if-before-free: Likewise.
24960         * build-aux/announce-gen: Likewise.
24961         * build-aux/update-copyright: Likewise.
24962
24963 2009-10-29  Eric Blake  <ebb9@byu.net>
24964
24965         filenamecat-lgpl: adjust clients
24966         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24967         filenamecat.
24968         * modules/renameat (Depends-on): Likewise.
24969
24970         filenamecat: split into filenamecat-lgpl
24971         * modules/filenamecat-lgpl: New module.
24972         * modules/filenamecat (Files): Move library-safe files into
24973         filenamecat-lgpl.
24974         (Depends-on): Add filenamecat-lgpl.
24975         (configure.ac): Declare witness.
24976         * lib/filenamecat.h (file_name_concat): Only declare when using
24977         GPL module.
24978         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24979         Move...
24980         * lib/filenamecat-lgpl.c: ...into new file.
24981         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24982         (gl_FILE_NAME_CONCAT): Use it.
24983         * MODULES.html.sh (File system functions): Mention new module.
24984
24985         argp: avoid memory leak
24986         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24987         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24988         base_name, since the latter malloc()s and can call exit().
24989         Leak introduced 2006-07-03.
24990
24991         dirname-lgpl: adjust clients that don't need full dirname
24992         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24993         * modules/filenamecat (Depends-on): Likewise.
24994         * modules/linkat (Depends-on): Likewise.
24995         * modules/mkancesdirs (Depends-on): Likewise.
24996         * modules/mkdir (Depends-on): Likewise.
24997         * modules/openat (Depends-on): Likewise.
24998         * modules/savewd (Depends-on): Likewise.
24999         * modules/rename (Depends-on): Likewise.
25000         (License): Relax license.
25001         * modules/mkdir-tests (Depends-on): Drop progname.
25002         (Makefile.am): Delete unneeded LDADD.
25003         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25004
25005         dirname: split into dirname-lgpl
25006         * modules/dirname-lgpl: New module.
25007         * modules/dirname (Files): Move library-safe files into
25008         dirname-lgpl.
25009         (Depends-on): Add dirname-lgpl.
25010         (configure.ac): Declare witness.
25011         * modules/double-slash-root (License): Relax license.
25012         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25013         module.
25014         * lib/dirname.c (dir_len, mdir_name): Move...
25015         * lib/dirname-lgpl.c: ...into new file.
25016         * lib/basename.c (last_component, base_len): Move...
25017         * lib/basename-lgpl.c: ...into new file.
25018         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25019         (gl_DIRNAME): Use it.
25020         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25021         Mention new module.
25022         * modules/dirname-tests (Depends-on): Add progname.
25023         * tests/test-dirname.c (program_name): Delete.
25024
25025         mkdir: make safe for libraries
25026         * modules/mkdir (Depends-on): Drop xalloc.
25027         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25028         exit.
25029
25030         tests: avoid some compiler warnings
25031         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25032         literals.
25033         * tests/test-memchr.c (main): Avoid type mismatch.
25034         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25035         * tests/test-base64.c (main): Likewise.
25036         * tests/test-getdelim.c (main): Likewise.
25037         * tests/test-gethostname.c (main): Likewise.
25038         * tests/test-getline.c (main): Likewise.
25039         * tests/test-netinet_in.c (main): Likewise.
25040         * tests/test-select.c (open_server_socket, main): Likewise.
25041         * tests/test-select-stdin.c (main): Likewise.
25042         * tests/test-sockets.c (main): Likewise.
25043         * tests/test-strsignal.c (main): Likewise.
25044         * tests/test-sys_select.c (main): Likewise.
25045         * tests/test-sys_socket.c (main): Likewise.
25046         * tests/test-u64.c (main): Likewise.
25047         * tests/test-xfprintf-posix.c (main): Likewise.
25048         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25049
25050         sockets: avoid compiler warning
25051         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25052
25053         maint: detect usage(1) and other suspicious exits
25054         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25055
25056 2009-10-29  Jim Meyering  <meyering@redhat.com>
25057
25058         timespec: long-to-int truncation could make timespec_cmp malfunction
25059         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25060         a multiple of 2^32 nanoseconds as no difference.
25061
25062 2009-10-28  Jim Meyering  <meyering@redhat.com>
25063
25064         fprintftime: wrap macro code argument in "do {...} while(0)"
25065         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25066         cpy macro must be a statement that can be followed by a semicolon.
25067         Now that the else clause contains a comment and is hence longer
25068         than one line, I require curly braces.  That in turn requires
25069         that we wrap this code block in the standard do...while(0).
25070
25071         fprintftime: remove stray semicolon from previous change
25072         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25073
25074         fprintftime: avoid a warning about ignored fwrite return value
25075         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25076         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25077         that is unsafe.
25078         * modules/fprintftime (Depends-on): Add ignore-value.
25079
25080         exclude: avoid an unwarranted warning
25081         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25082
25083 2009-10-27  Eric Blake  <ebb9@byu.net>
25084
25085         fseek: avoid compilation failure when fflush is replaced
25086         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25087         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25088         module is in use.
25089         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25090         module is not in use; since REPLACE_FSEEK worked otherwise.
25091         (GNULIB_FTELLO): Likewise for ftell.
25092         Reported by Ian Beckwith and others.
25093
25094 2009-10-27  Bruno Haible  <bruno@clisp.org>
25095
25096         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25097         Reported by Jim Meyering.
25098
25099 2009-10-27  Jim Meyering  <jim@meyering.net>
25100             Bruno Haible  <bruno@clisp.org>
25101
25102         Avoid warning despite dropping the return value of fwrite.
25103         * lib/unicodeio.c: Include ignore-value.h.
25104         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25105         * modules/unicodeio (Depends-on): Add ignore-value.
25106
25107 2009-10-26  Eric Blake  <ebb9@byu.net>
25108
25109         areadlinkat: fix fallback path
25110         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25111         pointer and zero.
25112
25113 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25114
25115         Use a better IO block size for modern systems
25116         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25117         * lib/md2.c: Likewise.
25118         * lib/md4.c: Likewise.
25119         * lib/md5.c: Likewise.
25120         * lib/sha1.c: Likewise.
25121         * lib/sha256.c: Likewise.
25122         * lib/sha512.c: Likewise.
25123
25124 2009-10-22  Eric Blake  <ebb9@byu.net>
25125
25126         tests: avoid several compiler warnings
25127         * tests/test-getcwd.c (main): Avoid buffer underflow.
25128         * tests/test-getdate.c (main): String literals are not safe with
25129         putenv, so use setenv.  Declare unused argument.
25130         * modules/getdate-tests (Depends-on): Add setenv.
25131         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25132         problems with string literals in char *.
25133         * tests/test-hash.c (main): Avoid shadowing declaration.
25134         (insert_new): Treat string literals as char const *.
25135         * tests/test-getopt.h (test_getopt): Likewise.
25136         (getopt_loop): Alter types to minimize casting elsewhere.
25137         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25138         (test_getopt_long_posix): Likewise.
25139         (do_getopt_long): Add wrapper to minimize casting.
25140         * tests/test-atexit.c (clear_temp_file): Use void.
25141         * tests/test-areadlink-with-size.c (main): Declare unused
25142         arguments.
25143         * tests/test-areadlink.c (main): Likewise.
25144         * tests/test-areadlinkat-with-size.c (main): Likewise.
25145         * tests/test-areadlinkat.c (main): Likewise.
25146         * tests/test-canonicalize-lgpl.c (main): Likewise.
25147         * tests/test-canonicalize.c (main): Likewise.
25148         * tests/test-dirent-safer.c (main): Likewise.
25149         * tests/test-dirname.c (main): Likewise.
25150         * tests/test-dup2.c (main): Likewise.
25151         * tests/test-fchdir.c (main): Likewise.
25152         * tests/test-fcntl-h.c (main): Likewise.
25153         * tests/test-fcntl-safer.c (main): Likewise.
25154         * tests/test-fdopendir.c (main): Likewise.
25155         * tests/test-fdutimensat.c (main): Likewise.
25156         * tests/test-fflush.c (main): Likewise.
25157         * tests/test-filenamecat.c (main): Likewise.
25158         * tests/test-filevercmp.c (main): Likewise.
25159         * tests/test-fopen-safer.c (main): Likewise.
25160         * tests/test-fopen.c (main): Likewise.
25161         * tests/test-fpending.c (main): Likewise.
25162         * tests/test-fpurge.c (main): Likewise.
25163         * tests/test-freading.c (main): Likewise.
25164         * tests/test-fstatat.c (main): Likewise.
25165         * tests/test-fsync.c (main): Likewise.
25166         * tests/test-futimens.c (main): Likewise.
25167         * tests/test-getndelim2.c (main): Likewise.
25168         * tests/test-gettimeofday.c (main): Likewise.
25169         * tests/test-getopt.c (main): Likewise.
25170         * tests/test-i-ring.c (main): Likewise.
25171         * tests/test-inttypes.c (main): Likewise.
25172         * tests/test-link.c (main): Likewise.
25173         * tests/test-lstat.c (main): Likewise.
25174         * tests/test-math.c (main): Likewise.
25175         * tests/test-md5.c (main): Likewise.
25176         * tests/test-memchr2.c (main): Likewise.
25177         * tests/test-memrchr.c (main): Likewise.
25178         * tests/test-mkdir.c (main): Likewise.
25179         * tests/test-mkdirat.c (main): Likewise.
25180         * tests/test-mkfifoat.c (main): Likewise.
25181         * tests/test-open.c (main): Likewise.
25182         * tests/test-openat-safer.c (main): Likewise.
25183         * tests/test-openat.c (main): Likewise.
25184         * tests/test-quotearg.c (main): Likewise.
25185         * tests/test-rawmemchr.c (main): Likewise.
25186         * tests/test-readlink.c (main): Likewise.
25187         * tests/test-remove.c (main): Likewise.
25188         * tests/test-rename.c (main): Likewise.
25189         * tests/test-renameat.c (main): Likewise.
25190         * tests/test-rmdir.c (main): Likewise.
25191         * tests/test-sha1.c (main): Likewise.
25192         * tests/test-signal.c (main): Likewise.
25193         * tests/test-sigaction.c (main): Likewise.
25194         * tests/test-stat.c (main): Likewise.
25195         * tests/test-stat-time.c (main): Likewise.
25196         * tests/test-stddef.c (main): Likewise.
25197         * tests/test-stdint.c (main): Likewise.
25198         * tests/test-stdio.c (main): Likewise.
25199         * tests/test-stdlib.c (main): Likewise.
25200         * tests/test-strchrnul.c (main): Likewise.
25201         * tests/test-strerror.c (main): Likewise.
25202         * tests/test-string.c (main): Likewise.
25203         * tests/test-strtod.c (main): Likewise.
25204         * tests/test-strverscmp.c (main): Likewise.
25205         * tests/test-symlink.c (main): Likewise.
25206         * tests/test-symlinkat.c (main): Likewise.
25207         * tests/test-sys_stat.c (main): Likewise.
25208         * tests/test-sys_time.c (main): Likewise.
25209         * tests/test-time.c (main): Likewise.
25210         * tests/test-unistd.c (main): Likewise.
25211         * tests/test-unlink.c (main): Likewise.
25212         * tests/test-unlinkat.c (main): Likewise.
25213         * tests/test-utimens.c (main): Likewise.
25214         * tests/test-utimensat.c (main): Likewise.
25215         * tests/test-version-etc.c (main): Likewise.
25216         * tests/test-wchar.c (main): Likewise.
25217         * tests/test-wctype.c (main): Likewise.
25218         * tests/test-xprintf-posix.c (main): Likewise.
25219         * tests/test-posixtm.c (main): Likewise.
25220         (STREQ): Delete unused macro.
25221         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25222         shadowed variables.
25223         * tests/test-memchr.c (main): Likewise.
25224
25225 2009-10-21  Eric Blake  <ebb9@byu.net>
25226
25227         areadlinkat: avoid failure on older glibc
25228         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25229         rather than mis-comparing 0 against FUNC_RESULT of char*.
25230
25231 2009-10-21  Bruno Haible  <bruno@clisp.org>
25232
25233         * modules/stpncpy (License): Relicense under LGPLv2+.
25234         Reported by David Lutterkort <lutter@redhat.com>.
25235
25236 2009-10-20  Eric Blake  <ebb9@byu.net>
25237
25238         utimensat: work around Solaris 9 bug
25239         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25240         has trailing slash bugs.
25241         * tests/test-lutimens.h (test_lutimens): Enhance test.
25242         * tests/test-utimens.h (test_utimens): Likewise.
25243         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25244         * doc/posix-functions/utimes.texi (utimes): Likewise.
25245         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25246         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25247         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25248         * doc/posix-functions/futimens.texi (futimens): Likewise.
25249
25250         fdutimensat: new module
25251         * modules/fdutimensat: New file.
25252         * lib/fdutimensat.c (fdutimensat): Likewise.
25253         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25254         * MODULES.html.sh (File system functions): Mention module.
25255         * modules/fdutimensat-tests: New test.
25256         * tests/test-fdutimensat.c: Likewise.
25257
25258         doc: regenerate INSTALL
25259         * doc/INSTALL: Reflect recent autoconf update.
25260         * doc/INSTALL.ISO: Likewise.
25261         * doc/INSTALL.UTF-8: Likewise.
25262
25263 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25264
25265         acl: warn if ACL support is not detected
25266         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25267
25268 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25269
25270         * lib/nproc.h: Add extern "C" block for C++.
25271
25272 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25273             Bruno Haible  <bruno@clisp.org>
25274
25275         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25276         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25277         * doc/posix-functions/isalpha.texi: Likewise.
25278         * doc/posix-functions/isblank.texi: Likewise.
25279         * doc/posix-functions/iscntrl.texi: Likewise.
25280         * doc/posix-functions/isdigit.texi: Likewise.
25281         * doc/posix-functions/isgraph.texi: Likewise.
25282         * doc/posix-functions/islower.texi: Likewise.
25283         * doc/posix-functions/isprint.texi: Likewise.
25284         * doc/posix-functions/ispunct.texi: Likewise.
25285         * doc/posix-functions/isspace.texi: Likewise.
25286         * doc/posix-functions/isupper.texi: Likewise.
25287         * doc/posix-functions/isxdigit.texi: Likewise.
25288
25289 2009-10-18  Bruno Haible  <bruno@clisp.org>
25290
25291         Tests for module 'isblank'.
25292         * modules/isblank-tests: New file.
25293         * tests/test-isblank.c: New file.
25294
25295         New module 'isblank'.
25296         * lib/isblank.c: New file.
25297         * m4/isblank.m4: New file.
25298         * modules/isblank: New file.
25299         * doc/posix-functions/isblank.texi: Mention the new module.
25300
25301 2009-10-18  Bruno Haible  <bruno@clisp.org>
25302
25303         New module 'ctype'.
25304         * lib/ctype.in.h: New file.
25305         * m4/ctype.m4: New file.
25306         * modules/ctype: New file.
25307         * doc/posix-headers/ctype.texi: Mention the new module.
25308
25309 2009-10-18  Jim Meyering  <meyering@redhat.com>
25310
25311         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25312         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25313         right after its initialization, rather than farther down.
25314         Keeping these in close proximity makes it easier to ensure
25315         that each such variable is initialized.  E.g.,
25316
25317             LIB_CLOCK_GETTIME=
25318             AC_SUBST([LIB_CLOCK_GETTIME])
25319
25320         This change also increments these serial numbers.
25321         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25322         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25324
25325 2009-10-18  Bruno Haible  <bruno@clisp.org>
25326
25327         Don't let environment variables perturb build.
25328         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25329         (gl_PREREQ_GETHRXTIME): ... not here.
25330
25331 2009-10-18  Bruno Haible  <bruno@clisp.org>
25332
25333         Avoid symlink attack in localcharset module.
25334         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25335         (O_NOFOLLOW): Define fallback.
25336         (get_charset_aliases): Don't open the file if it is a symbolic link.
25337         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25338         gl_FCNTL_H.
25339         (gl_FCNTL_H): Require it.
25340         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25341         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25342         Reported by Fergal Glynn <fglynn@veracode.com>.
25343
25344 2009-10-18  Bruno Haible  <bruno@clisp.org>
25345
25346         Implement nproc for mingw.
25347         * lib/nproc.c: Include <windows.h>
25348         (num_processors): On native Windows platforms, try GetSystemInfo.
25349
25350 2009-10-18  Bruno Haible  <bruno@clisp.org>
25351
25352         Implement nproc for IRIX.
25353         * lib/nproc.c: Include <sys/sysmp.h>.
25354         (num_processors): On IRIX systems, try sysmp.
25355         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25356
25357 2009-10-18  Bruno Haible  <bruno@clisp.org>
25358
25359         Implement nproc for HP-UX.
25360         * lib/nproc.c: Include <sys/pstat.h>
25361         (num_processors): On HP-UX systems, try pstat_getdynamic.
25362         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25363         pstat_getdynamic.
25364
25365 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25366             Bruno Haible  <bruno@clisp.org>
25367
25368         Implement nproc for NetBSD, OpenBSD.
25369         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25370         (ARRAY_SIZE): New macro.
25371         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25372         * m4/nproc.m4: New file.
25373         * modules/nproc (Files): Add m4/nproc.m4.
25374         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25375         (Makefile.am): Instead, augment lib_SOURCES.
25376
25377 2009-10-18  Bruno Haible  <bruno@clisp.org>
25378
25379         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25380         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25381         sys/param.h.
25382
25383 2009-10-16  Eric Blake  <ebb9@byu.net>
25384
25385         utimensat: new module
25386         * modules/utimensat: New file.
25387         * lib/utimensat.c (utimensat): Likewise.
25388         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25389         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25390         so we can work around Linux bugs.
25391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25392         * modules/sys_stat (Makefile.am): Substitute them.
25393         * lib/sys_stat.in.h (utimensat): Declare it.
25394         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25395         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25396         * modules/utimensat-tests: New test.
25397         * tests/test-utimensat.c: Likewise.
25398
25399         utimens: let lutimens work on non-symlinks
25400         * lib/utimens.c (lutimens): Fall back to utimens rather than
25401         failing with ENOSYS, when file is not a symlink.
25402         (utimens): Reduce redirection.
25403         * tests/test-lutimens.h (test_lutimens): Update test to cover
25404         non-symlinks.
25405         * tests/test-utimens.h (test_utimens): Update test to cover
25406         symlinks.
25407         * tests/test-utimens.c (main): Update caller.
25408
25409         utimens: cache whether utimensat syscall works
25410         * lib/utimens.c (utimensat_works_really): New cache variable.
25411         (fdutimens, lutimens): Use it to avoid failing syscall.
25412
25413         test-stat-time, test-utimens: improve portability
25414         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25415         ext4 on alpha, and for cygwin.
25416         * tests/test-utimens-common.h: New file.
25417         (nap): Factor delays into single function.
25418         * tests/test-lutimens.h (test_lutimens): Use new header.
25419         * tests/test-futimens.h (test_futimens): Likewise.
25420         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25421         timestamps to occur from same machine, as was done previously for
25422         test_utimens.
25423         * modules/utimens-tests (Files): Ship new file.
25424         * modules/futimens-tests (Files): Likewise.
25425         Reported in part by Jim Meyering.
25426
25427         sys_stat: sort replacement declarations
25428         * lib/sys_stat.in.h: Sort declarations.
25429         * lib/futimens.c (futimens): Fix typo.
25430
25431 2009-10-15  Jim Meyering  <meyering@redhat.com>
25432
25433         don't let environment settings perturb build
25434         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25435         could cause a configure-time and/or build-time malfunction.
25436         Typically, a configure-time function-in-library test is performed
25437         via code like this:
25438
25439           LIB_VAR=
25440           AC_SUBST([LIB_VAR])
25441           prefix_saved_LIBS=$LIBS
25442             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25443                        [test "$ac_cv_search_FUNC" = "none required" ||
25444                         LIB_VAR=$ac_cv_search_FUNC])
25445           LIBS=$prefix_saved_LIBS
25446
25447         However, in each of the files affected by this change, the LIB_VAR=
25448         initialization was omitted.  Thus, when set in the environment, its
25449         value would propagate into generated Makefiles when FUNC is not found
25450         in LIB_NAME.
25451         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25452         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25453         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25454
25455 2009-10-14  Eric Blake  <ebb9@byu.net>
25456
25457         fchdir: avoid infinite recursion in mingw
25458         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25459         recursing.
25460
25461         test-stat-time: port to mingw
25462         * tests/test-stat-time.c (force_unlink): Return a value.
25463         (test_ctime) [W32]: Fix compilation error.
25464         (nap): Don't call usleep with too large an argument.  Use
25465         force_unlink.
25466         * doc/pastposix-functions/usleep.texi (usleep): Document the
25467         portability issue.
25468
25469 2009-10-13  Jim Meyering  <meyering@redhat.com>
25470
25471         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25472         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25473         * modules/pipe-filter-ii: Likewise.
25474         * modules/sys_socket-tests: Likewise.
25475         * modules/tsearch-tests: Likewise.
25476         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25477         (check): Depend on it.
25478
25479 2009-10-12  Eric Blake  <ebb9@byu.net>
25480
25481         utimens-tests: port to NFS file systems
25482         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25483         comparisons to avoid spurious failures from timestamp drift
25484         between NFS machines.
25485
25486 2009-10-12  Eric Blake  <ebb9@byu.net>
25487
25488         stat-time-tests: minor cleanups
25489         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25490         * tests/test-stat-time.c (nap): Separate assignment from call.
25491         Suggested by Paolo Bonzini and Bruno Haible.
25492
25493         sys_stat: guarantee struct timespec
25494         * lib/sys_stat.in.h (includes): Always include <time.h>
25495         * modules/sys_stat (Depends-on): Add time.
25496         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25497         mode_t permission values.
25498         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25499         get at subsecond timestamps.
25500
25501 2009-10-10  Eric Blake  <ebb9@byu.net>
25502
25503         futimens: new module
25504         * modules/futimens: New file.
25505         * lib/futimens.c (futimens): Likewise.
25506         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25507         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25508         we can work around Linux bugs.
25509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25510         * modules/sys_stat (Makefile.am): Substitute them.
25511         * lib/sys_stat.in.h (futimens): Declare it.
25512         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25513         * doc/posix-functions/futimens.texi (futimens): Likewise.
25514         * modules/futimens-tests: New test.
25515         * tests/test-futimens.c: Likewise.
25516
25517         utimens: introduce fdutimens
25518         * lib/utimens.h (fdutimens): New prototype.
25519         * lib/utimens.c (gl_futimens): Move guts...
25520         (fdutimens): ...to new interface.
25521         * tests/test-utimens.c (do_fdutimens): Use it.
25522
25523         utimens: add UTIME_NOW and UTIME_OMIT support
25524         * lib/utimens.c (validate_timespec, update_timespec): New helper
25525         functions.
25526         (gl_futimens, lutimens): Use them.
25527         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25528         stdbool, sys_stat.
25529         (Link): Mention resulting library dependency.
25530         * modules/utimecmp (Link): Likewise.
25531         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25532         (Makefile.am): Pick up library dependency.
25533         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25534         definition.
25535         * tests/test-sys_stat.c: Test the definitions.
25536         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25537         * NEWS: Document library dependency.
25538
25539         utimecmp: support symlink timestamps
25540         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25541         hashing when possible.  Use pathconf when available.
25542         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25543         * modules/utimecmp (Depends-on): Add lstat.
25544
25545         utimens: add lutimens interface
25546         * lib/utimens.c (lutimens): New function.
25547         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25548         * lib/utimens.h (lutimens): Declare new interface.
25549         * tests/test-utimens.c (main): Enhance test.
25550         * tests/test-lutimens.h (test_lutimens): New file.
25551         * modules/utimens-tests (Files): Distribute it.
25552         (Depends-on): Add symlink.
25553         (configure.ac): Check for usleep.
25554
25555         utimens: validate futimens usage
25556         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25557         fewer syscalls on failure later on.  Avoid compiler warning on
25558         mingw.
25559         * modules/utimens (Depends-on): Add dup2.
25560
25561         utimens: add test
25562         * modules/utimens-tests: New test.
25563         * tests/test-utimens.h: New file.
25564         * tests/test-futimens.h: Likewise.
25565         * tests/test-utimens.c: Likewise.
25566
25567         doc: mention timestamp portability issues
25568         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25569         instead.
25570         * doc/posix-functions/utime.texi (utime): Likewise.
25571         * doc/posix-functions/utimes.texi (utimes): Likewise.
25572         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25573         instead.
25574         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25575         module.
25576         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25577         Mention weakness with symlink timestamps.
25578         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25579         to utimensat/futimens instead.
25580         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25581
25582         test-dup2: enhance test
25583         * tests/test-dup2.c (main): Also check AT_FDCWD.
25584
25585         test-stat-time: avoid more spurious failures
25586         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25587         xfs; and avoid race if the two timestamps cross quantization edge.
25588
25589         relocatable: prefer 'file system' over 'filesystem'
25590         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25591         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25592         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25593         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25594         * lib/relocatable.c (compute_curr_prefix): Likewise.
25595
25596 2009-10-10  Jim Meyering  <meyering@redhat.com>
25597
25598         stat-time-tests: check for the usleep function
25599         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25600
25601 2009-10-10  Bruno Haible  <bruno@clisp.org>
25602
25603         * modules/xnanosleep: Put the Link section after the Include section.
25604
25605 2009-10-09  Eric Blake  <ebb9@byu.net>
25606
25607         dup2: work around FreeBSD 6.1 bug
25608         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25609         * doc/posix-functions/dup2.texi (dup2): Document it.
25610         Reported by Nelson H. F. Beebe and Jim Meyering.
25611
25612         test-stat-time: port to buggy NFS clients
25613         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25614         (test_ctime): Also skip test if mtime and ctime are skewed.
25615
25616         maint: prefer 'file system' over 'filesystem'
25617         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25618         * doc/posix-functions/lstat.texi (lstat): Likewise.
25619         * lib/file-has-acl.c (file_has_acl): Likewise.
25620         * lib/fwriteerror.c [TEST]: Likewise.
25621         * tests/test-areadlink.h (test_areadlink): Likewise.
25622         * tests/test-areadlinkat-with-size.c (main): Likewise.
25623         * tests/test-areadlinkat.c (main): Likewise.
25624         * tests/test-canonicalize-lgpl.c (main): Likewise.
25625         * tests/test-canonicalize.c (main): Likewise.
25626         * tests/test-fstatat.c (main): Likewise.
25627         * tests/test-linkat.c (main): Likewise.
25628         * tests/test-lstat.h (test_lstat_func): Likewise.
25629         * tests/test-mkdir.h (test_mkdir): Likewise.
25630         * tests/test-readlink.h (test_readlink): Likewise.
25631         * tests/test-remove.c (main): Likewise.
25632         * tests/test-rename.h (test_rename): Likewise.
25633         * tests/test-renameat.c (main): Likewise.
25634         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25635         * tests/test-symlink.h (test_symlink): Likewise.
25636         * tests/test-symlinkat.c (main): Likewise.
25637         * tests/test-unlink.h (test_unlink_func): Likewise.
25638         * tests/test-unlinkat.c (main): Likewise.
25639
25640         maint: make realtime library usage explicit
25641         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25642         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25643         * modules/settime (Link): Likewise.
25644         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25645
25646         test-stat-time: speed up execution
25647         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25648         warning on mingw.
25649         (nap): New helper function.
25650         (prepare_test): Use it to reduce sleep time.
25651         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25652         execution.
25653         * modules/stat-time-tests (configure.ac): Check for usleep.
25654
25655 2009-10-09  Jim Meyering  <meyering@redhat.com>
25656
25657         selinux-h: always use getfilecon wrappers
25658         * lib/getfilecon.c: New file.
25659         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25660         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25661         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25662         (fgetfilecon): Provide a stub.
25663         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25664         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25665         file unconditionally.
25666         When <selinux/selinux.h> is found, arrange to use wrappers.
25667         * modules/selinux-h (Files): Add getfilecon.c.
25668         (Makefile.am): Substitute include-next-related bits
25669         into the now-always-generated selinux/selinux.h file.
25670         * doc/glibc-functions/lgetfilecon.texi: New file.
25671         * doc/glibc-functions/fgetfilecon.texi: New file.
25672         * doc/glibc-functions/getfilecon.texi: New file.
25673         * doc/glibc-functions/getfilecon-desc.texi: New file.
25674         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25675         which to pull in the new files.
25676         * MODULES.html.sh (Misc): Add selinux-h.
25677
25678 2009-10-08  Jim Meyering  <meyering@redhat.com>
25679
25680         unistd: fix comment typo
25681         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25682
25683 2009-10-08  Eric Blake  <ebb9@byu.net>
25684
25685         areadlink: use SIZE_MAX consistently
25686         * modules/areadlink (Depends-on): Add stdint.
25687         * modules/areadlink-with-size (Depends-on): Likewise.
25688         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25689         gives NULL; drop sys/types, since unistd gives size_t; and add
25690         stdint for SIZE_MAX.
25691         (SIZE_MAX): Rely on headers.
25692         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25693         and add stdint.
25694         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25695         (SIZE_MAX): Likewise.
25696         (INITIAL_BUF_SIZE): Turn into enum.
25697         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25698
25699 2009-10-08  Jim Meyering  <meyering@redhat.com>
25700
25701         areadlinkat: avoid compilation failure
25702         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25703         Fix typo in comment.
25704
25705 2009-10-07  Eric Blake  <ebb9@byu.net>
25706
25707         areadlinkat-with-size: new module
25708         * modules/areadlinkat-with-size: New module.
25709         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25710         * lib/areadlink.h (areadlinkat): Declare it.
25711         * MODULES.html.sh (File system functions): Mention it.
25712         * modules/areadlinkat-with-size-tests: New test.
25713         * tests/test-areadlinkat-with-size.c: New file.
25714
25715         xreadlinkat: new module
25716         * modules/xreadlinkat: New module.
25717         * lib/xreadlinkat.c (xreadlinkat): New file.
25718         * lib/xreadlink.h (xreadlinkat): Declare it.
25719         * MODULES.html.sh (File system functions): Mention it.
25720
25721         areadlinkat: new module
25722         * lib/at-func.c (FUNC_FAIL): New define.
25723         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25724         * modules/areadlinkat: New module.
25725         * lib/linkat.c (areadlinkat): Move...
25726         * lib/areadlinkat.c (areadlinkat): ...to new file.
25727         * lib/areadlink.h (areadlinkat): Declare it.
25728         * modules/linkat (Depends-on): Add areadlinkat.
25729         * MODULES.html.sh (File system functions): Mention it.
25730         * modules/areadlinkat-tests: New test.
25731         * tests/test-areadlinkat.c: New file.
25732
25733         areadlink, areadlink-with-size: add tests
25734         * modules/areadlink-tests: New test.
25735         * modules/areadlink-with-size-tests: Likewise.
25736         * tests/test-areadlink.h: New file.
25737         * tests/test-areadlink.c: Likewise.
25738         * tests/test-areadlink-with-size.c: Likewise.
25739
25740         maint: minor cleanups
25741         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25742         _UNUSED_PARAMETER_ instead.
25743         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25744         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25745         * modules/linkat-tests (Files): Distribute test-link.h.
25746
25747         openat, utimens: whitespace cleanup
25748         * lib/openat.c: Prefer space throughout, rather than mix of 8
25749         spaces vs. tabs.
25750         * lib/at-func.c: Likewise.
25751         * lib/utimens.c: Likewise.
25752
25753         openat: avoid using wrong fd
25754         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25755         working directory chooses same fd.
25756         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25757
25758         mkdir, mkdirat: fix cygwin 1.5.x bug
25759         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25760         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25761         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25762         bug.
25763         (gl_PREREQ_MKDIR): Delete unused macro.
25764         * modules/mkdir (Files): Track file rename.
25765         (configure.ac): Update macro name.
25766         * modules/openat (Depends-on): Add mkdir.
25767         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25768
25769         mkdir, mkdirat: add tests
25770         * modules/mkdir-tests: New test.
25771         * tests/test-mkdir.h: New file.
25772         * tests/test-mkdir.c: Likewise.
25773         * tests/test-mkdirat.c: Likewise.
25774         * modules/openat-tests (Files): Add new files.
25775         (Makefile.am): Run new test.
25776
25777 2009-10-06  Eric Blake  <ebb9@byu.net>
25778
25779         doc: tweak *at function documentation
25780         * doc/posix-functions/faccessat.texi (faccessat): Mention
25781         known issue with replacement.
25782         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25783         * doc/posix-functions/linkat.texi (linkat): Likewise.
25784         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25785         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25786         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25787         * doc/posix-functions/renameat.texi (renameat): Likewise.
25788         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25789
25790         openat: fix GNU/Hurd bug in unlinkat
25791         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25792         broken.
25793         * doc/posix-functions/unlink.texi (unlink): Document this.
25794         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25795
25796         fdopendir: fix GNU/Hurd bug
25797         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25798         allowing non-directory fds.
25799         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25800         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25801         * modules/dirent (Makefile.am): Substitute it.
25802         * lib/dirent.in.h (fdopendir): Declare replacement.
25803         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25804         * tests/test-fdopendir.c (main): Test something other than
25805         /dev/null, since on Hurd that behaves like a directory.
25806
25807         test-symlink: port to GNU/Hurd
25808         * tests/test-symlink.h (test_symlink): Relax expected errno.
25809
25810         doc: tweak more cygwin information
25811         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25812         now compatible with glibc.
25813         * doc/posix-functions/getopt.texi (getopt): Likewise.
25814
25815         getopt-gnu: add another test
25816         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25817         guarantee behavior relied on by m4.
25818         * tests/test-getopt.c (main): Use it.
25819         * modules/getopt-posix-tests (Depends-on): Add setenv.
25820         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25821
25822         getopt: fix compilation on darwin
25823         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25824         include.
25825         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25826         Reported by Ludovic Courtès.
25827
25828 2009-10-06  Bruno Haible  <bruno@clisp.org>
25829
25830         * modules/size_max (Description): Discourage its use.
25831         Reported by Simon Josefsson.
25832
25833 2009-10-06  Jim Meyering  <meyering@redhat.com>
25834
25835         linkat: avoid compilation failure
25836         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25837
25838 2009-10-05  Eric Blake  <ebb9@byu.net>
25839
25840         linkat: support Linux 2.6.17
25841         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25842         linkat on Linux, but allow cache variable override.
25843         * lib/linkat.c (rpl_linkat): Define override.
25844         * modules/linkat (Depends-on): Add symlinkat.
25845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25846         * modules/unistd (Makefile.am): Substitute it.
25847         * lib/unistd.in.h (linkat): Declare replacement.
25848         Reported by Pádraig Brady.
25849
25850         quotearg: port test to systems with C.UTF-8 locale
25851         * tests/test-quotearg.c (struct result_strings): Add another
25852         member, differentiating between C.ASCII and C.UTF-8 handling.
25853         (compare_strings): Add parameter.
25854         (main): Adjust all callers.
25855
25856         getopt: avoid clash with FreeBSD _getopt_internal
25857         * lib/getopt.in.h (_getopt_internal): Override the name.
25858         * lib/getopt_int.h (includes): Pick up any overrides.
25859         Reported by Reuben Thomas.
25860
25861         hash: allow C89 compilation
25862         * lib/hash.c (check_tuning): Move declaration before statement.
25863         Reported by Reuben Thomas.
25864
25865 2009-10-05  Karl Berry  <karl@gnu.org>
25866
25867         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25868
25869 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25870             Bruno Haible  <bruno@clisp.org>
25871
25872         * lib/uname.c (uname): Use a table-driven algorithm to compute
25873         Windows NT versions.
25874
25875 2009-10-04  Bruno Haible  <bruno@clisp.org>
25876
25877         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25878         program_invocation_short_name.
25879         * modules/progname (configure.ac): Test for presence of
25880         program_invocation_short_name.
25881         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25882
25883 2009-10-04  Bruno Haible  <bruno@clisp.org>
25884
25885         * lib/progname.c (set_program_name): Fix comment.
25886         Reported by Jim Meyering.
25887
25888 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25889             Bruno Haible  <bruno@clisp.org>
25890
25891         * lib/uname.c: Include <string.h>.
25892         (uname): Do only one call to GetVersionEx in the common case.
25893
25894 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25895             Bruno Haible  <bruno@clisp.org>
25896
25897         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25898         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25899         (uname): Add support for Windows CE and various non-x86 CPU types.
25900
25901 2009-10-03  Bruno Haible  <bruno@clisp.org>
25902
25903         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25904         invocation to tests/configure.ac.
25905         Reported by Ian Beckwith <ianb@erislabs.net>.
25906
25907 2009-10-02  Eric Blake  <ebb9@byu.net>
25908
25909         fchdir: avoid compiler warning
25910         * lib/fchdir.c (canonicalize_file_name)
25911         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25912
25913         test-open: support mingw errno values
25914         * tests/test-open.h (test_open): Relax test.
25915         * tests/test-fopen.h (test_fopen): Likewise.
25916         * tests/test-openat-safer.c (main): Likewise.
25917
25918         open: fix opening directory on mingw
25919         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25920
25921         test-open: on GNU/Hurd, /dev/null is a directory
25922         * tests/test-fopen.h (main): Rename...
25923         (test_fopen): ...to this.  Use a guaranteed non-directory when
25924         confirming open behavior on trailing slash.
25925         * tests/test-openat-safer.c (main): Likewise.
25926         * tests/test-open.h (main): Likewise....
25927         (test_open): ...to this.
25928         * tests/test-fopen.c (main): Adjust caller.
25929         * tests/test-fopen-safer.c (main): Likewise.
25930         * tests/test-open.c (main): Likewise.
25931         * tests/test-fcntl-safer.c (main): Likewise.
25932         Reported by Samuel Thibault.
25933
25934         rename, fchdir: don't ignore chdir failure
25935         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25936         * lib/rename.c (rpl_rename) [W32]: Likewise.
25937         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25938         an empty destination directory if source cannot be renamed,
25939         although there is still possibility for failure.
25940         * doc/posix-functions/rename.texi (rename): Document the race.
25941         Reported by Jim Meyering.
25942
25943         maint: cleanup whitespace in recent commits
25944         * lib/rename.c (rpl_rename): Remove tabs.
25945         * tests/test-link.h (test_link): Likewise.
25946         * lib/fchdir.c (get_name): Likewise.
25947         Reported by Jim Meyering.
25948
25949 2009-10-02  Ben Pfaff  <blp@gnu.org>
25950
25951         relocatable-prog-wrapper: Add missing dependency on
25952         double-slash-root.
25953         * modules/relocatable-prog-wrapper: Add dependency.
25954         Reported by Ian Beckwith <ianb@erislabs.net>.
25955
25956 2009-10-02  Eric Blake  <ebb9@byu.net>
25957
25958         renameat: fix Solaris bugs
25959         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25960         needed fixing.
25961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25962         * modules/stdio (Makefile.am): Substitute it.
25963         * lib/stdio.in.h (renameat): Declare replacement.
25964         * lib/renameat.c (rpl_renameat): Implement fix.
25965
25966         renameat: new module
25967         * modules/renameat: New file.
25968         * lib/renameat.c (renameat): Likewise.
25969         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25971         * modules/stdio (Makefile.am): Substitute them.
25972         * lib/stdio.in.h (renameat): Declare it.
25973         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25974         * doc/posix-functions/renameat.texi (renameat): Likewise.
25975         * modules/renameat-tests: New test.
25976         * tests/test-renameat.c: Likewise.
25977
25978         rename: fix mingw bugs
25979         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25980         directory overwrite bugs.
25981
25982         rename: fix another cygwin 1.5 bug
25983         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25984         checks.
25985         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25986         unnecessary cygwin workarounds.  Also work around bug with moving
25987         full directory onto an empty one.
25988         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25989
25990         rename-dest-slash: merge into rename module
25991         * modules/rename-dest-slash (Status): Mark obsolete.
25992         (Depends-on): Add rename.
25993         (Files): Let rename do it all.
25994         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25995         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25996         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25997         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25998         * lib/rename.c (rpl_rename): Update comments.
25999
26000         rename: fix cygwin 1.5.x bugs
26001         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26002         * lib/rename.c (rpl_rename): Work around them.
26003         * modules/rename (Depends-on): Add same-inode.
26004
26005         rename: fix Solaris 10 bug
26006         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26007         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26008         was the only bug.
26009
26010         rename: fix Solaris 9 bug
26011         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26012         on non-directory.  Avoid calling exit.
26013         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26014         strdup.
26015         * modules/rename-tests (Depends-on): Drop lstat.
26016         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26017         (gl_PREREQ_RENAME): Delete unused macro.
26018
26019         rename-dest-slash: fix NetBSD bug
26020         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26021         links.
26022         * modules/rename-dest-slash (Depends-on): Add same-inode.
26023
26024         rename-tests: new test, exposes several platform bugs
26025         * modules/rename-tests: New file.
26026         * tests/test-rename.h: Likewise.
26027         * tests/test-rename.c: Likewise.
26028         * doc/posix-functions/rename.texi (rename): Improve documentation,
26029         including bugs that will eventually be fixed in gnulib.
26030
26031 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26032
26033         * lib/uname.c: Include <stdlib.h>
26034         (uname): Assume version info is available.
26035
26036 2009-10-02  Jim Meyering  <meyering@redhat.com>
26037
26038         gnu-web-doc-update: correct --help output
26039         * build-aux/gnu-web-doc-update: Make --help output relevant.
26040
26041         gnu-web-doc-update: add standard options
26042         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26043
26044         gnu-web-doc-update: New module.
26045         Use this script to automatically update the on-line web documentation
26046         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26047         * modules/gnu-web-doc-update: New file, from coreutils.
26048         * build-aux/gnu-web-doc-update: New script.
26049
26050 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26051
26052         link: LoadLibrary is not needed.
26053         * lib/link.c: Use GetModuleHandle.
26054
26055 2009-10-01  Eric Blake  <ebb9@byu.net>
26056
26057         getopt: bump serial number
26058         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26059         change.
26060
26061         tests: tighten link, rmdir, and remove tests
26062         * tests/test-link.h (includes): No need to use <config.h> here.
26063         Clean up if directory hard link was created, otherwise test for
26064         trailing '.'.
26065         * tests/test-linkat.c (main): Simplify.
26066         * tests/test-remove.c (main): Enhance test for trailing '.'.
26067         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26068
26069 2009-10-01  Jim Meyering  <meyering@redhat.com>
26070
26071         maint.mk: requiring "make major" was annoying, for a "minor" release.
26072         What is intended is "stable", to contrast with alpha and beta,
26073         so require "make stable", not "make major".
26074         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26075         (get_tool_versions): Likewise.
26076         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26077
26078 2009-09-30  Ben Pfaff  <blp@gnu.org>
26079
26080         Fix broken build of replacement for Windows tmpfile().
26081         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26082         flags argument added along with the 'mkostemp' module.
26083
26084 2009-09-28  Bruno Haible  <bruno@clisp.org>
26085
26086         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26087         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26088         to 'remove_elt'.
26089         (gl_list_remove): Update.
26090         * lib/gl_list.c (gl_list_remove): Update.
26091         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26092         to 'remove_elt'.
26093         (gl_oset_remove): Update.
26094         * lib/gl_list.c (gl_oset_remove): Update.
26095         Reported by Eric Blake.
26096
26097 2009-09-28  Eric Blake  <ebb9@byu.net>
26098
26099         doc: mention yet more cygwin 1.7 status
26100         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26101         cygwin.
26102         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26103         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26104
26105         argp: fix test failure
26106         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26107         that are not upper-case.  Pass correct range to tolower.
26108
26109 2009-09-27  Jim Meyering  <meyering@redhat.com>
26110
26111         test-yesno: work around sparc-dash here-document infelicity
26112         Without this change, the literal \177 byte in a here document
26113         would make dash 0.5.5.1-3 access uninitialized memory.
26114         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26115         Instead, use a marker, "@", and filter through tr to create the desired
26116         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26117
26118 2009-09-27  Bruno Haible  <bruno@clisp.org>
26119
26120         Disable untested support for new flavours of ACLs on AIX.
26121         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26122         progress.
26123         * lib/set-mode-acl.c (qset_acl): Likewise.
26124
26125 2008-12-07  Bruno Haible  <bruno@clisp.org>
26126
26127         Add support for new flavours of ACLs on AIX. (Untested.)
26128         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26129         (file_has_acl): Add support for newer AIX.
26130         * lib/set-mode-acl.c (qset_acl): Likewise.
26131         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26132         Rainer Tammer <tammer@tammer.net>.
26133
26134 2009-09-26  Eric Blake  <ebb9@byu.net>
26135
26136         argp: fix compilation of getopt
26137         * lib/getopt.in.h (includes): Use different guard than glibc.
26138         Reported by Sergey Poznyakoff.
26139
26140         doc: mention more cygwin 1.7 status
26141         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26142         bug.
26143         * doc/posix-functions/execl.texi (execl): Likewise.
26144         * doc/posix-functions/execle.texi (execle): Likewise.
26145         * doc/posix-functions/execlp.texi (execlp): Likewise.
26146         * doc/posix-functions/execv.texi (execv): Likewise.
26147         * doc/posix-functions/execve.texi (execve): Likewise.
26148         * doc/posix-functions/execvp.texi (execvp): Likewise.
26149         * doc/glibc-functions/canonicalize_file_name.texi
26150         (canonicalize_file_name): Cygwin 1.7 now provides this.
26151         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26152         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26153         on AT_SYMLINK_NOFOLLOW.
26154
26155 2009-09-24  Eric Blake  <ebb9@byu.net>
26156
26157         test-linkat: make test more robust
26158         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26159
26160         getopt: fix inclusion guards for cygwin
26161         * modules/getopt-posix (Depends-on): Add include-next.
26162         (Makefile.am): Substitute more items in replacement header.
26163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26164         <getopt.h>.
26165         * lib/getopt.in.h (includes): Use split inclusion guard, and
26166         prefer <getopt.h> over include <unistd.h> when one is present.
26167         (option): Also override name of 'struct option'.
26168
26169         same-inode: revert prior change; it is not yet ready
26170         * NEWS: Undo mention of this change.
26171         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26172         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26173         * lib/cycle-check.c (cycle_check): Likewise.
26174         * lib/same.c (same_name): Likewise.
26175         * lib/at-func2.c (at_func2): Likewise.
26176
26177 2009-09-23  Eric Blake  <ebb9@byu.net>
26178
26179         linkat: new module
26180         * modules/linkat: New file.
26181         * lib/at-func2.c (at_func2): Likewise.
26182         * lib/linkat.c (linkat): Likewise.
26183         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26184         * lib/openat-priv.h (at_func2): Add declaration.
26185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26186         * modules/unistd (Makefile.am): Substitute them.
26187         * lib/unistd.in.h (linkat): Declare it.
26188         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26189         * doc/posix-functions/linkat.texi (linkat): Likewise.
26190         * doc/posix-functions/link.texi (link): Tweak wording.
26191         * tests/test-link.c (main): Move guts...
26192         * tests/test-link.h (test_link): ...into new file.
26193         * modules/linkat-tests: New test.
26194         * tests/test-linkat.c: Likewise.
26195         * modules/link-tests (Files): Ship new file.
26196         (Depends-on): Add stdbool.
26197
26198         dirname: add library-safe mdir_name
26199         * lib/dirname.h (mdir_name): New prototype.
26200         * lib/dirname.c (dir_name): Move guts...
26201         (mdir_name): ...to new function that avoids xalloc_die.
26202
26203         fchdir: another mingw fix
26204         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26205         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26206         on mingw (where it has not yet been ported), and make it optional
26207         elsewhere.
26208         (_gl_register_fd): Use it.
26209
26210         same-inode: make SAME_INODE tri-state, to port to mingw
26211         * NEWS: Mention this change.
26212         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26213         st_ino always being 0.
26214         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26215         * lib/cycle-check.c (cycle_check): Likewise.
26216         * lib/same.c (same_name): Likewise.
26217
26218         lstat: avoid mingw compilation error
26219         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26220         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26221         lstat ourselves.
26222         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26223         was adequate.
26224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26225         the checks for lstat.
26226         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26227
26228         link: fix test failure on Solaris 9
26229         * lib/link.c (rpl_link): Don't assume link will catch bogus
26230         trailing slash on source.
26231
26232         test-symlinkat: enhance test
26233         * tests/test-readlink.c (main): Move guts...
26234         * tests/test-readlink.h (test_readlink): ...into new file.
26235         * tests/test-symlink.c (main): Move guts...
26236         * tests/test-symlink.h (test_symlink): ...into new file.
26237         * tests/test-symlinkat.c (main): Use new files for further
26238         coverage.
26239         (do_symlink, do_readlink): New helper functions.
26240         * modules/symlink-tests (Files): Ship new file.
26241         (Depends-on): Add stdbool.
26242         * modules/readlink-tests (Files): Ship new file.
26243         (Depends-on): Add stdbool.
26244         * modules/symlinkat-tests (Files): Use new files.
26245
26246 2009-09-23  Eric Blake  <ebb9@byu.net>
26247
26248         readlink: document portability issue with symlink length
26249         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26250         systems have bogus st_size on symlinks, and mention the
26251         areadlink-with-size module.
26252         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26253         * doc/posix-functions/readlink.texi (readlink): Mention the
26254         areadlink module, and ERANGE failure.
26255         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26256         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26257
26258         readlink: fix Solaris 9 bug with trailing slash
26259         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26260         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26261         * doc/posix-functions/readlink.texi (readlink): Document this.
26262         * modules/readlink-tests: New test.
26263         * tests/test-readlink.c: Likewise.
26264
26265         readlink: fix cygwin 1.5.x bug with return type
26266         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26267         * lib/unistd.in.h (readlink): Use ssize_t.
26268         * lib/readlink.c (readlink): Likewise.
26269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26270         * modules/unistd (Makefile.am): Substitute it.
26271         * lib/unistd.in.h (readlink): Declare replacement.
26272         * doc/posix-functions/readlink.texi (readlink): Document this.
26273
26274         symlink: use throughout gnulib
26275         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26276         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26277         symlink is not used.
26278         * modules/symlinkat (Depends-on): Add symlink.
26279         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26280         * modules/canonicalize-tests (Depends-on): Likewise.
26281         * modules/lstat-tests (Depends-on): Likewise.
26282         * modules/openat-tests (Depends-on): Likewise.
26283         * modules/remove-tests (Depends-on): Likewise.
26284         * modules/rmdir-tests (Depends-on): Likewise.
26285         * modules/unlink-tests (Depends-on): Likewise.
26286         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26287         * tests/test-canonicalize.c (symlink): Likewise.
26288         * tests/test-fstatat.c (symlink): Likewise.
26289         * tests/test-lstat.c (symlink): Likewise.
26290         * tests/test-remove.c (symlink): Likewise.
26291         * tests/test-rmdir.c (symlink): Likewise.
26292         * tests/test-unlink.c (symlink): Likewise.
26293         * tests/test-unlinkat.c (symlink): Likewise.
26294
26295         symlink: new module, for Solaris 9 bug
26296         * modules/symlink: New file.
26297         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26298         * lib/symlink.c: Likewise.
26299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26300         * modules/unistd (Makefile.am): Substitute them.
26301         * lib/unistd.in.h (symlink): Declare replacement.
26302         * MODULES.html.sh (File system functions): Mention it.
26303         * doc/posix-functions/symlink.texi (symlink): Likewise.
26304         * modules/symlink-tests: New test.
26305         * tests/test-symlink.c: Likewise.
26306
26307 2009-09-23  Bruno Haible  <bruno@clisp.org>
26308
26309         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26310         when needed.
26311         Test case: gnulib-tool --import --with-tests atexit inttypes.
26312         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26313
26314 2009-09-23  Bruno Haible  <bruno@clisp.org>
26315
26316         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26317         subcommand, not in a subshell.
26318
26319 2009-09-22  Eric Blake  <ebb9@byu.net>
26320
26321         unistd: sort replacement declarations
26322         * lib/unistd.in.h: Sort declarations.
26323
26324         open, openat: minor optimization
26325         * lib/open.c (open): If open succeeded, len is non-zero.
26326         * lib/openat.c (rpl_openat): Likewise.
26327
26328         link-follow: ensure correct result
26329         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26330         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26331         distinguish between possible failures.
26332
26333 2009-09-21  Eric Blake  <ebb9@byu.net>
26334
26335         fts: avoid compiler warning
26336         * lib/fts.c (dirent_inode_sort_may_be_useful)
26337         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26338
26339 2009-09-19  Bruno Haible  <bruno@clisp.org>
26340
26341         * lib/progreloc.c (canonicalize_file_name): New declaration.
26342
26343 2009-09-19  Eric Blake  <ebb9@byu.net>
26344
26345         link: fix quoting
26346         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26347
26348         openat: fix openat bugs on Solaris 9
26349         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26350         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26351         * modules/openat (Depends-on): Add open.
26352         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26353         * modules/fcntl-h (Makefile.am): Substitute it.
26354         * lib/fcntl.in.h (openat): Declare replacement.
26355         * doc/posix-functions/openat.texi (openat): Document this.
26356
26357         openat: move fstatat and unlinkat into correct files
26358         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26359         compiled.
26360         * lib/openat.c (fstatat, unlinkat): Move...
26361         * lib/fstatat.c (fstatat): ...into correct files.
26362         * lib/unlinkat.c (unlinkat): Likewise.
26363
26364         openat: fix unlinkat bugs on Solaris 9
26365         * lib/unlinkat.c (unlinkat): New file.
26366         * modules/openat (Depends-on): Add unlink.
26367         (Files): Distribute it.
26368         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26369         trailing slash behavior is broken.
26370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26371         * modules/unistd (Makefile.am): Substitute it.
26372         * lib/unistd.in.h (unlinkat): Declare replacement.
26373         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26374
26375         openat: fix fstatat bugs on Solaris 9
26376         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26377         stat.
26378         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26379
26380         test-unlinkat: enhance test, to expose Solaris 9 bug
26381         * tests/test-unlink.c (main): Factor guts...
26382         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26383         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26384         * tests/test-rmdir.c (main): Adjust caller.
26385         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26386         (unlinker): New helper function.
26387         (rmdirat): Enhance check.
26388         * modules/rmdir-tests (Depends-on): Add stdbool.
26389         * modules/unlink-tests (Depends-on): Likewise.
26390         (Files): Add test-unlink.h.
26391         * modules/openat-tests (Files): Likewise.
26392         (Depends-on): Add unlinkdir.
26393
26394         test-fstatat: new test, to expose Solaris 9 bugs
26395         * tests/test-stat.c (main): Factor guts...
26396         * tests/test-stat.h (test_stat_func): ...into new file.
26397         * tests/test-lstat.c (main): Factor guts...
26398         * tests/test-lstat.h (test_lstat_func): ...into new file.
26399         * tests/test-fstatat.c: New file.
26400         * modules/stat-tests (Files): Add test-stat.h.
26401         * modules/lstat-tests (Files): Add test-lstat.h.
26402         (Depends-on): Add stdbool.
26403         * modules/openat-tests (Depends-on): Add pathmax.
26404         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26405         (Makefile.am): Run new test.
26406
26407         remove: new module, for mingw and Solaris 9 bugs
26408         * modules/remove: New file.
26409         * lib/remove.c: Likewise.
26410         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26412         * modules/stdio (Makefile.am): Use them.
26413         * lib/stdio.in.h (remove): Declare replacement.
26414         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26415         * doc/posix-functions/remove.texi (remove): Likewise.
26416         * modules/remove-tests: New test.
26417         * tests/test-remove.c: Likewise.
26418
26419         unlink: new module, for Solaris 9 bug
26420         * modules/unlink: New file.
26421         * lib/unlink.c: Likewise.
26422         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26424         * modules/unistd (Makefile.am): Use them.
26425         * lib/unistd.in.h (stat): Declare replacement.
26426         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26427         * doc/posix-functions/unlink.texi (unlink): Likewise.
26428         * modules/unlink-tests: New test.
26429         * tests/test-unlink.c: Likewise.
26430
26431         lstat: fix Solaris 9 bug
26432         * lib/lstat.c (lstat): Also check for trailing slash on
26433         non-symlink, non-directories.  Use stat module to simplify logic.
26434         * doc/posix-functions/lstat.texi (lstat): Document it.
26435         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26436         (configure.ac): Check for symlink.
26437         * tests/test-lstat.c (main): Add more tests.
26438
26439         stat: add as dependency to other modules
26440         * modules/chown (Depends-on): Add stat.
26441         * modules/euidaccess (Depends-on): Likewise.
26442         * modules/fchdir (Depends-on): Likewise.
26443         * modules/isdir (Depends-on): Likewise.
26444         * modules/link (Depends-on): Likewise.
26445         * modules/lstat (Depends-on): Likewise.
26446         * modules/mkdir-p (Depends-on): Likewise.
26447         * modules/modechange (Depends-on): Likewise.
26448         * modules/open (Depends-on): Likewise.
26449         * modules/readlink (Depends-on): Likewise.
26450         * modules/same (Depends-on): Likewise.
26451
26452         stat: fix Solaris 9 bug
26453         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26454         slash.
26455         * lib/stat.c (rpl_stat): Work around it.
26456         * doc/posix-functions/stat.texi (stat): Update documentation.
26457
26458         stat: new module, for mingw bug
26459         * modules/stat: New file.
26460         * lib/stat.c: Likewise.
26461         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26462         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26463         * modules/sys_stat (Makefile.am): Use them.
26464         * lib/sys_stat.in.h (stat): Declare replacement.
26465         * lib/openat.c (fstatat): Deal with lstat and stat being function
26466         macros.
26467         * modules/openat (Depends-on): Add inline.
26468         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26469         * doc/posix-functions/stat.texi (stat): Likewise.
26470         * modules/stat-tests: New test.
26471         * tests/test-stat.c: Likewise.
26472
26473 2009-09-19  Jim Meyering  <meyering@redhat.com>
26474
26475         syntax-check: detect unnecessary inclusion of canonicalize.h
26476         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26477
26478 2009-09-19  Eric Blake  <ebb9@byu.net>
26479
26480         canonicalize-lgpl: adjust clients to use correct header
26481         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26482         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26483         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26484         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26485         * lib/progreloc.c (includes): Likewise.
26486
26487 2009-09-19  Jim Meyering  <meyering@redhat.com>
26488
26489         test-posixtm.c: correct a comment
26490         * tests/test-posixtm.c: Correct first-line comment.
26491         Spotted by Eric Blake.
26492
26493 2009-09-16  Jim Meyering  <meyering@redhat.com>
26494
26495         posixtm-tests: make T const-correct; add a test case
26496         * tests/test-posixtm.c (T): Declare const.
26497         Add a test for -(2^31+1).
26498         Remove useless can-succeed-only-in-2002 test.
26499
26500         posixtm-tests: adjust the sole failing test
26501         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26502         expected output matches what mktime now produces.  Cross-checked via
26503         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26504
26505         posixtm: move #ifdef'd tests into a new module
26506         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26507         * tests/test-posixtm.c: ... this new file.
26508         * modules/posixtm-tests: New module.
26509
26510 2009-09-19  Eric Blake  <ebb9@byu.net>
26511
26512         openat: simplify use of at-func.c
26513         * lib/at-func.c (includes): Include prerequisites here, to
26514         simplify requirements on client files.
26515         * lib/openat-priv.h: Add double-inclusion guard.
26516         * lib/faccessat.c (includes): Simplify.
26517         * lib/fchmodat.c (includes): Likewise.
26518         * lib/fchownat.c (includes): Likewise.
26519         * lib/mkdirat.c (includes): Likewise.
26520         * lib/mkfifoat.c (includes): Likewise.
26521         * lib/symlinkat.c (includes): Likewise.
26522
26523         openat: allow return of fd 0
26524         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26525         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26526         unistd-safer.
26527         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26528         <fcntl.h>; this module does not leak fds.
26529         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26530         must be allowed to return 0, leaving openat_safer to add the
26531         safety.
26532         (openat_permissive): Avoid writing to just-opened fd 2 if
26533         restoring the current directory fails.
26534         * lib/openat-die.c (openat_restore_fail): Add comment.
26535         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26536         (save_cwd): Guarantee safe fd, but without use of open_safer.
26537         * tests/test-openat.c: New test.
26538         * modules/openat-tests (Files, Makefile.am): Distribute and build
26539         new file.
26540
26541         relocatable-prog-wrapper: fix build
26542         * modules/relocatable-prog-wrapper (Files): Update name of
26543         canonicalize m4 file, broken on 2009-09-17.
26544         Reported by emad hajjar <aleppos@hotmail.com>.
26545
26546 2009-09-19  Bruno Haible  <bruno@clisp.org>
26547
26548         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26549         * lib/safe-alloc.c: Likewise.
26550         Reported by Ian Beckwith <ianb@erislabs.net>.
26551
26552 2009-09-18  Bruno Haible  <bruno@clisp.org>
26553
26554         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26555         Reported by <erobles@sensacd.com.mx>.
26556
26557 2009-09-17  Eric Blake  <ebb9@byu.net>
26558
26559         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26560         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26561         slashes when checking if last component is missing.
26562         * tests/test-canonicalize.c (main): Test this.
26563
26564         canonicalize, canonicalize-lgpl: honor // if distinct from /
26565         * modules/canonicalize (Files): Add double-slash-root.m4.
26566         * modules/canonicalize-lgpl (Files): Likewise.
26567         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26568         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26569         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26570         fallback definition.
26571         (canonicalize_filename_mode): Use it to protect //.
26572         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26573         (__realpath): Likewise.
26574         * tests/test-canonicalize.c (main): Test this.
26575         * tests/test-canonicalize-lgpl.c (main): Likewise.
26576         * modules/canonicalize-tests (Depends-on): Add same-inode.
26577         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26578
26579         canonicalize-lgpl: fix glibc bug with trailing slash
26580         * m4/canonicalize-lgpl.m4: Move contents...
26581         * m4/canonicalize.m4: ...here.
26582         (gl_CANONICALIZE_LGPL): Factor realpath check...
26583         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26584         glibc 2.3.5 bug, fixed 2005-04-27.
26585         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26586         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26587         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26588         * modules/canonicalize-lgpl (Files): Manage file rename.
26589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26590         * modules/stdlib (Makefile.am): Substitute witness.
26591         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26592         is needed.
26593         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26594         replacement is required.
26595         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26596         * doc/glibc-functions/canonicalize_file_name.texi
26597         (canonicalize_file_name): Document this.
26598         * doc/posix-functions/realpath.texi (realpath): Likewise.
26599
26600         canonicalize-lgpl: reject non-directory with trailing slash
26601         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26602         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26603         catches failures in glibc 2.3.5.
26604         * tests/test-canonicalize.c (main): Likewise.
26605
26606         canonicalize-lgpl: use native realpath if it works
26607         * lib/canonicalize-lgpl.c (realpath): Guard with
26608         FUNC_REALPATH_WORKS.
26609         * lib/stdlib.in.h (realpath): Make declaration optional based on
26610         HAVE_REALPATH.
26611         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26612         native realpath works.
26613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26614         * modules/stdlib (Makefile.am): Substitute witness.
26615
26616         canonicalize, canonicalize-lgpl: use <stdlib.h>
26617         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26618         (Include): Mention <stdlib.h>.
26619         (configure.ac): Mention functions we provide.
26620         * modules/canonicalize (configure.ac): Likewise.
26621         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26622         realpath if canonicalize_file_name is missing.
26623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26624         * modules/stdlib (Makefile.am): Substitute witnesses.
26625         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26626         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26627         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26628         * NEWS: Document this.
26629         * doc/glibc-functions/canonicalize_file_name.texi
26630         (canonicalize_file_name): Likewise.
26631         * doc/posix-functions/realpath.texi (realpath): Likewise.
26632         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26633
26634         test-canonicalize: consolidate into single C program
26635         * tests/test-canonicalize.sh: Delete; move setup into...
26636         * tests/test-canonicalize.c (main): ...the program, making it
26637         easier to run in debugger.  Add some tests.
26638         * modules/canonicalize-tests (Files): Remove unused file.
26639         (Depends-on): Add progname.
26640         (configure.ac, Makefile.am): Simplify.
26641
26642         test-canonicalize-lgpl: consolidate into single C program
26643         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26644         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26645         easier to run in debugger.  Add some tests.
26646         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26647         (configure.ac, Makefile.am): Simplify.
26648
26649         canonicalize: avoid resolvepath
26650         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26651         unnecessary checks.
26652         * lib/canonicalize.c (includes): Simplify.
26653         (canonicalize_file_name): Drop resolvepath implementation.
26654         * modules/canonicalize (Depends-on): Drop filenamecat.
26655
26656         canonicalize: don't lose errno
26657         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26658         over calls to free.
26659
26660         canonicalize: simplify errno handling
26661         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26662         assignment.
26663
26664         canonicalize, canonicalize-lgpl: update module dependencies
26665         * modules/canonicalize (Depends-on): Add extensions, lstat,
26666         pathmax, stdlib.
26667         (Files): Drop pathmax.h.
26668         (configure.ac): Adjust macro name.
26669         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26670         lstat, stdlib, sys_stat.
26671         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26672         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26673         extensions.
26674         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26675         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26676         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26677         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26678         declaration, if available.
26679         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26680         we can rely on the readlink module.
26681         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26682         (includes): Use <unistd.h> unconditionally.
26683
26684 2009-09-17  Eric Blake  <ebb9@byu.net>
26685
26686         maint: make Include sections of modules consistent
26687         * modules/alloca: Use only header name; no need to list #include.
26688         * modules/alloca-opt: Likewise.
26689         * modules/arpa_inet: Likewise.
26690         * modules/canon-host: Likewise.
26691         * modules/configmake: Likewise.
26692         * modules/dirent: Likewise.
26693         * modules/eealloc: Likewise.
26694         * modules/environ: Likewise.
26695         * modules/fchdir: Likewise.
26696         * modules/fcntl: Likewise.
26697         * modules/fcntl-h: Likewise.
26698         * modules/gethrxtime: Likewise.
26699         * modules/gettime: Likewise.
26700         * modules/ignore-value: Likewise.
26701         * modules/inet_ntop: Likewise.
26702         * modules/inet_pton: Likewise.
26703         * modules/inttypes: Likewise.
26704         * modules/isnand-nolibm: Likewise.
26705         * modules/isnanf-nolibm: Likewise.
26706         * modules/mbchar: Likewise.
26707         * modules/mbfile: Likewise.
26708         * modules/mbiter: Likewise.
26709         * modules/mbuiter: Likewise.
26710         * modules/netdb: Likewise.
26711         * modules/netinet_in: Likewise.
26712         * modules/nproc: Likewise.
26713         * modules/pagealign_alloc: Likewise.
26714         * modules/poll: Likewise.
26715         * modules/printf-frexp: Likewise.
26716         * modules/pthread: Likewise.
26717         * modules/putenv: Likewise.
26718         * modules/random_r: Likewise.
26719         * modules/relocatable-prog: Likewise.
26720         * modules/search: Likewise.
26721         * modules/select: Likewise.
26722         * modules/selinux-h: Likewise.
26723         * modules/settime: Likewise.
26724         * modules/signal: Likewise.
26725         * modules/size_max: Likewise.
26726         * modules/socklen: Likewise.
26727         * modules/ssize_t: Likewise.
26728         * modules/stdarg: Likewise.
26729         * modules/stdbool: Likewise.
26730         * modules/stddef: Likewise.
26731         * modules/stdint: Likewise.
26732         * modules/stdio: Likewise.
26733         * modules/stdlib: Likewise.
26734         * modules/string: Likewise.
26735         * modules/strings: Likewise.
26736         * modules/sys_file: Likewise.
26737         * modules/sys_ioctl: Likewise.
26738         * modules/sys_select: Likewise.
26739         * modules/sys_socket: Likewise.
26740         * modules/sys_stat: Likewise.
26741         * modules/sys_time: Likewise.
26742         * modules/sys_times: Likewise.
26743         * modules/sys_utsname: Likewise.
26744         * modules/sys_wait: Likewise.
26745         * modules/sysexits: Likewise.
26746         * modules/time: Likewise.
26747         * modules/times: Likewise.
26748         * modules/tmpfile: Likewise.
26749         * modules/trim: Likewise.
26750         * modules/unistd: Likewise.
26751         * modules/wchar: Likewise.
26752         * modules/wctype: Likewise.
26753
26754 2009-09-17  Bruno Haible  <bruno@clisp.org>
26755
26756         Make getdate.y compile on QNX and NetBSD 5 / i386.
26757         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26758         TIME_T_FITS_IN_LONG_INT.
26759         * lib/getdate.y (long_time_t): New type.
26760         (relative_time): Change type of 'seconds' field to long_time_t.
26761         (get_date): Update types of local variables. Check against overflow
26762         during conversion from long_time_t to time_t.
26763         Reported by Matt Kraai <kraai@ftbfs.org>
26764         and Hasso Tepper <hasso@netbsd.org>.
26765
26766 2009-09-17  Bruno Haible  <bruno@clisp.org>
26767
26768         * modules/COPYING: Update copyright years.
26769         * modules/README: Likeiwse.
26770         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26771         Reported by Ian Beckwith <ianb@erislabs.net>.
26772
26773 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26774
26775         * users.txt: Update references for gnuit package.
26776
26777 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26778
26779         * m4/getdelim.m4: Fix typo in copyright line.
26780
26781 2009-09-17  Bruno Haible  <bruno@clisp.org>
26782
26783         * lib/atoll.c: Use the standard header with GPL copyright.
26784         * lib/argz.in.h: Likewise.
26785         * lib/glob.c: Likewise.
26786         * lib/glob-libc.h: Likewise.
26787         * lib/random_r.c: Likewise.
26788         * lib/siglist.h: Likewise.
26789         * lib/strsignal.c: Likewise.
26790         Reported by Ian Beckwith <ianb@erislabs.net>.
26791
26792 2009-09-17  Eric Blake  <ebb9@byu.net>
26793
26794         rmdir: ensure correct dependency order
26795         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26796
26797 2009-09-17  Bruno Haible  <bruno@clisp.org>
26798
26799         Disable assertion that fails on NetBSD 5 / i386.
26800         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26801         Reported by Sam Steingold <sds@gnu.org>
26802         and Hasso Tepper <hasso@netbsd.org>.
26803
26804 2009-09-16  Eric Blake  <ebb9@byu.net>
26805
26806         unlinkdir: port to mingw
26807         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26808         on which no one can unlink a directory.
26809
26810         stdlib: sort witness names
26811         * modules/stdlib (Makefile.am): Sort replacements.
26812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26813         * lib/stdlib.in.h: Likewise.
26814
26815         parse-duration-tests: avoid link failure
26816         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26817         LIBINTL.
26818         Reported by Tom G. Christensen.
26819
26820         openat-tests: ensure unlinkat behaves like rmdir
26821         * tests/test-rmdir.c (main): Factor guts...
26822         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26823         * modules/rmdir-tests (Files): Ship new file.
26824         * modules/openat-tests: New test.
26825         * tests/test-unlinkat.c: Likewise.
26826
26827         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26828         * modules/rmdir-errno (Status, Notice): Now obsolete.
26829
26830         rmdir: work around cygwin 1.5.x and mingw bugs
26831         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26832         * lib/rmdir.c (rmdir): Work around it.
26833         * modules/rmdir (Status, Notice): No longer obsolete.
26834         (Files): Add dos.m4.
26835         (Depends-on): Add unistd.
26836         (configure.ac): Set witnesses.
26837         (License): Relax to LGPLv2+.
26838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26839         * modules/unistd (Makefile.am): Substitute witnesses.
26840         * lib/unistd.in.h (rmdir): Declare replacement.
26841         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26842         * modules/rmdir-tests: New tests.
26843         * tests/test-rmdir.c: Likewise.
26844
26845 2009-09-15  Eric Blake  <ebb9@byu.net>
26846
26847         fchdir: improve use of replacement functions
26848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26849         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26850         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26851         REPLACE_CLOSEDIR.
26852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26853         * modules/sys_stat (Makefile.am): Substitute correct witness.
26854         * modules/dirent (Makefile.am): Likewise.
26855         * modules/unistd (Makefile.am): Likewise.
26856         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26857         * lib/unistd.in.h (dup): Likewise.
26858         * lib/sys_stat.in.h (fstat): Likewise.
26859
26860         maint: ignore gnulib-tool temp files
26861         * .gitignore: Ignore files created during gnulib-tool --test.
26862
26863 2009-09-13  Jim Meyering  <meyering@redhat.com>
26864
26865         posixtm: don't reject a time that specify "60" as the number of seconds
26866         * lib/posixtm.c (posixtime): The code to reject invalid dates
26867         would also reject a time specified with the .60 suffix.
26868         But POSIX allows that, in order to accommodate leap seconds.
26869         So don't reject it.
26870         (main): Adjust tests accordingly.
26871         * modules/posixtm (Depends-on): Add stpcpy.
26872
26873 2009-09-11  Jim Meyering  <meyering@redhat.com>
26874
26875         announce-gen: include [$release_type] in emitted Subject:
26876         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26877         e.g., [stable] in the emitted Subject: line.
26878
26879 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26880
26881         Remove obsolete macros from several modules.
26882         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26883         obsolete Autoconf macros with their modern counterparts.
26884         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26885         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26887         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26888         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26889         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26891         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26892         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26893         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26894         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26895         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26896         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26897         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26898         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26899         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26900         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26901         * m4/time_r.m4 (gl_TIME_R): Likewise.
26902         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26903         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26904         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26905
26906         Fix copyright header in build-aux scripts.
26907         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26908         recommendation.
26909         * build-aux/ncftpput-ftp: Likewise.
26910         * build-aux/update-copyright: Likewise.
26911
26912 2009-09-09  Eric Blake  <ebb9@byu.net>
26913
26914         test-link: allow Linux choice of errno
26915         * tests/test-link.c (main): Relax test for alternate error.
26916
26917         strndup: fix improper m4 caching
26918         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26919         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26920         (gl_PREREQ_STRNDUP): Delete.
26921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26922         * modules/string (Makefile.am): Substitute it.
26923         * lib/string.in.h (strndup): Modernize prototype.
26924
26925         getcwd: port to mingw
26926         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26927         different from the POSIX assumptions made throughout the getcwd
26928         module; fortunately, the mingw getcwd does not need replacement.
26929         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26930         * modules/getcwd-tests: New test.
26931         * tests/test-getcwd.c: Likewise.
26932
26933         link: fix platform bugs
26934         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26935         * lib/link.c (link): Work around them.  Fix related mingw bug.
26936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26937         * modules/unistd (Makefile.am): Substitute it.
26938         * lib/unistd.in.h (link): Declare replacement.
26939         * doc/posix-functions/link.texi (link): Document this.
26940         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26941
26942         test-link: consolidate into single C program, test more cases
26943         * tests/test-link.sh: Delete.
26944         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26945         at least Cygwin and Solaris.
26946         * modules/link-tests (Files): Remove unused file.
26947         (Depends-on): Add errno, sys_stat.
26948         (Makefile.am): Simplify.
26949
26950 2009-09-08  Bruno Haible  <bruno@clisp.org>
26951
26952         Work around towlower, towupper bug on mingw.
26953         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26954         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26955         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26956         * doc/posix-functions/towupper.texi: Likewise.
26957         Reported by Eric Blake.
26958
26959 2009-09-08  Jim Meyering  <meyering@redhat.com>
26960
26961         build: don't try to run autoheader if we don't use it
26962         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26963         is not used in configure.ac.
26964
26965 2009-09-08  Eric Blake  <ebb9@byu.net>
26966
26967         euidaccess: fix compilation error
26968         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26969
26970         rawmemchr: relax license
26971         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26972         okay.
26973         Reported by Jim Meyering.
26974
26975         mkfifoat: new module
26976         * modules/mkfifoat: New file.
26977         * lib/mkfifoat.c: Likewise.
26978         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26979         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26980         * modules/sys_stat (Makefile.am): Use them.
26981         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26982         * MODULES.html.sh (File system functions): Mention module.
26983         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26984         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26985         * modules/mkfifoat-tests: New test.
26986         * tests/test-mkfifoat.c: Likewise.
26987
26988         strchrnul: relax license
26989         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26990         okay.
26991         Reported by Jim Meyering.
26992
26993 2009-09-08  Eric Blake  <ebb9@byu.net>
26994
26995         fstatat: fix compilation on Solaris
26996         * lib/fstatat.c (includes): Add fcntl.h.
26997         Reported by Pádraig Brady.
26998
26999 2009-09-07  Eric Blake  <ebb9@byu.net>
27000
27001         rename: modernize replacement
27002         * modules/rename (Depends-on): Add stdio.
27003         (configure.ac): Declare witness.
27004         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27005         stdio take care of replacement.
27006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27007         * modules/stdio (Makefile.am): Substitute them.
27008         * lib/stdio.in.h (rename): Declare replacement.
27009         * lib/rename.c (includes): Allow cross-compilation to non-windows
27010         machines.
27011         * doc/posix-functions/rename.texi (rename): Improve
27012         documentation.
27013
27014         stdio: sort witness names
27015         * modules/stdio (Makefile.am): Sort replacements.
27016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27017         * lib/stdio.in.h: Likewise.
27018
27019         getcwd: minor cleanups
27020         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27021         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27022
27023         openat: provide more convenience names
27024         * modules/faccessat (configure.ac): Add C witness.
27025         * lib/unistd.in.h (readlinkat): Fix typo.
27026         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27027         convenience wrappers.
27028         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27029         wrappers in syntax checks.
27030
27031 2009-09-06  Eric Blake  <ebb9@byu.net>
27032
27033         doc: fix comments in recent patches
27034         * lib/faccessat.c: Mention correct function.
27035         * lib/fchmodat.c: Likewise.
27036         * lib/fchownat.c: Likewise.
27037         * lib/symlinkat.c: Likewise.
27038         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27039         constants.
27040
27041         faccessat, symlinkat: continue cleanup of previous patch
27042         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27043         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27044         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27046         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27047         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27048         set.
27049
27050 2009-09-06  Bruno Haible  <bruno@clisp.org>
27051
27052         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27053         (fstatat): Declare if GNULIB_FSTATAT is set.
27054         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27055         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27056         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27057         * modules/fcntl-h (Files): Remove m4/openat.m4.
27058         * modules/sys_stat (Files): Remove m4/openat.m4.
27059         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27060         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27061         * modules/unistd (Files): Remove m4/openat.m4.
27062         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27063         GNULIB_OPENAT.
27064         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27065         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27066         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27067         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27068         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27069         gl_OPENAT_DEFAULTS.
27070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27071         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27072         Don't require gl_OPENAT_DEFAULTS.
27073         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27074         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27075         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27076         (gl_OPENAT_DEFAULTS): Remove macro.
27077
27078 2009-09-06  Bruno Haible  <bruno@clisp.org>
27079
27080         * modules/openat (configure.ac): Remove unneeded witness.
27081
27082 2009-09-06  Bruno Haible  <bruno@clisp.org>
27083
27084         Set errno to ENOSYS when a function is entirely unsupported.
27085         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27086         EOPNOTSUPP.
27087         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27088         * modules/chown (Depends-on): Remove errno.
27089
27090 2009-09-06  Bruno Haible  <bruno@clisp.org>
27091
27092         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27093
27094 2009-09-06  Bruno Haible  <bruno@clisp.org>
27095
27096         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27097
27098 2009-09-06  Ben Pfaff  <blp@gnu.org>
27099             Bruno Haible  <bruno@clisp.org>
27100
27101         Work around a glibc bug in strtok_r.
27102         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27103         Undefine if UNDEFINE_STRTOK_R is set.
27104         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27106         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27107         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27108         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27109         UNDEFINE_STRTOK_R.
27110         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27111
27112 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27113
27114         exclude: minor fix
27115         * lib/exclude.c: Include wctype.h
27116
27117 2009-09-06  Akim Demaille  <demaille@gostai.com>
27118
27119         bootstrap: improve error message
27120         * build-aux/bootstrap (find_tool): Upon failure, report the list
27121         of candidates.
27122         Honor the initial value of the envvar.
27123
27124 2009-09-05  Eric Blake  <ebb9@byu.net>
27125
27126         symlinkat: new module
27127         * modules/symlinkat: New file.
27128         * lib/symlinkat.c: Likewise.
27129         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27131         * modules/unistd (Makefile.am): Use them.
27132         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27133         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27134         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27135         * MODULES.html.sh (File system functions): Mention module.
27136         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27137         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27138         * modules/symlinkat-tests: New test.
27139         * tests/test-symlinkat.c: Likewise.
27140
27141         test-openat-safer: add more checks
27142         * tests/test-openat-safer.c (main): Check more code paths.
27143
27144 2009-09-05  Jim Meyering  <meyering@redhat.com>
27145
27146         syntax-check: detect unnecessary inclusion of openat.h
27147         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27148
27149 2009-09-05  Bruno Haible  <bruno@clisp.org>
27150
27151         Support towlower, towupper.
27152         * doc/posix-functions/towlower.texi: Mention module wctype.
27153         * doc/posix-functions/towupper.texi: Likewise.
27154         * lib/wctype.in.h (towlower, towupper): New functions.
27155         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27156         (ASSERT): New macro.
27157         (e): New variable.
27158         (main): Test also towlower, towupper. Test WEOF argument.
27159         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27160
27161 2009-09-05  Bruno Haible  <bruno@clisp.org>
27162
27163         Fix conversion behaviour when the input is invalid.
27164         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27165         mark occurring in first pass of indirect conversion.
27166         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27167         input.
27168         Found by clang's static analyzer.
27169
27170 2009-09-05  Bruno Haible  <bruno@clisp.org>
27171
27172         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27173         where direct conversion is possible.
27174
27175 2009-09-04  Eric Blake  <ebb9@byu.net>
27176
27177         openat: fail with ENOENT on empty name
27178         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27179         buffer.
27180
27181         link-follow: fix logic bug in prior patch
27182         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27183         reversed sense of yes and no in prior patch.  Avoid confusing
27184         compilation failure with desired semantics.
27185
27186         link-follow: accomodate mingw and cross-compilation
27187         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27188         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27189         cross-compilation results to -1, to make linkat easier to
27190         implement when cross-compiling.  Trivially support mingw.
27191         * modules/link-follow (configure.ac): Call new name.
27192         * NEWS: Mention this.
27193
27194 2009-09-03  Eric Blake  <ebb9@byu.net>
27195
27196         faccessat: compile replacement
27197         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27198         needed.
27199
27200         fts: fix compilation error
27201         * lib/fts.c (includes): Re-add "openat.h", for
27202         openat_needs_fchdir.
27203
27204         faccessat: new module
27205         * modules/faccessat: New file.
27206         * lib/faccessat.c: Likewise.
27207         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27209         * modules/unistd (Makefile.am): Use it.
27210         * lib/unistd.in.h (faccessat): Declare it.
27211         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27212         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27213         * MODULES.html.sh (File system functions): Mention it.
27214         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27215         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27216
27217         euidaccess: prefer POSIX over non-standard implementation
27218         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27219         * lib/euidaccess.c (euidaccess): Use it if available.
27220
27221         openat: make template easier to use
27222         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27223         AT_FUNC_F2 to be undefined.
27224         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27225         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27226         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27227         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27228         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27229         Likewise.
27230         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27231         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27232         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27233         Likewise.
27234
27235         openat: declare in POSIX headers
27236         * NEWS: Mention this.
27237         * modules/openat (configure.ac): Declare witnesses.
27238         (Depends-on): Add fcntl-h, sys_stat, unistd.
27239         (Include): Mention correct headers.
27240         * modules/fcntl-h (Depends-on): Add link-warning.
27241         (Files): Add openat.m4.
27242         (Makefile.am): Substitute witnesses.
27243         * modules/sys_stat (Files, Makefile.am): Likewise.
27244         * modules/unistd (Files, Makefile.am): Likewise.
27245         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27246         (gl_OPENAT_DEFAULTS): New macro.
27247         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27250         (SYS_STAT_H): Remove unused variable.
27251         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27252         * lib/fcntl--.h (includes): Remove unneeded header.
27253         * lib/openat-safer.c (includes): Likewise.
27254         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27255         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27256         appropriate headers.
27257         (__OPENAT_PREFIX): Delete.
27258         * lib/fcntl.in.h (openat): Provide declaration.
27259         (AT_FDCWD): Fix Solaris bug.
27260         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27261         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27262         * lib/fchmodat.c (includes):  Adjust to find declaration.
27263         * lib/fchownat.c (includes): Likewise.
27264         * lib/mkdirat.c (includes): Likewise.
27265         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27266         still visible.
27267
27268 2009-09-02  Eric Blake  <ebb9@byu.net>
27269
27270         errno: use consistently
27271         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27272         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27273         * lib/canonicalize.c (ELOOP): Likewise.
27274         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27275         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27276         * lib/lchown.c (EOPNOTSUPP): Likewise.
27277         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27278         * lib/savewd.c (ESTALE): Likewise.
27279         * lib/settime.c (ENOSYS): Likewise.
27280         * lib/utimens.c (ENOSYS): Likewise.
27281         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27282         * lib/chdir-safer.c (ELOOP): Likewise.
27283         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27284         * modules/c-stack (Depends-on): Add errno.
27285         * modules/canonicalize (Depends-on): Likewise.
27286         * modules/chdir-safer (Depends-on): Likewise.
27287         * modules/fdopendir (Depends-on): Likewise.
27288         * modules/inet_ntop (Depends-on): Likewise.
27289         * modules/inet_pton (Depends-on): Likewise.
27290         * modules/lchown (Depends-on): Likewise.
27291         * modules/openat (Depends-on): Likewise.
27292         * modules/savewd (Depends-on): Likewise.
27293         * modules/settime (Depends-on): Likewise.
27294         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27295
27296         fts: avoid leaking fds
27297         * modules/fts (Depends-on): Add cloexec.
27298         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27299         flag.
27300
27301         fts: make directory fds more robust
27302         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27303         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27304
27305         backupfile, chdir-long, fts, savedir: make safer
27306         * lib/backupfile.c (includes): Use "dirent--.h", since
27307         numbered_backup can write to stderr during readdir.
27308         * lib/savedir.c (includes): Likewise.
27309         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27310         emulation can write to stderr on failure.
27311         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27312         * lib/getcwd.c: Document why opendir_safer is unused.
27313         * lib/glob.c: Likewise.
27314         * lib/scandir.c: Likewise.
27315         * lib/openat-proc.c: Likewise, for open_safer.
27316         * modules/backupfile (Depends-on): Add dirent-safer.
27317         * modules/savedir (Depends-on): Likewise.
27318         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27319         * modules/chdir-long (Depends-on): Add openat-safer.
27320
27321         openat-safer: new module
27322         * modules/openat-safer: New file.
27323         * lib/openat-safer.c: Likewise.
27324         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27325         * lib/fcntl-safer.h (openat_safer): Declare.
27326         * lib/fcntl--.h (openat): Override.
27327         * MODULES.html.sh (File descriptor based I/O): Mention it.
27328         * lib/openat.h: Add double-inclusion guards.
27329         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27330         "fcntl--.h", so we can implement openat.
27331         * modules/openat-safer-tests: New test.
27332         * tests/test-openat-safer.c: New file.
27333
27334         dirent-safer: new module
27335         * modules/dirent-safer: New file.
27336         * lib/dirent--.h: Likewise.
27337         * lib/dirent-safer.h: Likewise.
27338         * lib/opendir-safer.c: Likewise.
27339         * m4/dirent-safer.m4: Likewise.
27340         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27341         * modules/dirent-safer-tests: New test.
27342         * tests/test-dirent-safer.c: New file.
27343         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27344
27345         fdopendir: optimize on mingw
27346         * lib/unistd.in.h (_gl_directory_name): New prototype.
27347         * lib/fchdir.c (_gl_directory_name): Implement it.
27348         (fchdir): Use it to simplify implementation.
27349         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27350         fchdir, when available, to avoid calling [f]chdir().
27351
27352         fdopendir: split into its own module
27353         * lib/openat.c (fdopendir): Move...
27354         * lib/fdopendir.c: ...into new file.
27355         * modules/fdopendir: New module.
27356         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27357         * modules/openat (Depends-on): Add fdopendir.
27358         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27359         fdopendir here.
27360         * modules/savedir (Depends-on): Only need fdopendir, not full
27361         openat.
27362         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27363         * lib/openat.h (fdopendir): Drop prototype.
27364         * lib/dirent.in.h (fdopendir): Provide prototype.
27365         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27366         * modules/dirent (Makefile.am): Substitute them.
27367         * MODULES.html.sh (File system functions): Mention it.
27368         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27369         * modules/fdopendir-tests: New file.
27370         * tests/test-fdopendir.c: Likewise.
27371
27372         fchdir: use more consistent macro convention
27373         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27374         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27375         REPLACE_FCHDIR, rather than relying on config.h macros.
27376         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27377         inside a single make-time REPLACE_FCHDIR block, rather than using
27378         the config.h FCHDIR_REPLACEMENT.
27379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27380         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27381         Manage fstat replacement.
27382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27383         REPLACE_FCHDIR.
27384         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27385         (Makefile.am): Substitute REPLACE_FCHDIR.
27386         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27387         FCHDIR_REPLACEMENT.
27388         * lib/dup-safer.c (dup_safer): Likewise.
27389         * lib/dup2.c (rpl_dup2): Likewise.
27390         * lib/dup3.c (rpl_dup3): Likewise.
27391         * lib/open.c (rpl_open): Likewise.
27392
27393         fchdir: simplify error handling, and support dup3
27394         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27395         stdbool, malloc-posix, realloc-posix.
27396         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27397         (ensure_dirs_slot): Return false on allocation failure.
27398         (rpl_dup2): Delete.
27399         (_gl_register_dup): New function.
27400         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27401         (_gl_register_fd): Close fd on allocation failure.
27402         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27403         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27404         prototype.
27405         (rpl_dup2_fchdir): Delete prototype.
27406         * lib/open.c (open): Update caller.
27407         * lib/dup2.c (dup2): Track fchdir metadata.
27408         * lib/dup3.c (dup3): Likewise.
27409         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27411
27412 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27413
27414         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27415         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27416         don't pass arguments to AC_OUTPUT.
27417
27418 2009-09-02  Bruno Haible  <bruno@clisp.org>
27419
27420         * modules/mkdtemp (License): Relicense under LGPLv2+.
27421         Reported by Paolo Bonzini.
27422
27423 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27424
27425         Replace uses of obsolete autoconf macros in Jim's modules.
27426         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27427         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27428         can evoke a warning from autoconf when run with -Wobsolete
27429         enabled.  They were declared obsolete for good reasons (see
27430         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27431         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27432         should not continue using the deprecated macros.
27433         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27434         obsolete Autoconf macros with modern counterparts.
27435         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27436         * m4/dos.m4 (gl_AC_DOS): Likewise.
27437         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27438         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27439         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27440         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27441         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27442         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27443         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27444         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27445         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27446         Likewise.
27447         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27448         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27449         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27450         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27451         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27452         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27453
27454 2009-09-01  Eric Blake  <ebb9@byu.net>
27455
27456         fchdir: fix off-by-one bug in previous patch
27457         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27458         (_gl_unregister_fd): Delete useless if.
27459
27460 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27461
27462         maint.mk: sort the list of syntax-check rules
27463         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27464         easier to get a sense of progress when the rules are run sequentially
27465         and take a long time.
27466
27467 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27468
27469         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27470         * modules/netinet_in: Likewise.
27471         * modules/sys_file: Likewise.
27472         * modules/sys_ioctl: Likewise.
27473         * modules/sys_select: Likewise.
27474         * modules/sys_socket: Likewise.
27475         * modules/sys_stat: Likewise.
27476         * modules/sys_time: Likewise.
27477         * modules/sys_times: Likewise.
27478         * modules/sys_utsname: Likewise.
27479         * modules/sys_wait: Likewise.
27480
27481 2009-09-01  Jim Meyering  <meyering@redhat.com>
27482
27483         fts: help ensure that return values are not ignored
27484         * lib/fts_.h (__GNUC_PREREQ): Define.
27485         (__attribute_warn_unused_result__): Define.
27486         (fts_children, fts_close, fts_open, fts_read): Declare with
27487         __attribute_warn_unused_result__.
27488
27489         fts: fts_close now fails also when closing a dir file descriptor fails
27490         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27491         and propagate to caller, along with errno.
27492
27493         announce-gen: correct formatting in --help output
27494         * build-aux/announce-gen (usage): Move the one-line description in
27495         --help output "up", to where it belongs, just after Usage:.
27496
27497 2009-08-31  Eric Blake  <ebb9@byu.net>
27498
27499         fchdir: port to mingw
27500         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27501         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27502         opened, then use a substitute.
27503         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27504         replacement.
27505         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27506         (_gl_register_fd): No need to check stat if open already filters
27507         all directories.
27508         (fchdir): Fix error condition to match POSIX.
27509         * modules/fchdir (Depends-on): Add sys_stat.
27510         * doc/posix-functions/open.texi (open): Document the limitation.
27511         * modules/fchdir-tests: New file.
27512         * tests/test-fchdir.c: Likewise.
27513
27514         canonicalize: allow cross-testing from cygwin to mingw
27515         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27516         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27517         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27518         Likewise.
27519         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27520         target does not support symlinks.
27521         * tests/test-canonicalize-lgpl.sh: Likewise.
27522
27523         chown: avoid compilation warning on mingw
27524         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27525         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27526         mingw.
27527         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27528         * modules/chown (Depends-on): Add errno.
27529
27530 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27531
27532         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27533         command.
27534
27535 2009-08-31  Jim Meyering  <meyering@redhat.com>
27536
27537         canonicalize: remove useless initialization
27538         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27539         initialization of local, "end".
27540
27541 2009-08-30  Bruno Haible  <bruno@clisp.org>
27542
27543         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27544         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27545         ENOSYS.
27546
27547 2009-08-30  Bruno Haible  <bruno@clisp.org>
27548
27549         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27550         /usr/xpg4/bin/tr when it exists.
27551         * tests/test-pipe-filter-gi1.sh: Likewise.
27552
27553 2009-08-30  Bruno Haible  <bruno@clisp.org>
27554
27555         Work around deficient /usr/bin/id program on Solaris.
27556         * tests/test-file-has-acl.sh (ID): New variable.
27557         * tests/test-set-mode-acl.sh (ID): Likewise.
27558         * tests/test-copy-acl.sh (ID): Likewise.
27559         * tests/test-copy-file.sh (ID): Likewise.
27560
27561 2009-08-30  Bruno Haible  <bruno@clisp.org>
27562
27563         New module 'xstriconveh'.
27564         * lib/xstriconveh.h: New file.
27565         * lib/xstriconveh.c: New file.
27566         * modules/xstriconveh: New file.
27567
27568 2009-08-30  Bruno Haible  <bruno@clisp.org>
27569
27570         Make it easier to use mem_cd_iconveh.
27571         * lib/striconveh.h (iconveh_t): New type.
27572         (iconveh_open, iconveh_close): New declarations.
27573         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27574         with a single 'const iconveh_t *' argument.
27575         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27576         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27577         with a single 'const iconveh_t *' argument.
27578         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27579         * tests/test-striconveh.c (main): Update.
27580         * NEWS: Mention the change.
27581
27582 2009-08-30  Bruno Haible  <bruno@clisp.org>
27583
27584         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27585         problem.
27586
27587 2009-08-30  Bruno Haible  <bruno@clisp.org>
27588
27589         Work around iconv_open problem on Solaris.
27590         * lib/iconv_open-solaris.gperf: New file.
27591         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27592         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27593         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27594         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27595         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27596         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27597
27598 2009-08-29  Jim Meyering  <meyering@redhat.com>
27599
27600         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27601         * top/maint.mk (cvs-check): Remove target; it was just an alias
27602         to the better-named vc-diff-check.
27603         (maintainer-distcheck): Remove rule.  It was used only from
27604         the (alpha/beta/major) target, and all of its commands but one
27605         were coreutils-specific.
27606         (vc-dist): Remove rule.
27607         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27608         Run vc-diff-check, not vc-dist.
27609         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27610
27611 2009-08-27  Bruno Haible  <bruno@clisp.org>
27612
27613         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27614         of 0.
27615
27616 2009-08-27  Bruno Haible  <bruno@clisp.org>
27617
27618         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27619         compilers.
27620         * doc/func.texi: Document the SunPRO C bug.
27621
27622 2009-08-27  Bruno Haible  <bruno@clisp.org>
27623
27624         Fix link error on Solaris.
27625         * tests/test-parse-duration.c (xstrdup): Remove function.
27626
27627 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27628
27629         ignore-value: handle pointer types, too
27630         * lib/ignore-value.h (__attribute__): Remove definition.
27631         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27632         of a more concise and more-often effective "(void) i" statement.
27633         (ignore_ptr): New function to suppress warnings from functions that
27634         return pointers, and to make it explicit that one function doesn't
27635         handle all cases.
27636
27637 2009-08-25  Bruno Haible  <bruno@clisp.org>
27638
27639         dup2: work around a Linux bug.
27640         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27641         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27642         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27643         Reported by Simon Josefsson.
27644
27645 2009-08-25  Jim Meyering  <meyering@redhat.com>
27646
27647         libguestfs uses gnulib
27648         * users.txt: Add libguestfs.
27649
27650 2009-08-24  Eric Blake  <ebb9@byu.net>
27651
27652         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27653         * lib/pipe2.c (includes): Add binary-io.h.
27654         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27655
27656 2009-08-24  Bruno Haible  <bruno@clisp.org>
27657
27658         Tolerate declared but missing accept4 syscall.
27659         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27660         available.
27661         * lib/sys_socket.in.h (accept4): If the function is already present,
27662         override it.
27663         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27664         * modules/accept4 (Makefile.am): Compile accept4.c always.
27665         Reported by Paolo Bonzini and Eric Blake.
27666
27667 2009-08-23  Bruno Haible  <bruno@clisp.org>
27668
27669         New module 'accept4'.
27670         * lib/sys_socket.in.h (accept4): New declaration.
27671         * lib/accept4.c: New file.
27672         * m4/accept4.m4: New file.
27673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27674         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27675         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27676         HAVE_ACCEPT4.
27677         * modules/accept4: New file.
27678         * doc/glibc-functions/accept4.texi: Mention the new module.
27679
27680 2009-08-24  Jim Meyering  <meyering@redhat.com>
27681
27682         progname: also set global program_invocation_name, when possible
27683         Before this change, a libtool-enabled program that calls glibc's
27684         error function would report the program name as
27685         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27686         * modules/progname (configure.ac): Check for a declaration of
27687         program_invocation_name.
27688         * lib/progname.c:  Include <errno.h>.
27689         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27690         Set program_invocation_name.
27691
27692 2009-08-23  Bruno Haible  <bruno@clisp.org>
27693
27694         * lib/dup3.c: Include <string.h>.
27695
27696 2009-08-23  Bruno Haible  <bruno@clisp.org>
27697
27698         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27699         * lib/pipe2.c (pipe2): Likewise.
27700         Suggested by Eric Blake.
27701
27702 2009-08-23  Bruno Haible  <bruno@clisp.org>
27703
27704         Tolerate declared but missing dup3 syscall.
27705         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27706         * lib/unistd.in.h (dup3): If the function is already present,
27707         override it.
27708         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27709         * modules/dup3 (Makefile.am): Compile dup3.c always.
27710         Reported by Paolo Bonzini.
27711
27712 2009-08-23  Bruno Haible  <bruno@clisp.org>
27713
27714         Tolerate declared but missing pipe2 syscall.
27715         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27716         available.
27717         * lib/unistd.in.h (pipe2): If the function is already present,
27718         override it.
27719         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27720         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27721         Reported by Paolo Bonzini.
27722
27723 2009-08-23  Bruno Haible  <bruno@clisp.org>
27724
27725         * lib/pipe2.c (pipe2): Move #ifs inside function.
27726
27727 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27728
27729         quotearg: document limitations of quote_these_too
27730         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27731         those limitations are created.
27732         * lib/quotearg.h (set_char_quoting): Document that digits and
27733         letters that are special after backslash are not permitted.
27734         (quotearg_char): Cross-reference set_char_quoting documentation.
27735
27736 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27737
27738         quotearg: implement custom_quoting_style
27739         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27740         right_quote fields.
27741         (set_custom_quoting): New public function.
27742         (quotearg_buffer_restyled): Add left_quote and right_quote
27743         arguments, handle them very much like locale quoting, and update
27744         all uses.
27745         (quotearg_n_custom): New public function.
27746         (quotearg_n_custom_mem): New public function.
27747         (quotearg_custom): New public function.
27748         (quotearg_custom_mem): New public function.
27749         * lib/quotearg.h: Prototype and document new public functions.
27750         (enum quoting_style): For escape_quoting_style and
27751         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27752         ignored even though they're otherwise like c_quoting_style.
27753         Add custom_quoting_style member and document with comparison to
27754         clocale_quoting_style.
27755         * tests/test-quotearg.c (custom_quotes): New array.
27756         (custom_results): New array.
27757         (main): Extend to test custom quoting.
27758
27759 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27760
27761         quotearg: fix right quote escaping when it's in quote_these_too
27762         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27763         quote, be sure to prepend only one backslash.
27764         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27765         (main): Test it.
27766
27767 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27768
27769         quotearg-tests: test escaping of embedded locale quotes
27770         * tests/test-quotearg.c (struct result_strings): Add member for
27771         new input.
27772         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27773         (inputs): Add new input.
27774         (results_g): Add expected results.
27775         (flag_results): Likewise.
27776         (locale_results): Likewise.
27777         (compare_strings): Check those.
27778
27779 2009-08-23  Bruno Haible  <bruno@clisp.org>
27780
27781         Tests for module 'dup3'.
27782         * modules/dup3-tests: New file.
27783         * tests/test-dup3.c: New file.
27784
27785         New module 'dup3'.
27786         * lib/unistd.in.h (dup3): New declaration.
27787         * lib/dup3.c: New file.
27788         * m4/dup3.m4: New file.
27789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27790         HAVE_DUP3.
27791         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27792         * modules/dup3: New file.
27793         * doc/glibc-functions/dup3.texi: Mention the new module.
27794
27795 2009-08-23  Bruno Haible  <bruno@clisp.org>
27796
27797         Tweak the dup2 test.
27798         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27799         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27800         the test file is still empty. Fix argument order of lseek.
27801
27802 2009-08-23  Bruno Haible  <bruno@clisp.org>
27803
27804         Avoid test link errors when the modules getopt-gnu, gettext are used.
27805         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27807
27808 2009-08-23  Bruno Haible  <bruno@clisp.org>
27809
27810         Fix getdtablesize() on mingw.
27811         * lib/getdtablesize.c (getdtablesize): Implement differently.
27812         * lib/unistd.in.h (getdtablesize): Improve comment.
27813
27814 2009-08-23  Bruno Haible  <bruno@clisp.org>
27815
27816         New module 'mkostemp'.
27817         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27818         * lib/stdlib.in.h (mksotemp): New declaration.
27819         * lib/mkostemp.c: New file, from glibc with modifications.
27820         * lib/tempname.h (GT_FILE): Remove outdated comment.
27821         (gen_tempname): Add flags argument.
27822         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27823         (__GT_FILE): Map to 1.
27824         (small_open, large_open): Remove macros.
27825         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27826         * lib/mkstemp.c (mkstemp): Update.
27827         * lib/mkdtemp.c (mkdtemp): Likewise.
27828         * m4/mkostemp.m4: New file.
27829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27830         HAVE_MKOSTEMP.
27831         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27832         HAVE_MKOSTEMP.
27833         * modules/mkostemp: New file, based on modules/mkstemp.
27834         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27835         * NEWS: Mention the change.
27836
27837 2009-08-23  Bruno Haible  <bruno@clisp.org>
27838
27839         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27840         Reported by Eric Blake.
27841
27842 2009-08-23  Bruno Haible  <bruno@clisp.org>
27843
27844         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27845         Reported by Eric Blake.
27846
27847 2009-08-23  Bruno Haible  <bruno@clisp.org>
27848
27849         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27850         * modules/pipe2 (Depends-on): Likewise.
27851
27852 2009-08-23  Eric Blake  <ebb9@byu.net>
27853
27854         fcntl-h: add O_TTY_INIT support
27855         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27856         * tests/test-fcntl-h.c (o): Test it.
27857         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27858
27859         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27860         * modules/fcntl: Move <fcntl.h> header replacement...
27861         * modules/fcntl-h: ...to new name, so as not to collide with
27862         like-named function.
27863         * tests/test-fcntl.c: Rename...
27864         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27865         * modules/fcntl-tests: Rename...
27866         * modules/fcntl-h-tests: ...to this.  Update test file name.
27867         * modules/chdir-long (Depends-on): Update clients.
27868         * modules/chdir-safer (Depends-on): Likewise.
27869         * modules/fcntl-safer (Depends-on): Likewise.
27870         * modules/fts (Depends-on): Likewise.
27871         * modules/mkancesdirs (Depends-on): Likewise.
27872         * modules/mkdir-p (Depends-on): Likewise.
27873         * modules/open (Depends-on): Likewise.
27874         * modules/savewd (Depends-on): Likewise.
27875         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27876         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27877
27878 2009-08-22  Bruno Haible  <bruno@clisp.org>
27879
27880         * modules/binary-io (License): Relicense under LGPL.
27881         * modules/pipe2 (License): Likewise.
27882
27883 2009-08-22  Bruno Haible  <bruno@clisp.org>
27884
27885         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27886         return value.
27887         * lib/pipe-filter-gi.c (filter_init): Likewise.
27888         Reported by Eric Blake.
27889
27890 2009-08-22  Bruno Haible  <bruno@clisp.org>
27891
27892         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27893         * modules/pipe (Depends-on): Add pipe2.
27894
27895 2009-08-22  Bruno Haible  <bruno@clisp.org>
27896
27897         Tests for module 'pipe2'.
27898         * modules/pipe2-tests: New file.
27899         * tests/test-pipe2.c: New file.
27900
27901         New module 'pipe2'.
27902         * lib/unistd.in.h (pipe2): New declaration.
27903         * lib/pipe2.c: New file.
27904         * m4/pipe2.m4: New file.
27905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27906         HAVE_PIPE2.
27907         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27908         * modules/pipe2: New file.
27909         * doc/glibc-functions/pipe2.texi: Mention the new module.
27910
27911 2009-08-22  Bruno Haible  <bruno@clisp.org>
27912
27913         Reference some new glibc functions.
27914         * doc/glibc-functions/accept4.texi: New file.
27915         * doc/glibc-functions/dup3.texi: New file.
27916         * doc/glibc-functions/mkostemp.texi: New file.
27917         * doc/glibc-functions/pipe2.texi: New file.
27918         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27919         (Glibc sys/socket.h): Refer to accept4.
27920         (Glibc unistd.h): Refer to dup3, pipe2.
27921         Reported by Eric Blake.
27922
27923 2009-08-22  Jim Meyering  <meyering@redhat.com>
27924             Bruno Haible  <bruno@clisp.org>
27925
27926         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27927         This makes it so packages using automake-1.11's silent-rules option
27928         can print e.g., a single "GEN    configmake.h" line, rather than
27929         the 30+ statements that perform the job.  If you want to see the
27930         actual commands, you can still run "make V=1".
27931         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27932         so that make output is abbreviated when those variables are defined
27933         appropriately.
27934         * modules/argz: Likewise.
27935         * modules/arpa_inet: Likewise.
27936         * modules/byteswap: Likewise.
27937         * modules/configmake: Likewise.
27938         * modules/dirent: Likewise.
27939         * modules/errno: Likewise.
27940         * modules/fcntl: Likewise.
27941         * modules/float: Likewise.
27942         * modules/fnmatch: Likewise.
27943         * modules/getopt-posix: Likewise.
27944         * modules/glob: Likewise.
27945         * modules/iconv_open: Likewise.
27946         * modules/inttypes: Likewise.
27947         * modules/localcharset: Likewise.
27948         * modules/locale: Likewise.
27949         * modules/math: Likewise.
27950         * modules/netdb: Likewise.
27951         * modules/netinet_in: Likewise.
27952         * modules/poll: Likewise.
27953         * modules/posix_spawnp-tests: Likewise.
27954         * modules/sched: Likewise.
27955         * modules/search: Likewise.
27956         * modules/selinux-h: Likewise.
27957         * modules/signal: Likewise.
27958         * modules/spawn: Likewise.
27959         * modules/stdarg: Likewise.
27960         * modules/stdbool: Likewise.
27961         * modules/stddef: Likewise.
27962         * modules/stdint: Likewise.
27963         * modules/stdio: Likewise.
27964         * modules/stdlib: Likewise.
27965         * modules/string: Likewise.
27966         * modules/strings: Likewise.
27967         * modules/sys_file: Likewise.
27968         * modules/sys_ioctl: Likewise.
27969         * modules/sys_select: Likewise.
27970         * modules/sys_socket: Likewise.
27971         * modules/sys_stat: Likewise.
27972         * modules/sys_time: Likewise.
27973         * modules/sys_times: Likewise.
27974         * modules/sys_utsname: Likewise.
27975         * modules/sys_wait: Likewise.
27976         * modules/sysexits: Likewise.
27977         * modules/time: Likewise.
27978         * modules/unistd: Likewise.
27979         * modules/wchar: Likewise.
27980         * modules/wctype: Likewise.
27981
27982 2009-08-22  Jim Meyering  <meyering@redhat.com>
27983
27984         announce-gen: detect write failure
27985         * build-aux/announce-gen: Add Coda at end.
27986         Remove equivalent-but-more-verbose block at top.
27987
27988 2009-08-19  Akim Demaille  <demaille@gostai.com>
27989
27990         bootstrap: --help to stdout.
27991         * bootstrap (usage): Don't send --help to stderr.
27992         Use a here doc instead of a long string.
27993
27994 2009-08-21  Eric Blake  <ebb9@byu.net>
27995
27996         test-popen-safer: split from test-popen
27997         * tests/test-popen.c (main): Move...
27998         * tests/test-popen.h: ...into new file.
27999         * tests/test-popen-safer2.c: New file.
28000         * modules/popen-tests (Files): Add test-popen.h.
28001         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28002         Suggested by Bruno Haible.
28003
28004         test-fcntl-safer: split from test-open
28005         * tests/test-open.c (main): Move...
28006         * tests/test-open.h: ...into new file.
28007         * tests/test-fcntl-safer.c: New file.
28008         * modules/open-tests (Files): Add test-open.h.
28009         * modules/fcntl-safer-tests: New file.
28010         Suggested by Bruno Haible.
28011
28012         test-fopen-safer: split from test-fopen
28013         * tests/test-fopen.c (main): Move...
28014         * tests/test-fopen.h: ...into new file.
28015         * tests/test-fopen-safer.c: New file.
28016         * modules/fopen-tests (Files): Add test-fopen.h.
28017         * modules/fopen-safer-tests: New file.
28018         Suggested by Bruno Haible.
28019
28020 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28021
28022         popen-safer: test O_CLOEXEC at run-time.
28023         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28024
28025 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28026
28027         fcntl: move more flags to the header
28028         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28029         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28030         * lib/fcntl.in.h: Do both things here.
28031
28032 2009-08-21  Jim Meyering  <meyering@redhat.com>
28033
28034         consistently remove $@-t before redirecting to it
28035         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28036         * modules/alloca-opt: Likewise.
28037         * modules/byteswap: Likewise.
28038         * modules/fnmatch: Likewise.
28039         * modules/getopt-posix: Likewise.
28040         * modules/glob: Likewise.
28041         * modules/poll: Likewise.
28042         * modules/posix_spawnp-tests: Likewise.
28043         * modules/sys_socket: Likewise.
28044         * modules/sysexits: Likewise.
28045
28046 2009-08-21  Eric Blake  <ebb9@byu.net>
28047
28048         popen: simplify access to original popen
28049         * lib/popen.c (rpl_popen): No need to worry about popen being a
28050         macro.
28051         Reported by Bruno Haible.
28052
28053 2009-08-20  Eric Blake  <ebb9@byu.net>
28054
28055         build: avoid some compiler warnings
28056         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28057         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28058         type.
28059         (new_exclude_segment, excluded_file_pattern_p)
28060         (excluded_file_name_p): Reduce scope.
28061         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28062         old-style declaration.
28063
28064 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28065
28066         * tests/test-exclude1.sh: Handle Windows EOL.
28067         * tests/test-exclude2.sh: Likewise.
28068         * tests/test-exclude3.sh: Likewise.
28069         * tests/test-exclude4.sh: Likewise.
28070         * tests/test-exclude5.sh: Likewise.
28071         * tests/test-exclude6.sh: Likewise.
28072         * tests/test-exclude7.sh: Likewise.
28073
28074 2009-08-19  Akim Demaille  <demaille@gostai.com>
28075
28076         bootstrap: find sha1sum when named gsha1sum.
28077         * bootstrap (find_tool): New.
28078         ($SHA1SUM): New.
28079         Use it.
28080
28081 2009-08-20  Jim Meyering  <meyering@redhat.com>
28082
28083         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28084         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28085         expression that converts "." in a file name to "\." in the resulting
28086         regexp.  Start with a dummy statement, so that prior shell variable
28087         definitions are expanded portably.  Reported by Simon Josefsson.
28088
28089 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28090
28091         Fix polling for writeability of a screen buffer.
28092         * lib/poll.c: Distinguish input and screen buffers for the
28093         Win32 implementation.
28094         * lib/select.c: Likewise.
28095
28096 2009-08-19  Eric Blake  <ebb9@byu.net>
28097
28098         popen-safer: prevent popen from clobbering std descriptors
28099         * modules/popen-safer: New file.
28100         * lib/popen-safer.c: Likewise.
28101         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28102         * lib/stdio--.h (popen): Provide override.
28103         * lib/stdio-safer.h (popen_safer): Provide declaration.
28104         * tests/test-popen.c (includes): Partially test this.
28105         * modules/popen-safer-tests: New file, for more tests.
28106         * tests/test-popen-safer.c: Likewise.
28107         * MODULES.html.sh (file stream based Input/Output): Mention it.
28108
28109         tests: test some of the *-safer modules
28110         * modules/fopen-safer (Depends-on): Add fopen.
28111         * modules/fcntl-safer (Depends-on): Add fcntl.
28112         * modules/stdlib-safer (Depends-on): Add stdlib.
28113         (configure.ac): Set indicator.
28114         * modules/unistd-safer (configure.ac): Likewise.
28115         * modules/tmpfile-safer (configure.ac): Likewise.
28116         (Depends-on): Add tmpfile.
28117         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28118         active.
28119         * tests/test-fopen.c (includes): Test safer versions when they are
28120         in use.
28121         * tests/test-open.c (includes): Likewise.
28122
28123         popen: fix cygwin 1.5 bug when stdin closed
28124         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28125         * modules/popen: New file.
28126         * modules/popen-tests: Likewise.
28127         * tests/test-popen.c: Likewise.
28128         * m4/popen.m4: Likewise.
28129         * lib/popen.c: Likewise.
28130         * lib/stdio.in.h (popen): New declaration.
28131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28132         * modules/stdio (Makefile.am): Likewise.
28133         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28134
28135 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28136
28137         maint.mk: give full control over update-copyright exclusions
28138         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28139         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28140         (update-copyright): Don't force inclusion of top-level
28141         ChangeLog.  Don't force exclusion of all COPYING files, but make
28142         them the default exclusion instead.
28143
28144 2009-08-16  Bruno Haible  <bruno@clisp.org>
28145
28146         Fix test failures on Solaris 10.
28147         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28148         tests when Solaris iconv() is used.
28149         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28150         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28151         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28152         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28153         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28154
28155 2009-08-16  Bruno Haible  <bruno@clisp.org>
28156
28157         Fix test failures on Solaris 10.
28158         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28159         'tr' program and pass it as first argument.
28160         * tests/test-pipe-filter-gi1.sh: Likewise.
28161         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28162         program as first argument.
28163         * tests/test-pipe-filter-gi1.c (main): Likewise.
28164
28165 2009-08-16  Eric Blake  <ebb9@byu.net>
28166
28167         fpurge: fix previous commits
28168         * modules/fpurge (Makefile.am): Make replacement conditional,
28169         partially reverting 2007-04-29 change; missed in previous
28170         attempt.
28171         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28172         is missing.
28173
28174 2009-08-16  Bruno Haible  <bruno@clisp.org>
28175
28176         Clarify fpurge's effect on the file position.
28177         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28178         * tests/test-fpurge.c (main): Make a second pass for checking the file
28179         position.
28180
28181 2009-08-16  Bruno Haible  <bruno@clisp.org>
28182
28183         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28184         declaration of fpurge is missing.
28185         * tests/test-fpurge.c (main): Check that the file has not more contents
28186         than expected. Close the file before removing it.
28187
28188 2009-08-15  Eric Blake  <ebb9@byu.net>
28189
28190         fpurge: don't wrap working cygwin implementation
28191         * lib/fpurge.c (fpurge): Fix comment typo.
28192         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28193         1.7 to avoid replacement.
28194         * tests/test-fpurge.c (main): Enhance test.
28195
28196 2009-08-15  Eric Blake  <ebb9@byu.net>
28197         and Jim Meyering  <meyering@redhat.com>
28198
28199         test-update-copyright: skip if perl is insufficient
28200         * tests/test-update-copyright.sh: Failure to run maintainer tool
28201         should not cause testsuite failure on cygwin 1.5.
28202
28203 2009-08-14  Eric Blake  <ebb9@byu.net>
28204
28205         doc: mention more functions added in cygwin 1.7.0
28206         * doc/posix-headers/limits.texi (limits.h): Update for recent
28207         cygwin additions.
28208         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28209         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28210         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28211         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28212         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28213
28214 2009-08-14  Eric Blake  <ebb9@byu.net>
28215
28216         maint.mk: simplify update-copyright rule
28217         * top/maint.mk (update-copyright-local): Delete, and document how
28218         to do it in cfg.mk instead.
28219         (update-copyright-exclude-regexp): Delete, and document how to do
28220         it in .x-update-copyright instead.
28221         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28222         exclude ChangeLog.
28223
28224 2009-08-14  Bruno Haible  <bruno@clisp.org>
28225
28226         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28227
28228 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28229
28230         maint.mk: support update-copyright-env
28231         * top/maint.mk (update-copyright-env): Define place-holder.
28232         (update-copyright): Expand $(update-copyright-env) before
28233         invoking update-copyright.
28234
28235 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28236
28237         update-copyright: implement forced reformatting
28238         * build-aux/update-copyright: Implement and document
28239         UPDATE_COPYRIGHT_FORCE.
28240         * tests/test-update-copyright.sh: Test it.
28241
28242 2009-08-14  Eric Blake  <ebb9@byu.net>
28243         and Bruno Haible  <bruno@clisp.org>
28244
28245         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28246         * tests/test-locale.c: Revert previous patch related to NULL.
28247         * tests/test-stdio.c: Likewise.
28248         * tests/test-stdlib.c: Likewise.
28249         * tests/test-string.c: Likewise.
28250         * tests/test-unistd.c: Likewise.
28251         * modules/time-tests (Depends-on): Add verify.
28252         * modules/wchar-tests (Depends-on): Likewise.
28253         * tests/test-time.c: Test for NULL compliance.
28254         * tests/test-wchar.c: Likewise.
28255         * modules/locale (Depends-on): Add stddef.
28256         * modules/stdio (Depends-on): Likewise.
28257         * modules/stdlib (Depends-on): Likewise.
28258         * modules/string (Depends-on): Likewise.
28259         * modules/time (Depends-on): Likewise.
28260         * modules/unistd (Depends-on): Likewise.
28261         * modules/wchar (Depends-on): Likewise.
28262         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28263         * lib/stdlib.in.h (includes): Likewise.
28264         * lib/string.in.h (includes): Likewise.
28265         * lib/time.in.h (includes): Likewise.
28266         * lib/unistd.in.h (includes): Likewise.
28267         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28268         replaced.
28269         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28270         * m4/stddef_h.m4: New file.
28271         * modules/stddef: Likewise.
28272         * lib/stddef.in.h: Likewise.
28273         * modules/stddef-tests: Likewise.
28274         * tests/test-stddef.c: Likewise.
28275         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28276         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28277         * doc/posix-headers/locale.texi (locale.h): Likewise.
28278         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28279         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28280         * doc/posix-headers/string.texi (string.h): Likewise.
28281         * doc/posix-headers/time.texi (time.h): Likewise.
28282         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28283         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28284
28285 2009-08-14  Eric Blake  <ebb9@byu.net>
28286
28287         doc: improve git diff of texinfo files
28288         * .gitattributes: Add rule for *.texi files, with hint on how to
28289         use it.
28290         Copied from m4, and based on a report by Bruno Haible.
28291
28292 2009-08-14  Bruno Haible  <bruno@clisp.org>
28293
28294         Disable multithread support by default on Cygwin 1.5.x for real.
28295         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28296
28297 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28298
28299         update-copyright: much ado about intervals
28300         * build-aux/update-copyright: Implement and document
28301         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28302         of copyright year intervals.
28303         Also, document UPDATE_COPYRIGHT_YEAR.
28304         * tests/test-update-copyright.sh: Test it.
28305
28306         update-copyright: convert 2-digit to 4-digit years
28307         * build-aux/update-copyright: Implement and document.
28308         * tests/test-update-copyright.sh: Update.
28309
28310 2009-08-14  Jim Meyering  <meyering@redhat.com>
28311
28312         test-exclude: avoid coreutils "make check" failure
28313         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28314         just as in test-argmatch.c.
28315
28316 2009-08-13  Eric Blake  <ebb9@byu.net>
28317
28318         test-dup2: fix bad assumption
28319         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28320         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28321
28322         test-version-etc: fix CRLF portability issue
28323         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28324         recognize \r.
28325         * tests/test-argp-version-etc-1.sh: Likewise.
28326
28327         getopt: update client modules
28328         * modules/argp (Depends-on): Use getopt-gnu.
28329         * modules/git-merge-changelog (Depends-on): Likewise.
28330         * modules/long-options (Depends-on): Likewise.
28331         * modules/xstrtol (Depends-on): Likewise.
28332
28333 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28334
28335         * tests/test-version-etc.sh: Don't fail on different
28336         project/version.  Don't fail on CRLF differences.  Rewrite to use
28337         multiple -e instead of multiple sed forks, suggested by Eric Blake
28338         <ebb9@byu.net>.
28339         * tests/test-argp-version-etc-1.sh: Likewise.
28340
28341 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28342
28343         * tests/test-version-etc.sh: Don't fail on different
28344         project/version.
28345
28346 2009-08-12  Bruno Haible  <bruno@clisp.org>
28347
28348         Tests for modules 'getopt-posix', 'getopt-gnu'.
28349         * modules/getopt-posix-tests: New file.
28350         * tests/test-getopt.c: New file.
28351         * tests/test-getopt.h: New file.
28352         * tests/test-getopt_long.h: New file.
28353
28354         New modules 'getopt-posix', 'getopt-gnu'.
28355         * modules/getopt-gnu: New file, renamed from modules/getopt.
28356         * modules/getopt-posix: New file.
28357         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28358         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28359         (gl_GETOPT): Remove macro.
28360         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28361         Disable the test against BSD systems that declare optreset. Test
28362         against mingw bug. Test against lack of support of optional arguments
28363         on many platforms.
28364         * doc/glibc-headers/getopt.texi: Update module name and list of
28365         relevant platforms.
28366         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28367         'getopt-gnu' and more portability problems.
28368         * NEWS: Mention the changes.
28369
28370 2009-08-12  Bruno Haible  <bruno@clisp.org>
28371
28372         Ensure that optarg etc. get declared by <unistd.h>.
28373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28374         AC_USE_SYSTEM_EXTENSIONS.
28375         * modules/getopt (Depends-on): Add 'extensions'.
28376
28377 2009-08-12  Bruno Haible  <bruno@clisp.org>
28378
28379         Avoid test link errors.
28380         * modules/pipe-filter-ii-tests (Makefile.am): Define
28381         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28382         * modules/pipe-filter-gi-tests (Makefile.am): Define
28383         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28384         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28385
28386 2009-08-12  Bruno Haible  <bruno@clisp.org>
28387
28388         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28389         gl_GETOPT_SUBSTITUTE before.
28390         (gl_GETOPT): Use it.
28391         * m4/argp.m4 (gl_ARGP): Update.
28392         Reported by Sergey Poznyakoff.
28393
28394         * m4/getopt.m4: Reorder macros.
28395         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28396         (gl_GETOPT_SUBSTITUTE): Remove macro.
28397
28398 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28399
28400         Minor improvement in gitlog-to-changelog
28401
28402         * build-aux/gitlog-to-changelog: New option `--format' makes
28403         output format string configurable.
28404
28405 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28406
28407         Optimize exclude: use hash tables for non-wildcard patterns.
28408
28409         * lib/exclude.c: Include hash.h and mbuiter.h
28410         (struct exclude_pattern, exclude_segment): New data types.
28411         (struct exclude): Rewrite.
28412         (fnmatch_pattern_has_wildcards): New function.
28413         (new_exclude_segment, free_exclude_segment): New functions.
28414         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28415         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28416         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28417         * modules/exclude: Depend on hash and mbuiter.
28418
28419         * modules/exclude-tests: New file.
28420         * tests/test-exclude.c: New file.
28421         * tests/test-exclude1.sh: New file.
28422         * tests/test-exclude2.sh: New file.
28423         * tests/test-exclude3.sh: New file.
28424         * tests/test-exclude4.sh: New file.
28425         * tests/test-exclude5.sh: New file.
28426         * tests/test-exclude6.sh: New file.
28427         * tests/test-exclude7.sh: New file.
28428
28429 2009-08-12  Bruno Haible  <bruno@clisp.org>
28430
28431         Ensure that getopt() gets declared by <unistd.h>.
28432         * lib/unistd.in.h: Conditionally include getopt.h.
28433         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28434         Set GNULIB_UNISTD_H_GETOPT.
28435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28436         GNULIB_UNISTD_H_GETOPT.
28437         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28438
28439 2009-08-12  Bruno Haible  <bruno@clisp.org>
28440
28441         Clarify logic.
28442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28443         gl_replace_getopt instead of GETOPT_H.
28444
28445 2009-08-12  Bruno Haible  <bruno@clisp.org>
28446
28447         * m4/getopt.m4: Add comments.
28448
28449 2009-08-12  Bruno Haible  <bruno@clisp.org>
28450
28451         Disable multithread support by default on Cygwin 1.5.x.
28452         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28453         set gl_use_threads=no if not specified otherwise.
28454
28455 2009-08-11  Bruno Haible  <bruno@clisp.org>
28456
28457         Avoid compilation error on NetBSD 5.0.
28458         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28459         * tests/test-stdio.c: Likewise.
28460         * tests/test-stdlib.c: Likewise.
28461         * tests/test-string.c: Likewise.
28462         * tests/test-unistd.c: Likewise.
28463         Reported by Greg Troxel <gdt@ir.bbn.com>
28464         at <https://savannah.gnu.org/support/?106973>.
28465
28466 2009-08-11  Bruno Haible  <bruno@clisp.org>
28467
28468         * modules/dup2-tests (Depends-on): Remove close.
28469
28470         Undo 2009-07-19 commit.
28471         * modules/acl-tests (Depends-on): Remove close.
28472         * modules/binary-io-tests (Depends-on): Likewise.
28473         * modules/closein-tests (Depends-on): Likewise.
28474         * modules/flock-tests (Depends-on): Likewise.
28475         * modules/fsync-tests (Depends-on): Likewise.
28476         * modules/lseek-tests (Depends-on): Likewise.
28477         * modules/pipe-tests (Depends-on): Likewise.
28478         * modules/posix_spawn-tests (Depends-on): Likewise.
28479         * modules/posix_spawnp-tests (Depends-on): Likewise.
28480         * modules/stat-time-tests (Depends-on): Likewise.
28481         * modules/yesno-tests (Depends-on): Likewise.
28482
28483 2009-08-10  Bruno Haible  <bruno@clisp.org>
28484
28485         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28486
28487 2009-08-10  Bruno Haible  <bruno@clisp.org>
28488
28489         Fix a gcc warning.
28490         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28491
28492 2009-08-10  Bruno Haible  <bruno@clisp.org>
28493
28494         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28495         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28496         not only the first time.
28497         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28498         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28499         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28500         is 1, not only the the first time.
28501
28502 2009-08-10  Bruno Haible  <bruno@clisp.org>
28503
28504         Make it possible to use module 'gethostname' without module 'close'.
28505         * lib/unistd.in.h (close): Evoke a link error only if
28506         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28508         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28509         * modules/unistd (Makefile.am): Substitute
28510         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28511         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28512         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28513         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28514         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28515         * modules/sys_ioctl (Makefile.am): Substitute
28516         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28517         * modules/socket (configure.ac): On native Windows, set
28518         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28519         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28520         Reported by Sam Steingold <sds@gnu.org>.
28521
28522 2009-08-10  Bruno Haible  <bruno@clisp.org>
28523
28524         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28525         * modules/ioctl (configure.ac): Likewise.
28526
28527 2009-08-10  Bruno Haible  <bruno@clisp.org>
28528
28529         Avoid collision between gnulib wrapper and libintl wrapper.
28530         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28531         already defined in intl/printf.c.
28532         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28533         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28534
28535 2009-08-09  Bruno Haible  <bruno@clisp.org>
28536
28537         Make <sys/select.h> really self-contained, also on Solaris 10.
28538         * lib/sys_select.in.h: Include <string.h>.
28539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28540         Solaris 10 problem.
28541         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28542         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28543         Reported by Jim Meyering.
28544
28545 2009-08-09  Bruno Haible  <bruno@clisp.org>
28546
28547         Avoid warnings from 'aclocal' that are due to a use of macro name
28548         AM_XGETTEXT_OPTION that is not defined in automake.
28549         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28550         automake.
28551         * modules/error (configure.ac): Likewise.
28552         * modules/propername (configure.ac): Likewise.
28553         * modules/vasprintf (configure.ac): Likewise.
28554         * modules/verror (configure.ac): Likewise.
28555         * modules/xprintf (configure.ac): Likewise.
28556         * modules/xvasprintf (configure.ac): Likewise.
28557
28558 2009-08-08  Bruno Haible  <bruno@clisp.org>
28559
28560         Avoid compilation error in C++ mode.
28561         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28562         Reported by Sam Steingold <sds@gnu.org>.
28563
28564 2009-08-08  Bruno Haible  <bruno@clisp.org>
28565
28566         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28567         for the various Unix platforms.
28568         * doc/posix-headers/limits.texi: Update platforms list regarding
28569         HOST_NAME_MAX.
28570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28571
28572 2009-08-07  Jim Meyering  <meyering@redhat.com>
28573
28574         selinux-at: fix typo in a comment
28575         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28576         Spotted by Paolo Bonzini.
28577
28578         selinux-at: remove redundant m4 code, add documentation
28579         * modules/selinux-at (configure.ac): Remove redundant code.
28580         LIB_SELINUX is already set via the dependent module, selinux-h.
28581         (Include): Add quotes around selinux-at.h.
28582         * lib/selinux-at.h: Add documentation.
28583         Reported by Bruno Haible in
28584         http://marc.info/?l=gnulib-bug&m=124958988300749
28585
28586 2009-08-07  Bruno Haible  <bruno@clisp.org>
28587
28588         Avoid link error on MacOS X 10.3 and 10.4.
28589         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28590         on non-ELF systems.
28591         * lib/argp-pv.c (argp_program_version): Likewise.
28592         Reported by Simon Josefsson.
28593
28594 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28595
28596         * tests/test-version-etc.sh: Use $EXEEXT.
28597
28598 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28599
28600         update-copyright: update documentation to point to maint.mk
28601         * build-aux/update-copyright: Here.
28602
28603 2009-08-06  Jim Meyering  <meyering@redhat.com>
28604
28605         maint.mk: support update-copyright-local
28606         * top/maint.mk (update-copyright-local): Define place-holder.
28607         (update-copyright): Depend on $(update-copyright-local).
28608
28609 2009-08-06  Jim Meyering  <meyering@redhat.com>
28610
28611         selinux-at: new module
28612         Initially written for coreutils, this module will soon be
28613         used by findutils, too.
28614         * MODULES.html.sh [Misc]: Add selinux-at.
28615         * lib/selinux-at.h: New file, from coreutils.
28616         * lib/selinux-at.c: Likewise.
28617         * modules/selinux-at: Likewise.
28618         (License): Change from LGPL to GPL, since it depends
28619         on the GPL'd openat module.
28620
28621         doc: update README
28622         * README: Remove references to cogito.
28623         Remove cvs-repo-updating instructions from 2007.
28624         Don't imply that CVS is better if you have limited disk space.
28625
28626 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28627
28628         update-copyright: support C-style comments
28629         * build-aux/update-copyright: Implement and document.
28630         * tests/test-update-copyright.sh: Test.
28631
28632 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28633
28634         update-copyright: support omitted "(C)"
28635         * build-aux/update-copyright: Implement and document.  Also,
28636         allow variable whitespace before "(C)".
28637         * tests/test-update-copyright.sh: Test.
28638
28639 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28640
28641         update-copyright: don't trip on non-FSF copyright statements
28642         * build-aux/update-copyright: Fix so that the first correctly
28643         formatted FSF copyright statement is recognized no matter what
28644         appears before it.  Update documentation.
28645         * tests/test-update-copyright.sh: Test that.
28646
28647 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28648
28649         update-copyright: clean up code a little
28650         * build-aux/update-copyright: Append "_re" to the name of any
28651         variable holding a regular expression.
28652         Replace "old" and "new" with "stmt" in variable names.
28653         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28654         handled correctly.
28655         Format code more consistently.
28656
28657 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28658
28659         update-copyright-tests: improve portability
28660         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28661         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28662
28663 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28664
28665         update-copyright: support @copyright{} and &copy;
28666         * build-aux/update-copyright: Implement and document.
28667         * tests/test-update-copyright.sh: Test.
28668
28669 2009-08-04  Jim Meyering  <meyering@redhat.com>
28670
28671         update-copyright-tests: correctly test EOL=\r\n handling
28672         * tests/test-update-copyright.sh: Put \r at the end of some lines
28673         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28674
28675         maint.mk: make update-copyright exclusion list more configurable
28676         * top/maint.mk (update-copyright): Default to excluding COPYING,
28677         but allow an override, in case someone does want to update that file.
28678
28679         maint.mk: don't update copyright date in COPYING
28680         * top/maint.mk (update-copyright): Exclude COPYING.
28681
28682         maint.mk: add a copyright-updating rule
28683         * top/maint.mk (update-copyright): New rule.
28684         Derived from coreutils/Makefile.am.
28685
28686         update-copyright: rename some variables
28687         * build-aux/update-copyright: Rename a few variables for clarity.
28688         Tweak syntax.  List Joel E. Denny as coauthor.
28689
28690 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28691
28692         update-copyright: fix bug for 2-digit last year and add tests
28693         * build-aux/update-copyright: Fix bug.
28694         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28695         specified.
28696         * modules/update-copyright-tests: New
28697         * tests/test-update-copyright.sh: New.
28698
28699 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28700
28701         update-copyright: handle leading tabs in line prefix
28702         * build-aux/update-copyright: Count leading tabs as 8 spaces
28703         when computing margin.  This helps with the formatting of
28704         ChangeLogs, for example.
28705         Fix documentation a little.
28706
28707 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28708
28709         update-copyright: support EOL=\r\n
28710         * build-aux/update-copyright: Implement that.
28711
28712 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28713
28714         update-copyright: automatically format copyright statements
28715         * build-aux/update-copyright: Implement that.
28716         Also, be a little more predictable and safer by always failing
28717         when the full copyright format is not perfectly recognized as an
28718         unbroken whole.  Discussed at
28719         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28720         Rewrite documentation.
28721
28722 2009-08-03  Bruno Haible  <bruno@clisp.org>
28723
28724         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28725
28726 2009-08-02  Bruno Haible  <bruno@clisp.org>
28727
28728         Tests for module 'uname'.
28729         * modules/uname-tests: New file.
28730         * tests/test-uname.c: New file.
28731
28732         New module 'uname'.
28733         * lib/uname.c: New file.
28734         * m4/uname.m4: New file.
28735         * modules/uname: New file.
28736         * doc/posix-functions/uname.texi: Mention the new module.
28737
28738 2009-08-02  Bruno Haible  <bruno@clisp.org>
28739
28740         Tests for module 'sys_utsname'.
28741         * modules/sys_utsname-tests: New file.
28742         * tests/test-sys_utsname.c: New file.
28743
28744         New module 'sys_utsname'.
28745         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28746         * m4/sys_utsname_h.m4: New file.
28747         * modules/sys_utsname: New file.
28748         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28749
28750 2009-08-02  Bruno Haible  <bruno@clisp.org>
28751
28752         Implicitly initialize the sockets library.
28753         * lib/gethostname.c: Include sockets.h.
28754         (rpl_gethostname): Invoke gl_sockets_startup.
28755         * lib/socket.c: Include sockets.h.
28756         (rpl_socket): Invoke gl_sockets_startup.
28757         * modules/gethostname (Depends-on): Add sockets.
28758         * modules/socket (Depends-on): Likewise.
28759         * tests/test-poll.c: Don't include sockets.h.
28760         (main): Don't invoke gl_sockets_startup.
28761         * tests/test-select.c: Don't include sockets.h.
28762         (main): Don't invoke gl_sockets_startup.
28763
28764 2009-08-02  Bruno Haible  <bruno@clisp.org>
28765
28766         Allow multiple calls to gl_sockets_startup.
28767         * lib/sockets.c (initialized_sockets_version): New variable.
28768         (gl_sockets_startup): Do nothing if already called for this or a higher
28769         version.
28770         (gl_sockets_cleanup): Reset initialized_sockets_version.
28771
28772 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28773
28774         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28775         different project/version.
28776
28777 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28778             Bruno Haible  <bruno@clisp.org>
28779
28780         Tests for module 'pipe-filter-gi'.
28781         * modules/pipe-filter-gi-tests: New file.
28782         * tests/test-pipe-filter-gi1.sh: New file.
28783         * tests/test-pipe-filter-gi1.c: New file.
28784         * tests/test-pipe-filter-gi2.sh: New file.
28785         * tests/test-pipe-filter-gi2-main.c: New file.
28786         * tests/test-pipe-filter-gi2-child.c: New file.
28787
28788         New module 'pipe-filter-gi'.
28789         * lib/pipe-filter-gi.c: New file.
28790         * modules/pipe-filter-gi: New file.
28791
28792 2009-08-02  Bruno Haible  <bruno@clisp.org>
28793             Paolo Bonzini  <bonzini@gnu.org>
28794
28795         Tests for module 'pipe-filter-ii'.
28796         * modules/pipe-filter-ii-tests: New file.
28797         * tests/test-pipe-filter-ii1.sh: New file.
28798         * tests/test-pipe-filter-ii1.c: New file.
28799         * tests/test-pipe-filter-ii2.sh: New file.
28800         * tests/test-pipe-filter-ii2-main.c: New file.
28801         * tests/test-pipe-filter-ii2-child.c: New file.
28802
28803         New module 'pipe-filter-ii'.
28804         * lib/pipe-filter.h: New file.
28805         * lib/pipe-filter-ii.c: New file.
28806         * lib/pipe-filter-aux.h: New file.
28807         * modules/pipe-filter-ii: New file.
28808
28809 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28810
28811         * lib/gc-libgcrypt.c: Change copyright to FSF.
28812         * lib/gc-gnulib.c: Likewise.
28813
28814 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28815
28816         * lib/gethostname.c: Include limits.h.
28817
28818 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28819             Bruno Haible  <bruno@clisp.org>
28820
28821         Ensure HOST_NAME_MAX as part of the gethostname module.
28822         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28823         define also HOST_NAME_MAX.
28824         * tests/test-gethostname.c: Include <limits.h>.
28825         (main): Check also HOST_NAME_MAX.
28826         * doc/posix-headers/limits.texi: Document the mingw problem.
28827
28828 2009-08-02  Bruno Haible  <bruno@clisp.org>
28829
28830         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28831         Add comments.
28832
28833 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28834
28835         * lib/gethostname.c: Add Windows wrapper.
28836         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28837         * modules/gethostname: Depend on sys_socket & errno, for also
28838         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28839         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28840
28841 2009-07-31  Jim Meyering  <meyering@redhat.com>
28842
28843         getloadavg: fix symbol name in comment
28844         * lib/getloadavg.c: Correct a typo I introduced when adding
28845         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28846         Matt Kraai spotted the problem.
28847
28848 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28849
28850         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28851         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28852         code also if ! defined N_NAME_POINTER.
28853         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28854         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28855         but the n_name member is a 12-byte array.
28856
28857 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28858
28859         update-copyright: generalize comment handling
28860         * build-aux/update-copyright: Handle copyright statements
28861         within more comment styles.
28862         Document usage.
28863         Report any file with an external copyright holder or parse failure.
28864
28865 2009-07-29  Jim Meyering  <meyering@redhat.com>
28866
28867         mktime: correct setting of REPLACE_MKTIME
28868         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28869
28870         update-copyright: new module
28871         * modules/update-copyright: New file.
28872         * build-aux/update-copyright: New file.
28873         * MODULES.html.sh (maint+release support): Add update-copyright.
28874
28875 2009-07-27  Bruno Haible  <bruno@clisp.org>
28876
28877         Fix compilation error when <ctime> is used and mktime is replaced.
28878         * lib/time.in.h (mktime): New declaration.
28879         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28880         REPLACE_MKTIME instead of defining mktime in config.h.
28881         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28882         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28883         Reported by Ross McFarland <rwmcfa1@neces.com>.
28884
28885 2009-07-27  Bruno Haible  <bruno@clisp.org>
28886
28887         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28888         Reported by Matt Kraai <mkraai@beckman.com>.
28889
28890 2009-07-25  Jim Meyering  <meyering@redhat.com>
28891
28892         maint.mk: avoid warnings about missing files
28893         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28894         diagnostic when .prev-version does not exist.
28895         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28896         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28897         nonexistent cfg.mk.
28898         Suggestions from Simon Josefsson.
28899
28900 2009-07-25  Bruno Haible  <bruno@clisp.org>
28901
28902         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28903         defined as macros. Needed on QNX 6.4.1.
28904         Reported by Matt Kraai <mkraai@beckman.com>.
28905
28906 2009-07-23  Jim Meyering  <meyering@redhat.com>
28907
28908         maint.mk: invoke "make dist" with a working value of XZ_OPT
28909         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28910
28911 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28912
28913         Make fseeko.c compile on QNX.
28914         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28915
28916 2009-07-22  Peter Simons  <simons@cryp.to>
28917
28918         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28919         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28920         * lib/md4.h: Likewise.
28921         * lib/md5.h: Likewise.
28922         * lib/sha1.h: Likewise.
28923         * lib/sha256.h: Likewise.
28924         * lib/sha512.h: Likewise.
28925
28926         tests-sha1: don't assign literal string to 'char *' variable
28927         * tests/test-sha1.c (main): Declare locals with "const" to match
28928         attributes of the right hand side.
28929
28930 2009-07-21  Eric Blake  <ebb9@byu.net>
28931
28932         dup2: fix more mingw problems
28933         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28934         fd to itself.
28935         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28936         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28937         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28938         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28939         care of mingw bugs.
28940
28941 2009-07-21  Jim Meyering  <meyering@redhat.com>
28942
28943         vc-list-files: avoid failure when /bin/sh is dash
28944         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28945         On some Debian based systems, /bin/sh is a symlink to dash, and running
28946         this command would omit the "/" following each 'tests' prefix:
28947           dash -x build-aux/vc-list-files -C . tests
28948         That is because bash and dash work differently:
28949           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28950           bash ok
28951           dash odd
28952
28953 2009-07-21  Eric Blake  <ebb9@byu.net>
28954
28955         dup2-tests: test previous patch
28956         * modules/dup2-tests: New file.
28957         * tests/test-dup2.c: Likewise.
28958         * tests/test-open.c (main): Avoid unspecified behavior.
28959         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28960         test.
28961
28962         dup2: work around mingw and cygwin 1.5 bug
28963         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28965         * modules/unistd (Makefile.am): Substitute it.
28966         * lib/unistd.in.h (dup2): Declare the replacement.
28967         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28968         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28969         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28970         * modules/execute (Depends-on): Add dup2.
28971         * modules/fseterr (Depends-on): Likewise.
28972         * modules/pipe (Depends-on): Likewise.
28973         * modules/posix_spawn-internal (Depends-on): Likewise.
28974
28975 2009-07-21  Bruno Haible  <bruno@clisp.org>
28976
28977         * modules/.gitattributes: New file.
28978
28979 2009-07-20  Bruno Haible  <bruno@clisp.org>
28980
28981         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28982         (main): Use it.
28983
28984 2009-07-20  Eric Blake  <ebb9@byu.net>
28985
28986         test-pipe: make a bit more robust.
28987         * tests/test-pipe.c (myerr): Allow error messages regardless of
28988         what we do to stderr.
28989         (test_pipe): Rearrange to avoid deadlock.
28990         (child_main): Try a larger read, to ensure we avoided deadlock.
28991         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28992         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28993         if misused.
28994
28995 2009-07-19  Jim Meyering  <meyering@redhat.com>
28996
28997         fts: avoid false-positive cycle-detection
28998         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28999         for each new command line argument.
29000
29001 2009-07-19  Bruno Haible  <bruno@clisp.org>
29002
29003         Fix build error on mingw with the modules sys_select and unistd.
29004         * modules/acl-tests (Depends-on): Add close.
29005         * modules/binary-io-tests (Depends-on): Likewise.
29006         * modules/closein-tests (Depends-on): Likewise.
29007         * modules/flock-tests (Depends-on): Likewise.
29008         * modules/fsync-tests (Depends-on): Likewise.
29009         * modules/lseek-tests (Depends-on): Likewise.
29010         * modules/pipe-tests (Depends-on): Likewise.
29011         * modules/posix_spawn-tests (Depends-on): Likewise.
29012         * modules/posix_spawnp-tests (Depends-on): Likewise.
29013         * modules/stat-time-tests (Depends-on): Likewise.
29014         * modules/yesno-tests (Depends-on): Likewise.
29015
29016 2009-07-19  Bruno Haible  <bruno@clisp.org>
29017
29018         Unify conditionals.
29019         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29020         macros, not at the compiler macros.
29021         * lib/pipe.c: Likewise.
29022         * lib/execute.c: Likewise.
29023         * lib/spawni.c: Likewise.
29024
29025 2009-07-19  Bruno Haible  <bruno@clisp.org>
29026
29027         Fix handling of closed stdin/stdout/stderr on mingw.
29028         * lib/w32spawn.h: Include unistd.h.
29029         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29030         file descriptor with O_NOINHERIT flag.
29031         (fd_safer_noinherit): New function, based on fd-safer.c.
29032         (dup_safer_noinherit): New function, based on dup-safer.c.
29033         (undup_safer_noinherit): New function.
29034         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29035         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29036         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29037         instead of fd_safer.
29038         * tests/test-pipe.c: Include <windows.h>.
29039         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29040         result.
29041
29042         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29043         from main.
29044         (test_pipe): Pass an extra argument for disambiguation.
29045         (main): Invoke parent_main or child_main.
29046
29047         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29048         consistently.
29049
29050 2009-07-18  Eric Blake  <ebb9@byu.net>
29051
29052         test-pipe: fix mingw build
29053         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29054
29055 2009-07-18  Bruno Haible  <bruno@clisp.org>
29056
29057         * modules/pipe-tests (Makefile.am): Fix typo.
29058
29059 2009-07-18  Eric Blake  <ebb9@byu.net>
29060
29061         error: fix mingw build
29062         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29063         Reported by Bruno Haible.
29064
29065         error: avoid undefined use of stdout
29066         * lib/error.c (error, error_at_line): Check that fd 1 is open
29067         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29068         is handling faults and the close_stdout module wants to report the
29069         detection of closed stdout as an error.
29070
29071 2009-07-17  Eric Blake  <ebb9@byu.net>
29072
29073         pipe: be robust in face of closed fds
29074         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29075         should cause child to misbehave.
29076         * modules/pipe-tests: New module.
29077         * tests/test-pipe.c: New file.
29078         * tests/test-pipe.sh: New file.
29079         Reported by Akim Demaille.
29080
29081 2009-07-14  Bruno Haible  <bruno@clisp.org>
29082
29083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29084         Reported by anonymous kc.
29085
29086 2009-07-07  Jim Meyering  <meyering@redhat.com>
29087
29088         maint.mk: don't look for translatable strings in *.m4 or *.mk
29089         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29090         when searching for translatable strings.
29091
29092 2009-07-05  Jim Meyering  <meyering@redhat.com>
29093
29094         remove superfluous parentheses in STREQ definition
29095         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29096         * lib/getugroups.c (STREQ): Likewise.
29097         * lib/fnmatch.c (STREQ): Likewise.
29098         Spotted by Bruno Haible.
29099
29100 2009-07-04  Jim Meyering  <meyering@redhat.com>
29101
29102         argv-iter: new module
29103         * MODULES.html.sh: Add argv-iter.
29104         * lib/argv-iter.c, lib/argv-iter.h: New files.
29105         * modules/argv-iter: New file.
29106         * modules/argv-iter-tests: New file.
29107         * tests/test-argv-iter.c: Test it.
29108
29109 2009-07-04  Bruno Haible  <bruno@clisp.org>
29110
29111         Fix assertion.
29112         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29113         contains more exact copies of a given entry than file2, leave the extra
29114         copies unpaired rather than aborting.
29115         Reported by Eric Blake.
29116
29117 2009-07-02  Bruno Haible  <bruno@clisp.org>
29118
29119         Speedup git-merge-changelog for git cherry-pick.
29120         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29121         (entries_mapping_get): New function, extracted from compute_mapping.
29122         (entries_mapping_reverse_get): New function.
29123         (compute_mapping): Add a 'full' argument. Return the result in a
29124         'struct entries_mapping'.
29125         (main): Update. Access the mappings through entries_mapping_get.
29126         Reported by Eric Blake.
29127
29128 2009-07-02  Bruno Haible  <bruno@clisp.org>
29129
29130         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29131         best_i.
29132
29133 2009-07-02  Bruno Haible  <bruno@clisp.org>
29134
29135         Speed up approximate search for matching ChangeLog entries.
29136         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29137         argument. Call fstrcmp_bounded instead of fstrcmp.
29138         (compute_mapping, try_split_merged_entry, main): Update callers.
29139
29140 2009-07-02  Bruno Haible  <bruno@clisp.org>
29141
29142         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29143
29144 2009-06-30  Bruno Haible  <bruno@clisp.org>
29145
29146         Reduce the number of uc_is_cased calls.
29147         * lib/unicase.h (casing_suffix_context_t): Add
29148         'first_char_except_ignorable' field.
29149         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29150         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29151         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29152         Update initializer.
29153         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29154         case-ignorable characters.
29155         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29156         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29157         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29158         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29159         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29160
29161 2009-06-30  Bruno Haible  <bruno@clisp.org>
29162
29163         Tests for module 'unicase/ignorable'.
29164         * modules/unicase/ignorable-tests: New file.
29165         * tests/unicase/test-ignorable.c: New file, generated by
29166         gen-uni-tables.
29167
29168         Tests for module 'unicase/cased'.
29169         * modules/unicase/cased-tests: New file.
29170         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29171         * tests/unicase/test-predicate-part1.h: New file, derived from
29172         tests/unictype/test-predicate-part1.h.
29173         * tests/unicase/test-predicate-part2.h: New file, same as
29174         tests/unictype/test-predicate-part2.h.
29175
29176         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29177         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29178         (output_casing_properties): New function.
29179         (main): Call it.
29180         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29181         * lib/unicase/cased.c: Include unictype/bitmap.h.
29182         (uc_is_cased): Define through a bitmap lookup.
29183         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29184         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29185         (uc_is_case_ignorable): Define through a bitmap lookup.
29186         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29187         lib/unictype/bitmap.h.
29188         (Depends-on): Add inline. Clean up.
29189         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29190         lib/unictype/bitmap.h.
29191         (Depends-on): Add inline. Clean up.
29192         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29193         recognition.
29194         * tests/unicase/test-u16-tolower.c (main): Likewise.
29195         * tests/unicase/test-u32-tolower.c (main): Likewise.
29196
29197 2009-06-30  Bruno Haible  <bruno@clisp.org>
29198
29199         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29200         * lib/unicase/u16-casemap.c: Likewise.
29201         * lib/unicase/u32-casemap.c: Likewise.
29202
29203 2009-06-29  Bruno Haible  <bruno@clisp.org>
29204
29205         Define u32_casefold as a wrapper around u32_ct_casefold.
29206         * lib/unicase/u32-casefold.c: Update.
29207         * modules/unicase/u32-casefold (Depends-on): Add
29208         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29209         unicase/empty-suffix-context. Clean up.
29210
29211         Define u16_casefold as a wrapper around u16_ct_casefold.
29212         * lib/unicase/u16-casefold.c: Update.
29213         * modules/unicase/u16-casefold (Depends-on): Add
29214         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29215         unicase/empty-suffix-context. Clean up.
29216
29217         Define u8_casefold as a wrapper around u8_ct_casefold.
29218         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29219         * lib/unicase/u8-casefold.c: Update.
29220         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29221         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29222
29223         Define u32_totitle as a wrapper around u32_ct_totitle.
29224         * lib/unicase/u32-totitle.c: Update.
29225         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29226         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29227
29228         Define u16_totitle as a wrapper around u16_ct_totitle.
29229         * lib/unicase/u16-totitle.c: Update.
29230         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29231         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29232
29233         Define u8_totitle as a wrapper around u8_ct_totitle.
29234         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29235         functions.
29236         (FUNC): Delegate to U_CT_TOTITLE.
29237         * lib/unicase/u8-totitle.c: Update.
29238         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29239         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29240
29241         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29242         invocation.
29243         * modules/unicase/u32-tolower (Depends-on): Add
29244         unicase/empty-prefix-context, unicase/empty-suffix-context.
29245
29246         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29247         invocation.
29248         * modules/unicase/u16-tolower (Depends-on): Add
29249         unicase/empty-prefix-context, unicase/empty-suffix-context.
29250
29251         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29252         * modules/unicase/u8-tolower (Depends-on): Add
29253         unicase/empty-prefix-context, unicase/empty-suffix-context.
29254
29255         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29256         invocation.
29257         * modules/unicase/u32-toupper (Depends-on): Add
29258         unicase/empty-prefix-context, unicase/empty-suffix-context.
29259
29260         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29261         invocation.
29262         * modules/unicase/u16-toupper (Depends-on): Add
29263         unicase/empty-prefix-context, unicase/empty-suffix-context.
29264
29265         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29266         * modules/unicase/u8-toupper (Depends-on): Add
29267         unicase/empty-prefix-context, unicase/empty-suffix-context.
29268
29269         New module 'unicase/u32-ct-casefold'.
29270         * lib/unicase/u32-ct-casefold.c: New file.
29271         * modules/unicase/u32-ct-casefold: New file.
29272
29273         New module 'unicase/u16-ct-casefold'.
29274         * lib/unicase/u16-ct-casefold.c: New file.
29275         * modules/unicase/u16-ct-casefold: New file.
29276
29277         New module 'unicase/u8-ct-casefold'.
29278         * lib/unicase/u8-ct-casefold.c: New file.
29279         * lib/unicase/u-ct-casefold.h: New file, derived from
29280         lib/unicase/u-casefold.h.
29281         * modules/unicase/u8-ct-casefold: New file.
29282
29283         New module 'unicase/u32-ct-totitle'.
29284         * lib/unicase/u32-ct-totitle.c: New file.
29285         * modules/unicase/u32-ct-totitle: New file.
29286
29287         New module 'unicase/u16-ct-totitle'.
29288         * lib/unicase/u16-ct-totitle.c: New file.
29289         * modules/unicase/u16-ct-totitle: New file.
29290
29291         New module 'unicase/u8-ct-totitle'.
29292         * lib/unicase/u8-ct-totitle.c: New file.
29293         * lib/unicase/u-ct-totitle.h: New file, derived from
29294         lib/unicase/u-totitle.h.
29295         * modules/unicase/u8-ct-totitle: New file.
29296
29297         New module 'unicase/u32-ct-tolower'.
29298         * lib/unicase/u32-ct-tolower.c: New file.
29299         * modules/unicase/u32-ct-tolower: New file.
29300
29301         New module 'unicase/u16-ct-tolower'.
29302         * lib/unicase/u16-ct-tolower.c: New file.
29303         * modules/unicase/u16-ct-tolower: New file.
29304
29305         New module 'unicase/u8-ct-tolower'.
29306         * lib/unicase/u8-ct-tolower.c: New file.
29307         * modules/unicase/u8-ct-tolower: New file.
29308
29309         New module 'unicase/u32-ct-toupper'.
29310         * lib/unicase/u32-ct-toupper.c: New file.
29311         * modules/unicase/u32-ct-toupper: New file.
29312
29313         New module 'unicase/u16-ct-toupper'.
29314         * lib/unicase/u16-ct-toupper.c: New file.
29315         * modules/unicase/u16-ct-toupper: New file.
29316
29317         New module 'unicase/u8-ct-toupper'.
29318         * lib/unicase/u8-ct-toupper.c: New file.
29319         * modules/unicase/u8-ct-toupper: New file.
29320
29321         Add context arguments to u*_casemap functions.
29322         * lib/unicase/unicasemap.h: Include unicase.h.
29323         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29324         suffix_context arguments.
29325         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29326         functions.
29327         (FUNC): Add prefix_context and suffix_context arguments. Use
29328         uc_is_cased and uc_is_case_ignorable.
29329         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29330         * lib/unicase/u16-casemap.c: Likewise.
29331         * lib/unicase/u32-casemap.c: Likewise.
29332         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29333         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29334         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29335         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29336         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29337         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29338
29339         New module 'unicase/u32-suffix-context'.
29340         * lib/unicase/u32-suffix-context.c: New file.
29341         * modules/unicase/u32-suffix-context: New file.
29342
29343         New module 'unicase/u16-suffix-context'.
29344         * lib/unicase/u16-suffix-context.c: New file.
29345         * modules/unicase/u16-suffix-context: New file.
29346
29347         New module 'unicase/u8-suffix-context'.
29348         * lib/unicase/u8-suffix-context.c: New file.
29349         * lib/unicase/u-suffix-context.h: New file.
29350         * modules/unicase/u8-suffix-context: New file.
29351
29352         New module 'unicase/empty-suffix-context'.
29353         * lib/unicase/empty-suffix-context.c: New file.
29354         * modules/unicase/empty-suffix-context: New file.
29355
29356         New module 'unicase/u32-prefix-context'.
29357         * lib/unicase/u32-prefix-context.c: New file.
29358         * modules/unicase/u32-prefix-context: New file.
29359
29360         New module 'unicase/u16-prefix-context'.
29361         * lib/unicase/u16-prefix-context.c: New file.
29362         * modules/unicase/u16-prefix-context: New file.
29363
29364         New module 'unicase/u8-prefix-context'.
29365         * lib/unicase/u8-prefix-context.c: New file.
29366         * lib/unicase/u-prefix-context.h: New file.
29367         * lib/unicase/context.h: New file.
29368         * modules/unicase/u8-prefix-context: New file.
29369
29370         New module 'unicase/empty-prefix-context'.
29371         * lib/unicase/empty-prefix-context.c: New file.
29372         * modules/unicase/empty-prefix-context: New file.
29373
29374         New module 'unicase/ignorable'.
29375         * lib/unicase/ignorable.c: New file.
29376         * modules/unicase/ignorable: New file.
29377
29378         New module 'unicase/cased'.
29379         * lib/unicase/caseprop.h: New file.
29380         * lib/unicase/cased.c: New file.
29381         * modules/unicase/cased: New file.
29382
29383         New functions for case mapping of substrings.
29384         * lib/unicase.h (casing_prefix_context_t): New type.
29385         (unicase_empty_prefix_context): New variable.
29386         (u8_casing_prefix_context, u16_casing_prefix_context,
29387         u32_casing_prefix_context, u8_casing_prefixes_context,
29388         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29389         declarations.
29390         (casing_suffix_context_t): New type.
29391         (unicase_empty_suffix_context): New variable.
29392         (u8_casing_suffix_context, u16_casing_suffix_context,
29393         u32_casing_suffix_context, u8_casing_suffixes_context,
29394         u16_casing_suffixes_context, u32_casing_suffixes_context,
29395         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29396         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29397         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29398         declarations.
29399
29400 2009-06-28  Jim Meyering  <meyering@redhat.com>
29401
29402         boostrap: indent only with spaces
29403         * build-aux/bootstrap: Indent only with spaces, never TABs.
29404
29405         bootstrap: split long lines
29406         * build-aux/bootstrap: Keep line length < 80.
29407
29408         bootstrap: sync from coreutils
29409         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29410         just as autoreconf does.  Verify a list of prerequisite
29411         package-name,version-number pairs if defined in bootstrap.conf.
29412         Refer to README-prereq, if prerequisites are not satisfied.
29413
29414 2009-06-27  Eric Blake  <ebb9@byu.net>
29415
29416         tests: add test for bogus NULL definition
29417         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29418         * tests/test-stdlib.c: Likewise.
29419         * tests/test-string.c: Likewise.
29420         * tests/test-locale.c: Likewise.
29421         * tests/test-unistd.c: Likewise.
29422         * modules/stdio-tests (Depends-on): Add verify.
29423         * modules/stdlib-tests (Depends-on): Likewise.
29424         * modules/string-tests (Depends-on): Likewise.
29425         * modules/locale-tests (Depends-on): Likewise.
29426         * modules/unistd-tests (Depends-on): Likewise.
29427
29428 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29429
29430         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29431         self-explaining comment.
29432         * m4/selinux-selinux-h: Update serial.
29433         (gl_LIBSELINUX): New macro, adding a warning for missing development
29434         packages to code extracted from...
29435         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29436         Add warning for missing development packages here, too.
29437
29438 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29439
29440         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29441
29442 2009-06-25  Eric Blake  <ebb9@byu.net>
29443
29444         version-etc: fix regression
29445         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29446         gcc.
29447         (version_etc): Use it, to catch bugs with trailing NULL.
29448         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29449         (version_etc_va): Fix logic bug.
29450         * modules/version-etc-tests: Add test.
29451         * tests/test-version-etc.c: New file.
29452         * tests/test-version-etc.sh: Likewise.
29453
29454 2009-06-25  Sam Steingold  <sds@gnu.org>
29455
29456         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29457         mbtowc declaration.
29458
29459 2009-06-25  Eric Blake  <ebb9@byu.net>
29460
29461         fpurge: migrate into <stdio.h>
29462         * lib/fpurge.h: Delete...
29463         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29464         * lib/fpurge.c (fpurge): Change declaring header.
29465         * modules/fpurge (Files): Drop deleted file.
29466         (Depends-on): Add stdio.
29467         (configure.ac): Set witness.
29468         * modules/stdio (Makefile.am): Support fpurge macros.
29469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29470         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29471         * lib/fflush.c: Update client.
29472         * tests/test-fpurge.c: Likewise.
29473         * NEWS: Mention the change.
29474
29475 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29476
29477         * lib/argp-version-etc.c (program_authors): Add const
29478         qualifier.
29479         * lib/version-etc.c: Fix typos in the comments.
29480         * modules/argp-version-etc: Depends on version-etc.
29481
29482 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29483
29484         argp-version-etc: new module.
29485
29486         * lib/argp-version-etc.c: New file.
29487         * lib/argp-version-etc.h: New file.
29488         * modules/argp-version-etc: New file.
29489         * modules/argp-version-etc-tests: New file.
29490         * tests/test-argp-version-etc.c: New test.
29491         * tests/test-argp-version-etc-1.sh: New test.
29492
29493 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29494
29495         Provide additional interfaces and documentation for version-etc
29496         module.
29497
29498         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29499         interfaces.
29500         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29501         prototypes.
29502
29503 2009-06-24  Bruno Haible  <bruno@clisp.org>
29504
29505         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29506         HAVE_LIB${NAME} macro.
29507         Reported by Sam Steingold <sds@gnu.org>.
29508
29509 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29510
29511         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29512         needed.
29513
29514 2009-06-21  Bruno Haible  <bruno@clisp.org>
29515
29516         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29517         work.
29518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29519         together with LIB${NAME}, LTLIB${NAME}.
29520         Reported by Sam Steingold <sds@gnu.org>.
29521
29522 2009-06-20  Jim Meyering  <meyering@redhat.com>
29523
29524         tests: make sc_require_test_exit_idiom more generic
29525         * top/maint.mk (Exit_witness_file): New overridable variable.
29526         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29527         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29528
29529 2009-06-19  Jim Meyering  <meyering@redhat.com>
29530
29531         hash: reverse order of src/dst parameters in an internal interface
29532         * lib/hash.c (transfer_entries): Reverse order of parameters to
29533         put DST before SRC.  Adjust callers.
29534
29535         tests: test-hash: avoid wholesale duplication
29536         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29537         Instead, use a loop and add a single conditional.
29538
29539         tests: test-hash: allow seed selection via a command line argument
29540         * tests/test-hash.c (get_seed): New function.
29541         (main): Use it.
29542
29543 2009-06-19  Eric Blake  <ebb9@byu.net>
29544
29545         hash: avoid memory leak on allocation failure
29546         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29547         failure.  Factor repeated algorithm...
29548         (transfer_entries): ...into new helper routine.
29549         (hash_delete): React to hash_rehash return value.
29550
29551         hash: reduce memory pressure in hash_rehash no-op case
29552         * lib/hash.c (next_prime): Avoid overflow.
29553         (hash_initialize): Factor bucket size computation...
29554         (compute_bucket_size): ...into new helper function.
29555         (hash_rehash): Use new function and open coding to reduce memory
29556         pressure, and avoid a memory leak in USE_OBSTACK code.
29557         Reported by Jim Meyering.
29558
29559 2009-06-18  Eric Blake  <ebb9@byu.net>
29560
29561         hash: make rotation more obvious
29562         * modules/hash (Depends-on): Add bitrotate and stdint.
29563         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29564         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29565         (SIZE_MAX): Rely on headers for definition.
29566         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29567         (raw_hasher): Use rotr_sz.
29568         Suggested by Jim Meyering.
29569
29570         hash: fix memory leak in last patch
29571         * lib/hash.c (hash_rehash): Avoid memory leak.
29572
29573         hash: avoid no-op rehashing
29574         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29575
29576         hash: provide default callback functions
29577         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29578         (hash_initialize): Use them as defaults.
29579         * tests/test-hash.c (main): Test this.
29580
29581         hash: minor optimization
29582         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29583         when possible.
29584         (hash_initialize): Document this promise.
29585         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29586         * tests/test-hash.c (hash_compare_strings): Test this.
29587
29588 2009-06-18  Bruno Haible  <bruno@clisp.org>
29589
29590         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29591         going to be replaced anyway.
29592
29593 2009-06-18  Bruno Haible  <bruno@clisp.org>
29594
29595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29596         in one place.
29597         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29598         be replaced anyway.
29599
29600 2009-06-18  Eric Blake  <ebb9@byu.net>
29601
29602         hash: check for resize before insertion
29603         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29604         threshold before insertion, so that a pathological hash_rehash
29605         that fills every bucket can still trigger another rehash.
29606
29607 2009-06-18  Jim Meyering  <meyering@redhat.com>
29608
29609         hash-tests: add a loop around the small tests
29610         * tests/test-hash.c (main): Repeat small tests with selected
29611         small initial table sizes.
29612
29613 2009-06-17  Eric Blake  <ebb9@byu.net>
29614
29615         hash: minor cleanups
29616         * lib/hash.h (hash_entry): Make opaque, by moving...
29617         * lib/hash.c (hash_entry): ...here.
29618         (hash_insert): Clarify restrictions on what can be inserted.
29619         (hash_get_next): Clarify when it is safe to remove an element
29620         during traversal.
29621         (check_tuning): Skip verification when tuning is known safe.
29622         (hash_initialize): Clarify restrictions on tuning.
29623
29624 2009-06-17  Jim Meyering  <jim@meyering.net>
29625         and Eric Blake  <ebb9@byu.net>
29626
29627         hash-tests: new module
29628         * modules/hash-tests: New file.
29629         * tests/test-hash.c: New file.
29630
29631 2009-06-17  Eric Blake  <ebb9@byu.net>
29632
29633         strstr-simple: document new module
29634         * MODULES.html.sh: Document new module.
29635
29636         strstr, strcasestr: replace on platforms with broken memchr
29637         * modules/strstr: Split into...
29638         * modules/strstr-simple: ...new module that does not care about
29639         performance, but does care about glibc bug.
29640         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29641         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29642         if platform memchr is broken, per Debian bug 521737.
29643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29644         memchr.
29645         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29646         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29647         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29648         * modules/mountlist (Depends-on): Add strstr-simple.
29649         * modules/gen-uni-tables (Depends-on): Likewise.
29650         * modules/argz (Depends-on): Add strstr.
29651
29652 2009-06-17  Bruno Haible  <bruno@clisp.org>
29653
29654         * modules/posix_spawn-internal (Depends-on): Add errno.
29655
29656 2009-06-17  Bruno Haible  <bruno@clisp.org>
29657
29658         Define missing ESTALE on Interix 3.5.
29659         * lib/errno.in.h (ESTALE): Assign a value if missing.
29660         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29661         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29662         missing.
29663         * doc/posix-headers/errno.texi: Mention the Interix bug.
29664         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29665
29666 2009-06-15  Eric Blake  <ebb9@byu.net>
29667
29668         memchr, memchr2: add valgrind exception
29669         * lib/memchr.valgrind: New file.
29670         * lib/memchr2.valgrind: New file.
29671         * modules/memchr (Files): Distribute valgrind file.
29672         * modules/memchr2 (Files): Likewise.
29673
29674         docs: memchr is no longer obsolete
29675         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29676         * lib/string.in.h (memchr): Simplify logic.
29677
29678 2009-06-14  Jim Meyering  <meyering@redhat.com>
29679
29680         link-follow: fix the "checking..." message to not mention trailing slash
29681         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29682         never considered trailing slashes.
29683
29684 2009-06-14  Bruno Haible  <bruno@clisp.org>
29685
29686         * m4/memchr.m4: Mention also the bug on IA-64.
29687         * doc/posix-functions/memchr.texi: Likewise.
29688
29689 2009-06-12  Eric Blake  <ebb9@byu.net>
29690
29691         memchr: detect broken x86_64 and alpha implementations
29692         * modules/memchr-tests (Depends-on): Move mmap detection...
29693         * modules/memchr (Depends-on): ...here.
29694         (configure.ac): Set indicator.
29695         * lib/string.in.h (memchr): Declare replacement.
29696         * modules/string (Makefile.am): Trigger replacement.
29697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29698         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29699         bugs.
29700         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29701         * modules/getpagesize (License): Relax license.
29702
29703 2009-06-11  Bruno Haible  <bruno@clisp.org>
29704
29705         * lib/idpriv.h: Add more references.
29706
29707 2009-06-08  Bruno Haible  <bruno@clisp.org>
29708
29709         Tests for module 'idpriv-droptemp'.
29710         * modules/idpriv-droptemp-tests: New file.
29711         * tests/test-idpriv-droptemp.sh: New file.
29712         * tests/test-idpriv-droptemp.su.sh: New file.
29713         * tests/test-idpriv-droptemp.c: New file.
29714
29715         New module 'idpriv-droptemp'.
29716         * lib/idpriv-droptemp.c: New file.
29717         * modules/idpriv-droptemp: New file.
29718
29719 2009-06-08  Bruno Haible  <bruno@clisp.org>
29720
29721         Tests for module 'idpriv-drop'.
29722         * modules/idpriv-drop-tests: New file.
29723         * tests/test-idpriv-drop.sh: New file.
29724         * tests/test-idpriv-drop.su.sh: New file.
29725         * tests/test-idpriv-drop.c: New file.
29726
29727         New module 'idpriv-drop'.
29728         * lib/idpriv.h: New file.
29729         * lib-idpriv-drop.c: New file.
29730         * m4/idpriv.m4: New file.
29731         * modules/idpriv-drop: New file.
29732
29733 2009-06-08  Bruno Haible  <bruno@clisp.org>
29734
29735         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29742
29743 2009-06-08  Eric Blake  <ebb9@byu.net>
29744
29745         test-strstr: use memory fence, when possible
29746         * tests/test-strstr.c (main): Use memory fence, in order to be
29747         more likely to trigger Debian bug 521737.
29748         * modules/strstr-tests (Files): Pull in additional files.
29749
29750         memchr: no longer obsolete, for wider field testing
29751         * modules/memchr (Status, Notice): Delete, this module is no
29752         longer obsolete.
29753         * modules/vasnprintf (Depends-on): Add memchr.
29754
29755 2009-06-07  Jim Meyering  <meyering@redhat.com>
29756
29757         hash: declare some functions with the warn_unused_result attribute
29758         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29759
29760 2009-06-07  Bruno Haible  <bruno@clisp.org>
29761
29762         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29763         Reported by Eric Blake.
29764
29765 2009-06-06  Eric Blake  <ebb9@byu.net>
29766
29767         test-alignof: fix typo with long double
29768         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29769         compiler error.
29770
29771 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29772
29773         Escape non-texinfo { and }s.
29774         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29775         markup error.
29776
29777 2009-06-04  Jim Meyering  <meyering@redhat.com>
29778
29779         gitlog-to-changelog: don't infloop on an empty commit log
29780         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29781         Reported by Boris Petersen <transacid@centerim.org>.
29782
29783 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29784
29785         version-etc: extend for packagers
29786         Add three new configure options, intended for packagers:
29787           --with-packager="packager name"
29788           --with-packager-version="packager-specific version"
29789           --with-packager-bug-reports="packager bug reporting"
29790         An example with coreutils:
29791           $ ./configure \
29792             --with-packager=Gentoo \
29793             --with-packager-bug-report=http://bugs.gentoo.org/ \
29794             --with-packager-version="patchset 1.6"
29795           $ ./src/ls --version | head -n2
29796           ls (GNU coreutils) 7.1-dirty
29797           Packaged by Gentoo (patchset 1.6)
29798         Note that the bug reporting info via --help doesn't show up because
29799         coreutils uses its own custom emit_bug_reporting_address() implementation
29800         in src/system.h.  If it didn't, it'd look like:
29801           $ ./src/ls --help | tail -n4
29802           Report bugs to <bug-coreutils@gnu.org>.
29803           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29804           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29805           General help using GNU software: <http://www.gnu.org/gethelp/>.
29806         * lib/version-etc.c: Print new information, if provided.
29807         * m4/version-etc.m4: New file.
29808         * modules/version-etc (Files): Add m4/version-etc.m4.
29809         (configure.ac): Add gl_VERSION_ETC.
29810
29811 2009-05-31  Bruno Haible  <bruno@clisp.org>
29812
29813         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29814         and 'int64_t'.
29815         * modules/alignof-tests (Dependencies): Add stdint.
29816         Reported by Eric Blake.
29817
29818 2009-05-31  Bruno Haible  <bruno@clisp.org>
29819
29820         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29821         restriction due to compiler bugs.
29822         Reported by Eric Blake.
29823
29824 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29825             Bruno Haible  <bruno@clisp.org>
29826
29827         Fix test-alignof failure.
29828         * lib/alignof.h (alignof_slot): New macro.
29829         (alignof_type): New macro, with the same semantics as the previous
29830         'alignof'.
29831         (alignof): Alias to alignof_slot.
29832         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29833         check that the results are usable as constant expressions.
29834
29835 2009-05-31  Bruno Haible  <bruno@clisp.org>
29836
29837         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29838         * tests/test-memchr.c (main): Check that memchr does not read past the
29839         first occurrence of the byte.
29840         * tests/test-strstr.c (main): Update comment.
29841         Suggested by Eric Blake.
29842
29843 2009-05-30  Bruno Haible  <bruno@clisp.org>
29844
29845         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29846         detail how to use dumpbin.
29847         Reported by David Byron <dbyron@dbyron.com>.
29848
29849 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29850
29851         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29852
29853 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29854
29855         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29856
29857 2009-05-28  Bruno Haible  <bruno@clisp.org>
29858
29859         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29860         build-aux/ files.
29861
29862 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29863
29864         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29865
29866 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29867
29868         * gnulib-tool (sed_transform_main_lib_file)
29869         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29870         regexps.
29871
29872 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29873
29874         * tests/test-strstr.c: Add another self-test.
29875         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29876         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29877
29878 2009-05-23  Bruno Haible  <bruno@clisp.org>
29879
29880         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29881         change.
29882
29883 2009-05-21  Bruno Haible  <bruno@clisp.org>
29884
29885         Simplify use of mode_t varargs.
29886         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29887         uses 'mode_t' or 'int'.
29888         * lib/openat.c (openat): Likewise.
29889         * lib/open-safer.c (open_safer): Likewise.
29890         * m4/mode_t.m4: New file.
29891         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29892         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29893         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29894         * modules/open (Files): Add m4/mode_t.m4.
29895         * modules/openat (Files): Likewise.
29896         * modules/fcntl-safer (Files): Likewise.
29897         Suggested by Eric Blake.
29898
29899 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29900
29901         * doc/glibc-functions/fallocate.texi: New file.
29902         * doc/gnulib.texi: Include it.
29903
29904 2009-05-21  Eric Blake  <ebb9@byu.net>
29905             Bruno Haible  <bruno@clisp.org>
29906
29907         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29908         invocations.
29909         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29910
29911 2009-05-21  Eric Blake  <ebb9@byu.net>
29912             Bruno Haible  <bruno@clisp.org>
29913
29914         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29915         include_next. Fix of 2008-11-20 commit.
29916         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29917         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29918         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29919         NEXT_MATH_H.
29920         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29921         instead of NEXT_MATH_H.
29922
29923 2009-05-21  Bruno Haible  <bruno@clisp.org>
29924
29925         Avoid redefinition warnings for SIZE_MAX.
29926         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29927         Reported by Simon Josefsson.
29928
29929 2009-05-21  Bruno Haible  <bruno@clisp.org>
29930
29931         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29932         AC_CACHE_VAL.
29933
29934 2009-05-20  Bruno Haible  <bruno@clisp.org>
29935
29936         Make zeroptr.h work on mingw.
29937         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29938         mprotect.
29939         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29940         * modules/memchr2-tests (configure.ac): Likewise.
29941         * modules/memcmp-tests (configure.ac): Likewise.
29942         * modules/memmem-tests (configure.ac): Likewise.
29943         * modules/memrchr-tests (configure.ac): Likewise.
29944         Reported by Simon Josefsson.
29945
29946 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29947
29948         * tests/test-glob.c: Include string.h for strcmp prototype.
29949
29950 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29951
29952         * modules/getdelim (Depends-on): Add explicit stdint, although it
29953         was implicitly already pulled in via realloc-posix.
29954         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29955
29956 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29957
29958         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29959         G. Christensen" <tgc@jupiterrise.com>.
29960         * m4/sys_socket_h.m4: Check for sa_family_t.
29961         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29962         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29963         * tests/test-sys_socket.c: Check that sa_family_t works.
29964
29965 2009-05-18  Eric Blake  <ebb9@byu.net>
29966
29967         maint.mk: allow gnulib_dir in VPATH build
29968         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29969
29970 2009-05-15  Jim Meyering  <meyering@redhat.com>
29971
29972         maint.mk: Give gnulib_dir a default definition.
29973         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29974         Thus, most packages no longer need to specify this variable in cfg.mk
29975
29976 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29977
29978         rename.m4: fix typos that would make non-mingw cross-configure fail
29979         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29980
29981 2009-05-13  Eric Blake  <ebb9@byu.net>
29982
29983         mmap-anon: avoid out-of-order autoconf expansion
29984         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29985         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29986         * modules/memchr-tests (Depends-on): Add extensions.
29987         * modules/memchr2-tests (Depends-on): Add extensions.
29988         * modules/memcmp-tests (Depends-on): Add extensions.
29989         * modules/memmem-tests (Depends-on): Add extensions.
29990         * modules/memrchr-tests (Depends-on): Add extensions.
29991
29992 2009-05-13  Bruno Haible  <bruno@clisp.org>
29993
29994         Make some tests ISO C 99 compliant.
29995         * tests/zerosize-ptr.h: New file.
29996         * tests/test-memchr.c: Include zerosize-ptr.h.
29997         (main): Use a zero-size object pointer instead of NULL.
29998         * tests/test-memchr2.c: Include zerosize-ptr.h.
29999         (main): Use a zero-size object pointer instead of NULL.
30000         * tests/test-memcmp.c: Include zerosize-ptr.h.
30001         (main): Use a zero-size object pointer instead of NULL.
30002         * tests/test-memmem.c: Include zerosize-ptr.h.
30003         (main): Use a zero-size object pointer instead of NULL.
30004         * tests/test-memrchr.c: Include zerosize-ptr.h.
30005         (main): Use a zero-size object pointer instead of NULL.
30006         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30007         m4/mmap-anon.m4.
30008         (Depends-on): Add getpagesize.
30009         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30010         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30011         m4/mmap-anon.m4.
30012         (Depends-on): Add getpagesize.
30013         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30014         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30015         m4/mmap-anon.m4.
30016         (Depends-on): Add getpagesize.
30017         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30018         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30019         m4/mmap-anon.m4.
30020         (Depends-on): Add getpagesize.
30021         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30022         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30023         m4/mmap-anon.m4.
30024         (Depends-on): Add getpagesize.
30025         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30026
30027 2009-05-12  Bruno Haible  <bruno@clisp.org>
30028
30029         Tests for module 'alignof'.
30030         * modules/alignof-tests: New file.
30031         * tests/test-alignof.c: New file.
30032
30033 2009-05-12  Bruno Haible  <bruno@clisp.org>
30034
30035         Fix alignof macro.
30036         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30037         vendor compilers that are always correct.
30038
30039 2009-05-12  Bruno Haible  <bruno@clisp.org>
30040
30041         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30042         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30043         not whether its fully works.
30044
30045 2009-05-12  Bruno Haible  <bruno@clisp.org>
30046
30047         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30048
30049 2009-05-12  Jim Meyering  <meyering@redhat.com>
30050
30051         * top/maint.mk: Adjust backslash alignment.
30052
30053 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30054
30055         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30056
30057 2009-05-11  Eric Blake  <ebb9@byu.net>
30058
30059         argp: avoid undefined behavior
30060         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30061         macros.
30062
30063 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30064
30065         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30066         user.name to prevent git commit from complaining.
30067
30068 2009-05-10  Bruno Haible  <bruno@clisp.org>
30069
30070         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30071         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30072         it rewrites every file name only once.
30073         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30074
30075 2009-05-08  Bruno Haible  <bruno@clisp.org>
30076
30077         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30078         instead of 'max'.
30079
30080 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30081
30082         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30083         sockaddr_storage test.
30084
30085 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30086
30087         * modules/sys_socket (Makefile.am): Substitute
30088         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30089         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30090         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30091         * tests/test-sys_socket.c: Check sockaddr_storage.
30092
30093 2009-05-08  Bruno Haible  <bruno@clisp.org>
30094
30095         New module 'alignof'.
30096         * lib/alignof.h: New file.
30097         * modules/alignof: New file.
30098
30099 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30100             Bruno Haible  <bruno@clisp.org>
30101
30102         Fix test-file-has-acl on FreeBSD.
30103         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30104         mask is implicitly added.
30105         * tests/test-file-has-acl.c: Include <signal.h>.
30106         (main): Terminate the test after 5 seconds.
30107         * modules/acl-tests (configure.ac): Check for alarm function.
30108
30109 2009-05-04  Bruno Haible  <bruno@clisp.org>
30110
30111         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30112         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30113         * modules/errno (configure.ac): Drop AC_REQUIRE.
30114         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30115         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30116
30117 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30118
30119         * modules/glob-tests: New module.
30120         * tests/test-glob.c: Add.
30121
30122 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30123
30124         * modules/fnmatch-tests: New module.
30125         * tests/test-fnmatch.c: Add.
30126
30127 2009-05-04  Eric Blake  <ebb9@byu.net>
30128
30129         maint: make the new no-submodule-changes rule VPATH-safe
30130         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30131
30132 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30133             Bruno Haible  <bruno@clisp.org>
30134
30135         acl: Fix infinite loop on FreeBSD.
30136         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30137         of return value from acl_get_entry.
30138         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30139         Likewise.
30140
30141 2009-05-03  Bruno Haible  <bruno@clisp.org>
30142
30143         * lib/acl-internal.h (acl_entries): Clarify return value.
30144         * lib/acl_entries.c (acl_entries): Likewise.
30145
30146 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30147
30148         Bug fix in acl module.
30149         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30150
30151 2009-05-03  Bruno Haible  <bruno@clisp.org>
30152
30153         Create gperf-generated file in the source dir, not in the build dir.
30154         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30155         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30156         * modules/unicase/locale-language (unicase/locale-languages.h):
30157         Likewise.
30158         * modules/unicase/special-casing (unicase/special-casing-table.h):
30159         Likewise.
30160         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30161         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30162         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30163         Reported by Ralf Wildenhues.
30164
30165 2009-05-03  Bruno Haible  <bruno@clisp.org>
30166
30167         * modules/fnmatch (Description, configure.ac): Taken from
30168         fnmatch-posix.
30169         * modules/fnmatch-posix: Turn into a symbolic reference to the
30170         'fnmatch' module, and deprecate.
30171         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30172
30173 2009-05-03  Bruno Haible  <bruno@clisp.org>
30174
30175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30176         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30177         Reported by Ralf Wildenhues.
30178
30179 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30180
30181         * m4/fnmatch.m4: Fix fnmatch re-define.
30182
30183 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30184
30185         priv-set: new module and tests; adapt write-any-file
30186         * lib/priv-set.c: New file.
30187         * lib/priv-set.h: New file.
30188         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30189         * lib/write-any-file.c: Simplify by using priv-set module.
30190         * m4/priv-set.m4: New file.
30191         * modules/priv-set: New file.
30192         * modules/unlinkdir: Add dependency on priv-set module.
30193         * modules/write-any-file: Likewise.
30194
30195         Tests for module 'priv-set'.
30196         * modules/priv-set-tests: New file.
30197         * tests/test-priv-set.c: New file.
30198
30199 2009-05-03  Jim Meyering  <meyering@redhat.com>
30200             Bruno Haible  <bruno@clisp.org>
30201
30202         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30203         use the converted UTF-8 variant of the name instead.
30204
30205 2009-05-03  Jim Meyering  <meyering@redhat.com>
30206
30207         tests: tighten some getdate tests
30208         * tests/test-getdate.c (main): Tighten tests: require equality,
30209         not just greater than.  Set TZ envvar to UTC0.
30210
30211 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30212
30213         getdate: correctly interpret "next monday" when run on a Monday
30214         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30215         that e.g., "next tues" (when run on a tuesday) results in a date
30216         that is one week in the future, and not today's date.
30217         I.e., add a week when the wday is the same as the current one.
30218         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30219         and earlier by Martin Bernreuther and Jan Minář.
30220         * tests/test-getdate.c (main): Check that "next DAY" is always in
30221         the future and that "last DAY" is always in the past.
30222
30223 2009-05-02  Jim Meyering  <meyering@redhat.com>
30224
30225         build: ensure that a release build fails when a submodule is unclean
30226         * top/maint.mk (no-submodule-changes): New rule.
30227         (alpha beta major): Depend on it.
30228
30229 2009-05-02  Bruno Haible  <bruno@clisp.org>
30230
30231         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30232         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30233         shell variable gl_fnmatch_required to detect which variant is
30234         requested.
30235         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30236         gl_FUNC_FNMATCH_POSIX.
30237         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30238         exclude fnmatch-posix.
30239
30240 2009-05-02  Bruno Haible  <bruno@clisp.org>
30241
30242         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30243         * modules/mbsrtowcs (License): Change to LGPLv2+.
30244         * modules/strnlen1 (License): Likewise.
30245         Reported by Simon Josefsson.
30246
30247 2009-05-02  Bruno Haible  <bruno@clisp.org>
30248
30249         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30250         "cross".
30251         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30252         gnulib-tool was called with option --source-base=lib.
30253
30254 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30255
30256         Use automake *-local hooks without commands, for extensibility.
30257         * modules/localcharset (Makefile.am): Rename install-exec-local
30258         rule to install-exec-localcharset, and make it a prerequisite of
30259         install-exec-local.  Likewise, rename the uninstall-local rule to
30260         uninstall-localcharset, and make it a prerequisite of the former.
30261
30262 2009-05-01  Bruno Haible  <bruno@clisp.org>
30263
30264         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30265         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30266         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30268         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30269         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30270         m4/locale-zh.m4, m4/codeset.m4.
30271
30272         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30273         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30274         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30275         m4/locale-zh.m4.
30276
30277         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30278         REPLACE_WCRTOMB if mbstate_t must be replaced.
30279         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30280         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30281
30282 2009-05-01  Bruno Haible  <bruno@clisp.org>
30283
30284         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30285         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30286         dngettext, dcngettext, textdomain, bindtextdomain,
30287         bind_textdomain_codeset): Undefine before redefining.
30288
30289 2009-04-30  Bruno Haible  <bruno@clisp.org>
30290
30291         Fix bug introduced on 2009-04-25.
30292         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30293         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30294         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30295         is defined.
30296         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30297         is defined.
30298         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30299         is defined.
30300         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30301
30302 2009-04-28  Bruno Haible  <bruno@clisp.org>
30303
30304         Comment tweaks.
30305         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30306         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30307         * lib/unicase.h (u*_casexfrm): Likewise.
30308         Reported by Paolo Bonzini.
30309
30310 2009-04-28  Bruno Haible  <bruno@clisp.org>
30311
30312         Fix a compilation error.
30313         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30314         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30315         Reported by Jim Meyering.
30316
30317 2009-04-27  Bruno Haible  <bruno@clisp.org>
30318
30319         New module 'libunistring'.
30320         * modules/libunistring: New file.
30321         * m4/libunistring.m4: New file.
30322         * MODULES.html.sh (Unicode string functions): Add it.
30323
30324 2009-04-27  Eric Blake  <ebb9@byu.net>
30325
30326         maint.mk: allow package-specific header to provide <config.h>
30327         * top/maint.mk (sc_require_config_h): New variable.
30328         (sc_require_config_h, sc_require_config_h_first): Use it.
30329
30330 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30331
30332         * top/maint.mk (sc_avoid_if_before_free): Except
30333         useless-if-before-free script.
30334
30335 2009-04-27  Eric Blake  <ebb9@byu.net>
30336
30337         maintainer-makefile: depend on all required helper scripts
30338         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30339         useless-if-before-free.
30340         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30341         version, rather than assuming gnulib checkout is available.
30342         Reported by Simen Josefsson.
30343
30344 2009-04-26  Bruno Haible  <bruno@clisp.org>
30345
30346         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30347         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30348         "../" or "..".
30349
30350 2009-04-26  Bruno Haible  <bruno@clisp.org>
30351
30352         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30353         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30354         AC_LIB_HAVE_LINKFLAGS.
30355
30356 2009-04-26  Bruno Haible  <bruno@clisp.org>
30357
30358         Simplify calling convention of u*_conv_from_encoding.
30359         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30360         u32_conv_from_encoding): Expect a resultbuf argument and return the
30361         result directly as a pointer.
30362         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30363         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30364         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30365         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30366         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30367         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30368         Update.
30369         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30370         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30371         * lib/vasnprintf.c (VASNPRINTF): Update.
30372         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30373         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30374         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30375         * NEWS: Mention the change.
30376
30377 2009-04-26  Bruno Haible  <bruno@clisp.org>
30378
30379         Simplify calling convention of u*_conv_to_encoding.
30380         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30381         u32_conv_to_encoding): Expect a resultbuf argument and return the
30382         result directly as a pointer.
30383         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30384         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30385         freeing scaled_offsets if mem_iconveha failed.
30386         * lib/unicase/u-casexfrm.h (FUNC): Update.
30387         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30388         * lib/vasnprintf.c (VASNPRINTF): Update.
30389         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30390         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30391         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30392         * NEWS: Mention the change.
30393
30394 2009-04-26  Bruno Haible  <bruno@clisp.org>
30395
30396         Avoid test failures on AIX and OSF/1.
30397         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30398         malloc(0).
30399         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30400         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30401         Likewise.
30402         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30403         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30404         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30405         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30406         * doc/posix-functions/malloc.texi: Document the portability problem
30407         related to malloc(0).
30408
30409 2009-04-26  Bruno Haible  <bruno@clisp.org>
30410
30411         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30412         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30413         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30414
30415 2009-04-25  Bruno Haible  <bruno@clisp.org>
30416
30417         Avoid link error when creating a namespace clean library.
30418         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30419         as macro with arguments if already defined as an alias.
30420         * lib/signbitf.c (gl_signbitf): Don't undefine.
30421         * lib/signbitd.c (gl_signbitd): Don't undefine.
30422         * lib/signbitl.c (gl_signbitl): Don't undefine.
30423
30424 2009-04-25  Jim Meyering  <meyering@redhat.com>
30425
30426         vc-list-files: fix another quoting bug
30427         * build-aux/vc-list-files: Avoid sed backslash expansion
30428         of pathological directory names.
30429
30430 2009-04-25  Eric Blake  <ebb9@byu.net>
30431
30432         vc-list-files: fix shell quoting error
30433         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30434         timestamp.
30435
30436 2009-04-25  Jim Meyering  <meyering@redhat.com>
30437
30438         vc-list-files: restore lost functionality with subdir argument
30439         * build-aux/vc-list-files: When given a non-"." sub-directory
30440         argument, substitute the $dir/ prefix back onto each resulting name.
30441         Otherwise, coreutils' root_tests check would fail.
30442
30443 2009-04-24  Eric Blake  <ebb9@byu.net>
30444
30445         vc-list-files: ignore git symlinks
30446         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30447         than ls-files, to ignore git symlinks.
30448
30449         maint.mk: import improvements from m4
30450         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30451         (move_if_change): Delete unused macro.
30452         (news-date-check, vc-diff-check): Support VPATH builds.
30453         (announcement): Likewise.  Split --bootstrap-tools list...
30454         (boostrap-tools): ...into separate list, which can be overridden
30455         in cfg.mk.
30456         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30457         requiring dependency on useless-if-before-free module.
30458         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30459         Support VPATH builds.
30460
30461 2009-04-24  Jim Meyering  <meyering@redhat.com>
30462
30463         maint.mk: remove coreutils-specific rules and variables
30464         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30465         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30466         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30467
30468         maint.mk: remove obsolete rule
30469         * top/maint.mk (rel-check): Remove rule.
30470         (WGET, WGETFLAGS): Remove now-unused variables.
30471
30472 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30473
30474         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30475         consistency.
30476
30477         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30478         '$(PATH_SEPARATOR)' instead of ':'.
30479
30480 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30481
30482         * lib/getopt1.c (main): Use 'const' for static array.
30483
30484 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30485
30486         * top/maint.mk: Sync with coreutils.
30487         * NEWS: Explain incompatibilities.
30488
30489 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30490             Bruno Haible  <bruno@clisp.org>
30491
30492         Fix cross-compilation results.
30493         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30494         statement, as third argument of AC_TRY_RUN.
30495         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30496         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30497         Likewise.
30498         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30499         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30500         Likewise.
30501         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30502         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30503         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30504
30505 2009-04-20  Bruno Haible  <bruno@clisp.org>
30506
30507         Avoid test failure on mingw.
30508         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30509
30510 2009-04-20  Bruno Haible  <bruno@clisp.org>
30511
30512         Avoid compilation error on mingw.
30513         * modules/localename-tests (Depends-on): Add locale.
30514
30515 2009-04-19  Bruno Haible  <bruno@clisp.org>
30516
30517         Support for building a shared library on Windows platforms.
30518         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30519         (main): Test the presence of UNINORM_NFC here.
30520         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30521         (main): Test the presence of UNINORM_NFD here.
30522         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30523         (main): Test the presence of UNINORM_NFKC here.
30524         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30525         (main): Test the presence of UNINORM_NFKD here.
30526
30527 2009-04-19  Bruno Haible  <bruno@clisp.org>
30528
30529         Avoid a compiler warning.
30530         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30531         Change type of variable 'sequence'.
30532
30533 2009-04-19  Bruno Haible  <bruno@clisp.org>
30534
30535         * modules/configmake (Makefile.am): When the contents of configmake.h
30536         does not change, arrange to preserve its modification time.
30537
30538 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30539
30540         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30541         gettext domain.
30542
30543 2009-04-16  Jim Meyering  <meyering@redhat.com>
30544
30545         useless-if-before-free: improve conversion code
30546         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30547         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30548
30549 2009-04-14  Bruno Haible  <bruno@clisp.org>
30550
30551         * modules/fcntl (Depends-on): Add extensions.
30552         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30553
30554 2009-04-12  Ben Pfaff  <blp@gnu.org>
30555
30556         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30557         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30558
30559 2009-03-20  Ben Pfaff  <blp@gnu.org>
30560
30561         Make rename replace existing destinations on Windows.
30562         * m4/rename.m4: Add test for Mingw.
30563         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30564         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30565         * doc/posix-functions/rename.texi: Document.
30566
30567 2009-04-10  Bruno Haible  <bruno@clisp.org>
30568
30569         New include file "iconveh.h".
30570         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30571         * lib/striconveh.h: Include it.
30572         (enum iconv_ilseq_handler): Remove definition.
30573         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30574         striconveh.h.
30575         * lib/striconveha.c: Include striconveh.h.
30576         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30577         * modules/striconveh (Files): Add lib/iconveh.h.
30578         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30579         lib/striconveh.h.
30580
30581 2009-04-10  Bruno Haible  <bruno@clisp.org>
30582
30583         * lib/uniconv.h: Update comment.
30584
30585 2009-04-10  Bruno Haible  <bruno@clisp.org>
30586
30587         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30588         always.
30589         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30590         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30591         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30592         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30593         "unistring-notinline.h", so that the function gets defined always.
30594         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30595         * lib/unistr/u8-uctomb.c: Likewise.
30596         * lib/unistr/u16-mbtouc.c: Likewise.
30597         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30598         * lib/unistr/u16-uctomb.c: Likewise.
30599         * lib/unistr/u32-mbtouc.c: Likewise.
30600         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30601         * lib/unistr/u32-uctomb.c: Likewise.
30602
30603 2009-04-10  Bruno Haible  <bruno@clisp.org>
30604
30605         Mark 'utime' obsolete.
30606         * modules/utime (Status, Notice): New sections.
30607         Suggested by Jim Meyering.
30608
30609         Fix cross-compile guess for utime test.
30610         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30611         autoconf.
30612         * doc/posix-functions/utime.texi: Give more precisions.
30613         Reported by Jan <ipif@ymail.com>.
30614
30615 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30616
30617         filevercmp: correct today's change
30618         * lib/filevercmp.c: Also handle coreutils' test inputs.
30619         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30620
30621         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30622         for reporting it.
30623         * lib/filevercmp.c: Special handle for "", "." and "..".
30624         * tests/test-filevercmp.c: Enlarge the set suite.
30625
30626 2009-04-07  Jim Meyering  <meyering@redhat.com>
30627
30628         useless-if-before-free: show how to remove braced useless free, too
30629         * build-aux/useless-if-before-free: still only in a comment, though.
30630
30631 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30632
30633         maint.mk: import changes to syntax-check macros from coreutils
30634         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30635         Use them in the relevant macros.
30636
30637 2009-04-06  Bruno Haible  <bruno@clisp.org>
30638
30639         Fix unportable use of bit-fields.
30640         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30641         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30642         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30643
30644 2009-04-06  Bruno Haible  <bruno@clisp.org>
30645
30646         Avoid test failures on AIX and OSF/1.
30647         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30648         that malloc(0) = NULL.
30649         * tests/unicase/test-u8-tolower.c (check): Likewise.
30650         * tests/unicase/test-u8-totitle.c (check): Likewise.
30651         * tests/unicase/test-u8-toupper.c (check): Likewise.
30652         * tests/unicase/test-u16-casefold.c (check): Likewise.
30653         * tests/unicase/test-u16-tolower.c (check): Likewise.
30654         * tests/unicase/test-u16-totitle.c (check): Likewise.
30655         * tests/unicase/test-u16-toupper.c (check): Likewise.
30656         * tests/unicase/test-u32-casefold.c (check): Likewise.
30657         * tests/unicase/test-u32-tolower.c (check): Likewise.
30658         * tests/unicase/test-u32-totitle.c (check): Likewise.
30659         * tests/unicase/test-u32-toupper.c (check): Likewise.
30660         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30661         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30662         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30663         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30664         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30665         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30666         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30667         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30668         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30669         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30670         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30671         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30672
30673 2009-04-05  Bruno Haible  <bruno@clisp.org>
30674
30675         Work around an autoconf limitation.
30676         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30677         comment line if it would be longer than 3 KB.
30678
30679 2009-04-05  Bruno Haible  <bruno@clisp.org>
30680
30681         Avoid test failure with libiconv-1.13.
30682         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30683         of the expected test results.
30684
30685 2009-04-05  Bruno Haible  <bruno@clisp.org>
30686
30687         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30688         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30689         that it should be installed.
30690
30691 2009-04-05  Bruno Haible  <bruno@clisp.org>
30692
30693         * gnulib-tool: New option --copy-file.
30694         (func_usage): Document it.
30695         (func_dest_tmpfilename): Moved out of func_import.
30696         (func_add_file, func_update_file): New functions, extracted from
30697         func_import.
30698         (func_import): Update.
30699
30700 2009-04-05  Karl Berry  <karl@gnu.org>
30701
30702         * README: prominently mention gnulib-tool.
30703         Rearrange sections so getting the code is near the top.
30704
30705 2009-04-05  Bruno Haible  <bruno@clisp.org>
30706
30707         * lib/unicase.h: Mention u*_cmp2.
30708         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30709         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30710         * lib/unicase/ulc-casecmp.c: Likewise.
30711         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30712         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30713         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30714         unistr/u8-cmp.
30715         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30716         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30717         unistr/u16-cmp.
30718         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30719         unistr/u32-cmp.
30720
30721         * lib/uninorm.h: Mention u*_cmp2.
30722         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30723         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30724         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30725         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30726         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30727         unistr/u8-cmp.
30728         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30729         unistr/u16-cmp.
30730         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30731         unistr/u32-cmp.
30732
30733         New module 'unistr/u32-cmp2'.
30734         * lib/unistr/u32-cmp2.c: New file.
30735         * modules/unistr/u32-cmp2: New file.
30736
30737         New module 'unistr/u16-cmp2'.
30738         * lib/unistr/u16-cmp2.c: New file.
30739         * modules/unistr/u16-cmp2: New file.
30740
30741         New module 'unistr/u8-cmp2'.
30742         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30743         * lib/unistr/u8-cmp2.c: New file.
30744         * lib/unistr/u-cmp2.h: New file.
30745         * modules/unistr/u8-cmp2: New file.
30746
30747 2009-04-05  Bruno Haible  <bruno@clisp.org>
30748
30749         * lib/unictype.h (uc_property_is_valid): New macro.
30750         * tests/unictype/test-pr_byname.c (main): Use it.
30751
30752         * lib/unistr.h: Doc fixes.
30753         * lib/uniconv.h: Doc fixes.
30754         * lib/unictype.h: Doc fixes.
30755
30756 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30757
30758         Port coreutils 7.2 to Solaris 8.
30759
30760         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30761         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30762         for Solaris 8.  This is a bit of a hack, as it means it's the
30763         caller's responsibility to add -lnsl if needed, but most likely it
30764         won't be needed since only getaddrinfo uses this and getaddrinfo
30765         isn't needed on Solaris 8.
30766
30767         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30768         problem to Solaris 8 encountered with coreutils 7.2, which
30769         resulted in a message "fnmatch.c:292: warning: passing argument 4
30770         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30771         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30772
30773 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30774
30775         * m4/ld-version-script.m4: Add FIXME comment.
30776
30777 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30778
30779         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30780         SOVERSION variable.
30781
30782 2009-04-02  Bruno Haible  <bruno@clisp.org>
30783
30784         * Makefile (info, html, dvi, pdf): Combine the rules.
30785         Suggested by Jim Meyering.
30786
30787 2009-04-01  Bruno Haible  <bruno@clisp.org>
30788
30789         * Makefile (info, html, dvi, pdf): New targets.
30790         Reported by Reuben Thomas <rrt@sc3d.org>.
30791
30792 2009-04-01  Bruno Haible  <bruno@clisp.org>
30793
30794         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30795         can be put into PATH.
30796         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30797
30798 2009-04-01  Bruno Haible  <bruno@clisp.org>
30799
30800         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30801
30802 2009-04-01  Bruno Haible  <bruno@clisp.org>
30803
30804         Rename module 'visibility'.
30805         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30806         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30807         * doc/gnulib.texi: Update.
30808         * MODULES.html.sh (Misc): Update.
30809         * NEWS: Mention the change.
30810
30811 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30812
30813         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30814         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30815         Eric Blake <ebb9@byu.net> for review.
30816         * MODULES.html.sh: Add lib-msvc-compat.
30817         * doc/gnulib.texi: Link to new section.
30818         * m4/ld-output-def.m4: New file.
30819         * doc/ld-output-def.texi: New file.
30820
30821 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30822
30823         Rename ld-version-script to lib-symbol-versions.  Suggested by
30824         Bruno Haible <bruno@clisp.org>.
30825         * modules/ld-version-script: Renamed to lib-symbol-versions.
30826         * doc/ld-version-script.texi: Fix module name.
30827         * MODULES.html.sh: Add lib-symbol-versions.
30828
30829 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30830
30831         * modules/u64-tests: New file.
30832         * tests/test-u64.c: New file.
30833
30834 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30835
30836         * MODULES.html.sh: Mention u64.
30837         * modules/u64: New module.
30838         * modules/crypto/sha512: Depend on u64 module instead of providing
30839         u64.h.
30840
30841 2009-03-27  Eric Blake  <ebb9@byu.net>
30842
30843         test-strerror: make debugging EAI_SYSTEM easier
30844         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30845         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30846         failure was EAI_SYSTEM.
30847
30848 2009-03-25  Bruno Haible  <bruno@clisp.org>
30849
30850         Fix a problem with --enable-relocatable on Solaris 7.
30851         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30852         since 2008-02-24.
30853
30854 2009-03-25  Eric Blake  <ebb9@byu.net>
30855
30856         test-sockets: avoid gcc warning
30857         * tests/test-sockets.c (main): Silence compiler warning.
30858
30859 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30860
30861         New modules nproc, pthread, contributed by Glen Lenker.
30862
30863         * MODULES.html.sh: Add pthread, nproc.
30864         * lib/nproc.c: New file.
30865         * lib/nproc.h: New file.
30866         * lib/pthread.in.h: New file.
30867         * m4/pthread.m4: New file.
30868         * modules/nproc: New file.
30869         * modules/pthread: New file.
30870
30871 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30872
30873         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30874         New variable.
30875
30876 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30877
30878         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30879         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30880         * tests/test-filevercmp.c: Add tests for backup suffixes.
30881
30882 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30883
30884         * modules/stdlib (Depends-on): Add stdint, needed when defining
30885         struct random_data on, for example, HP-UX 10.20.  Reported by
30886         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30887
30888 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30889
30890         * lib/readline.c (readline): Call fflush on stdout after printing
30891         prompt.
30892
30893 2009-03-20  Bruno Haible  <bruno@clisp.org>
30894
30895         Remove dependency from 'close' module to -lws2_32 on native Windows.
30896         * lib/close-hook.h: New file.
30897         * lib/close-hook.c: New file.
30898         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30899         w32sock.h.
30900         (_gl_close_fd_maybe_socket): Remove function.
30901         (rpl_close): Invoke execute_all_close_hooks instead of
30902         _gl_close_fd_maybe_socket.
30903         * lib/sockets.c: Include close-hook.h, w32sock.h.
30904         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30905         (close_sockets_hook): New variable.
30906         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30907         (gl_sockets_cleanup): Unregister it.
30908         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30909         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30910         * modules/close-hook: New file.
30911         * modules/close (Files): Remove lib/w32sock.h.
30912         (Depends-on): Add close-hook.
30913         (Link): Remove section.
30914         * modules/sockets (Files): Add lib/w32sock.h.
30915         (Depends-on): Add close-hook.
30916         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30917         invocation.
30918         * NEWS: Mention that LIB_CLOSE is gone.
30919
30920 2009-03-23  Eric Blake  <ebb9@byu.net>
30921
30922         signal-tests: test previous patch
30923         * tests/test-signal.c: New file.
30924         * modules/signal-tests: Likewise.
30925
30926         signal.h: always support 'volatile sig_atomic_t'
30927         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30928         (gl_SIGNAL_H_DEFAULTS): Add a default.
30929         * modules/signal (Makefile.am): Substitute if needed.
30930         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30931         users can blindly add volatile.
30932         * doc/posix-headers/signal.texi (signal.h): Document it.
30933         Reported by Matthew Woehlke.
30934
30935 2009-03-23  Jim Meyering  <meyering@redhat.com>
30936
30937         pathmax: PATH_MAX: use pathconf only when available
30938         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30939         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30940         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30941         This avoids a link failure in a PSP cross-compilation environment
30942         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30943
30944         * lib/vasnprintf.c (divide): Fix typo in comment.
30945
30946 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30947
30948         * gnulib-tool (func_filter_filelist): Fix comment.
30949
30950 2009-03-20  Bruno Haible  <bruno@clisp.org>
30951
30952         Make sockets.h self-contained.
30953         * lib/sockets.c: Include sockets.h first.
30954         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30955
30956 2009-03-19  Eric Blake  <ebb9@byu.net>
30957
30958         doc: mention more functions added in cygwin 1.7.0
30959         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30960         addition.
30961         * doc/posix-functions/log2f.texi: Likewise.
30962
30963 2009-03-19  Jim Meyering  <meyering@redhat.com>
30964
30965         fsusage: avoid syntax error due to statement-before-declaration
30966         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30967         after all declarations.  Reported by Matthew Woehlke in
30968         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30969
30970 2009-03-18  Eric Blake  <ebb9@byu.net>
30971
30972         build-aux/compile: sync from automake
30973         * build-aux/compile: New file, from automake.
30974         * config/srclist.txt: Mention build-aux/compile.
30975
30976 2009-03-17  Bruno Haible  <bruno@clisp.org>
30977
30978         * lib/git-merge-changelog.c: Fix typo in comment.
30979         Reported by Reuben Thomas <rrt@sc3d.org>.
30980
30981 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30982
30983         * m4/regex.m4: update and improve help for
30984         --without-included-regex.
30985
30986 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30987
30988         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30989         failure on missing include files.
30990
30991 2009-03-17  Eric Blake  <ebb9@byu.net>
30992
30993         doc: mention more functions added in cygwin 1.7.0
30994         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30995         addition.
30996         * doc/posix-functions/fwscanf.texi: Likewise.
30997         * doc/posix-functions/swprintf.texi: Likewise.
30998         * doc/posix-functions/swscanf.texi: Likewise.
30999         * doc/posix-functions/vfwprintf.texi: Likewise.
31000         * doc/posix-functions/vfwscanf.texi: Likewise.
31001         * doc/posix-functions/vswprintf.texi: Likewise.
31002         * doc/posix-functions/vswscanf.texi: Likewise.
31003         * doc/posix-functions/vwprintf.texi: Likewise.
31004         * doc/posix-functions/vwscanf.texi: Likewise.
31005         * doc/posix-functions/wcscasecmp.texi: Likewise.
31006         * doc/posix-functions/wcsdup.texi: Likewise.
31007         * doc/posix-functions/wcsftime.texi: Likewise.
31008         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31009         * doc/posix-functions/wprintf.texi: Likewise.
31010         * doc/posix-functions/wscanf.texi: Likewise.
31011         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31012
31013 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31014
31015         maint.mk: really add $(AM_MAKEFLAGS)
31016         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31017         was inadvertently omitted in the last commit.
31018         Spotted by Bruno Haible.
31019
31020         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31021         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31022         $(AM_MAKEFLAGS)' rather than plain `make'.
31023
31024         gnulib-tool: execute $MAKE not make
31025         * gnulib-tool: Default $MAKE to 'make'.
31026         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31027         than make.  Initialize $MAKE in the do-autobuild script.
31028
31029         gnulib-tool: use $MAKE not make in generated files
31030         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31031         make, in generated files.  Initialize $MAKE in the do-autobuild
31032         script.
31033
31034         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31035
31036         GNUmakefile: disable parallelism only for multiple, recursive targets
31037         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31038         additions in the Makefile.
31039         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31040         by Automake.
31041         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31042         are listed on the command line and at least one of them is
31043         listed in $(ALL_RECURSIVE_TARGETS).
31044
31045 2009-03-14  Bruno Haible  <bruno@clisp.org>
31046
31047         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31048         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31049         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31050         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31051         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31052         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31053         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31054         unistr/u8-uctomb.
31055         * modules/unistr/u8-strchr (Depends-on): Likewise.
31056         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31057         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31058         unistr/u16-uctomb.
31059         * modules/unistr/u16-strchr (Depends-on): Likewise.
31060         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31061
31062 2009-03-12  Bruno Haible  <bruno@clisp.org>
31063
31064         Work around select() bug on Interix 3.5.
31065         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31066         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31067         * m4/select.m4: New file.
31068         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31069         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31070         * modules/select (Files): Add m4/select.m4.
31071         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31072         * modules/nanosleep (Depends-on): Add select.
31073         * modules/poll (Depends-on): Likewise.
31074         * doc/posix-functions/select.texi: Mention the Interix bug.
31075         Reported by Markus Duft <mduft@gentoo.org>.
31076
31077         * lib/select.c: Renamed from lib/winsock-select.c.
31078         * modules/select (Files): Add lib/select.c, remove
31079         lib/winsock-select.c.
31080         (configure.ac): Update.
31081
31082 2009-03-12  Jim Meyering  <meyering@redhat.com>
31083
31084         avoid gcc warnings about unused macro definitions
31085         * lib/readtokens.c (STREQ): Remove unused definition.
31086         * lib/xmalloc.c (SIZE_MAX): Likewise.
31087         * lib/openat-die.c (N_): Likewise.
31088         * lib/mountlist.c (SIZE_MAX): Remove definition.
31089         Instead, include <stdint.h>.
31090         * lib/readutmp.c: Likewise.
31091         * modules/readutmp (Depends-on): Add stdint.
31092         * modules/mountlist (Depends-on): Add stdint.
31093         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31094
31095 2009-03-10  Bruno Haible  <bruno@clisp.org>
31096
31097         Tests for module 'mbmemcasecoll'.
31098         * modules/mbmemcasecoll-tests: New file.
31099         * tests/test-mbmemcasecoll1.sh: New file.
31100         * tests/test-mbmemcasecoll2.sh: New file.
31101         * tests/test-mbmemcasecoll3.sh: New file.
31102         * tests/test-mbmemcasecoll.c: New file.
31103
31104         New module 'mbmemcasecoll'.
31105         * lib/mbmemcasecoll.h: New file.
31106         * lib/mbmemcasecoll.c: New file.
31107         * modules/mbmemcasecoll: New file.
31108
31109         * tests/test-mbmemcasecmp.h: New file, extracted from
31110         tests/test-mbmemcasecmp.c.
31111         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31112         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31113         (main): Update.
31114         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31115
31116 2009-03-09  Bruno Haible  <bruno@clisp.org>
31117
31118         Tests for module 'mbmemcasecmp'.
31119         * modules/mbmemcasecmp-tests: New file.
31120         * tests/test-mbmemcasecmp1.sh: New file.
31121         * tests/test-mbmemcasecmp2.sh: New file.
31122         * tests/test-mbmemcasecmp3.sh: New file.
31123         * tests/test-mbmemcasecmp.c: New file.
31124
31125         New module 'mbmemcasecmp'.
31126         * lib/mbmemcasecmp.h: New file.
31127         * lib/mbmemcasecmp.c: New file.
31128         * modules/mbmemcasecmp: New file.
31129
31130 2009-03-09  Bruno Haible  <bruno@clisp.org>
31131
31132         Tests for module 'unicase/ulc-casecoll'.
31133         * modules/unicase/ulc-casecoll-tests: New file.
31134         * tests/unicase/test-ulc-casecoll1.sh: New file.
31135         * tests/unicase/test-ulc-casecoll2.sh: New file.
31136         * tests/unicase/test-ulc-casecoll.c: New file.
31137
31138         New module 'unicase/ulc-casecoll'.
31139         * lib/unicase.h (ulc_casecoll): New declaration.
31140         * lib/unicase/ulc-casecoll.c: New file.
31141         * modules/unicase/ulc-casecoll: New file.
31142
31143         New module 'unicase/ulc-casexfrm'.
31144         * lib/unicase.h (ulc_casexfrm): New declaration.
31145         * lib/unicase/ulc-casexfrm.c: New file.
31146         * modules/unicase/ulc-casexfrm: New file.
31147
31148 2009-03-09  Bruno Haible  <bruno@clisp.org>
31149
31150         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31151         invocations.
31152
31153         * m4/mbscasecmp.m4: Remove file.
31154         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31155         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31156
31157         * m4/mbscasestr.m4: Remove file.
31158         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31159         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31160
31161         * m4/mbschr.m4: Remove file.
31162         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31163         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31164
31165         * m4/mbscspn.m4: Remove file.
31166         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31167         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31168
31169         * m4/mbslen.m4: Remove file.
31170         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31171         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31172
31173         * m4/mbsncasecmp.m4: Remove file.
31174         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31175         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31176
31177         * m4/mbsnlen.m4: Remove file.
31178         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31179         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31180
31181         * m4/mbspbrk.m4: Remove file.
31182         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31183         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31184
31185         * m4/mbspcasecmp.m4: Remove file.
31186         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31187         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31188
31189         * m4/mbsrchr.m4: Remove file.
31190         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31191         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31192
31193         * m4/mbssep.m4: Remove file.
31194         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31195         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31196
31197         * m4/mbsspn.m4: Remove file.
31198         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31199         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31200
31201         * m4/mbsstr.m4: Remove file.
31202         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31203         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31204
31205         * m4/mbstok_r.m4: Remove file.
31206         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31207         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31208
31209         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31210
31211         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31212         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31213
31214         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31215
31216 2009-03-08  Bruno Haible  <bruno@clisp.org>
31217
31218         Tests for module 'unicase/ulc-casecmp'.
31219         * modules/unicase/ulc-casecmp-tests: New file.
31220         * tests/unicase/test-ulc-casecmp1.sh: New file.
31221         * tests/unicase/test-ulc-casecmp2.sh: New file.
31222         * tests/unicase/test-ulc-casecmp.c: New file.
31223
31224         New module 'unicase/ulc-casecmp'.
31225         * lib/unicase.h (ulc_casecmp): New declaration.
31226         * lib/unicase/ulc-casecmp.c: New file.
31227         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31228         'const SRC_UNIT *'.
31229         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31230         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31231         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31232         * modules/unicase/ulc-casecmp: New file.
31233
31234         Tests for module 'unicase/u32-is-cased'.
31235         * modules/unicase/u32-is-cased-tests: New file.
31236         * tests/unicase/test-u32-is-cased.c: New file.
31237
31238         Tests for module 'unicase/u16-is-cased'.
31239         * modules/unicase/u16-is-cased-tests: New file.
31240         * tests/unicase/test-u16-is-cased.c: New file.
31241
31242         Tests for module 'unicase/u8-is-cased'.
31243         * modules/unicase/u8-is-cased-tests: New file.
31244         * tests/unicase/test-u8-is-cased.c: New file.
31245         * tests/unicase/test-is-cased.h: New file.
31246
31247         New module 'unicase/u32-is-cased'.
31248         * lib/unicase/u32-is-cased.c: New file.
31249         * modules/unicase/u32-is-cased: New file.
31250
31251         New module 'unicase/u16-is-cased'.
31252         * lib/unicase/u16-is-cased.c: New file.
31253         * modules/unicase/u16-is-cased: New file.
31254
31255         New module 'unicase/u8-is-cased'.
31256         * lib/unicase/u8-is-cased.c: New file.
31257         * lib/unicase/u-is-cased.h: New file.
31258         * modules/unicase/u8-is-cased: New file.
31259
31260         Tests for module 'unicase/u32-is-casefolded'.
31261         * modules/unicase/u32-is-casefolded-tests: New file.
31262         * tests/unicase/test-u32-is-casefolded.c: New file.
31263
31264         Tests for module 'unicase/u16-is-casefolded'.
31265         * modules/unicase/u16-is-casefolded-tests: New file.
31266         * tests/unicase/test-u16-is-casefolded.c: New file.
31267
31268         Tests for module 'unicase/u8-is-casefolded'.
31269         * modules/unicase/u8-is-casefolded-tests: New file.
31270         * tests/unicase/test-u8-is-casefolded.c: New file.
31271         * tests/unicase/test-is-casefolded.h: New file.
31272
31273         New module 'unicase/u32-is-casefolded'.
31274         * lib/unicase/u32-is-casefolded.c: New file.
31275         * modules/unicase/u32-is-casefolded: New file.
31276
31277         New module 'unicase/u16-is-casefolded'.
31278         * lib/unicase/u16-is-casefolded.c: New file.
31279         * modules/unicase/u16-is-casefolded: New file.
31280
31281         New module 'unicase/u8-is-casefolded'.
31282         * lib/unicase/u8-is-casefolded.c: New file.
31283         * modules/unicase/u8-is-casefolded: New file.
31284
31285         Tests for module 'unicase/u32-is-titlecase'.
31286         * modules/unicase/u32-is-titlecase-tests: New file.
31287         * tests/unicase/test-u32-is-titlecase.c: New file.
31288
31289         Tests for module 'unicase/u16-is-titlecase'.
31290         * modules/unicase/u16-is-titlecase-tests: New file.
31291         * tests/unicase/test-u16-is-titlecase.c: New file.
31292
31293         Tests for module 'unicase/u8-is-titlecase'.
31294         * modules/unicase/u8-is-titlecase-tests: New file.
31295         * tests/unicase/test-u8-is-titlecase.c: New file.
31296         * tests/unicase/test-is-titlecase.h: New file.
31297
31298         New module 'unicase/u32-is-titlecase'.
31299         * lib/unicase/u32-is-titlecase.c: New file.
31300         * modules/unicase/u32-is-titlecase: New file.
31301
31302         New module 'unicase/u16-is-titlecase'.
31303         * lib/unicase/u16-is-titlecase.c: New file.
31304         * modules/unicase/u16-is-titlecase: New file.
31305
31306         New module 'unicase/u8-is-titlecase'.
31307         * lib/unicase/u8-is-titlecase.c: New file.
31308         * modules/unicase/u8-is-titlecase: New file.
31309
31310         Tests for module 'unicase/u32-is-lowercase'.
31311         * modules/unicase/u32-is-lowercase-tests: New file.
31312         * tests/unicase/test-u32-is-lowercase.c: New file.
31313
31314         Tests for module 'unicase/u16-is-lowercase'.
31315         * modules/unicase/u16-is-lowercase-tests: New file.
31316         * tests/unicase/test-u16-is-lowercase.c: New file.
31317
31318         Tests for module 'unicase/u8-is-lowercase'.
31319         * modules/unicase/u8-is-lowercase-tests: New file.
31320         * tests/unicase/test-u8-is-lowercase.c: New file.
31321         * tests/unicase/test-is-lowercase.h: New file.
31322
31323         New module 'unicase/u32-is-lowercase'.
31324         * lib/unicase/u32-is-lowercase.c: New file.
31325         * modules/unicase/u32-is-lowercase: New file.
31326
31327         New module 'unicase/u16-is-lowercase'.
31328         * lib/unicase/u16-is-lowercase.c: New file.
31329         * modules/unicase/u16-is-lowercase: New file.
31330
31331         New module 'unicase/u8-is-lowercase'.
31332         * lib/unicase/u8-is-lowercase.c: New file.
31333         * modules/unicase/u8-is-lowercase: New file.
31334
31335         Tests for module 'unicase/u32-is-uppercase'.
31336         * modules/unicase/u32-is-uppercase-tests: New file.
31337         * tests/unicase/test-u32-is-uppercase.c: New file.
31338
31339         Tests for module 'unicase/u16-is-uppercase'.
31340         * modules/unicase/u16-is-uppercase-tests: New file.
31341         * tests/unicase/test-u16-is-uppercase.c: New file.
31342
31343         Tests for module 'unicase/u8-is-uppercase'.
31344         * modules/unicase/u8-is-uppercase-tests: New file.
31345         * tests/unicase/test-u8-is-uppercase.c: New file.
31346         * tests/unicase/test-is-uppercase.h: New file.
31347
31348         New module 'unicase/u32-is-uppercase'.
31349         * lib/unicase/u32-is-uppercase.c: New file.
31350         * modules/unicase/u32-is-uppercase: New file.
31351
31352         New module 'unicase/u16-is-uppercase'.
31353         * lib/unicase/u16-is-uppercase.c: New file.
31354         * modules/unicase/u16-is-uppercase: New file.
31355
31356         New module 'unicase/u8-is-uppercase'.
31357         * lib/unicase/u8-is-uppercase.c: New file.
31358         * modules/unicase/u8-is-uppercase: New file.
31359
31360         New module 'unicase/u32-is-invariant'.
31361         * lib/unicase/u32-is-invariant.c: New file.
31362         * modules/unicase/u32-is-invariant: New file.
31363
31364         New module 'unicase/u16-is-invariant'.
31365         * lib/unicase/u16-is-invariant.c: New file.
31366         * modules/unicase/u16-is-invariant: New file.
31367
31368         New module 'unicase/u8-is-invariant'.
31369         * lib/unicase/u8-is-invariant.c: New file.
31370         * lib/unicase/invariant.h: New file.
31371         * lib/unicase/u-is-invariant.h: New file.
31372         * modules/unicase/u8-is-invariant: New file.
31373
31374         Tests for module 'unicase/u32-casecoll'.
31375         * modules/unicase/u32-casecoll-tests: New file.
31376         * tests/unicase/test-u32-casecoll.c: New file.
31377
31378         Tests for module 'unicase/u16-casecoll'.
31379         * modules/unicase/u16-casecoll-tests: New file.
31380         * tests/unicase/test-u16-casecoll.c: New file.
31381
31382         Tests for module 'unicase/u8-casecoll'.
31383         * modules/unicase/u8-casecoll-tests: New file.
31384         * tests/unicase/test-u8-casecoll.c: New file.
31385
31386         New module 'unicase/u32-casecoll'.
31387         * lib/unicase/u32-casecoll.c: New file.
31388         * modules/unicase/u32-casecoll: New file.
31389
31390         New module 'unicase/u16-casecoll'.
31391         * lib/unicase/u16-casecoll.c: New file.
31392         * modules/unicase/u16-casecoll: New file.
31393
31394         New module 'unicase/u8-casecoll'.
31395         * lib/unicase/u8-casecoll.c: New file.
31396         * lib/unicase/u-casecoll.h: New file.
31397         * modules/unicase/u8-casecoll: New file.
31398
31399         New module 'unicase/u32-casexfrm'.
31400         * lib/unicase/u32-casexfrm.c: New file.
31401         * modules/unicase/u32-casexfrm: New file.
31402
31403         New module 'unicase/u16-casexfrm'.
31404         * lib/unicase/u16-casexfrm.c: New file.
31405         * modules/unicase/u16-casexfrm: New file.
31406
31407         New module 'unicase/u8-casexfrm'.
31408         * lib/unicase/u8-casexfrm.c: New file.
31409         * lib/unicase/u-casexfrm.h: New file.
31410         * modules/unicase/u8-casexfrm: New file.
31411
31412         Tests for module 'unicase/u32-casecmp'.
31413         * modules/unicase/u32-casecmp-tests: New file.
31414         * tests/unicase/test-u32-casecmp.c: New file.
31415
31416         Tests for module 'unicase/u16-casecmp'.
31417         * modules/unicase/u16-casecmp-tests: New file.
31418         * tests/unicase/test-u16-casecmp.c: New file.
31419
31420         Tests for module 'unicase/u8-casecmp'.
31421         * modules/unicase/u8-casecmp-tests: New file.
31422         * tests/unicase/test-u8-casecmp.c: New file.
31423         * tests/unicase/test-casecmp.h: New file.
31424
31425         New module 'unicase/u32-casecmp'.
31426         * lib/unicase/u32-casecmp.c: New file.
31427         * modules/unicase/u32-casecmp: New file.
31428
31429         New module 'unicase/u16-casecmp'.
31430         * lib/unicase/u16-casecmp.c: New file.
31431         * modules/unicase/u16-casecmp: New file.
31432
31433         New module 'unicase/u8-casecmp'.
31434         * lib/unicase/u8-casecmp.c: New file.
31435         * lib/unicase/u-casecmp.h: New file.
31436         * modules/unicase/u8-casecmp: New file.
31437
31438         Tests for module 'unicase/u32-casefold'.
31439         * modules/unicase/u32-casefold-tests: New file.
31440         * tests/unicase/test-u32-casefold.c: New file.
31441
31442         Tests for module 'unicase/u16-casefold'.
31443         * modules/unicase/u16-casefold-tests: New file.
31444         * tests/unicase/test-u16-casefold.c: New file.
31445
31446         Tests for module 'unicase/u8-casefold'.
31447         * modules/unicase/u8-casefold-tests: New file.
31448         * tests/unicase/test-u8-casefold.c: New file.
31449
31450         New module 'unicase/u32-casefold'.
31451         * lib/unicase/u32-casefold.c: New file.
31452         * modules/unicase/u32-casefold: New file.
31453
31454         New module 'unicase/u16-casefold'.
31455         * lib/unicase/u16-casefold.c: New file.
31456         * modules/unicase/u16-casefold: New file.
31457
31458         New module 'unicase/u8-casefold'.
31459         * lib/unicase/u8-casefold.c: New file.
31460         * lib/unicase/u-casefold.h: New file.
31461         * modules/unicase/u8-casefold: New file.
31462
31463         New module 'unicase/tocasefold'.
31464         * lib/unicase/casefold.h: New file.
31465         * lib/unicase/tocasefold.c: New file.
31466         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31467         * modules/unicase/tocasefold: New file.
31468
31469         Tests for module 'unicase/u32-totitle'.
31470         * modules/unicase/u32-totitle-tests: New file.
31471         * tests/unicase/test-u32-totitle.c: New file.
31472
31473         Tests for module 'unicase/u16-totitle'.
31474         * modules/unicase/u16-totitle-tests: New file.
31475         * tests/unicase/test-u16-totitle.c: New file.
31476
31477         Tests for module 'unicase/u8-totitle'.
31478         * modules/unicase/u8-totitle-tests: New file.
31479         * tests/unicase/test-u8-totitle.c: New file.
31480
31481         New module 'unicase/u32-totitle'.
31482         * lib/unicase/u32-totitle.c: New file.
31483         * modules/unicase/u32-totitle: New file.
31484
31485         New module 'unicase/u16-totitle'.
31486         * lib/unicase/u16-totitle.c: New file.
31487         * modules/unicase/u16-totitle: New file.
31488
31489         New module 'unicase/u8-totitle'.
31490         * lib/unicase/u8-totitle.c: New file.
31491         * lib/unicase/u-totitle.h: New file.
31492         * modules/unicase/u8-totitle: New file.
31493
31494         Tests for module 'unicase/u32-tolower'.
31495         * modules/unicase/u32-tolower-tests: New file.
31496         * tests/unicase/test-u32-tolower.c: New file.
31497
31498         Tests for module 'unicase/u16-tolower'.
31499         * modules/unicase/u16-tolower-tests: New file.
31500         * tests/unicase/test-u16-tolower.c: New file.
31501
31502         Tests for module 'unicase/u8-tolower'.
31503         * modules/unicase/u8-tolower-tests: New file.
31504         * tests/unicase/test-u8-tolower.c: New file.
31505
31506         New module 'unicase/u32-tolower'.
31507         * lib/unicase/u32-tolower.c: New file.
31508         * modules/unicase/u32-tolower: New file.
31509
31510         New module 'unicase/u16-tolower'.
31511         * lib/unicase/u16-tolower.c: New file.
31512         * modules/unicase/u16-tolower: New file.
31513
31514         New module 'unicase/u8-tolower'.
31515         * lib/unicase/u8-tolower.c: New file.
31516         * modules/unicase/u8-tolower: New file.
31517
31518         Tests for module 'unicase/u32-toupper'.
31519         * modules/unicase/u32-toupper-tests: New file.
31520         * tests/unicase/test-u32-toupper.c: New file.
31521
31522         Tests for module 'unicase/u16-toupper'.
31523         * modules/unicase/u16-toupper-tests: New file.
31524         * tests/unicase/test-u16-toupper.c: New file.
31525
31526         Tests for module 'unicase/u8-toupper'.
31527         * modules/unicase/u8-toupper-tests: New file.
31528         * tests/unicase/test-u8-toupper.c: New file.
31529
31530         New module 'unicase/u32-toupper'.
31531         * lib/unicase/u32-toupper.c: New file.
31532         * modules/unicase/u32-toupper: New file.
31533
31534         New module 'unicase/u16-toupper'.
31535         * lib/unicase/u16-toupper.c: New file.
31536         * modules/unicase/u16-toupper: New file.
31537
31538         New module 'unicase/u8-toupper'.
31539         * lib/unicase/u8-toupper.c: New file.
31540         * modules/unicase/u8-toupper: New file.
31541
31542         New module 'unicase/u32-casemap'.
31543         * lib/unicase/u32-casemap.c: New file.
31544         * modules/unicase/u32-casemap: New file.
31545
31546         New module 'unicase/u16-casemap'.
31547         * lib/unicase/u16-casemap.c: New file.
31548         * modules/unicase/u16-casemap: New file.
31549
31550         New module 'unicase/u8-casemap'.
31551         * lib/unicase/unicasemap.h: New file.
31552         * lib/unicase/u8-casemap.c: New file.
31553         * lib/unicase/u-casemap.h: New file.
31554         * modules/unicase/u8-casemap: New file.
31555
31556         New module 'unicase/special-casing'.
31557         * lib/unicase/special-casing.h: New file.
31558         * lib/unicase/special-casing.c: New file.
31559         * lib/unicase/special-casing-table.gperf: New file, generated by
31560         gen-uni-tables.c.
31561         * modules/unicase/special-casing: New file.
31562
31563         Tests for module 'unicase/locale-language'.
31564         * modules/unicase/locale-language-tests: New file.
31565         * tests/unicase/test-locale-language.sh: New file.
31566         * tests/unicase/test-locale-language.c: New file.
31567
31568         New module 'unicase/locale-language'.
31569         * lib/unicase/locale-language.c: New file.
31570         * lib/unicase/locale-languages.gperf: New file.
31571         * modules/unicase/locale-language: New file.
31572
31573         Generate more tables for case conversion and case folding.
31574         * lib/gen-uni-tables.c (SCC_*): New enum items.
31575         (struct special_casing_rule): New type.
31576         (casing_rules, num_casing_rules, allocated_casing_rules): New
31577         variables.
31578         (add_casing_rule, fill_casing_rules): New functions.
31579         (struct casefold_rule): New type.
31580         (casefolding_rules, num_casefolding_rules,
31581         allocated_casefolding_rules): New variables.
31582         (fill_casefolding_rules): New function.
31583         (unicode_casefold): New variable.
31584         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31585         sort_casing_rules, output_casing_rules): New functions.
31586         (main): Accept to more arguments: SpecialCasing.txt and
31587         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31588         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31589         Output mapping for casefolding.
31590
31591         * lib/unicase.h: Include stdbool.h, uninorm.h.
31592         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31593         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31594         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31595         arguments.
31596         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31597         resultp arguments.
31598         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31599         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31600         resultp arguments.
31601         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31602         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31603         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31604         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31605         declarations.
31606         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31607
31608 2009-03-08  Bruno Haible  <bruno@clisp.org>
31609
31610         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31611         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31612         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31613         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31614
31615 2009-03-07  Bruno Haible  <bruno@clisp.org>
31616
31617         Adjust u*_normcmp, u*_normcoll API.
31618         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31619         u16_normcoll, u32_normcoll): Change failure conventions.
31620         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31621         errno and return -1.
31622         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31623
31624 2009-03-07  Bruno Haible  <bruno@clisp.org>
31625
31626         Tests for module 'uninorm/u32-normcoll'.
31627         * modules/uninorm/u32-normcoll-tests: New file.
31628         * tests/uninorm/test-u32-normcoll.c: New file.
31629
31630         Tests for module 'uninorm/u16-normcoll'.
31631         * modules/uninorm/u16-normcoll-tests: New file.
31632         * tests/uninorm/test-u16-normcoll.c: New file.
31633
31634         Tests for module 'uninorm/u8-normcoll'.
31635         * modules/uninorm/u8-normcoll-tests: New file.
31636         * tests/uninorm/test-u8-normcoll.c: New file.
31637
31638 2009-03-07  Bruno Haible  <bruno@clisp.org>
31639
31640         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31641         tests/uninorm/test-u32-normcmp.c.
31642         * tests/uninorm/test-u32-normcmp.c: Include it.
31643         (test_nonascii): New function, extracted from main. Add some more
31644         tests.
31645         (main): Invoke test_ascii and test_nonascii.
31646         * modules/uninorm/u32-normcmp-tests (Files): Add
31647         tests/uninorm/test-u32-normcmp.h.
31648         (Depends-on): Remove uninorm/u32-normcmp.
31649
31650         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31651         tests/uninorm/test-u16-normcmp.c.
31652         * tests/uninorm/test-u16-normcmp.c: Include it.
31653         (test_nonascii): New function, extracted from main. Add some more
31654         tests.
31655         (main): Invoke test_ascii and test_nonascii.
31656         * modules/uninorm/u16-normcmp-tests (Files): Add
31657         tests/uninorm/test-u16-normcmp.h.
31658         (Depends-on): Remove uninorm/u16-normcmp.
31659
31660         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31661         tests/uninorm/test-u8-normcmp.c.
31662         * tests/uninorm/test-u8-normcmp.c: Include it.
31663         (test_nonascii): New function, extracted from main. Add some more
31664         tests.
31665         (main): Invoke test_ascii and test_nonascii.
31666         * modules/uninorm/u8-normcmp-tests (Files): Add
31667         tests/uninorm/test-u8-normcmp.h.
31668         (Depends-on): Remove uninorm/u8-normcmp.
31669
31670 2009-03-07  Bruno Haible  <bruno@clisp.org>
31671
31672         New module 'uninorm/u32-normcoll'.
31673         * lib/uninorm/u32-normcoll.c: New file.
31674         * modules/uninorm/u32-normcoll: New file.
31675
31676         New module 'uninorm/u16-normcoll'.
31677         * lib/uninorm/u16-normcoll.c: New file.
31678         * modules/uninorm/u16-normcoll: New file.
31679
31680         New module 'uninorm/u8-normcoll'.
31681         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31682         declarations.
31683         * lib/uninorm/u8-normcoll.c: New file.
31684         * lib/uninorm/u-normcoll.h: New file.
31685         * modules/uninorm/u8-normcoll: New file.
31686
31687         New module 'uninorm/u32-normxfrm'.
31688         * lib/uninorm/u32-normxfrm.c: New file.
31689         * modules/uninorm/u32-normxfrm: New file.
31690
31691         New module 'uninorm/u16-normxfrm'.
31692         * lib/uninorm/u16-normxfrm.c: New file.
31693         * modules/uninorm/u16-normxfrm: New file.
31694
31695         New module 'uninorm/u8-normxfrm'.
31696         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31697         declarations.
31698         * lib/uninorm/u8-normxfrm.c: New file.
31699         * lib/uninorm/u-normxfrm.h: New file.
31700         * modules/uninorm/u8-normxfrm: New file.
31701
31702 2009-03-07  Bruno Haible  <bruno@clisp.org>
31703
31704         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31705         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31706         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31707
31708 2009-03-07  Bruno Haible  <bruno@clisp.org>
31709
31710         New module 'memxfrm'.
31711         * lib/memxfrm.h: New file.
31712         * lib/memxfrm.c: New file.
31713         * modules/memxfrm: New file.
31714
31715 2009-03-07  Bruno Haible  <bruno@clisp.org>
31716
31717         New module 'memcmp2'.
31718         * lib/memcmp2.h: New file.
31719         * lib/memcmp2.c: New file.
31720         * modules/memcmp2: New file.
31721
31722 2009-03-07  Bruno Haible  <bruno@clisp.org>
31723
31724         Tests for module 'uninorm/decomposing-form'.
31725         * modules/uninorm/decomposing-form-tests: New file.
31726         * tests/uninorm/test-decomposing-form.c: New file.
31727
31728         New module 'uninorm/decomposing-form'.
31729         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31730         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31731         Add 'decomposing_variant' field.
31732         * lib/uninorm/decomposing-form.c: New file.
31733         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31734         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31735         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31736         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31737         * modules/uninorm/decomposing-form: New file.
31738         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31739         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31740
31741 2009-03-07  Bruno Haible  <bruno@clisp.org>
31742
31743         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31744         strings.
31745
31746 2009-03-06  Bruno Haible  <bruno@clisp.org>
31747
31748         Tests for module 'uninorm/u32-normcmp'.
31749         * tests/uninorm/test-u32-normcmp.c: New file.
31750         * modules/uninorm/u32-normcmp-tests: New file.
31751
31752         Tests for module 'uninorm/u16-normcmp'.
31753         * tests/uninorm/test-u16-normcmp.c: New file.
31754         * modules/uninorm/u16-normcmp-tests: New file.
31755
31756         Tests for module 'uninorm/u8-normcmp'.
31757         * tests/uninorm/test-u8-normcmp.c: New file.
31758         * modules/uninorm/u8-normcmp-tests: New file.
31759
31760         New module 'uninorm/u32-normcmp'.
31761         * lib/uninorm/u32-normcmp.c: New file.
31762         * modules/uninorm/u32-normcmp: New file.
31763
31764         New module 'uninorm/u16-normcmp'.
31765         * lib/uninorm/u16-normcmp.c: New file.
31766         * modules/uninorm/u16-normcmp: New file.
31767
31768         New module 'uninorm/u8-normcmp'.
31769         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31770         declarations.
31771         * lib/uninorm/u8-normcmp.c: New file.
31772         * lib/uninorm/u-normcmp.h: New file.
31773         * modules/uninorm/u8-normcmp: New file.
31774
31775 2009-03-06  Bruno Haible  <bruno@clisp.org>
31776
31777         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31778         Reported by Eric Blake.
31779
31780 2009-03-06  Eric Blake  <ebb9@byu.net>
31781             Bruno Haible  <bruno@clisp.org>
31782
31783         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31784         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31785         condition.
31786         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31787         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31788         condition.
31789         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31790
31791 2009-03-06  Eric Blake  <ebb9@byu.net>
31792
31793         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31794         to avoid compiler warnings.
31795         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31796
31797 2009-03-05  Bruno Haible  <bruno@clisp.org>
31798
31799         * tests/test-ftell.c (main): Disable test beyond end of file on
31800         FreeMiNT.
31801         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31802
31803 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31804
31805         * lib/filevercmp.c: Move hidden files up in ordering.
31806         * tests/test-filevercmp.c: Add tests for hidden files.
31807
31808 2009-03-04  Bruno Haible  <bruno@clisp.org>
31809
31810         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31811         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31812         AM_CFLAGS.
31813         Reported by Simon Josefsson.
31814
31815 2009-03-03  Bruno Haible  <bruno@clisp.org>
31816
31817         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31818         Reported by Simon Josefsson.
31819
31820         * doc/ld-version-script.texi: Update node reference.
31821
31822 2009-03-03  Bruno Haible  <bruno@clisp.org>
31823
31824         * modules/visibility (License): Change to 'unlimited'.
31825         Suggested by Simon Josefsson.
31826
31827 2009-03-03  Jim Meyering  <meyering@redhat.com>
31828
31829         unlinkdir: cannot_unlink_dir may modify process state
31830         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31831         it's neither thread-safe nor appropriate for use in a library.
31832
31833 2009-03-03  Eric Blake  <ebb9@byu.net>
31834
31835         test-closein: silence test under Darwin
31836         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31837         care if it dies from EPIPE or EBADF.
31838
31839 2009-03-03  Bruno Haible  <bruno@clisp.org>
31840
31841         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31842         earlier.
31843         * doc/visibility.texi: Fix @node and @section.
31844
31845 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31846
31847         * doc/gnulib.texi: Link to sections for ld version script and
31848         visibility.
31849         * doc/visibility.texi: Add @node and @section.
31850         * modules/ld-version-script: New module.
31851         * m4/ld-version-script.m4: New file.
31852         * doc/ld-version-script.texi: New file.
31853
31854 2009-03-02  David Lutterkort  <lutter@redhat.com>
31855
31856         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31857         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31858
31859 2009-03-02  Bruno Haible  <bruno@clisp.org>
31860
31861         * doc/visibility.texi: Mention libtool's -export-symbols option.
31862
31863 2009-03-02  Jim Meyering  <meyering@redhat.com>
31864
31865         announce-gen: new option: --no-print-checksums
31866         * build-aux/announce-gen (usage): Describe it.
31867         (print_checksums): Print a newline here, not in the [*] footnote.
31868         (main): Honor it.
31869
31870 2009-03-01  Bruno Haible  <bruno@clisp.org>
31871
31872         Use socklen_t in the native Windows replacements prototypes.
31873         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31874         instead of 'int'.
31875         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31876         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31877         * modules/getsockopt (Depends-on): Add socklen.
31878         * modules/setsockopt (Depends-on): Add socklen.
31879
31880 2009-03-01  Bruno Haible  <bruno@clisp.org>
31881
31882         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31883         least 4.2.
31884
31885 2009-03-01  Eric Blake  <ebb9@byu.net>
31886             Bruno Haible  <bruno@clisp.org>
31887
31888         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31889         error messages.
31890         * lib/wait-process.c (wait_subprocess): Omit error message about
31891         deadly signal sent to the child of termsigp != NULL.
31892
31893 2009-03-01  Eric Blake  <ebb9@byu.net>
31894
31895         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31896
31897 2009-03-01  Bruno Haible  <bruno@clisp.org>
31898
31899         Avoid a gcc warning.
31900         * tests/test-sched.c (b): Make global.
31901         Reported by Eric Blake.
31902
31903 2009-01-19  Martin Lambers  <marlam@marlam.de>
31904
31905         Provide POSIX semantics for socket timeout options on W32.
31906         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31907         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31908         * modules/setsockopt: Depend on sys_time module for struct timeval.
31909         * modules/getsockopt: Depend on sys_time module for struct timeval.
31910
31911 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31912
31913         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31914         __USE_GNU, for consistency with netdb.in.h.
31915         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31916
31917 2009-03-01  Bruno Haible  <bruno@clisp.org>
31918
31919         More support for FreeMiNT.
31920         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31921         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31922
31923 2009-03-01  Bruno Haible  <bruno@clisp.org>
31924
31925         More support for FreeMiNT.
31926         * lib/fpurge.c (fpurge): Correct last commit.
31927         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31928
31929 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31930
31931         Fix unportable awk script in vc-list-files.
31932         * build-aux/vc-list-files: In the replacement awk script, use
31933         substr with a second argument of 1, not zero.
31934         Report by Simon Josefsson.
31935
31936 2009-02-28  Bruno Haible  <bruno@clisp.org>
31937
31938         More support for FreeMiNT.
31939         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31940         to FreeMiNT today.
31941         * lib/fwriting.c (fwriting): Likewise.
31942         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31943
31944 2009-02-28  Bruno Haible  <bruno@clisp.org>
31945
31946         * tests/test-freadseek.c (main): Disable test beyond end of file on
31947         FreeMiNT.
31948         * tests/test-ftello.c (main): Likewise.
31949         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31950
31951 2009-02-28  Bruno Haible  <bruno@clisp.org>
31952
31953         Add tentative support for FreeMiNT.
31954         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31955         * lib/fpurge.c (fpurge): Likewise.
31956         * lib/freadable.c (freadable): Likewise.
31957         * lib/freading.c (freading): Likewise.
31958         * lib/freadptr.c (freadptr): Likewise.
31959         * lib/freadseek.c (freadptrinc): Likewise.
31960         * lib/fseeko.c (rpl_fseeko): Likewise.
31961         * lib/fseterr.c (fseterr): Likewise.
31962         * lib/fwritable.c (fwritable): Likewise.
31963         * lib/fwriting.c (fwriting): Likewise.
31964         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31965         Hourihane.
31966         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31967
31968 2009-02-28  Bruno Haible  <bruno@clisp.org>
31969
31970         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31971         SIGCHLD.
31972         Reported by Jim Meyering.
31973
31974 2009-02-28  Bruno Haible  <bruno@clisp.org>
31975
31976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31977         Mention the results of these tests on various platforms.
31978         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31979         order.
31980         * doc/posix-functions/printf.texi: Likewise.
31981         * doc/posix-functions/snprintf.texi: Likewise.
31982         * doc/posix-functions/sprintf.texi: Likewise.
31983         * doc/posix-functions/vfprintf.texi: Likewise.
31984         * doc/posix-functions/vprintf.texi: Likewise.
31985         * doc/posix-functions/vsnprintf.texi: Likewise.
31986         * doc/posix-functions/vsprintf.texi: Likewise.
31987         * doc/glibc-functions/obstack_printf.texi: Likewise.
31988         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31989
31990 2009-02-28  Bruno Haible  <bruno@clisp.org>
31991
31992         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31993         Reported by Loïc Minier <lool@dooz.org>.
31994
31995 2009-02-27  Bruno Haible  <bruno@clisp.org>
31996
31997         * gnulib-tool (func_import): Make the sed expression used to create the
31998         sed script for updating the .gitignore file POSIX compliant.
31999         Reported by Eric Blake.
32000
32001 2009-02-27  Bruno Haible  <bruno@clisp.org>
32002
32003         * gnulib-tool (sed): Don't alias as "sed --posix".
32004         Reported by Eric Blake.
32005
32006 2009-02-27  Bruno Haible  <bruno@clisp.org>
32007
32008         Avoid test link errors.
32009         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32010         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32011         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32012         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32014
32015 2009-02-27  Bruno Haible  <bruno@clisp.org>
32016
32017         Avoid spurious "(cached)" in configure output.
32018         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32019         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32020         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32021         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32022         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32023         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32024         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32025         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32026         Reported by Eric Blake.
32027
32028 2009-02-27  Eric Blake  <ebb9@byu.net>
32029
32030         printf: fix regression in previous patch
32031         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32032
32033 2009-02-27  Bruno Haible  <bruno@clisp.org>
32034
32035         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32036         value.
32037         * lib/stdint.in.h: Likewise.
32038         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32039
32040 2009-02-27  Eric Blake  <ebb9@byu.net>
32041
32042         doc: mention more functions added in cygwin 1.7.0
32043         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32044         addition.
32045         * doc/posix-functions/open_wmemstream.texi: Likewise.
32046         * doc/posix-functions/wcsnlen.texi: Likewise.
32047         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32048         * doc/posix-functions/wcstod.texi: Likewise.
32049         * doc/posix-functions/wcstof.texi: Likewise.
32050         * doc/posix-functions/wcstoimax.texi: Likewise.
32051         * doc/posix-functions/wcstok.texi: Likewise.
32052         * doc/posix-functions/wcstoumax.texi: Likewise.
32053
32054         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32056         * doc/posix-functions/fprintf.texi: Update.
32057         * doc/posix-functions/printf.texi: Update.
32058         * doc/posix-functions/snprintf.texi: Update.
32059         * doc/posix-functions/sprintf.texi: Update.
32060         * doc/posix-functions/vfprintf.texi: Update.
32061         * doc/posix-functions/vprintf.texi: Update.
32062         * doc/posix-functions/vsnprintf.texi: Update.
32063         * doc/posix-functions/vsprintf.texi: Update.
32064         * doc/glibc-functions/obstack_printf.texi: Update.
32065         * doc/glibc-functions/obstack_vprintf.texi: Update.
32066
32067 2009-02-26  Eric Blake  <ebb9@byu.net>
32068
32069         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32070         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32071         compilation bug by using runtime conversion.
32072         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32073         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32074         * modules/ceill-tests (Files): Use nan.h.
32075         * modules/floorl-tests (Files): Likewise.
32076         * modules/frexpl-tests (Files): Likewise.
32077         * modules/isnanl-tests (Files): Likewise.
32078         * modules/ldexpl-tests (Files): Likewise.
32079         * modules/roundl-tests (Files): Likewise.
32080         * modules/truncl-tests (Files): Likewise.
32081         * tests/test-ceill.c (main): Use a working NaN.
32082         * tests/test-floorl.c (main): Likewise.
32083         * tests/test-frexpl.c (main): Likewise.
32084         * tests/test-isnan.c (test_long_double): Likewise.
32085         * tests/test-isnanl.h (main): Likewise.
32086         * tests/test-ldexpl.h (main): Likewise.
32087         * tests/test-roundl.h (main): Likewise.
32088         * tests/test-truncl.h (main): Likewise.
32089         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32090
32091 2009-02-26  Eric Blake  <ebb9@byu.net>
32092             Bruno Haible  <bruno@clisp.org>
32093
32094         Work around a *printf bug with %ls on Solaris.
32095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32096         precision is specified, sprintf stops converting the wide string
32097         argument when the number of bytes that have been produced by this
32098         conversion equals or exceeds the precision.
32099         * doc/posix-functions/fprintf.texi: Update.
32100         * doc/posix-functions/printf.texi: Update.
32101         * doc/posix-functions/snprintf.texi: Update.
32102         * doc/posix-functions/sprintf.texi: Update.
32103         * doc/posix-functions/vfprintf.texi: Update.
32104         * doc/posix-functions/vprintf.texi: Update.
32105         * doc/posix-functions/vsnprintf.texi: Update.
32106         * doc/posix-functions/vsprintf.texi: Update.
32107         * doc/glibc-functions/obstack_printf.texi: Update.
32108         * doc/glibc-functions/obstack_vprintf.texi: Update.
32109
32110 2009-02-26  Eric Blake  <ebb9@byu.net>
32111
32112         stdlib: favor compiler check of random.h
32113         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32114         to avoid an ObjC random.h installed by Swarm.
32115
32116 2009-02-26  Bruno Haible  <bruno@clisp.org>
32117
32118         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32119         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32120         Reported by Gary V. Vaughan <gary@gnu.org>.
32121
32122 2009-02-26  Bruno Haible  <bruno@clisp.org>
32123
32124         Fix *printf behaviour regarding the %ls directive.
32125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32126         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32127         NEED_PRINTF_DIRECTIVE_LS.
32128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32129         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32130         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32131         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32132         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32133         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32134         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32135         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32136         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32137         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32138         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32139         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32140         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32143         * doc/posix-functions/fprintf.texi: Update.
32144         * doc/posix-functions/printf.texi: Update.
32145         * doc/posix-functions/snprintf.texi: Update.
32146         * doc/posix-functions/sprintf.texi: Update.
32147         * doc/posix-functions/vfprintf.texi: Update.
32148         * doc/posix-functions/vprintf.texi: Update.
32149         * doc/posix-functions/vsnprintf.texi: Update.
32150         * doc/posix-functions/vsprintf.texi: Update.
32151         * doc/glibc-functions/obstack_printf.texi: Update.
32152         * doc/glibc-functions/obstack_vprintf.texi: Update.
32153         Reported by Eric Blake.
32154
32155 2009-02-25  Bruno Haible  <bruno@clisp.org>
32156
32157         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32158         with known value.
32159         Reported by Gary V. Vaughan <gary@gnu.org>.
32160
32161 2009-02-25  Bruno Haible  <bruno@clisp.org>
32162
32163         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32164         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32165         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32166         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32167         Reported by Gary V. Vaughan <gary@gnu.org>.
32168
32169 2009-02-25  Bruno Haible  <bruno@clisp.org>
32170
32171         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32172         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32173         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32174         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32175         Reported by Gary V. Vaughan <gary@gnu.org>.
32176
32177 2009-02-25  Eric Blake  <ebb9@byu.net>
32178
32179         tests: skip fseek/ftell tests if ungetc is broken
32180         * m4/ungetc.m4: New file.
32181         * modules/fseek-tests: Split test, so ungetc dependency is
32182         separate from rest of test.
32183         * modules/fseeko-tests: Likewise.
32184         * modules/ftell-tests: Likewise.
32185         * modules/ftello-tests: Likewise.
32186         * tests/test-fseek.c (main): Isolate ungetc dependency.
32187         * tests/test-fseeko.c (main): Likewise.
32188         * tests/test-ftell.c (main): Likewise.
32189         * tests/test-ftello.c (main): Likewise.
32190         * tests/test-fseek2.sh: New file.
32191         * tests/test-fseeko2.sh: Likewise.
32192         * tests/test-ftell2.sh: Likewise.
32193         * tests/test-ftello2.sh: Likewise.
32194
32195 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32196
32197         test-getaddrinfo: fix usage of skip return code 77
32198         * tests/test-gettaddrinfo.c: Return skip code 77 only
32199         for first occurance of skip (4x77 is not 77)
32200
32201 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32202
32203         strtod: avoid C99 decl-after-statement
32204         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32205
32206 2009-02-24  Eric Blake  <ebb9@byu.net>
32207
32208         strtod: detect HP-UX 11.31 bug
32209         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32210         Reported by Gary V. Vaughan.
32211
32212 2009-02-23  Bruno Haible  <bruno@clisp.org>
32213
32214         Fix invalid read past end of memory block.
32215         * lib/vasnprintf.c (DCHAR_SET): Define.
32216         (local_wcslen): Define only when needed.
32217         (local_strnlen, local_wcsnlen): New functions.
32218         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32219         directives that involve a conversion ourselves.
32220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32221         wcsnlen, mbrtowc, wcrtomb.
32222         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32223         * tests/test-vasprintf-posix.c (test_function): Likewise.
32224         * tests/test-snprintf-posix.h (test_function): Likewise.
32225         * tests/test-sprintf-posix.h (test_function): Likewise.
32226         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32227
32228 2009-02-22  Bruno Haible  <bruno@clisp.org>
32229
32230         Implement new clarified decomposition of Hangul syllables.
32231         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32232         of type LTV, return only a pairwise decomposition.
32233         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32234         Likewise.
32235         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32236         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32237         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32238
32239 2009-02-22  Bruno Haible  <bruno@clisp.org>
32240
32241         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32242         zero-length results and shrink excess allocated memory.
32243         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32244         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32245         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32246         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32247         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32248         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32249         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32250         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32251         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32252         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32253         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32254         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32255
32256 2009-02-21  Bruno Haible  <bruno@clisp.org>
32257
32258         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32259         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32260         spaces after a period. Put a space between a macro name and its
32261         argument list. Trivial rewordings.
32262         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32263         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32264         (main): Return 0 explicitly.
32265
32266 2009-02-21  Bruno Haible  <bruno@clisp.org>
32267
32268         Tests for module 'uninorm/filter'.
32269         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32270         * modules/uninorm/filter-tests: New file.
32271
32272         New module 'uninorm/filter'.
32273         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32274         uninorm_filter_flush, uninorm_filter_free): New declarations.
32275         * lib/uninorm/uninorm-filter.c: New file.
32276         * modules/uninorm/filter: New file.
32277
32278 2009-02-21  Bruno Haible  <bruno@clisp.org>
32279
32280         Tests for module 'uninorm/nfkc'.
32281         * tests/uninorm/test-nfkc.c: New file.
32282         * tests/uninorm/test-u8-nfkc.c: New file.
32283         * tests/uninorm/test-u16-nfkc.c: New file.
32284         * tests/uninorm/test-u32-nfkc.c: New file.
32285         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32286         * tests/uninorm/test-u32-nfkc-big.c: New file.
32287         * modules/uninorm/nfkc-tests: New file.
32288
32289         New module 'uninorm/nfkc'.
32290         * lib/uninorm/nfkc.c: New file.
32291         * modules/uninorm/nfkc: New file.
32292
32293         Tests for module 'uninorm/nfkd'.
32294         * tests/uninorm/test-nfkd.c: New file.
32295         * tests/uninorm/test-u8-nfkd.c: New file.
32296         * tests/uninorm/test-u16-nfkd.c: New file.
32297         * tests/uninorm/test-u32-nfkd.c: New file.
32298         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32299         * tests/uninorm/test-u32-nfkd-big.c: New file.
32300         * modules/uninorm/nfkd-tests: New file.
32301
32302         New module 'uninorm/nfkd'.
32303         * lib/uninorm/nfkd.c: New file.
32304         * modules/uninorm/nfkd: New file.
32305
32306         Tests for module 'uninorm/nfc'.
32307         * tests/uninorm/test-nfc.c: New file.
32308         * tests/uninorm/test-u8-nfc.c: New file.
32309         * tests/uninorm/test-u16-nfc.c: New file.
32310         * tests/uninorm/test-u32-nfc.c: New file.
32311         * tests/uninorm/test-u32-nfc-big.sh: New file.
32312         * tests/uninorm/test-u32-nfc-big.c: New file.
32313         * modules/uninorm/nfc-tests: New file.
32314
32315         New module 'uninorm/nfc'.
32316         * lib/uninorm/nfc.c: New file.
32317         * modules/uninorm/nfc: New file.
32318
32319         Tests for module 'uninorm/nfd'.
32320         * tests/uninorm/test-nfd.c: New file.
32321         * tests/uninorm/test-u8-nfd.c: New file.
32322         * tests/uninorm/test-u16-nfd.c: New file.
32323         * tests/uninorm/test-u32-nfd.c: New file.
32324         * tests/uninorm/test-u32-nfd-big.sh: New file.
32325         * tests/uninorm/test-u32-nfd-big.c: New file.
32326         * tests/uninorm/test-u32-normalize-big.h: New file.
32327         * tests/uninorm/test-u32-normalize-big.c: New file.
32328         * tests/uninorm/NormalizationTest.txt: New file, created from
32329         Unicode 5.1.0 NormalizationTest.txt.
32330         * modules/uninorm/nfd-tests: New file.
32331
32332         New module 'uninorm/nfd'.
32333         * lib/uninorm/nfd.c: New file.
32334         * modules/uninorm/nfd: New file.
32335
32336         New module 'uninorm/u32-normalize'.
32337         * lib/uninorm/u32-normalize.c: New file.
32338         * modules/uninorm/u32-normalize: New file.
32339
32340         New module 'uninorm/u16-normalize'.
32341         * lib/uninorm/u16-normalize.c: New file.
32342         * modules/uninorm/u16-normalize: New file.
32343
32344         New module 'uninorm/u8-normalize'.
32345         * lib/uninorm/u8-normalize.c: New file.
32346         * lib/uninorm/normalize-internal.h: New file.
32347         * lib/uninorm/u-normalize-internal.h: New file.
32348         * modules/uninorm/u8-normalize: New file.
32349
32350         New module 'uninorm/decompose-internal'.
32351         * lib/uninorm/decompose-internal.c: New file.
32352         * modules/uninorm/decompose-internal: New file.
32353
32354         Tests for module 'uninorm/composition'.
32355         * tests/uninorm/test-composition.c: New file.
32356         * modules/uninorm/composition-tests: New file.
32357
32358         New module 'uninorm/composition'.
32359         * lib/uninorm/composition.c: New file.
32360         * lib/uninorm/composition-table.gperf: New file, generated by
32361         gen-uni-tables.
32362         * modules/uninorm/composition: New file.
32363
32364         Tests for module 'uninorm/compat-decomposition'.
32365         * tests/uninorm/test-compat-decomposition.c: New file.
32366         * modules/uninorm/compat-decomposition-tests: New file.
32367
32368         New module 'uninorm/compat-decomposition'.
32369         * lib/uninorm/decompose-internal.h: New file.
32370         * lib/uninorm/compat-decomposition.c: New file.
32371         * modules/uninorm/compat-decomposition: New file.
32372
32373         Tests for module 'uninorm/canonical-decomposition'.
32374         * tests/uninorm/test-canonical-decomposition.c: New file.
32375         * modules/uninorm/canonical-decomposition-tests: New file.
32376
32377         New module 'uninorm/canonical-decomposition'.
32378         * lib/uninorm/canonical-decomposition.c: New file.
32379         * modules/uninorm/canonical-decomposition: New file.
32380
32381         Tests for module 'uninorm/decomposition'.
32382         * tests/uninorm/test-decomposition.c: New file.
32383         * modules/uninorm/decomposition-tests: New file.
32384
32385         New module 'uninorm/decomposition'.
32386         * lib/uninorm/decomposition.c: New file.
32387         * modules/uninorm/decomposition: New file.
32388
32389         New module 'uninorm/decomposition-table'.
32390         * lib/uninorm/decomposition-table.h: New file.
32391         * lib/uninorm/decomposition-table.c: New file.
32392         * lib/uninorm/decomposition-table1.h: New file, generated by
32393         gen-uni-tables.
32394         * lib/uninorm/decomposition-table2.h: New file, generated by
32395         gen-uni-tables.
32396         * modules/uninorm/decomposition-table: New file.
32397
32398         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32399         (UC_DECOMP_*): New enumeration items.
32400         (get_decomposition): New function.
32401         (struct decomp_table): New type.
32402         (output_decomposition, output_decomposition_tables): New functions.
32403         (unicode_composition_exclusions): New variable.
32404         (fill_composition_exclusions, debug_output_composition_tables): New
32405         functions.
32406         (main): Accept one more argument. Invoke fill_composition_exclusions.
32407         Output decomposition and composition tables.
32408
32409         New module 'uninorm/base'.
32410         * lib/uninorm.h: New file.
32411         * lib/unictype.h: Update comment.
32412         * modules/uninorm/base: New file.
32413
32414 2009-02-21  David Lutterkort  <lutter@redhat.com>
32415
32416         Tests for module 'safe-alloc'.
32417         * tests/test-safe-alloc.c: New file.
32418         * modules/safe-alloc-tests: New file.
32419
32420         New module 'safe-alloc'.
32421         * lib/safe-alloc.h: New file.
32422         * lib/safe-alloc.c: New file.
32423         * m4/safe-alloc.m4: New file.
32424         * modules/safe-alloc: New file.
32425         * doc/safe-alloc.texi: New file.
32426         * doc/gnulib.texi: Include it.
32427         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32428         safe-alloc.
32429
32430 2009-02-18  Bruno Haible  <bruno@clisp.org>
32431
32432         Fix link error on non-glibc systems.
32433         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32434         variable.
32435         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32436
32437 2009-02-18  Jim Meyering  <meyering@redhat.com>
32438
32439         fts: avoid used-uninitialized error due to recent change
32440         * lib/fts.c (fts_read): Guard uses of the new member,
32441         parent->fts_n_dirs_remaining, since it's not relevant for
32442         the parent of a directory specified on the command-line.
32443
32444 2009-02-17  James Youngman  <jay@gnu.org>
32445             Bruno Haible  <bruno@clisp.org>
32446
32447         * m4/include_next.m4: Reformulate comment.
32448
32449 2009-02-16  Jim Meyering  <meyering@redhat.com>
32450
32451         fts: add #if guards so that the fts_lgpl module still builds
32452         * lib/fts.c: Guard just-added hash-table-using parts with
32453         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32454         Reported by Simon Josefsson.
32455
32456 2009-02-15  Bruno Haible  <bruno@clisp.org>
32457
32458         * modules/array-mergesort-tests: New file.
32459         * tests/test-array-mergesort.c: New file.
32460
32461         New module 'array-mergesort'.
32462         * modules/array-mergesort: New file.
32463         * lib/array-mergesort.h: New file.
32464
32465 2009-02-15  Bruno Haible  <bruno@clisp.org>
32466
32467         Fix 2009-02-07 commit.
32468         * lib/gen-uni-tables.c (output_predicate, output_category,
32469         output_combclass, output_bidi_category, output_decimal_digit,
32470         output_digit, output_numeric, output_mirror, output_scripts,
32471         output_ident_category, output_simple_mapping): Fix format directives.
32472         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32473
32474 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32475
32476         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32477         fixes are available from IBM.
32478
32479 2009-02-13  Jim Meyering  <meyering@redhat.com>
32480
32481         fts: arrange not to stat non-directories in more cases
32482         This makes GNU find (when it doesn't need to stat each file)
32483         *much* more efficient at traversing reiserfs file systems.
32484         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32485         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32486         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32487         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32488         (leaf_optimization_applies): New function.
32489         (LCO_hash, LCO_compare): New helper functions.
32490         (link_count_optimize_ok): New function.
32491         (fts_stat): Initialize new member (if dir).
32492         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32493         we've just stat'ed a directory.  Skip the stat call when possible.
32494         ---
32495         Note this AFS-related exchange:
32496         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32497         and note find's pioctl call in find/fstype.c.
32498         But that is necessary only if you want to enable the
32499         optimization for AFS, and for now, I don't.
32500
32501         fts: move a function definition "up" (no semantic change)
32502         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32503         "up" to precede upcoming use of a related function.
32504
32505 2009-02-11  Jim Meyering  <meyering@redhat.com>
32506
32507         fts: correct internal computation of nlinks (optimization-related)
32508         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32509         whether the current entry is a directory, so don't test it.
32510
32511 2009-02-10  Bruno Haible  <bruno@clisp.org>
32512
32513         Tests for module 'uniwbrk/ulc-wordbreaks'.
32514         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32515         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32516         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32517
32518         Tests for module 'uniwbrk/u32-wordbreaks'.
32519         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32520         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32521
32522         Tests for module 'uniwbrk/u16-wordbreaks'.
32523         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32524         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32525
32526         Tests for module 'uniwbrk/u8-wordbreaks'.
32527         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32528         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32529
32530 2009-02-10  Bruno Haible  <bruno@clisp.org>
32531
32532         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32533         property.
32534         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32535         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32536         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32537
32538 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32539
32540         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32541         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32542
32543 2009-02-10  Bruno Haible  <bruno@clisp.org>
32544
32545         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32546         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32547         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32548         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32549         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32550         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32551
32552 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32553
32554         * lib/sockets.h (gl_fd_to_handle): New function.
32555
32556         * tests/test-sockets.c: Call gl_fd_to_handle.
32557
32558 2009-02-09  Bruno Haible  <bruno@clisp.org>
32559
32560         * doc/havelib.texi: Document the conventions on bi-arch systems.
32561
32562 2009-02-08  Bruno Haible  <bruno@clisp.org>
32563
32564         Document the AC_LIB_LINKFLAGS macro.
32565         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32566         * doc/gnulib.texi: Include it.
32567
32568 2009-02-08  Bruno Haible  <bruno@clisp.org>
32569
32570         Fix wrong order of sections, compared to TOC.
32571         * doc/gnulib.texi: Include relocatable-maint.texi after the
32572         "Regular expressions" node, not before.
32573
32574 2009-02-08  Bruno Haible  <bruno@clisp.org>
32575
32576         Tests for module 'unicase/totitle'.
32577         * modules/unicase/totitle-tests: New file.
32578
32579         Tests for module 'unicase/tolower'.
32580         * modules/unicase/tolower-tests: New file.
32581
32582         Tests for module 'unicase/toupper'.
32583         * modules/unicase/toupper-tests: New file.
32584         * tests/unicase/test-mapping-part1.h: New file.
32585         * tests/unicase/test-mapping-part2.h: New file.
32586
32587         New module 'unicase/totitle'.
32588         * modules/unicase/totitle: New file.
32589         * lib/unicase/totitle.c: New file.
32590
32591         New module 'unicase/tolower'.
32592         * modules/unicase/tolower: New file.
32593         * lib/unicase/tolower.c: New file.
32594
32595         New module 'unicase/toupper'.
32596         * modules/unicase/toupper: New file.
32597         * lib/unicase/toupper.c: New file.
32598         * lib/unicase/simple-mapping.h: New file.
32599
32600         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32601         (mapping_table): New structure.
32602         (output_simple_mapping): New function.
32603         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32604         * modules/gen-uni-tables (Description): Update.
32605         * lib/unicase/toupper.h: New file, automatically generated by
32606         gen-uni-tables.
32607         * lib/unicase/tolower.h: New file, automatically generated by
32608         gen-uni-tables.
32609         * lib/unicase/totitle.h: New file, automatically generated by
32610         gen-uni-tables.
32611         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32612         gen-uni-tables.
32613         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32614         gen-uni-tables.
32615         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32616         gen-uni-tables.
32617
32618         New module 'unicase/base'.
32619         * modules/unicase/base: New file.
32620         * lib/unicase.h: New file.
32621
32622 2009-02-08  Bruno Haible  <bruno@clisp.org>
32623
32624         New module 'uniwbrk/ulc-wordbreaks'.
32625         * modules/uniwbrk/ulc-wordbreaks: New file.
32626         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32627
32628         New module 'uniwbrk/u32-wordbreaks'.
32629         * modules/uniwbrk/u32-wordbreaks: New file.
32630         * lib/uniwbrk/u32-wordbreaks.c: New file.
32631
32632         New module 'uniwbrk/u16-wordbreaks'.
32633         * modules/uniwbrk/u16-wordbreaks: New file.
32634         * lib/uniwbrk/u16-wordbreaks.c: New file.
32635
32636         New module 'uniwbrk/u8-wordbreaks'.
32637         * modules/uniwbrk/u8-wordbreaks: New file.
32638         * lib/uniwbrk/u8-wordbreaks.c: New file.
32639         * lib/uniwbrk/u-wordbreaks.h: New file.
32640
32641         New module 'uniwbrk/table'.
32642         * modules/uniwbrk/table: New file.
32643         * lib/uniwbrk/wbrktable.h: New file.
32644         * lib/uniwbrk/wbrktable.c: New file.
32645
32646         New module 'uniwbrk/wordbreak-property'.
32647         * modules/uniwbrk/wordbreak-property: New file.
32648         * lib/uniwbrk/wordbreak-property.c: New file.
32649
32650         * lib/gen-uni-tables.c (WBP_*): New enum items.
32651         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32652         (unicode_org_wbp): New variable.
32653         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32654         New functions.
32655         (wbp_table): New structure.
32656         (output_wbp, output_wbrk_tables): New functions.
32657         (main): Accept additional argument. Invoke fill_org_wbp,
32658         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32659         output_wbrk_tables.
32660         * modules/gen-uni-tables (Description): Update.
32661         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32662         gen-uni-tables.
32663
32664         New module 'uniwbrk/base'.
32665         * modules/uniwbrk/base: New file.
32666         * lib/uniwbrk.h: New file.
32667
32668 2009-02-08  Bruno Haible  <bruno@clisp.org>
32669
32670         Update to Unicode 5.1.0.
32671         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32672         U+2185..U+2188.
32673         (is_property_default_ignorable_code_point): Don't include characters
32674         of category Cc or Cs and not-a-characters.
32675         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32676         U+0D79, U+109E, U+109F, U+A60C.
32677         * lib/unictype/bidi_of.h: Regenerated.
32678         * lib/unictype/blocks.h: Regenerated.
32679         * lib/unictype/categ_C.h: Regenerated.
32680         * lib/unictype/categ_Cf.h: Regenerated.
32681         * lib/unictype/categ_Cn.h: Regenerated.
32682         * lib/unictype/categ_L.h: Regenerated.
32683         * lib/unictype/categ_Ll.h: Regenerated.
32684         * lib/unictype/categ_Lm.h: Regenerated.
32685         * lib/unictype/categ_Lo.h: Regenerated.
32686         * lib/unictype/categ_Lu.h: Regenerated.
32687         * lib/unictype/categ_M.h: Regenerated.
32688         * lib/unictype/categ_Mc.h: Regenerated.
32689         * lib/unictype/categ_Me.h: Regenerated.
32690         * lib/unictype/categ_Mn.h: Regenerated.
32691         * lib/unictype/categ_N.h: Regenerated.
32692         * lib/unictype/categ_Nd.h: Regenerated.
32693         * lib/unictype/categ_Nl.h: Regenerated.
32694         * lib/unictype/categ_No.h: Regenerated.
32695         * lib/unictype/categ_P.h: Regenerated.
32696         * lib/unictype/categ_Pd.h: Regenerated.
32697         * lib/unictype/categ_Pe.h: Regenerated.
32698         * lib/unictype/categ_Pf.h: Regenerated.
32699         * lib/unictype/categ_Pi.h: Regenerated.
32700         * lib/unictype/categ_Po.h: Regenerated.
32701         * lib/unictype/categ_Ps.h: Regenerated.
32702         * lib/unictype/categ_S.h: Regenerated.
32703         * lib/unictype/categ_Sk.h: Regenerated.
32704         * lib/unictype/categ_Sm.h: Regenerated.
32705         * lib/unictype/categ_So.h: Regenerated.
32706         * lib/unictype/categ_of.h: Regenerated.
32707         * lib/unictype/combining.h: Regenerated.
32708         * lib/unictype/ctype_alnum.h: Regenerated.
32709         * lib/unictype/ctype_alpha.h: Regenerated.
32710         * lib/unictype/ctype_graph.h: Regenerated.
32711         * lib/unictype/ctype_lower.h: Regenerated.
32712         * lib/unictype/ctype_print.h: Regenerated.
32713         * lib/unictype/ctype_punct.h: Regenerated.
32714         * lib/unictype/ctype_upper.h: Regenerated.
32715         * lib/unictype/decdigit.h: Regenerated.
32716         * lib/unictype/digit.h: Regenerated.
32717         * lib/unictype/mirror.h: Regenerated.
32718         * lib/unictype/numeric.h: Regenerated.
32719         * lib/unictype/pr_alphabetic.h: Regenerated.
32720         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32721         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32722         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32723         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32724         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32725         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32726         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32727         * lib/unictype/pr_combining.h: Regenerated.
32728         * lib/unictype/pr_dash.h: Regenerated.
32729         * lib/unictype/pr_decimal_digit.h: Regenerated.
32730         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32731         * lib/unictype/pr_deprecated.h: Regenerated.
32732         * lib/unictype/pr_diacritic.h: Regenerated.
32733         * lib/unictype/pr_extender.h: Regenerated.
32734         * lib/unictype/pr_format_control.h: Regenerated.
32735         * lib/unictype/pr_grapheme_base.h: Regenerated.
32736         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32737         * lib/unictype/pr_grapheme_link.h: Regenerated.
32738         * lib/unictype/pr_id_continue.h: Regenerated.
32739         * lib/unictype/pr_id_start.h: Regenerated.
32740         * lib/unictype/pr_ideographic.h: Regenerated.
32741         * lib/unictype/pr_ignorable_control.h: Regenerated.
32742         * lib/unictype/pr_lowercase.h: Regenerated.
32743         * lib/unictype/pr_math.h: Regenerated.
32744         * lib/unictype/pr_numeric.h: Regenerated.
32745         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32746         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32747         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32748         * lib/unictype/pr_other_id_continue.h: Regenerated.
32749         * lib/unictype/pr_other_lowercase.h: Regenerated.
32750         * lib/unictype/pr_other_math.h: Regenerated.
32751         * lib/unictype/pr_punctuation.h: Regenerated.
32752         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32753         * lib/unictype/pr_soft_dotted.h: Regenerated.
32754         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32755         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32756         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32757         * lib/unictype/pr_uppercase.h: Regenerated.
32758         * lib/unictype/pr_xid_continue.h: Regenerated.
32759         * lib/unictype/pr_xid_start.h: Regenerated.
32760         * lib/unictype/pr_zero_width.h: Regenerated.
32761         * lib/unictype/scripts.h: Regenerated.
32762         * lib/unictype/scripts_byname.gperf: Regenerated.
32763         * lib/unictype/sy_java_ident.h: Regenerated.
32764         * lib/unilbrk/lbrkprop1.h: Regenerated.
32765         * lib/unilbrk/lbrkprop2.h: Regenerated.
32766         * tests/unictype/test-categ_C.c: Regenerated.
32767         * tests/unictype/test-categ_Cf.c: Regenerated.
32768         * tests/unictype/test-categ_Cn.c: Regenerated.
32769         * tests/unictype/test-categ_L.c: Regenerated.
32770         * tests/unictype/test-categ_Ll.c: Regenerated.
32771         * tests/unictype/test-categ_Lm.c: Regenerated.
32772         * tests/unictype/test-categ_Lo.c: Regenerated.
32773         * tests/unictype/test-categ_Lu.c: Regenerated.
32774         * tests/unictype/test-categ_M.c: Regenerated.
32775         * tests/unictype/test-categ_Mc.c: Regenerated.
32776         * tests/unictype/test-categ_Me.c: Regenerated.
32777         * tests/unictype/test-categ_Mn.c: Regenerated.
32778         * tests/unictype/test-categ_N.c: Regenerated.
32779         * tests/unictype/test-categ_Nd.c: Regenerated.
32780         * tests/unictype/test-categ_Nl.c: Regenerated.
32781         * tests/unictype/test-categ_No.c: Regenerated.
32782         * tests/unictype/test-categ_P.c: Regenerated.
32783         * tests/unictype/test-categ_Pd.c: Regenerated.
32784         * tests/unictype/test-categ_Pe.c: Regenerated.
32785         * tests/unictype/test-categ_Pf.c: Regenerated.
32786         * tests/unictype/test-categ_Pi.c: Regenerated.
32787         * tests/unictype/test-categ_Po.c: Regenerated.
32788         * tests/unictype/test-categ_Ps.c: Regenerated.
32789         * tests/unictype/test-categ_S.c: Regenerated.
32790         * tests/unictype/test-categ_Sk.c: Regenerated.
32791         * tests/unictype/test-categ_Sm.c: Regenerated.
32792         * tests/unictype/test-categ_So.c: Regenerated.
32793         * tests/unictype/test-ctype_alnum.c: Regenerated.
32794         * tests/unictype/test-ctype_alpha.c: Regenerated.
32795         * tests/unictype/test-ctype_graph.c: Regenerated.
32796         * tests/unictype/test-ctype_lower.c: Regenerated.
32797         * tests/unictype/test-ctype_print.c: Regenerated.
32798         * tests/unictype/test-ctype_punct.c: Regenerated.
32799         * tests/unictype/test-ctype_upper.c: Regenerated.
32800         * tests/unictype/test-decdigit.h: Regenerated.
32801         * tests/unictype/test-digit.h: Regenerated.
32802         * tests/unictype/test-numeric.h: Regenerated.
32803         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32804         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32805         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32806         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32807         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32808         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32809         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32810         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32811         * tests/unictype/test-pr_combining.c: Regenerated.
32812         * tests/unictype/test-pr_dash.c: Regenerated.
32813         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32814         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32815         * tests/unictype/test-pr_deprecated.c: Regenerated.
32816         * tests/unictype/test-pr_diacritic.c: Regenerated.
32817         * tests/unictype/test-pr_extender.c: Regenerated.
32818         * tests/unictype/test-pr_format_control.c: Regenerated.
32819         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32820         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32821         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32822         * tests/unictype/test-pr_id_continue.c: Regenerated.
32823         * tests/unictype/test-pr_id_start.c: Regenerated.
32824         * tests/unictype/test-pr_ideographic.c: Regenerated.
32825         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32826         * tests/unictype/test-pr_lowercase.c: Regenerated.
32827         * tests/unictype/test-pr_math.c: Regenerated.
32828         * tests/unictype/test-pr_numeric.c: Regenerated.
32829         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32830         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32831         Regenerated.
32832         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32833         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32834         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32835         * tests/unictype/test-pr_other_math.c: Regenerated.
32836         * tests/unictype/test-pr_punctuation.c: Regenerated.
32837         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32838         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32839         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32840         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32841         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32842         * tests/unictype/test-pr_uppercase.c: Regenerated.
32843         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32844         * tests/unictype/test-pr_xid_start.c: Regenerated.
32845         * tests/unictype/test-pr_zero_width.c: Regenerated.
32846
32847         Update to Unicode 5.1.0.
32848         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32849         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32850         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32851         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32852         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32853         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32854         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32855         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32856         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32857         (nonspacing_table_ind): Update.
32858         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32859
32860         Update to Unicode 5.1.0.
32861         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32862         code transform.
32863         * lib/uniname/uniname.c (unicode_character_name,
32864         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32865         * lib/uniname/uninames.h: Regenerated.
32866         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32867
32868 2009-02-07  Bruno Haible  <bruno@clisp.org>
32869
32870         Merge gen-ctype and gen-lbrk into a single program.
32871         * lib/gen-uni-tables.c: New file, incorporating
32872         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32873         Add directory prefixes to the names of the generated files.
32874         * lib/unictype/gen-ctype.c: Remove file.
32875         * lib/unilbrk/gen-lbrk.c: Remove file.
32876         * modules/gen-uni-tables: New file.
32877         * modules/unictype/gen-ctype: Remove file.
32878         * modules/unilbrk/gen-lbrk: Remove file.
32879
32880 2009-02-07  Bruno Haible  <bruno@clisp.org>
32881
32882         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32883
32884         New module 'unistr/u32-strcoll'.
32885         * modules/unistr/u32-strcoll: New file.
32886         * lib/unistr/u32-strcoll.c: New file.
32887
32888         New module 'unistr/u16-strcoll'.
32889         * modules/unistr/u16-strcoll: New file.
32890         * lib/unistr/u16-strcoll.c: New file.
32891
32892         New module 'unistr/u8-strcoll'.
32893         * modules/unistr/u8-strcoll: New file.
32894         * lib/unistr/u8-strcoll.c: New file.
32895         * lib/unistr/u-strcoll.h: New file.
32896
32897 2009-02-07  Bruno Haible  <bruno@clisp.org>
32898
32899         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32900         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32901         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32902         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32903         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32904         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32905
32906 2009-02-07  Bruno Haible  <bruno@clisp.org>
32907
32908         Make 64-bit clean.
32909         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32910         output_combclass, output_bidi_category, output_decimal_digit,
32911         output_digit, output_numeric, output_mirror, output_scripts,
32912         output_ident_category): Use proper width specifier in format strings.
32913
32914 2009-02-07  Bruno Haible  <bruno@clisp.org>
32915
32916         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32917         failure behaviour.
32918
32919 2009-02-07  Jim Meyering  <meyering@redhat.com>
32920
32921         regex: avoid compilation failure with upcoming gcc-4.4
32922         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32923         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32924         "... error: integer overflow in preprocessor expression".
32925
32926 2009-02-05  Ben Pfaff  <blp@gnu.org>
32927
32928         Fix link errors on Windows when close module is used.
32929         * modules/close: Add $(LIB_CLOSE) to Link section.
32930         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32931         $(LIB_CLOSE) on Windows.
32932
32933 2009-02-05  Jim Meyering  <meyering@redhat.com>
32934
32935         still avoid unused-parameter warnings, but do it cleanly
32936         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32937         (get_fs_usage): Cast to void instead.
32938         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32939         (dev_from_mount_options, read_file_system_list): Cast to void.
32940         Prompted by Bruno Haible.
32941
32942 2009-02-04  Jim Meyering  <meyering@redhat.com>
32943
32944         fsusage.c: correct copyright year
32945         * lib/fsusage.c: Reflect year in which the change is pushed into
32946
32947         avoid misc. warnings
32948         * lib/fsusage.c (UNUSED_PARAM): Define.
32949         (get_fs_usage): Mark parameter "disk" as unused.
32950         * lib/getugroups.c (getgrent): Use "void" in prototype.
32951         * lib/mountlist.c: Mark unused parameters.
32952         (read_file_system_list): Declare a local with "const".
32953         * lib/nanosleep.c (getnow): Declare static.
32954         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32955
32956         dirfd: set errno upon failure
32957         * lib/dirfd.c: Include <errno.h>.
32958         Set errno to ENOTSUP when returning -1.
32959         * modules/dirfd (Depends-on): Add errno.
32960         Suggested by John Kodis <kodis@comcast.net>.
32961
32962 2009-02-01  Bruno Haible  <bruno@clisp.org>
32963
32964         Don't assume sizeof (long) >= sizeof (void *).
32965         * lib/memcmp.c: Include stdint.h.
32966         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32967         srcp2 to 'const byte *'.
32968         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32969         types to uintptr_t.
32970         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32971         * modules/memcmp (Depends-on): Add stdint.
32972         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32973
32974 2009-01-30  Eric Blake  <ebb9@byu.net>
32975
32976         fix more require-before-expand issues
32977         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32978         expand, AC_PROG_AWK.
32979         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32980
32981 2009-01-28  Eric Blake  <ebb9@byu.net>
32982
32983         version-etc: use consistent URL formatting
32984         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32985         Improve formatting.  Use fputs for string without %.
32986
32987 2009-01-28  Jim Meyering  <meyering@redhat.com>
32988
32989         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32990         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32991         "underquoted definition of NAME" from autoconf-2.59.
32992
32993 2009-01-28  Bruno Haible  <bruno@clisp.org>
32994
32995         * doc/gnulib.texi: Add "Obsolete modules" to index.
32996
32997 2009-01-28  Jim Meyering  <meyering@redhat.com>
32998
32999         useless-if-before-free: recognize more variants
33000         * build-aux/useless-if-before-free: Also recognize e.g.,
33001         if (NULL != p) free (p);
33002
33003 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33004
33005         test-getaddrinfo: skip (don't fail) this test when there's no network
33006         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33007         on the presumption that it means you lack network access.
33008
33009 2009-01-26  Jim Meyering  <meyering@redhat.com>
33010
33011         fflush: avoid warnings on modern systems
33012         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33013         pos and result, into scopes where they're used.
33014
33015 2009-01-26  Eric Blake  <ebb9@byu.net>
33016
33017         Silence warning reintroduced by recent extensions patch.
33018         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33019         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33020         autoconf.
33021
33022         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33023         * m4/00gnulib.m4: New file.
33024         * gnulib-tool (func_get_filelist): Always use it.
33025         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33026         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33027
33028 2009-01-25  Bruno Haible  <bruno@clisp.org>
33029
33030         Make test-quotearg work on MacOS X and AIX.
33031         * tests/test-quotearg.sh: New file.
33032         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33033         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33034         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33035         include <libintl.h>.
33036         (fake_locale): Remove variable.
33037         (gettext, dgettext, dcgettext): Remove functions.
33038         (main): Instead of setting a fake locale, set a real locale. Call
33039         textdomain and bindtextdomain.
33040         * modules/quotearg-tests (Files): Add the new files.
33041         (Depends-on): Add gettext, setenv, unsetenv.
33042         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33043         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33044         Augment TESTS_ENVIRONMENT.
33045
33046 2009-01-25  Bruno Haible  <bruno@clisp.org>
33047
33048         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33049         fr_FR.ISO8859-1 locale on MacOS X.
33050         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33051         ja_JP.eucJP locale on MacOS X.
33052         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33053         zh_CN.GB18030 locale on MacOS X.
33054
33055 2009-01-25  Bruno Haible  <bruno@clisp.org>
33056
33057         Avoid link errors on MacOS X 10.3.
33058         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33059         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33060
33061 2009-01-25  Bruno Haible  <bruno@clisp.org>
33062
33063         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33064         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33065         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33066         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33067         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33068         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33069         posix_spawnattr_init, posix_spawnattr_setsigmask,
33070         posix_spawnattr_setflags, posix_spawnattr_destroy.
33071
33072         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33073         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33074         * modules/execute (Files): Remove m4/posix_spawn.m4.
33075         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33076         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33077         posix_spawnattr_init, posix_spawnattr_setsigmask,
33078         posix_spawnattr_setflags, posix_spawnattr_destroy.
33079
33080 2009-01-25  Bruno Haible  <bruno@clisp.org>
33081
33082         * lib/glthread/threadlib.c: Include <stdlib.h>.
33083
33084 2009-01-25  Bruno Haible  <bruno@clisp.org>
33085
33086         * lib/glthread/threadlib.c (dummy): New declaration.
33087
33088 2009-01-25  Bruno Haible  <bruno@clisp.org>
33089
33090         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33091         multibyte characters also for the GB18030 encoding. Don't crash when
33092         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33093
33094 2009-01-25  Bruno Haible  <bruno@clisp.org>
33095
33096         Avoid redefining 'struct random_data' on OSF/1 5.1.
33097         * lib/stdlib.in.h: Include <random.h> if it exists.
33098         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33099         HAVE_RANDOM_H. Include <random.h> when testing whether
33100         'struct random_data' exists.
33101         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33102
33103 2009-01-25  Bruno Haible  <bruno@clisp.org>
33104
33105         Don't install charset.alias on MacOS X >= 10.3.
33106         * lib/localcharset.c (DARWIN7): New macro.
33107         (get_charset_aliases): Hardcode the result for Darwin7.
33108         * modules/localcharset (install-exec-local): Don't install
33109         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33110
33111 2009-01-25  Bruno Haible  <bruno@clisp.org>
33112
33113         Don't install charset.alias on mingw and Cygwin.
33114         * modules/localcharset (install-exec-local): Don't install
33115         charset.alias on mingw and Cygwin, if the file does not yet exist.
33116         The result for these platforms is hardcoded in localcharset.c.
33117
33118 2009-01-25  Bruno Haible  <bruno@clisp.org>
33119
33120         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33121         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33122         before requiring AC_USE_SYSTEM_EXTENSIONS.
33123
33124 2009-01-25  Jim Meyering  <meyering@redhat.com>
33125
33126         c-strtod: avoid warnings
33127         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33128         "assignment discards qualifiers from pointer target type" warnings.
33129
33130 2009-01-24  Bruno Haible  <bruno@clisp.org>
33131
33132         Add support for non-UTF-8 locales on MacOS X.
33133         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33134         canonical encodings. For Darwin 7 and newer, don't map traditional
33135         encodings to UTF-8.
33136         Reported by Vincent Lefevre <vincent@vinc17.org>
33137         at <http://savannah.gnu.org/bugs/?25235>.
33138
33139 2009-01-24  Bruno Haible  <bruno@clisp.org>
33140
33141         * doc/gnulib.texi (Obsolete modules): New section.
33142         Reported by Mike Frysinger <vapier@gentoo.org>.
33143
33144 2009-01-24  Bruno Haible  <bruno@clisp.org>
33145
33146         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33147         (%.dvi): New rule.
33148
33149 2009-01-24  Bruno Haible  <bruno@clisp.org>
33150
33151         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33152         Reported by Eric Blake.
33153
33154 2009-01-24  Bruno Haible  <bruno@clisp.org>
33155
33156         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33157         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33158         Reported by Gary V. Vaughan <gary@gnu.org>.
33159
33160 2009-01-24  Bruno Haible  <bruno@clisp.org>
33161
33162         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33163
33164 2009-01-23  Bruno Haible  <bruno@clisp.org>
33165
33166         Make c-strtod, c-strtold usable in libraries.
33167         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33168         (C_STRTOD): Call strdup instead of xstrdup.
33169         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33170         * modules/c-strtold (Depends-on): Likewise.
33171         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33172         * NEWS: Mention the change.
33173         Reported by Michael Gold <mgold@ncf.ca>.
33174
33175 2009-01-23  Jim Meyering  <meyering@redhat.com>
33176
33177         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33178         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33179         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33180
33181 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33182
33183         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33184         GNU CoreUtils.
33185         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33186         * modules/version-etc (Description): Update.
33187
33188 2009-01-22  Bruno Haible  <bruno@clisp.org>
33189
33190         Cache the C locale object.
33191         * lib/c-strtod.c (c_locale_cache): New variable.
33192         (c_locale): New function.
33193         (C_STRTOD): Use it, and don't call freelocale.
33194         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33195         Suggested by Paolo Bonzini.
33196
33197 2009-01-21  Bruno Haible  <bruno@clisp.org>
33198
33199         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33200         conditions other than overflow.
33201
33202 2009-01-21  Bruno Haible  <bruno@clisp.org>
33203
33204         * lib/c-strtod.c: Include errno.h.
33205         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33206         value from STRTOD_L and STRTOD.
33207
33208 2009-01-21  Bruno Haible  <bruno@clisp.org>
33209         and Jim Meyering  <meyering@redhat.com>
33210
33211         nanosleep: skip configure test (fail it) for apple universal builds
33212         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33213         universal builds, assume that nanosleep does not work.
33214         * modules/nanosleep (Depends-on): Add multiarch.
33215
33216         mktime: skip configure test (fail it) for apple universal builds
33217         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33218         universal builds, assume that mktime does not work.
33219         * modules/mktime (Depends-on): Add multiarch.
33220
33221 2009-01-21  Eric Blake  <ebb9@byu.net>
33222
33223         multiarch: avoid expand-before-require warning
33224         * modules/multiarch (configure.ac): Require, rather than expand,
33225         gl_MULTIARCH.
33226         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33227         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33228         enforce that all clients require it.  Partial reversion of
33229         2008-12-29 patch.
33230
33231         error: avoid expand-before-require warning
33232         * modules/errno (configure.ac): Require, rather than expand,
33233         gl_HEADER_ERRNO_H.
33234         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33235         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33236         enforce that all clients require it.
33237
33238         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33239         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33240         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33241         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33242
33243 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33244
33245         Revert:
33246         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33247
33248         regex: do not depend on obsolete modules.
33249         * modules/regex: Remove memcmp and memmove.
33250
33251 2009-01-20  Bruno Haible  <bruno@clisp.org>
33252
33253         Make the 'link' module link on Windows NT 4.
33254         * lib/link.c (_WIN32_WINNT): Don't define.
33255         (CreateHardLinkFuncType): New type.
33256         (CreateHardLinkFunc, initialized): New variables.
33257         (initialize): New function.
33258         (link): Invoke CreateHardLink indirectly through the function pointer.
33259
33260 2009-01-20  Bruno Haible  <bruno@clisp.org>
33261
33262         Fix compilation failure on mingw.
33263         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33264
33265 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33266
33267         * doc/c-strtod.texi: Mention a couple of restrictions.
33268
33269 2009-01-20  Jim Meyering  <meyering@redhat.com>
33270
33271         gettimeofday: move more declarations out of functions
33272         * lib/gettimeofday.c: Move extern declarations of tzset and
33273         gmtime out of containing functions.  Prompted by Bruno Haible.
33274
33275 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33276
33277         regex: do not depend on obsolete modules.
33278         * modules/regex: Remove memcmp and memmove.
33279
33280 2009-01-19  Bruno Haible  <bruno@clisp.org>
33281
33282         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33283         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33284         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33285         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33286         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33287
33288 2009-01-19  Bruno Haible  <bruno@clisp.org>
33289
33290         * tests/test-link.c: Include <errno.h>.
33291         (main): Exit with code 77 when a hard link cannot be created due to
33292         the file system.
33293         * tests/test-link.sh: Skip test when a hard link cannot be created due
33294         to the file system.
33295         Suggested by Eric Blake.
33296
33297 2009-01-19  Martin Lambers  <marlam@marlam.de>
33298
33299         * modules/link-tests: New file.
33300         * tests/test-link.sh: New file.
33301         * tests/test-link.c: New file.
33302
33303 2009-01-19  Eric Blake  <ebb9@byu.net>
33304
33305         doc: mention another function added in cygwin 1.7.0
33306         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33307         Another new function in cygwin 1.7.
33308
33309 2009-01-19  Bruno Haible  <bruno@clisp.org>
33310
33311         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33312         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33313         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33314         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33315         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33316         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33317         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33318         * m4/md4.m4 (gl_MD4): Likewise.
33319         * m4/md5.m4 (gl_MD5): Likewise.
33320         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33321         * m4/sha1.m4 (gl_SHA1): Likewise.
33322         * m4/sha256.m4 (gl_SHA256): Likewise.
33323         * m4/sha512.m4 (gl_SHA512): Likewise.
33324
33325 2009-01-19  Bruno Haible  <bruno@clisp.org>
33326
33327         * modules/uniname/uniname-tests (Depends-on): Add progname.
33328         * tests/uniname/test-uninames.c: Include progname.h.
33329         (main): Call set_program_name.
33330
33331         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33332         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33333         (main): Call set_program_name.
33334
33335         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33336         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33337         (main): Call set_program_name.
33338
33339         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33340         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33341         (main): Call set_program_name.
33342
33343         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33344         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33345         (main): Call set_program_name.
33346
33347         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33348         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33349         (main): Call set_program_name.
33350
33351         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33352         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33353         (main): Call set_program_name.
33354
33355         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33356         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33357         (main): Call set_program_name.
33358
33359         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33360         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33361         (main): Call set_program_name.
33362
33363 2009-01-19  Eric Blake  <ebb9@byu.net>
33364
33365         test-unistd: test previous patch
33366         * tests/test-unistd.c: Test *_FILENO macros.
33367
33368         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33369         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33370         Guarantee a definition.
33371         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33372         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33373         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33374         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33375         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33376         Likewise.
33377         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33378         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33379         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33380         Likewise.
33381         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33382         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33383         (STDERR_FILENO): Likewise.
33384         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33385         (STDERR_FILENO): Likewise.
33386         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33387         (STDERR_FILENO): Likewise.
33388         Reported by Elbert Pol.
33389
33390 2009-01-19  Eric Blake  <ebb9@byu.net>
33391
33392         doc: mention more functions added in cygwin 1.7.0
33393         * doc/posix-functions/abort.texi (abort): Update wording related
33394         to cygwin.
33395         * doc/posix-functions/daylight.texi (daylight): Likewise.
33396         * doc/posix-functions/optarg.texi (optarg): Likewise.
33397         * doc/posix-functions/optarg.texi (opterr): Likewise.
33398         * doc/posix-functions/optarg.texi (optind): Likewise.
33399         * doc/posix-functions/optarg.texi (optopt): Likewise.
33400         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33401         worked in 1.5.x, and was withdrawn in 1.7.
33402         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33403         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33404         cygwin versions.
33405         * doc/posix-functions/perror.texi (perror): Likewise.
33406         * doc/posix-functions/printf.texi (printf): Likewise.
33407         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33408         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33409         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33410         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33411         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33412         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33413         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33414         Likewise.
33415         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33416         Likewise.
33417         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33418         this function.
33419         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33420         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33421         Likewise.
33422         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33423         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33424         * doc/posix-functions/confstr.texi (confstr): Likewise.
33425         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33426         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33427         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33428         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33429         * doc/posix-functions/fputws.texi (fputws): Likewise.
33430         * doc/posix-functions/fwide.texi (fwide): Likewise.
33431         * doc/posix-functions/getwc.texi (getwc): Likewise.
33432         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33433         * doc/posix-functions/putwc.texi (putwc): Likewise.
33434         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33435         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33436         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33437         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33438         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33439         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33440         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33441         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33442         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33443         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33444         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33445
33446 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33447
33448         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33449         * lib/ioctl.c: Include <sys/ioctl.h>.
33450
33451 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33452
33453         * modules/getdate-tests (Depends-on): Add progname.
33454         * tests/test-getdate.c: Use progname module, to avoid link errors
33455         on non-glibc systems.
33456
33457 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33458
33459         * modules/filenamecat-tests (Depends-on): Add progname.
33460         * modules/fstrcmp-tests (Depends-on): Likewise.
33461
33462         * tests/test-filenamecat.c: Use progname module, to avoid link
33463         errors on non-glibc systems.
33464         * tests/test-fstrcmp.c: Likewise.
33465
33466 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33467
33468         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33469         * lib/gettimeofday.c: Move extern declaration out of function.
33470
33471 2009-01-18  Bruno Haible  <bruno@clisp.org>
33472
33473         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33474         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33475         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33476
33477 2009-01-18  Bruno Haible  <bruno@clisp.org>
33478
33479         * lib/strftime.c (MEMPCPY): Remove unused macro.
33480         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33481
33482 2009-01-18  Martin Lambers  <marlam@marlam.de>
33483
33484         New module 'link'.
33485         * lib/unistd.in.h (link): New declaration.
33486         * lib/link.c: New file.
33487         * m4/link.m4: New file.
33488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33489         HAVE_LINK.
33490         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33491         * modules/link: New file.
33492         * doc/posix-functions/link.texi: Mention the new module.
33493
33494 2009-01-18  Bruno Haible  <bruno@clisp.org>
33495
33496         * tests/test-avltree_list.c (main): Call set_program_name.
33497         * tests/test-avltree_oset.c (main): Likewise.
33498         * tests/test-obstack-printf.c: Include progname.h.
33499         (main): Call set_program_name.
33500         * tests/test-quotearg.c: Include progname.h.
33501         (main): Call set_program_name.
33502         * tests/test-xmemdup0.c: Include progname.h.
33503         (main): Call set_program_name.
33504
33505 2009-01-18  Bruno Haible  <bruno@clisp.org>
33506
33507         New module 'alphasort'.
33508         * lib/dirent.in.h (alphasort): New declaration.
33509         * lib/alphasort.c: New file, from glibc with modifications.
33510         * m4/alphasort.m4: New file.
33511         * modules/alphasort: New file.
33512         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33513         HAVE_ALPHASORT.
33514         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33515         HAVE_ALPHASORT.
33516         * doc/posix-functions/alphasort.texi: Mention the new module and the
33517         portability problems.
33518
33519 2009-01-18  Bruno Haible  <bruno@clisp.org>
33520
33521         New module 'scandir'.
33522         * lib/dirent.in.h (scandir): New declaration.
33523         * lib/scandir.c: New file, from glibc with modifications.
33524         * m4/scandir.m4: New file.
33525         * modules/scandir: New file.
33526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33527         HAVE_SCANDIR.
33528         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33529         HAVE_SCANDIR.
33530         * doc/posix-functions/scandir.texi: Mention the new module and the
33531         portability problems.
33532
33533 2009-01-17  Bruno Haible  <bruno@clisp.org>
33534
33535         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33536         Update documentation.
33537         (func_remove_suffix): Escape all dots in the suffix. Update
33538         documentation.
33539         (func_filter_filelist): Update documentation.
33540         Reported by Ralf Wildenhues.
33541
33542 2009-01-17  Bruno Haible  <bruno@clisp.org>
33543
33544         * modules/dprintf-posix-tests: New file.
33545         * tests/test-dprintf-posix.sh: New file.
33546         * tests/test-dprintf-posix.c: New file.
33547
33548         New modules 'dprintf', 'dprintf-posix'.
33549         * lib/stdio.in.h (dprintf): New declaration.
33550         * lib/dprintf.c: New file.
33551         * m4/dprintf.m4: New file.
33552         * m4/dprintf-posix.m4: New file.
33553         * modules/dprintf: New file.
33554         * modules/dprintf-posix: New file.
33555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33556         HAVE_DPRINTF, REPLACE_DPRINTF.
33557         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33558         HAVE_DPRINTF, REPLACE_DPRINTF.
33559         * doc/posix-functions/dprintf.texi: Mention the new modules.
33560
33561 2009-01-17  Bruno Haible  <bruno@clisp.org>
33562
33563         * modules/vdprintf-posix-tests: New file.
33564         * tests/test-vdprintf-posix.sh: New file.
33565         * tests/test-vdprintf-posix.c: New file.
33566
33567         New modules 'vdprintf', 'vdprintf-posix'.
33568         * lib/stdio.in.h (vdprintf): New declaration.
33569         * lib/vdprintf.c: New file.
33570         * m4/vdprintf.m4: New file.
33571         * m4/vdprintf-posix.m4: New file.
33572         * modules/vdprintf: New file.
33573         * modules/vdprintf-posix: New file.
33574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33575         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33576         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33577         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33578         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33579
33580 2009-01-17  Bruno Haible  <bruno@clisp.org>
33581
33582         Fix replacement of fopen on mingw.
33583         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33584         mingw.
33585
33586 2009-01-17  Bruno Haible  <bruno@clisp.org>
33587
33588         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33589         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33590
33591 2009-01-17  Bruno Haible  <bruno@clisp.org>
33592
33593         Avoid test-fflush2.sh failure on mingw.
33594         * tests/test-fflush2.c: Include binary-io.h.
33595         (main): Put standard input into binary mode.
33596         * modules/fflush-tests (Depends-on): Add binary-io.
33597
33598 2009-01-17  Bruno Haible  <bruno@clisp.org>
33599
33600         * lib/wchar.in.h: In another particular situation, include only the
33601         system's <wchar.h> file.
33602         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33603         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33604         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33605
33606 2009-01-17  Bruno Haible  <bruno@clisp.org>
33607
33608         Support for stripping executables in --enable-relocatable.
33609         * build-aux/install-reloc: Expect one more argument, or an environment
33610         variable RELOC_STRIP_PROG. If set, strip the destination program and
33611         its wrapper.
33612         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33613         RELOC_STRIP_PROG.
33614         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33615         to set RELOCATABLE_STRIP.
33616         * NEWS: Mention the new Makefile requirement.
33617
33618 2009-01-17  Bruno Haible  <bruno@clisp.org>
33619
33620         * build-aux/install-reloc: Remove debugging information left over by
33621         C compiler on MacOS X.
33622
33623 2009-01-17  Bruno Haible  <bruno@clisp.org>
33624
33625         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33626         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33627         _NSGetExecutablePath.
33628
33629 2009-01-16  Jim Meyering  <meyering@redhat.com>
33630
33631         strerror: avoid warnings about discarding "const"
33632         * lib/strerror.c (rpl_strerror): Instead of returning a const
33633         string from each and every "case", use a variable, and add a single
33634         cast after the switch.
33635
33636 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33637
33638         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33639
33640 2009-01-16  Bruno Haible  <bruno@clisp.org>
33641
33642         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33643         array initializer syntax that also works in C++ mode.
33644         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33645
33646 2009-01-16  Jim Meyering  <meyering@redhat.com>
33647
33648         poll: suppress a warning
33649         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33650         to ignore "...unsigned expression < 0 is always false" warnings.
33651
33652 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33653
33654         poll: remove declarations of unused variables
33655         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33656         sockbuf and optlen.
33657
33658 2009-01-15  Bruno Haible  <bruno@clisp.org>
33659
33660         Make fflush-after-ungetc POSIX compliant on BSD systems.
33661         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33662         (clear_ungetc_buffer): Implement also for other systems.
33663         (rpl_fflush): On glibc systems, invoke
33664         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33665         clear_ungetc_buffer after fetching the stream's position, not before.
33666
33667 2009-01-15  Bruno Haible  <bruno@clisp.org>
33668
33669         Make fflush-after-ungetc POSIX compliant on glibc systems.
33670         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33671         after ungetc.
33672         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33673         (rpl_fflush): On glibc systems, simply call the system's fflush
33674         function after clearing the ungetc buffer.
33675         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33676         Instead, lseek only to the end of file, then use the system's fseeko
33677         for the rest. On glibc systems, reset the EOF indicator bit.
33678
33679 2009-01-15  Jim Meyering  <meyering@redhat.com>
33680
33681         openmp.m4: revert quote-adding change, for portability to older autoconf
33682         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33683         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33684         Simon Josefsson noticed the problem when using autoconf-2.61.
33685
33686 2009-01-15  Bruno Haible  <bruno@clisp.org>
33687
33688         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33689         * tests/test-fflush2.c (ASSERT): Always fail.
33690         (main): Add two tests for fflush() after ungetc(), taking into account
33691         the Austin Group's clarification.
33692         Suggested by Eric Blake.
33693
33694 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33695
33696         mktime.m4: remove K&R-style function prototypes
33697         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33698         for the Sun C++ compiler.
33699
33700 2009-01-14  Bruno Haible  <bruno@clisp.org>
33701
33702         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33703         while including <wchar.h>.
33704         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33705         the system's <wchar.h> file.
33706         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33707
33708 2009-01-14  Bruno Haible  <bruno@clisp.org>
33709
33710         * m4/csharp.m4: Don't mention gettext on the serial number line.
33711         * m4/csharpexec.m4: Likewise.
33712         * m4/eaccess.m4: Likewise.
33713         * m4/javaexec.m4: Likewise.
33714         * m4/sig_atomic_t.m4: Likewise.
33715         * m4/tmpdir.m4: Likewise.
33716         * m4/intldir.m4: Bump gettext version.
33717         * m4/lib-ld.m4: Likewise.
33718
33719 2009-01-14  Bruno Haible  <bruno@clisp.org>
33720
33721         * lib/progname.c (set_program_name): Add more comments.
33722         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33723
33724 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33725
33726         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33727         were sys/stat.h does not define it.
33728
33729 2009-01-14  Jim Meyering  <meyering@redhat.com>
33730
33731         many *.m4 files: improve m4 quoting
33732         99% of this change was performed by running the following commands:
33733         git ls-files | grep '\.m4$' | xargs perl -pi \
33734           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33735           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33736           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33737           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33738         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33739         The remainder were to add Copyright dates, increment serial numbers,
33740         undo some changes in comments, exclude m4/intl.m4, and add quotes
33741         around the "1" in ",1" where the unusual spacing prohibited the
33742         above regexps from doing the job.  For more details, see
33743         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33744         * m4/acl.m4: Modified.
33745         * m4/afs.m4: Likewise.
33746         * m4/alloca.m4: Likewise.
33747         * m4/argp.m4: Likewise.
33748         * m4/argz.m4: Likewise.
33749         * m4/atexit.m4: Likewise.
33750         * m4/bison-i18n.m4: Likewise.
33751         * m4/bison.m4: Likewise.
33752         * m4/byteswap.m4: Likewise.
33753         * m4/c-stack.m4: Likewise.
33754         * m4/c-strtod.m4: Likewise.
33755         * m4/calloc.m4: Likewise.
33756         * m4/canonicalize-lgpl.m4: Likewise.
33757         * m4/chown.m4: Likewise.
33758         * m4/clock_time.m4: Likewise.
33759         * m4/codeset.m4: Likewise.
33760         * m4/copy-file.m4: Likewise.
33761         * m4/csharp.m4: Likewise.
33762         * m4/csharpcomp.m4: Likewise.
33763         * m4/csharpexec.m4: Likewise.
33764         * m4/d-ino.m4: Likewise.
33765         * m4/d-type.m4: Likewise.
33766         * m4/dirfd.m4: Likewise.
33767         * m4/double-slash-root.m4: Likewise.
33768         * m4/eaccess.m4: Likewise.
33769         * m4/eealloc.m4: Likewise.
33770         * m4/environ.m4: Likewise.
33771         * m4/errno_h.m4: Likewise.
33772         * m4/euidaccess.m4: Likewise.
33773         * m4/execute.m4: Likewise.
33774         * m4/fatal-signal.m4: Likewise.
33775         * m4/fchdir.m4: Likewise.
33776         * m4/fcntl_h.m4: Likewise.
33777         * m4/fileblocks.m4: Likewise.
33778         * m4/filenamecat.m4: Likewise.
33779         * m4/findprog.m4: Likewise.
33780         * m4/flexmember.m4: Likewise.
33781         * m4/fnmatch.m4: Likewise.
33782         * m4/fopen.m4: Likewise.
33783         * m4/fpending.m4: Likewise.
33784         * m4/fprintf-posix.m4: Likewise.
33785         * m4/free.m4: Likewise.
33786         * m4/frexp.m4: Likewise.
33787         * m4/frexpl.m4: Likewise.
33788         * m4/fsusage.m4: Likewise.
33789         * m4/ftruncate.m4: Likewise.
33790         * m4/gc-camellia.m4: Likewise.
33791         * m4/gc-random.m4: Likewise.
33792         * m4/gc.m4: Likewise.
33793         * m4/getaddrinfo.m4: Likewise.
33794         * m4/getcwd-abort-bug.m4: Likewise.
33795         * m4/getcwd-path-max.m4: Likewise.
33796         * m4/getdate.m4: Likewise.
33797         * m4/getdomainname.m4: Likewise.
33798         * m4/getgroups.m4: Likewise.
33799         * m4/gethostname.m4: Likewise.
33800         * m4/gethrxtime.m4: Likewise.
33801         * m4/getline.m4: Likewise.
33802         * m4/getloadavg.m4: Likewise.
33803         * m4/getndelim2.m4: Likewise.
33804         * m4/getpass.m4: Likewise.
33805         * m4/gettext.m4: Likewise.
33806         * m4/gettime.m4: Likewise.
33807         * m4/gettimeofday.m4: Likewise.
33808         * m4/gnulib-common.m4: Likewise.
33809         * m4/group-member.m4: Likewise.
33810         * m4/host-os.m4: Likewise.
33811         * m4/iconv.m4: Likewise.
33812         * m4/iconv_open.m4: Likewise.
33813         * m4/inet_ntop.m4: Likewise.
33814         * m4/inet_pton.m4: Likewise.
33815         * m4/inline.m4: Likewise.
33816         * m4/intldir.m4: Likewise.
33817         * m4/intlmacosx.m4: Likewise.
33818         * m4/intmax.m4: Likewise.
33819         * m4/intmax_t.m4: Likewise.
33820         * m4/inttypes.m4: Likewise.
33821         * m4/inttypes_h.m4: Likewise.
33822         * m4/inttypes-pri.m4: Likewise.
33823         * m4/isapipe.m4: Likewise.
33824         * m4/isnand.m4: Likewise.
33825         * m4/isnanf.m4: Likewise.
33826         * m4/isnanl.m4: Likewise.
33827         * m4/javacomp.m4: Likewise.
33828         * m4/javaexec.m4: Likewise.
33829         * m4/jm-winsz1.m4: Likewise.
33830         * m4/jm-winsz2.m4: Likewise.
33831         * m4/lchown.m4: Likewise.
33832         * m4/lcmessage.m4: Likewise.
33833         * m4/ldexpl.m4: Likewise.
33834         * m4/lib-ld.m4: Likewise.
33835         * m4/lib-link.m4: Likewise.
33836         * m4/libsigsegv.m4: Likewise.
33837         * m4/link-follow.m4: Likewise.
33838         * m4/localcharset.m4: Likewise.
33839         * m4/locale-fr.m4: Likewise.
33840         * m4/locale-ja.m4: Likewise.
33841         * m4/locale-tr.m4: Likewise.
33842         * m4/locale-zh.m4: Likewise.
33843         * m4/lock.m4: Likewise.
33844         * m4/longlong.m4: Likewise.
33845         * m4/ls-mntd-fs.m4: Likewise.
33846         * m4/lstat.m4: Likewise.
33847         * m4/malloc.m4: Likewise.
33848         * m4/mathl.m4: Likewise.
33849         * m4/mbrtowc.m4: Likewise.
33850         * m4/mbstate_t.m4: Likewise.
33851         * m4/mbswidth.m4: Likewise.
33852         * m4/memchr.m4: Likewise.
33853         * m4/memcmp.m4: Likewise.
33854         * m4/memcpy.m4: Likewise.
33855         * m4/memmem.m4: Likewise.
33856         * m4/memmove.m4: Likewise.
33857         * m4/mempcpy.m4: Likewise.
33858         * m4/memrchr.m4: Likewise.
33859         * m4/memset.m4: Likewise.
33860         * m4/minmax.m4: Likewise.
33861         * m4/mkdir-slash.m4: Likewise.
33862         * m4/mkdtemp.m4: Likewise.
33863         * m4/mktime.m4: Likewise.
33864         * m4/mmap-anon.m4: Likewise.
33865         * m4/mountlist.m4: Likewise.
33866         * m4/nanosleep.m4: Likewise.
33867         * m4/nls.m4: Likewise.
33868         * m4/nocrash.m4: Likewise.
33869         * m4/open.m4: Likewise.
33870         * m4/openat.m4: Likewise.
33871         * m4/openmp.m4: Likewise.
33872         * m4/pathmax.m4: Likewise.
33873         * m4/perl.m4: Likewise.
33874         * m4/physmem.m4: Likewise.
33875         * m4/pipe.m4: Likewise.
33876         * m4/po.m4: Likewise.
33877         * m4/poll.m4: Likewise.
33878         * m4/posixtm.m4: Likewise.
33879         * m4/posixver.m4: Likewise.
33880         * m4/printf-frexp.m4: Likewise.
33881         * m4/printf-frexpl.m4: Likewise.
33882         * m4/printf-posix.m4: Likewise.
33883         * m4/printf-posix-rpl.m4: Likewise.
33884         * m4/printf.m4: Likewise.
33885         * m4/progtest.m4: Likewise.
33886         * m4/putenv.m4: Likewise.
33887         * m4/readline.m4: Likewise.
33888         * m4/readlink.m4: Likewise.
33889         * m4/readutmp.m4: Likewise.
33890         * m4/realloc.m4: Likewise.
33891         * m4/regex.m4: Likewise.
33892         * m4/relocatable.m4: Likewise.
33893         * m4/relocatable-lib.m4: Likewise.
33894         * m4/rename-dest-slash.m4: Likewise.
33895         * m4/rename.m4: Likewise.
33896         * m4/rmdir-errno.m4: Likewise.
33897         * m4/rmdir.m4: Likewise.
33898         * m4/roundf.m4: Likewise.
33899         * m4/roundl.m4: Likewise.
33900         * m4/rpmatch.m4: Likewise.
33901         * m4/save-cwd.m4: Likewise.
33902         * m4/selinux-selinux-h.m4: Likewise.
33903         * m4/setenv.m4: Likewise.
33904         * m4/settime.m4: Likewise.
33905         * m4/sig2str.m4: Likewise.
33906         * m4/sig_atomic_t.m4: Likewise.
33907         * m4/signalblocking.m4: Likewise.
33908         * m4/signbit.m4: Likewise.
33909         * m4/sigpipe.m4: Likewise.
33910         * m4/sockets.m4: Likewise.
33911         * m4/sockpfaf.m4: Likewise.
33912         * m4/st_dm_mode.m4: Likewise.
33913         * m4/stat-time.m4: Likewise.
33914         * m4/stdbool.m4: Likewise.
33915         * m4/stdint.m4: Likewise.
33916         * m4/stdint_h.m4: Likewise.
33917         * m4/stpcpy.m4: Likewise.
33918         * m4/stpncpy.m4: Likewise.
33919         * m4/strcase.m4: Likewise.
33920         * m4/strchrnul.m4: Likewise.
33921         * m4/strcspn.m4: Likewise.
33922         * m4/strdup.m4: Likewise.
33923         * m4/strftime.m4: Likewise.
33924         * m4/strndup.m4: Likewise.
33925         * m4/strnlen.m4: Likewise.
33926         * m4/strpbrk.m4: Likewise.
33927         * m4/strptime.m4: Likewise.
33928         * m4/strsep.m4: Likewise.
33929         * m4/strtod.m4: Likewise.
33930         * m4/strtoimax.m4: Likewise.
33931         * m4/strtok_r.m4: Likewise.
33932         * m4/strtol.m4: Likewise.
33933         * m4/strtoll.m4: Likewise.
33934         * m4/strtoul.m4: Likewise.
33935         * m4/strtoull.m4: Likewise.
33936         * m4/strtoumax.m4: Likewise.
33937         * m4/strverscmp.m4: Likewise.
33938         * m4/threadlib.m4: Likewise.
33939         * m4/timegm.m4: Likewise.
33940         * m4/tm_gmtoff.m4: Likewise.
33941         * m4/tmpdir.m4: Likewise.
33942         * m4/tmpfile.m4: Likewise.
33943         * m4/tzset.m4: Likewise.
33944         * m4/uintmax_t.m4: Likewise.
33945         * m4/unlinkdir.m4: Likewise.
33946         * m4/unlocked-io.m4: Likewise.
33947         * m4/uptime.m4: Likewise.
33948         * m4/userspec.m4: Likewise.
33949         * m4/utimbuf.m4: Likewise.
33950         * m4/utime.m4: Likewise.
33951         * m4/utimes-null.m4: Likewise.
33952         * m4/utimes.m4: Likewise.
33953         * m4/vararrays.m4: Likewise.
33954         * m4/vasnprintf.m4: Likewise.
33955         * m4/vfprintf-posix.m4: Likewise.
33956         * m4/vprintf-posix.m4: Likewise.
33957         * m4/wait-process.m4: Likewise.
33958         * m4/wchar_t.m4: Likewise.
33959         * m4/wint_t.m4: Likewise.
33960         * m4/write-any-file.m4: Likewise.
33961         * m4/yield.m4: Likewise.
33962
33963 2009-01-13  Bruno Haible  <bruno@clisp.org>
33964
33965         Avoid test-copy-file.sh failures when ACL support insufficient.
33966         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33967         TESTS_ENVIRONMENT.
33968         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33969         Reported by Jim Meyering.
33970
33971 2009-01-13  Bruno Haible  <bruno@clisp.org>
33972
33973         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33974         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33975         * modules/unistdio/u8-printf-parse (Files): Likewise.
33976         * modules/unistdio/u32-printf-parse (Files): Likewise.
33977         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33978
33979 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33980
33981         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33982         and m4/inttypes_h.m4 too.
33983
33984 2009-01-12  Eric Blake  <ebb9@byu.net>
33985
33986         tests: IRIX 6.2 cc can't compile -0.0 into .data
33987         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33988         rather than at compile-time.
33989         * tests/test-floorl.c (minus_zero): Likewise.
33990         * tests/test-frexpl.c (minus_zero): Likewise.
33991         * tests/test-isnan.c (minus_zerol): Likewise.
33992         * tests/test-isnanl.h (minus_zero): Likewise.
33993         * tests/test-ldexpl.c (minus_zero): Likewise.
33994         * tests/test-roundl.c (minus_zero): Likewise.
33995         * tests/test-signbit.c (minus_zerol): Likewise.
33996         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33997         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33998         * tests/test-truncl.c (minus_zero): Likewise.
33999         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34000         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34001         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34002
34003 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34004
34005         regex: fix glibc bug 9697
34006         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34007         handling.
34008
34009 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34010
34011         regex: fix glibc bug 697
34012         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34013         being NULL also if there are no backreferences.
34014
34015 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34016
34017         regex: merge glibc changes
34018         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34019         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34020         re_string_skip_chars, re_string_reconstruct): Likewise.
34021         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34022
34023 2009-01-07  Jim Meyering  <meyering@redhat.com>
34024
34025         poll: filter through cppi
34026         * lib/poll.c: Indent cpp directives to reflect nesting.
34027
34028 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34029
34030         poll: don't return uninitialized
34031         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34032
34033 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34034
34035         avoid compile failure on AIX 6.1
34036         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34037         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34038
34039 2009-01-04  Jim Meyering  <meyering@redhat.com>
34040
34041         remove duplicate inclusion of <stdio.h>
34042         * tests/test-fprintf-posix.c: Likewise.
34043         * tests/test-printf-posix.c: Likewise.
34044         * tests/test-snprintf-posix.c: Likewise.
34045         * tests/test-sprintf-posix.c: Likewise.
34046         * tests/test-vasprintf-posix.c: Likewise.
34047         * tests/test-vfprintf-posix.c: Likewise.
34048         * tests/test-vprintf-posix.c: Likewise.
34049         * tests/test-vsnprintf-posix.c: Likewise.
34050         * tests/test-vsprintf-posix.c: Likewise.
34051
34052 2009-01-03  Jim Meyering  <meyering@redhat.com>
34053
34054         gnulib-tool: fix sed-based filtering
34055         * gnulib-tool (func_filter_filelist): Remove extra backslash
34056         in sed_fff_filter definition.
34057
34058 2009-01-02  Jim Meyering  <meyering@redhat.com>
34059
34060         strftime: avoid compilation failure on Solaris 2.6
34061         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34062         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34063         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34064         be available.  Reported by Tom G. Christensen.  Details in
34065         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34066
34067 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34068             Bruno Haible  <bruno@clisp.org>
34069
34070         Speed up gnulib-tool by doing more string processing through shell
34071         built-ins.
34072         * gnulib-tool (fast_func_append): New variable.
34073         (func_remove_prefix, func_remove_suffix): New functions.
34074         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34075         (func_filter_filelist): New function.
34076         (func_get_dependencies): Use func_remove_suffix instead of sed.
34077         (func_get_automake_snippet): Use func_filter_filelist instead of a
34078         subshell and sed invocation.
34079
34080 2009-01-01  Bruno Haible  <bruno@clisp.org>
34081
34082         Fix a security bug.
34083         * gnulib-tool (func_import, import, update): Don't allow the characters
34084         '"', '$', '`', '\' in macro arguments that become part of commands that
34085         are evaluated.
34086
34087 2009-01-01  Bruno Haible  <bruno@clisp.org>
34088
34089         * gnulib-tool (func_reset_sigpipe): Add more comments.
34090
34091 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34092
34093         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34094         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34095         already know the answer.
34096
34097 2009-01-01  Jim Meyering  <meyering@redhat.com>
34098
34099         * lib/version-etc.c (version_etc_va): Update copyright year.
34100
34101 2008-12-30  Bruno Haible  <bruno@clisp.org>
34102
34103         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34104         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34105         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34106
34107 2008-12-29  Eric Blake  <ebb9@byu.net>
34108
34109         multiarch: avoid autoconf AC_REQUIRE bug
34110         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34111         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34112         2.63 and older.
34113         Reported by Bruno Haible, and analyzed in
34114         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34115
34116 2008-12-29  Bruno Haible  <bruno@clisp.org>
34117
34118         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34119         files in subdirectories correctly.
34120         Reported by Ralf Wildenhues.
34121
34122 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34123
34124         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34125         rather than 'join FILE -', for Solaris join.
34126
34127 2008-12-29  Bruno Haible  <bruno@clisp.org>
34128
34129         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34130         quoting.
34131         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34132         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34133         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34134         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34135         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34136         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34137         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34138         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34139         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34140         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34141         * m4/nls.m4 (AM_NLS): Likewise.
34142         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34143         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34144         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34145         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34146         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34147         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34148         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34149         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34150         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34151         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34152         * m4/xsize.m4 (gl_XSIZE): Likewise.
34153         Suggested by Jim Meyering.
34154
34155 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34156
34157         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34158         * lib/parse-duration.c: use a switch instead of cascading if's.
34159
34160 2008-12-29  Eric Blake  <ebb9@byu.net>
34161
34162         wchar.h: supply WEOF on Irix 5.3
34163         * lib/wchar.in.h (wint_t): Also supply WEOF.
34164         * lib/wctype.in.h (wint_t): Likewise.
34165         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34166         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34167         Reported by Tom G. Christensen.
34168
34169 2008-12-26  Bruno Haible  <bruno@clisp.org>
34170
34171         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34172         i486, i586, i686.
34173
34174 2008-12-26  Bruno Haible  <bruno@clisp.org>
34175
34176         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34177
34178 2008-12-26  Bruno Haible  <bruno@clisp.org>
34179
34180         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34181         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34182         not __STDC_CONSTANT_MACROS.
34183         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34184
34185 2008-12-25  Bruno Haible  <bruno@clisp.org>
34186
34187         Add support for universal builds to vasnprintf.
34188         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34189         universal builds, guess no.
34190         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34191         * modules/vasprintf-posix (Depends-on): Likewise.
34192         * modules/fprintf-posix (Depends-on): Likewise.
34193         * modules/vfprintf-posix (Depends-on): Likewise.
34194         * modules/snprintf-posix (Depends-on): Likewise.
34195         * modules/vsnprintf-posix (Depends-on): Likewise.
34196         * modules/sprintf-posix (Depends-on): Likewise.
34197         * modules/vsprintf-posix (Depends-on): Likewise.
34198         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34199         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34200         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34201         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34202         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34203         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34204         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34205
34206         Add support for universal builds to <inttypes.h>.
34207         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34208         _SCNu64_PREFIX): In Apple
34209         universal builds, define directly, using _LP64.
34210         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34211         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34212         * modules/inttypes (Depends-on): Add multiarch.
34213         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34214
34215         Add support for universal builds to <stdint.h>.
34216         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34217         universal builds, define directly, using _LP64.
34218         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34219         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34220         and size_t.
34221         * modules/stdint (Depends-on): Add multiarch.
34222         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34223
34224         New module 'multiarch'.
34225         * modules/multiarch: New file.
34226         * m4/multiarch.m4: New file.
34227
34228 2008-12-25  Bruno Haible  <bruno@clisp.org>
34229
34230         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34231
34232 2008-12-25  Bruno Haible  <bruno@clisp.org>
34233
34234         * modules/btowc (License): Relicense under LGPLv2+.
34235         * modules/mbsinit (License): Likewise.
34236         * modules/mbrtowc (License): Likewise.
34237         * modules/wcrtomb (License): Likewise.
34238         * modules/streq (License): Likewise.
34239         Reported by David Lutterkort <lutter@redhat.com>.
34240
34241 2008-12-23  Bruno Haible  <bruno@clisp.org>
34242
34243         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34244
34245 2008-12-23  Bruno Haible  <bruno@clisp.org>
34246
34247         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34249         GETADDRINFO_LIB, not in LIBS.
34250         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34251         * modules/canon-host (Link): Likewise.
34252         * NEWS: Mention the change.
34253         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34254         GETADDRINFO_LIB.
34255
34256 2008-12-22  Bruno Haible  <bruno@clisp.org>
34257
34258         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34259         * doc/posix-functions/iswalpha_l.texi: Likewise.
34260         * doc/posix-functions/iswblank_l.texi: Likewise.
34261         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34262         * doc/posix-functions/iswctype_l.texi: Likewise.
34263         * doc/posix-functions/iswdigit_l.texi: Likewise.
34264         * doc/posix-functions/iswgraph_l.texi: Likewise.
34265         * doc/posix-functions/iswlower_l.texi: Likewise.
34266         * doc/posix-functions/iswprint_l.texi: Likewise.
34267         * doc/posix-functions/iswpunct_l.texi: Likewise.
34268         * doc/posix-functions/iswspace_l.texi: Likewise.
34269         * doc/posix-functions/iswupper_l.texi: Likewise.
34270         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34271         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34272         * doc/posix-functions/open_wmemstream.texi: Likewise.
34273         * doc/posix-functions/swscanf.texi: Likewise.
34274         * doc/posix-functions/towctrans_l.texi: Likewise.
34275         * doc/posix-functions/towlower.texi: Likewise.
34276         * doc/posix-functions/towlower_l.texi: Likewise.
34277         * doc/posix-functions/towupper.texi: Likewise.
34278         * doc/posix-functions/towupper_l.texi: Likewise.
34279         * doc/posix-functions/vfwprintf.texi: Likewise.
34280         * doc/posix-functions/vfwscanf.texi: Likewise.
34281         * doc/posix-functions/vswscanf.texi: Likewise.
34282         * doc/posix-functions/vwprintf.texi: Likewise.
34283         * doc/posix-functions/vwscanf.texi: Likewise.
34284         * doc/posix-functions/wcpcpy.texi: Likewise.
34285         * doc/posix-functions/wcpncpy.texi: Likewise.
34286         * doc/posix-functions/wcscasecmp.texi: Likewise.
34287         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34288         * doc/posix-functions/wcscoll_l.texi: Likewise.
34289         * doc/posix-functions/wcsdup.texi: Likewise.
34290         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34291         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34292         * doc/posix-functions/wcsnlen.texi: Likewise.
34293         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34294         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34295         * doc/posix-functions/wctrans_l.texi: Likewise.
34296         * doc/posix-functions/wctype_l.texi: Likewise.
34297         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34298         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34299         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34300         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34301         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34302         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34303         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34304         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34305         * doc/glibc-functions/wcschrnul.texi: Likewise.
34306         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34307         * doc/glibc-functions/wcstod_l.texi: Likewise.
34308         * doc/glibc-functions/wcstof_l.texi: Likewise.
34309         * doc/glibc-functions/wcstol_l.texi: Likewise.
34310         * doc/glibc-functions/wcstold_l.texi: Likewise.
34311         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34312         * doc/glibc-functions/wcstoq.texi: Likewise.
34313         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34314         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34315         * doc/glibc-functions/wcstouq.texi: Likewise.
34316         * doc/glibc-functions/wmempcpy.texi: Likewise.
34317
34318 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34319             Eric Blake  <ebb9@byu.net>
34320             Paolo Bonzini  <bonzini@gnu.org>
34321             Bruno Haible  <bruno@clisp.org>
34322
34323         Make c-stack work on Haiku.
34324         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34325         (c_stack_action): Use SA_ONSTACK flag.
34326
34327 2008-12-22  Bruno Haible  <bruno@clisp.org>
34328
34329         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34330
34331 2008-12-22  Bruno Haible  <bruno@clisp.org>
34332
34333         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34334         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34335         being overridden.
34336         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34337         New macros.
34338         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34340         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34341         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34342
34343 2008-12-22  Bruno Haible  <bruno@clisp.org>
34344
34345         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34346         from test code.
34347
34348 2008-12-22  Eric Blake  <ebb9@byu.net>
34349
34350         Avoid gcc warnings on cygwin.
34351         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34352         Avoid unused variable.
34353         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34354         Likewise.
34355
34356 2008-12-22  Bruno Haible  <bruno@clisp.org>
34357
34358         Remove HAVE_MBRTOWC conditionals.
34359         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34360         (mbscasecmp): Assume mbrtowc function.
34361         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34362         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34363         * lib/mbschr.c: Include mbuiter.h unconditionally.
34364         (mbschr): Assume mbrtowc function.
34365         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34366         (mbscspn): Assume mbrtowc function.
34367         * lib/mbslen.c: Include mbuiter.h unconditionally.
34368         (mbslen): Assume mbrtowc function.
34369         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34370         (mbsncasecmp): Assume mbrtowc function.
34371         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34372         (mbsnlen): Assume mbrtowc function.
34373         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34374         (mbspbrk): Assume mbrtowc function.
34375         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34376         (mbspcasecmp): Assume mbrtowc function.
34377         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34378         (mbsrchr): Assume mbrtowc function.
34379         * lib/mbssep.c: Include mbuiter.h unconditionally.
34380         (mbssep): Assume mbrtowc function.
34381         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34382         (mbsspn): Assume mbrtowc function.
34383         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34384         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34385         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34386         (mbstok_r): Assume mbrtowc function.
34387         * lib/propername.c: Include mbuiter.h unconditionally.
34388         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34389         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34390         (trim2): Assume mbrtowc function.
34391         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34392         (mbsnwidth): Assume mbrtowc function.
34393         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34394         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34395         fallback definitions.
34396         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34397
34398 2008-12-22  Bruno Haible  <bruno@clisp.org>
34399
34400         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34401
34402 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34403
34404         * modules/regex: Request emulations for the mb*/wc* functions we need.
34405         * m4/regex.m4: Don't look for those functions here.
34406         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34407
34408 2008-12-22  Bruno Haible  <bruno@clisp.org>
34409
34410         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34411
34412 2008-12-21  Bruno Haible  <bruno@clisp.org>
34413
34414         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34415         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34416         (Include): Remove conditionalization.
34417         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34418         (Include): Remove conditionalization.
34419         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34420         (Include): Remove conditionalization.
34421         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34422         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34423         * NEWS: Mention the change.
34424         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34425         via Sergey Poznyakoff <gray@gnu.org.ua>.
34426
34427 2008-12-21  Bruno Haible  <bruno@clisp.org>
34428
34429         * MODULES.html.sh (Extended multibyte and wide character utilities
34430         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34431         wcrtomb, wcsrtombs.
34432         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34433         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34434         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34435         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34436
34437 2008-12-21  Bruno Haible  <bruno@clisp.org>
34438
34439         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34440
34441 2008-12-21  Bruno Haible  <bruno@clisp.org>
34442
34443         * modules/wcsnrtombs-tests: New file.
34444         * tests/test-wcsnrtombs1.sh: New file.
34445         * tests/test-wcsnrtombs2.sh: New file.
34446         * tests/test-wcsnrtombs3.sh: New file.
34447         * tests/test-wcsnrtombs4.sh: New file.
34448         * tests/test-wcsnrtombs.c: New file.
34449
34450         New module 'wcsnrtombs'.
34451         * lib/wchar.in.h (wcsnrtombs): New declaration.
34452         * lib/wcsnrtombs.c: New file.
34453         * lib/wcsrtombs-state.c: New file.
34454         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34455         (internal_state): Remove variable.
34456         * m4/wcsnrtombs.m4: New file.
34457         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34458         compilation units.
34459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34460         HAVE_WCSNRTOMBS.
34461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34462         HAVE_WCSNRTOMBS.
34463         * modules/wcsnrtombs: New file.
34464         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34465         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34466
34467 2008-12-21  Bruno Haible  <bruno@clisp.org>
34468
34469         * modules/wcsrtombs-tests: New file.
34470         * tests/test-wcsrtombs1.sh: New file.
34471         * tests/test-wcsrtombs2.sh: New file.
34472         * tests/test-wcsrtombs3.sh: New file.
34473         * tests/test-wcsrtombs4.sh: New file.
34474         * tests/test-wcsrtombs.c: New file.
34475
34476         New module 'wcsrtombs'.
34477         * lib/wchar.in.h (wcsrtombs): New declaration.
34478         * lib/wcsrtombs.c: New file.
34479         * m4/wcsrtombs.m4: New file.
34480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34481         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34483         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34484         * modules/wcsrtombs: New file.
34485         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34486         bugs.
34487
34488 2008-12-21  Bruno Haible  <bruno@clisp.org>
34489
34490         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34491         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34492         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34493         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34494         if not correct.
34495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34496         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34497         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34498         m4/locale-zh.m4, m4/codeset.m4.
34499         * doc/posix-functions/wcrtomb.texi: Document the bug.
34500
34501 2008-12-21  Bruno Haible  <bruno@clisp.org>
34502
34503         Work around a btowc() bug on IRIX 6.5.
34504         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34505         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34506         REPLACE_WTOBC if not.
34507         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34508         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34509         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34510
34511 2008-12-21  Bruno Haible  <bruno@clisp.org>
34512
34513         * modules/wcrtomb-tests: New file.
34514         * tests/test-wcrtomb.sh: New file.
34515         * tests/test-wcrtomb.c: New file.
34516
34517         New module 'wcrtomb'.
34518         * lib/wchar.in.h (wcrtomb): New declaration.
34519         * lib/wcrtomb.c: New file.
34520         * m4/wcrtomb.m4: New file.
34521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34522         HAVE_WCRTOMB.
34523         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34524         HAVE_WCRTOMB.
34525         * modules/wcrtomb: New file.
34526         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34527
34528 2008-12-21  Bruno Haible  <bruno@clisp.org>
34529
34530         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34531         * modules/mbsrtowcs (Files): Likewise.
34532         * modules/wctob (Files): Likewise.
34533         * modules/c-strcase-tests (Files): Likewise.
34534         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34535         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34536         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34537         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34538         * modules/vasnprintf-posix-tests (Files): Likewise.
34539
34540 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34541
34542         gitlog-to-changelog: pass all command-line arguments to git-log
34543         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34544         it is sometimes convenient to filter the commits in various ways.
34545         gitlog-to-changelog only allows --since to specify a start date,
34546         but git-log itself supports many other filtering mechanisms.
34547         At the moment, I want to filter by branch name.  Rather than
34548         adding a --branch option to gitlog-to-changelog, it seems more
34549         flexible to simply pass all options directly to git-log and let
34550         git do the work.  Notice that this effectively makes --since a
34551         redundant option for gitlog-to-changelog, but removing it would
34552         require current usage to change since calls would then require
34553         an additional '--'.
34554
34555 2008-12-21  Bruno Haible  <bruno@clisp.org>
34556
34557         * modules/mbsnrtowcs-tests: New file.
34558         * tests/test-mbsnrtowcs1.sh: New file.
34559         * tests/test-mbsnrtowcs2.sh: New file.
34560         * tests/test-mbsnrtowcs3.sh: New file.
34561         * tests/test-mbsnrtowcs4.sh: New file.
34562         * tests/test-mbsnrtowcs.c: New file.
34563
34564         New module 'mbsnrtowcs'.
34565         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34566         * lib/mbsnrtowcs.c: New file.
34567         * lib/mbsrtowcs-state.c: New file.
34568         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34569         (internal_state): Remove variable.
34570         * m4/mbsnrtowcs.m4: New file.
34571         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34572         compilation units.
34573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34574         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34575         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34576         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34577         * modules/mbsnrtowcs: New file.
34578         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34579         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34580         portability problem.
34581
34582 2008-12-21  Bruno Haible  <bruno@clisp.org>
34583
34584         Work around mbsrtowcs bug.
34585         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34586         (gl_FUNC_MBSRTOWCS): Invoke it.
34587         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34588         m4/locale-zh.m4.
34589         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34590
34591 2008-12-21  Bruno Haible  <bruno@clisp.org>
34592
34593         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34594
34595 2008-12-21  Bruno Haible  <bruno@clisp.org>
34596
34597         Update doc for AIX.
34598         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34599         16-bit wchar_t type.
34600         * doc/posix-functions/btowc.texi: Likewise.
34601         * doc/posix-functions/fgetwc.texi: Likewise.
34602         * doc/posix-functions/fgetws.texi: Likewise.
34603         * doc/posix-functions/fputwc.texi: Likewise.
34604         * doc/posix-functions/fputws.texi: Likewise.
34605         * doc/posix-functions/fwide.texi: Likewise.
34606         * doc/posix-functions/fwprintf.texi: Likewise.
34607         * doc/posix-functions/fwscanf.texi: Likewise.
34608         * doc/posix-functions/getwchar.texi: Likewise.
34609         * doc/posix-functions/getwc.texi: Likewise.
34610         * doc/posix-functions/iswalnum.texi: Likewise.
34611         * doc/posix-functions/iswalpha.texi: Likewise.
34612         * doc/posix-functions/iswblank.texi: Likewise.
34613         * doc/posix-functions/iswcntrl.texi: Likewise.
34614         * doc/posix-functions/iswctype.texi: Likewise.
34615         * doc/posix-functions/iswdigit.texi: Likewise.
34616         * doc/posix-functions/iswgraph.texi: Likewise.
34617         * doc/posix-functions/iswlower.texi: Likewise.
34618         * doc/posix-functions/iswprint.texi: Likewise.
34619         * doc/posix-functions/iswpunct.texi: Likewise.
34620         * doc/posix-functions/iswspace.texi: Likewise.
34621         * doc/posix-functions/iswupper.texi: Likewise.
34622         * doc/posix-functions/iswxdigit.texi: Likewise.
34623         * doc/posix-functions/mbrtowc.texi: Likewise.
34624         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34625         * doc/posix-functions/mbstowcs.texi: Likewise.
34626         * doc/posix-functions/mbtowc.texi: Likewise.
34627         * doc/posix-functions/putwchar.texi: Likewise.
34628         * doc/posix-functions/putwc.texi: Likewise.
34629         * doc/posix-functions/swprintf.texi: Likewise.
34630         * doc/posix-functions/tolower.texi: Likewise.
34631         * doc/posix-functions/toupper.texi: Likewise.
34632         * doc/posix-functions/towctrans.texi: Likewise.
34633         * doc/posix-functions/ungetwc.texi: Likewise.
34634         * doc/posix-functions/vswprintf.texi: Likewise.
34635         * doc/posix-functions/wcrtomb.texi: Likewise.
34636         * doc/posix-functions/wcscat.texi: Likewise.
34637         * doc/posix-functions/wcschr.texi: Likewise.
34638         * doc/posix-functions/wcscmp.texi: Likewise.
34639         * doc/posix-functions/wcscoll.texi: Likewise.
34640         * doc/posix-functions/wcscpy.texi: Likewise.
34641         * doc/posix-functions/wcscspn.texi: Likewise.
34642         * doc/posix-functions/wcsftime.texi: Likewise.
34643         * doc/posix-functions/wcslen.texi: Likewise.
34644         * doc/posix-functions/wcsncat.texi: Likewise.
34645         * doc/posix-functions/wcsncmp.texi: Likewise.
34646         * doc/posix-functions/wcsncpy.texi: Likewise.
34647         * doc/posix-functions/wcspbrk.texi: Likewise.
34648         * doc/posix-functions/wcsrchr.texi: Likewise.
34649         * doc/posix-functions/wcsrtombs.texi: Likewise.
34650         * doc/posix-functions/wcsspn.texi: Likewise.
34651         * doc/posix-functions/wcsstr.texi: Likewise.
34652         * doc/posix-functions/wcstod.texi: Likewise.
34653         * doc/posix-functions/wcstof.texi: Likewise.
34654         * doc/posix-functions/wcstoimax.texi: Likewise.
34655         * doc/posix-functions/wcstok.texi: Likewise.
34656         * doc/posix-functions/wcstold.texi: Likewise.
34657         * doc/posix-functions/wcstoll.texi: Likewise.
34658         * doc/posix-functions/wcstol.texi: Likewise.
34659         * doc/posix-functions/wcstombs.texi: Likewise.
34660         * doc/posix-functions/wcstoull.texi: Likewise.
34661         * doc/posix-functions/wcstoul.texi: Likewise.
34662         * doc/posix-functions/wcstoumax.texi: Likewise.
34663         * doc/posix-functions/wcswidth.texi: Likewise.
34664         * doc/posix-functions/wcsxfrm.texi: Likewise.
34665         * doc/posix-functions/wctob.texi: Likewise.
34666         * doc/posix-functions/wctomb.texi: Likewise.
34667         * doc/posix-functions/wctrans.texi: Likewise.
34668         * doc/posix-functions/wctype.texi: Likewise.
34669         * doc/posix-functions/wcwidth.texi: Likewise.
34670         * doc/posix-functions/wmemchr.texi: Likewise.
34671         * doc/posix-functions/wmemcmp.texi: Likewise.
34672         * doc/posix-functions/wmemcpy.texi: Likewise.
34673         * doc/posix-functions/wmemmove.texi: Likewise.
34674         * doc/posix-functions/wmemset.texi: Likewise.
34675         * doc/posix-functions/wprintf.texi: Likewise.
34676         * doc/posix-functions/wscanf.texi: Likewise.
34677
34678 2008-12-21  Bruno Haible  <bruno@clisp.org>
34679
34680         Update doc for HP-UX 11.11.
34681         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34682         in HP-UX version 11.00, not in all versions of HP-UX 11.
34683         * doc/posix-functions/fwide.texi: Likewise.
34684         * doc/posix-functions/fwprintf.texi: Likewise.
34685         * doc/posix-functions/fwscanf.texi: Likewise.
34686         * doc/posix-functions/inet_ntop.texi: Likewise.
34687         * doc/posix-functions/inet_pton.texi: Likewise.
34688         * doc/posix-functions/mbrlen.texi: Likewise.
34689         * doc/posix-functions/mbrtowc.texi: Likewise.
34690         * doc/posix-functions/mbsinit.texi: Likewise.
34691         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34692         * doc/posix-functions/swprintf.texi: Likewise.
34693         * doc/posix-functions/swscanf.texi: Likewise.
34694         * doc/posix-functions/towctrans.texi: Likewise.
34695         * doc/posix-functions/vfwprintf.texi: Likewise.
34696         * doc/posix-functions/vswprintf.texi: Likewise.
34697         * doc/posix-functions/vwprintf.texi: Likewise.
34698         * doc/posix-functions/wcrtomb.texi: Likewise.
34699         * doc/posix-functions/wcsrtombs.texi: Likewise.
34700         * doc/posix-functions/wcsstr.texi: Likewise.
34701         * doc/posix-functions/wctob.texi: Likewise.
34702         * doc/posix-functions/wctrans.texi: Likewise.
34703         * doc/posix-functions/wmemchr.texi: Likewise.
34704         * doc/posix-functions/wmemcmp.texi: Likewise.
34705         * doc/posix-functions/wmemcpy.texi: Likewise.
34706         * doc/posix-functions/wmemmove.texi: Likewise.
34707         * doc/posix-functions/wmemset.texi: Likewise.
34708         * doc/posix-functions/wprintf.texi: Likewise.
34709         * doc/posix-functions/wscanf.texi: Likewise.
34710
34711 2008-12-21  Bruno Haible  <bruno@clisp.org>
34712
34713         Work around a portability problem.
34714         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34715         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34716
34717 2008-12-20  Bruno Haible  <bruno@clisp.org>
34718
34719         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34720         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34721         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34723         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34724
34725         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34726         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34727         set.
34728         (GNULIB_defined_mbstate_t): New macro.
34729         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34730         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34731         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34732         reuses the system's mbrtowc function but works around the bugs.
34733         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34734         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34735         macros.
34736         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34737         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34738         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34739         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34740         REPLACE_MBSINIT if mbsinit needs to be overridden.
34741         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34742         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34743         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34744         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34745         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34746         m4/locale-zh.m4.
34747         (Depends): Add mbsinit.
34748         * modules/mbsinit (Depends): Add mbrtowc.
34749         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34750
34751 2008-12-20  Bruno Haible  <bruno@clisp.org>
34752
34753         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34754         so that there are no conversion errors on AIX.
34755         * tests/test-mbsrtowcs.c (main): LIkewise.
34756
34757 2008-12-20  Bruno Haible  <bruno@clisp.org>
34758
34759         Work around wctob bug on Solaris <= 9.
34760         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34761         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34763         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34764         * modules/wctob (Files): Add m4/locale-fr.m4.
34765         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34766
34767 2008-12-20  Bruno Haible  <bruno@clisp.org>
34768
34769         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34770         /dev/null.
34771         * tests/test-select-in.sh: Likewise.
34772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34773
34774 2008-12-20  Bruno Haible  <bruno@clisp.org>
34775
34776         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34777         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34778         Cygwin 1.5.x.
34779
34780 2008-12-20  Bruno Haible  <bruno@clisp.org>
34781
34782         Ensure mbstate_t is defined on HP-UX 11.11.
34783         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34784         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34785         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34786         AC_USE_SYSTEM_EXTENSIONS.
34787         * modules/fnmatch (Depends-on): Add extensions.
34788         * modules/mbrlen (Depends-on): Likewise.
34789         * modules/mbrtowc (Depends-on): Likewise.
34790         * modules/mbsinit (Depends-on): Likewise.
34791         * modules/mbsrtowcs (Depends-on): Likewise.
34792         * modules/mbswidth (Depends-on): Likewise.
34793         * modules/quotearg (Depends-on): Likewise.
34794         * modules/strftime (Depends-on): Likewise.
34795
34796 2008-12-20  Bruno Haible  <bruno@clisp.org>
34797
34798         Ensure wctob is declared on IRIX 6.5.
34799         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34800         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34801         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34803         of HAVE_WCTOB.
34804         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34805         HAVE_WCTOB.
34806         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34807
34808 2008-12-19  Bruno Haible  <bruno@clisp.org>
34809
34810         * modules/mbsrtowcs-tests: New file.
34811         * tests/test-mbsrtowcs1.sh: New file.
34812         * tests/test-mbsrtowcs2.sh: New file.
34813         * tests/test-mbsrtowcs3.sh: New file.
34814         * tests/test-mbsrtowcs4.sh: New file.
34815         * tests/test-mbsrtowcs.c: New file.
34816
34817         New module 'mbsrtowcs'.
34818         * lib/wchar.in.h (mbsrtowcs): New declaration.
34819         * lib/mbsrtowcs.c: New file.
34820         * m4/mbsrtowcs.m4: New file.
34821         * modules/mbsrtowcs: New file.
34822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34823         HAVE_MBSRTOWCS.
34824         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34825         HAVE_MBSRTOWCS.
34826         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34827
34828 2008-12-19  Bruno Haible  <bruno@clisp.org>
34829
34830         New module 'mbrlen'.
34831         * lib/wchar.in.h (mbrlen): New declaration.
34832         * lib/mbrlen.c: New file.
34833         * m4/mbrlen.m4: New file.
34834         * modules/mbrlen: New file.
34835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34836         HAVE_MBRLEN.
34837         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34838         HAVE_MBRLEN.
34839         * doc/posix-functions/mbrlen.texi: Document the new module.
34840
34841 2008-12-19  Bruno Haible  <bruno@clisp.org>
34842
34843         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34844         * modules/mbrtowc (Depends-on): Add verify.
34845         Suggested by Paul Eggert.
34846
34847 2008-12-18  Bruno Haible  <bruno@clisp.org>
34848
34849         * modules/mbsinit-tests: New file.
34850         * tests/test-mbsinit.sh: New file.
34851         * tests/test-mbsinit.c: New file.
34852
34853 2008-12-18  Bruno Haible  <bruno@clisp.org>
34854
34855         * modules/mbrtowc-tests: New file.
34856         * tests/test-mbrtowc1.sh: New file.
34857         * tests/test-mbrtowc2.sh: New file.
34858         * tests/test-mbrtowc3.sh: New file.
34859         * tests/test-mbrtowc4.sh: New file.
34860         * tests/test-mbrtowc.c: New file.
34861
34862         New module 'mbrtowc'.
34863         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34864         mbsinit and mbrtowc.
34865         (mbrtowc): New declaration.
34866         * lib/mbrtowc.c: New file.
34867         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34868         * modules/mbrtowc: New file.
34869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34870         HAVE_MBRTOWC.
34871         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34872         HAVE_MBRTOWC.
34873         * doc/posix-functions/mbrtowc.texi: Document the new module.
34874
34875 2008-12-18  Bruno Haible  <bruno@clisp.org>
34876
34877         New module 'wctob'.
34878         * lib/wchar.in.h (wctob): New declaration.
34879         * lib/wctob.c: New file.
34880         * m4/wctob.m4: New file.
34881         * modules/wctob: New file.
34882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34883         HAVE_WCTOB.
34884         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34885         * doc/posix-functions/wctob.texi: Document the new module.
34886
34887 2008-12-18  Bruno Haible  <bruno@clisp.org>
34888
34889         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34890         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34891
34892 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34893
34894         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34895         G. Christensen" <tgc@jupiterrise.com>.
34896
34897         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34898         G. Christensen" <tgc@jupiterrise.com>.
34899
34900         * lib/flock.c: Need to include string.h.  Reported by "Tom
34901         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34902         <ebb9@byu.net>.
34903
34904 2008-12-18  Bruno Haible  <bruno@clisp.org>
34905
34906         * m4/locale-ja.m4: New file, from GNU gettext.
34907
34908 2008-12-17  Bruno Haible  <bruno@clisp.org>
34909
34910         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34911         Suggested by Eric Blake.
34912
34913 2008-12-17  Bruno Haible  <bruno@clisp.org>
34914
34915         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34916
34917 2008-12-17  Bruno Haible  <bruno@clisp.org>
34918
34919         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34920         * modules/mbsinit (Depends-on): Add verify.
34921         Suggested by Paul Eggert.
34922
34923 2008-12-17  Bruno Haible  <bruno@clisp.org>
34924
34925         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34926         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34927         gl_FUNC_MBRTOWC.
34928         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34929         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34930         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34931         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34932         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34933         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34934         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34935         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34936         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34937         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34938         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34939         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34940         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34941         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34942         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34943         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34944         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34945         * modules/trim (configure.ac): Likewise.
34946
34947 2008-12-17  Bruno Haible  <bruno@clisp.org>
34948
34949         * modules/btowc-tests: New file.
34950         * tests/test-btowc1.sh: New file.
34951         * tests/test-btowc2.sh: New file.
34952         * tests/test-btowc.c: New file.
34953
34954         New module 'btowc'.
34955         * lib/wchar.in.h (btowc): New declaration.
34956         * lib/btowc.c: New file.
34957         * m4/btowc.m4: New file.
34958         * modules/btowc: New file.
34959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34960         HAVE_BTOWC.
34961         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34962         * doc/posix-functions/btowc.texi: Document the new module.
34963
34964 2008-12-17  Bruno Haible  <bruno@clisp.org>
34965
34966         New module 'mbsinit'.
34967         * lib/wchar.in.h (mbsinit): New declaration.
34968         * lib/mbsinit.c: New file.
34969         * m4/mbsinit.m4: New file.
34970         * modules/mbsinit: New file.
34971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34972         HAVE_MBSINIT.
34973         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34974         HAVE_MBSINIT.
34975         * doc/posix-functions/mbsinit.texi: Document the new module.
34976
34977 2008-12-16  Bruno Haible  <bruno@clisp.org>
34978
34979         * lib/unistd.in.h: Add comment.
34980         * tests/test-environ.c: Don't include <stdlib.h>.
34981
34982 2008-12-16  Bruno Haible  <bruno@clisp.org>
34983
34984         * lib/parse-duration.h (parse_duration): Document return value
34985         convention.
34986         * lib/parse-duration.c: Include specification header first. Add
34987         comments.
34988         (_): Remove macro.
34989         (parse_year_month_day, parse_hour_minute_second): Move side effects
34990         outside of strchr call.
34991         (parse_non_iso8601): Move side effects outside of isspace call.
34992         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34993         call.
34994
34995 2008-12-16  Bruno Haible  <bruno@clisp.org>
34996
34997         * tests/test-parse-duration.sh: Produce no output when the test
34998         succeeds.
34999
35000 2008-12-16  Bruno Haible  <bruno@clisp.org>
35001
35002         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35003         expressions.
35004
35005 2008-12-15  Bruno Haible  <bruno@clisp.org>
35006
35007         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35008         * doc/glibc-functions/flistxattr.texi: Likewise.
35009         * doc/glibc-functions/fopencookie.texi: Likewise.
35010         * doc/glibc-functions/fremovexattr.texi: Likewise.
35011         * doc/glibc-functions/fsetxattr.texi: Likewise.
35012         * doc/glibc-functions/getxattr.texi: Likewise.
35013         * doc/glibc-functions/lgetxattr.texi: Likewise.
35014         * doc/glibc-functions/listxattr.texi: Likewise.
35015         * doc/glibc-functions/llistxattr.texi: Likewise.
35016         * doc/glibc-functions/lremovexattr.texi: Likewise.
35017         * doc/glibc-functions/lsetxattr.texi: Likewise.
35018         * doc/glibc-functions/removexattr.texi: Likewise.
35019         * doc/glibc-functions/setxattr.texi: Likewise.
35020         * doc/posix-functions/open_memstream.texi: Likewise.
35021
35022 2008-12-15  Eric Blake  <ebb9@byu.net>
35023
35024         Update doc for cygwin 1.7.
35025         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35026         functions.
35027         * doc/posix-functions/fchmodat.texi: Likewise.
35028         * doc/posix-functions/fchownat.texi: Likewise.
35029         * doc/posix-functions/fdopendir.texi: Likewise.
35030         * doc/posix-functions/fmemopen.texi: Likewise.
35031         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35032         * doc/posix-functions/fstatat.texi: Likewise.
35033         * doc/posix-functions/futimens.texi: Likewise.
35034         * doc/posix-functions/gai_strerror.texi: Likewise.
35035         * doc/posix-functions/getaddrinfo.texi: Likewise.
35036         * doc/posix-functions/getnameinfo.texi: Likewise.
35037         * doc/posix-functions/if_freenameindex.texi: Likewise.
35038         * doc/posix-functions/if_indextoname.texi: Likewise.
35039         * doc/posix-functions/if_nameindex.texi: Likewise.
35040         * doc/posix-functions/if_nametoindex.texi: Likewise.
35041         * doc/posix-functions/insque.texi: Likewise.
35042         * doc/posix-functions/linkat.texi: Likewise.
35043         * doc/posix-functions/llrint.texi: Likewise.
35044         * doc/posix-functions/llrintf.texi: Likewise.
35045         * doc/posix-functions/llrintl.texi: Likewise.
35046         * doc/posix-functions/lockf.texi: Likewise.
35047         * doc/posix-functions/lrintl.texi: Likewise.
35048         * doc/posix-functions/mkdirat.texi: Likewise.
35049         * doc/posix-functions/mkfifoat.texi: Likewise.
35050         * doc/posix-functions/mknodat.texi: Likewise.
35051         * doc/posix-functions/mq_close.texi: Likewise.
35052         * doc/posix-functions/mq_getattr.texi: Likewise.
35053         * doc/posix-functions/mq_notify.texi: Likewise.
35054         * doc/posix-functions/mq_open.texi: Likewise.
35055         * doc/posix-functions/mq_receive.texi: Likewise.
35056         * doc/posix-functions/mq_send.texi: Likewise.
35057         * doc/posix-functions/mq_setattr.texi: Likewise.
35058         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35059         * doc/posix-functions/mq_timedsend.texi: Likewise.
35060         * doc/posix-functions/mq_unlink.texi: Likewise.
35061         * doc/posix-functions/open_memstream.texi: Likewise.
35062         * doc/posix-functions/openat.texi: Likewise.
35063         * doc/posix-functions/posix_fadvise.texi: Likewise.
35064         * doc/posix-functions/posix_fallocate.texi: Likewise.
35065         * doc/posix-functions/posix_madvise.texi: Likewise.
35066         * doc/posix-functions/posix_memalign.texi: Likewise.
35067         * doc/posix-functions/posix_openpt.texi: Likewise.
35068         * doc/posix-functions/readlinkat.texi: Likewise.
35069         * doc/posix-functions/remque.texi: Likewise.
35070         * doc/posix-functions/renameat.texi: Likewise.
35071         * doc/posix-functions/rintl.texi: Likewise.
35072         * doc/posix-functions/sem_unlink.texi: Likewise.
35073         * doc/posix-functions/shm_open.texi: Likewise.
35074         * doc/posix-functions/shm_unlink.texi: Likewise.
35075         * doc/posix-functions/signgam.texi: Likewise.
35076         * doc/posix-functions/sigset.texi: Likewise.
35077         * doc/posix-functions/stpcpy.texi: Likewise.
35078         * doc/posix-functions/stpncpy.texi: Likewise.
35079         * doc/posix-functions/strerror.texi: Likewise.
35080         * doc/posix-functions/strtod.texi: Likewise.
35081         * doc/posix-functions/symlinkat.texi: Likewise.
35082         * doc/posix-functions/unlinkat.texi: Likewise.
35083         * doc/posix-functions/utimensat.texi: Likewise.
35084         * doc/glibc-functions/bindresvport.texi: Likewise.
35085         * doc/glibc-functions/dn_expand.texi: Likewise.
35086         * doc/glibc-functions/exp10.texi: Likewise.
35087         * doc/glibc-functions/exp10f.texi: Likewise.
35088         * doc/glibc-functions/fgetxattr.texi: Likewise.
35089         * doc/glibc-functions/flistxattr.texi: Likewise.
35090         * doc/glibc-functions/fopencookie.texi: Likewise.
35091         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35092         * doc/glibc-functions/fremovexattr.texi: Likewise.
35093         * doc/glibc-functions/fsetxattr.texi: Likewise.
35094         * doc/glibc-functions/getifaddrs.texi: Likewise.
35095         * doc/glibc-functions/getxattr.texi: Likewise.
35096         * doc/glibc-functions/lgetxattr.texi: Likewise.
35097         * doc/glibc-functions/listxattr.texi: Likewise.
35098         * doc/glibc-functions/llistxattr.texi: Likewise.
35099         * doc/glibc-functions/lremovexattr.texi: Likewise.
35100         * doc/glibc-functions/lsetxattr.texi: Likewise.
35101         * doc/glibc-functions/pow10.texi: Likewise.
35102         * doc/glibc-functions/pow10f.texi: Likewise.
35103         * doc/glibc-functions/rcmd_af.texi: Likewise.
35104         * doc/glibc-functions/removexattr.texi: Likewise.
35105         * doc/glibc-functions/res_init.texi: Likewise.
35106         * doc/glibc-functions/res_mkquery.texi: Likewise.
35107         * doc/glibc-functions/res_query.texi: Likewise.
35108         * doc/glibc-functions/res_querydomain.texi: Likewise.
35109         * doc/glibc-functions/res_send.texi: Likewise.
35110         * doc/glibc-functions/rresvport_af.texi: Likewise.
35111         * doc/glibc-functions/setxattr.texi: Likewise.
35112         * doc/glibc-functions/strcasestr.texi: Likewise.
35113
35114 2008-12-15  Bruno Haible  <bruno@clisp.org>
35115
35116         Fix compilation error on OSF/1 4.0.
35117         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35118         <sys/time.h>, simply delegate to the system header.
35119         Reported by Daniel Richard G. <oss@teragram.com>.
35120
35121 2008-12-15  Bruno Haible  <bruno@clisp.org>
35122
35123         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35124         * doc/posix-functions/fchmodat.texi: Likewise.
35125         * doc/posix-functions/fchownat.texi: Likewise.
35126         * doc/posix-functions/fdopendir.texi: Likewise.
35127         * doc/posix-functions/fstatat.texi: Likewise.
35128         * doc/posix-functions/mkdirat.texi: Likewise.
35129         * doc/posix-functions/unlinkat.texi: Likewise.
35130
35131 2008-12-14  Bruno Haible  <bruno@clisp.org>
35132
35133         Update doc for POSIX:2008.
35134         * doc/posix-functions/faccessat.texi: New file.
35135         * doc/posix-functions/fchmodat.texi: New file.
35136         * doc/posix-functions/fchownat.texi: New file.
35137         * doc/posix-functions/fdopendir.texi: New file.
35138         * doc/posix-functions/fstatat.texi: New file.
35139         * doc/posix-functions/futimens.texi: New file.
35140         * doc/posix-functions/linkat.texi: New file.
35141         * doc/posix-functions/mkdirat.texi: New file.
35142         * doc/posix-functions/mkfifoat.texi: New file.
35143         * doc/posix-functions/mknodat.texi: New file.
35144         * doc/posix-functions/open_wmemstream.texi: New file.
35145         * doc/posix-functions/openat.texi: New file.
35146         * doc/posix-functions/psiginfo.texi: New file.
35147         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35148         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35149         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35150         * doc/posix-functions/readlinkat.texi: New file.
35151         * doc/posix-functions/renameat.texi: New file.
35152         * doc/posix-functions/strerror_l.texi: New file.
35153         * doc/posix-functions/symlinkat.texi: New file.
35154         * doc/posix-functions/unlinkat.texi: New file.
35155         * doc/posix-functions/utimensat.texi: New file.
35156         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35157
35158 2008-12-14  Bruno Haible  <bruno@clisp.org>
35159
35160         Update doc for POSIX:2008.
35161         * doc/posix-functions/alphasort.texi: Renamed from
35162         doc/glibc-functions/alphasort.texi.
35163         * doc/posix-functions/dirfd.texi: Renamed from
35164         doc/glibc-functions/dirfd.texi.
35165         * doc/posix-functions/dprintf.texi: Renamed from
35166         doc/glibc-functions/dprintf.texi.
35167         * doc/posix-functions/duplocale.texi: Renamed from
35168         doc/glibc-functions/duplocale.texi.
35169         * doc/posix-functions/fexecve.texi: Renamed from
35170         doc/glibc-functions/fexecve.texi.
35171         * doc/posix-functions/fmemopen.texi: Renamed from
35172         doc/glibc-functions/fmemopen.texi.
35173         * doc/posix-functions/freelocale.texi: Renamed from
35174         doc/glibc-functions/freelocale.texi.
35175         * doc/posix-functions/getdate_err.texi: Renamed from
35176         doc/glibc-functions/getdate_err.texi.
35177         * doc/posix-functions/isalnum_l.texi: Renamed from
35178         doc/glibc-functions/isalnum_l.texi.
35179         * doc/posix-functions/isalpha_l.texi: Renamed from
35180         doc/glibc-functions/isalpha_l.texi.
35181         * doc/posix-functions/isblank_l.texi: Renamed from
35182         doc/glibc-functions/isblank_l.texi.
35183         * doc/posix-functions/iscntrl_l.texi: Renamed from
35184         doc/glibc-functions/iscntrl_l.texi.
35185         * doc/posix-functions/isdigit_l.texi: Renamed from
35186         doc/glibc-functions/isdigit_l.texi.
35187         * doc/posix-functions/isgraph_l.texi: Renamed from
35188         doc/glibc-functions/isgraph_l.texi.
35189         * doc/posix-functions/islower_l.texi: Renamed from
35190         doc/glibc-functions/islower_l.texi.
35191         * doc/posix-functions/isprint_l.texi: Renamed from
35192         doc/glibc-functions/isprint_l.texi.
35193         * doc/posix-functions/ispunct_l.texi: Renamed from
35194         doc/glibc-functions/ispunct_l.texi.
35195         * doc/posix-functions/isspace_l.texi: Renamed from
35196         doc/glibc-functions/isspace_l.texi.
35197         * doc/posix-functions/isupper_l.texi: Renamed from
35198         doc/glibc-functions/isupper_l.texi.
35199         * doc/posix-functions/iswalnum_l.texi: Renamed from
35200         doc/glibc-functions/iswalnum_l.texi.
35201         * doc/posix-functions/iswalpha_l.texi: Renamed from
35202         doc/glibc-functions/iswalpha_l.texi.
35203         * doc/posix-functions/iswblank_l.texi: Renamed from
35204         doc/glibc-functions/iswblank_l.texi.
35205         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35206         doc/glibc-functions/iswcntrl_l.texi.
35207         * doc/posix-functions/iswctype_l.texi: Renamed from
35208         doc/glibc-functions/iswctype_l.texi.
35209         * doc/posix-functions/iswdigit_l.texi: Renamed from
35210         doc/glibc-functions/iswdigit_l.texi.
35211         * doc/posix-functions/iswgraph_l.texi: Renamed from
35212         doc/glibc-functions/iswgraph_l.texi.
35213         * doc/posix-functions/iswlower_l.texi: Renamed from
35214         doc/glibc-functions/iswlower_l.texi.
35215         * doc/posix-functions/iswprint_l.texi: Renamed from
35216         doc/glibc-functions/iswprint_l.texi.
35217         * doc/posix-functions/iswpunct_l.texi: Renamed from
35218         doc/glibc-functions/iswpunct_l.texi.
35219         * doc/posix-functions/iswspace_l.texi: Renamed from
35220         doc/glibc-functions/iswspace_l.texi.
35221         * doc/posix-functions/iswupper_l.texi: Renamed from
35222         doc/glibc-functions/iswupper_l.texi.
35223         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35224         doc/glibc-functions/iswxdigit_l.texi.
35225         * doc/posix-functions/isxdigit_l.texi: Renamed from
35226         doc/glibc-functions/isxdigit_l.texi.
35227         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35228         doc/glibc-functions/mbsnrtowcs.texi.
35229         * doc/posix-functions/mkdtemp.texi: Renamed from
35230         doc/glibc-functions/mkdtemp.texi.
35231         * doc/posix-functions/newlocale.texi: Renamed from
35232         doc/glibc-functions/newlocale.texi.
35233         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35234         doc/glibc-functions/nl_langinfo_l.texi.
35235         * doc/posix-functions/open_memstream.texi: Renamed from
35236         doc/glibc-functions/open_memstream.texi.
35237         * doc/posix-functions/opterr.texi: Renamed from
35238         doc/glibc-functions/opterr.texi.
35239         * doc/posix-functions/optind.texi: Renamed from
35240         doc/glibc-functions/optind.texi.
35241         * doc/posix-functions/optopt.texi: Renamed from
35242         doc/glibc-functions/optopt.texi.
35243         * doc/posix-functions/psignal.texi: Renamed from
35244         doc/glibc-functions/psignal.texi.
35245         * doc/posix-functions/scandir.texi: Renamed from
35246         doc/glibc-functions/scandir.texi.
35247         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35248         doc/glibc-functions/sched_get_priority_min.texi.
35249         * doc/posix-functions/signgam.texi: Renamed from
35250         doc/glibc-functions/signgam.texi.
35251         * doc/posix-functions/stpcpy.texi: Renamed from
35252         doc/glibc-functions/stpcpy.texi.
35253         * doc/posix-functions/stpncpy.texi: Renamed from
35254         doc/glibc-functions/stpncpy.texi.
35255         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35256         doc/glibc-functions/strcasecmp_l.texi.
35257         * doc/posix-functions/strcoll_l.texi: Renamed from
35258         doc/glibc-functions/strcoll_l.texi.
35259         * doc/posix-functions/strfmon_l.texi: Renamed from
35260         doc/glibc-functions/strfmon_l.texi.
35261         * doc/posix-functions/strftime_l.texi: Renamed from
35262         doc/glibc-functions/strftime_l.texi.
35263         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35264         doc/glibc-functions/strncasecmp_l.texi.
35265         * doc/posix-functions/strndup.texi: Renamed from
35266         doc/glibc-functions/strndup.texi.
35267         * doc/posix-functions/strnlen.texi: Renamed from
35268         doc/glibc-functions/strnlen.texi.
35269         * doc/posix-functions/strsignal.texi: Renamed from
35270         doc/glibc-functions/strsignal.texi.
35271         * doc/posix-functions/strxfrm_l.texi: Renamed from
35272         doc/glibc-functions/strxfrm_l.texi.
35273         * doc/posix-functions/timer_gettime.texi: Renamed from
35274         doc/glibc-functions/timer_gettime.texi.
35275         * doc/posix-functions/tolower_l.texi: Renamed from
35276         doc/glibc-functions/tolower_l.texi.
35277         * doc/posix-functions/toupper_l.texi: Renamed from
35278         doc/glibc-functions/toupper_l.texi.
35279         * doc/posix-functions/towctrans_l.texi: Renamed from
35280         doc/glibc-functions/towctrans_l.texi.
35281         * doc/posix-functions/towlower_l.texi: Renamed from
35282         doc/glibc-functions/towlower_l.texi.
35283         * doc/posix-functions/towupper_l.texi: Renamed from
35284         doc/glibc-functions/towupper_l.texi.
35285         * doc/posix-functions/uselocale.texi: Renamed from
35286         doc/glibc-functions/uselocale.texi.
35287         * doc/posix-functions/vdprintf.texi: Renamed from
35288         doc/glibc-functions/vdprintf.texi.
35289         * doc/posix-functions/wcpcpy.texi:
35290         Renamed from doc/glibc-functions/wcpcpy.texi.
35291         * doc/posix-functions/wcpncpy.texi: Renamed from
35292         doc/glibc-functions/wcpncpy.texi.
35293         * doc/posix-functions/wcscasecmp.texi: Renamed from
35294         doc/glibc-functions/wcscasecmp.texi.
35295         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35296         doc/glibc-functions/wcscasecmp_l.texi.
35297         * doc/posix-functions/wcscoll_l.texi: Renamed from
35298         doc/glibc-functions/wcscoll_l.texi.
35299         * doc/posix-functions/wcsdup.texi: Renamed from
35300         doc/glibc-functions/wcsdup.texi.
35301         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35302         doc/glibc-functions/wcsncasecmp.texi.
35303         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35304         doc/glibc-functions/wcsncasecmp_l.texi.
35305         * doc/posix-functions/wcsnlen.texi: Renamed from
35306         doc/glibc-functions/wcsnlen.texi.
35307         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35308         doc/glibc-functions/wcsnrtombs.texi.
35309         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35310         doc/glibc-functions/wcsxfrm_l.texi.
35311         * doc/posix-functions/wctrans_l.texi: Renamed from
35312         doc/glibc-functions/wctrans_l.texi.
35313         * doc/posix-functions/wctype_l.texi: Renamed from
35314         doc/glibc-functions/wctype_l.texi.
35315         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35316         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35317         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35318         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35319         these subsections.
35320         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35321         Remove sections.
35322
35323 2008-12-14  Bruno Haible  <bruno@clisp.org>
35324
35325         Update doc for POSIX:2008.
35326         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35327
35328 2008-12-14  Bruno Haible  <bruno@clisp.org>
35329
35330         Update doc for POSIX:2008.
35331         * doc/pastposix-functions/bcmp.texi: Renamed from
35332         doc/posix-functions/bcmp.texi.
35333         * doc/pastposix-functions/bcopy.texi: Renamed from
35334         doc/posix-functions/bcopy.texi.
35335         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35336         doc/posix-functions/bsd_signal.texi.
35337         * doc/pastposix-functions/bzero.texi: Renamed from
35338         doc/posix-functions/bzero.texi.
35339         * doc/pastposix-functions/ecvt.texi: Renamed from
35340         doc/posix-functions/ecvt.texi.
35341         * doc/pastposix-functions/fcvt.texi: Renamed from
35342         doc/posix-functions/fcvt.texi.
35343         * doc/pastposix-functions/ftime.texi: Renamed from
35344         doc/posix-functions/ftime.texi.
35345         * doc/pastposix-functions/gcvt.texi: Renamed from
35346         doc/posix-functions/gcvt.texi.
35347         * doc/pastposix-functions/getcontext.texi: Renamed from
35348         doc/posix-functions/getcontext.texi.
35349         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35350         doc/posix-functions/gethostbyaddr.texi.
35351         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35352         doc/posix-functions/gethostbyname.texi.
35353         * doc/pastposix-functions/getwd.texi: Renamed from
35354         doc/posix-functions/getwd.texi.
35355         * doc/pastposix-functions/h_errno.texi: Renamed from
35356         doc/posix-functions/h_errno.texi.
35357         * doc/pastposix-functions/index.texi: Renamed from
35358         doc/posix-functions/index.texi.
35359         * doc/pastposix-functions/makecontext.texi: Renamed from
35360         doc/posix-functions/makecontext.texi.
35361         * doc/pastposix-functions/mktemp.texi: Renamed from
35362         doc/posix-functions/mktemp.texi.
35363         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35364         doc/posix-functions/pthread_attr_getstackaddr.texi.
35365         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35366         doc/posix-functions/pthread_attr_setstackaddr.texi.
35367         * doc/pastposix-functions/rindex.texi: Renamed from
35368         doc/posix-functions/rindex.texi.
35369         * doc/pastposix-functions/scalb.texi: Renamed from
35370         doc/posix-functions/scalb.texi.
35371         * doc/pastposix-functions/setcontext.texi: Renamed from
35372         doc/posix-functions/setcontext.texi.
35373         * doc/pastposix-functions/swapcontext.texi: Renamed from
35374         doc/posix-functions/swapcontext.texi.
35375         * doc/pastposix-functions/ualarm.texi: Renamed from
35376         doc/posix-functions/ualarm.texi.
35377         * doc/pastposix-functions/usleep.texi: Renamed from
35378         doc/posix-functions/usleep.texi.
35379         * doc/pastposix-functions/vfork.texi: Renamed from
35380         doc/posix-functions/vfork.texi.
35381         * doc/pastposix-functions/wcswcs.texi: Renamed from
35382         doc/posix-functions/wcswcs.texi.
35383         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35384         (Function Substitutes): Update.
35385
35386 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35387
35388         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35389         m4/strerror.m4.
35390
35391 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35392             Bruno Haible  <bruno@clisp.org>
35393
35394         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35395
35396 2008-12-13  Bruno Haible  <bruno@clisp.org>
35397
35398         * modules/strtoull (Depends-on): Remove unistd.
35399
35400 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35401
35402         * modules/strtoull (Depends-on): Add stdlib.
35403
35404 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35405
35406         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35407
35408 2008-12-10  Jim Meyering  <meyering@redhat.com>
35409
35410         gl_ASSERT: don't say assertions are disabled when they're not
35411         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35412         "checking whether to enable assertions... no", when they are in
35413         fact enabled.  This is solely a bug in the output of configure.
35414         In spite of saying "no", NDEBUG was not defined in that case.
35415         Also, as noted by Eric Blake, leave assertions enabled upon
35416         --enable-assert=INVALID.
35417
35418 2008-12-10  Bruno Haible  <bruno@clisp.org>
35419
35420         Change MODULES.html to refer to POSIX:2008 where possible.
35421         * MODULES.html.sh (POSIX2008_URL): New variable.
35422         (posix_headers): Remove sys/timeb, ucontext.
35423         (posix2001_headers): New variable.
35424         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35425         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35426         index, makecontext, mktemp, pthread_attr_getstackaddr,
35427         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35428         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35429         (posix2001_functions): New variable.
35430         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35431         otherwise.
35432
35433 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35434
35435         add missing include to parse-duration.c
35436         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35437         * modules/parse-duration (Depends-on): Add xalloc.
35438
35439         fix sed script reading maint.mk
35440         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35441         (syntax-check-rules): Use it.
35442
35443 2008-12-09  Bruno Haible  <bruno@clisp.org>
35444
35445         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35446         MacOS X 10.4/PowerPC.
35447         Reported by Simon Josefsson.
35448
35449 2008-12-08  Jim Meyering  <meyering@redhat.com>
35450
35451         work around mingw's lack of some S_IF definitions
35452         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35453         Reported by Simon Josefsson.
35454
35455 2008-12-08  Bruno Haible  <bruno@clisp.org>
35456
35457         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35458         applied to variables. Needed on MacOS X 10.4/PowerPC.
35459         Reported by Simon Josefsson.
35460
35461 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35462         and Eric Blake  <ebb9@byu.net>
35463
35464         assert: honor --enable-assert
35465         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35466         order to honor --enable-assert, rather than treating it as a
35467         synonym for --disable-assert.
35468
35469 2008-12-08  Jim Meyering  <meyering@redhat.com>
35470
35471         * lib/posixtm.c: Remove now-useless declaration of mktime.
35472
35473         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35474
35475 2008-12-07  Bruno Haible  <bruno@clisp.org>
35476
35477         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35478         test_once): Mark functions as static.
35479         * tests/test-tls.c (test_tls): Likewise.
35480
35481 2008-12-07  Bruno Haible  <bruno@clisp.org>
35482
35483         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35484         iconv_register_autodetect.
35485
35486 2008-12-07  Jim Meyering  <meyering@redhat.com>
35487
35488         posixtm.c: avoid a warning
35489         * lib/posixtm.c (posixtime): Don't initialize tm0.
35490         It's no longer needed to placate gcc4's -Wuninitialized,
35491         and the attempt to placate would elicit a new warning.
35492
35493         unicodeio.c: mark unused parameters
35494         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35495         (fallback_failure_callback): Likewise.
35496
35497 2008-12-07  Bruno Haible  <bruno@clisp.org>
35498
35499         * gnulib-tool (func_create_testdir): When building the tests
35500         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35501         Reported by Simon Josefsson.
35502
35503 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35504
35505         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35506
35507 2008-12-06  Bruno Haible  <bruno@clisp.org>
35508
35509         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35510         Suggested by Eric Blake.
35511
35512 2008-12-06  Bruno Haible  <bruno@clisp.org>
35513
35514         Fix a c-stack test failure on MacOS X.
35515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35516         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35517         handler for SIGBUS as well.
35518         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35519         install a signal handler for SIGBUS as well.
35520         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35521
35522 2008-12-06  Bruno Haible  <bruno@clisp.org>
35523
35524         Advocacy documentation.
35525         * doc/gnulib-intro.texi (Benefits): New section.
35526         * doc/gnulib.texi: Update.
35527
35528 2008-12-06  Bruno Haible  <bruno@clisp.org>
35529
35530         Document the 'manywarnings' module.
35531         * doc/manywarnings.texi: New file.
35532         * doc/gnulib.texi: Include it.
35533
35534 2008-12-05  Eric Blake  <ebb9@byu.net>
35535
35536         tests: silence some gcc warnings
35537         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35538         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35539         type mismatches.
35540
35541 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35542             Bruno Haible  <bruno@clisp.org>
35543
35544         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35545
35546 2008-11-29  Jim Meyering  <meyering@redhat.com>
35547
35548         unicodeio.c: mark unused parameters
35549         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35550         (fallback_failure_callback): Likewise.
35551
35552         fts: fix a thinko
35553         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35554         (set_stat_type): Return S_IF*-valued "type" directly.
35555         Prompted by James Youngman's spotting a related bug.
35556         Confirmed by further testing through find.
35557
35558         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35559         * lib/fts.c (D_TYPE): Define.
35560         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35561         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35562         (s_ifmt_shift_bits): New function.
35563         (set_stat_type): New function.
35564         (fts_build): When not calling fts_stat, call set_stat_type
35565         to propagate dirent.d_type info to fts_read caller.
35566         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35567         fts_statp->st_mode type information may be valid.
35568
35569 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35570
35571         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35572         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35573         <sds@gnu.org>.
35574
35575 2008-11-20  Bruno Haible  <bruno@clisp.org>
35576
35577         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35578         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35579         INCLUDE_NEXT.
35580         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35581         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35582         * modules/math (Makefile.am): Substitute
35583         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35584         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35585
35586 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35587             Bruno Haible  <bruno@clisp.org>
35588
35589         * lib/stdint.in.h: Define all type macros so that their expansion is
35590         a single typedef'ed token. Fixes a compilation failure in Boost which
35591         does "using ::int8_t;".
35592
35593 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35594
35595         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35596         gl_MANYWARN_ALL_GCC.
35597         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35598         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35599         * modules/manywarnings: New file.
35600         * MODULES.html.sh: Mention manywarnings module.
35601
35602 2008-11-18  Bruno Haible  <bruno@clisp.org>
35603
35604         * doc/gnulib-tool.texi (Unit tests): New section.
35605
35606 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35607
35608         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35609         paths like 'lib/po/foo.po'.
35610
35611 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35612
35613         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35614         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35615
35616 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35617
35618         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35619         parameter works.
35620
35621 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35622
35623         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35624
35625 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35626
35627         * modules/parse-duration-tests: New file.
35628         * tests/test-parse-duration.sh: New file.
35629         * tests/test-parse-duration.c: New file.
35630
35631         New module 'parse-duration'.
35632         * lib/parse-duration.h: New file.
35633         * lib/parse-duration.c: New file.
35634         * modules/parse-duration: New file.
35635
35636 2008-11-17  Bruno Haible  <bruno@clisp.org>
35637
35638         * tests/test-select-out.sh: Comment out the first pipe test.
35639         Reported by Simon Josefsson.
35640
35641 2008-11-17  Bruno Haible  <bruno@clisp.org>
35642
35643         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35645         gl_HOSTENT.
35646
35647 2008-11-17  Bruno Haible  <bruno@clisp.org>
35648
35649         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35650         -lnetwork and -lnet. Needed for Haiku and BeOS.
35651
35652 2008-11-16  Bruno Haible  <bruno@clisp.org>
35653
35654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35655
35656 2008-11-16  Bruno Haible  <bruno@clisp.org>
35657
35658         Avoid test failure on Haiku.
35659         * tests/test-fsync.c: Include <errno.h>.
35660         (main): Don't require that fsync (0) fails.
35661
35662 2008-11-15  Bruno Haible  <bruno@clisp.org>
35663
35664         New module 'hostent'.
35665         * modules/hostent: New file.
35666         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35667
35668 2008-11-15  Bruno Haible  <bruno@clisp.org>
35669
35670         New module 'servent'.
35671         * modules/servent: New file.
35672         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35673
35674 2008-11-15  Bruno Haible  <bruno@clisp.org>
35675
35676         Avoid generating same test program with two different rules.
35677         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35678         test-frexp to test-frexp-nolibm.
35679         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35680         test-frexpl to test-frexpl-nolibm.
35681
35682 2008-11-15  Bruno Haible  <bruno@clisp.org>
35683
35684         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35685         $(FREXPL_LIBM).
35686
35687 2008-11-15  Bruno Haible  <bruno@clisp.org>
35688
35689         * lib/netdb.in.h: Activate the definitions also when the system's
35690         <netdb.h> has 'struct addrinfo'.
35691         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35692         EAI_OVERFLOW or AI_NUMERICSERV.
35693         * doc/posix-headers/netdb.texi: Document the problem.
35694
35695 2008-11-15  Bruno Haible  <bruno@clisp.org>
35696
35697         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35698
35699         Make the 'sched' module work on platforms where <sched.h> exists but
35700         is incomplete (such as Haiku).
35701         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35702         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35703         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35704         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35705         HAVE_STRUCT_SCHED_PARAM.
35706         * modules/sched (Depends-on): Add include_next.
35707         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35708         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35709         * doc/posix-headers/sched.texi: Document the issue.
35710
35711 2008-11-13  Jim Meyering  <meyering@redhat.com>
35712
35713         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35714         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35715         test would fail due to the difference in the Report bugs to ...
35716         line.  The expected address is empty, "<>", while the actual
35717         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35718
35719 2008-11-12  Bruno Haible  <bruno@clisp.org>
35720
35721         lstat: don't compile lstat.c on systems lacking lstat
35722         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35723         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35724         Reported by Daniel P. Berrange via Jim Meyering.
35725
35726 2008-11-12  Jim Meyering  <meyering@redhat.com>
35727
35728         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35729
35730 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35731
35732         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35733         instead.
35734
35735 2008-11-12  Bruno Haible  <bruno@clisp.org>
35736
35737         * lib/unicodeio.c: Include unistr.h.
35738         (utf8_wctomb): Remove function.
35739         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35740
35741 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35742
35743         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35744         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35745         <bruno@clisp.org>.
35746         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35747
35748 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35749
35750         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35751         * doc/gnulib.texi: Add section for warnings.
35752
35753 2008-11-11  Bruno Haible  <bruno@clisp.org>
35754
35755         * lib/sockets.h: Add a comment.
35756
35757 2008-11-11  Karl Berry  <karl@gnu.org>
35758
35759         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35760
35761 2008-11-11  Eric Blake  <ebb9@byu.net>
35762
35763         fdl.texi: avoid git symlinks
35764         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35765
35766 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35767
35768         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35769
35770 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35771
35772         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35773         (gl_WARN_ADD): Substitute $2 if literal.
35774
35775 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35776
35777         * m4/warning.m4: Remove.
35778
35779 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35780
35781         * m4/warnings.m4: Almost complete rewrite. :-)
35782
35783 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35784
35785         * modules/warnings: New module.
35786         * m4/warnings.m4: New file.
35787         * MODULES.html.sh: Mention warnings module.
35788         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35789         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35790
35791 2008-11-10  Eric Blake  <ebb9@byu.net>
35792
35793         fdl.texi: make a symlink to the latest version
35794         * doc/standards.texi: Revert today's earlier change.
35795         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35796         * doc/fdl.texi: ...and replace this with a symlink to the newer
35797         fdl-1.3.texi.
35798
35799 2008-11-10  Bruno Haible  <bruno@clisp.org>
35800
35801         * tests/test-select-fd.c (main): Accept the result file name as fourth
35802         argument.
35803         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35804         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35805
35806 2008-11-10  Bruno Haible  <bruno@clisp.org>
35807
35808         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35809         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35810         as autoconf-substituted macros.
35811         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35813         gl_NETDB_H_DEFAULTS. Set these variables.
35814         * modules/netdb (Makefile.am): Substitute these variables.
35815
35816 2008-11-10  Eric Blake  <ebb9@byu.net>
35817
35818         standards.texi: include correct file for FDL 1.3
35819         * doc/standards.texi (GNU Free Documentation License): Change
35820         include file to pull in FDL 1.3, not 1.2.
35821
35822         fdl.texi: revert accidental change to license
35823         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35824
35825 2008-11-10  Bruno Haible  <bruno@clisp.org>
35826
35827         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35828         cross-compiling guesses also when the native compile gives no result.
35829
35830 2008-11-10  Bruno Haible  <bruno@clisp.org>
35831
35832         * lib/spawni.c (__spawni): Force variable into the stack.
35833
35834 2008-11-10  Bruno Haible  <bruno@clisp.org>
35835
35836         Add support for Haiku.
35837         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35838         glibc and BeOS, but also on Haiku.
35839         * lib/fpurge.c (fpurge): Likewise.
35840         * lib/freadable.c (freadable): Likewise.
35841         * lib/freadahead.c (freadahead): Likewise.
35842         * lib/freading.c (freading): Likewise.
35843         * lib/freadptr.c (freadptr): Likewise.
35844         * lib/freadseek.c (freadptrinc): Likewise.
35845         * lib/fseeko.c (rpl_fseeko): Likewise.
35846         * lib/fseterr.c (fseterr): Likewise.
35847         * lib/fwritable.c (fwritable): Likewise.
35848         * lib/fwriting.c (fwriting): Likewise.
35849         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35850
35851 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35852
35853         * lib/config.charset: Treat Haiku like BeOS.
35854
35855 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35856
35857         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35858         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35859
35860 2008-11-08  Bruno Haible  <bruno@clisp.org>
35861
35862         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35863         AC_CACHE_CHECK.
35864
35865 2008-11-08  Bruno Haible  <bruno@clisp.org>
35866
35867         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35868
35869 2008-11-08  Bruno Haible  <bruno@clisp.org>
35870
35871         * tests/test-select-fd.c: New file.
35872         * tests/test-select-in.sh: New file.
35873         * tests/test-select-out.sh: New file.
35874         * tests/test-select-stdin.c: New file.
35875         * modules/select-tests (Files): Add the new files.
35876         (Depends-on): Add gettimeofday.
35877         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35878         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35879         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35880
35881 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35882             Bruno Haible  <bruno@clisp.org>
35883
35884         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35885
35886 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35887
35888         * build-aux/pmccabe2html: Added support for C++ source files.
35889
35890 2008-11-05  Ben Pfaff  <blp@gnu.org>
35891
35892         Fix lib/close.c build on Windows.
35893         * modules/close (Files): Add lib/w32sock.h.
35894
35895 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35896
35897         Accept Bison's NEWS format.
35898         * build-aux/announce-gen (print_news_deltas): Tweak
35899         $re_prefix.
35900
35901 2008-11-04  Bruno Haible  <bruno@clisp.org>
35902
35903         * modules/random_r (Maintainer): Add glibc.
35904
35905 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35906
35907         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35908         by karl@freefriends.org (Karl Berry).
35909         * doc/alloca.texi: Likewise.
35910         * doc/c-ctype.texi: Likewise.
35911         * doc/c-strcase.texi: Likewise.
35912         * doc/c-strcaseeq.texi: Likewise.
35913         * doc/c-strcasestr.texi: Likewise.
35914         * doc/c-strstr.texi: Likewise.
35915         * doc/c-strtod.texi: Likewise.
35916         * doc/c-strtold.texi: Likewise.
35917         * doc/ctime.texi: Likewise.
35918         * doc/error.texi: Likewise.
35919         * doc/fdl.texi: Likewise.
35920         * doc/gcd.texi: Likewise.
35921         * doc/getdate.texi: Likewise.
35922         * doc/gnulib-intro.texi: Likewise.
35923         * doc/gnulib-tool.texi: Likewise.
35924         * doc/gnulib.texi: Likewise.
35925         * doc/inet_ntoa.texi: Likewise.
35926         * doc/maintain.texi: Likewise.
35927         * doc/make-stds.texi: Likewise.
35928         * doc/quote.texi: Likewise.
35929         * doc/regexprops-generic.texi: Likewise.
35930         * doc/standards.texi: Likewise.
35931         * doc/verify.texi: Likewise.
35932         * doc/visibility.texi: Likewise.
35933         * doc/gnulib.texi (GNU Free Documentation License): Include
35934         fdl-1.3.texi instead of fdl.texi.
35935
35936 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35937
35938         * doc/fdl-1.3.texi: New file, from
35939         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35940         * modules/fdl-1.3: Add.
35941         * MODULES.html.sh: Add fdl-1.3.
35942
35943 2008-11-03  Bruno Haible  <bruno@clisp.org>
35944
35945         Make determination of absolute name of header file work with AIX xlc.
35946         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35947         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35948         preprocessing.
35949         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35950         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35951
35952 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35953
35954         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35955         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35956         <ludo@gnu.org>.
35957
35958 2008-11-02  Bruno Haible  <bruno@clisp.org>
35959
35960         Mark 'strpbrk' obsolete.
35961         * modules/strpbrk (Status, Notice): New sections.
35962         * modules/strtok_r (Depends-on): Add strpbrk.
35963
35964 2008-11-02  Bruno Haible  <bruno@clisp.org>
35965
35966         Mark 'strdup' obsolete.
35967         * modules/strdup (Status, Notice): New sections.
35968         * modules/findprog (Depends-on): Add strdup.
35969         * modules/getaddrinfo (Depends-on): Likewise.
35970         * modules/localename (Depends-on): Likewise.
35971         * modules/relocatable-lib (Depends-on): Likewise.
35972         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35973         * modules/relocatable-prog (Depends-on): Likewise.
35974         * modules/trim (Depends-on): Likewise.
35975         * modules/unictype/gen-ctype (Depends-on): Likewise.
35976         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35977
35978 2008-11-02  Bruno Haible  <bruno@clisp.org>
35979
35980         Mark 'strcspn' obsolete.
35981         * modules/strcspn (Status, Notice): New sections.
35982
35983 2008-11-02  Bruno Haible  <bruno@clisp.org>
35984
35985         Mark 'rmdir' obsolete.
35986         * modules/rmdir (Status, Notice): New sections.
35987         * modules/clean-temp (Depends-on): Add rmdir.
35988         * modules/openat (Depends-on): Likewise.
35989
35990 2008-11-02  Bruno Haible  <bruno@clisp.org>
35991
35992         Mark 'raise' obsolete.
35993         * modules/raise (Status, Notice): New sections.
35994         (Include): Specify <signal.h>.
35995         * modules/stdio (Depends-on): Add raise.
35996         * modules/write (Depends-on): Likewise.
35997
35998 2008-11-02  Bruno Haible  <bruno@clisp.org>
35999
36000         Mark 'memset' obsolete.
36001         * modules/memset (Status, Notice): New sections.
36002
36003 2008-11-02  Bruno Haible  <bruno@clisp.org>
36004
36005         Mark 'memmove' obsolete.
36006         * modules/memmove (Status, Notice): New sections.
36007         * modules/argp (Depends-on): Add memmove.
36008         * modules/argz (Depends-on): Likewise.
36009         * modules/canonicalize (Depends-on): Likewise.
36010         * modules/canonicalize-lgpl (Depends-on): Likewise.
36011         * modules/fts (Depends-on): Likewise.
36012         * modules/getcwd (Depends-on): Likewise.
36013         * modules/human (Depends-on): Likewise.
36014         * modules/regex (Depends-on): Likewise.
36015         * modules/striconveh (Depends-on): Likewise.
36016         * modules/trim (Depends-on): Likewise.
36017         * modules/unistr/u8-move (Depends-on): Likewise.
36018         * modules/unistr/u16-move (Depends-on): Likewise.
36019         * modules/unistr/u32-move (Depends-on): Likewise.
36020
36021 2008-11-02  Bruno Haible  <bruno@clisp.org>
36022
36023         Mark 'memcpy' obsolete.
36024         * modules/memcpy (Status, Notice): New sections.
36025
36026 2008-11-02  Bruno Haible  <bruno@clisp.org>
36027
36028         Mark 'memcmp' obsolete.
36029         * modules/memcmp (Status, Notice): New sections.
36030         * modules/argmatch (Depends-on): Add memchr.
36031         * modules/backupfile (Depends-on): Likewise.
36032         * modules/c-strcasestr (Depends-on): Likewise.
36033         * modules/crypto/des (Depends-on): Likewise.
36034         * modules/csharpcomp (Depends-on): Likewise.
36035         * modules/fnmatch (Depends-on): Likewise.
36036         * modules/git-merge-changelog (Depends-on): Likewise.
36037         * modules/isnand (Depends-on): Likewise.
36038         * modules/isnand-nolibm (Depends-on): Likewise.
36039         * modules/isnanf (Depends-on): Likewise.
36040         * modules/isnanf-nolibm (Depends-on): Likewise.
36041         * modules/isnanl (Depends-on): Likewise.
36042         * modules/isnanl-nolibm (Depends-on): Likewise.
36043         * modules/mbchar (Depends-on): Likewise.
36044         * modules/memcoll (Depends-on): Likewise.
36045         * modules/quotearg (Depends-on): Likewise.
36046         * modules/regex (Depends-on): Likewise.
36047         * modules/relocatable-prog (Depends-on): Likewise.
36048         * modules/same (Depends-on): Likewise.
36049         * modules/signbit (Depends-on): Likewise.
36050         * modules/strcasestr-simple (Depends-on): Likewise.
36051         * modules/unictype/gen-ctype (Depends-on): Likewise.
36052         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36053         * modules/uniname/uniname (Depends-on): Likewise.
36054         * modules/unistr/u8-cmp (Depends-on): Likewise.
36055
36056 2008-11-02  Bruno Haible  <bruno@clisp.org>
36057
36058         Mark 'memchr' obsolete.
36059         * modules/memchr (Status, Notice): New sections.
36060         * modules/argp (Depends-on): Add memchr.
36061         * modules/base64 (Depends-on): Likewise.
36062         * modules/c-strcasestr (Depends-on): Likewise.
36063         * modules/chdir-long (Depends-on): Likewise.
36064         * modules/fnmatch (Depends-on): Likewise.
36065         * modules/getsubopt (Depends-on): Likewise.
36066         * modules/git-merge-changelog (Depends-on): Likewise.
36067         * modules/glob (Depends-on): Likewise.
36068         * modules/strcasestr-simple (Depends-on): Likewise.
36069         * modules/strnlen (Depends-on): Likewise.
36070
36071 2008-11-02  Bruno Haible  <bruno@clisp.org>
36072
36073         Mark 'atexit' obsolete.
36074         * modules/atexit (Status, Notice): New sections.
36075         * modules/chdir-long (Depends-on): Add atexit.
36076         * modules/wait-process (Depends-on): Likewise.
36077
36078 2008-11-02  Bruno Haible  <bruno@clisp.org>
36079
36080         * gnulib-tool: New option --with-obsolete.
36081         (func_usage): Document it.
36082         (func_modules_transitive_closure): Drop obsolete dependencies if
36083         incobsolete is not true.
36084         (func_import): Read and save the incobsolete variable to the cache.
36085
36086 2008-11-02  Bruno Haible  <bruno@clisp.org>
36087
36088         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36089         * gnulib-tool: New option --extract-status.
36090         (func_usage): Document it.
36091         (sed_extract_prog): Recognize it.
36092         (func_get_status): New function.
36093
36094 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36095
36096         * modules/sockets (License): Change from LGPL to LGPLv2+.
36097
36098 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36099
36100         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36101
36102 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36103
36104         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36105         Mention times and sys_times.
36106         * modules/sys_times, modules/sys_times-tests: New modules.
36107         * modules/times, modules/times-tests: Likewise
36108         * m4/sys_times_h.m4: New file.
36109         * lib/sys_times.in.h: Likewise
36110         * lib/times.c: Likewise.
36111         * tests/test-sys_times.c: Likewise.
36112         * tests/test-times.c: Likewise.
36113         * doc/posix-headers/sys_times.texi: Update.
36114         * doc/posix-functions/times.texi: Update.
36115
36116 2008-10-28  Jim Meyering  <meyering@redhat.com>
36117
36118         * modules/tempname (Depends-on): Add lstat.
36119
36120         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36121
36122 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36123
36124         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36125         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36126         using idiom used elsewhere in gnulib.
36127
36128 2008-10-27  Jim Meyering  <meyering@redhat.com>
36129
36130         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36131
36132 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36133
36134         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36135         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36136         programs.
36137         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36138
36139 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36140
36141         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36142
36143 2008-10-27  Bruno Haible  <bruno@clisp.org>
36144
36145         * tests/test-lstat.c: Include <stdio.h>.
36146
36147 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36148
36149         * modules/lstat-tests: New module.
36150         * tests/test-lstat.c: New file.
36151
36152 2008-10-26  Jim Meyering  <meyering@redhat.com>
36153
36154         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36155
36156 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36157             Bruno Haible  <bruno@clisp.org>
36158
36159         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36160         * modules/configmake (Include): Add a note that the include must come
36161         after all system headers.
36162         * lib/javaversion.c: Include configmake.h after all other includes.
36163
36164 2008-10-26  Bruno Haible  <bruno@clisp.org>
36165
36166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36167         HAVE_STRUCT_RANDOM_DATA to 1.
36168         (gl_STDLIB_H): Simplify.
36169
36170 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36171
36172         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36173         substitute HAVE_STRUCT_RANDOM_DATA.
36174         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36175         random_data.
36176         * modules/stdlib (Makefile.am): Substitute
36177         HAVE_STRUCT_RANDOM_DATA.
36178
36179 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36180
36181         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36182         * doc/gnulib-intro.texi (Copyright): Likewise.
36183
36184 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36185
36186         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36187         findings.
36188
36189 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36190             Bruno Haible  <bruno@clisp.org>
36191
36192         * lib/unistd.in.h: Include <winsock2.h>.
36193         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36194         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36195         Provide dummy declarations.
36196         (gethostname): Override.
36197         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36198         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36199         gl_PREREQ_SYS_H_WINSOCK2.
36200         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36201         * doc/posix-functions/gethostname.texi: More details.
36202
36203 2008-10-25  Bruno Haible  <bruno@clisp.org>
36204
36205         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36206         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36207         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36208
36209         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36210         here ...
36211         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36212         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36213         gl_UNISTD_H_DEFAULTS.
36214
36215 2008-10-25  Eric Blake  <ebb9@byu.net>
36216
36217         signbit: avoid spurious compiler failure
36218         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36219         declarations inside function.
36220
36221 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36222             Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36225         * modules/random_r (Depends-on): Add stdint.
36226
36227 2008-10-24  Bruno Haible  <bruno@clisp.org>
36228
36229         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36230         Eggert.
36231         * modules/strerror (License): Likewise.
36232
36233 2008-10-24  Jim Meyering  <meyering@redhat.com>
36234
36235         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36236         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36237
36238 2008-10-24  Eric Blake  <ebb9@byu.net>
36239
36240         getgroups: fix compilation when getgroups is available
36241         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36242         but with <config.h> override of getgroups disabled.
36243
36244 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36245
36246         * doc/gnulib.texi (Header files): Add note about C++ problems.
36247         Explained by Bruno Haible <bruno@clisp.org>.
36248
36249 2008-10-23  Bruno Haible  <bruno@clisp.org>
36250
36251         Define a dummy SA_NODEFER macro on Interix.
36252         * lib/signal.in.h (SA_NODEFER): Define fallback.
36253         Reported by Aleksey Cheusov <cheusov@tut.by> via
36254         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36255
36256 2008-10-23  Bruno Haible  <bruno@clisp.org>
36257
36258         * modules/freadahead (License): Change to LGPLv2+.
36259         Suggested by Simon Josefsson.
36260
36261 2008-10-23  Jim Meyering  <meyering@redhat.com>
36262
36263         random_r: new module
36264         * modules/random_r: New file.
36265         * m4/random_r.m4: New file.
36266         * lib/random_r.c: New file, from glibc.
36267         * modules/random_r-tests: New file.
36268         * tests/test-random_r.c: New file.
36269         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36270          Declare.
36271         (RAND_MAX): Define.
36272         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36273         * modules/stdlib: Substitute them, too.
36274         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36275         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36276         * doc/glibc-functions/random_r.texi: Likewise.
36277         * doc/glibc-functions/setstate_r.texi: Likewise.
36278         * doc/glibc-functions/srandom_r.texi: Likewise.
36279         * config/srclist.txt: Mention it.
36280
36281 2008-10-23  David Lutterkort  <lutter@redhat.com>
36282
36283         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36284         link requirement
36285
36286 2008-10-23  Jim Meyering  <meyering@redhat.com>
36287
36288         selinux-h: mark parameters of stub functions as intentionally unused
36289         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36290         * lib/se-context.in.h: Likewise.
36291
36292 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36293
36294         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36295
36296 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36297
36298         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36299
36300 2008-10-22  Eric Blake  <ebb9@byu.net>
36301
36302         glthread/thread: avoid compiler warning
36303         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36304         Add unreachable abort to silence compiler.
36305
36306 2008-10-22  Eric Blake  <ebb9@byu.net>
36307
36308         netdb: also supply struct addrinfo for cygwin 1.5.x
36309         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36310         older cygwin.
36311         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36312         cygwin.
36313         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36314
36315 2008-10-22  Bruno Haible  <bruno@clisp.org>
36316
36317         * users.txt: Update entry about pspp.
36318
36319 2008-10-21  Bruno Haible  <bruno@clisp.org>
36320
36321         Simplification.
36322         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36323         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36324
36325         Simplification.
36326         * lib/ioctl.c (ioctl): Don't undefine.
36327         * lib/socket.c (socket): Don't undefine.
36328
36329         Remove unused module indicator macros.
36330         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36331         GNULIB_$1 as a C macro.
36332
36333         * doc/posix-functions/close.texi: Undo last change.
36334         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36335         Windows platforms.
36336
36337 2008-10-21  Bruno Haible  <bruno@clisp.org>
36338
36339         Add gethostname() declaration to <unistd.h>.
36340         * lib/unistd.in.h (gethostname): New declaration.
36341         * lib/gethostname.c: Include <unistd.h>.
36342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36343         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36345         and HAVE_GETHOSTNAME.
36346         * modules/gethostname (Depends-on): Add unistd.
36347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36348         (Include): Specify <unistd.h>.
36349         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36350         HAVE_GETHOSTNAME.
36351         * tests/test-gethostname.c: Include <unistd.h> first.
36352
36353 2008-10-21  Bruno Haible  <bruno@clisp.org>
36354
36355         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36356         * modules/select-tests (Depends-on): Likewise.
36357         Reported by Simon Josefsson.
36358
36359 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36360
36361         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36362         * lib/accept.c: New file, based on winsock.c.
36363         * lib/bind.c: New file, based on winsock.c.
36364         * lib/connect.c: New file, based on winsock.c.
36365         * lib/getpeername.c: New file, based on winsock.c.
36366         * lib/getsockname.c: New file, based on winsock.c.
36367         * lib/getsockopt.c: New file, based on winsock.c.
36368         * lib/ioctl.c: New file, based on winsock.c.
36369         * lib/listen.c: New file, based on winsock.c.
36370         * lib/recv.c: New file, based on winsock.c.
36371         * lib/recvfrom.c: New file, based on winsock.c.
36372         * lib/send.c: New file, based on winsock.c.
36373         * lib/sendto.c: New file, based on winsock.c.
36374         * lib/setsockopt.c: New file, based on winsock.c.
36375         * lib/shutdown.c: New file, based on winsock.c.
36376         * lib/socket.c: New file, based on winsock.c.
36377         * lib/w32sock.h: New file, based on winsock.c.
36378         * lib/winsock.c: Remove file.
36379         * modules/accept: Likewise.
36380         * modules/bind: Likewise.
36381         * modules/connect: Likewise.
36382         * modules/getpeername: Likewise.
36383         * modules/getsockname: Likewise.
36384         * modules/getsockopt: Likewise.
36385         * modules/ioctl: Likewise.
36386         * modules/listen: Likewise.
36387         * modules/recv: Likewise.
36388         * modules/recvfrom: Likewise.
36389         * modules/send: Likewise.
36390         * modules/sendto: Likewise.
36391         * modules/setsockopt: Likewise.
36392         * modules/shutdown: Likewise.
36393         * modules/socket: Use socket.c instead of winsock.c.
36394         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36395         * doc/posix-functions/accept.texi: Doc fix.
36396         * doc/posix-functions/bind.texi: Doc fix.
36397         * doc/posix-functions/close.texi: Doc fix.
36398         * doc/posix-functions/connect.texi: Doc fix.
36399         * doc/posix-functions/getpeername.texi: Doc fix.
36400         * doc/posix-functions/getsockname.texi: Doc fix.
36401         * doc/posix-functions/getsockopt.texi: Doc fix.
36402         * doc/posix-functions/ioctl.texi: Doc fix.
36403         * doc/posix-functions/listen.texi: Doc fix.
36404         * doc/posix-functions/recv.texi: Doc fix.
36405         * doc/posix-functions/recvfrom.texi: Doc fix.
36406         * doc/posix-functions/send.texi: Doc fix.
36407         * doc/posix-functions/sendto.texi: Doc fix.
36408         * doc/posix-functions/setsockopt.texi: Doc fix.
36409         * doc/posix-functions/shutdown.texi: Doc fix.
36410         * doc/posix-functions/socket.texi: Doc fix.
36411
36412 2008-10-20  Bruno Haible  <bruno@clisp.org>
36413
36414         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36415         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36416         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36417         as an alias for SIGABRT.
36418         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36419         (sigaction): Map it to SIGABRT.
36420         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36421
36422 2008-10-20  Bruno Haible  <bruno@clisp.org>
36423
36424         * lib/fts.c: Don't include lstat.h.
36425         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36426
36427         Move the lstat() declaration to <sys/stat.h>.
36428         * lib/lstat.h: Remove file.
36429         * lib/sys_stat.in.h: Add special invocation convention.
36430         (lstat): New declaration.
36431         * lib/lstat.c (orig_lstat): New function.
36432         (rpl_lstat): Use orig_lstat instead of lstat.
36433         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36434         AC_C_INLINE. Set REPLACE_LSTAT.
36435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36436         and REPLACE_LSTAT.
36437         * modules/lstat (Files): Remove lib/lstat.h.
36438         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36439         (Include): Specify <sys/stat.h> instead of lstat.h.
36440         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36441         REPLACE_LSTAT.
36442         * NEWS: Mention the change.
36443
36444 2008-10-20  Bruno Haible  <bruno@clisp.org>
36445
36446         * modules/posix_spawn-tests: New file.
36447         * tests/test-posix_spawn3.c: New file.
36448
36449 2008-10-20  Bruno Haible  <bruno@clisp.org>
36450
36451         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36452         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36453         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36454         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36455         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36456
36457 2008-10-20  Bruno Haible  <bruno@clisp.org>
36458
36459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36460         of posix_spawn on AIX 5.3.
36461
36462 2008-10-20  Bruno Haible  <bruno@clisp.org>
36463
36464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36465
36466 2008-10-20  Bruno Haible  <bruno@clisp.org>
36467
36468         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36469         of AC_LANG_PROGRAM.
36470
36471 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36472
36473         * lib/netdb.in.h: Don't define GNU specific constants until they
36474         are supported or needed.  Reported by Bruno Haible
36475         <bruno@clisp.org>.
36476
36477 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36478
36479         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36480
36481 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36482
36483         * lib/getaddrinfo.h: Remove file.
36484         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36485         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36486         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36487         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36488         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36489         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36490         * tests/test-getaddrinfo.c: Likewise.
36491         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36492         * NEWS: Mention change.
36493
36494 2008-10-19  Bruno Haible  <bruno@clisp.org>
36495
36496         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36497
36498 2008-10-19  Bruno Haible  <bruno@clisp.org>
36499
36500         * lib/wait-process.c: Include simply <sys/wait.h>.
36501         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36502         WIFSTOPPED): Remove fallback definitions.
36503         * modules/wait-process (Depends-on): Add sys_wait.
36504
36505         New module 'sys_wait'.
36506         * modules/sys_wait: New file.
36507         * lib/sys_wait.in.h: New file, partially copied from
36508         lib/wait-process.c.
36509         * m4/sys_wait_h.m4: New file.
36510         * doc/posix-headers/sys_wait.texi: Mention the new module.
36511
36512 2008-10-19  Bruno Haible  <bruno@clisp.org>
36513
36514         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36515
36516 2008-10-19  Bruno Haible  <bruno@clisp.org>
36517
36518         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36519         * lib/wait-process.c (WAIT_T): Remove type.
36520         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36521         (wait_subprocess): Update.
36522
36523 2008-10-19  Bruno Haible  <bruno@clisp.org>
36524
36525         New module 'atoll'.
36526         * modules/atoll: New file.
36527         * lib/stdlib.in.h (atoll): New declaration.
36528         * lib/atoll.c: New file, from glibc with modifications.
36529         * m4/atoll.m4: New file.
36530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36531         HAVE_ATOLL.
36532         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36533         * doc/posix-functions/atoll.texi: Mention the new module.
36534
36535 2008-10-19  Bruno Haible  <bruno@clisp.org>
36536
36537         Add strtoull() declaration to <stdlib.h>.
36538         * lib/stdlib.in.h (strtoull): New declaration.
36539         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36540         Set HAVE_STRTOULL.
36541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36542         HAVE_STRTOULL.
36543         * modules/strtoull (Depends-on): Add stdlib.
36544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36545         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36546         HAVE_STRTOULL.
36547
36548 2008-10-19  Bruno Haible  <bruno@clisp.org>
36549
36550         Add strtoll() declaration to <stdlib.h>.
36551         * lib/stdlib.in.h (strtoll): New declaration.
36552         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36553         Set HAVE_STRTOLL.
36554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36555         HAVE_STRTOLL.
36556         * modules/strtoll (Depends-on): Add stdlib.
36557         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36558         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36559
36560 2008-10-19  Bruno Haible  <bruno@clisp.org>
36561
36562         * modules/bcopy (Depends-on): Add strings.
36563         (Include): Specify <strings.h>.
36564
36565 2008-10-19  Bruno Haible  <bruno@clisp.org>
36566
36567         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36568
36569 2008-10-19  Bruno Haible  <bruno@clisp.org>
36570
36571         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36572         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36573         mingw.
36574
36575 2008-10-19  Bruno Haible  <bruno@clisp.org>
36576
36577         * lib/atanl.c: Don't include isnanl.h.
36578         * lib/cosl.c: Likewise.
36579         * lib/ldexpl.c: Likewise.
36580         * lib/logl.c: Likewise.
36581         * lib/sinl.c: Likewise.
36582         * lib/sqrtl.c: Likewise.
36583         * lib/tanl.c: Likewise.
36584
36585         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36586         * lib/isnanf.h: Remove file.
36587         * lib/isnand.h: Remove file.
36588         * lib/isnanl.h: Remove file.
36589         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36590         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36591         macros.
36592         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36593         HAVE_ISNANF, don't define it as a C macro.
36594         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36595         HAVE_ISNAND, don't define it as a C macro.
36596         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36597         HAVE_ISNANL, don't define it as a C macro.
36598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36599         HAVE_ISNAN[FDL].
36600         * modules/isnanf (Files): Remove lib/isnanf.h.
36601         (Depends-on): Add math.
36602         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36603         (Include): Specify <math.h> instead of isnanf.h.
36604         * modules/isnand (Files): Remove lib/isnand.h.
36605         (Depends-on): Add math.
36606         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36607         (Include): Specify <math.h> instead of isnand.h.
36608         * modules/isnanl (Files): Remove lib/isnanl.h.
36609         (Depends-on): Add math.
36610         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36611         (Include): Specify <math.h> instead of isnanl.h.
36612         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36613         HAVE_ISNAN[FDL].
36614         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36615         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36616         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36617         * NEWS: Mention the change.
36618
36619 2008-10-18  Bruno Haible  <bruno@clisp.org>
36620
36621         Add getusershell(), setusershell(), endusershell() declarations to
36622         <unistd.h>.
36623         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36624         declarations.
36625         * lib/getusershell.c: Include unistd.h.
36626         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36627         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36628         HAVE_GETUSERSHELL.
36629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36630         and HAVE_GETUSERSHELL.
36631         * modules/getusershell (Depends-on): Add unistd, extensions.
36632         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36633         (Include): Specify <unistd.h>.
36634         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36635         HAVE_GETUSERSHELL.
36636
36637 2008-10-18  Bruno Haible  <bruno@clisp.org>
36638
36639         Add a getloadavg() declaration to <stdlib.h>.
36640         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36641         getloadavg declaration.
36642         (getloadavg): New declaration.
36643         * lib/getloadavg.c: Include <stdlib.h> first.
36644         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36645         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36646         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36648         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36649         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36650         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36651         (Include): Specify <stdlib.h>.
36652         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36653         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36654
36655 2008-10-18  Bruno Haible  <bruno@clisp.org>
36656
36657         * lib/dirchownmod.c: Don't include lchmod.h.
36658
36659         Move the lchmod() declaration to <sys/stat.h>.
36660         * lib/lchmod.h: Remove file.
36661         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36662         (lchmod): New declaration, moved here from lib/lchown.h.
36663         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36664         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36665         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36666         and HAVE_LCHMOD.
36667         * modules/lchmod (Files): Remove lib/lchmod.h.
36668         (Depends-on): Add sys_stat, extensions.
36669         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36670         (Include): Specify <sys/stat.h> instead of lchmod.h.
36671         * modules/sys_stat (Depends-on): Add link-warning.
36672         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36673         definition of GL_LINK_WARNING.
36674         * NEWS: Mention the change.
36675
36676 2008-10-18  Bruno Haible  <bruno@clisp.org>
36677
36678         * lib/fchdir.c: Don't include dirfd.h.
36679         * lib/fts.c: Likewise.
36680         * lib/getcwd.c: Likewise.
36681         * lib/glob.c: Likewise.
36682
36683         Move the dirfd() declaration to <dirent.h>.
36684         * lib/dirfd.h: Remove file.
36685         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36686         (dirfd): New declaration.
36687         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36688         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36689         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36690         HAVE_DECL_DIRFD.
36691         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36692         HAVE_DECL_DIRFD.
36693         * modules/dirfd (Files): Remove lib/dirfd.h.
36694         (Depends-on): Add dirent, extensions.
36695         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36696         (Include): Specify <dirent.h> instead of dirfd.h.
36697         * modules/dirent (Depends-on): Add link-warning.
36698         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36699         definition of GL_LINK_WARNING.
36700         * NEWS: Mention the change.
36701
36702 2008-10-18  Bruno Haible  <bruno@clisp.org>
36703
36704         Move the euidaccess() declaration to <unistd.h>.
36705         * lib/euidaccess.h: Remove file.
36706         * lib/unistd.in.h (euidaccess): New declaration.
36707         * lib/euidaccess.c: Don't include euidaccess.h.
36708         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36709         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36711         and HAVE_EUIDACCESS.
36712         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36713         (Depends-on): Add unistd.
36714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36715         (Include): Specify <unistd.h> instead of euidaccess.h.
36716         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36717         HAVE_EUIDACCESS.
36718         * NEWS: Mention the change.
36719
36720 2008-10-18  Bruno Haible  <bruno@clisp.org>
36721
36722         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36723
36724         Move the getdomainname() declaration to <unistd.h>.
36725         * lib/getdomainname.h: Remove file.
36726         * lib/unistd.in.h (getdomainname): New declaration.
36727         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36728         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36729         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36730         HAVE_GETDOMAINNAME.
36731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36732         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36733         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36734         (Depends-on): Add unistd, extensions.
36735         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36736         (Includes): Specify <unistd.h> instead of getdomainname.h.
36737         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36738         HAVE_GETDOMAINNAME.
36739         * NEWS: Mention the change.
36740
36741 2008-10-18  Bruno Haible  <bruno@clisp.org>
36742
36743         * modules/dirent: New file.
36744         * m4/dirent_h.m4: New file.
36745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36746         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36747         * modules/fchdir (Files): Remove lib/dirent.in.h.
36748         (Depends-on): Add dirent.
36749         (Makefile.am): Move rules to modules/dirent.
36750         * doc/posix-headers/dirent.texi: Mention the new module.
36751
36752 2008-10-18  Bruno Haible  <bruno@clisp.org>
36753
36754         Avoid -Wunused-parameter warnings in public gnulib header files.
36755         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36756         macro.
36757         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36758
36759 2008-10-18  Bruno Haible  <bruno@clisp.org>
36760
36761         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36762         * doc/glibc-functions/error.texi: Mention the module 'error'.
36763         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36764         * doc/glibc-functions/getdomainname.texi: Mention the module
36765         'getdomainname'.
36766         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36767         * doc/glibc-functions/getpagesize.texi: Mention the module
36768         'getpagesize'.
36769         * doc/glibc-functions/getusershell.texi: Mention the module
36770         'getusershell'.
36771         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36772         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36773         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36774         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36775         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36776         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36777         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36778         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36779         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36780         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36781         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36782         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36783         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36784         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36785
36786 2008-10-17  Bruno Haible  <bruno@clisp.org>
36787
36788         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36789         HP-UX and IRIX, use -0.0L.
36790         * tests/test-ceill.c (minus_zero): Likewise.
36791         * tests/test-floorl.c (minus_zero): Likewise.
36792         * tests/test-frexpl.c (minus_zero): Likewise.
36793         * tests/test-isnan.c (minus_zerol): Likewise.
36794         * tests/test-isnanl.h (minus_zero): Likewise.
36795         * tests/test-ldexpl.c (minus_zero): Likewise.
36796         * tests/test-roundl.c (minus_zero): Likewise.
36797         * tests/test-signbit.c (minus_zerol): Likewise.
36798         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36799         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36800         * tests/test-truncl.c (minus_zero): Likewise.
36801         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36802         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36803         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36804         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36805
36806 2008-10-17  Bruno Haible  <bruno@clisp.org>
36807
36808         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36809         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36810         that it gets activated only for gcc >= 3.0.
36811         * lib/dirent.in.h: Likewise.
36812         * lib/errno.in.h: Likewise.
36813         * lib/fcntl.in.h: Likewise.
36814         * lib/float.in.h: Likewise.
36815         * lib/iconv.in.h: Likewise.
36816         * lib/inttypes.in.h: Likewise.
36817         * lib/locale.in.h: Likewise.
36818         * lib/math.in.h: Likewise.
36819         * lib/netdb.in.h: Likewise.
36820         * lib/netinet_in.in.h: Likewise.
36821         * lib/search.in.h: Likewise.
36822         * lib/signal.in.h: Likewise.
36823         * lib/spawn.in.h: Likewise.
36824         * lib/stdarg.in.h: Likewise.
36825         * lib/stdint.in.h: Likewise.
36826         * lib/stdio.in.h: Likewise.
36827         * lib/stdlib.in.h: Likewise.
36828         * lib/string.in.h: Likewise.
36829         * lib/strings.in.h: Likewise.
36830         * lib/sys_file.in.h: Likewise.
36831         * lib/sys_ioctl.in.h: Likewise.
36832         * lib/sys_select.in.h: Likewise.
36833         * lib/sys_socket.in.h: Likewise.
36834         * lib/sys_stat.in.h: Likewise.
36835         * lib/sys_time.in.h: Likewise.
36836         * lib/sysexits.in.h: Likewise.
36837         * lib/time.in.h: Likewise.
36838         * lib/unistd.in.h: Likewise.
36839         * lib/wchar.in.h: Likewise.
36840         * lib/wctype.in.h: Likewise.
36841         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36842
36843 2008-10-17  Jim Meyering  <meyering@redhat.com>
36844
36845         ignore-value: don't depend on inline module
36846         * modules/ignore-value (Depends-on): Remove 'inline'.
36847         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36848         Suggestion from Bruno Haible.
36849
36850 2008-10-17  Bruno Haible  <bruno@clisp.org>
36851
36852         New implementation of condition variables for Win32.
36853         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36854         (gl_linked_waitqueue_t): New type.
36855         (gl_cond_t): Use it.
36856         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36857         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36858         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36859         (glthread_cond_init_func, glthread_cond_wait_func,
36860         glthread_cond_timedwait_func, glthread_cond_signal_func,
36861         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36862         Reimplemented on the basis of gl_linked_waitqueue_t.
36863         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36864         gl_waitqueue_t.
36865         (gl_rwlock_t): Update.
36866         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36867
36868 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36869
36870         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36871         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36872
36873 2008-10-17  Jim Meyering  <meyering@redhat.com>
36874
36875         ignore-value: new module
36876         * modules/ignore-value: New file.
36877         * lib/ignore-value.h: New file.
36878         * MODULES.html.sh (Compiler warning management): New section,
36879         just for this module.  More to come.
36880
36881 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36882
36883         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36884         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36885         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36886
36887 2008-10-16  Jim Meyering  <meyering@redhat.com>
36888
36889         openat-die.c: avoid 'no previous prototype' warning
36890         * lib/openat-die.c: Include "openat.h".
36891         Reported by Reuben Thomas <rrt@sc3d.org>.
36892
36893 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36894
36895         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36896         * lib/netdb.in.h: Fix typo.
36897         Reported by Bruno Haible  <bruno@clisp.org>
36898
36899         * lib/netdb.in.h: Include sys/socket.h for platforms without
36900         netdb.h, to get structures like hostent on MinGW.
36901         * modules/netdb (Depends-on): Add sys_socket.
36902
36903 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36904
36905         * modules/netdb, modules/netdb-tests: New file.
36906         * m4/netdb_h.m4: New file.
36907         * lib/netdb.in.h: Add, currently just an empty file pending
36908         definitions.
36909         * tests/test-netdb.c: New file.
36910         * doc/posix-headers/netdb.texi: Mention that we replace it if
36911         needed.
36912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36913         netdb.
36914
36915 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36916
36917         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36918         with code.
36919
36920 2008-10-13  Bruno Haible  <bruno@clisp.org>
36921
36922         * lib/glthread/cond.c (glthread_cond_wait_func,
36923         glthread_cond_timedwait_func): Add a comment.
36924
36925 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36926
36927         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36928         * tests/test-select.c: Likewise,
36929
36930 2008-10-13  Bruno Haible  <bruno@clisp.org>
36931
36932         * lib/glthread/cond.c (glthread_cond_wait_func,
36933         glthread_cond_timedwait_func): Fix variable name.
36934         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36935
36936 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36937
36938         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36939         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36940         struct sockaddr.sa_len.
36941         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36942
36943 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36944
36945         * build-aux/pmccabe2html: Add css and css_url parameters.
36946
36947 2008-10-12  Bruno Haible  <bruno@clisp.org>
36948
36949         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36950         calling aclx_get.
36951         Reported by Rainer Tammer <tammer@tammer.net>.
36952
36953 2008-10-12  Bruno Haible  <bruno@clisp.org>
36954
36955         Use msvcrt aware primitives for creation/termination of Win32 threads.
36956         * lib/glthread/thread.c: Include <process.h>.
36957         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36958         (wrapper_func): Update signature.
36959         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36960
36961 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36962             Bruno Haible  <bruno@clisp.org>
36963
36964         Provide a Win32 implementation of the 'cond' module.
36965         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36966         * lib/glthread/cond.c (glthread_cond_init_func,
36967         glthread_cond_wait_func, glthread_cond_timedwait_func,
36968         glthread_cond_signal_func, glthread_cond_broadcast_func,
36969         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36970         * modules/cond (Dependencies): Add gettimeofday.
36971
36972 2008-10-11  Bruno Haible  <bruno@clisp.org>
36973
36974         Make sleep work on older versions of mingw.
36975         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36976         only whether it exists.
36977         * doc/posix-functions/sleep.texi: Mention the problem with older
36978         versions of mingw.
36979
36980 2008-10-11  Bruno Haible  <bruno@clisp.org>
36981
36982         New module 'shutdown'.
36983         * modules/shutdown: New file.
36984         * lib/sys_socket.in.h (shutdown): New declaration.
36985         * lib/winsock.c (shutdown): New function.
36986         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36987         GNULIB_SHUTDOWN.
36988         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36989         * doc/posix-functions/shutdown.texi: Document the new module.
36990
36991 2008-10-11  Jim Meyering  <meyering@redhat.com>
36992
36993         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36994
36995 2008-10-11  Bruno Haible  <bruno@clisp.org>
36996
36997         New module 'fclose'.
36998         * modules/fclose: New file.
36999         * lib/stdio.in.h (fclose): New declaration.
37000         * lib/fclose.c: New file.
37001         * m4/fclose.m4: New file.
37002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37003         REPLACE_FCLOSE.
37004         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37005         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37006         REPLACE_FCLOSE.
37007         * modules/close (Depends-on): fclose.
37008         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37009
37010 2008-10-11  Bruno Haible  <bruno@clisp.org>
37011
37012         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37013         set errno and don't call _close.
37014
37015 2008-10-10  Bruno Haible  <bruno@clisp.org>
37016
37017         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37018         ACL, not afterwards. Fixes test failure on Cygwin.
37019
37020 2008-10-09  Ben Pfaff  <blp@gnu.org>
37021
37022         * build-aux/announce-gen: Fix gnulib version related part of usage
37023         message.  Die with a useful error message if no tarballs are
37024         found.
37025
37026 2008-10-10  Jim Meyering  <meyering@redhat.com>
37027
37028         bootstrap: use git's --depth=N option only if it's supported
37029         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37030         recognize the --depth option.  Reported by Pádraig Brady.
37031
37032 2008-10-09  Bruno Haible  <bruno@clisp.org>
37033
37034         New module 'ioctl'.
37035         * modules/ioctl: New file.
37036         * lib/sys_socket.in.h (ioctl): Remove declaration.
37037         * lib/winsock.c: Include <sys/ioctl.h>.
37038         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37039         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37040         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37041         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37042         * doc/posix-functions/ioctl.texi: Mention the new module.
37043
37044 2008-10-09  Bruno Haible  <bruno@clisp.org>
37045
37046         New module 'sys_ioctl'.
37047         * lib/sys_ioctl.in.h: New file.
37048         * m4/sys_ioctl_h.m4: New file.
37049         * modules/sys_ioctl: New file.
37050         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37051
37052 2008-10-09  Bruno Haible  <bruno@clisp.org>
37053
37054         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37055         * lib/winsock.c: Include <stdarg.h>.
37056         (rpl_ioctl): Change to second argument 'int' and then varargs.
37057
37058 2008-10-09  Bruno Haible  <bruno@clisp.org>
37059
37060         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37061         when the sys_socket module is present and the system has <winsock2.h>.
37062
37063 2008-10-09  Bruno Haible  <bruno@clisp.org>
37064
37065         * doc/posix-functions/close.texi: Mention module 'close' instead of
37066         module 'sys_socket'.
37067
37068 2008-10-09  Bruno Haible  <bruno@clisp.org>
37069
37070         * doc/glibc-headers/sys_ioctl.texi: New file.
37071         * doc/gnulib.texi: Include it.
37072
37073 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37074             Bruno Haible  <bruno@clisp.org>
37075
37076         Combine the two replacements of 'close'.
37077         * lib/sys_socket.in.h (close): Define to a reminder to include
37078         <unistd.h>.
37079         (_gl_close_fd_maybe_socket): New declaration.
37080         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37081         * lib/winsock.c (close): Remove undefinition.
37082         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37083         needed for the gnulib module 'close'.
37084         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37085         define to an error symbol or to a warning, if suitable.
37086         * lib/close.c: Include <sys/socket.h>.
37087         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37088         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37089         UNISTD_H_HAVE_WINSOCK2_H.
37090         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37092         UNISTD_H_HAVE_WINSOCK2_H.
37093         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37094         (configure.ac): Set a module indicator.
37095         (Makefile.am): Substitute GNULIB_CLOSE.
37096         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37097         * modules/poll-tests (Depends-on): Add close.
37098         * modules/select-tests (Depends-on): Likewise.
37099
37100 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37101             Bruno Haible  <bruno@clisp.org>
37102
37103         New module 'close'.
37104         * modules/close: New file.
37105         * lib/unistd.in.h (close): Move declaration out of the
37106         FCHDIR_REPLACEMENT scope.
37107         (_gl_unregister_fd): New declaration.
37108         * lib/close.c: New file.
37109         * lib/fchdir.c (rpl_close): Remove function.
37110         * m4/close.m4: New file.
37111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37112         close.
37113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37114         REPLACE_CLOSE.
37115         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37116         REPLACE_CLOSE.
37117         * modules/fchdir (Depends-on): Add close.
37118
37119 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37120             Bruno Haible  <bruno@clisp.org>
37121
37122         * lib/fcntl.in.h (open): Simplify conditionals.
37123         (_gl_register_fd): New declaration.
37124         * lib/fchdir.c (rpl_open): Remove function.
37125         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37126         also.
37127         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37129         open.
37130
37131 2008-10-09  Jim Meyering  <meyering@redhat.com>
37132
37133         GNUmakefile: use the more name-space-friendly "_version"
37134         * top/GNUmakefile (_dummy): Update.
37135         (_version): Rename from "version".
37136
37137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37138             Bruno Haible  <bruno@clisp.org>
37139
37140         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37141         rpl_close.
37142         (_gl_register_fd): New function, extracted from rpl_open.
37143         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37144         (rpl_open, rpl_opendir): Use _gl_register_fd.
37145
37146 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37147
37148         Fix organization of 'open' replacement.
37149         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37150         (gl_FUNC_OPEN): Use it.
37151         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37152
37153 2008-10-08  Bruno Haible  <bruno@clisp.org>
37154
37155         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37156
37157 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37158
37159         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37160         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37161         listen).
37162
37163 2008-10-08  Eric Blake  <ebb9@byu.net>
37164
37165         GNUmakefile: add 'make version' target
37166         * top/GNUmakefile (_curr-ver): Split version update rules...
37167         (version): ...into a target.
37168
37169 2008-10-07  Bruno Haible  <bruno@clisp.org>
37170
37171         Use a more portable replacement expression for -0.0L.
37172         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37173         instead of -0.0L. Fix m4 quotation.
37174
37175         * tests/test-signbit.c: Include <float.h>.
37176         (minus_zero): New variable.
37177         (test_signbitl): Use minus_zero instead of -zero.
37178         * modules/signbit-tests (Depends-on): Add float.
37179
37180         * tests/test-ceill.c: Include <float.h>.
37181         (zero): Remove variable.
37182         (minus_zero): New variable.
37183         (main): Use minus_zero instead of -zero.
37184         * modules/ceill-tests (Depends-on): Add float.
37185
37186         * tests/test-floorl.c: Include <float.h>.
37187         (zero): Remove variable.
37188         (minus_zero): New variable.
37189         (main): Use minus_zero instead of -zero.
37190         * modules/floorl-tests (Depends-on): Add float.
37191
37192         * tests/test-roundl.c: Include <float.h>.
37193         (zero): Remove variable.
37194         (minus_zero): New variable.
37195         (main): Use minus_zero instead of -zero.
37196         * modules/roundl-tests (Depends-on): Add float.
37197
37198         * tests/test-truncl.c: Include <float.h>.
37199         (zero): Remove variable.
37200         (minus_zero): New variable.
37201         (main): Use minus_zero instead of -zero.
37202         * modules/truncl-tests (Depends-on): Add float.
37203
37204         * tests/test-frexpl.c (zero): Remove variable.
37205         (minus_zero): New variable.
37206         (main): Use minus_zero instead of -zero.
37207         * modules/frexpl-tests (Depends-on): Add float.
37208
37209         * tests/test-isnan.c (zerol): Remove variable.
37210         (minus_zerol): New variable.
37211         (test_long_double): Use minus_zerol instead of -zerol.
37212         * modules/isnan-tests (Depends-on): Add float.
37213
37214         * tests/test-isnanl.h (zero): Remove variable.
37215         (minus_zero): New variable.
37216         (main): Use minus_zero instead of -zero.
37217         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37218         * modules/isnanl-tests (Depends-on): Add float.
37219
37220         * tests/test-ldexpl.c (zero): Remove variable.
37221         (minus_zero): New variable.
37222         (main): Use minus_zero instead of -zero.
37223         * modules/ldexpl-tests (Depends-on): Add float.
37224
37225         * tests/test-snprintf-posix.h (zerol): Remove variable.
37226         (minus_zerol): New variable.
37227         (test_function): Use minus_zerol instead of -zerol.
37228         * modules/snprintf-posix-tests (Depends-on): Add float.
37229         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37230
37231         * tests/test-sprintf-posix.h (zerol): Remove variable.
37232         (minus_zerol): New variable.
37233         (test_function): Use minus_zerol instead of -zerol.
37234         * modules/sprintf-posix-tests (Depends-on): Add float.
37235         * modules/vsprintf-posix-tests (Depends-on): Add float.
37236
37237         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37238         (minus_zerol): New variable.
37239         (test_function): Use minus_zerol instead of -zerol.
37240         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37241
37242         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37243         (minus_zerol): New variable.
37244         (test_function): Use minus_zerol instead of -zerol.
37245         * modules/vasprintf-posix-tests (Depends-on): Add float.
37246
37247 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37248
37249         * MODULES.html.sh (Support for building documentation): Mention
37250         pmccabe2html.  Sort entries.
37251
37252         Add pmccabe2html module, from gnupdf.
37253         * build-aux/pmccabe.css: New file.
37254         * build-aux/pmccabe2html: New file.
37255         * m4/pmccabe2html.m4: New file.
37256         * modules/pmccabe2html: New file.
37257
37258 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37259
37260         flock: new module
37261         * MODULES.html.sh: Add to list of modules.
37262         * lib/flock.c: flock implementation for Windows and Unix systems
37263         which have fcntl.
37264         * doc/glibc-functions/flock.texi: Update documentation.
37265         * lib/sys_file.in.h: <sys/file.h> header file.
37266         * m4/flock.m4: M4 macros.
37267         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37268         * modules/flock: flock module.
37269         * modules/flock-tests: flock tests module.
37270         * modules/sys_file: sys/file.h module.
37271         * tests/test-flock.c: test suite for flock.
37272
37273 2008-10-06  Jim Meyering  <meyering@redhat.com>
37274
37275         bootstrap: check for LT_INIT more portably still ;-)
37276         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37277         Spotted by Bruno Haible.
37278
37279 2008-10-06  Eric Blake  <ebb9@byu.net>
37280
37281         test-signbit: avoid tripping Irix cc bug on -0.0L
37282         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37283         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37284         entire testsuite consistent and avoids an Irix 6.2 bug.
37285
37286 2008-10-05  Bruno Haible  <bruno@clisp.org>
37287             Jim Meyering  <jim@meyering.net>
37288
37289         Add an option for ignoring EPIPE during close_stdout.
37290         * lib/closeout.h: Include <stdbool.h>.
37291         (close_stdout_set_ignore_EPIPE): New declaration.
37292         * lib/closeout.c: Include <stdbool.h>.
37293         (ignore_EPIPE): New variable.
37294         (close_stdout_set_ignore_EPIPE): New function.
37295         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37296         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37297         failure.
37298         * modules/closeout (Depends-on): Add stdbool.
37299
37300 2008-10-05  Bruno Haible  <bruno@clisp.org>
37301
37302         * modules/accept: New file.
37303         * modules/bind: New file.
37304         * modules/connect: New file.
37305         * modules/getpeername: New file.
37306         * modules/getsockname: New file.
37307         * modules/getsockopt: New file.
37308         * modules/listen: New file.
37309         * modules/recv: New file.
37310         * modules/recvfrom: New file.
37311         * modules/send: New file.
37312         * modules/sendto: New file.
37313         * modules/setsockopt: New file.
37314         * modules/socket: New file.
37315         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37316         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37317         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37318         the particular module is requested. Add a link warning when the
37319         particular module is not requested.
37320         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37321         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37322         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37323         the particular module is requested.
37324         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37325         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37326         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37327         * modules/sys_socket (Depends-on): Add link-warning.
37328         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37329         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37330         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37331         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37332         GL_LINK_WARNING.
37333         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37334         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37335         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37336         * doc/posix-functions/getpeername.texi: Mention the new module
37337         'getpeername'.
37338         * doc/posix-functions/getsockname.texi: Mention the new module
37339         'getsockname'.
37340         * doc/posix-functions/getsockopt.texi: Mention the new module
37341         'getsockopt'.
37342         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37343         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37344         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37345         * doc/posix-functions/send.texi: Mention the new module 'send'.
37346         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37347         * doc/posix-functions/setsockopt.texi: Mention the new module
37348         'setsockopt'.
37349         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37350         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37351         listen, connect, accept.
37352         * modules/select-tests (Depends-on): Likewise.
37353
37354 2008-10-05  Bruno Haible  <bruno@clisp.org>
37355
37356         * lib/winsock.c (strerror): Remove unused #undef.
37357         (rpl_close): Remove unused local variable.
37358
37359         * modules/sys_socket (Depends-on); Add errno.
37360
37361 2008-10-05  Bruno Haible  <bruno@clisp.org>
37362
37363         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37364         (select): Add a link warning when the 'select' module is not used.
37365         * modules/sys_select (Depends-on): Add link-warning.
37366         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37367         Suggested by Paolo Bonzini.
37368
37369 2008-10-05  Jim Meyering  <meyering@redhat.com>
37370
37371         bootstrap: check for LT_INIT more portably
37372         * build-aux/bootstrap: Avoid using grep -E, since it's not
37373         portable enough.  Suggestion from Bruno Haible.
37374
37375 2008-10-05  Bruno Haible  <bruno@clisp.org>
37376
37377         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37378         as being fixed by gnulib.
37379
37380 2008-10-05  Bruno Haible  <bruno@clisp.org>
37381
37382         * modules/select-tests: New file, mostly copied from
37383         modules/sys_select-tests.
37384         * tests/test-select.c: New file, mostly copied from
37385         tests/test-sys_select.c.
37386         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37387         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37388         (Makefile.am): Remove test_sys_select_LDADD.
37389
37390         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37391         to an undefined symbol, for an error message.
37392         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37393         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37394         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37395         winsock-select.c here.
37396         * modules/sys_select (Files): Remove lib/winsock-select.c.
37397         (Depends-on): Remove alloca.
37398         (Makefile.am): Substitute GNULIB_SELECT.
37399         * modules/select: New file.
37400         * doc/posix-functions/select.texi: Update.
37401
37402 2008-10-05  Bruno Haible  <bruno@clisp.org>
37403
37404         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37405         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37406         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37407         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37408         getdtablesize.
37409         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37410         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37411
37412 2008-10-05  Bruno Haible  <bruno@clisp.org>
37413
37414         * modules/getdtablesize-tests: New file.
37415         * tests/test-getdtablesize.c: New file.
37416
37417         New module 'getdtablesize'.
37418         * lib/unistd.in.h (getdtablesize): New declaration.
37419         * lib/getdtablesize.c: New file.
37420         * m4/getdtablesize.m4: New file.
37421         * modules/getdtablesize: New file.
37422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37423         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37424         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37425         HAVE_GETDTABLESIZE.
37426         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37427
37428 2008-10-05  Bruno Haible  <bruno@clisp.org>
37429
37430         * modules/sched (Makefile.am): Fix typo.
37431         Reported by Simon Josefsson.
37432
37433 2008-10-05  Jim Meyering  <meyering@redhat.com>
37434
37435         bootstrap: check for LT_INIT, too
37436         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37437         are deprecated.  Suggestion from Ralf Wildenhues.
37438
37439 2008-10-05  Bruno Haible  <bruno@clisp.org>
37440
37441         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37442         overriding them by ours.
37443         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37444
37445 2008-10-05  Jim Meyering  <meyering@redhat.com>
37446
37447         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37448         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37449         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37450
37451 2008-10-04  Bruno Haible  <bruno@clisp.org>
37452
37453         * modules/dup2 (License): Change to LGPLv2+.
37454         * modules/sleep (License): Likewise.
37455         * modules/perror (License): Likewise.
37456         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37457         Blake.
37458         * modules/signal (License): Likewise.
37459         * modules/sigprocmask (License): Likewise.
37460         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37461         Meyering.
37462
37463 2008-10-04  Bruno Haible  <bruno@clisp.org>
37464
37465         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37466         Reported by Rainer Tammer <tammer@tammer.net>.
37467
37468 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37469             Bruno Haible  <bruno@clisp.org>
37470
37471         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37472         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37473         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37474
37475 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37476
37477         filevercmp: new module
37478         * lib/filevercmp.h: New function filevercmp comparing version strings.
37479         * lib/filevercmp.c: Implementation of filevercmp function.
37480         * modules/filevercmp: Module metadata.
37481         * tests/test-filevercmp.c: Unit test for new module.
37482         * modules/filevercmp-tests: Unit test metadata.
37483         * MODULES.html.sh: Add filevercmp module.
37484
37485 2008-10-03  Bruno Haible  <bruno@clisp.org>
37486
37487         * lib/c-ctype.h: Add comment.
37488         Reported by Jim Meyering.
37489
37490 2008-10-02  Bruno Haible  <bruno@clisp.org>
37491
37492         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37493
37494 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37495
37496         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37497         name of bootstrap.conf accordingly.
37498
37499 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37500
37501         * build-aux/bootstrap: Install git-merge-changelog configuration
37502         items into .gitconfig if needed.
37503
37504 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37505
37506         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37507         git repository, and initialize/update it accordingly.
37508
37509 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37510
37511         * modules/fsync-tests: New file.
37512         * tests/test-fsync.c: New file.
37513
37514         New module 'fsync'.
37515         * lib/fsync.c: New file.
37516         * m4/fsync.m4: New file.
37517         * modules/fsync: New file.
37518         * lib/unistd.in.h (fsync): New declaration.
37519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37520         GNULIB_FSYNC and HAVE_FSYNC.
37521         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37522         * MODULES.html.sh (posix_functions): Add fsync.
37523         * doc/posix-functions/fsync.texi: Mention the new module.
37524
37525 2008-10-02  Jim Meyering  <meyering@redhat.com>
37526
37527         fts.c: sync with similar code from coreutils' remove.c
37528         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37529         Guard also with "#if defined __linux__", since for now at least,
37530         this code is Linux-kernel-specific.
37531
37532 2008-10-02  Jim Meyering  <meyering@redhat.com>
37533
37534         fts: bug fixes
37535         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37536         Include <sys/vfs.h>, not <sys/statfs.h>.
37537
37538         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37539         Include <sys/vfs.h>, not <sys/statfs.h>.
37540
37541 2008-10-01  Bruno Haible  <bruno@clisp.org>
37542
37543         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37544         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37545         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37546         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37547         * doc/posix-functions/posix_spawnp.texi: Likewise.
37548         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37549         whether posix_spawn actually works.
37550         * m4/pipe.m4 (gl_PIPE): Likewise.
37551         * modules/execute (Files): Add m4/posix_spawn.m4.
37552         * modules/pipe (Files): Add m4/posix_spawn.m4.
37553         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37554
37555 2008-10-01  Jim Meyering  <meyering@redhat.com>
37556
37557         remove trailing spaces
37558         * NEWS: Likewise.
37559         * lib/poll.c (poll): Likewise.
37560         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37561         * lib/winsock.c (rpl_close): Likewise.
37562         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37563         * modules/yield: Likewise.
37564         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37565         * tests/test-sys_select.c (connect_to_socket): Likewise.
37566
37567         fts.c: adjust a new interface to be more generally useful
37568         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37569         (fts_build): Adjust caller.
37570
37571 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37572
37573         * modules/cond-tests: New file.
37574         * tests/test-cond.c: New file.
37575
37576 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37577             Bruno Haible  <bruno@clisp.org>
37578
37579         * modules/cond (Dependencies): Add errno, time.
37580         * lib/glthread/cond.h: Include <time.h>.
37581         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37582         across platforms.
37583
37584 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37585             Bruno Haible  <bruno@clisp.org>
37586
37587         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37588
37589 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37590             Bruno Haible  <bruno@clisp.org>
37591
37592         * modules/tls-tests (Depends-on): Add thread, yield.
37593         (configure.ac): Remove all checks.
37594         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37595         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37596         gl_thread_self): Remove definitions. Include glthread/thread.h and
37597         glthread/yield.h instead.
37598         (test_tls): Pass an additional NULL argument to gl_thread_join.
37599
37600 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37601             Bruno Haible  <bruno@clisp.org>
37602
37603         * modules/lock-tests (Depends-on): Add thread, yield.
37604         (configure.ac): Remove all checks.
37605         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37606         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37607         gl_thread_self): Remove definitions. Include glthread/thread.h and
37608         glthread/yield.h instead.
37609         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37610         additional NULL argument to gl_thread_join.
37611
37612 2008-09-30  Bruno Haible  <bruno@clisp.org>
37613
37614         Fix the Win32 implementation of the 'thread' module.
37615         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37616         pointer type.
37617         (gl_thread_self): Invoke gl_thread_self_func.
37618         (gl_thread_self_func): New declaration.
37619         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37620         (do_init_self_key, init_self_key): New functions.
37621         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37622         Remove some fields.
37623         (running_threads, running_lock): Remove variables.
37624         (get_current_thread_handle): New function.
37625         (gl_thread_self_func, wrapper_func, glthread_create_func,
37626         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37627         simplified.
37628
37629 2008-09-30  Bruno Haible  <bruno@clisp.org>
37630
37631         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37632         files.
37633
37634 2008-09-30  Jim Meyering  <meyering@redhat.com>
37635
37636         fts.m4: correct the test for statfs.f_type
37637         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37638         when checking for statfs.f_type.
37639
37640 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37641
37642         tests: avoid some compiler warnings
37643         * tests/test-memchr.c (main): Pass NULL indirectly.
37644         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37645
37646 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37647
37648         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37649         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37650         exactly specified dayshifts.
37651         (dayshift): New rule.
37652         (rel): Add dayshift.
37653         (relative_time_table) [tomorrow, yesterday, today, now]:
37654         Use tDAY_SHIFT in place of tDAY_UNIT.
37655         * tests/test-getdate.c: Add tests for now-disallowed countable
37656         dayshifts, e.g., "4 yesterday ago".
37657
37658 2008-09-29  Bruno Haible  <bruno@clisp.org>
37659
37660         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37661         * tests/test-posix_spawn1.in.sh: Renamed from
37662         tests/test-posix_spawn.in.sh.
37663         * tests/test-posix_spawn2.c: New file.
37664         * tests/test-posix_spawn2.in.sh: New file.
37665         * modules/posix_spawnp-tests (Files): Update.
37666         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37667
37668 2008-09-29  Bruno Haible  <bruno@clisp.org>
37669
37670         Propagate effects of putenv/setenv/unsetenv to child processes.
37671         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37672         * lib/pipe.c (create_pipe): Likewise.
37673
37674 2008-09-29  Bruno Haible  <bruno@clisp.org>
37675
37676         Enable use of shell scripts as executables in mingw.
37677         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37678         run the program as a shell script.
37679         * lib/pipe.c (create_pipe): Likewise.
37680         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37681         resulting array.
37682
37683 2008-09-29  Eric Blake  <ebb9@byu.net>
37684
37685         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37686
37687 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37688
37689         * doc/posix-functions/accept.texi: Update mingw problems.
37690         * doc/posix-functions/bind.texi: Update mingw problems.
37691         * doc/posix-functions/close.texi: Update mingw problems.
37692         * doc/posix-functions/connect.texi: Update mingw problems.
37693         * doc/posix-functions/getpeername.texi: Update mingw problems.
37694         * doc/posix-functions/getsockname.texi: Update mingw problems.
37695         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37696         * doc/posix-functions/ioctl.texi: Update mingw problems.
37697         * doc/posix-functions/listen.texi: Update mingw problems.
37698         * doc/posix-functions/recv.texi: Update mingw problems.
37699         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37700         * doc/posix-functions/select.texi: Update mingw problems.
37701         * doc/posix-functions/send.texi: Update mingw problems.
37702         * doc/posix-functions/sendto.texi: Update mingw problems.
37703         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37704         * doc/posix-functions/socket.texi: Update mingw problems.
37705
37706 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37707             Bruno Haible  <bruno@clisp.org>
37708
37709         * lib/sys_select.in.h: Include sys/time.h.
37710         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37711         * modules/sys_select: Depend on sys_time.
37712         * tests/test-sys_select.c: Test that sys/select.h defines struct
37713         timeval fully.
37714
37715 2008-09-29  Bruno Haible  <bruno@clisp.org>
37716
37717         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37718         * lib/sys_select.in.h: Likewise.
37719
37720 2008-09-29  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37723
37724 2008-09-29  Bruno Haible  <bruno@clisp.org>
37725
37726         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37727         Set LIBSOCKET instead of augmenting LIBS.
37728         * modules/sockets (Link): New section.
37729         * modules/sockets-tests (test_sockets_LDADD): New variable.
37730         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37731         * modules/poll-tests (test_poll_LDADD): New variable.
37732         * NEWS: Document the change.
37733
37734 2008-09-29  Bruno Haible  <bruno@clisp.org>
37735
37736         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37737         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37738         ARPA_INET_H directly.
37739         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37740
37741 2008-09-28  Bruno Haible  <bruno@clisp.org>
37742
37743         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37744         from gl_HEADER_SYS_SOCKET.
37745         (gl_HEADER_SYS_SOCKET): Invoke it.
37746         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37747
37748 2008-09-28  Bruno Haible  <bruno@clisp.org>
37749
37750         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37751         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37752         Needed on OSF/1 4.0.
37753
37754 2008-09-28  Bruno Haible  <bruno@clisp.org>
37755
37756         Override open more carefully.
37757         * lib/open.c (orig_open): New function.
37758         (rpl_open): Use orig_open instead of open.
37759         * lib/fcntl.in.h: Add special invocation convention.
37760         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37761         (gl_FUNC_OPEN): Invoke it.
37762
37763         Override freopen more carefully.
37764         * lib/freopen.c (orig_freopen): New function.
37765         (rpl_freopen): Use orig_freopen instead of freopen.
37766         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37767         (gl_FUNC_FREOPEN): Invoke it.
37768
37769         Override fopen more carefully.
37770         * lib/fopen.c (orig_fopen): New function.
37771         (rpl_fopen): Use orig_fopen instead of fopen.
37772         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37773         (gl_FUNC_FOPEN): Invoke it.
37774         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37775
37776 2008-09-28  Bruno Haible  <bruno@clisp.org>
37777
37778         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37779         SIGPIPE.
37780
37781 2008-09-28  Bruno Haible  <bruno@clisp.org>
37782
37783         * tests/test-sigaction.c (handler, main): Disable the check whether
37784         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37785         glibc systems with LinuxThreads.
37786
37787 2008-09-28  Bruno Haible  <bruno@clisp.org>
37788
37789         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37790
37791         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37792         with AIX xlc.
37793         * lib/fcntl.in.h (open): Likewise.
37794         Reported by Rainer Tammer <tammer@tammer.net>.
37795
37796 2008-09-28  Bruno Haible  <bruno@clisp.org>
37797
37798         * modules/posix_spawnp-tests: New file.
37799         * tests/test-posix_spawn.c: New file.
37800         * tests/test-posix_spawn.in.sh: New file.
37801
37802         New module 'posix_spawnp'.
37803         * modules/posix_spawnp: New file.
37804         * lib/spawnp.c: New file, from GNU libc with modifications.
37805         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37806
37807         New module 'posix_spawn'.
37808         * modules/posix_spawn: New file.
37809         * lib/spawn.c: New file, from GNU libc with modifications.
37810         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37811
37812         New module 'posix_spawnattr_destroy'.
37813         * modules/posix_spawnattr_destroy: New file.
37814         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37815         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37816         module.
37817
37818         New module 'posix_spawnattr_setsigmask'.
37819         * modules/posix_spawnattr_setsigmask: New file.
37820         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37821         modifications.
37822         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37823         new module.
37824
37825         New module 'posix_spawnattr_getsigmask'.
37826         * modules/posix_spawnattr_getsigmask: New file.
37827         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37828         modifications.
37829         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37830         new module.
37831
37832         New module 'posix_spawnattr_setsigdefault'.
37833         * modules/posix_spawnattr_setsigdefault: New file.
37834         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37835         modifications.
37836         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37837         new module.
37838
37839         New module 'posix_spawnattr_getsigdefault'.
37840         * modules/posix_spawnattr_getsigdefault: New file.
37841         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37842         modifications.
37843         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37844         new module.
37845
37846         New module 'posix_spawnattr_setschedpolicy'.
37847         * modules/posix_spawnattr_setschedpolicy: New file.
37848         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37849         modifications.
37850         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37851         new module.
37852
37853         New module 'posix_spawnattr_getschedpolicy'.
37854         * modules/posix_spawnattr_getschedpolicy: New file.
37855         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37856         modifications.
37857         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37858         new module.
37859
37860         New module 'posix_spawnattr_setschedparam'.
37861         * modules/posix_spawnattr_setschedparam: New file.
37862         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37863         modifications.
37864         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37865         new module.
37866
37867         New module 'posix_spawnattr_getschedparam'.
37868         * modules/posix_spawnattr_getschedparam: New file.
37869         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37870         modifications.
37871         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37872         new module.
37873
37874         New module 'posix_spawnattr_setpgroup'.
37875         * modules/posix_spawnattr_setpgroup: New file.
37876         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37877         modifications.
37878         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37879         module.
37880
37881         New module 'posix_spawnattr_getpgroup'.
37882         * modules/posix_spawnattr_getpgroup: New file.
37883         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37884         modifications.
37885         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37886         module.
37887
37888         New module 'posix_spawnattr_setflags'.
37889         * modules/posix_spawnattr_setflags: New file.
37890         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37891         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37892         module.
37893
37894         New module 'posix_spawnattr_getflags'.
37895         * modules/posix_spawnattr_getflags: New file.
37896         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37897         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37898         module.
37899
37900         New module 'posix_spawnattr_init'.
37901         * modules/posix_spawnattr_init: New file.
37902         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37903         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37904         module.
37905
37906         New module 'posix_spawn_file_actions_destroy'.
37907         * modules/posix_spawn_file_actions_destroy: New file.
37908         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37909         modifications.
37910         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37911         the new module.
37912
37913         New module 'posix_spawn_file_actions_addopen'.
37914         * modules/posix_spawn_file_actions_addopen: New file.
37915         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37916         modifications.
37917         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37918         the new module.
37919
37920         New module 'posix_spawn_file_actions_adddup2'.
37921         * modules/posix_spawn_file_actions_adddup2: New file.
37922         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37923         modifications.
37924         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37925         the new module.
37926
37927         New module 'posix_spawn_file_actions_addclose'.
37928         * modules/posix_spawn_file_actions_addclose: New file.
37929         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37930         modifications.
37931         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37932         the new module.
37933
37934         New module 'posix_spawn_file_actions_init'.
37935         * modules/posix_spawn_file_actions_init: New file.
37936         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37937         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37938         new module.
37939
37940         New module 'posix_spawn-internal'.
37941         * modules/posix_spawn-internal: New file.
37942         * lib/spawn_int.h: New file, from GNU libc with modifications.
37943         * lib/spawni.c: New file, from GNU libc with modifications.
37944         * m4/posix_spawn.m4: New file.
37945
37946         New module 'spawn'.
37947         * modules/spawn: New file.
37948         * lib/spawn.in.h: New file, from GNU libc with modifications.
37949         * m4/spawn_h.m4: New file.
37950         * doc/posix-headers/spawn.texi: Mention the new module.
37951
37952 2008-09-28  Bruno Haible  <bruno@clisp.org>
37953
37954         * modules/sched-tests: New file.
37955         * tests/test-sched.c: New file.
37956
37957         New module 'sched'.
37958         * modules/sched: New file.
37959         * lib/sched.in.h: New file.
37960         * m4/sched_h.m4: New file.
37961         * doc/posix-headers/sched.texi: Mention the new module.
37962
37963 2008-09-27  Eric Blake  <ebb9@byu.net>
37964
37965         Fix previous patch, and tweak references to $0.
37966         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37967         (func_version, func_gnulib_dir): Don't call this program
37968         gnulib-tool.
37969         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37970         with using $0 in function.
37971         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37972         (func_fatal_error): Reuse the name the user invoked us with.
37973
37974 2008-09-27  Bruno Haible  <bruno@clisp.org>
37975
37976         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37977         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37978         (gl_ICONV_H): Not here.
37979         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37980         instead of assigning ICONV_H directly.
37981
37982         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37984         WCHAR_H directly.
37985
37986 2008-09-27  Bruno Haible  <bruno@clisp.org>
37987
37988         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37989         * modules/arpa_inet (Depends-on): Add link-warning.
37990         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37991         * modules/unistd (Makefile.am): Likewise.
37992
37993 2008-09-26  Bruno Haible  <bruno@clisp.org>
37994
37995         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37996         variables.
37997         (func_version): Essentially copied from gnulib-tool.
37998         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37999         func_readlink): Copied from gnulib-tool.
38000
38001 2008-09-26  Bruno Haible  <bruno@clisp.org>
38002
38003         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38004         invoking git-version-gen.
38005
38006 2008-09-26  Bruno Haible  <bruno@clisp.org>
38007
38008         * posix-modules: Update to directory names changed on 2008-01-19.
38009         Remove commas in output before splitting into words. No more need to
38010         avoid 'ftruncate' since 2007-02-19.
38011
38012 2008-09-26  Bruno Haible  <bruno@clisp.org>
38013
38014         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38015
38016 2008-09-26  Bruno Haible  <bruno@clisp.org>
38017
38018         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38019         * modules/fwriteerror (Depends-on): Add errno.
38020
38021 2008-09-26  Bruno Haible  <bruno@clisp.org>
38022
38023         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38024         * tests/test-vc-list-files-cvs.sh: Likewise.
38025
38026 2008-09-26  Bruno Haible  <bruno@clisp.org>
38027
38028         * doc/posix-headers/sys_resource.texi: Reorder items.
38029
38030 2008-09-26  Jim Meyering  <meyering@redhat.com>
38031
38032         fts: tweak inode comparison function
38033         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38034         inode numbers, as documented.
38035
38036         fts: sort dirent entries on inode number before traversing
38037         This avoids a quadratic, seek-related performance penalty when
38038         operating on a directory containing many entries (measurable at 10k;
38039         3.5 hours at 2 million entries with a cold cache) on certain types
38040         of file systems, including ext3 and ext4, but not tmpfs.
38041         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38042         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38043         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38044         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38045         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38046         (fts_build): Set the stat.st_ino member from D_INO.
38047         If it is likely to be useful, sort dirent entries on inode number.
38048
38049         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38050         and the struct statfs.f_type member.
38051         * modules/fts (Depends-on): Add d-ino.
38052
38053 2008-09-26  Bruno Haible  <bruno@clisp.org>
38054
38055         * modules/sigpipe-die (Depends-on): Add sigpipe.
38056
38057         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38058         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38059         and GNULIB_STDIO_H_SIGPIPE are set.
38060         * lib/stdio-write.c: New file.
38061         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38062         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38063         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38064         REPLACE_STDIO_WRITE_FUNCS.
38065         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38066         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38067         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38068         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38069         * modules/stdio (Files): Add lib/stdio-write.c.
38070         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38071         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38072         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38073         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38074         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38075         REPLACE_FPRINTF_POSIX.
38076         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38077         REPLACE_PRINTF_POSIX.
38078         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38079         REPLACE_VFPRINTF_POSIX.
38080         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38081         REPLACE_VPRINTF_POSIX.
38082         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38083         SIGPIPE issue.
38084         * doc/posix-functions/fputc.texi: Likewise.
38085         * doc/posix-functions/fputs.texi: Likewise.
38086         * doc/posix-functions/fwrite.texi: Likewise.
38087         * doc/posix-functions/printf.texi: Likewise.
38088         * doc/posix-functions/putc.texi: Likewise.
38089         * doc/posix-functions/putchar.texi: Likewise.
38090         * doc/posix-functions/puts.texi: Likewise.
38091         * doc/posix-functions/vfprintf.texi: Likewise.
38092         * doc/posix-functions/vprintf.texi: Likewise.
38093
38094         * modules/safe-write (Depends-on): Add write.
38095
38096         * modules/sigpipe-tests: New file.
38097         * tests/test-sigpipe.c: New file.
38098         * tests/test-sigpipe.sh: New file.
38099
38100         * modules/write: New file.
38101         * lib/unistd.in.h: Include <sys/types.h>.
38102         (write): New declaration.
38103         * lib/write.c: New file.
38104         * m4/write.m4: New file.
38105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38106         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38107         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38108         GNULIB_WRITE, REPLACE_WRITE.
38109         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38110         and the SIGPIPE issue.
38111
38112         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38113         (raise): New declaration.
38114         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38115         (ext_signal): New function.
38116         (rpl_raise): New function.
38117         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38118         GNULIB_SIGNAL_H_SIGPIPE.
38119         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38120         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38121
38122         * modules/sigpipe: New file.
38123         * m4/sigpipe.m4: New file.
38124
38125 2008-09-25  Derek Price  <derek@ximbiot.com>
38126             Bruno Haible  <bruno@clisp.org>
38127
38128         * gnulib-tool (func_import): Report all license incompatibilities, not
38129         just the first one.
38130
38131 2008-09-25  Bruno Haible  <bruno@clisp.org>
38132
38133         * gnulib-tool (func_import): When computing the edits, consider not
38134         only the Makefile.ams that exist but also those that will be generated.
38135
38136 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38137
38138         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38139         fixes gnulib-tool --test warning about duplicate dependency.
38140
38141 2008-09-25  Bruno Haible  <bruno@clisp.org>
38142
38143         * gnulib-tool: Don't ask the user to perform edits in the generated
38144         Makefile.ams.
38145         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38146         apply to the Makefile.am being generated.
38147         (func_emit_tests_Makefile_am): Execute edits that apply to the
38148         Makefile.am being generated.
38149         (func_import): Setup list of Makefile.am edits before emitting the
38150         Makefile.ams, not at the end.
38151         (func_create_testdir): Update.
38152         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38153
38154 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38155
38156         * gnulib-tool (func_import): Store the --tests-base option in the
38157         comment in gnulib-cache.m4.
38158
38159 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38160
38161         * NEWS: Document increased portability that sys_select now provides.
38162
38163         * lib/sys_select.in.h: Install select wrapper.
38164         * lib/sys_socket.in.h: Use more descriptive name when there is no
38165         select wrapper.
38166         * lib/winsock-select.c: New.
38167         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38168         Require gl_HEADER_SYS_SOCKET.
38169         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38170         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38171         * tests/test-sys_select.c: Add functional tests.
38172
38173 2008-09-24  Eric Blake  <ebb9@byu.net>
38174
38175         open, fopen: close fd leak in last patch
38176         * lib/open.c (rpl_open): Close fd before returning error.
38177         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38178         * doc/posix-functions/open.texi (open): Document that Irix also
38179         has the bug.
38180         * doc/posix-functions/fopen.texi (fopen): Likewise.
38181         Reported by Paolo Bonzini.
38182
38183 2008-09-24  Bruno Haible  <bruno@clisp.org>
38184
38185         Ensure that a filename ending in a slash cannot be used to access a
38186         non-directory.
38187         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38188         to check whether it's really a directory.
38189         * lib/fopen.c: Include fcntl.h, unistd.h.
38190         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38191         and fdopen().
38192         * modules/fopen (Depends-on): Add unistd.
38193         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38194         * tests/test-fopen.c (main): Likewise.
38195         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38196         * doc/posix-functions/fopen.texi: Likewise.
38197         Reported by Eric Blake.
38198
38199 2008-09-23  Eric Blake  <ebb9@byu.net>
38200
38201         c-stack: avoid compiler optimizations when provoking overflow
38202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38203         recursion harder to optimize, to ensure a stack overflow occurs.
38204         * tests/test-c-stack.c (recurse): Likewise.
38205         Borrowed from libsigsegv.
38206
38207         c-stack: work around Irix sigaltstack bug
38208         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38209         whether sigaltstack uses wrong end of stack_t (copied in part from
38210         libsigsegv).
38211         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38212         Irix bug, without requiring an over-allocation.
38213         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38214         bug.
38215
38216         fopen: document mingw bug on directories
38217         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38218         not allowing a stream visiting a directory, even though reading
38219         from such a stream is not portable.
38220
38221 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38222
38223         * lib/poll.c: Rewrite.
38224         * modules/poll: Depend on alloca.
38225
38226 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38227
38228         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38229         instead define prototypes for a full set of wrappers.  Ensure
38230         that Cygwin does not use the compatibility code, which is only
38231         for MinGW.
38232         * lib/winsock.c: New.
38233         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38234         * modules/sys_socket: Add lib/winsock.c.
38235
38236         * modules/poll-tests: Add errno and perror.
38237         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38238
38239 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38240
38241         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38242
38243 2008-09-23  Bruno Haible  <bruno@clisp.org>
38244
38245         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38246         * doc/glibc-functions/*: Likewise.
38247
38248 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38249
38250         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38251         success.
38252
38253 2008-09-22  Eric Blake  <ebb9@byu.net>
38254             Bruno Haible  <bruno@clisp.org>
38255
38256         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38257         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38258         supply %A but mishandle pseudo-NaN.
38259         Reported by Simon Josefsson.
38260
38261 2008-09-21  Bruno Haible  <bruno@clisp.org>
38262
38263         * tests/test-lock.c (main): Tweak skip message.
38264         * tests/test-tls.c (main): Likewise.
38265
38266 2008-09-21  Bruno Haible  <bruno@clisp.org>
38267
38268         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38269         whether 'struct sigaction' has sa_sigaction here...
38270         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38271         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38272
38273 2008-09-21  Bruno Haible  <bruno@clisp.org>
38274
38275         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38276         section.
38277         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38278         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38279         the new section.
38280         (Support for obsolete systems lacking POSIX:2001): New section.
38281         (String handling <string.h>): Move strdup to the new section.
38282         Suggested by Simon Josefsson and Paolo Bonzini.
38283
38284 2008-09-21  Bruno Haible  <bruno@clisp.org>
38285
38286         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38287         exponents in %e and %g results on 'long double'. Needed for mingw's
38288         improved *printf functions.
38289         * tests/test-vasprintf-posix.c (test_function): Likewise.
38290         * tests/test-snprintf-posix.h (test_function): Likewise.
38291         * tests/test-sprintf-posix.h (test_function): Likewise.
38292         Reported by Eric Blake.
38293
38294 2008-09-21  Bruno Haible  <bruno@clisp.org>
38295
38296         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38297         * tests/test-sprintf-posix.h (test_function): Likewise.
38298
38299 2008-09-21  Bruno Haible  <bruno@clisp.org>
38300
38301         * modules/getpass (Depends-on): Add strdup-posix.
38302
38303         New module 'strdup-posix'.
38304         * modules/strdup-posix: New file.
38305         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38306         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38308         REPLACE_STRDUP.
38309         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38310         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38312         strdup-posix.
38313
38314         * modules/strdup (Depends-on): Remove malloc-posix.
38315
38316 2008-09-20  Bruno Haible  <bruno@clisp.org>
38317
38318         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38319         Wildenhues.
38320
38321 2008-09-20  Bruno Haible  <bruno@clisp.org>
38322
38323         Ensure that wint_t gets defined on IRIX 5.3.
38324         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38325         * lib/wctype.in.h (wint_t): Likewise.
38326         (__wctype_wint_t): Remove type.
38327         (isw*): Use wint_t instead of __wctype_wint_t.
38328         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38329         * modules/wchar (Files): Add m4/wint_t.m4.
38330         (Makefile.am): Substitute HAVE_WINT_T.
38331         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38332         * tests/test-wctype.c: Check that wint_t is defined.
38333         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38334         * doc/posix-headers/wctype.texi: Likewise.
38335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38336
38337 2008-09-18  Bruno Haible  <bruno@clisp.org>
38338
38339         * gnulib-tool (func_exit): Update comment.
38340
38341 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38342
38343         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38344         assumes strdup exists and does not depend on strdup to return
38345         ENOMEM on out of memory conditions.
38346
38347 2008-09-18  Bruno Haible  <bruno@clisp.org>
38348
38349         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38350         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38351         digits for the exponent.
38352
38353 2008-09-18  Jim Meyering  <meyering@redhat.com>
38354             Bruno Haible  <bruno@clisp.org>
38355
38356         * lib/vasnprintf.c (decimal_point_char): Define also if
38357         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38358
38359 2008-09-16  Bruno Haible  <bruno@clisp.org>
38360         and Eric Blake  <ebb9@byu.net>
38361
38362         vasnprintf: support Irix 5.3
38363         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38364         that mishandle long double infinity.
38365         Reported by Tom G. Christensen.
38366
38367 2008-09-16  Bruno Haible  <bruno@clisp.org>
38368
38369         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38370         Solaris 9.
38371         * doc/glibc-functions/alphasort.texi: Likewise.
38372         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38373
38374 2008-09-16  Jim Meyering  <meyering@redhat.com>
38375
38376         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38377         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38378         a umask modification leak out of a subshell.  Otherwise, the
38379         opensolaris /bin/sh would be accepted and thus cause unwarranted
38380         failures in the coreutils test suite.
38381
38382 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38383
38384         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38385         to succeed.
38386
38387 2008-09-16  Jim Meyering  <meyering@redhat.com>
38388
38389         avoid spurious test failure when library is built without ACL support
38390         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38391         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38392         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38393         * tests/test-copy-acl.sh: Likewise.
38394
38395 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38396
38397         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38398         based on character occurrence counts.
38399
38400 2008-09-15  Eric Blake  <ebb9@byu.net>
38401
38402         tests: avoid some compiler warnings
38403         * tests/test-memchr.c (main): Pass NULL indirectly.
38404         * tests/test-closein.c (main): Avoid unused variable.
38405
38406 2008-09-15  Bruno Haible  <bruno@clisp.org>
38407
38408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38409         are missing on OpenBSD 4.0 individually.
38410         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38411
38412 2008-09-15  Bruno Haible  <bruno@clisp.org>
38413
38414         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38415         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38416         * doc/posix-functions/perror.texi: Likewise.
38417         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38418         is missing.
38419         Reported by Eric Blake.
38420
38421         * lib/errno.in.h: Use replacement values >= 2000.
38422         Reported by Eric Blake.
38423
38424 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38425
38426         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38427         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38428         limit.
38429         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38430         compareseq was aborted.
38431
38432 2008-09-14  Bruno Haible  <bruno@clisp.org>
38433
38434         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38435         yvec_edit_count.
38436         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38437         (fstrcmp_bounded): Simplify result computation accordingly.
38438
38439 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38440
38441         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38442         (fstrcmp): Define in terms of fstrcmp_bounded.
38443         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38444         lower_bound argument.
38445         Return quickly if the result is certainly < lower_bound.
38446         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38447
38448 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38449
38450         * lib/diffseq.h (EARLY_ABORT): New macro.
38451         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38452         evaluates to true.
38453
38454 2008-09-14  Bruno Haible  <bruno@clisp.org>
38455
38456         * modules/perror-tests: New file.
38457         * tests/test-perror.sh: New file.
38458         * tests/test-perror.c: New file.
38459
38460         New module 'perror'.
38461         * lib/stdio.in.h (perror): New declaration.
38462         * lib/perror.c: New file.
38463         * m4/perror.m4: New file.
38464         * modules/perror: New file.
38465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38466         * doc/posix-functions/perror.texi: Mention the perror module.
38467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38468         REPLACE_PERROR.
38469         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38470         REPLACE_PERROR.
38471
38472 2008-09-14  Bruno Haible  <bruno@clisp.org>
38473
38474         * modules/stdio (Makefile.am): Reorder to match the order in
38475         lib/stdio.in.h.
38476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38477
38478 2008-09-13  Bruno Haible  <bruno@clisp.org>
38479
38480         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38481
38482 2008-09-13  Bruno Haible  <bruno@clisp.org>
38483
38484         Extend strerror to cover the added errno values.
38485         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38486         (rpl_strerror): Provide error messages for the added errno values and
38487         for the WSA* values.
38488         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38489         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38490         strerror.
38491         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38492         * modules/strerror (Depends-on): Add errno.
38493         * doc/posix-functions/strerror.texi: Document the change.
38494         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38495         and EOVERFLOW.
38496
38497 2008-09-13  Bruno Haible  <bruno@clisp.org>
38498
38499         * modules/EOVERFLOW: Remove file.
38500         * m4/eoverflow.m4: Remove file.
38501         * modules/EOVERFLOW-tests: Remove file.
38502         * tests/test-EOVERFLOW.c: Remove file.
38503         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38504         * modules/ftell (Depends-on): Likewise.
38505         * modules/getdelim (Depends-on): Likewise.
38506         * modules/getugroups (Depends-on): Likewise.
38507         * modules/poll (Depends-on): Likewise.
38508         * modules/snprintf (Depends-on): Likewise.
38509         * modules/sprintf-posix (Depends-on): Likewise.
38510         * modules/vasnprintf (Depends-on): Likewise.
38511         * modules/vasprintf (Depends-on): Likewise.
38512         * modules/vfprintf-posix (Depends-on): Likewise.
38513         * modules/vsnprintf (Depends-on): Likewise.
38514         * modules/vsprintf-posix (Depends-on): Likewise.
38515         * modules/xvasprintf (Depends-on): Likewise.
38516         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38517         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38518         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38519         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38520         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38521         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38522         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38523         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38524         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38525         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38526         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38527         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38528         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38529         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38530         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38531         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38533         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38534         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38535         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38536         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38537         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38538         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38539         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38540         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38541         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38542         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38543         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38544         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38545         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38546         * MODULES.html.sh: Remove EOVERFLOW.
38547         * NEWS: Mention the change.
38548
38549 2008-09-13  Bruno Haible  <bruno@clisp.org>
38550
38551         * modules/errno-tests: New file.
38552         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38553
38554         * lib/errno.in.h: New file.
38555         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38556         * modules/errno: New file.
38557         * doc/posix-headers/errno.texi: Update documentation.
38558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38559
38560 2008-09-13  Bruno Haible  <bruno@clisp.org>
38561
38562         * tests/test-poll.c: Use #if for native Windows, rather than testing
38563         __MSVCRT__.
38564
38565 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38566             Bruno Haible  <bruno@clisp.org>
38567
38568         * lib/glob.c: Don't include <pwd.h> on native Windows.
38569         (WINDOWS32): New macro.
38570         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38571
38572 2008-09-13  Bruno Haible  <bruno@clisp.org>
38573
38574         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38575         (ETIMEDOUT): Remove macro.
38576         (glthread_cond_timedwait_multithreaded): New declaration.
38577         (glthread_cond_timedwait): Use it.
38578         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38579         (glthread_cond_timedwait_multithreaded): New function.
38580
38581 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38582
38583         * modules/poll-tests: Do not check for io.h.
38584         * tests/test-poll.c: Check for __MSVCRT__ instead.
38585
38586 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38587
38588         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38589         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38590         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38591
38592 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38593
38594         * modules/poll-tests: New.
38595         * tests/test-poll.c: New.
38596
38597 2008-09-12  Eric Blake  <ebb9@byu.net>
38598
38599         frexp: test for NetBSD failure on -0.0
38600         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38601         not all, bugs from NetBSD 3.0 have been fixed.
38602         * doc/posix-functions/frexp.texi (frexp): Document bug.
38603         Reported by Thomas Klausner.
38604
38605         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38606         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38607         literal -0.0.
38608         Reported by Jonathan C. Patschke <jp@centtech.com>.
38609
38610 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38611
38612         * lib/glthread/cond.h: Use dummy implementation also if
38613         USE_WIN32_THREADS.
38614
38615 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38616
38617         * modules/fnmatch-posix (License): Change to LGPLv2+.
38618         * modules/fnmatch-gnu (License): Likewise.
38619
38620 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38621
38622         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38623
38624 2008-09-11  Jim Meyering  <meyering@redhat.com>
38625
38626         * users.txt: Add gtk-vnc.
38627
38628 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38629
38630         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38631         rotate amounts.
38632
38633         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38634         required for 16-bit and 8-bit rotates.
38635         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38636         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38637         UINT8_MAX instead of hard-coded constants.
38638         Suggested by Paul Eggert.
38639
38640 2008-09-07  Bruno Haible  <bruno@clisp.org>
38641
38642         * tests/test-striconveh.c (main): Check behaviour when converting from
38643         UTF-7.
38644
38645         Make striconveh work better with stateful encodings.
38646         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38647         that iconv does not increment the inptr when returning -1/EINVAL.
38648
38649 2008-09-07  Bruno Haible  <bruno@clisp.org>
38650
38651         * build-aux/config.rpath: Update according to libtool-2.2.6.
38652         * build-aux/config.libpath: Likewise.
38653
38654 2008-09-06  Bruno Haible  <bruno@clisp.org>
38655
38656         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38657         * lib/freadptr.c (freadptr): Likewise.
38658         * lib/freadseek.c (freadptrinc): Likewise.
38659         Reported by Simon Josefsson.
38660
38661 2008-09-06  Bruno Haible  <bruno@clisp.org>
38662
38663         * modules/freadptr (License): Change to LGPLv2+.
38664         * modules/freadseek (License): Likewise.
38665         Suggested by Eric Blake.
38666
38667         * modules/memchr2 (License): Change to LGPLv2+.
38668         Approved by Eric Blake.
38669
38670 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38671             Bruno Haible  <bruno@clisp.org>
38672
38673         Make gnulib-tool work with native 'sed' on AIX.
38674         * gnulib-tool (sed_noop): New variable.
38675         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38676         func_add_or_update, func_create_testdir): Use it to initialize sed
38677         script variables.
38678         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38679
38680 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38681             Bruno Haible  <bruno@clisp.org>
38682
38683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38684         also works after #include directives.
38685
38686 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38687
38688         getdate.y: reject an out-of-range timezone value
38689         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38690         the range [-24...+24].  When specified with only one or two digits,
38691         * tests/test-getdate.c: Tests for the fix.
38692         * doc/getdate.texi: Document this change.
38693
38694 2008-09-03  Bruno Haible  <bruno@clisp.org>
38695
38696         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38697
38698 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38699
38700         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38701         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38702         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38703         Blake <ebb9@byu.net>.
38704
38705         * tests/test-bitrotate.c: Add more test vectors.
38706
38707 2008-09-02  Eric Blake  <ebb9@byu.net>
38708
38709         vasnprintf-posix: handle large precision via %.*d
38710         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38711         when handling it ourselves.
38712         * tests/test-vasnprintf-posix.c (test_function): Add test.
38713         * tests/test-snprintf-posix.h (test_function): Likewise.
38714         * tests/test-sprintf-posix.h (test_function): Likewise.
38715         * tests/test-vasprintf-posix.c (test_function): Likewise.
38716         Reported by Alain Guibert.
38717
38718 2008-09-01  Eric Blake  <ebb9@byu.net>
38719
38720         c-stack: make configure-time check more robust
38721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38722         successful sigaction call.
38723         Reported by Tom G. Christensen.
38724
38725 2008-09-01  Bruno Haible  <bruno@clisp.org>
38726
38727         New module 'findprog-lgpl'.
38728         * modules/findprog-lgpl: New file.
38729         * lib/findprog-lgpl.c: New file.
38730         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38731         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38732         to decide whether to use strdup or xstrdup, concatenated_filename or
38733         xconcatenated_filename.
38734
38735 2008-09-01  Bruno Haible  <bruno@clisp.org>
38736
38737         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38738         'xconcat-filename' (GPL).
38739         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38740         (License): Change to LGPLv2+.
38741         * modules/xconcat-filename: New file.
38742         * lib/concat-filename.h (concatenated_filename): Change specification.
38743         (xconcatenated_filename): New declaration.
38744         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38745         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38746         memory situations.
38747         * lib/xconcat-filename.c: New file.
38748         * NEWS: Mention the change.
38749         * lib/findprog.c: Include concat-filename.h, not filename.h.
38750         (find_in_path): Use xconcatenated_filename instead of
38751         concatenated_filename.
38752         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38753         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38754         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38755         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38756         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38757         instead of concatenated_filename.
38758         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38759         (execute_java_class): Use xconcatenated_filename instead of
38760         concatenated_filename.
38761         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38762         * modules/javacomp (Depends-on): Likewise.
38763         * modules/javaexec (Depends-on): Likewise.
38764
38765 2008-09-01  Bruno Haible  <bruno@clisp.org>
38766
38767         Split module 'filename' into 'filename' and 'concat-filename'.
38768         * modules/filename: Keep only lib/filename.h.
38769         (License): Change to LGPLv2+.
38770         * modules/concat-filename: New file, extracted from modules/filename.
38771         * lib/filename.h (concatenated_filename): Remove declaration.
38772         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38773         * lib/concat-filename.c: Include concat-filename.h.
38774         * NEWS: Mention the change.
38775
38776 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38777
38778         * lib/bitrotate.h (rotl8, rotr8): Add.
38779
38780         * modules/bitrotate (configure.ac): Need
38781         AC_REQUIRE([AC_C_INLINE]).
38782         (Description): Mention stdint.h.  Reported by Bruno Haible
38783         <bruno@clisp.org>.
38784
38785         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38786         Paolo Bonzini <bonzini@gnu.org>.
38787
38788 2008-08-31  Bruno Haible  <bruno@clisp.org>
38789
38790         Assume Solaris specific bi-arch conventions on Solaris systems.
38791         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38792         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38793         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38794         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38795         like acl_libdirstem.
38796         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38797         acl_libdirstem.
38798         * NEWS: Mention the change.
38799         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38800
38801 2008-08-31  Jim Meyering  <meyering@redhat.com>
38802
38803         * lib/strftime.h: Add comments describing the two added arguments.
38804
38805         remove duplicate #include directives
38806         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38807         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38808
38809 2008-08-31  Bruno Haible  <bruno@clisp.org>
38810
38811         New module 'sigpipe-die'.
38812         * modules/sigpipe-die: New file.
38813         * lib/sigpipe-die.h: New file.
38814         * lib/sigpipe-die.c: New file.
38815         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38816
38817 2008-08-31  Bruno Haible  <bruno@clisp.org>
38818
38819         Don't override previously installed signal handlers.
38820         * lib/fatal-signal.c (saved_sigactions): New variable.
38821         (uninstall_handlers): Reset the signal to the saved handler, not
38822         to SIG_DFL (except when ignored).
38823         (install_handlers): Save the previous handlers.
38824
38825 2008-08-30  Bruno Haible  <bruno@clisp.org>
38826
38827         * gnulib-tool (func_reset_sigpipe): New function.
38828         (func_get_automake_snippet, func_modules_transitive_closure,
38829         func_import): Invoke it before a join command that reads from stdin,
38830         to avoid "echo: write error: Broken pipe" error messages on stderr.
38831         Reported by Sam Steingold <sds@gnu.org>.
38832
38833 2008-08-30  Bruno Haible  <bruno@clisp.org>
38834
38835         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38836         Code copied from m4/open.m4.
38837         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38838         access and the filename ends in a slash. Code copied from lib/open.c.
38839         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38840         * tests/test-fopen.c (main): Check against bug with trailing slash.
38841
38842 2008-08-29  Bruno Haible  <bruno@clisp.org>
38843
38844         Avoid some "gcc -pedantic" warnings.
38845         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38846         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38847         * lib/dirent.in.h: Likewise.
38848         * lib/fcntl.in.h: Likewise.
38849         * lib/float.in.h: Likewise.
38850         * lib/iconv.in.h: Likewise.
38851         * lib/inttypes.in.h: Likewise.
38852         * lib/locale.in.h: Likewise.
38853         * lib/math.in.h: Likewise.
38854         * lib/netinet_in.in.h: Likewise.
38855         * lib/search.in.h: Likewise.
38856         * lib/signal.in.h: Likewise.
38857         * lib/stdarg.in.h: Likewise.
38858         * lib/stdint.in.h: Likewise.
38859         * lib/stdio.in.h: Likewise.
38860         * lib/stdlib.in.h: Likewise.
38861         * lib/string.in.h: Likewise.
38862         * lib/strings.in.h: Likewise.
38863         * lib/sys_select.in.h: Likewise.
38864         * lib/sys_socket.in.h: Likewise.
38865         * lib/sys_stat.in.h: Likewise.
38866         * lib/sys_time.in.h: Likewise.
38867         * lib/sysexits.in.h: Likewise.
38868         * lib/time.in.h: Likewise.
38869         * lib/unistd.in.h: Likewise.
38870         * lib/wchar.in.h: Likewise.
38871         * lib/wctype.in.h: Likewise.
38872         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38873         * modules/fchdir (Makefile.am): Likewise.
38874         * modules/fcntl (Makefile.am): Likewise.
38875         * modules/float (Makefile.am): Likewise.
38876         * modules/iconv_open (Makefile.am): Likewise.
38877         * modules/inttypes (Makefile.am): Likewise.
38878         * modules/locale (Makefile.am): Likewise.
38879         * modules/math (Makefile.am): Likewise.
38880         * modules/netinet_in (Makefile.am): Likewise.
38881         * modules/search (Makefile.am): Likewise.
38882         * modules/signal (Makefile.am): Likewise.
38883         * modules/stdarg (Makefile.am): Likewise.
38884         * modules/stdint (Makefile.am): Likewise.
38885         * modules/stdio (Makefile.am): Likewise.
38886         * modules/stdlib (Makefile.am): Likewise.
38887         * modules/string (Makefile.am): Likewise.
38888         * modules/strings (Makefile.am): Likewise.
38889         * modules/sys_select (Makefile.am): Likewise.
38890         * modules/sys_socket (Makefile.am): Likewise.
38891         * modules/sys_stat (Makefile.am): Likewise.
38892         * modules/sys_time (Makefile.am): Likewise.
38893         * modules/sysexits (Makefile.am): Likewise.
38894         * modules/time (Makefile.am): Likewise.
38895         * modules/unistd (Makefile.am): Likewise.
38896         * modules/wchar (Makefile.am): Likewise.
38897         * modules/wctype (Makefile.am): Likewise.
38898         Reported by Reuben Thomas <rrt@sc3d.org>.
38899
38900 2008-08-29  Bruno Haible  <bruno@clisp.org>
38901
38902         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38903         any more.
38904
38905 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38906
38907         * MODULES.html.sh (Misc): Add bitrotate.
38908
38909         * modules/bitrotate: New file.
38910
38911         * lib/bitrotate.h: New file.
38912
38913         * modules/bitrotate-tests: New file.
38914
38915         * tests/test-bitrotate.c: New file.
38916
38917         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38918         on the bitrotate module.
38919
38920         * lib/arctwo.c: Use new bitrotate module.
38921
38922 2008-08-29  Jim Meyering  <meyering@redhat.com>
38923
38924         bootstrap: merge changes from coreutils
38925         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38926         of copied files.  Remove a kludge, now that this is fixed.
38927         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38928         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38929         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38930
38931 2008-08-29  Bruno Haible  <bruno@clisp.org>
38932
38933         * MODULES.html.sh: Remove --cvs-urls option.
38934
38935 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38936
38937         maint.mk: adjust to file name change
38938         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38939
38940 2008-08-28  Jim Meyering  <meyering@redhat.com>
38941
38942         * modules/getndelim2 (License): Relicense to LGPLv2+.
38943         Approved by Richard Stallman for the version of 1995, and by
38944         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38945
38946 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38947
38948         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38949         dummy if one is not available.  Do not touch them if
38950         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38951         (getc_maybe_unlocked): New.
38952         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38953
38954 2008-08-26  Eric Blake  <ebb9@byu.net>
38955
38956         doc/INSTALL: resync from autoconf
38957         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38958         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38959         moving...
38960         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38961         * INSTALL: Regenerate.
38962         * INSTALL.ISO: New file.
38963         * INSTALL.UTF-8: Likewise.
38964
38965 2008-08-26  Jim Meyering  <meyering@redhat.com>
38966
38967         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38968         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38969         these definitions conditional, so that they may be overridden, too.
38970
38971 2008-08-26  Bruno Haible  <bruno@clisp.org>
38972
38973         Generate INSTALL file variants with prettier quotes.
38974         * doc/Makefile (INSTALL_PRELUDE): New macro.
38975         (INSTALL): Use it.
38976         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38977
38978 2008-08-26  Bruno Haible  <bruno@clisp.org>
38979
38980         Run makeinfo in an English locale.
38981         * doc/Makefile (MAKEINFO): New variable.
38982
38983 2008-08-26  Bruno Haible  <bruno@clisp.org>
38984
38985         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38986         Suggested by Eric Blake.
38987
38988 2008-08-25  Bruno Haible  <bruno@clisp.org>
38989
38990         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38991
38992 2008-08-25  Eric Blake  <ebb9@byu.net>
38993
38994         c-stack: test that stack overflow can be caught
38995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38996         that platform allows handling stack overflow; at least OS/2 EMX
38997         has sigaltstack, but crashes before transferring control to
38998         handler on stack overflow.
38999         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39000         check for HAVE_STACK_OVERFLOW_HANDLING.
39001         Reported by Elbert Pol.
39002
39003 2008-08-25  Bruno Haible  <bruno@clisp.org>
39004
39005         * doc/posix-functions/strftime.texi: Fix description of strftime
39006         module.
39007
39008 2008-08-24  Bruno Haible  <bruno@clisp.org>
39009
39010         * tests/uniwidth/test-uc_width2.c: New file.
39011         * tests/uniwidth/test-uc_width2.sh: New file.
39012         * modules/uniwidth/width-tests (Files): Add the new files.
39013         (TESTS): Add uniwidth/test-uc_width2.sh.
39014         (TESTS_ENVIRONMENT): New variable.
39015         (check_PROGRAMS): Add test-uc_width2.
39016         (test_uc_width2_SOURCES): New variable.
39017
39018         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39019         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39020         not 0x00AB.
39021         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39022
39023 2008-08-22  Eric Blake  <ebb9@byu.net>
39024
39025         test-lock, test-tls: mention why a test is skipped
39026         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39027         skipped.
39028         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39029
39030         count-one-bits: relax license
39031         * modules/count-one-bits (License): Relicense to LGPLv2+.
39032         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39033
39034 2008-08-22  Andreas Schwab  <schwab@suse.de>
39035
39036         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39037         Remove spurious space in assignment.
39038
39039 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39040
39041         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39042         Paul Eggert <eggert@CS.UCLA.EDU>.
39043
39044 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39045
39046         * modules/gettext: Add m4/threadlib.m4.
39047
39048 2008-08-19  Eric Blake  <ebb9@byu.net>
39049
39050         test-c-stack: fix compilation failure on FreeBSD 5.0
39051         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39052         headers before <sys/resource.h>.
39053         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39054         the bug.
39055         Reported by Nelson H. F. Beebe.
39056
39057         strverscmp: migrate from "strverscmp.h" to <string.h>
39058         * modules/string (Makefile.am): Add new hooks.
39059         * modules/strverscmp (Files): Remove strverscmp.h.
39060         (Depends-on): Add string.
39061         (configure.ac): Add indicator.
39062         (Include): Mention new header.
39063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39064         defaults.
39065         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39066         results.
39067         * lib/strverscmp.h: Delete.
39068         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39069         * tests/test-strverscmp.c (includes): Adjust client.
39070         * lib/check-version.c (includes): Likewise.
39071         * NEWS: Document the change.
39072
39073         strverscmp: add unit test
39074         * modules/strverscmp-tests: New file.
39075         * tests/test-strverscmp.c: Likewise.
39076
39077 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39078
39079         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39080         regarding Windows crypto stuff, from Mono.
39081
39082 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39083
39084         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39085         if present, for intel RND.  Return error on failures.
39086
39087 2008-08-18  Ben Pfaff  <blp@gnu.org>
39088
39089         gitlog-to-changelog: give better diagnostic for failed pipe-open
39090         * build-aux/gitlog-to-changelog: Improve error message: suggest
39091         that the version of Git may be too old.
39092
39093 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39094
39095         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39096         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39097
39098 2008-08-18  Bruno Haible  <bruno@clisp.org>
39099
39100         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39101         pthread_in_use().
39102
39103 2008-08-18  Bruno Haible  <bruno@clisp.org>
39104
39105         * lib/glthread/threadlib.c: Include <pthread.h>.
39106
39107 2008-08-18  Bruno Haible  <bruno@clisp.org>
39108
39109         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39110         glthread_recursive_lock_* macros.
39111         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39112         Fix syntax error.
39113
39114 2008-08-18  Bruno Haible  <bruno@clisp.org>
39115
39116         * lib/glthread/thread.c: Avoid forcing a context switch right after
39117         thread creation.
39118
39119 2008-08-17  Bruno Haible  <bruno@clisp.org>
39120
39121         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39122         * lib/glthread/thread.h: Provide Win32 specific implementation.
39123         * modules/thread (Files): Add lib/glthread/thread.c.
39124         (Depends-on): Add lock.
39125         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39126
39127 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39128
39129         New module 'yield'.
39130         * modules/yield: New file.
39131         * lib/glthread/yield.h: New file.
39132         * m4/yield.m4: New file.
39133         * MODULES.html.sh (Multithreading): Add yield.
39134
39135 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39136
39137         New module 'thread'.
39138         * modules/thread: New file.
39139         * lib/glthread/thread.h: New file.
39140         * m4/thread.m4: New file.
39141         * MODULES.html.sh (Multithreading): Add thread.
39142
39143 2008-08-17  Bruno Haible  <bruno@clisp.org>
39144
39145         * lib/glthread/lock.h: Include <stdlib.h> always.
39146         * lib/glthread/tls.h: Likewise.
39147         * lib/glthread/cond.h: Likewise.
39148
39149 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39150
39151         New module 'cond'.
39152         * modules/cond: New file.
39153         * lib/glthread/cond.h: New file.
39154         * lib/glthread/cond.c: New file.
39155         * m4/cond.m4: New file.
39156         * MODULES.html.sh (Multithreading): Add cond.
39157
39158 2008-08-16  Eric Blake  <ebb9@byu.net>
39159
39160         c-stack: fix regression on Irix 5.3 from 2008-06-21
39161         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39162         sa_sigaction...
39163         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39164         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39165         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39166         * modules/signal (Makefile.am): Use the value.
39167         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39168         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39169         * doc/posix-headers/signal.texi (signal.h): Document this
39170         portability issue.
39171         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39172         Reported by Tom G. Christensen.
39173
39174 2008-08-17  Bruno Haible  <bruno@clisp.org>
39175
39176         New module 'threadlib'.
39177         * modules/threadlib: New file.
39178         * lib/glthread/threadlib.c: New file, extracted from
39179         lib/glthread/lock.c.
39180         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39181         functions.
39182         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39183         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39184         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39185         macros.
39186         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39187         (gl_DISABLE_THREADS): Remove macro.
39188         * modules/lock (Files): Remove build-aux/config.rpath.
39189         (Depends-on): Remove havelib. Add threadlib.
39190         (configure.ac-early): Remove section.
39191         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39192         * modules/tls (Depends-on): Remove lock. Add threadlib.
39193         (Link): New section, copied from threadlib.
39194         * MODULES.html.sh (Multithreading): Add threadlib.
39195
39196 2008-08-14  Bruno Haible  <bruno@clisp.org>
39197
39198         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39199         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39200         glthread_rwlock_unlock, glthread_rwlock_destroy,
39201         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39202         glthread_recursive_lock_destroy): Define as macros always.
39203         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39204         glthread_lock_lock.
39205         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39206         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39207         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39208         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39209         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39210         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39211         (glthread_recursive_lock_lock_func): Renamed from
39212         glthread_recursive_lock_lock.
39213         (glthread_recursive_lock_unlock_func): Renamed from
39214         glthread_recursive_lock_unlock.
39215         (glthread_recursive_lock_destroy_func): Renamed from
39216         glthread_recursive_lock_destroy.
39217
39218 2008-08-14  Bruno Haible  <bruno@clisp.org>
39219
39220         * lib/glthread/lock.h: Renamed from lib/lock.h.
39221         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39222         * lib/glthread/tls.h: Renamed from lib/tls.h.
39223         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39224         * lib/fstrcmp.c: Update includes.
39225         * lib/strsignal.c: Update includes.
39226         * modules/lock (Files, Makefile.am): Update.
39227         (Include): Change to "glthread/lock.h".
39228         * modules/tls (Files, Makefile.am): Update.
39229         (Include): Change to "glthread/tls.h".
39230         * tests/test-lock.c: Update includes.
39231         * tests/test-tls.c: Update includes.
39232         * NEWS: Mention the renamed header files.
39233
39234 2008-08-11  Jim Meyering  <meyering@redhat.com>
39235
39236         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39237
39238 2008-08-11  Eric Blake  <ebb9@byu.net>
39239
39240         test-c-stack: avoid C99-ism
39241         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39242         before statement.
39243         Reported by Alain Guibert.
39244
39245 2008-08-10  Jim Meyering  <meyering@redhat.com>
39246
39247         ensure that return value of uinttostr et al are not ignored
39248         * lib/inttostr.h (__GNUC_PREREQ): Define.
39249         (__attribute_warn_unused_result__): Define.
39250         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39251
39252 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39253
39254         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39255         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39256
39257 2008-08-07  Jim Meyering  <meyering@redhat.com>
39258
39259         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39260
39261         * modules/mkstemp (License): Relicense under LGPLv2+.
39262         * modules/tempname (License): Likewise.
39263
39264 2008-08-06  Bruno Haible  <bruno@clisp.org>
39265
39266         * lib/poll.c (poll): Further micro-optimization.
39267
39268 2008-08-06  Jim Meyering  <meyering@redhat.com>
39269
39270         inet_pton.c: use locale-independent tolower
39271         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39272         (inet_pton6): Use c_tolower rather than tolower.
39273         * modules/inet_pton (Depends-on): Add c-ctype.
39274
39275 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39276
39277         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39278         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39279
39280 2008-08-06  Jim Meyering  <meyering@redhat.com>
39281
39282         * modules/inet_pton (License): Relicense under LGPLv2+.
39283
39284 2008-08-03  Bruno Haible  <bruno@clisp.org>
39285
39286         Additional non-aborting API for lock and tls.
39287         * lib/lock.h: Include <errno.h>.
39288         (glthread_lock_init): New macro/function.
39289         (gl_lock_init): Define as wrapper around glthread_lock_init.
39290         (glthread_lock_lock): New macro/function.
39291         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39292         (glthread_lock_unlock): New macro/function.
39293         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39294         (glthread_lock_destroy): New macro/function.
39295         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39296         (glthread_rwlock_init): New macro/function.
39297         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39298         (glthread_rwlock_rdlock): New macro/function.
39299         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39300         (glthread_rwlock_wrlock): New macro/function.
39301         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39302         (glthread_rwlock_unlock): New macro/function.
39303         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39304         (glthread_rwlock_destroy): New macro/function.
39305         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39306         (glthread_recursive_lock_init): New macro/function.
39307         (gl_recursive_lock_init): Define as wrapper around
39308         glthread_recursive_lock_init.
39309         (glthread_recursive_lock_lock): New macro/function.
39310         (gl_recursive_lock_lock): Define as wrapper around
39311         glthread_recursive_lock_lock.
39312         (glthread_recursive_lock_unlock): New macro/function.
39313         (gl_recursive_lock_unlock): Define as wrapper around
39314         glthread_recursive_lock_unlock.
39315         (glthread_recursive_lock_destroy): New macro/function.
39316         (gl_recursive_lock_destroy): Define as wrapper around
39317         glthread_recursive_lock_destroy.
39318         (glthread_once): New macro/function.
39319         (gl_once): Define as wrapper around glthread_once.
39320         Update function declarations.
39321         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39322         glthread_rwlock_init. Return error code.
39323         (glthread_rwlock_rdlock_multithreaded): Renamed from
39324         glthread_rwlock_rdlock. Return error code.
39325         (glthread_rwlock_wrlock_multithreaded): Renamed from
39326         glthread_rwlock_wrlock. Return error code.
39327         (glthread_rwlock_unlock_multithreaded): Renamed from
39328         glthread_rwlock_unlock. Return error code.
39329         (glthread_rwlock_destroy_multithreaded): Renamed from
39330         glthread_rwlock_destroy. Return error code.
39331         (glthread_recursive_lock_init_multithreaded): Renamed from
39332         glthread_recursive_lock_init. Return error code.
39333         (glthread_recursive_lock_lock_multithreaded): Renamed from
39334         glthread_recursive_lock_lock. Return error code.
39335         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39336         glthread_recursive_lock_unlock. Return error code.
39337         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39338         glthread_recursive_lock_destroy. Return error code.
39339         (glthread_once_call): Make static.
39340         (glthread_once_multithreaded): Renamed from glthread_once.
39341         * lib/tls.h: Include <errno.h>.
39342         (glthread_tls_key_init): New macro/function.
39343         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39344         (glthread_tls_set): New macro/function.
39345         (gl_tls_set): Define as wrapper around glthread_tls_set.
39346         (glthread_tls_key_destroy): New macro/function.
39347         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39348         Update function declarations.
39349         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39350         glthread_tls_get.
39351         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39352
39353 2008-08-04  Eric Blake  <ebb9@byu.net>
39354
39355         gnumakefile: use space, not TAB, outside of targets
39356         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39357
39358 2008-08-02  Jim Meyering  <meyering@redhat.com>
39359
39360         getdate.y: avoid locale-dependent date parsing failure
39361         In Turkish locales, getdate would fail to recognize keywords
39362         containing a lowercase "i".  The solution is not to rely on
39363         locale-sensitive case-conversion.
39364         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39365         (lookup_word): Use c_toupper in place of toupper.
39366         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39367         Reported by Vefa Bicakci <bicave@superonline.com> in
39368         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39369         * modules/getdate (Depends-on): Add c-ctype.
39370
39371 2008-08-02  Bruno Haible  <bruno@clisp.org>
39372
39373         * gnulib-tool (func_import): When updating or creating a .gitignore
39374         file, prepend each added line with a slash, and ignore leading slashes
39375         from the existing lines.
39376         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39377
39378 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39379
39380         Portability fix for GNU make 3.79.1.
39381         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39382         versions do not understand.
39383
39384 2008-08-01  Bruno Haible  <bruno@clisp.org>
39385
39386         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39387         * tests/test-isnanf.h (zero): New variable.
39388         (main): Avoid literal -0.0f.
39389         * tests/test-isnand.h (zero): New variable.
39390         (main): Avoid literal -0.0.
39391         * tests/test-isnanl.h (zero): New variable.
39392         (main): Avoid literal -0.0L.
39393         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39394         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39395         -0.0, -0.0L.
39396         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39397         (test_signbitd): Avoid literal -0.0.
39398         (test_signbitl): Avoid literal -0.0L.
39399         * tests/test-ceilf1.c (zero): New variable.
39400         (main): Avoid literal -0.0f.
39401         * tests/test-ceill.c (zero): New variable.
39402         (main): Avoid literal -0.0L.
39403         * tests/test-floorf1.c (zero): New variable.
39404         (main): Avoid literal -0.0f.
39405         * tests/test-floorl.c (zero): New variable.
39406         (main): Avoid literal -0.0L.
39407         * tests/test-roundf1.c (zero): New variable.
39408         (main): Avoid literal -0.0f.
39409         * tests/test-round1.c (zero): New variable.
39410         (main): Avoid literal -0.0.
39411         * tests/test-roundl.c (zero): New variable.
39412         (main): Avoid literal -0.0L.
39413         * tests/test-truncf1.c (zero): New variable.
39414         (main): Avoid literal -0.0f.
39415         * tests/test-trunc1.c (zero): New variable.
39416         (main): Avoid literal -0.0.
39417         * tests/test-truncl.c (zero): New variable.
39418         (main): Avoid literal -0.0L.
39419         * tests/test-frexp.c (zero): New variable.
39420         (main): Avoid literal -0.0.
39421         * tests/test-frexpl.c (zero): New variable.
39422         (main): Avoid literal -0.0L.
39423         * tests/test-ldexpl.c (zero): New variable.
39424         (main): Avoid literal -0.0L.
39425         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39426         (zerod, zerol): New variables.
39427         (test_function): Avoid literals -0.0, -0.0L.
39428         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39429         (zerod, zerol): New variables.
39430         (test_function): Avoid literals -0.0, -0.0L.
39431         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39432         (zerod, zerol): New variables.
39433         (test_function): Avoid literals -0.0, -0.0L.
39434         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39435         (zerod, zerol): New variables.
39436         (test_function): Avoid literals -0.0, -0.0L.
39437         * tests/test-strtod.c (zero): New variable.
39438         (main): Avoid literal -0.0.
39439         Reported by Jonathan C. Patschke <jp@centtech.com>.
39440
39441 2008-07-31  Jim Meyering  <meyering@redhat.com>
39442
39443         sha256.h: correct definition of SHA224_DIGEST_SIZE
39444         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39445         Reported by Paulie Pena IV <paulie4@gmail.com>.
39446         Define as 224 / 8, rather than as a literal.
39447         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39448         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39449         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39450
39451 2008-07-31  Bruno Haible  <bruno@clisp.org>
39452
39453         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39454         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39455         Reported by Jonathan Patschke <jp@centtech.com>.
39456
39457 2008-07-31  Bruno Haible  <bruno@clisp.org>
39458
39459         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39460         Reported by Paolo Bonzini <bonzini@gnu.org>.
39461
39462 2008-07-30  Eric Blake  <ebb9@byu.net>
39463
39464         test-strtod: allow compilation without -lm
39465         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39466         Reported by Dennis Clarke <blastwave@gmail.com>.
39467
39468 2008-07-28  Jim Meyering  <meyering@redhat.com>
39469
39470         bootstrap: work also when there are no .po files in po/
39471         * build-aux/bootstrap (update_po_files): Complete the change
39472         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39473
39474 2008-07-27  Jim Meyering  <meyering@redhat.com>
39475
39476         * users.txt: Add zile.
39477
39478 2008-07-26  Ben Pfaff  <blp@gnu.org>
39479
39480         Add missing dependencies on new m4/exponent[fdl].m4 files.
39481         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39482         * modules/isnand-nolibm: Add m4/exponentd.m4.
39483         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39484         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39485         m4/isnan[fdl].m4, because the macros actually used moved.
39486         Reported by Jim Meyering.
39487
39488 2008-07-14  Ben Pfaff  <blp@gnu.org>
39489
39490         Add isinf module.
39491         * lib/isinf.c: New file.
39492         * lib/math.in.h: Define isinf macro if we have decided to replace
39493         it.
39494         * m4/isinf.m4: New file.
39495         * m4/math_h.m4: Initialize and substitute variables for isinf
39496         module.
39497         * modules/isinf: New file.
39498         * modules/isinf-tests: New file.
39499         * modules/math: Add substitutions for new module.
39500         * tests/test-isinf.c: New file.
39501         * doc/posix-functions/isinf.texi: Mention new module.
39502         * MODULES.html.sh: Mention new module.
39503
39504 2008-07-14  Ben Pfaff  <blp@gnu.org>
39505
39506         Factor out some macros for use by additional modules.
39507         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39508         exponentf.m4.
39509         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39510         exponentd.m4.
39511         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39512         file exponentl.m4.
39513         * m4/exponentf.m4: New file.
39514         * m4/exponentd.m4: New file.
39515         * m4/exponentl.m4: New file.
39516         * modules/isnanf: Use new file m4/exponentf.m4.
39517         * modules/isnand: Use new file m4/exponentd.m4.
39518         * modules/isnanl: Use new file m4/exponentl.m4.
39519
39520 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39521
39522         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39523         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39524         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39525         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39526
39527         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39528         readlink on platforms without PATH_MAX.
39529
39530 2008-07-21  Eric Blake  <ebb9@byu.net>
39531
39532         Warn, not fail, on stale version.
39533         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39534
39535         Don't allow installation with stale devel version number.
39536         * top/GNUmakefile (_is-install-target): New macro.
39537         (_curr-ver): Forbid installation with stale version number.
39538
39539 2008-07-20  Bruno Haible  <bruno@clisp.org>
39540
39541         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39542         TESTS_ENVIRONMENT.
39543         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39544
39545 2008-07-20  Bruno Haible  <bruno@clisp.org>
39546
39547         * lib/c-stack.h (c_stack_action): Add documentation.
39548         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39549
39550 2008-07-20  Bruno Haible  <bruno@clisp.org>
39551
39552         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39553         * modules/readlink (License): Likewise.
39554
39555 2008-07-17  Eric Blake  <ebb9@byu.net>
39556
39557         * modules/c-stack (Link): Fix typo.
39558
39559         Make c-stack use libsigsegv, when available.
39560         * modules/c-stack (Depends-on): Add libsigsegv.
39561         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39562         needed.
39563         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39564         (segv_handler, overflow_handler, c_stack_action)
39565         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39566         implementation when libsigsegv is available, but only when using
39567         the library is necessary.
39568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39569         comment, explaining why XSI check fails on Linux.
39570         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39571         * tests/test-c-stack2.sh: Tweak skip message.
39572         * NEWS: Document new link-time requirements.
39573
39574 2008-07-16  Eric Blake  <ebb9@byu.net>
39575
39576         c-stack: Expose false positives when not using libsigsegv.
39577         * modules/c-stack-tests (Files): Expand test.
39578         * tests/test-c-stack.c (main): Add means to conditionally trigger
39579         non-overflow SIGSEGV.
39580         * tests/test-c-stack2.sh: New file.
39581
39582 2008-07-14  Bruno Haible  <bruno@clisp.org>
39583
39584         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39585         Reported by Eric Blake.
39586
39587 2008-07-14  Sam Steingold  <sds@gnu.org>
39588             Bruno Haible  <bruno@clisp.org>
39589
39590         New module libsigsegv.
39591         * modules/libsigsegv: New file.
39592         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39593         modifications.
39594         * MODULES.html.sh (Signal handling): New section.
39595
39596 2008-07-14  Bruno Haible  <bruno@clisp.org>
39597
39598         * modules/unictype/ctype-* (Description): Add the word "function".
39599         Improves the resulting doc in MODULES.html.
39600
39601 2008-07-12  Ben Pfaff  <blp@gnu.org>
39602
39603         Add longlong module.
39604         * modules/longlong: New file.
39605
39606 2008-07-12  Bruno Haible  <bruno@clisp.org>
39607
39608         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39609         to empty.
39610
39611 2008-07-10  Ben Pfaff  <blp@gnu.org>
39612
39613         Add isnan module.
39614         * doc/posix-functions/isnan.texi: Mention new module.
39615         * lib/math.in.h: Define isnan macro if we have decided to replace
39616         it.
39617         * m4/isnan.m4: New file.
39618         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39619         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39620         also.
39621         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39622         redundancy.
39623         * m4/math_h.m4: Initialize and substitute variables for isnan
39624         module.
39625         * modules/isnan: New file.
39626         * modules/isnan-tests: New file.
39627         * modules/math: Add substitutions for new module.
39628         * tests/test-isnan.c: New file.
39629         * MODULES.html.sh: Mention new module.
39630
39631 2008-07-10  Ben Pfaff  <blp@gnu.org>
39632
39633         Add isnanf module.
39634         * lib/isnanf.m4: New file.
39635         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39636         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39637         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39638         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39639         * modules/isnanf: New file.
39640         * modules/isnanf-tests: New file.
39641         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39642         files.
39643         * tests/test-isnanf-nolibm.c: factored most of its contents into
39644         new file tests/test-isnanf.h.
39645         * tests/test-isnanf.h: New file.
39646         * tests/test-isnanf.c: New file.
39647         * MODULES.html.sh: Mention new module.
39648         * doc/glibc-functions/isnanf.texi: Mention new module.
39649
39650 2008-07-10  Ben Pfaff  <blp@gnu.org>
39651
39652         Add isnand module.
39653         * lib/isnand.h: New file.
39654         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39655         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39656         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39657         functionality also.
39658         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39659         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39660         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39661         * modules/isnand: New file.
39662         * modules/isnand-tests: New file.
39663         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39664         files.
39665         * tests/test-isnand-nolibm.c: factored most of its contents into
39666         new file tests/test-isnand.h.
39667         * tests/test-isnand.h: New file.
39668         * tests/test-isnand.c: New file.
39669         * MODULES.html.sh: Mention new module.
39670
39671 2008-07-10  Ben Pfaff  <blp@gnu.org>
39672
39673         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39674         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39675         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39676         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39677         * modules/isnanf-nolibm: Update references to renamed files.
39678         * modules/isnand-nolibm: Likewise.
39679         * modules/isnanf-nolibm-tests: Likewise.
39680         * modules/isnand-nolibm-tests: Likewise.
39681         * lib/frexp.c: Likewise.
39682         * lib/isfinite.c: Likewise.
39683         * lib/signbitd.c: Likewise.
39684         * lib/signbitf.c: Likewise.
39685         * lib/vasnprintf.c: Likewise.
39686         * tests/test-ceilf1.c: Likewise.
39687         * tests/test-ceilf2.c: Likewise.
39688         * tests/test-floorf1.c: Likewise.
39689         * tests/test-floorf2.c: Likewise.
39690         * tests/test-frexp.c: Likewise.
39691         * tests/test-round1.c: Likewise.
39692         * tests/test-round2.c: Likewise.
39693         * tests/test-roundf1.c: Likewise.
39694         * tests/test-strtod.c: Likewise.
39695         * tests/test-trunc1.c: Likewise.
39696         * tests/test-trunc2.c: Likewise.
39697         * tests/test-truncf1.c: Likewise.
39698         * tests/test-truncf2.c: Likewise.
39699         * NEWS: Mention the renamed header files.
39700
39701 2008-07-11  Jim Meyering  <meyering@redhat.com>
39702
39703         vc-list-files: make the last-resort awk code more portable
39704         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39705         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39706         does not support it.
39707
39708 2008-07-10  Eric Blake  <ebb9@byu.net>
39709
39710         Work with tar's bootstrap.
39711         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39712         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39713         an m4 comment.
39714
39715 2008-07-09  Jim Meyering  <meyering@redhat.com>
39716
39717         posix-shell.m4: fix typo that made this test malfunction
39718         * m4/posix-shell.m4: Remove capitalization in variable name.
39719
39720 2008-07-08  Bruno Haible  <bruno@clisp.org>
39721
39722         * m4/onceonly.m4: Update comments.
39723         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39724
39725 2008-07-04  Jim Meyering  <meyering@redhat.com>
39726
39727         * users.txt: Add vc-dwim.
39728         (bison, coreutils): Use the gitweb URL.
39729
39730 2008-07-03  Jim Meyering  <meyering@redhat.com>
39731
39732         * users.txt: Add libffcall.  From Sam Steingold.
39733
39734 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39735
39736         getdate.y: do not ignore TZ with relative day, month or year offset
39737         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39738         relative-date-handling, since otherwise, the latter would clobber the
39739         sole output (an updated Start value) of the tz-handling block.
39740         * tests/test-getdate.c: Tests for the fix
39741
39742 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39743
39744         Recognize 'foo_LIBRARIES += libgnu.a'.
39745         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39746         makefile snippet has already specified an installation location,
39747         also using '+='.
39748
39749 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39750
39751         getdate.y: factor out common actions
39752         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39753         Use them in place of open-coded actions.
39754
39755 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39756
39757         Add self-test for getdate module.
39758         * modules/getdate-tests: New file.
39759         * tests/test-getdate.c: New file.
39760
39761 2008-06-29  Bruno Haible  <bruno@clisp.org>
39762
39763         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39764         .gitignore.
39765         Reported by Sylvain Beucler <beuc@beuc.net>.
39766
39767 2008-06-29  Bruno Haible  <bruno@clisp.org>
39768
39769         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39770         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39771
39772 2008-06-29  Bruno Haible  <bruno@clisp.org>
39773
39774         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39775         EXTRA_DIST.
39776         Reported by Sylvain Beucler <beuc@beuc.net>.
39777
39778 2008-06-26  Jim Meyering  <meyering@redhat.com>
39779
39780         make several modules depend on the "open" module
39781         This provides slightly increased consistency when opening-for-write
39782         the name of a non-directory spelled with a trailing slash.
39783         * modules/chdir-safer: Likewise.
39784         * modules/chown: Likewise.
39785         * modules/clean-temp: Likewise.
39786         * modules/copy-file: Likewise.
39787         * modules/fchdir: Likewise.
39788         * modules/fcntl-safer: Likewise.
39789         * modules/pipe: Likewise.
39790         * modules/utime: Likewise.
39791         Prompted by Eric Blake and Bruno Haible.
39792
39793 2008-06-24  Andreas Schwab  <schwab@suse.de>
39794
39795         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39796         literals can be used as initializers for global variables.
39797
39798 2008-06-23  Eric Blake  <ebb9@byu.net>
39799
39800         Make gnulib-cache.m4 easier to diff.
39801         * gnulib-tool (func_import): Allow newlines when reading cached
39802         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39803
39804 2008-06-23  Bruno Haible  <bruno@clisp.org>
39805
39806         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39807         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39808         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39809         m4/signalblocking.m4.
39810         (gl_PREREQ_SIGACTION): Don't invoke it.
39811         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39812         gl_PREREQ_SIG_HANDLER_H.
39813         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39814         Don't check for sigaction here.
39815
39816 2008-06-23  Bruno Haible  <bruno@clisp.org>
39817
39818         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39819         (install_handlers): Don't set the SA_RESETHAND flag.
39820
39821 2008-06-23  Bruno Haible  <bruno@clisp.org>
39822
39823         * m4/sigaction.m4: Comment fixes.
39824         * lib/signal.in.h: Likewise.
39825
39826 2008-06-23  Eric Blake  <ebb9@byu.net>
39827
39828         Fix typo.
39829         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39830
39831         Avoid SA_ namespace.
39832         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39833         Reported by Ralf Wildenhues.
39834
39835         Avoid test failure due to SA_RESTORER.
39836         * tests/test-sigaction.c (SA_MASK): New macro.
39837         (main): Avoid failing due to extension flags being set.
39838         Reported by Jim Meyering.
39839
39840         Revert use of sig-handler.h in sigprocmask.c.
39841         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39842         it requires the existence of struct sigaction.
39843         * lib/sigprocmask.c (handler_t): Restore typedef.
39844         (rpl_signal, old_handlers): Use local type.
39845
39846 2008-06-22  Bruno Haible  <bruno@clisp.org>
39847
39848         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39849         conditionally.
39850         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39851
39852 2008-06-22  Bruno Haible  <bruno@clisp.org>
39853
39854         * doc/posix-functions/siginterrupt.texi: Move note.
39855
39856         * lib/signal.in.h (SA_RESTART): New macro.
39857         * lib/sigaction.c: Update comment.
39858
39859         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39860
39861         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39862         (gl_PREREQ_SIGPROCMASK): Invoke it.
39863         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39864
39865         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39866
39867         * lib/sigprocmask.c: Update a comment.
39868
39869 2008-06-21  Eric Blake  <ebb9@byu.net>
39870
39871         Use sigaction module rather than signal().
39872         * modules/c-stack (Depends-on): Add sigaction.
39873         * modules/fatal-signal (Depends-on): Likewise.
39874         * modules/nanosleep (Depends-on): Likewise.
39875         * modules/sigprocmask (Files): Add sig-handler.h.
39876         * modules/sigaction (Files): Likewise.
39877         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39878         Eggert.
39879         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39880         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39881         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39882         (init_fatal_signals): Likewise.
39883         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39884         (siginterrupt): Delete fallback.
39885         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39886         instead.
39887         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39888         siginterrupt.
39889
39890         New module sigaction, for mingw.
39891         * modules/sigaction: New module...
39892         * modules/sigaction-tests: ...and its test.
39893         * m4/sigaction.m4: New file.
39894         * lib/sigaction.c: Likewise.
39895         * tests/test-sigaction.c: Likewise.
39896         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39897         * modules/signal (Makefile.am): Likewise.
39898         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39899         needed.
39900         * doc/posix-headers/signal.texi (signal.h): Mention provided
39901         types.
39902         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39903         that sigaction is preferable.
39904         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39905         module.
39906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39907         sigaction.
39908
39909         Improve robustness of sigprocmask by overriding signal.
39910         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39911         is in use.
39912         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39913         (SIGKILL, SIGSTOP): Provide fallbacks.
39914         (rpl_signal): Implement.
39915         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39916         signal can be called inside handlers.
39917
39918         Fix nanosleep module on mingw.
39919         * modules/nanosleep (Depends-on): Add sys_select.
39920         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39921
39922         Fix licensing of sigprocmask.
39923         * modules/raise (License): Relicense as LGPL.
39924
39925 2008-06-21  Bruno Haible  <bruno@clisp.org>
39926
39927         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39928         result if it contains question marks.
39929         Reported by Michael Geng <linux@michaelgeng.de>.
39930
39931 2008-06-19  Bruno Haible  <bruno@clisp.org>
39932
39933         Fix CVS-ism.
39934         * doc/gnulib.texi: Include updated-stamp.texi.
39935         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39936         (updated-stamp.texi): New rule.
39937         (gnulib.info): Depend on it.
39938         * doc/.gitignore: Add updated-stamp.texi.
39939         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39940
39941 2008-06-19  Bruno Haible  <bruno@clisp.org>
39942
39943         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39944         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39945
39946 2008-06-19  Eric Blake  <ebb9@byu.net>
39947
39948         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39949         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39950         Reported by Stepan Kasal.
39951
39952 2008-06-18  Bruno Haible  <bruno@clisp.org>
39953
39954         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39955         Reported by Eric Blake.
39956
39957 2008-06-18  Eric Blake  <ebb9@byu.net>
39958
39959         Work around cygwin 1.5.25 strsignal bug.
39960         * tests/test-strsignal.c: Allow for const char *.
39961         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39962
39963 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39964
39965         * users.txt: Update URL to article and add author/date
39966         information.
39967
39968 2008-06-17  Bruno Haible  <bruno@clisp.org>
39969
39970         New macro gl_DISABLE_THREADS.
39971         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39972         if the user did not pass --enable-threads or --disable-threads option.
39973         (gl_DISABLE_THREADS): New macro.
39974         Reported by Eric Blake <ebb9@byu.net>.
39975
39976 2008-06-17  Bruno Haible  <bruno@clisp.org>
39977
39978         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39979         when the macro ignores it.
39980         Based on a patch by Eric Blake <ebb9@byu.net>.
39981
39982 2008-06-17  Bruno Haible  <bruno@clisp.org>
39983
39984         * modules/tls (License): Change to LGPLv2+.
39985         Reported by Eric Blake.
39986
39987 2008-06-17  Eric Blake  <ebb9@byu.net>
39988
39989         Simplify c-stack prerequisites.
39990         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39992         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39993         check.
39994         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39995         <sys/resource.h>.
39996
39997         Move c-stack test into testsuite.
39998         * modules/c-stack-tests: New file.
39999         * lib/c-stack.c [DEBUG]: Move test program...
40000         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40001         fail test if sigaltstack is lacking.
40002         * tests/test-c-stack.sh: New driver file.
40003
40004 2008-06-16  Eric Blake  <ebb9@byu.net>
40005
40006         Use raise module consistently.
40007         * modules/fatal-signal (Depends-on): Add raise.
40008         * modules/sigprocmask (Depends-on): Likewise.
40009         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40010         * lib/sigprocmask.c (sigprocmask): Likewise.
40011         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40012         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40013
40014         Fix compliance bug in sigpending.
40015         * lib/sigprocmask.c (sigpending): Return pending array via
40016         parameter, not return value.
40017
40018 2008-06-14  Eric Blake  <ebb9@byu.net>
40019
40020         Improve obstack-printf test code.
40021         * tests/test-obstack-printf.c (test_function): Fix comment, and
40022         simplify usage of obstack_* in macros.  Add a test for coverage.
40023         Reported by Bruno Haible.
40024
40025 2008-06-14  Bruno Haible  <bruno@clisp.org>
40026
40027         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40028         array size as a constant, not as a const variable.
40029         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40030         AC_USE_SYSTEM_EXTENSIONS.
40031         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40032         Test whether the obstack_printf function actually exists.
40033         * modules/obstack-printf (Depends-on): Add extensions.
40034         (Include): Remove obstack.h.
40035         * modules/obstack-printf-posix (Depends-on): Add extensions.
40036         (Include): Remove obstack.h.
40037
40038 2008-06-13  Eric Blake  <ebb9@byu.net>
40039
40040         Add obstack-printf and obstack-printf-posix modules.
40041         * modules/obstack-printf: New file.
40042         * modules/obstack-printf-posix: Likewise.
40043         * MODULES.html.sh (Misc): Mention them.
40044         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40045         Likewise.
40046         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40047         Likewise.
40048         * modules/stdio (Makefile.am): Accomodate new modules.
40049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40050         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40051         Declare.
40052         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40053         functions.
40054         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40055         (gl_REPLACE_OBSTACK_PRINTF): New macros
40056         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40057         * tests/test-obstack-printf.c: New file.
40058         * modules/obstack-printf-tests: Likewise.
40059         * modules/obstack-printf-posix-tests: Likewise.
40060
40061 2008-06-11  Bruno Haible  <bruno@clisp.org>
40062
40063         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40064         * lib/open.c: Include errno.h.
40065         (open): Fail when attempting to write to a file that has a trailing
40066         slash.
40067         * tests/test-open.c (main): Test against trailing slash bug.
40068         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40069
40070 2008-06-10  Bruno Haible  <bruno@clisp.org>
40071
40072         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40073         for $? to work inside the trap command, with various /bin/sh-s.
40074         * tests/test-vc-list-files-cvs.sh: Likewise.
40075
40076 2008-06-10  Bruno Haible  <bruno@clisp.org>
40077
40078         * lib/acl-internal.h: Don't include gettext.h here.
40079         * lib/set-mode-acl.c: Include gettext.h here.
40080         * lib/copy-acl.c: Likewise.
40081
40082 2008-06-10  Bruno Haible  <bruno@clisp.org>
40083
40084         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40085         * lib/wait-process.c (wait_subprocess): Likewise.
40086         * lib/execute.h (execute): Add termsigp argument.
40087         * lib/execute.c (execute): Likewise.
40088         * lib/csharpcomp.c (compile_csharp_using_pnet,
40089         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40090         * lib/csharpexec.c (execute_csharp_using_pnet,
40091         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40092         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40093         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40094         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40095         is_jikes_present): Update.
40096         * lib/javaexec.c (execute_java_class): Update.
40097         * lib/javaversion.c (execute_and_read_line): Update.
40098         * NEWS: Document the changes.
40099         Reported by Eric Blake.
40100
40101 2008-06-10  Eric Blake  <ebb9@byu.net>
40102
40103         Add missing include.
40104         * tests/test-strstr.c (includes): Add <signal.h>.
40105         * tests/test-strcasestr.c (includes): Likewise.
40106         * tests/test-memmem.c (includes): Likewise.
40107
40108 2008-06-10  Bruno Haible  <bruno@clisp.org>
40109
40110         * lib/wait-process.c (wait_subprocess): Add an assertion.
40111
40112 2008-06-10  Bruno Haible  <bruno@clisp.org>
40113
40114         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40115
40116 2008-06-10  Bruno Haible  <bruno@clisp.org>
40117
40118         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40119         using alarm().
40120         * tests/test-strcasestr.c (main): Likewise.
40121         * tests/test-strstr.c (main): Likewise.
40122
40123 2008-06-09  Bruno Haible  <bruno@clisp.org>
40124
40125         Work around the Solaris 10 ACE ACLs ABI change.
40126         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40127         declare if ACL_NO_TRIVIAL is present.
40128         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40129         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40130         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40131         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40132         define if ACL_NO_TRIVIAL is present.
40133         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40134         and use the current ABI.
40135         (file_has_acl): Use same #if condition as elsewhere.
40136         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40137         in use, and use the current ABI.
40138         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40139         Reported by Jim Meyering.
40140
40141 2008-06-09  Eric Blake  <ebb9@byu.net>
40142
40143         Work around environments that (stupidly) ignore SIGALRM.
40144         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40145         before using alarm().
40146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40148         Reported by Ian Beckwith <ianb@erislabs.net>.
40149
40150         Produce autobuild blurb earlier in log.
40151         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40152
40153 2008-06-09  Jim Meyering  <meyering@redhat.com>
40154         and OndÅ™ej Vašík  <ovasik@redhat.com>
40155
40156         utimens.c: correct kernel bug work-around
40157         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40158         failure, not success, and the kernel bug we're trying to work
40159         around affects not just the utimensat call, but also the fallback
40160         futimens call.
40161         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40162         not success.
40163         [HAVE_FUTIMENS]: Use the same work-around, here.
40164
40165 2008-06-09  Jim Meyering  <meyering@redhat.com>
40166
40167         add more guards around definition of ACE_-related code
40168         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40169         ALLOW and ACE_OWNER are also defined.
40170
40171 2008-06-08  Bruno Haible  <bruno@clisp.org>
40172
40173         * lib/acl-internal.h: Add me as co-author.
40174         * lib/file-has-acl.c: Likewise.
40175         * lib/set-mode-acl.c: Likewise.
40176         * lib/copy-acl.c: Likewise.
40177
40178 2008-06-08  Bruno Haible  <bruno@clisp.org>
40179
40180         Add support for AIX ACLs.
40181         * lib/acl-internal.h (acl_nontrivial): New declaration.
40182         * lib/file-has-acl.c (acl_nontrivial): New function.
40183         (file_has_acl): Add implementation using AIX 4 ACL API.
40184         * lib/set-mode-acl.c (qset_acl): Likewise.
40185         * lib/copy-acl.c (qcopy_acl): Likewise.
40186
40187 2008-06-08  Bruno Haible  <bruno@clisp.org>
40188
40189         Add support for HP-UX ACLs.
40190         * lib/acl-internal.h (acl_nontrivial): New declaration.
40191         * lib/file-has-acl.c (acl_nontrivial): New function.
40192         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40193         * lib/set-mode-acl.c (qset_acl): Likewise.
40194         * lib/copy-acl.c (qcopy_acl): Likewise.
40195
40196 2008-06-08  Bruno Haible  <bruno@clisp.org>
40197
40198         Add support for Cygwin ACLs.
40199         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40200         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40201         the chmod_or_fchmod call.
40202         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40203
40204 2008-06-08  Bruno Haible  <bruno@clisp.org>
40205
40206         Fix bug with setuid modes in Solaris 10+ code.
40207         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40208         succeeded, when the mode contains some special bits.
40209
40210 2008-06-08  Bruno Haible  <bruno@clisp.org>
40211
40212         Add support for Solaris 7..10 ACLs.
40213         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40214         declarations.
40215         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40216         functions.
40217         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40218         * lib/set-mode-acl.c (qset_acl): Likewise.
40219         * lib/copy-acl.c (qcopy_acl): Likewise.
40220
40221 2008-06-08  Bruno Haible  <bruno@clisp.org>
40222
40223         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40224         declaration.
40225         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40226         (acl_access_nontrivial): Remove MacOS X case.
40227         (file_has_acl): Use acl_extended_nontrivial.
40228         * lib/copy-acl.c (qcopy_acl): Likewise.
40229
40230 2008-06-08  Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40233
40234 2008-06-08  Jim Meyering  <meyering@redhat.com>
40235
40236         * modules/acl (Maintainer): Add Bruno Haible.
40237
40238 2008-06-07  Bruno Haible  <bruno@clisp.org>
40239
40240         Improve support for Tru64 ACLs.
40241         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40242         ACL on OSF/1.
40243
40244 2008-06-07  Bruno Haible  <bruno@clisp.org>
40245
40246         Add support for MacOS X ACLs.
40247         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40248         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40249         * lib/set-mode-acl.c (qset_acl): Likewise.
40250         * lib/copy-acl.c (qcopy_acl): Likewise.
40251
40252 2008-06-07  Bruno Haible  <bruno@clisp.org>
40253
40254         Fix memory leak introduced on 2008-05-22.
40255         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40256         use.
40257
40258 2008-06-07  Bruno Haible  <bruno@clisp.org>
40259
40260         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40261         to construct an empty ACL.
40262
40263 2008-06-07  Bruno Haible  <bruno@clisp.org>
40264
40265         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40266         precisely.
40267         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40268
40269 2008-06-07  Bruno Haible  <bruno@clisp.org>
40270
40271         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40272         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40273
40274 2008-06-07  Bruno Haible  <bruno@clisp.org>
40275
40276         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40277         regardless of POSIX.
40278         * doc/posix-functions/_longjmp.texi: Likewise.
40279         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40280         SystemV platform in this case.
40281
40282 2008-06-06  Eric Blake  <ebb9@byu.net>
40283
40284         Document abort() bugs.
40285         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40286
40287         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40288         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40289         sigsetjmp.
40290         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40291         siglongjmp, but only as a macro.
40292         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40293         is obsolete.
40294         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40295
40296         Tweak documentation to cover cygwin argz bugs.
40297         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40298         argz bug fix; no code change needed since no cygwin releases
40299         occurred between the last fix and the bug being tested.
40300         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40301         module and recently fixed cygwin bugs.
40302         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40303         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40304         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40305         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40306         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40307         Likewise.
40308         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40309         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40310         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40311         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40312         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40313         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40314         Likewise.
40315
40316         Avoid gcc warning on cygwin.
40317         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40318         !ACL_NO_TRIVIAL]: Avoid unused variable.
40319
40320 2008-06-05  Eric Blake  <ebb9@byu.net>
40321
40322         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40323         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40324         git-version-gen fails to come up with a version.
40325         Reported by Simon Josefsson.
40326
40327 2008-06-05  Jim Meyering  <meyering@redhat.com>
40328             Paul Eggert  <eggert@cs.ucla.edu>
40329
40330         utimens.c: work around a probable Linux kernel bug
40331         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40332         appears to be a kernel bug that causes utimensat to return 280
40333         instead of 0, indicating success.
40334
40335 2008-06-04  Bruno Haible  <bruno@clisp.org>
40336
40337         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40338         2008-06-01 commit.
40339
40340 2008-06-04  Bruno Haible  <bruno@clisp.org>
40341
40342         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40343         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40344         (file_has_acl): Use it. Save errno afterwards.
40345         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40346
40347 2008-06-03  Bruno Haible  <bruno@clisp.org>
40348
40349         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40350         draft code. Simplify #ifs.
40351         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40352         Put Solaris code after POSIX-draft code. Fix comments regarding
40353         Solaris 10, HP-UX. Mention Cygwin.
40354         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40355
40356 2008-06-03  Eric Blake  <ebb9@byu.net>
40357
40358         Provide fallback for older kernels.
40359         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40360         Provide runtime fallback if kernel lacks support.
40361         Reported by Mike Frysinger.
40362
40363 2008-06-02  Bruno Haible  <bruno@clisp.org>
40364
40365         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40366         it exists.
40367
40368 2008-06-02  Bruno Haible  <bruno@clisp.org>
40369
40370         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40371         * lib/copy-acl.c (qcopy_acl): Update comment.
40372
40373 2008-06-02  Bruno Haible  <bruno@clisp.org>
40374
40375         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40376         like ACL APIs.
40377
40378 2008-06-02  Bruno Haible  <bruno@clisp.org>
40379
40380         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40381         * tests/test-set-mode-acl.sh: Likewise.
40382         * tests/test-copy-acl.sh: Likewise.
40383         * tests/test-copy-file.sh: Likewise.
40384
40385 2008-06-02  Bruno Haible  <bruno@clisp.org>
40386
40387         * tests/test-file-has-acl.sh: Remove unused code.
40388
40389 2008-06-01  Bruno Haible  <bruno@clisp.org>
40390
40391         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40392         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40393         messages.
40394         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40395
40396 2008-06-01  Bruno Haible  <bruno@clisp.org>
40397
40398         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40399         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40400         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40401         APIs.
40402         * modules/acl-tests (configure.ac): Remove tests now contained in
40403         m4/acl.m4.
40404
40405 2008-06-02  Jim Meyering  <meyering@redhat.com>
40406
40407         announce-gen: use a better key-server host name
40408         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40409         it may be more consistently reliable.  Suggested by Werner Koch
40410         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40411
40412 2008-06-01  Bruno Haible  <bruno@clisp.org>
40413
40414         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40415         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40416
40417 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40418
40419         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40420
40421 2008-06-01  Bruno Haible  <bruno@clisp.org>
40422
40423         New ACL tests.
40424         * tests/test-file-has-acl.sh: New file.
40425         * tests/test-file-has-acl.c: New file.
40426         * tests/test-set-mode-acl.sh: New file.
40427         * tests/test-set-mode-acl.c: New file.
40428         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40429         * tests/test-copy-acl.c: New file.
40430         * modules/acl-tests: New file, based on modules/copy-file-tests.
40431         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40432         (Depends-on): Add acl-tests.
40433         (configure.ac): Remove checks.
40434         (Makefile.am): Don't create test-sameacls program here any more.
40435
40436 2008-06-01  Bruno Haible  <bruno@clisp.org>
40437
40438         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40439         * tests/test-sameacls.c: Include progname.h.
40440         (main): Invoke set_program_name. Portability fixes for MacOS X,
40441         Solaris, HP-UX.
40442
40443 2008-06-01  Bruno Haible  <bruno@clisp.org>
40444
40445         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40446         function.
40447         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40448
40449 2008-06-01  Bruno Haible  <bruno@clisp.org>
40450
40451         * modules/rpmatch (Depends-on): Add strdup.
40452
40453 2008-06-01  Bruno Haible  <bruno@clisp.org>
40454
40455         * lib/pipe.c: Include unistd-safer.h.
40456         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40457         * modules/pipe (Depends-on): Add unistd-safer.
40458
40459 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40460
40461         * modules/autobuild (configure.ac): Call AB_INIT.
40462
40463 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40464
40465         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40466         Suggested by Bruno Haible <bruno@clisp.org>.
40467
40468 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40469
40470         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40471         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40472         <bruno@clisp.org>.
40473
40474 2008-05-29  Eric Blake  <ebb9@byu.net>
40475
40476         Prefer new POSIX 200x interfaces over futimesat.
40477         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40478         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40479         when available.
40480         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40481
40482 2008-05-28  Bruno Haible  <bruno@clisp.org>
40483
40484         * modules/stpcpy (License): Change to LGPLv2+.
40485         Requested by David Lutterkort <dlutter@redhat.com>.
40486
40487 2008-05-27  Bruno Haible  <bruno@clisp.org>
40488
40489         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40490         current mingw.
40491         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40492
40493 2008-05-27  Bruno Haible  <bruno@clisp.org>
40494
40495         * modules/iconv_open (Link): New section, from module 'iconv'.
40496         * modules/striconv (Link): Likewise.
40497         * modules/striconveh (Link): Likewise.
40498         * modules/xstriconv (Link): Likewise.
40499         * modules/unicodeio (Link): Likewise.
40500         * modules/propername (Link): Likewise.
40501         Reported by Jim Meyering.
40502
40503 2008-05-26  Jim Meyering  <meyering@redhat.com>
40504
40505         sha256: do not artificially restrict buffer length to be < 2^32
40506         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40507         uint32_t to size_t.
40508         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40509         to match.
40510
40511         avoid unaligned access errors, e.g., on sparc
40512         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40513         direct access through a possibly-unaligned uint64* pointer.
40514         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40515         direct access through a possibly-unaligned uint32* pointer.
40516         Prompted by this patch from Tom "spot" Callaway:
40517         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40518
40519         sha512.c: fix typo in comment
40520         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40521
40522 2008-05-25  Bruno Haible  <bruno@clisp.org>
40523
40524         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40525         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40526         (Makefile.am): Update lib_SOURCES.
40527
40528 2008-05-25  Bruno Haible  <bruno@clisp.org>
40529
40530         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40531
40532 2008-05-25  Jim Meyering  <meyering@redhat.com>
40533
40534         useless-if-before-free: freed expr may have white-space differences
40535         * build-aux/useless-if-before-free: Recognize cases in which the
40536         freed expression differs from the tested one in embedded white
40537         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40538         $1 was used, so we can't make any regexp shy.  Improved tests now
40539         detect this.
40540
40541         useless-if-before-free: accept white space in the expression.
40542         * build-aux/useless-if-before-free: For now, any white space
40543         in the expression must be identical in the free argument.
40544
40545         useless-if-before-free: efficiency tweak
40546         * build-aux/useless-if-before-free: Make the expression-matching
40547         regexp "shy".
40548         Make the *outer* regexp shy, not the expr-matching one.
40549
40550         update code-in-comment to accept cast of free arg
40551         * build-aux/useless-if-before-free: Update regexp.
40552
40553 2008-05-25  Bruno Haible  <bruno@clisp.org>
40554
40555         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40556         * modules/copy-file-tests (Files, Makefile.am): Update.
40557         * tests/test-copy-file.c (func_test_copy): Update.
40558
40559 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40560
40561         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40562
40563 2008-05-23  Bruno Haible  <bruno@clisp.org>
40564
40565         Improve support for ACLs on OSF/1.
40566         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40567         Remove fallback for unknown flavors of ACLs.
40568
40569 2008-05-22  Bruno Haible  <bruno@clisp.org>
40570
40571         Add support for ACLs on OSF/1.
40572         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40573         replacements.
40574         (acl_free_text): New macro fallback.
40575         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40576         acl_free.
40577         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40578         acl_free_text function. Require AC_C_INLINE.
40579
40580 2008-05-22  Bruno Haible  <bruno@clisp.org>
40581
40582         Make copy_acl work on MacOS X 10.5.
40583         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40584         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40585         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40586         If MODE_INSIDE_ACL, don't assume that every system has the same text
40587         representation for ACLs as FreeBSD.
40588         * lib/copy-acl.c (copy_acl): Add support for platforms with
40589         !MODE_INSIDE_ACL.
40590         * lib/file-has-acl.c (file_has_acl): Likewise.
40591         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40592         FreeBSD, MacOS X, or IRIX, respectively.
40593
40594 2008-05-22  Bruno Haible  <bruno@clisp.org>
40595
40596         * lib/acl.h: Don't include <sys/acl.h>.
40597         (GETACLCNT): Move fallback to lib/acl-internal.h.
40598         * lib/acl-internal.h: Include <sys/acl.h> here.
40599         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40600
40601 2008-05-22  Bruno Haible  <bruno@clisp.org>
40602
40603         Split off copy_acl function to separate file.
40604         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40605         * lib/acl.c (copy_acl): Moved function to separate file.
40606         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40607         * modules/acl (Files): Add lib/copy-acl.c.
40608         (Makefiles.am): Augment lib_SOURCES.
40609
40610 2008-05-22  Bruno Haible  <bruno@clisp.org>
40611
40612         * modules/copy-file-tests: New file.
40613         * tests/test-copy-file.sh: New file.
40614         * tests/test-copy-file.c: New file.
40615         * tests/test-copy-file-sameacls.c: New file.
40616
40617 2008-05-22  Eric Blake  <ebb9@byu.net>
40618
40619         Avoid gcc warning.
40620         * tests/test-memcmp.c (main): Pass NULL indirectly.
40621
40622 2008-05-21  Bruno Haible  <bruno@clisp.org>
40623
40624         Add reference doc about ACLs.
40625         * doc/acl-resources.txt: New file.
40626         * doc/acl-cygwin.txt: New file.
40627
40628 2008-05-21  Bruno Haible  <bruno@clisp.org>
40629
40630         Avoid one more warning from gcc.
40631         * lib/vasnprintf.c (IF_LINT): Update comments.
40632         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40633
40634 2008-05-21  Jim Meyering  <meyering@redhat.com>
40635
40636         avoid a warning from gcc
40637         * lib/vasnprintf.c (IF_LINT): Define.
40638         (scale10_round_decimal_long_double):
40639         Use it to avoid a "may be used uninitialized" warning.
40640         (scale10_round_decimal_double): Likewise.
40641
40642 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40643
40644         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40645         declared.
40646
40647 2008-05-20  Bruno Haible  <bruno@clisp.org>
40648
40649         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40650         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40651
40652 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40653
40654         * modules/memcmp-tests: New file.
40655         * tests/test-memcmp.c: New file.
40656
40657 2008-05-19  Bruno Haible  <bruno@clisp.org>
40658
40659         * modules/propername (Notice, configure.ac): Put quoted "..." into
40660         --keyword option.
40661         * lib/propername.h: Update comments accordingly.
40662         Reported by Eric Blake.
40663
40664 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40665
40666         * modules/getpass-gnu (Depends-on): Add fseeko.
40667
40668 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40669
40670         * modules/base64-tests: New file.
40671
40672 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40673
40674         * lib/base64.c (base64_decode_ctx): If a decode context structure
40675         was passed in use it to ignore newlines.  If a context structure
40676         was _not_ passed in, continue to treat newlines as garbage (this
40677         is the historical behavior).  Formerly base64_decode.
40678         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40679         takes a decode context structure.
40680         * lib/base64.h (base64_decode): Macro for four-argument calls.
40681         (base64_decode_alloc): Likewise.
40682         * lib/base64.c (base64_decode_ctx): If a decode context structure
40683         was passed in use it to ignore newlines.  If a context structure
40684         was _not_ passed in, continue to treat newlines as garbage (this
40685         is the historical behavior).  Formerly base64_decode.
40686         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40687         takes a decode context structure.
40688         * lib/base64.h (base64_decode): Macro for four-argument calls.
40689         (base64_decode_alloc): Likewise.
40690
40691 2008-05-19  Jim Meyering  <meyering@redhat.com>
40692
40693         avoid a warning from gcc
40694         * lib/trim.c (IF_LINT): Define.
40695         (trim2): Use it to avoid a "may be used uninitialized" warning.
40696
40697         Fix doc typo.
40698         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40699
40700 2008-05-19  Bruno Haible  <bruno@clisp.org>
40701
40702         * doc/glibc-functions/getpass.texi: Document limits of other
40703         implementations.
40704
40705 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40706             Bruno Haible <bruno@clisp.org>
40707
40708         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40709
40710 2008-05-18  Bruno Haible  <bruno@clisp.org>
40711
40712         * modules/propername: New file, from GNU gettext.
40713         * lib/propername.h: New file, from GNU gettext.
40714         * lib/propername.c: New file, from GNU gettext.
40715         * MODULES.html.sh (Internationalization functions): Add propername.
40716
40717 2008-05-16  Jim Meyering  <meyering@redhat.com>
40718             Bruno Haible  <bruno@clisp.org>
40719
40720         Avoid some warnings from "gcc -Wshadow".
40721         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40722
40723 2008-05-15  Eric Blake  <ebb9@byu.net>
40724
40725         Extend previous patch to cygwin 1.7.0.
40726         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40727         fast implementation in cygwin >= 1.7.0.
40728         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40729         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40730
40731 2008-05-15  Bruno Haible  <bruno@clisp.org>
40732
40733         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40734         implementation in glibc >= 2.9.
40735         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40737
40738 2008-05-15  Bruno Haible  <bruno@clisp.org>
40739
40740         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40741         (Unicode string functions): Add unilbrk/*.
40742         Reported by Karl Berry.
40743
40744 2008-05-15  Eric Blake  <ebb9@byu.net>
40745
40746         Fix violation of <stdbool.h> replacement in regex.
40747         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40748         * lib/regexec.c (re_search_internal): Likewise.
40749         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40750
40751 2008-05-15  Jim Meyering  <meyering@redhat.com>
40752
40753         avoid distracting test output when git or cvs is not found
40754         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40755         * tests/test-vc-list-files-git.sh: Likewise.
40756
40757 2008-05-15  Eric Blake  <ebb9@byu.net>
40758
40759         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40760         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40761         glibc version.
40762         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40763         * doc/posix-functions/strstr.texi (strstr): Likewise.
40764         * lib/str-two-way.h (MAX): Sychronize with glibc.
40765
40766 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40767
40768         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40769         opr.ctx_type.
40770         (calc_first): Initialize constraint field.
40771         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40772         Fix grammar.
40773         (duplicate_node): Merge constraint field for all node types.
40774         (calc_eclosure_iter): Look at constraint field for all node types.
40775         * lib/regex_internal.c (create_cd_newstate): Don't look at
40776         opr.ctx_type.
40777
40778 2008-05-14  Bruno Haible  <bruno@clisp.org>
40779
40780         Help GCC to do better code generation.
40781         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40782         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40783         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40784         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40785         Declare with attribute 'malloc' if supported.
40786
40787 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40788
40789         use "echo STR|wc -c" rather than unportable "expr length STR"
40790         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40791         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40792
40793 2008-05-14  Jim Meyering  <meyering@redhat.com>
40794
40795         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40796         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40797         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40798         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40799         via Collin Lasse.
40800
40801 2008-05-14  Eric Blake  <ebb9@byu.net>
40802
40803         Avoid quadratic growth in gl_LIBSOURCES.
40804         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40805         Suggested by Bruno Haible.
40806
40807         Test xmemdup0.
40808         * modules/xmemdup0-tests: New file.
40809         * tests/test-xmemdup0.c: Likewise.
40810
40811 2008-05-13  Eric Blake  <ebb9@byu.net>
40812
40813         Split xmemdup0 into its own module.
40814         * modules/xmemdup0: New file.
40815         * lib/xmemdup0.h: Likewise.
40816         * lib/xmemdup0.c: Likewise.
40817         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40818         * lib/xalloc.h (xmemdup0): Remove.
40819         * lib/xmalloc.c (xmemdup0): Likewise.
40820
40821 2008-05-13  Eric Blake  <ebb9@byu.net>
40822             Bruno Haible  <bruno@clisp.org>
40823
40824         Reduce number of forks required during autoconf.
40825         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40826         and gl_LIBSOURCES_DIR.
40827         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40828         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40829         m4_syscmd per file.
40830         <m4_foreach_w>: Move...
40831         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40832
40833 2008-05-13  Eric Blake  <ebb9@byu.net>
40834
40835         * gnulib-tool: Fix various comment typos.
40836
40837 2008-05-12  Bruno Haible  <bruno@clisp.org>
40838
40839         Tailor the linebreaking algorithm.
40840         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40841
40842 2008-05-12  Bruno Haible  <bruno@clisp.org>
40843
40844         Update to Unicode 5.0.0.
40845         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40846         LBP_JV, LBP_JT. Redistribute values.
40847         (unilbrk_table): Change size.
40848         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40849         Unicode TR#14 rev. 22.
40850         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40851         LBP_JV, LBP_JT. Redistribute values.
40852         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40853         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40854         Update.
40855         * lib/unilbrk/lbrkprop1.h: Regenerated.
40856         * lib/unilbrk/lbrkprop2.h: Regenerated.
40857         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40858         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40859         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40860         Likewise.
40861         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40862         Likewise.
40863         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40864         result.
40865         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40866         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40867         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40868         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40869         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40870         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40871
40872 2008-05-11  Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40875
40876 2008-05-11  Bruno Haible  <bruno@clisp.org>
40877
40878         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40879         * modules/unilbrk/gen-lbrk: New file.
40880
40881 2008-05-11  Bruno Haible  <bruno@clisp.org>
40882
40883         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40884         * m4/sha512.m4 (gl_SHA512): Likewise.
40885
40886 2008-05-11  Jim Meyering  <meyering@redhat.com>
40887
40888         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40889         * modules/crypto/sha256: New file.
40890         * modules/crypto/sha512: Likewise.
40891         * lib/sha256.c: Likewise.
40892         * lib/sha256.h: Likewise.
40893         * lib/sha512.c: Likewise.
40894         * lib/sha512.h: Likewise.
40895         * lib/u64.h: Likewise.
40896         * m4/sha256.m4: Likewise.
40897         * m4/sha512.m4: Likewise.
40898         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40899
40900 2008-05-10  Bruno Haible  <bruno@clisp.org>
40901
40902         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40903         (Input/Output <stdio.h>): Add xprintf.
40904         (Signal handling <signal.h>): Add strsignal.
40905         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40906         (Core language properties): Add func.
40907         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40908         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40909         strings.
40910         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40911         (Input/output): New section.
40912         (File system functions): Add openat-die, stat-macros.
40913         (Networking functions): Add sockets.
40914         (Unicode string functions): Add unictype/*.
40915         (Support for building libraries and executables): Add gperf.
40916         (Support for building documentation): Add agpl-3.0.
40917         (Misc): Add nocrash.
40918
40919 2008-05-10  Bruno Haible  <bruno@clisp.org>
40920
40921         * modules/unictype/gen-ctype: New file.
40922
40923 2008-05-10  Jim Meyering  <meyering@redhat.com>
40924
40925         Make chdir-safer.c more efficient on a system with no symlinks.
40926         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40927         also if ELOOP is zero.  Suggested by Bruno Haible.
40928
40929         Make chdir-safer.c slightly safer.
40930         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40931         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40932
40933         Avoid compile failure on systems without ELOOP (like mingw).
40934         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40935         Reported by Bruno Haible.
40936
40937 2008-05-10  Bruno Haible  <bruno@clisp.org>
40938
40939         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40940         (is_utf8_encoding): Use a case-insensitive comparison.
40941         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40942         streq.
40943
40944 2008-05-10  Bruno Haible  <bruno@clisp.org>
40945
40946         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40947         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40948         * lib/unilbrk/ulc-common.h (iconv_string_length,
40949         iconv_string_keeping_offsets): Remove declarations.
40950         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40951         Don't include <iconv.h>, streq.h, xsize.h.
40952         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40953         conversion.
40954         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40955         <iconv.h>, streq.h, xsize.h.
40956         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40957         conversion.
40958         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40959         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40960         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40961         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40962
40963 2008-05-10  Bruno Haible  <bruno@clisp.org>
40964
40965         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40966         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40967
40968         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40969         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40970
40971         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40972         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40973
40974         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40975         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40976
40977         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40978         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40979
40980         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40981         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40982
40983         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40984         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40985
40986         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40987         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40988
40989 2008-05-10  Bruno Haible  <bruno@clisp.org>
40990
40991         Split up 'linebreak' module.
40992         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40993         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40994         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40995         modifications.
40996         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40997         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40998         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40999         lib/linebreak.c.
41000         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41001         lib/linebreak.c.
41002         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41003         lib/linebreak.c.
41004         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41005         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41006         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41007         lib/linebreak.c.
41008         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41009         lib/linebreak.c.
41010         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41011         lib/linebreak.c.
41012         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41013         lib/linebreak.c.
41014         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41015         lib/linebreak.c.
41016         * modules/unilbrk/base: New file.
41017         * modules/unilbrk/tables: New file.
41018         * modules/unilbrk/u8-possible-linebreaks: New file.
41019         * modules/unilbrk/u16-possible-linebreaks: New file.
41020         * modules/unilbrk/u32-possible-linebreaks: New file.
41021         * modules/unilbrk/ulc-common: New file.
41022         * modules/unilbrk/ulc-possible-linebreaks: New file.
41023         * modules/unilbrk/u8-width-linebreaks: New file.
41024         * modules/unilbrk/u16-width-linebreaks: New file.
41025         * modules/unilbrk/u32-width-linebreaks: New file.
41026         * modules/unilbrk/ulc-width-linebreaks: New file.
41027         * lib/linebreak.h: Remove file.
41028         * lib/linebreak.c: Remove file.
41029         * m4/linebreak.m4: Remove file.
41030         * modules/linebreak: Remove file.
41031         * NEWS: Mention the changes.
41032
41033 2008-05-09  Eric Blake  <ebb9@byu.net>
41034
41035         Add xmemdup0.
41036         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41037         implementation.
41038         * lib/xmalloc.c (xmemdup0): New C implementation.
41039
41040 2008-05-08  Bruno Haible  <bruno@clisp.org>
41041
41042         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41043
41044 2008-05-07  Eric Blake  <ebb9@byu.net>
41045
41046         Support cross-compilation of <wctype.h>.
41047         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41048         AC_CACHE_CHECK.
41049
41050 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41051
41052         * build-aux/vc-list-files: Add support for bzr.
41053
41054 2008-05-03  Jim Meyering  <meyering@redhat.com>
41055
41056         avoid failed assertion with tight malloc
41057         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41058
41059 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41060
41061         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41062         are needed from arpa/inet.h.
41063         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41064         Reported by Bruno Haible.
41065
41066 2008-05-02  Jim Meyering  <meyering@redhat.com>
41067
41068         avoid compilation error on FreeBSD 6
41069         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41070
41071 2008-05-01  Jim Meyering  <meyering@redhat.com>
41072
41073         useless-if-before-free: correct --help's exit status description
41074         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41075         for one or more matches, etc.  Reported by Bruno Haible.
41076
41077         vc-list-files: make the stand-alone gnulib test work
41078         * modules/vc-list-files-tests (configure.ac):
41079         Define and AC_SUBST abs_aux_dir.
41080         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41081         $(abs_top_srcdir) to each script and having each of them
41082         duplicate the work of setting PATH, set PATH here, using
41083         the new variable, abs_aux_dir instead.
41084         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41085         * tests/test-vc-list-files-git.sh: Likewise.
41086         Reported by Bruno Haible.
41087
41088 2008-05-01  Bruno Haible  <bruno@clisp.org>
41089
41090         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41091         reallocation. Rename 'done' to 'found_delimiter'.
41092
41093 2008-05-01  Jim Meyering  <meyering@redhat.com>
41094
41095         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41096         * build-aux/vc-list-files: Use `...`, not $(...).
41097
41098 2008-04-30  Jim Meyering  <meyering@redhat.com>
41099
41100         add tests for vc-list-files
41101         * modules/vc-list-files-tests: New module.
41102         * tests/test-vc-list-files-cvs.sh: New file.
41103         * tests/test-vc-list-files-git.sh: New file.
41104
41105         avoid a warning from gcc
41106         * lib/getndelim2.c (IF_LINT): Define.
41107         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41108
41109         vc-list-files: work properly with build-aux/cvsu, too
41110         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41111         to all cvs-based clauses.
41112
41113         vc-list-files: work properly in the CVS+awk case, too
41114         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41115
41116         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41117         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41118         take more than one file argument, so .  Add quotes, just in case $dir
41119         ever contains a shell meta-character.  Prompted by Soren Hansen in
41120         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41121
41122 2008-04-29  Eric Blake  <ebb9@byu.net>
41123
41124         Optimize getndelim2 to use block operations when possible.
41125         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41126         freadseek, and memchr2.
41127         * lib/getndelim2.c (getndelim2): Use them for block reads.
41128
41129 2008-04-29  Bruno Haible  <bruno@clisp.org>
41130
41131         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41132         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41133         * modules/inet_ntop (Depends-on): Add extensions.
41134         * modules/inet_pton (Depends-on): Likewise.
41135         Reported by Simon Josefsson.
41136
41137 2008-04-29  Jim Meyering  <meyering@redhat.com>
41138
41139         When the is more than one match in a block, match all of them.
41140         * build-aux/useless-if-before-free: Iterate through each block
41141         until there are no more matches.
41142
41143         Fix broken useless-if-before-free script.
41144         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41145         the expression to match cast of argument to free-like function.
41146
41147 2008-04-29  Eric Blake  <ebb9@byu.net>
41148
41149         Use new header.
41150         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41151
41152 2008-04-29  Jim Meyering  <meyering@redhat.com>
41153
41154         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41155         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41156         by gnulib to exist and to declare e.g., inet_ntop.
41157         Don't include "inet_ntop.h", now removed.
41158
41159         * m4/arpa_inet_h.m4: Remove trailing blanks.
41160
41161 2008-04-29  Eric Blake  <ebb9@byu.net>
41162
41163         Silence valgrind on safe reads beyond potential array bounds.
41164         * lib/rawmemchr.valgrind: New file.
41165         * lib/strchrnul.valgrind: Likewise.
41166         * modules/rawmemchr (Files): Distribute new file.
41167         * modules/strchrnul (Files): Likewise.
41168         Suggested by Bruno Haible.
41169
41170 2008-04-29  Bruno Haible  <bruno@clisp.org>
41171
41172         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41173         (inet_ntop, inet_pton): Change portability warning's wording.
41174         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41175         Invoke gl_CHECK_NEXT_HEADERS.
41176         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41177         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41178         set ARPA_INET_H.
41179         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41180         * modules/arpa_inet (Description): No longer only for systems that
41181         lack it.
41182         (Depends-on): Add include_next.
41183         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41184         HAVE_ARPA_INET_H.
41185
41186 2008-04-29  Jim Meyering  <meyering@redhat.com>
41187
41188         * modules/mkdir (License): Re-license as LGPLv2+.
41189
41190 2008-04-29  Bruno Haible  <bruno@clisp.org>
41191
41192         * modules/rawmemchr (Maintainer): Set to Eric.
41193         * modules/strchrnul (Maintainer): Likewise.
41194
41195 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41196
41197         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41198         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41199
41200         * modules/arpa_inet (arpa/inet.h): Use them.
41201
41202 2008-04-28  Eric Blake  <ebb9@byu.net>
41203
41204         Test getndelim2.
41205         * modules/getndelim2-tests: New file.
41206         * tests/test-getndelim2.c: Likewise.
41207         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41208         stream.
41209         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41210
41211         * MODULES.html.sh: Document new module.
41212
41213 2008-04-20  Bruno Haible  <bruno@clisp.org>
41214
41215         * lib/c-stack.c (die): Use raise.
41216         * modules/c-stack (Depends-on): Add raise.
41217
41218 2008-04-28  Bruno Haible  <bruno@clisp.org>
41219
41220         Expect rpmatch to be declared.
41221         * lib/yesno.c (rpmatch): Remove declaration.
41222
41223         Declare rpmatch.
41224         * lib/stdlib.in.h (rpmatch): New declaration.
41225         * lib/rpmatch.c: Include <stdlib.h> first.
41226         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41227         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41228         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41229         HAVE_RPMATCH.
41230         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41231         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41232         (Include): Set to <stdlib.h>.
41233         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41234         HAVE_RPMATCH.
41235         * NEWS: Document the change.
41236
41237 2008-04-28  Bruno Haible  <bruno@clisp.org>
41238
41239         Change rpmatch to use nl_langinfo when appropriate.
41240         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41241         (N_): New macro.
41242         (localized_pattern): New function/macro.
41243         (try): Remove match, nomatch arguments. Copy the pattern into safe
41244         memory before caching it.
41245         (rpmatch): Use localized_pattern. Add translator comments.
41246         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41247         Suggested by Eric Blake.
41248         * modules/rpmatch (Depends-on): Add stdbool.
41249
41250 2008-04-28  Eric Blake  <ebb9@byu.net>
41251
41252         Add rawmemchr module, matching glibc.
41253         * modules/string (Makefile.am): New indicator.
41254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41255         * lib/string.in.h (rawmemchr): Declare when appropriate.
41256         * modules/rawmemchr: New file.
41257         * m4/rawmemchr.m4: Likewise.
41258         * lib/rawmemchr.c: Likewise.
41259         * modules/rawmemchr-tests: Likewise.
41260         * tests/test-rawmemchr.c: Likewise.
41261         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41262         module.
41263         * modules/strchrnul (Depends-on): Add rawmemchr.
41264         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41265
41266         Whitespace cleanup.
41267         * tests/test-strchrnul.c: Reindent.
41268         * lib/strchrnul.c: Likewise.
41269
41270         Optimize and test strchrnul.
41271         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41272         * modules/strchrnul-tests: New file.
41273         * tests/test-strchrnul.c: Likewise.
41274
41275         Remove intprops dependency.
41276         * modules/memchr (Depends-on): Remove intprops.
41277         * modules/memrchr (Depends-on): Likewise.
41278         * modules/memchr2 (Depends-on): Likewise.
41279         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41280         * lib/memrchr.c (__memrchr): Likewise.
41281         * lib/memrchr2.c (memchr2): Likewise.
41282         Reported by Simon Josefsson.
41283
41284 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41285
41286         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41287         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41288
41289 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41290
41291         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41292
41293         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41294
41295         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41296
41297         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41298         declarations.
41299         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41300
41301         * m4/inet_pton.m4: Don't check for header files.
41302
41303         * m4/inet_ntop.m4: Don't check for header files.
41304
41305 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41306
41307         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41308         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41309         trigger for cygwin).
41310         Reported by Bruno Haible  <bruno@clisp.org>.
41311
41312 2008-04-28  Bruno Haible  <bruno@clisp.org>
41313
41314         * doc/posix-functions/strdup.texi: Mention mingw problem.
41315
41316 2008-04-27  Bruno Haible  <bruno@clisp.org>
41317
41318         * modules/stat-time-tests (Depends-on): Add sleep.
41319         * tests/test-stat-time.c (force_unlink): New function.
41320         (cleanup): Use it.
41321         (test_mtime): Remove the ctime related tests.
41322         (test_ctime): New function, containing the ctime related tests.
41323         (main): Call test_ctime, except on native Windows platforms.
41324
41325 2008-04-27  Bruno Haible  <bruno@clisp.org>
41326
41327         * lib/rpmatch.c (rpmatch): Add some comments.
41328         Reported by James Youngman <jay@gnu.org>.
41329
41330 2008-04-27  Bruno Haible  <bruno@clisp.org>
41331
41332         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41333         quiet NaNs.
41334
41335 2008-04-27  Bruno Haible  <bruno@clisp.org>
41336
41337         Make test-yesno.sh work on mingw.
41338         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41339         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41340         (main): Set stdin to binary mode.
41341         * modules/yesno-tests (Depends-on): Add binary-io.
41342
41343 2008-04-27  Bruno Haible  <bruno@clisp.org>
41344
41345         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41346         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41347         argument that lie outside the IEEE 854 domain.
41348         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41349         (gl_ISFINITE): Use it.
41350         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41351
41352 2008-04-27  Bruno Haible  <bruno@clisp.org>
41353
41354         Allow local renaming in config.h.
41355         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41356
41357 2008-04-27  Bruno Haible  <bruno@clisp.org>
41358
41359         * lib/memchr.c (__memchr): Change type of 'i'.
41360         * lib/memchr2.c (memchr2): Likewise.
41361
41362 2008-04-26  Eric Blake  <ebb9@byu.net>
41363         and Bruno Haible  <bruno@clisp.org>
41364
41365         Optimize and test memrchr.
41366         * modules/memrchr (Depends-on): Add intprops.
41367         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41368         * modules/memrchr-tests: New file.
41369         * tests/test-memrchr.c: New file.
41370
41371 2008-04-26  Bruno Haible  <bruno@clisp.org>
41372
41373         Add tentative support for DragonFly BSD.
41374         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41375         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41376         fp.
41377         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41378         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41379         * lib/fpurge.c (fpurge): Likewise.
41380         * lib/freadable.c (freaadable): Likewise.
41381         * lib/freadahead.c (freadahead): Likewise.
41382         * lib/freading.c (freading): Likewise.
41383         * lib/freadptr.c (freadptr): Likewise.
41384         * lib/freadseek.c (freadptrinc): Likewise.
41385         * lib/fseeko.c (fseeko): Likewise.
41386         * lib/fseterr.c (fseterr): Likewise.
41387         * lib/fwritable.c (fwritable): Likewise.
41388         * lib/fwriting.c (fwriting): Likewise.
41389
41390 2008-04-26  Bruno Haible  <bruno@clisp.org>
41391
41392         * lib/stdio-impl.h: New file.
41393         * lib/fbufmode.c: Include stdio-impl.h.
41394         (fbufmode): Use fp_, remove redundant #defines.
41395         * lib/fflush.c: Include stdio-impl.h.
41396         (clear_ungetc_buffer): Remove redundant #defines.
41397         * lib/fpurge.c: Include stdio-impl.h.
41398         (fpurge): Remove redundant #defines.
41399         * lib/freadable.c: Include stdio-impl.h.
41400         (freadable): Remove redundant #defines.
41401         * lib/freadahead.c: Include stdio-impl.h.
41402         (freadahead): Remove redundant #defines.
41403         * lib/freading.c: Include stdio-impl.h.
41404         (freading): Remove redundant #defines.
41405         * lib/freadptr.c: Include stdio-impl.h.
41406         (freadptr): Remove redundant #defines.
41407         * lib/freadseek.c: Include stdio-impl.h.
41408         (freadptrinc): Remove redundant #defines.
41409         * lib/fseeko.c: Include stdio-impl.h.
41410         (rpl_fseeko): Remove redundant #defines.
41411         * lib/fseterr.c: Include stdio-impl.h.
41412         (fseterr): Remove redundant #defines.
41413         * lib/fwritable.c: Include stdio-impl.h.
41414         (fwritable: Remove redundant #defines.
41415         * lib/fwriting.c: Include stdio-impl.h.
41416         (fwriting): Remove redundant #defines.
41417         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41418         * modules/fflush (Files): Likewise.
41419         * modules/fpurge (Files): Likewise.
41420         * modules/freadable (Files): Likewise.
41421         * modules/freadahead (Files): Likewise.
41422         * modules/freading (Files): Likewise.
41423         * modules/freadptr (Files): Likewise.
41424         * modules/freadseek (Files): Likewise.
41425         * modules/fseeko (Files): Likewise.
41426         * modules/fseterr (Files): Likewise.
41427         * modules/fwritable (Files): Likewise.
41428         * modules/fwriting (Files): Likewise.
41429
41430 2008-04-26  Bruno Haible  <bruno@clisp.org>
41431
41432         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41433         restore_seek_optimization, update_fpos_cache): New functions, extracted
41434         from rpl_fflush.
41435         (rpl_fflush): Use them.
41436         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41437         (gl_REPLACE_FFLUSH): Use it.
41438
41439 2008-04-26  Bruno Haible  <bruno@clisp.org>
41440
41441         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41442         on Solaris.
41443         * tests/test-xstrtoimax.sh: Likewise.
41444         * tests/test-xstrtoumax.sh: Likewise.
41445         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41446
41447 2008-04-26  Bruno Haible  <bruno@clisp.org>
41448
41449         * modules/memchr-tests: New file.
41450         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41451
41452 2008-04-26  Eric Blake  <ebb9@byu.net>
41453             Bruno Haible  <bruno@clisp.org>
41454
41455         * lib/memchr.c: Include intprops.h.
41456         (__memchr): Optimize parallel detection of matching bytes. Rename local
41457         variables. Add explanatory comments.
41458
41459 2008-04-26  Bruno Haible  <bruno@clisp.org>
41460
41461         Fix module 'memchr', broken since 2000-10-28.
41462         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41463
41464 2008-04-26  Bruno Haible  <bruno@clisp.org>
41465
41466         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41467         comments.
41468
41469 2008-04-25  Eric Blake  <ebb9@byu.net>
41470
41471         Use native fstatat on cygwin 1.7.0.
41472         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41473         first.
41474
41475 2008-04-23  Eric Blake  <ebb9@byu.net>
41476
41477         Improve memchr2 performance.
41478         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41479         NUL bytes.
41480         * modules/memchr2 (Depends-on): Use intprops.h.
41481
41482 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41483
41484         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41485         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41486         <blp@cs.stanford.edu>.
41487
41488 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41489
41490         * lib/arpa_inet.in.h: New file.
41491
41492         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41493         (Makefile.am): Sed in substitute header file.
41494
41495         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41496         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41497
41498         * modules/inet_ntop (configure.ac): Use
41499         gl_ARPA_INET_MODULE_INDICATOR.
41500
41501         * modules/inet_pton (configure.ac): Use
41502         gl_ARPA_INET_MODULE_INDICATOR.
41503
41504 2008-04-22  Jim Meyering  <meyering@redhat.com>
41505
41506         * modules/verify (License): Re-license as LGPLv2+.
41507
41508 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41509
41510         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41511         parameter to void* as per POSIX standard (MinGW uses char*).
41512
41513 2008-04-21  Bruno Haible  <bruno@clisp.org>
41514
41515         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41516         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41517         Define to replacements if REPLACE_ISWCNTRL is 1.
41518         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41519         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41520         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41521         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41522         what it fixes.
41523         * doc/posix-functions/iswalpha.texi: Likewise.
41524         * doc/posix-functions/iswblank.texi: Likewise.
41525         * doc/posix-functions/iswcntrl.texi: Likewise.
41526         * doc/posix-functions/iswdigit.texi: Likewise.
41527         * doc/posix-functions/iswgraph.texi: Likewise.
41528         * doc/posix-functions/iswlower.texi: Likewise.
41529         * doc/posix-functions/iswprint.texi: Likewise.
41530         * doc/posix-functions/iswpunct.texi: Likewise.
41531         * doc/posix-functions/iswspace.texi: Likewise.
41532         * doc/posix-functions/iswupper.texi: Likewise.
41533         * doc/posix-functions/iswxdigit.texi: Likewise.
41534         Reported by Alain Guibert.
41535
41536 2008-04-21  Bruno Haible  <bruno@clisp.org>
41537
41538         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41539         Patch by Alain Guibert.
41540
41541 2008-04-21  Bruno Haible  <bruno@clisp.org>
41542
41543         Fix test failures on mingw.
41544         * tests/test-xstrtol.c (print_no_progname): New function.
41545         (main): Install it in error_print_progname hook.
41546         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41547         * tests/test-xstrtoimax.sh: Likewise.
41548         * tests/test-xstrtoumax.sh: Likewise.
41549
41550 2008-04-21  Bruno Haible  <bruno@clisp.org>
41551
41552         Fix test failure on mingw.
41553         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41554
41555 2008-04-21  Bruno Haible  <bruno@clisp.org>
41556
41557         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41558         Actually assign a value.
41559
41560 2008-04-20  Bruno Haible  <bruno@clisp.org>
41561
41562         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41563         take 2.
41564         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41565         'canonicalize-lgpl' module is also used.
41566         * lib/canonicalize-lgpl.c: Undo last change.
41567         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41568
41569 2008-04-20  Bruno Haible  <bruno@clisp.org>
41570
41571         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41572         config.h. Provide _mkdir based fallback for mingw.
41573         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41574         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41575         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41576         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41577         rather than defining mkdir in config.h.
41578         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41579         (gl_SYS_STAT_H_DEFAULTS): New macro.
41580         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41581         HAVE_IO_H any more.
41582         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41583         HAVE_DECL_MKDIR and HAVE_IO_H.
41584
41585 2008-04-20  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/isapipe.c: Port to native Windows platforms.
41588
41589 2008-04-20  Bruno Haible  <bruno@clisp.org>
41590
41591         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41592
41593 2008-04-21  Eric Blake  <ebb9@byu.net>
41594
41595         Work around preprocessors that don't handle UINTMAX_MAX.
41596         * lib/memchr2.c (memchr2): Avoid embedded #if.
41597         Reported by Alain Guibert, fix suggested by Bruno Haible.
41598
41599 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41600
41601         * doc/posix-functions/strftime.texi (strftime): Explain better
41602         Windows incompatibility.  Suggested by Micah Cowan
41603         <micah@cowan.name>.
41604
41605 2008-04-20  Bruno Haible  <bruno@clisp.org>
41606
41607         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41608         unistr/u8-mblen.
41609
41610 2008-04-20  Bruno Haible  <bruno@clisp.org>
41611
41612         Fix test failure on platforms with non-GNU iconv.
41613         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41614         (U_TO_U8): Use it, rather than u16_to_u8.
41615         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41616         units at the end of the input string.
41617         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41618
41619 2008-04-20  Bruno Haible  <bruno@clisp.org>
41620
41621         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41622         when the resulting length is 0.
41623         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41624
41625 2008-04-20  Bruno Haible  <bruno@clisp.org>
41626
41627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41628         works.
41629         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41630
41631 2008-04-20  Bruno Haible  <bruno@clisp.org>
41632
41633         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41634         * modules/tsearch-tests (configure.ac): Test for initstate function.
41635
41636 2008-04-20  Bruno Haible  <bruno@clisp.org>
41637
41638         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41639         for nlink_t if missing.
41640         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41641
41642 2008-04-19  Bruno Haible  <bruno@clisp.org>
41643
41644         Work around snprintf bug on Linux libc5.
41645         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41647         gl_SNPRINTF_SIZE1.
41648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41649         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41650         that test failed.
41651         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41652         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41653         * modules/snprintf (Files): Add m4/printf.m4.
41654         * modules/vsnprintf (Files): Likewise.
41655         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41656         * doc/posix-functions/vsnprintf.texi: Likewise.
41657
41658 2008-04-19  Bruno Haible  <bruno@clisp.org>
41659
41660         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41661         from 0.0058 to less than 10^-7.
41662
41663 2008-04-19  Bruno Haible  <bruno@clisp.org>
41664
41665         Fix rounding when a precision is given.
41666         * lib/vasnprintf.c (is_borderline): New function.
41667         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41668         9...9x.
41669         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41670         %e, %g.
41671         * tests/test-vasprintf-posix.c (test_function): Likewise.
41672         * tests/test-snprintf-posix.h (test_function): Likewise.
41673         * tests/test-sprintf-posix.h (test_function): Likewise.
41674         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41675         * tests/test-printf-posix.h (test_function): Likewise.
41676         * tests/test-printf-posix.output: Update.
41677         Reported by John Darrington <john@darrington.wattle.id.au> via
41678         Ben Pfaff <blp@cs.stanford.edu>.
41679
41680 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41681
41682         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41683         Suggested by Bruno Haible <bruno@clisp.org>.
41684
41685 2008-04-17  Bruno Haible  <bruno@clisp.org>
41686
41687         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41688         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41689         implementation.
41690         Patch by Bruce Merry <bmerry@gmail.com>.
41691
41692 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41693
41694         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41695         doesn't work under Windows.
41696
41697 2008-04-16  Bruno Haible  <bruno@clisp.org>
41698
41699         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41700         New macros.
41701         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41702         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41703         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41704         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41705         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41706         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41707         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41708         macros.
41709         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41710         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41711         Northern Sotho, Uighur.
41712
41713 2008-04-16  Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41716         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41717         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41718         Reported by Daniel Bergström <daniel@octocode.com>.
41719
41720 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41721             Bruno Haible  <bruno@clisp.org>
41722
41723         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41724         function.
41725         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41726         New functions, mostly extracted from gl_locale_name_default.
41727         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41728
41729 2008-04-16  Eric Blake  <ebb9@byu.net>
41730
41731         Adjust strtod detection to catch glibc 2.7 bug.
41732         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41733         Reported by John Gatewood Ham.
41734
41735 2008-04-16  Bruno Haible  <bruno@clisp.org>
41736
41737         Add tentative support for Linux libc5.
41738         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41739         * lib/fpurge.c (fpurge): Likewise.
41740         * lib/freadable.c (freadable): Likewise.
41741         * lib/freadahead.c (freadahead): Likewise.
41742         * lib/freading.c (freading): Likewise.
41743         * lib/freadptr.c (freadptr): Likewise.
41744         * lib/freadseek.c (freadptrinc): Likewise.
41745         * lib/fseeko.c (rpl_fseeko): Likewise.
41746         * lib/fseterr.c (fseterr): Likewise.
41747         * lib/fwritable.c (fwritable): Likewise.
41748         * lib/fwriting.c (fwriting): Likewise.
41749         Reported by Alain Guibert <alguibert+bts@free.fr>.
41750
41751 2008-04-15  Bruno Haible  <bruno@clisp.org>
41752
41753         * modules/mathl (configure.ac): Define module indicator.
41754
41755 2008-04-15  Bruno Haible  <bruno@clisp.org>
41756
41757         * lib/logl.c (logl): Remove unused variables.
41758
41759 2008-04-15  Bruno Haible  <bruno@clisp.org>
41760
41761         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41762         fails.
41763
41764 2008-04-15  Bruno Haible  <bruno@clisp.org>
41765
41766         * lib/trim.c (trim2): Fix argument of isspace() macro.
41767
41768 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41769
41770         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41771         to 0.
41772         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41773
41774 2008-04-14  Bruno Haible  <bruno@clisp.org>
41775
41776         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41777         AC_LANG_PROGRAM argument.
41778         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41779         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41781         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41782         * m4/math_h.m4 (gl_MATH_H): Likewise.
41783         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41784         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41785         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41786         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41787         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41788         * m4/regex.m4 (gl_REGEX): Likewise.
41789         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41790         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41792         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41793         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41794         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41797
41798 2008-04-14  Jim Meyering  <meyering@redhat.com>
41799
41800         test-strtod: fix typos: s/abs/fabs/
41801         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41802
41803 2008-04-13  Bruno Haible  <bruno@clisp.org>
41804
41805         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41806         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41807         module is also used and while not building the reloc-wrapper.
41808
41809 2008-04-13  Bruno Haible  <bruno@clisp.org>
41810
41811         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41812
41813 2008-04-13  Bruno Haible  <bruno@clisp.org>
41814
41815         Fix AIX compilation failure introduced on 2008-04-02.
41816         * tests/test-frexp.c (exp): Undefine before redefining.
41817         * tests/test-frexpl.c (exp): Likewise.
41818
41819 2008-04-13  Bruno Haible  <bruno@clisp.org>
41820
41821         Work around a HP-UX stdio bug.
41822         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41823         * tests/test-ftello.c (main): Likewise.
41824         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41825         * doc/posix-functions/ftello.texi: Likewise.
41826
41827 2008-04-13  Bruno Haible  <bruno@clisp.org>
41828
41829         Make test-signbit pass on HP-UX/hppa.
41830         * tests/test-signbit.c (minus_zerol): New variable.
41831         (test_signbitl): Use it.
41832
41833 2008-04-13  Bruno Haible  <bruno@clisp.org>
41834
41835         Make truncl work on OSF/1 4.0.
41836         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41837         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41838         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41840         HAVE_DECL_TRUNCL.
41841         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41842         HAVE_DECL_TRUNCL.
41843         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41844
41845 2008-04-13  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41848
41849 2008-04-13  Bruno Haible  <bruno@clisp.org>
41850
41851         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41852         expression, so as to avoid HP-UX 11 cc compiler bug.
41853
41854 2008-04-13  Bruno Haible  <bruno@clisp.org>
41855
41856         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41857
41858 2008-04-13  Bruno Haible  <bruno@clisp.org>
41859
41860         * lib/git-merge-changelog.c: Remove empty declaration outside of
41861         functions.
41862
41863 2008-04-13  Bruno Haible  <bruno@clisp.org>
41864
41865         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41866
41867 2008-04-13  Bruno Haible  <bruno@clisp.org>
41868
41869         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41870         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41871         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41872         also if it exists but lacks definitions of the SHUT_* macros.
41873         * modules/sys_socket (Description): Update.
41874         Reported by Elbert Pol <e.pol@chello.nl>.
41875
41876 2008-04-13  Bruno Haible  <bruno@clisp.org>
41877
41878         * lib/localcharset.c (OS2): Don't redefine if already defined.
41879         Reported by Elbert Pol <e.pol@chello.nl>.
41880
41881 2008-04-13  Bruno Haible  <bruno@clisp.org>
41882
41883         * lib/binary-io.h [__EMX__]: Include <io.h>.
41884         Reported by Elbert Pol <e.pol@chello.nl>.
41885
41886 2008-04-12  Bruno Haible  <bruno@clisp.org>
41887
41888         * lib/fpucw.h: Enable the definitions also for x86_64.
41889         Needed for NetBSD/x86_64.
41890         Reported by Thomas Klausner <tk@giga.or.at>.
41891
41892 2008-04-12  Bruno Haible  <bruno@clisp.org>
41893
41894         * tests/test-strtod.c: Include isnand.h.
41895         (main): Use isnand instead of isnan.
41896         Reported by Jim Meyering.
41897
41898 2008-04-12  Bruno Haible  <bruno@clisp.org>
41899
41900         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41901         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41902
41903 2008-04-12  Jim Meyering  <meyering@redhat.com>
41904
41905         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41906
41907 2008-04-12  Bruno Haible  <bruno@clisp.org>
41908
41909         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41910         Reported by Elbert Pol <e.pol@chello.nl>.
41911
41912 2008-04-12  Eric Blake  <ebb9@byu.net>
41913
41914         Work around Solaris 10 math.h bug.
41915         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41916         (gl_MATH_H_DEFAULTS): Set up default.
41917         * modules/math (Makefile.am): Replace new indicators.
41918         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41919         * tests/test-math.c (main): Test this.
41920         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41921         * doc/posix-headers/math.texi (math.h): Mention bug.
41922         Reported by Nelson H. F. Beebe and Jim Meyering.
41923
41924 2008-04-11  Bruno Haible  <bruno@clisp.org>
41925
41926         Adapt to future versions of Apple GCC.
41927         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41928         Reported by Peter O'Gorman <peter@pogma.com>.
41929
41930 2008-04-11  Bruno Haible  <bruno@clisp.org>
41931
41932         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41933
41934 2008-04-11  Bruno Haible  <bruno@clisp.org>
41935
41936         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41937
41938         * modules/getaddrinfo-tests (Makefile.am): Define
41939         test_getaddrinfo_LDADD.
41940
41941 2008-04-11  Bruno Haible  <bruno@clisp.org>
41942
41943         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41944         (init): Fix syntax error.
41945         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41946         is declared.
41947
41948 2008-04-11  Bruno Haible  <bruno@clisp.org>
41949
41950         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41951         * modules/glob (Depends-on): Add stdbool.
41952
41953 2008-04-11  Bruno Haible  <bruno@clisp.org>
41954
41955         * lib/trim.c: Include <string.h>.
41956
41957 2008-04-11  Eric Blake  <ebb9@byu.net>
41958
41959         Avoid compile failure on OS/2.
41960         * lib/regex_internal.h (internal_function): Disable optimization
41961         on OS/2 (__EMX__), where it caused compiler error.
41962         Reported by Elbert Pol.
41963
41964 2008-04-11  Bruno Haible  <bruno@clisp.org>
41965
41966         Flush the standard error stream before aborting. Needed on mingw.
41967         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41968         * tests/test-array_list.c (ASSERT): Likewise.
41969         * tests/test-array_oset.c (ASSERT): Likewise.
41970         * tests/test-avltree_list.c (ASSERT): Likewise.
41971         * tests/test-avltree_oset.c (ASSERT): Likewise.
41972         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41973         * tests/test-binary-io.c (ASSERT): Likewise.
41974         * tests/test-byteswap.c (ASSERT): Likewise.
41975         * tests/test-c-ctype.c (ASSERT): Likewise.
41976         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41977         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41978         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41979         * tests/test-c-strstr.c (ASSERT): Likewise.
41980         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41981         * tests/test-canonicalize.c (ASSERT): Likewise.
41982         * tests/test-carray_list.c (ASSERT): Likewise.
41983         * tests/test-ceilf1.c (ASSERT): Likewise.
41984         * tests/test-ceilf2.c (ASSERT): Likewise.
41985         * tests/test-ceill.c (ASSERT): Likewise.
41986         * tests/test-count-one-bits.c (ASSERT): Likewise.
41987         * tests/test-fbufmode.c (ASSERT): Likewise.
41988         * tests/test-fflush2.c (ASSERT): Likewise.
41989         * tests/test-floorf1.c (ASSERT): Likewise.
41990         * tests/test-floorf2.c (ASSERT): Likewise.
41991         * tests/test-floorl.c (ASSERT): Likewise.
41992         * tests/test-fopen.c (ASSERT): Likewise.
41993         * tests/test-fpending.c (ASSERT): Likewise.
41994         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41995         * tests/test-fpurge.c (ASSERT): Likewise.
41996         * tests/test-freadable.c (ASSERT): Likewise.
41997         * tests/test-freadahead.c (ASSERT): Likewise.
41998         * tests/test-freading.c (ASSERT): Likewise.
41999         * tests/test-freadptr.c (ASSERT): Likewise.
42000         * tests/test-freadptr2.c (ASSERT): Likewise.
42001         * tests/test-freadseek.c (ASSERT): Likewise.
42002         * tests/test-freopen.c (ASSERT): Likewise.
42003         * tests/test-frexp.c (ASSERT): Likewise.
42004         * tests/test-frexpl.c (ASSERT): Likewise.
42005         * tests/test-fseek.c (ASSERT): Likewise.
42006         * tests/test-fseeko.c (ASSERT): Likewise.
42007         * tests/test-fstrcmp.c (ASSERT): Likewise.
42008         * tests/test-ftell.c (ASSERT): Likewise.
42009         * tests/test-ftello.c (ASSERT): Likewise.
42010         * tests/test-func.c (ASSERT): Likewise.
42011         * tests/test-fwritable.c (ASSERT): Likewise.
42012         * tests/test-fwriting.c (ASSERT): Likewise.
42013         * tests/test-getdelim.c (ASSERT): Likewise.
42014         * tests/test-getline.c (ASSERT): Likewise.
42015         * tests/test-i-ring.c (ASSERT): Likewise.
42016         * tests/test-iconv-utf.c (ASSERT): Likewise.
42017         * tests/test-iconv.c (ASSERT): Likewise.
42018         * tests/test-isfinite.c (ASSERT): Likewise.
42019         * tests/test-isnand.c (ASSERT): Likewise.
42020         * tests/test-isnanf.c (ASSERT): Likewise.
42021         * tests/test-isnanl.h (ASSERT): Likewise.
42022         * tests/test-ldexpl.c (ASSERT): Likewise.
42023         * tests/test-linked_list.c (ASSERT): Likewise.
42024         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42025         * tests/test-localename.c (ASSERT): Likewise.
42026         * tests/test-lseek.c (ASSERT): Likewise.
42027         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42028         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42029         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42030         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42031         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42032         * tests/test-mbschr.c (ASSERT): Likewise.
42033         * tests/test-mbscspn.c (ASSERT): Likewise.
42034         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42035         * tests/test-mbspbrk.c (ASSERT): Likewise.
42036         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42037         * tests/test-mbsrchr.c (ASSERT): Likewise.
42038         * tests/test-mbsspn.c (ASSERT): Likewise.
42039         * tests/test-mbsstr1.c (ASSERT): Likewise.
42040         * tests/test-mbsstr2.c (ASSERT): Likewise.
42041         * tests/test-mbsstr3.c (ASSERT): Likewise.
42042         * tests/test-memchr2.c (ASSERT): Likewise.
42043         * tests/test-memmem.c (ASSERT): Likewise.
42044         * tests/test-open.c (ASSERT): Likewise.
42045         * tests/test-printf-frexp.c (ASSERT): Likewise.
42046         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42047         * tests/test-printf-posix.c (ASSERT): Likewise.
42048         * tests/test-quotearg.c (ASSERT): Likewise.
42049         * tests/test-rbtree_list.c (ASSERT): Likewise.
42050         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42051         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42052         * tests/test-round1.c (ASSERT): Likewise.
42053         * tests/test-roundf1.c (ASSERT): Likewise.
42054         * tests/test-roundl.c (ASSERT): Likewise.
42055         * tests/test-signbit.c (ASSERT): Likewise.
42056         * tests/test-sleep.c (ASSERT): Likewise.
42057         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42058         * tests/test-snprintf.c (ASSERT): Likewise.
42059         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42060         * tests/test-stat-time.c (ASSERT): Likewise.
42061         * tests/test-strcasestr.c (ASSERT): Likewise.
42062         * tests/test-strerror.c (ASSERT): Likewise.
42063         * tests/test-striconv.c (ASSERT): Likewise.
42064         * tests/test-striconveh.c (ASSERT): Likewise.
42065         * tests/test-striconveha.c (ASSERT): Likewise.
42066         * tests/test-strsignal.c (ASSERT): Likewise.
42067         * tests/test-strstr.c (ASSERT): Likewise.
42068         * tests/test-strtod.c (ASSERT): Likewise.
42069         * tests/test-trunc1.c (ASSERT): Likewise.
42070         * tests/test-trunc2.c (ASSERT): Likewise.
42071         * tests/test-truncf1.c (ASSERT): Likewise.
42072         * tests/test-truncf2.c (ASSERT): Likewise.
42073         * tests/test-truncl.c (ASSERT): Likewise.
42074         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42075         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42076         * tests/test-vasnprintf.c (ASSERT): Likewise.
42077         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42078         * tests/test-vasprintf.c (ASSERT): Likewise.
42079         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42080         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42081         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42082         * tests/test-vsnprintf.c (ASSERT): Likewise.
42083         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42084         * tests/test-wcwidth.c (ASSERT): Likewise.
42085         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42086         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42087         * tests/test-xvasprintf.c (ASSERT): Likewise.
42088         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42089         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42090         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42091         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42092         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42093         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42094         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42095         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42096         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42097         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42098         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42099         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42100         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42101         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42102         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42103         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42104         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42105         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42106         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42107         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42108         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42109         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42110         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42111         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42112         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42113         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42114         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42115         * tests/unictype/test-combining.c (ASSERT): Likewise.
42116         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42117         * tests/unictype/test-digit.c (ASSERT): Likewise.
42118         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42119         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42120         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42121         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42122         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42123         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42124         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42125         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42126         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42127         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42128         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42129         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42130         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42131         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42132         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42133         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42134         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42135         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42136         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42137         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42138         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42139         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42140         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42141         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42142         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42143         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42144         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42145         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42146         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42147         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42148         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42149         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42150         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42151         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42152         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42153         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42154         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42155         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42156         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42157         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42158         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42159         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42160         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42161         Reported by Eric Blake.
42162
42163 2008-04-11  Bruno Haible  <bruno@clisp.org>
42164
42165         * lib/wchar.in.h: Tweak comment.
42166
42167 2008-04-11  Bruno Haible  <bruno@clisp.org>
42168
42169         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42170         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42171         gl_COMMON.
42172         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42173
42174 2008-04-11  Bruno Haible  <bruno@clisp.org>
42175
42176         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42177
42178 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42179
42180         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42181         of attempting to use non-existing /dev/*random.  Based on patch
42182         from Adam Strzelecki <ono@java.pl> in
42183         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42184
42185 2008-04-08  Bruno Haible  <bruno@clisp.org>
42186
42187         Add tentative support for emx+gcc.
42188         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42189         * lib/fpurge.c (fpurge): Likewise.
42190         * lib/freadable.c (freadable): Likewise.
42191         * lib/freadahead.c (freadahead): Likewise.
42192         * lib/freading.c (freading): Likewise.
42193         * lib/freadptr.c (freadptr): Likewise.
42194         * lib/freadseek.c (freadptrinc): Likewise.
42195         * lib/fseeko.c (rpl_fseeko): Likewise.
42196         * lib/fseterr.c (fseterr): Likewise.
42197         * lib/fwritable.c (fwritable): Likewise.
42198         * lib/fwriting.c (fwriting): Likewise.
42199         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42200
42201 2008-04-09  Eric Blake  <ebb9@byu.net>
42202
42203         Avoid some autoconf warnings.
42204         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42205         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42206         * m4/afs.m4 (gl_AFS): Likewise.
42207         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42208         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42209         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42210         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42211         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42212         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42213         (AC_CHECK_DECLS_ONCE): Likewise.
42214         Rename file...
42215         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42216         gnulib-tool requires autoconf 2.59 or better.
42217         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42218
42219 2008-04-08  Eric Blake  <ebb9@byu.net>
42220
42221         Use 'git describe --match' if present (added in git 1.5.5).
42222         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42223         if possible.
42224
42225 2008-04-08  Bruno Haible  <bruno@clisp.org>
42226
42227         Add tentative support for OpenServer.
42228         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42229         _ptr, _cnt.
42230         * lib/fpurge.c (fpurge): Likewise.
42231         * lib/freadable.c (freadable): Likewise.
42232         * lib/freadahead.c (freadahead): Likewise.
42233         * lib/freading.c (freading): Likewise.
42234         * lib/freadptr.c (freadptr): Likewise.
42235         * lib/freadseek.c (freadptrinc): Likewise.
42236         * lib/fseeko.c (rpl_fseeko): Likewise.
42237         * lib/fseterr.c (fseterr): Likewise.
42238         * lib/fwritable.c (fwritable): Likewise.
42239         * lib/fwriting.c (fwriting): Likewise.
42240         Reported by Roger Cornelius <rac@tenzing.org> and
42241         Brian K. White <brian@aljex.com>.
42242
42243 2008-04-06  Jim Meyering  <meyering@redhat.com>
42244
42245         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42246
42247 2008-04-06  Bruno Haible  <bruno@clisp.org>
42248
42249         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42250         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42251         * tests/test-printf-posix.sh: Likewise.
42252         * tests/test-vfprintf-posix.sh: Likewise.
42253         * tests/test-vprintf-posix.sh: Likewise.
42254         * tests/test-xprintf-posix.sh: Likewise.
42255
42256 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42257
42258         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42259         hide error from 'ls', needed on OS/2.
42260         Report by Elbert Pol <elbert.pol@gmail.com>.
42261
42262 2008-04-04  Eric Blake  <ebb9@byu.net>
42263
42264         Make test-fseeko.c failures meaningful.
42265         * tests/test-fseeko.c: Print line number on failure.
42266         * tests/test-fseek.c: Likewise.
42267         Reported by Nelson H. F. Beebe.
42268
42269         Improve strtod bug detection check.
42270         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42271         required for Solaris 10.
42272         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42273
42274 2008-04-04  Bruno Haible  <bruno@clisp.org>
42275
42276         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42277         by m4/setenv.m4.
42278
42279 2008-04-03  Eric Blake  <ebb9@byu.net>
42280
42281         Ensure sane .version contents.
42282         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42283         version string.
42284         * build-aux/git-version-gen: Improve documentation.
42285
42286         Make GNU make output nicer.
42287         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42288         MAKECMDGOALS to enforce message for all command line targets.  Set
42289         srcdir for use in maint.mk.
42290
42291         Another maintainer tweak.
42292         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42293         a target that regenerates version.
42294
42295 2008-04-03  Jim Meyering  <meyering@redhat.com>
42296
42297         vc-list-files: don't cause coreutils "make po-check" failure
42298         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42299
42300 2008-04-03  Eric Blake  <ebb9@byu.net>
42301
42302         Allow VPATH usage of vc-list-files.
42303         * build-aux/vc-list-files (scriptversion): Add timestamp.
42304         (options): Add --help, --version, -C.
42305         (CVS): Support installed cvsu.
42306
42307 2008-04-02  Bruno Haible  <bruno@clisp.org>
42308
42309         Avoid some "statement with no effect" warnings from gcc.
42310         * tests/test-wctype.c (main): Explicitly ignore unused values.
42311         Reported by Jim Meyering.
42312
42313 2008-04-02  Jim Meyering  <meyering@redhat.com>
42314
42315         Avoid some warnings from "gcc -Wshadow".
42316         * tests/test-frexp.c (exp): Define to a different identifier.
42317         * tests/test-frexpl.c (exp): Likewise.
42318
42319 2008-04-03  Jim Meyering  <meyering@redhat.com>
42320
42321         bootstrap: remove dangling *.[ch] symlinks from lib
42322         * build-aux/bootstrap [dangling symlink removal]: Move find's
42323         -depth option to precede all others, to avoid a warning.
42324         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42325
42326 2008-04-02  Bruno Haible  <bruno@clisp.org>
42327
42328         Avoid some warnings from "gcc -Wshadow".
42329         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42330         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42331         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42332         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42333         Reported by Jim Meyering.
42334
42335 2008-04-01  Bruno Haible  <bruno@clisp.org>
42336
42337         Fix test to work on IRIX 6.5 with cc.
42338         * tests/test-math.c (numeric_equal): New function.
42339         (main): Use it.
42340
42341 2008-04-01  Bruno Haible  <bruno@clisp.org>
42342
42343         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42344
42345 2008-04-01  Bruno Haible  <bruno@clisp.org>
42346
42347         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42348         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42349         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42350         (Depends-on): Remove math.
42351
42352         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42353         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42354         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42355         (Depends-on): Remove math.
42356
42357         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42358         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42359         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42360         (Depends-on): Remove math.
42361         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42362         (Depends-on): Remove math.
42363
42364         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42365         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42366         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42367         (Depends-on): Remove math.
42368         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42369         (Depends-on): Remove math.
42370
42371         * tests/test-round1.c: Include nan.h.
42372         (main): Use NaNd instead of NAN.
42373         * modules/round-tests (Files): Add tests/nan.h.
42374
42375         * tests/test-trunc1.c: Include nan.h.
42376         (main): Use NaNd instead of NAN.
42377         * modules/trunc-tests (Files): Add tests/nan.h.
42378
42379         * tests/test-roundf1.c: Include nan.h.
42380         (main): Use NaNf instead of NAN.
42381         * modules/roundf-tests (Files): Add tests/nan.h.
42382
42383         * tests/test-truncf1.c: Include nan.h.
42384         (main): Use NaNf instead of NAN.
42385         * modules/truncf-tests (Files): Add tests/nan.h.
42386
42387         * tests/test-ceilf1.c: Include nan.h.
42388         (main): Use NaNf instead of NAN.
42389         * modules/ceilf-tests (Files): Add tests/nan.h.
42390
42391         * tests/test-floorf1.c: Include nan.h.
42392         (main): Use NaNf instead of NAN.
42393         * modules/floorf-tests (Files): Add tests/nan.h.
42394
42395         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42396         (main): Use NaNf instead of NAN.
42397         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42398
42399         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42400         (main): Use NaNd instead of NAN.
42401         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42402
42403         * tests/test-frexp.c: Include nan.h.
42404         (main): Use NaNd instead of NAN.
42405         * modules/frexp-tests (Files): Add tests/nan.h.
42406
42407         * lib/isnan.c: Don't include <math.h>.
42408         (FUNC): Don't use NAN macro.
42409         * modules/isnand-nolibm (Depends-on): Remove math.
42410         * modules/isnanf-nolibm (Depends-on): Remove math.
42411         * modules/isnanl (Depends-on): Remove math.
42412         * modules/isnanl-nolibm (Depends-on): Remove math.
42413
42414         * tests/nan.h: New file.
42415
42416 2008-04-01  Eric Blake  <ebb9@byu.net>
42417
42418         Fix typos.
42419         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42420         values to be the right type.
42421
42422         For now, cater to gnulib strtod inaccuracies.
42423         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42424         fractional results.  While not as nice from a QoI perspective, it
42425         is a quicker patch than correctly implementing decimal to binary
42426         rounding.
42427
42428 2008-03-31  Eric Blake  <ebb9@byu.net>
42429
42430         Guarantee a definition of NAN.
42431         * lib/math.in.h (NAN): Define if missing.
42432         * tests/test-math.c (main): Test it.
42433         * doc/posix-headers/math.texi (math.h): Document this.
42434         * lib/isnan.c (rpl_isnand): Use it.
42435         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42436         * tests/test-floorf1.c (NaN): Likewise.
42437         * tests/test-frexp.c (NaN): Likewise.
42438         * tests/test-isnand.c (NaN): Likewise.
42439         * tests/test-isnanf.c (NaN): Likewise.
42440         * tests/test-round1.c (NaN): Likewise.
42441         * tests/test-roundf1.c (NaN): Likewise.
42442         * tests/test-snprintf-posix.h (NaN): Likewise.
42443         * tests/test-sprintf-posix.h (NaN): Likewise.
42444         * tests/test-trunc1.c (NaN): Likewise.
42445         * tests/test-truncf1.c (NaN): Likewise.
42446         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42447         * tests/test-vasprintf-posix.c (NaN): Likewise.
42448         * modules/isnand-nolibm (Depends-on): Add math.
42449         * modules/isnanf-nolibm (Depends-on): Likewise.
42450         * modules/isnanl (Depends-on): Likewise.
42451         * modules/isnanl-nolibm (Depends-on): Likewise.
42452         * modules/snprintf-posix-tests (Depends-on): Likewise.
42453         * modules/sprintf-posix-tests (Depends-on): Likewise.
42454         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42455         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42456         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42457         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42458
42459 2008-03-31  Bruno Haible  <bruno@clisp.org>
42460
42461         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42462         * doc/posix-functions/strtod.texi: Likewise.
42463
42464 2008-03-31  Bruno Haible  <bruno@clisp.org>
42465
42466         * tests/test-strtod.c (main): Don't use C99 syntax.
42467
42468 2008-03-31  Bruno Haible  <bruno@clisp.org>
42469
42470         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42471         Reported by Eric Blake.
42472
42473 2008-03-31  Jim Meyering  <meyering@redhat.com>
42474
42475         Don't compare actual signbit return values.
42476         * tests/test-strtod.c (main): Rather, compare only their
42477         zero/non-zero nature.
42478
42479 2008-03-31  Eric Blake  <ebb9@byu.net>
42480
42481         More strtod documentation.
42482         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42483         failures as distinct bugs.
42484
42485 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42486
42487         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42488         Problem reported by Erik Benada in
42489         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42490
42491 2008-03-30  Bruno Haible  <bruno@clisp.org>
42492
42493         * tests/test-strtod.c: Add comments about which assertion fails on which
42494         platform.
42495         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42496
42497 2008-03-30  Eric Blake  <ebb9@byu.net>
42498
42499         Test signbit behavior on zeros.
42500         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42501         (test_signbitd, test_signbitl): Likewise.
42502
42503         More strtod touchups.
42504         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42505         sign of negative underflow, for now.  Use .5, not .1.
42506         * doc/posix-functions/strtod.texi (strtod): Mention these
42507         limitations.
42508         Reported by Jim Meyering.
42509
42510 2008-03-30  Bruno Haible  <bruno@clisp.org>
42511
42512         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42513         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42514
42515 2008-03-30  Bruno Haible  <bruno@clisp.org>
42516
42517         Avoid failure when attempting to return empty iconv results on some
42518         platforms.
42519         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42520         allocation, don't report ENOMEM when the resulting string is empty.
42521
42522 2008-03-30  Bruno Haible  <bruno@clisp.org>
42523
42524         Fix buffer overrun.
42525         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42526         Don't consider the width for tmp_length. Check count against tmp_length
42527         before doing the padding. Ensure enough allocation during padding.
42528
42529 2008-03-30  Eric Blake  <ebb9@byu.net>
42530
42531         strtod touchups.
42532         * lib/strtod.c (strtod): Avoid compiler warnings.
42533         Reported by Jim Meyering.
42534
42535 2008-03-30  Bruno Haible  <bruno@clisp.org>
42536
42537         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42538         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42539         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42540         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42541         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42542         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42543         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42544         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42545
42546         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42547         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42548         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42549         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42550         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42551         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42552         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42553         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42554
42555         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42556         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42557         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42558         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42559         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42560         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42561         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42562         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42563
42564         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42565         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42566
42567         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42568         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42569
42570         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42571         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42572
42573         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42574         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42575         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42576
42577         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42579         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42580
42581         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42582         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42583         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42584
42585         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42587         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42588
42589         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42590         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42592         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42593         (Depends-on): Add EOVERFLOW.
42594         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42595         (Depends-on): Add EOVERFLOW.
42596         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42597         (Depends-on): Add EOVERFLOW.
42598         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42599         (Depends-on): Add EOVERFLOW.
42600         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42601         (Depends-on): Add EOVERFLOW.
42602         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42603         (Depends-on): Add EOVERFLOW.
42604         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42605         (Depends-on): Add EOVERFLOW.
42606         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42607         (Depends-on): Add EOVERFLOW.
42608
42609         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42611         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42612
42613         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42615         * modules/snprintf (Depends-on): Add EOVERFLOW.
42616
42617         * lib/poll.c (EOVERFLOW): Remove fallback.
42618         * modules/poll (Depends-on): Add EOVERFLOW.
42619
42620         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42621         * modules/getugroups (Depends-on): Add EOVERFLOW.
42622
42623         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42624         * modules/getdelim (Depends-on): Add EOVERFLOW.
42625
42626         * lib/ftell.c (EOVERFLOW): Remove fallback.
42627         * modules/ftell (Depends-on): Add EOVERFLOW.
42628
42629         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42630         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42631         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42632
42633         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42634
42635         * modules/EOVERFLOW-tests: New file.
42636         * tests/test-EOVERFLOW.c: New file.
42637
42638         * modules/EOVERFLOW: New file.
42639         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42640
42641 2008-03-30  Bruno Haible  <bruno@clisp.org>
42642
42643         Fix bug introduced on 2007-06-10.
42644         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42645         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42646
42647 2008-03-30  Bruno Haible  <bruno@clisp.org>
42648
42649         Improve freadseek's efficiency after ungetc.
42650         * lib/freadseek.c: Include freadahead.h.
42651         (freadptrinc): New function, extracted from freadseek.
42652         (freadseek): Use it in a loop. Use freadahead to determine the number
42653         of loop iterations.
42654         * modules/freadseek (Depends-on): Add freadahead.
42655         (configure.ac): Require AC_C_INLINE.
42656
42657 2008-03-30  Bruno Haible  <bruno@clisp.org>
42658
42659         * lib/freadseek.c (freadseek): Don't ignore the return value of
42660         freadptr.
42661
42662 2008-03-29  Eric Blake  <ebb9@byu.net>
42663
42664         Add hex float support.
42665         * modules/strtod (Depends-on): Add c-ctype.
42666         (Link): Mention POW_LIB.
42667         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42668         whitespace between 'e' and exponent.
42669         * tests/test-strtod.c (main): Enable hex float tests.
42670         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42671         now provides.
42672
42673         Document various strtod bugs, with some fixes.
42674         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42675         "-0x", "inf", "nan", and hex constants.
42676         * doc/posix-functions/atof.texi (atof): Likewise.
42677         * modules/stdlib (Makefile.am): Support strtod.
42678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42679         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42680         detect additional strtod bugs.
42681         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42682         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42683         bool where appropriate.  Parse 'inf' and 'nan'.
42684         * tests/test-strtod.c: New file.
42685         * modules/strtod (Depends-on): Add stdbool, stdlib.
42686         (configure.ac): Turn on module indicator.
42687         * modules/strtod-tests: New module.
42688
42689 2008-03-29  Eric Blake  <ebb9@byu.net>
42690
42691         Fix ftell on mingw.
42692         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42693         * modules/ftell-tests (Depends-on): Add binary-io.
42694         * modules/ftello-tests (Depends-on): Likewise.
42695         * tests/test-ftell.c (main): Enhance test to cover behavior after
42696         ungetc.  Enforce binary mode.
42697         * tests/test-ftello.c (main): Likewise.
42698
42699         Pass test-freadseek on cygwin.
42700         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42701         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42702         ungetc buffer.
42703
42704         * tests/test-fflush2.c (main): Fix typo.
42705
42706 2008-03-29  Bruno Haible  <bruno@clisp.org>
42707
42708         * tests/test-fflush2.c (main): Temporarily disable the contents of
42709         this test.
42710         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42711         Reported by Eric Blake.
42712
42713 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42714
42715         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42716         (GC_SHA224_DIGEST_SIZE): Add.
42717
42718         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42719         (gc_hash_digest_length): Likewise.
42720         (gc_hash_buffer): Likewise.
42721
42722 2008-03-25  Bruno Haible  <bruno@clisp.org>
42723
42724         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42725         detail which gettext release to use.
42726         Reported by Simon Josefsson.
42727
42728 2008-03-26  Jim Meyering  <meyering@redhat.com>
42729
42730         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42731         * modules/gnumakefile (clean-GNUmakefile): Also, use
42732         test ... && ... || : syntax rather than if-then ... fi.
42733
42734         gnumakefile: Don't double-quote-expand $(VPATH) value.
42735         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42736
42737 2008-03-24  Eric Blake  <ebb9@byu.net>
42738
42739         Alter GNUmakefile to install into top directory.
42740         * modules/maintainer-makefile: Split, and add dependency...
42741         * modules/gnumakefile: to this new module.
42742         * build-aux/GNUmakefile: Move...
42743         * top/GNUmakefile: ...here.
42744         * build-aux/maint.mk: Move...
42745         * top/maint.mk: ...here.
42746         * MODULES.html.sh (Support for maintaining...): Document new
42747         module.
42748
42749 2008-03-23  Bruno Haible  <bruno@clisp.org>
42750
42751         * gnulib-tool: New options --vc-files, --no-vc-files.
42752         (func_usage): Document them.
42753         (vc_files): New variable.
42754         (func_import): Consider vc_files.
42755         (func_create_testdir): Set vc_files to empty.
42756         Suggested by Jim Meyering and Karl Berry.
42757
42758 2008-03-23  Bruno Haible  <bruno@clisp.org>
42759
42760         Fix regex compilation error on HP-UX 11.
42761         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42762         * modules/regex (Files): Add m4/mbstate_t.m4.
42763         Reported by Ton Voon <ton.voon@altinity.com>.
42764
42765 2008-03-23  Bruno Haible  <bruno@clisp.org>
42766
42767         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42768
42769 2008-03-23  Eric Blake  <ebb9@byu.net>
42770             Bruno Haible  <bruno@clisp.org>
42771
42772         Install files from top/ in the destination directory.
42773         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42774         augmentation also for the files from top/.
42775         (func_import, func_create_testdir): Rewrite file names:
42776         top/filename -> filename.
42777
42778 2008-03-23  Bruno Haible  <bruno@clisp.org>
42779
42780         Tweak "gnulib --version" output.
42781         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42782
42783 2008-03-23  Bruno Haible  <bruno@clisp.org>
42784
42785         Tweak "gnulib --version" output.
42786         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42787         rather than contents of ChangeLog, when possible.
42788
42789 2008-03-21  Eric Blake  <ebb9@byu.net>
42790
42791         More --version tweaks.
42792         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42793         date of last ChangeLog entry.
42794
42795 2008-03-21  Jim Meyering  <meyering@redhat.com>
42796
42797         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42798
42799 2008-03-20  Eric Blake  <ebb9@byu.net>
42800
42801         VPATH fix.
42802         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42803
42804 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42805
42806         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42807         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42808
42809 2008-03-20  Eric Blake  <ebb9@byu.net>
42810
42811         Sync GNUmakefile with coreutils.
42812         * build-aux/GNUmakefile (have-Makefile): Rename...
42813         (_have-Makefile): ...to this, for namespace consideration.
42814         (GNUmakefile.cfg): Include, if present.
42815         (_autoreconf): Define a default.
42816         (_is-dist-target): New rule for rebuilds to pick up intra-release
42817         version.
42818         (maint-cfg.mk): Rename...
42819         (cfg.mk): ...to this.
42820
42821 2008-03-18  Jim Meyering  <meyering@redhat.com>
42822
42823         New script and module: mktempd
42824         * MODULES.html.sh (maint+release support): Add mktempd.
42825         * build-aux/mktempd: New file.
42826         * modules/mktempd: New file.
42827
42828 2008-03-15  Jim Meyering  <meyering@redhat.com>
42829
42830         Undo last change.
42831         * lib/sha1.c, lib/md5.c: 63 != ~63.
42832         Reported by Andreas Schwab.
42833
42834         sha1.c, md5.c: Hoist a redundant expression.
42835         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42836         "ctx->buflen" only once, before calling *_process_block.
42837         * lib/md5.c (md5_process_bytes): Likewise.
42838
42839 2008-03-14  Eric Blake  <ebb9@byu.net>
42840
42841         Bump copyright year in files generated by gnulib-tool.
42842         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42843         gnulib-tool, rather than hard-coding it.
42844
42845         Fix 'gnulib-tool --version' output to work with git.
42846         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42847         (startup): ...here.
42848         (func_version): Use it to invoke git-version-gen, rather than
42849         relying on CVS keyword expansion.  Modernize wording.
42850         (cvsdatestamp, last_checkin_date, version): Kill unused
42851         variables.
42852
42853 2008-03-12  Jim Meyering  <meyering@redhat.com>
42854
42855         Recognize optional cast of the argument to free.
42856         * build-aux/useless-if-before-free: Update regexps.
42857
42858         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42859
42860 2008-03-11  Bruno Haible  <bruno@clisp.org>
42861
42862         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42863         by a single package.
42864         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42865         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42866         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42867         Reported by Sam Steingold <sds@gnu.org>.
42868
42869 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42870
42871         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42872         repositories.
42873
42874 2008-03-11  Bruno Haible  <bruno@clisp.org>
42875
42876         Avoid conflicts between local macro definitions.
42877         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42878         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42879
42880 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42881             Bruno Haible  <bruno@clisp.org>
42882
42883         Make va_copy work with some version of xlc on AIX 5.1.
42884         * lib/stdarg.in.h: New file.
42885         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42886         On AIX, use a <stdarg.h> file substitute.
42887         * modules/stdarg (Files): Add lib/stdarg.in.h.
42888         (Depends-on): Add include_next.
42889         (Makefile.am): Build a stdarg.h substitute if requested.
42890         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42891
42892 2008-03-10  Bruno Haible  <bruno@clisp.org>
42893
42894         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42895         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42896         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42897
42898 2008-03-10  Bruno Haible  <bruno@clisp.org>
42899
42900         * modules/stdlib (Depends-on): Add include_next, remove
42901         absolute-header.
42902
42903 2008-03-09  Bruno Haible  <bruno@clisp.org>
42904
42905         * lib/freadahead.h (freadahead): Document more precisely.
42906         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42907         the sum of both buffer sizes.
42908         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42909         * NEWS: Document the change.
42910
42911 2008-03-09  Bruno Haible  <bruno@clisp.org>
42912
42913         Extend freadptr to return also the buffer size.
42914         * lib/freadptr.h (freadptr): Add sizep argument.
42915         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42916         (freadptr): Add sizep argument. Determine buffer size like freadahead
42917         does.
42918         * tests/test-freadptr.c: Don't include freadahead.h.
42919         (main): Adapt for new calling convention of freadptr.
42920         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42921         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42922         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42923         tests/test-freadptr2.sh.
42924         (Depends): Remove freadahead.
42925         (TESTS): Add test-freadptr2.sh.
42926         (check_PROGRAMS): Add test-freadptr2.
42927
42928 2008-03-09  Bruno Haible  <bruno@clisp.org>
42929
42930         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42931         Report and solution by Simon Josefsson.
42932
42933 2008-03-06  Bruno Haible  <bruno@clisp.org>
42934
42935         Make fflush after ungetc work on BSD platforms.
42936         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42937         * tests/test-fflush2.c: New file.
42938         * tests/test-fflush2.sh: New file.
42939         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42940         tests/test-fflush2.c.
42941         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42942         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42943
42944 2008-03-06  Eric Blake  <ebb9@byu.net>
42945
42946         Likewise for ftello.
42947         * modules/ftello (Dependencies): Add extensions.
42948         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42949
42950 2008-03-06  Bruno Haible  <bruno@clisp.org>
42951
42952         * modules/fseeko (Dependencies): Add extensions.
42953         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42954         Needed on glibc systems.
42955
42956 2008-03-06  Bruno Haible  <bruno@clisp.org>
42957
42958         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42959         email address.
42960         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42961
42962 2008-03-06  Bruno Haible  <bruno@clisp.org>
42963
42964         * users.txt: Add libgnupdf.
42965
42966 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42967
42968         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42969         (Header File Substitutes, Function Substitutes,
42970         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42971         (Build robot for gnulib): Fix typo.
42972
42973 2008-03-06  Bruno Haible  <bruno@clisp.org>
42974
42975         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42976         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42977
42978 2008-03-06  Bruno Haible  <bruno@clisp.org>
42979
42980         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42981         * doc/gnulib.texi: Include it.
42982
42983 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42984
42985         * modules/func (License): Change license to unlimited; there was
42986         no LGPL parts in the module anyway.
42987
42988 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42989
42990         * modules/__func__: Renamed to modules/func.
42991         * modules/__func__-tests: Renamed to modules/func-tests.
42992         * tests/test-__func__.c: Renamed to tests/test-func.c.
42993         * m4/__func__.m4: Renamed to m4/func.m4.
42994         * doc/gnulib.texi (__func__): Section renamed to func.
42995         Suggested by Eric Blake <ebb9@byu.net>.
42996
42997 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42998
42999         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43000         about __func__.  Make example self-contained.  Suggested by Eric
43001         Blake <ebb9@byu.net>.
43002
43003         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43004         Suggested by Eric Blake <ebb9@byu.net>.
43005
43006 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43007
43008         * modules/__func__: New file.
43009         * modules/__func__-tests: New file.
43010         * tests/test-__func__.c: New file.
43011         * m4/__func__.m4: New file.
43012         * doc/gnulib.texi (__func__): Document __func__ module.
43013
43014 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43015
43016         * modules/byteswap (License): Re-license as LGPLv2+.
43017
43018 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43019
43020         * doc/Makefile: Add pdf target.
43021
43022 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43023
43024         * modules/inline (License): Use 'unlimited', since there are only
43025         *.m4 files in this module.
43026
43027 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43028             Bruno Haible  <bruno@clisp.org>
43029
43030         Add support for HP C 7.1 on OpenVMS 8.3.
43031         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43032
43033 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43034
43035         Update VMS specifics.
43036         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43037
43038 2008-03-02  Jim Meyering  <meyering@redhat.com>
43039
43040         Remove the last dependency on the "free" module.
43041         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43042         Reported by Bob Proulx.
43043
43044         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43045
43046         Remove useless "if" tests before free.  Deprecate "free" module.
43047         * doc/posix-functions/free.texi: Mention that this
43048         module is no longer useful.
43049         * modules/free (Notice): Say this module is obsolete.
43050         * modules/readutmp (Depends-on): Remove free.
43051         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43052         * lib/putenv.c (putenv): Likewise.
43053         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43054         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43055         * tests/test-c-strcasestr.c (main): Likewise.
43056         * tests/test-c-strstr.c (main): Likewise.
43057         * tests/test-mbscasestr1.c (main): Likewise.
43058         * tests/test-mbscasestr2.c (main): Likewise.
43059         * tests/test-mbsstr1.c (main): Likewise.
43060         * tests/test-mbsstr2.c (main): Likewise.
43061         * tests/test-memmem.c (main): Likewise.
43062         * tests/test-strcasestr.c (main): Likewise.
43063         * tests/test-striconv.c (main): Likewise.
43064         * tests/test-striconveh.c (main): Likewise.
43065         * tests/test-striconveha.c (main): Likewise.
43066         * tests/test-strstr.c (main): Likewise.
43067
43068         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43069
43070         bootstrap: sync from coreutils again
43071         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43072
43073 2008-03-01  Jim Meyering  <meyering@redhat.com>
43074
43075         bootstrap: sync from coreutils
43076         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43077         also when the target doesn't exist.
43078
43079 2008-03-01  Eric Blake  <ebb9@byu.net>
43080
43081         Fix bugs in last patch.
43082         * lib/memchr2.c (memchr2): Fix typo.
43083         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43084         extension.
43085         Reported by Bruce Korb.
43086
43087         New module 'memchr2'.
43088         * modules/memchr2: New file.
43089         * modules/memchr2-tests: Likewise.
43090         * lib/memchr2.h: Likewise.
43091         * lib/memchr2.c: Likewise, based on memchr.c.
43092         * tests/test-memchr2.c: New test.
43093         * MODULES.html.sh (String handling): Add memchr2.
43094
43095 2008-02-29  Bruno Haible  <bruno@clisp.org>
43096
43097         * modules/freadseek-tests: New file.
43098         * tests/test-freadseek.sh: New file.
43099         * tests/test-freadseek.c: New file.
43100
43101         New module 'freadseek'.
43102         * modules/freadseek: New file.
43103         * lib/freadseek.h: New file.
43104         * lib/freadseek.c: New file.
43105         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43106
43107 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43108
43109         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43110         wydawca.
43111
43112         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43113         program_invocation_name and program_invocation_short_name are
43114         present.
43115
43116 2008-02-28  Bruno Haible  <bruno@clisp.org>
43117
43118         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43119         * tests/test-freadptr.sh: Also test non-seekable stdin.
43120
43121 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43122
43123         * build-aux/bootstrap (source_base, m4_base)
43124         (doc_base, tests_base): New variables.
43125         (gnulib_tool_options): Do not hardcode base directories, use
43126         the above variables instead.
43127
43128 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43129
43130         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43131
43132 2008-02-28  Bruno Haible  <bruno@clisp.org>
43133
43134         * modules/freadptr-tests: New file.
43135         * tests/test-freadptr.sh: New file.
43136         * tests/test-freadptr.c: New file.
43137
43138         New module 'freadptr'.
43139         * modules/freadptr: New file.
43140         * lib/freadptr.h: New file.
43141         * lib/freadptr.c: New file.
43142         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43143
43144 2008-02-26  Karl Berry  <karl@freefriends.org>
43145
43146         Sync from Libtool:
43147         * libltdl/argz.c (argz_add, argz_count): New functions.
43148         * libltdl/argz.in.h: Declare them.
43149         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43150
43151 2008-02-22  Bruno Haible  <bruno@clisp.org>
43152
43153         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43154         is a pointer type.  Needed for HP-UX 10.
43155         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43156         * doc/posix-functions/gmtime_r.texi: Likewise.
43157         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43158
43159 2008-02-24  Bruno Haible  <bruno@clisp.org>
43160
43161         * modules/environ-tests: New file.
43162         * tests/test-environ.c: New file.
43163
43164         New module 'environ'.
43165         * modules/environ: New file.
43166         * lib/unistd.in.h (environ): New declaration.
43167         * m4/environ.m4: New file.
43168         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43169         after use.
43170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43171         HAVE_DECL_ENVIRON.
43172         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43173         HAVE_DECL_ENVIRON.
43174         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43175         wrong claim that 'environ' is missing on some systems.
43176         * modules/execute (Depends-on): Add environ.
43177         * lib/execute.c (environ): Remove fallback declaration.
43178         * modules/pipe (Depends-on): Add environ.
43179         * lib/pipe.c (environ): Remove fallback declaration.
43180         * modules/setenv (Depends-on): Add environ.
43181         * lib/setenv.c (environ): Remove fallback declaration.
43182         * modules/unsetenv (Depends-on): Add environ.
43183         * lib/unsetenv.c (environ): Remove fallback declaration.
43184         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43185         m4/environ.m4.
43186         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43187         (gl_PREREQ_UNSETENV): Likewise.
43188
43189 2008-02-24  Bruno Haible  <bruno@clisp.org>
43190
43191         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43192
43193 2008-02-20  Bob Proulx  <bob@proulx.com>
43194
43195         Enable use of older two part flavor 'git describe'.
43196         * build-aux/git-version-gen: If using the older two part flavor of
43197         git version then recreate the third part now present in the
43198         newer three part flavor of git describe.
43199
43200 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43201
43202         * lib/fts.c (fts_build): Typo correction to comment.
43203
43204 2008-02-17  Bruno Haible  <bruno@clisp.org>
43205
43206         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43207         generating no-op conflicts.
43208
43209 2008-02-17  Bruno Haible  <bruno@clisp.org>
43210
43211         Speed up by 10%.
43212         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43213         result_entries, rather than an index-based loop.
43214
43215 2008-02-17  Bruno Haible  <bruno@clisp.org>
43216
43217         Speed up by 25%.
43218         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43219         'hashcode_cached'.
43220         (entry_create): New function.
43221         (entry_hashcode): Use the cached hashcode if possible.
43222         (read_changelog_file, try_split_merged_entry): Use entry_create.
43223
43224 2008-02-17  Bruno Haible  <bruno@clisp.org>
43225
43226         Speed up from O(n^2) to O(n) for long ChangeLog files.
43227         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43228         (read_changelog_file): Change implementation of entries_reversed list
43229         to rbtreehash.
43230         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43231
43232 2008-02-17  Bruno Haible  <bruno@clisp.org>
43233
43234         New option --split-merged-entry.
43235         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43236         (find_paragraph_end, try_split_merged_entry): New functions.
43237         (long_options): Add option --split-merged-entry.
43238         (usage): Document option --split-merged-entry.
43239         (main): Implement option --split-merged-entry.
43240         Reported by Eric Blake.
43241
43242 2008-02-17  Bruno Haible  <bruno@clisp.org>
43243
43244         * lib/git-merge-changelog.c: Include c-strstr.h.
43245         (main): Support the "git pull --rebase" situation.
43246         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43247         Reported by Eric Blake.
43248
43249 2008-02-16  Eric Blake  <ebb9@byu.net>
43250
43251         Avoid doubling \ in common case of "c-maybe" quoting style.
43252         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43253         eliding outer quotes.
43254         * lib/quotearg.h: Document this.
43255         * tests/test-quotearg.c (result_strings, inputs, results_g)
43256         (flag_results, locale_results): Test it by adding a new string to
43257         each test group.
43258         (compare_strings): Test new string.
43259
43260 2008-02-13  Eric Blake  <ebb9@byu.net>
43261
43262         Avoid trigraph quoting in default output.
43263         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43264         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43265         unless explicitly requested.
43266         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43267
43268 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43269
43270         Don't rely on signed integer overflowing to negative value.
43271         * lib/getugroups.c (getugroups): Include <limits.h>.
43272         Instead, compare against INT_MAX, and increment only if the test passes.
43273
43274 2008-02-13  Jim Meyering  <meyering@redhat.com>
43275         and Eric Blake  <ebb9@byu.net>
43276
43277         Avoid shadowing warning and compile errors on Linux.
43278         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43279         forwarding macros on Linux.
43280         (dcgettext): Define a stub, for Linux.
43281         (results_g, main): Avoid warnings.
43282
43283 2008-02-12  Eric Blake  <ebb9@byu.net>
43284
43285         Silence warning in last patch.
43286         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43287
43288         Quotearg part 4: add tests, fix c-maybe colon quoting.
43289         * lib/quotearg.h: Improve documentation.
43290         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43291         escapes when adding outer quotes.  When quoting trigraphs, use
43292         valid C notation.  When quoting NUL, omit extra characters if next
43293         character is not digit.  Alter prototype.
43294         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43295         callers.
43296         * modules/quotearg-tests: New module.
43297         * tests/test-quotearg.c: New test.
43298
43299 2008-02-07  Eric Blake  <ebb9@byu.net>
43300
43301         Quotearg part 3: add flag to control outer quote elision.
43302         * lib/quotearg.h (c_maybe_quoting_style): New style.
43303         (enum quoting_flags): Better documentation of flags.
43304         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43305         c-maybe style.
43306         (quotearg_buffer_restyled): Handle new flag to elide outer
43307         quotes.
43308
43309         Quotearg part 2: add flag that can control NUL elision.
43310         * lib/quotearg.h (set_quoting_flags): New prototype.
43311         * lib/quotearg.c (struct quoting_options): Add flag field.
43312         (set_quoting_flags): New function.
43313         (quotearg_buffer_restyled): Add flags parameter.
43314         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43315         (quotearg_n_options): Set the flag, since length cannot be
43316         returned.
43317         (quoting_options_from_style): Default flags correctly.
43318
43319         Quotearg part 1: more wrappers, restore quotearg_char state.
43320         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43321         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43322         (quotearg_colon_mem): New wrappers.
43323         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43324         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43325         functions.
43326         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43327         (quotearg_colon_mem): New functions.
43328
43329 2008-02-11  Bruno Haible  <bruno@clisp.org>
43330
43331         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43332         library in the current directory: it does not work with parallel make.
43333         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43334
43335 2008-02-11  Bruno Haible  <bruno@clisp.org>
43336
43337         * .gitattributes: New file.
43338
43339 2008-02-11  Jim Meyering  <meyering@redhat.com>
43340
43341         useless-if-before-free: Fix reversed exit values.
43342         * build-aux/useless-if-before-free: Use correct values
43343         for EXIT_MATCH and EXIT_NO_MATCH.
43344
43345         * build-aux/useless-if-before-free: Close stdout carefully.
43346
43347 2008-02-10  Bruno Haible  <bruno@clisp.org>
43348
43349         New module 'git-merge-changelog'.
43350         * modules/git-merge-changelog: New file.
43351         * lib/git-merge-changelog.c: New file.
43352
43353 2008-02-10  Jim Meyering  <meyering@redhat.com>
43354
43355         useless-if-before-free: New option: --list (-l).
43356
43357         useless-if-before-free: Don't exit immediately upon open failure.
43358         * build-aux/useless-if-before-free: Exit 2 for errors.
43359         Upon failure to open a file, don't exit immediately.
43360         Rather, just warn and continue with any remaining files.
43361
43362 2008-02-10  Bruno Haible  <bruno@clisp.org>
43363
43364         New abstract list operation 'node_set_value'.
43365         * lib/gl_list.h (gl_list_node_set_value): New function.
43366         (struct gl_list_implementation): New field node_set_value.
43367         * lib/gl_list.c (gl_list_node_set_value): New function.
43368         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43369         (gl_array_list_implementation): Update.
43370         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43371         (gl_carray_list_implementation): Update.
43372         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43373         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43374         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43375         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43376         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43377         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43378         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43379         Update.
43380         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43381         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43382         (gl_sublist_list_implementation): Update.
43383
43384 2008-02-10  Bruno Haible  <bruno@clisp.org>
43385
43386         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43387         Needed when ELEMENT is #defined to 'some_type *'.
43388
43389 2008-02-10  Jim Meyering  <meyering@redhat.com>
43390
43391         New script and module: useless-if-before-free
43392         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43393         * build-aux/useless-if-before-free: New file.
43394         * modules/useless-if-before-free: New file.
43395
43396         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43397
43398         xstrtol_error: Fix typo.
43399         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43400         s/exit_failure/exit_status/.
43401
43402 2008-02-09  Jim Meyering  <meyering@redhat.com>
43403
43404         New script and module: gitlog-to-changelog
43405         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43406         * modules/gitlog-to-changelog: New file.
43407         * build-aux/gitlog-to-changelog: New file.
43408
43409 2008-02-08  Jim Meyering  <meyering@redhat.com>
43410
43411         Avoid two "parameter unused" warnings.
43412         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43413         Mark "st" as used.
43414
43415         Use "git COMMAND", not "git-COMMAND".
43416         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43417         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43418         * build-aux/git-version-gen: Use "git status", not "git-status".
43419
43420 2008-02-07  Bruno Haible  <bruno@clisp.org>
43421
43422         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43423         Avoids a crash on Windows Vista.
43424         Reported by Adam Strzelecki <ono@java.pl> via
43425         Simon Josefsson <simon@josefsson.org>.
43426
43427 2008-02-06  Bruno Haible  <bruno@clisp.org>
43428
43429         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43430         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43431         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43433         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43435         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43436         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43438         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43439         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43440         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43441         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43443         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43444         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43445         left-adjust flag.
43446         * tests/test-snprintf-posix.h (test_function): Likewise.
43447         * tests/test-sprintf-posix.h (test_function): Likewise.
43448         * tests/test-vasprintf-posix.c (test_function): Likewise.
43449         * doc/posix-functions/fprintf.texi: Update.
43450         * doc/posix-functions/printf.texi: Update.
43451         * doc/posix-functions/snprintf.texi: Update.
43452         * doc/posix-functions/sprintf.texi: Update.
43453         * doc/posix-functions/vfprintf.texi: Update.
43454         * doc/posix-functions/vprintf.texi: Update.
43455         * doc/posix-functions/vsnprintf.texi: Update.
43456         * doc/posix-functions/vsprintf.texi: Update.
43457         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43458
43459 2008-02-06  Bruno Haible  <bruno@clisp.org>
43460
43461         Fix bug introduced on 2008-01-26.
43462         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43463
43464 2008-02-06  Bruno Haible  <bruno@clisp.org>
43465
43466         Fix bug introduced on 2007-06-10.
43467         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43468         !NEED_PRINTF_FLAG_ZERO.
43469
43470 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43471
43472         getloadavg: use libperfstat on AIX5
43473         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43474
43475 2008-02-03  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/diffseq.h: Add comments about required #includes.
43478         Reported by Michael Biggs <gnulib@doubleplum.net>.
43479
43480 2008-02-01  Bruno Haible  <bruno@clisp.org>
43481
43482         * users.txt: Add gnuit.
43483
43484 2008-01-31  Bruno Haible  <bruno@clisp.org>
43485
43486         * lib/md4.c (set_uint32): Mark as inline.
43487         * lib/md5.c (set_uint32): Likewise.
43488         * lib/sha1.c (set_uint32): Likewise.
43489         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43490         * m4/md5.m4 (gl_MD5): Likewise.
43491         * m4/sha1.m4 (gl_SHA1): Likewise.
43492
43493 2008-01-31  Jim Meyering  <meyering@redhat.com>
43494
43495         Use "sizeof VAR", rather than a literal "4".
43496         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43497         * lib/md4.c (md4_read_ctx): Likewise.
43498         * lib/sha1.c (sha1_read_ctx): Likewise.
43499
43500 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43501
43502         * tests/test-sha1.c: New file, based on test-md5.c.
43503
43504         * modules/crypto/sha1-tests: New file.
43505
43506 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43507
43508         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43509
43510 2008-01-31  Jim Meyering  <meyering@redhat.com>
43511
43512         Prefer "sizeof v" over the equivalent "4".
43513         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43514         * lib/md5.c (set_uint32): Likewise.
43515         * lib/sha1.c (set_uint32): Likewise.
43516
43517 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43518
43519         * lib/sha1.c (set_uint32): Mark function as static.
43520
43521 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43522
43523         md2: clarify comments to say that alignment is not required.
43524         * lib/md2.h: Remove warning about alignment in comment.
43525         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43526         never been required.
43527
43528 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43529
43530         md4: adapt alignment constraint fix from sha1.
43531         * lib/md4.c (set_uint32): New function, from sha1.c
43532         (md4_read_ctx): Use it.
43533         (md4_finish_ctx): Doc fix.
43534         * lib/md4.h: Doc fix.
43535
43536 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43537
43538         md5: adapt alignment constraint fix from sha1.
43539         * lib/md5.c (set_uint32): New function, from sha1.c
43540         (md5_read_ctx): Use it.
43541         (md5_finish_ctx): Doc fix.
43542         * lib/md5.h: Doc fix.
43543
43544 2008-01-30  Peter Palfrader  <weasel@debian.org>
43545
43546         sha1: remove the result buffer alignment constraint
43547         * lib/sha1.c (set_uint32): New function.
43548         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43549         constraint.
43550         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43551         * lib/sha1.h: Likewise.
43552
43553 2008-01-30  Andreas Schwab  <schwab@suse.de>
43554             Bruno Haible  <bruno@clisp.org>
43555
43556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43557         correct definition of LDBL_MIN_EXP.
43558
43559 2008-01-30  Karl Berry  <karl@gnu.org>
43560
43561         * config/srclist-update: try to preserve x bit on updates.
43562         * config/srclistvars.sh: update for karl.
43563
43564 2008-01-29  Jim Meyering  <meyering@redhat.com>
43565
43566         vasnprintf.c: Avoid warning about unused label
43567         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43568         "overflow" label definition and associated code with the
43569         same cpp condition that guards the sole use of that label.
43570
43571 2008-01-26  Bruno Haible  <bruno@clisp.org>
43572
43573         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43574         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43575         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43576         * lib/isnanl-nolibm.h (isnanl): Likewise.
43577         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43578
43579 2008-01-26  Bruno Haible  <bruno@clisp.org>
43580
43581         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43582         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43583
43584 2008-01-26  Bruno Haible  <bruno@clisp.org>
43585
43586         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43587         GCC >= 4.0 built-in.
43588         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43589
43590 2008-01-26  Bruno Haible  <bruno@clisp.org>
43591
43592         Rename isnan, applicable to 'double' only, to isnand.
43593         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43594         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43595         (configure.ac): Update.
43596         (Include): Replace "isnan.h" with "isnand.h".
43597         * m4/isnand.m4: Renamed from m4/isnan.m4.
43598         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43599         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43600         instead of isnan.c.
43601         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43602         instead of HAVE_ISNAN_IN_LIBC.
43603         (isnand): Renamed from isnan.
43604         * lib/isnand.c: New file.
43605         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43606         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43607         (Makefile.am): Update.
43608         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43609         Include isnand.h instead of isnan.h.
43610         (main): Test isnand instead of isnan.
43611         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43612         isnan-nolibm.
43613         * modules/frexp (Depends-on): Likewise.
43614         * modules/frexp-tests (Depends-on): Likewise.
43615         * modules/frexp-nolibm (Depends-on): Likewise.
43616         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43617         * modules/isfinite (Depends-on): Likewise.
43618         * modules/round-tests (Depends-on): Likewise.
43619         * modules/signbit (Depends-on): Likewise.
43620         * modules/signbit-tests (Depends-on): Likewise.
43621         * modules/snprintf-posix (Depends-on): Likewise.
43622         * modules/sprintf-posix (Depends-on): Likewise.
43623         * modules/trunc-tests (Depends-on): Likewise.
43624         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43625         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43626         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43627         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43628         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43629         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43630         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43631         * modules/vasnprintf-posix (Depends-on): Likewise.
43632         * modules/vasprintf-posix (Depends-on): Likewise.
43633         * modules/vfprintf-posix (Depends-on): Likewise.
43634         * modules/vsnprintf-posix (Depends-on): Likewise.
43635         * modules/vsprintf-posix (Depends-on): Likewise.
43636         * lib/frexp.c: Include isnand.h instead of isnan.h.
43637         (ISNAN): Set to isnand instead of isnan.
43638         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43639         (gl_isfinited): Use isnand instead of isnan.
43640         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43641         (gl_signbitd): Use isnand instead of isnan.
43642         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43643         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43644         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43645         (main): Use isnand instead of isnan.
43646         * tests/test-round1.c: Include isnand.h.
43647         (main): Use isnand instead of isnan.
43648         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43649         (ISNAN): Set to isnand instead of isnan.
43650         * tests/test-trunc1.c: Include isnand.h.
43651         (main): Use isnand instead of isnan.
43652         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43653         (equal): Use isnand instead of isnan.
43654         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43655         isnand-nolibm.
43656         * NEWS: Mention the change.
43657
43658 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43659             Bruno Haible  <bruno@clisp.org>
43660
43661         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43662         the GCC builtins for signbits are present and set
43663         REPLACE_SIGNBIT_USING_GCC if so.
43664         * lib/math.in.h (signbit): Define using GCC builtins if
43665         REPLACE_SIGNBIT_USING_GCC is set.
43666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43667         REPLACE_SIGNBIT_USING_GCC.
43668         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43669
43670 2008-01-25  Jim Meyering  <meyering@redhat.com>
43671
43672         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43673         * lib/poll.c: Include <config.h>, not "config.h".
43674         * tests/test-getaddrinfo.c: Likewise.
43675
43676 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43677
43678         * modules/sockets-tests: New file.
43679
43680 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43681
43682         * modules/sockets: New module, can be used to call WSA_Startup and
43683         WSA_Cleanup when needed.
43684
43685         * lib/sockets.h, lib/sockets.c: New files.
43686
43687         * m4/sockets.m4: New file.
43688
43689         * tests/test-sockets.c: New file.
43690
43691 2008-01-19  Bruno Haible  <bruno@clisp.org>
43692
43693         * doc/posix-headers: Renamed from doc/headers.
43694         * doc/posix-functions: Renamed from doc/functions.
43695         * doc/gnulib.texi: Update.
43696
43697 2008-01-19  Bruno Haible  <bruno@clisp.org>
43698
43699         * doc/glibc-functions/strcasestr.texi: Include contents of
43700         doc/functions/strcasestr.texi, fixing the list of platforms.
43701         * doc/functions/strcasestr.texi: Remove file.
43702
43703 2008-01-19  Bruno Haible  <bruno@clisp.org>
43704
43705         * doc/glibc-functions/memmem.texi: Include contents of
43706         doc/functions/memmem.texi.
43707         * doc/functions/memmem.texi: Remove file.
43708
43709 2008-01-18  Bruno Haible  <bruno@clisp.org>
43710
43711         * doc/glibc-functions/*.texi: New files.
43712         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43713         to use the new files.
43714
43715 2008-01-17  Bruno Haible  <bruno@clisp.org>
43716
43717         * tests/test-gethostname.c (main): Fix printf statement.
43718
43719 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43720
43721         * modules/gethostname-tests: New file.
43722
43723         * tests/test-gethostname.c: New file.
43724
43725 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43726
43727         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43728         used by the UNAME case.  Reported by Bruno Haible
43729         <bruno@clisp.org>.
43730
43731 2008-01-17  Eric Blake  <ebb9@byu.net>
43732
43733         Convert c-strcasestr to be more efficient.
43734         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43735         (Depends-on): Add c-strcase, remove malloca, strnlen.
43736         * tests/test-c-strcasestr.c (main): Enhance test.
43737         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43738
43739 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43740
43741         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43742         Use it in creating po/Makevars.
43743
43744 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43745
43746         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43747         Applications that requires it should initialize libgcrypt
43748         manually.
43749
43750 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43751
43752         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43753
43754 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43755
43756         Fix problem with getdate on mingw32 reported by Simon Josefsson
43757         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43758         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43759         tzname", when deciding whether to declare tzname.
43760         * lib/strftime.c (tzname): Likewise.
43761
43762 2008-01-15  Bruno Haible  <bruno@clisp.org>
43763
43764         Work around a MacOS X 10.5 bug in frexpl().
43765         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43766         * doc/functions/frexpl.texi: Document the bug.
43767         Reported by Elias Pipping <pipping@gentoo.org>.
43768
43769 2008-01-14  Eric Blake  <ebb9@byu.net>
43770
43771         Touch up previous patch.
43772         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43773         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43774
43775         Convert strcasestr module to use Two-Way algorithm.
43776         * modules/strcasestr-simple: New module, based on the old
43777         strcasestr, but with Two-Way rather than KMP.
43778         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43779         * lib/string.in.h (rpl_strcasestr): Declare.
43780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43781         performance.
43782         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43783         * modules/string (Makefile.am): Support strcasestr.
43784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43785         * modules/strcasestr-tests (Depends-on): Check for alarm.
43786         * tests/test-strcasestr.c: Augment test.
43787         * lib/str-two-way.h: Clean up stray macro.
43788         * NEWS: Document new module.
43789         * MODULES.html.sh (string handling): Likewise.
43790         * doc/functions/strcasestr.texi: New file.
43791         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43792         here, since it is not a POSIX function.
43793
43794 2008-01-14  Colin Watson  <cjwatson@debian.org>
43795             Bruno Haible  <bruno@clisp.org>
43796
43797         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43798         works fine; if not, set REPLACE_STRSIGNAL.
43799         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43801         REPLACE_STRSIGNAL.
43802         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43803         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43804         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43805
43806 2008-01-14  Bruno Haible  <bruno@clisp.org>
43807
43808         * modules/strsignal (Include): Change to <string.h>.
43809
43810 2008-01-14  Colin Watson  <cjwatson@debian.org>
43811
43812         * modules/argp (Notice): Add a notice recommending to change
43813         XGETTEXT_OPTIONS.
43814         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43815
43816 2008-01-13  Colin Watson  <cjwatson@debian.org>
43817
43818         * modules/strsignal-tests: New file.
43819         * tests/test-strsignal.c: New file.
43820
43821         * lib/strsignal.c: New file, from glibc with modifications.
43822         * lib/siglist.h: New file, from glibc with modifications.
43823         * lib/string.in.h (strsignal): New declaration.
43824         * m4/strsignal.m4: New file.
43825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43826         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43827         * modules/strsignal: New file.
43828         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43829         HAVE_DECL_STRSIGNAL.
43830
43831 2008-01-13  Bruno Haible  <bruno@clisp.org>
43832
43833         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43834         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43835         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43836         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43837
43838 2008-01-13  Bruno Haible  <bruno@clisp.org>
43839
43840         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43841         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43842         * lib/argp.h (__attribute__): Likewise.
43843         * lib/c-stack.c (__attribute__): Likewise.
43844         * lib/error.h (__attribute__): Likewise.
43845         * lib/fts.c (__attribute__): Likewise.
43846         * lib/openat.h (__attribute__): Likewise.
43847         * lib/stdio.in.h (__attribute__): Likewise.
43848         * lib/string.in.h (__attribute__): Likewise.
43849         * lib/utimens.c (__attribute__): Likewise.
43850         * lib/vasnprintf.h (__attribute__): Likewise.
43851         * lib/xalloc.h (__attribute__): Likewise.
43852         * lib/xprintf.h (__attribute__): Likewise.
43853         * lib/xstrtol.h (__attribute__): Likewise.
43854         * lib/xvasprintf.h (__attribute__): Likewise.
43855
43856 2008-01-12  Bruno Haible  <bruno@clisp.org>
43857
43858         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43859         * doc/glibc-headers/a.out.texi: New file.
43860         * doc/glibc-headers/aliases.texi: New file.
43861         * doc/glibc-headers/alloca.texi: New file.
43862         * doc/glibc-headers/ar.texi: New file.
43863         * doc/glibc-headers/argp.texi: New file.
43864         * doc/glibc-headers/argz.texi: New file.
43865         * doc/glibc-headers/byteswap.texi: New file.
43866         * doc/glibc-headers/crypt.texi: New file.
43867         * doc/glibc-headers/endian.texi: New file.
43868         * doc/glibc-headers/envz.texi: New file.
43869         * doc/glibc-headers/err.texi: New file.
43870         * doc/glibc-headers/error.texi: New file.
43871         * doc/glibc-headers/execinfo.texi: New file.
43872         * doc/glibc-headers/fpu_control.texi: New file.
43873         * doc/glibc-headers/fstab.texi: New file.
43874         * doc/glibc-headers/fts.texi: New file.
43875         * doc/glibc-headers/getopt.texi: New file.
43876         * doc/glibc-headers/ieee754.texi: New file.
43877         * doc/glibc-headers/ifaddrs.texi: New file.
43878         * doc/glibc-headers/libintl.texi: New file.
43879         * doc/glibc-headers/mcheck.texi: New file.
43880         * doc/glibc-headers/mntent.texi: New file.
43881         * doc/glibc-headers/obstack.texi: New file.
43882         * doc/glibc-headers/paths.texi: New file.
43883         * doc/glibc-headers/printf.texi: New file.
43884         * doc/glibc-headers/pty.texi: New file.
43885         * doc/glibc-headers/resolv.texi: New file.
43886         * doc/glibc-headers/shadow.texi: New file.
43887         * doc/glibc-headers/sysexits.texi: New file.
43888         * doc/glibc-headers/ttyent.texi: New file.
43889
43890 2008-01-12  Jim Meyering  <meyering@redhat.com>
43891
43892         announce-gen: emit Gnulib's git-based version string.
43893         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43894         New option --gnulib-version=V, where V is expected to be
43895         the output of running git describe in the gnulib directory.
43896         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43897         not useful, and plan to stop publishing an xdelta file with each
43898         coreutils release.
43899
43900         * build-aux/announce-gen: Also check for lzma-compressed files.
43901
43902 2008-01-11  Bruno Haible  <bruno@clisp.org>
43903
43904         * tests/test-memmem.c (main): Increase maximum allowed time.
43905         * tests/test-strstr.c (main): Likewise.
43906
43907 2008-01-11  Bruno Haible  <bruno@clisp.org>
43908
43909         * doc/functions/memmem.texi: Add more precisions about platforms.
43910         * doc/functions/strstr.texi: Likewise.
43911
43912 2008-01-10  Eric Blake  <ebb9@byu.net>
43913
43914         * m4/strstr.m4: Delete cruft from copy-n-paste.
43915         Reported by Bruno Haible.
43916
43917 2008-01-10  Bruno Haible  <bruno@clisp.org>
43918
43919         Make c-strstr rely on strstr.
43920         * lib/c-strstr.c: Don't include str-kmp.h.
43921         (c_strstr): Define in terms of strstr.
43922         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43923         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43924
43925 2008-01-10  Bruno Haible  <bruno@clisp.org>
43926
43927         * doc/gnulib.texi (String Functions in C Locale): New section.
43928         * doc/c-ctype.texi: New file.
43929         * doc/c-strcase.texi: New file.
43930         * doc/c-strcaseeq.texi: New file.
43931         * doc/c-strcasestr.texi: New file.
43932         * doc/c-strstr.texi: New file.
43933         * doc/c-strtod.texi: New file.
43934         * doc/c-strtold.texi: New file.
43935
43936 2008-01-10  Eric Blake  <ebb9@byu.net>
43937
43938         * lib/relocatable.h: Fix a comment.
43939
43940 2008-01-10  Eric Blake  <ebb9@byu.net>
43941
43942         Share two-way algorithm.
43943         * lib/str-two-way.h: New file, merged from...
43944         * lib/memmem.c: ...here...
43945         * lib/strstr.c: ...and here.
43946         * modules/memmem (Files): Use it.
43947         * modules/strstr (Files): Likewise.
43948
43949         Avoid quadratic strstr implementations.
43950         * lib/strstr.c: New file.
43951         * m4/strstr.m4: Likewise.
43952         * modules/strstr: Likewise.
43953         * modules/strstr-tests: Likewise.
43954         * tests/test-strstr.c: Likewise.
43955         * lib/string.in.h (rpl_strstr): Declare.
43956         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43958         * modules/string (Makefile.am): Likewise.
43959         * MODULES.html.sh (string handling): Mention new module.
43960         * doc/functions/strstr.texi (strstr): Document the bug.
43961
43962 2008-01-10  Bruno Haible  <bruno@clisp.org>
43963
43964         * lib/relocatable.h (relocate): State whether result is freshly
43965         allocated or not.
43966         * lib/relocatable.c (relocate): Return a freshly allocated string
43967         instead of a pointer to a privately held string.
43968         Reported by Sylvain Beucler <beuc@gnu.org>.
43969
43970 2008-01-10  Colin Watson  <cjwatson@debian.org>
43971
43972         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43973         s/S_ISNLK/S_ISLNK/.
43974
43975 2008-01-09  Bruno Haible  <bruno@clisp.org>
43976
43977         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43978         and other files.
43979         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43980         if it's only a guess.
43981         * modules/memmem: Simplify by depending on memmem-simple.
43982
43983 2008-01-09  Bruno Haible  <bruno@clisp.org>
43984
43985         Work around OpenBSD 4.0 tdelete() bug.
43986         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43987         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43988         macros and don't redefine the enum values.
43989         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43990         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43991         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43992
43993 2008-01-09  Bruno Haible  <bruno@clisp.org>
43994
43995         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43996         (main): Don't perform the tests if setlocale did not install a UTF-8
43997         locale. Needed on OpenBSD 4.0.
43998         * modules/wcwidth-tests (Depends-on): Add localcharset.
43999
44000 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44001
44002         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44003         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44004         * NEWS: announce this.
44005         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44006
44007 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44008         and Eric Blake  <ebb9@byu.net>
44009
44010         Add memmem-simple module.
44011         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44012         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44013         * modules/memmem-simple: New file.
44014         * modules/memmem (Description): Tweak.
44015         * MODULES.html.sh (string handling): Mention new module.
44016         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44017         addressed by memmem-simple.
44018         * NEWS: Document the difference.
44019
44020 2008-01-09  Eric Blake  <ebb9@byu.net>
44021
44022         Give gcc some memmem optimization hints.
44023         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44024         (strcasestr): Declare as pure.
44025         * modules/memmem (Maintainer): Claim my implementation.
44026
44027 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44028
44029         Support AIX 6.1 and higher.
44030         * build-aux/config.libpath: Likewise.
44031         * build-aux/config.rpath: Likewise.
44032
44033 2008-01-08  Jim Meyering  <meyering@redhat.com>
44034             Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44037         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44038         Reported by Peter Fales in
44039         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44040
44041 2008-01-08  Bruno Haible  <bruno@clisp.org>
44042
44043         * modules/unictype/category-of (Depends-on): Add
44044         unictype/category-none.
44045         * modules/unictype/category-and-tests (Depends-on): Add
44046         unictype/category-{L,N,Lu,Nd}.
44047         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44048         * modules/unictype/category-or-tests (Depends-on): Add
44049         unictype/category-{L,N}.
44050         * modules/unictype/category-name-tests (Depends-on): Add
44051         unictype/category-{Z,Nl}.
44052         Reported by Simon Josefsson.
44053
44054 2008-01-08  Bruno Haible  <bruno@clisp.org>
44055
44056         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44057         convention better.
44058         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44059         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44060         Reported by Peter Miller <millerp@canb.auug.org.au>.
44061
44062 2008-01-08  Eric Blake  <ebb9@byu.net>
44063
44064         Rewrite memmem to guarantee linear complexity without malloc.
44065         * lib/memmem.c (memmem): Use Two-Way rather than
44066         Knuth-Morris-Pratt, to allow O(1) space usage.
44067         (critical_factorization, two_way_short_needle)
44068         (two_way_long_needle): New functions.
44069         (knuth_morris_pratt): Delete.
44070         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44071         Add stdint.
44072         * tests/test-memmem.c (main): Add tests for periodic needle and
44073         sublinear performance.
44074         * doc/functions/memmem.texi (memmem): Document other deficiencies
44075         in cygwin and older glibc.
44076
44077 2008-01-08  Bruno Haible  <bruno@clisp.org>
44078
44079         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44080         augmentation.
44081
44082 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44083
44084         Add a configure time option: --disable-acl.
44085         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44086         AC_ARG_ENABLE(acl).
44087
44088 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44089
44090         * tests/test-localename.c: Don't include obsolete "setenv.h".
44091
44092         * modules/localename-tests (Depends-on): Need unsetenv.
44093
44094 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44095
44096         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44097
44098 2008-01-06  Colin Watson  <cjwatson@debian.org>
44099
44100         * users.txt: Add man-db.
44101
44102 2008-01-07  Bruno Haible  <bruno@clisp.org>
44103
44104         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44105         previous section name.
44106
44107 2008-01-07  Bruno Haible  <bruno@clisp.org>
44108
44109         * lib/progname.c (set_program_name): Don't strip off a leading
44110         "lt-" prefix outside a .libs directory.
44111         Suggested by Paul Eggert.
44112
44113 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44114             Bruno Haible  <bruno@clisp.org>
44115
44116         Improve memory cleanup in 'relocatable' module.
44117         * lib/relocatable.h (compute_curr_prefix): Change return type to
44118         'char *'.
44119         * lib/relocatable.c (compute_curr_prefix): Change return type to
44120         'char *'. Free curr_installdir after use.
44121         (relocate): Free curr_prefix_better after use.
44122         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44123
44124 2008-01-01  Bruno Haible  <bruno@clisp.org>
44125
44126         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44127         failure on older glibc systems.
44128         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44129
44130 2008-01-05  Eric Blake  <ebb9@byu.net>
44131
44132         Avoid quadratic system memmem.
44133         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44134         Reported by Ralf Wildenhues.
44135
44136         Fix memmem test for mingw.
44137         * modules/memmem-tests (configure.ac): Check for alarm.
44138         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44139         it.
44140         * doc/functions/memmem.texi: New file.
44141         * doc/gnulib.texi (Function Substitutes): Add memmem.
44142         Reported by Bruno Haible.
44143
44144 2008-01-04  Bruno Haible  <bruno@clisp.org>
44145
44146         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44147         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44148         gl_HEADER_STRING_H_DEFAULTS.
44149
44150 2008-01-04  Eric Blake  <ebb9@byu.net>
44151
44152         Shorten duration of memmem test.
44153         * tests/test-memmem.c (main): Use alarm to declare failure if test
44154         is taking too long.
44155         Reported by Ralf Wildenhues.
44156
44157 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44158
44159         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44160         string, needed by strerror.
44161
44162 2008-01-03  Colin Watson  <cjwatson@debian.org>
44163             Bruno Haible  <bruno@clisp.org>
44164
44165         * doc/gnulib-tool.texi (Localization): New section.
44166
44167 2008-01-02  Bruno Haible  <bruno@clisp.org>
44168
44169         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44170         variables to 'unsigned char *' type.
44171         Reported by Paul Eggert.
44172
44173 2008-01-02  Jim Meyering  <jim@meyering.net>
44174
44175         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44176
44177 2007-12-31  Jim Meyering  <jim@meyering.net>
44178
44179         Avoid use of private FTS type name.
44180         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44181
44182 2007-12-30  Karl Berry  <karl@gnu.org>
44183
44184         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44185         work around defect in Texinfo and/or the standalone Info browser.
44186
44187 2007-12-30  Bruno Haible  <bruno@clisp.org>
44188
44189         Unify 5 copies of the KMP code.
44190         * lib/str-kmp.h: New file.
44191         * lib/c-strcasestr.c: Include str-kmp.h.
44192         (knuth_morris_pratt): Remove function.
44193         (c_strcasestr): Update.
44194         * lib/c-strstr.c: Include str-kmp.h.
44195         (knuth_morris_pratt): Remove function.
44196         (c_strcasestr): Update.
44197         * lib/mbscasestr.c: Include str-kmp.h.
44198         (knuth_morris_pratt_unibyte): Remove function.
44199         * lib/mbsstr.c: Include str-kmp.h.
44200         (knuth_morris_pratt_unibyte): Remove function.
44201         * lib/strcasestr.c: Include str-kmp.h.
44202         (knuth_morris_pratt): Remove function.
44203         (strcasestr): Update.
44204         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44205         * modules/c-strstr (Files): Likewise.
44206         * modules/mbscasestr (Files): Likewise.
44207         * modules/mbsstr (Files): Likewise.
44208         * modules/strcasestr (Files): Likewise.
44209         Suggested by Paul Eggert.
44210
44211 2007-12-30  Bruno Haible  <bruno@clisp.org>
44212
44213         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44214         defined.
44215
44216 2007-12-30  Bruno Haible  <bruno@clisp.org>
44217
44218         * lib/xmalloca.h: Include xalloc.h.
44219         (xnmalloca): New macro.
44220
44221 2007-12-30  Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/malloca.h (nmalloca): New macro.
44224         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44225         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44226         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44227         knuth_morris_pratt_multibyte): Likewise.
44228         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44229         knuth_morris_pratt_multibyte): Likewise.
44230         * lib/memmem.c (knuth_morris_pratt): Likewise.
44231         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44232
44233 2007-12-25  Bruno Haible  <bruno@clisp.org>
44234
44235         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44236         * lib/glob.c: Don't include openat.h.
44237         (link_exists2_p): Add back the code that deals with the
44238         !GLOB_ALTDIRFUNC case.
44239         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44240         let it do the filename concatenation.
44241         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44242         * modules/glob (Depends-on): Remove openat.
44243
44244 2007-12-31  Bruno Haible  <bruno@clisp.org>
44245
44246         * modules/dirfd (License): Change to LGPLv2+.
44247         Approved by Jim Meyering.
44248
44249 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44250
44251         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44252         when multiplying M by sizeof (size_t).
44253
44254 2007-12-10  Martin Lambers  <marlam@marlam.de>
44255
44256         Override getpagesize on mingw.
44257         * lib/getpagesize.c: New file.
44258         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44259         * modules/getpagesize (Files): Add lib/getpagesize.c.
44260         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44262         REPLACE_GETPAGESIZE.
44263         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44264
44265 2007-12-25  Bruno Haible  <bruno@clisp.org>
44266
44267         * modules/localcharset (Notice): New field.
44268         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44269         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44270
44271 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44272             Bruno Haible  <bruno@clisp.org>
44273
44274         Avoid using the syntax symbol() in formatted documentation.
44275         * MODULES.html.sh (func_module): When replacing symbol() with a
44276         hyperlink, remove the parentheses. Show an error if some remain.
44277         Recognize and render the '...' syntax.
44278         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44279         Rework. Add paragraph about GCC's inlining.
44280         * doc/alloca.texi: Likewise.
44281         * doc/error.texi: Remove parentheses from symbol reference.
44282         * doc/gnulib-intro.texi: Likewise.
44283         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44284         * modules/fnmatch (Description): Reword to say "the ... function".
44285         * modules/full-read (Description): Likewise.
44286         * modules/full-write (Description): Likewise.
44287         * modules/safe-read (Description): Likewise.
44288         * modules/safe-write (Description): Likewise.
44289         * modules/strchrnul (Description): Likewise.
44290         * modules/trim (Description): Likewise.
44291         * modules/error (Description): Remove parentheses from symbol
44292         references.
44293         * modules/verror (Description): Likewise.
44294         Reported by Karl Berry.
44295
44296 2007-12-25  Bruno Haible  <bruno@clisp.org>
44297
44298         Fixup after 2007-10-16 commit.
44299         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44300
44301 2007-12-24  Bruno Haible  <bruno@clisp.org>
44302
44303         Make --enable-relocatable work with DESTDIR.
44304         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44305         to compute installdir from destprog.
44306         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44307         also set the RELOC_DESTDIR variable.
44308         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44309
44310 2007-12-24  Bruno Haible  <bruno@clisp.org>
44311
44312         Fix link error due to xalloc_die().
44313         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44314         of xreadlink.
44315         * lib/relocwrapper.c: Update comments.
44316         * build-aux/install-reloc: Remove xreadlink.c from file list.
44317         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44318         xreadlink.c.
44319         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44320
44321 2007-12-24  Bruno Haible  <bruno@clisp.org>
44322
44323         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44324         * lib/setenv.h: Remove file.
44325         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44326         lib/setenv.h.
44327         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44328         (Depends-on): Add stdlib.
44329         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44330         gl_FUNC_UNSETENV.
44331         (Include): Replace setenv.h with <stdlib.h>.
44332         * modules/unsetenv: New file.
44333         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44334         * lib/unsetenv.c: Include <stdlib.h> first.
44335         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44336         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44337         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44338         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44339         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44340         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44342         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44343         * doc/functions/unsetenv.texi: Update.
44344         * modules/xsetenv (Depends-on): Add unsetenv.
44345         * modules/getdate (Depends-on): Likewise.
44346         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44347         * lib/xsetenv.c: Don't include setenv.h.
44348         * lib/getdate.y: Likewise.
44349         * lib/relocwrapper.c: Likewise.
44350         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44351         (Depends-on): Add stdlib.
44352         * NEWS: Mention the changes.
44353         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44354
44355 2007-12-23  Bruno Haible  <bruno@clisp.org>
44356
44357         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44358         indentation.
44359
44360 2007-12-23  Bruno Haible  <bruno@clisp.org>
44361
44362         * lib/c-strcasestr.c: Add more comments.
44363         * lib/c-strstr.c: Likewise.
44364         * lib/mbscasestr.c: Likewise.
44365         * lib/mbsstr.c: Likewise.
44366         * lib/strcasestr.c: Likewise.
44367         * lib/memmem.c: Likewise.
44368
44369 2007-12-23  Bruno Haible  <bruno@clisp.org>
44370
44371         * tests/test-memmem.c: Include <string.h> first.
44372
44373 2007-12-22  Bruno Haible  <bruno@clisp.org>
44374
44375         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44376         the contents of $testsbase.
44377         Reported by Ralf Wildenhues.
44378
44379 2007-12-22  Bruno Haible  <bruno@clisp.org>
44380
44381         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44382         two variables local_ldadd_before, local_ldadd_last.
44383
44384 2007-12-20  Eric Blake  <ebb9@byu.net>
44385
44386         Work around circular library issue when cross-compiling.
44387         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44388         that progname.o does not need to pull in rpl_memcmp.
44389
44390 2007-12-19  Eric Blake  <ebb9@byu.net>
44391
44392         Fix memmem to avoid O(n^2) worst-case complexity.
44393         * lib/memmem.c (knuth_morris_pratt): New function.
44394         (memmem): Use it if first few naive iterations fail.
44395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44396         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44397         * modules/memchr (License): Likewise.
44398         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44399         malloca.
44400         * tests/test-memmem.c: Rewrite, borrowing ideas from
44401         test-mbsstr1.c; the old version wouldn't even compile!
44402         * modules/memmem-tests: New file.
44403         * lib/string.in.h (rpl_memmem): Add declaration.
44404         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44406         REPLACE_MEMMEM.
44407
44408 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44409
44410         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44411         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44412         before any system include files, and undef after them all.  This
44413         should fix a problem on VMS reported by John E. Malmberg in
44414         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44415
44416 2007-12-17  Eric Blake  <ebb9@byu.net>
44417
44418         Revert addition of verify, for BSD/OS.
44419         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44420         can't handle large files, for the sake of obsolete platforms.
44421         * modules/fseeko (Depends-on): Remove verify.
44422         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44423         * doc/functions/ftello.texi (ftello): Likewise.
44424         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44425         Reported by Larry Jones.
44426
44427 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44428
44429         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44430         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44431
44432 2007-12-17  Jim Meyering  <meyering@redhat.com>
44433
44434         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44435         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44436         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44437         * modules/getcwd (Depends-on): Add openat.
44438         Reported by Petr Salinger.
44439
44440 2007-12-17  Bruno Haible  <bruno@clisp.org>
44441
44442         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44443         avoid a segmentation fault of the configure test on x86_64 systems.
44444
44445 2007-12-15  Jim Meyering  <meyering@redhat.com>
44446
44447         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44448
44449 2007-12-13  Eric Blake  <ebb9@byu.net>
44450
44451         Another fseek test.
44452         * tests/test-fseek.c (main): Also test ungetc handling.
44453         * tests/test-fseeko.c (main): Likewise.
44454         * modules/fseeko (Depends-on): Add verify.
44455         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44456         large.
44457         Reported by Larry Jones.
44458
44459         Fix fseeko on mingw.
44460         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44461         seek.
44462
44463         Beef up fseek tests.
44464         * tests/test-fseek.c (main): Also test eof handling.
44465         * tests/test-fseeko.c (main): Likewise.
44466         Reported by Larry Jones.
44467
44468 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44469
44470         Fix fseeko on BSD-based platforms.
44471         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44472         successful seek.
44473
44474 2007-12-12  Eric Blake  <ebb9@byu.net>
44475
44476         Allow circular dependency of separate libtests.a
44477         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44478         when use_libtests.
44479
44480 2007-12-11  Eric Blake  <ebb9@byu.net>
44481
44482         Fix bug with -0.0L in previous patch.
44483         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44484         * tests/test-isnan.c (main): Also test on zeroes.
44485         * tests/test-isnanf.c (main): Likewise.
44486         * tests/test-isnanl.h (main): Likewise.
44487
44488         Detect pseudo-denormals on x86 even when cross-compiling.
44489         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44490         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44491         invalid bit patterns that happen to satisfy ==.
44492
44493         Avoid link failures with separate libtests.a.
44494         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44495         last, to satisfy circular dependencies.
44496
44497 2007-12-11  Eric Blake  <ebb9@byu.net>
44498         and Bruno Haible  <bruno@clisp.org>
44499
44500         Fix OpenBSD 4.0 <float.h> handling of long double.
44501         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44502         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44503         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44504
44505 2007-12-11  Jim Meyering  <meyering@redhat.com>
44506
44507         * users.txt: Add libvirt.
44508
44509         Support versions of autoconf prior to 2.59c.
44510         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44511         if it is not already defined.
44512
44513 2007-12-09  Bruno Haible  <bruno@clisp.org>
44514
44515         Let 'gnulib-tool --import' collect sources needed for the tests in
44516         tests/ rather than in lib/.
44517         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44518         argument. If true, add rules to generate libtests.a, and put libtests.a
44519         into $(LDADD). Consider source files in subdirectories and set
44520         uses_subdirs.
44521         (func_emit_initmacro_start, func_emit_initmacro_end,
44522         func_emit_initmacro_done): Pass all arguments explicitly.
44523         (func_import): Determine two module lists main_modules,
44524         testsrelated_modules. Determine use_libtests. Determine two variables
44525         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44526         instead of just sed_transform_lib_file. Determine two variables
44527         main_files and testsrelated_files. Compute 'files' as the union of
44528         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44529         func_add_or_update. In the generated gnulib-comp.m4, collect the
44530         object files for tests/ in different variables than those for lib/.
44531         Substitute LIBTESTS_LIBDEPS.
44532         (func_create_testdir): Combine the uses_subdirs results from
44533         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44534
44535 2007-12-09  Bruno Haible  <bruno@clisp.org>
44536
44537         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44538         the build-aux directory.
44539
44540 2007-12-09  Bruno Haible  <bruno@clisp.org>
44541
44542         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44543         introduced on 2006-09-09.
44544
44545 2007-12-07  Jim Meyering  <meyering@redhat.com>
44546
44547         Let these macros work also with autoconf-2.59.
44548         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44549         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44551
44552 2007-12-06  Jim Meyering  <meyering@redhat.com>
44553
44554         Avoid a configure-time syntax error in gl_FUNC_ACL.
44555         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44556         function in each branch, before testing the cache variable.
44557
44558 2007-12-04  Eric Blake  <ebb9@byu.net>
44559
44560         Make scripts executable.
44561         * build-aux/config.guess: Add execute permissions.
44562         * build-aux/config.sub: Likewise.
44563         * build-aux/gendocs.sh: Likewise.
44564
44565         Fix frexp on mingw.
44566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44567         cross-compiling.
44568         * doc/functions/frexp.texi (frexp): Document the bug.
44569
44570         Make cygwin fseeko check more reliable.
44571         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44572         version numbers, rather than unrelated feature check.
44573         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44574         * doc/functions/ftello.texi (ftello): Likewise.
44575         Reported by Bruno Haible.
44576
44577         * m4/strerror.m4: Bump version number.
44578
44579 2007-12-03  Bruno Haible  <bruno@clisp.org>
44580
44581         * doc/functions/mprotect.texi: Mention the mingw problem.
44582
44583 2007-12-03  Eric Blake  <ebb9@byu.net>
44584
44585         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44586         REPLACE_STRERROR is initialized before this macro.
44587
44588 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44589
44590         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44591         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44592         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44593         put -lsec in even for programs other than 'ls'.  This fixes a problem
44594         for gettext reported by Bruno Haible in
44595         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44596         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44597         Add support for Solaris 10.  This isn't efficient, but should get the
44598         job done for now.
44599
44600 2007-12-03  James Youngman  <jay@gnu.org>
44601
44602         * doc/regexprops-generic.texi: change "an close-group" to "a
44603         close-group" and "illegal" to "not allowed".
44604
44605 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44606
44607         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44608         pr_byname.h. Needed for the rare case when the maintainer has done
44609         "make maintainer-clean" in the source directory and then attempts a
44610         build outside the source directory.
44611         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44612         scripts_byname.h.
44613
44614 2007-12-02  Martin Lambers <marlam@marlam.de>
44615             Bruno Haible  <bruno@clisp.org>
44616
44617         * lib/getpagesize.h: Remove file.
44618         * lib/unistd.in.h: Include declaration of getpagesize here.
44619         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44620         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44621         HAVE_SYS_PARAM_H.
44622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44623         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44624         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44625         (Depends-on): Add unistd.
44626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44627         (Include): Use <unistd.h> instead of getpagesize.h.
44628         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44629         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44630         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44631         gl_GETPAGESIZE invocation, already handled by module dependency.
44632         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44633
44634 2007-12-02  Bruno Haible  <bruno@clisp.org>
44635
44636         * modules/strings-tests: New file.
44637         * tests/test-strings.c: New file.
44638
44639         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44640         * lib/strings.in.h: New file.
44641         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44642         * m4/strings_h.m4: New file.
44643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44644         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44645         * modules/strings: New file.
44646         * modules/string (Makefile.am): Update.
44647         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44648         Reported by Karl Berry.
44649
44650 2007-12-01  Eric Blake  <ebb9@byu.net>
44651
44652         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44653         accomodate fix in cygwin 1.5.25.
44654
44655 2007-12-01  Jim Meyering  <meyering@redhat.com>
44656
44657         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44658         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44659         that would inhibit utf8-optimization of a regexp containing line-
44660         or buffer-anchors, e.g., `^', `$'.
44661
44662 2007-11-30  Bruno Haible  <bruno@clisp.org>
44663
44664         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44665         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44666         glthread_recursive_lock_init.
44667         * lib/lock.c (glthread_recursive_lock_init)
44668         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44669         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44670
44671 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44672
44673         New function qset_acl, like set_acl but with syscall semantics.
44674         * lib/acl.h (qset_acl): New decl.
44675         * lib/acl.c (qset_acl): New function.
44676         (set_acl): Use new function.  Use more-consistent diagnostics.
44677
44678 2007-11-28  Jim Meyering  <meyering@redhat.com>
44679
44680         * modules/physmem (License): Change from GPL to LGPLv2+.
44681
44682 2007-11-26  Bruno Haible  <bruno@clisp.org>
44683
44684         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44685         'long double' type has excess precision.
44686         Reported by Jim Meyering in
44687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44688
44689 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44690
44691         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44692         Sync from <http://gnu.org/licenses>.
44693         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44694         with license text from same location.
44695         * doc/maintain.texi, doc/standards.texi:  Sync from
44696         <http://savannah.gnu.org/projects/gnustandards>.
44697
44698 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44699         and Jim Meyering  <meyering@redhat.com>
44700
44701         Adjust getdate' grammar to accept a slightly more regular language.
44702         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44703         Before, the former was rejected.
44704         * lib/getdate.y (digits_to_date_time): New function, factored
44705         out of ...
44706         (number): ...here.  Just call digits_to_date_time.
44707         (hybrid): New non-terminal to handle an <unsigned number,
44708         signed relative offset> sequence consistently.
44709
44710 2007-11-18  Jim Meyering  <meyering@redhat.com>
44711
44712         Pull my changes from coreutils:
44713         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44714         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44715         use of $gnulib_tool_option_extras, so that it's separated from the
44716         preceding argument.
44717
44718         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44719         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44720         parent destination directories before copying a file into place.
44721
44722 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44723
44724         bootstrap: work also with 4-argument variant of AC_INIT
44725         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44726
44727 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44728
44729         Port test-getaddrinfo to Solaris.
44730         Problem reported by Bruno Haible in
44731         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44732         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44733         explanation of setting 'hints'.
44734         Don't reject an implementation merely because it returns EAI_SERVICE.
44735         (EAI_SERVICE): Define to 0 if not defined.
44736
44737 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44738
44739         The license of gnu-make and posix-shell is now "GPLed build tool".
44740         * modules/gnu-make (License): Likewise.
44741         * modules/posix-shell (License): Likewise.
44742
44743         New module posix-shell, for determining a POSIX shell
44744         or perhaps something that is close enough to a POSIX shell.
44745         * m4/posix-shell.m4: New file.
44746         * modules/posix-shell: New file.
44747
44748         * MODULES.html.sh: Mention new module.
44749
44750         New module gnu-make, for determining whether we're using GNU Make.
44751         * m4/gnu-make.m4: New file.
44752         * modules/gnu-make: New file.
44753         * MODULES.html.sh: Mention new module.
44754
44755 2007-11-14  Jim Meyering  <meyering@redhat.com>
44756
44757         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44758         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44759         use this macro to create a function _definition_.
44760         Remove useless "#undef ARGMATCH_DIE".
44761
44762 2007-11-14  Bruno Haible  <bruno@clisp.org>
44763
44764         * lib/config.charset: Update for OpenBSD 4.1.
44765         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44766
44767 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44768
44769         Document 64-bit #if problems in stdint.texi.
44770         * doc/headers/stdint.texi (stdint.h): Mention problems with
44771         64-bit-#if, and how to work around them.
44772
44773         Don't insist on 'long long int' support in the preprocessor.  It
44774         breaks too many things.  For example, PRIdMAX still uses a 'long
44775         long int' format with the latest Sun compiler, even though
44776         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44777         preprocessor problem.  This causes the latest coreutils to dump
44778         core on Solaris 10 sparc with the Sun C compiler.
44779         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44780         the troublesome expressions at configure-time, not at #if-time.
44781         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44782         preprocessor.
44783         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44784         compile-time C checks, done at 'configure'-time.
44785         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44786         * modules/inttypes (Makefile): Substitute the new symbols that
44787         gl_INTTYPES_H now generates.
44788         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44789
44790 2007-11-12  Bruno Haible  <bruno@clisp.org>
44791
44792         Tests for Unicode character classification functions.
44793
44794         * modules/unictype/bidicategory-byname-tests: New file.
44795         * modules/unictype/bidicategory-name-tests: New file.
44796         * modules/unictype/bidicategory-of-tests: New file.
44797         * modules/unictype/bidicategory-test-tests: New file.
44798         * modules/unictype/block-list-tests: New file.
44799         * modules/unictype/block-of-tests: New file.
44800         * modules/unictype/block-test-tests: New file.
44801         * modules/unictype/category-C-tests: New file.
44802         * modules/unictype/category-Cc-tests: New file.
44803         * modules/unictype/category-Cf-tests: New file.
44804         * modules/unictype/category-Cn-tests: New file.
44805         * modules/unictype/category-Co-tests: New file.
44806         * modules/unictype/category-Cs-tests: New file.
44807         * modules/unictype/category-L-tests: New file.
44808         * modules/unictype/category-Ll-tests: New file.
44809         * modules/unictype/category-Lm-tests: New file.
44810         * modules/unictype/category-Lo-tests: New file.
44811         * modules/unictype/category-Lt-tests: New file.
44812         * modules/unictype/category-Lu-tests: New file.
44813         * modules/unictype/category-M-tests: New file.
44814         * modules/unictype/category-Mc-tests: New file.
44815         * modules/unictype/category-Me-tests: New file.
44816         * modules/unictype/category-Mn-tests: New file.
44817         * modules/unictype/category-N-tests: New file.
44818         * modules/unictype/category-Nd-tests: New file.
44819         * modules/unictype/category-Nl-tests: New file.
44820         * modules/unictype/category-No-tests: New file.
44821         * modules/unictype/category-P-tests: New file.
44822         * modules/unictype/category-Pc-tests: New file.
44823         * modules/unictype/category-Pd-tests: New file.
44824         * modules/unictype/category-Pe-tests: New file.
44825         * modules/unictype/category-Pf-tests: New file.
44826         * modules/unictype/category-Pi-tests: New file.
44827         * modules/unictype/category-Po-tests: New file.
44828         * modules/unictype/category-Ps-tests: New file.
44829         * modules/unictype/category-S-tests: New file.
44830         * modules/unictype/category-Sc-tests: New file.
44831         * modules/unictype/category-Sk-tests: New file.
44832         * modules/unictype/category-Sm-tests: New file.
44833         * modules/unictype/category-So-tests: New file.
44834         * modules/unictype/category-Z-tests: New file.
44835         * modules/unictype/category-Zl-tests: New file.
44836         * modules/unictype/category-Zp-tests: New file.
44837         * modules/unictype/category-Zs-tests: New file.
44838         * modules/unictype/category-and-not-tests: New file.
44839         * modules/unictype/category-and-tests: New file.
44840         * modules/unictype/category-byname-tests: New file.
44841         * modules/unictype/category-name-tests: New file.
44842         * modules/unictype/category-none-tests: New file.
44843         * modules/unictype/category-of-tests: New file.
44844         * modules/unictype/category-or-tests: New file.
44845         * modules/unictype/category-test-withtable-tests: New file.
44846         * modules/unictype/combining-class-tests: New file.
44847         * modules/unictype/ctype-alnum-tests: New file.
44848         * modules/unictype/ctype-alpha-tests: New file.
44849         * modules/unictype/ctype-blank-tests: New file.
44850         * modules/unictype/ctype-cntrl-tests: New file.
44851         * modules/unictype/ctype-digit-tests: New file.
44852         * modules/unictype/ctype-graph-tests: New file.
44853         * modules/unictype/ctype-lower-tests: New file.
44854         * modules/unictype/ctype-print-tests: New file.
44855         * modules/unictype/ctype-punct-tests: New file.
44856         * modules/unictype/ctype-space-tests: New file.
44857         * modules/unictype/ctype-upper-tests: New file.
44858         * modules/unictype/ctype-xdigit-tests: New file.
44859         * modules/unictype/decimal-digit-tests: New file.
44860         * modules/unictype/digit-tests: New file.
44861         * modules/unictype/mirror-tests: New file.
44862         * modules/unictype/numeric-tests: New file.
44863         * modules/unictype/property-alphabetic-tests: New file.
44864         * modules/unictype/property-ascii-hex-digit-tests: New file.
44865         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44866         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44867         * modules/unictype/property-bidi-block-separator-tests: New file.
44868         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44869         * modules/unictype/property-bidi-common-separator-tests: New file.
44870         * modules/unictype/property-bidi-control-tests: New file.
44871         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44872         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44873         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44874         * modules/unictype/property-bidi-european-digit-tests: New file.
44875         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44876         * modules/unictype/property-bidi-left-to-right-tests: New file.
44877         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44878         * modules/unictype/property-bidi-other-neutral-tests: New file.
44879         * modules/unictype/property-bidi-pdf-tests: New file.
44880         * modules/unictype/property-bidi-segment-separator-tests: New file.
44881         * modules/unictype/property-bidi-whitespace-tests: New file.
44882         * modules/unictype/property-byname-tests: New file.
44883         * modules/unictype/property-combining-tests: New file.
44884         * modules/unictype/property-composite-tests: New file.
44885         * modules/unictype/property-currency-symbol-tests: New file.
44886         * modules/unictype/property-dash-tests: New file.
44887         * modules/unictype/property-decimal-digit-tests: New file.
44888         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44889         * modules/unictype/property-deprecated-tests: New file.
44890         * modules/unictype/property-diacritic-tests: New file.
44891         * modules/unictype/property-extender-tests: New file.
44892         * modules/unictype/property-format-control-tests: New file.
44893         * modules/unictype/property-grapheme-base-tests: New file.
44894         * modules/unictype/property-grapheme-extend-tests: New file.
44895         * modules/unictype/property-grapheme-link-tests: New file.
44896         * modules/unictype/property-hex-digit-tests: New file.
44897         * modules/unictype/property-hyphen-tests: New file.
44898         * modules/unictype/property-id-continue-tests: New file.
44899         * modules/unictype/property-id-start-tests: New file.
44900         * modules/unictype/property-ideographic-tests: New file.
44901         * modules/unictype/property-ids-binary-operator-tests: New file.
44902         * modules/unictype/property-ids-trinary-operator-tests: New file.
44903         * modules/unictype/property-ignorable-control-tests: New file.
44904         * modules/unictype/property-iso-control-tests: New file.
44905         * modules/unictype/property-join-control-tests: New file.
44906         * modules/unictype/property-left-of-pair-tests: New file.
44907         * modules/unictype/property-line-separator-tests: New file.
44908         * modules/unictype/property-logical-order-exception-tests: New file.
44909         * modules/unictype/property-lowercase-tests: New file.
44910         * modules/unictype/property-math-tests: New file.
44911         * modules/unictype/property-non-break-tests: New file.
44912         * modules/unictype/property-not-a-character-tests: New file.
44913         * modules/unictype/property-numeric-tests: New file.
44914         * modules/unictype/property-other-alphabetic-tests: New file.
44915         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44916         * modules/unictype/property-other-grapheme-extend-tests: New file.
44917         * modules/unictype/property-other-id-continue-tests: New file.
44918         * modules/unictype/property-other-id-start-tests: New file.
44919         * modules/unictype/property-other-lowercase-tests: New file.
44920         * modules/unictype/property-other-math-tests: New file.
44921         * modules/unictype/property-other-uppercase-tests: New file.
44922         * modules/unictype/property-paired-punctuation-tests: New file.
44923         * modules/unictype/property-paragraph-separator-tests: New file.
44924         * modules/unictype/property-pattern-syntax-tests: New file.
44925         * modules/unictype/property-pattern-white-space-tests: New file.
44926         * modules/unictype/property-private-use-tests: New file.
44927         * modules/unictype/property-punctuation-tests: New file.
44928         * modules/unictype/property-quotation-mark-tests: New file.
44929         * modules/unictype/property-radical-tests: New file.
44930         * modules/unictype/property-sentence-terminal-tests: New file.
44931         * modules/unictype/property-soft-dotted-tests: New file.
44932         * modules/unictype/property-space-tests: New file.
44933         * modules/unictype/property-terminal-punctuation-tests: New file.
44934         * modules/unictype/property-test-tests: New file.
44935         * modules/unictype/property-titlecase-tests: New file.
44936         * modules/unictype/property-unassigned-code-value-tests: New file.
44937         * modules/unictype/property-unified-ideograph-tests: New file.
44938         * modules/unictype/property-uppercase-tests: New file.
44939         * modules/unictype/property-variation-selector-tests: New file.
44940         * modules/unictype/property-white-space-tests: New file.
44941         * modules/unictype/property-xid-continue-tests: New file.
44942         * modules/unictype/property-xid-start-tests: New file.
44943         * modules/unictype/property-zero-width-tests: New file.
44944         * modules/unictype/scripts-tests: New file.
44945         * modules/unictype/syntax-c-ident-tests: New file.
44946         * modules/unictype/syntax-c-whitespace-tests: New file.
44947         * modules/unictype/syntax-java-ident-tests: New file.
44948         * modules/unictype/syntax-java-whitespace-tests: New file.
44949         * tests/unictype/test-bidi_byname.c: New file.
44950         * tests/unictype/test-bidi_name.c: New file.
44951         * tests/unictype/test-bidi_of.c: New file.
44952         * tests/unictype/test-bidi_test.c: New file.
44953         * tests/unictype/test-block_list.c: New file.
44954         * tests/unictype/test-block_of.c: New file.
44955         * tests/unictype/test-block_test.c: New file.
44956         * tests/unictype/test-categ_and.c: New file.
44957         * tests/unictype/test-categ_and_not.c: New file.
44958         * tests/unictype/test-categ_byname.c: New file.
44959         * tests/unictype/test-categ_name.c: New file.
44960         * tests/unictype/test-categ_none.c: New file.
44961         * tests/unictype/test-categ_of.c: New file.
44962         * tests/unictype/test-categ_or.c: New file.
44963         * tests/unictype/test-categ_test_withtable.c: New file.
44964         * tests/unictype/test-combining.c: New file.
44965         * tests/unictype/test-decdigit.c: New file.
44966         * tests/unictype/test-digit.c: New file.
44967         * tests/unictype/test-mirror.c: New file.
44968         * tests/unictype/test-numeric.c: New file.
44969         * tests/unictype/test-pr_byname.c: New file.
44970         * tests/unictype/test-pr_test.c: New file.
44971         * tests/unictype/test-predicate-part1.h: New file.
44972         * tests/unictype/test-predicate-part2.h: New file.
44973         * tests/unictype/test-scripts.c: New file.
44974         * tests/unictype/test-sy_c_ident.c: New file.
44975         * tests/unictype/test-sy_java_ident.c: New file.
44976
44977         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44978         for Unicode 5.0.0.
44979         * tests/unictype/test-categ_Cc.c: Likewise.
44980         * tests/unictype/test-categ_Cf.c: Likewise.
44981         * tests/unictype/test-categ_Cn.c: Likewise.
44982         * tests/unictype/test-categ_Co.c: Likewise.
44983         * tests/unictype/test-categ_Cs.c: Likewise.
44984         * tests/unictype/test-categ_L.c: Likewise.
44985         * tests/unictype/test-categ_Ll.c: Likewise.
44986         * tests/unictype/test-categ_Lm.c: Likewise.
44987         * tests/unictype/test-categ_Lo.c: Likewise.
44988         * tests/unictype/test-categ_Lt.c: Likewise.
44989         * tests/unictype/test-categ_Lu.c: Likewise.
44990         * tests/unictype/test-categ_M.c: Likewise.
44991         * tests/unictype/test-categ_Mc.c: Likewise.
44992         * tests/unictype/test-categ_Me.c: Likewise.
44993         * tests/unictype/test-categ_Mn.c: Likewise.
44994         * tests/unictype/test-categ_N.c: Likewise.
44995         * tests/unictype/test-categ_Nd.c: Likewise.
44996         * tests/unictype/test-categ_Nl.c: Likewise.
44997         * tests/unictype/test-categ_No.c: Likewise.
44998         * tests/unictype/test-categ_P.c: Likewise.
44999         * tests/unictype/test-categ_Pc.c: Likewise.
45000         * tests/unictype/test-categ_Pd.c: Likewise.
45001         * tests/unictype/test-categ_Pe.c: Likewise.
45002         * tests/unictype/test-categ_Pf.c: Likewise.
45003         * tests/unictype/test-categ_Pi.c: Likewise.
45004         * tests/unictype/test-categ_Po.c: Likewise.
45005         * tests/unictype/test-categ_Ps.c: Likewise.
45006         * tests/unictype/test-categ_S.c: Likewise.
45007         * tests/unictype/test-categ_Sc.c: Likewise.
45008         * tests/unictype/test-categ_Sk.c: Likewise.
45009         * tests/unictype/test-categ_Sm.c: Likewise.
45010         * tests/unictype/test-categ_So.c: Likewise.
45011         * tests/unictype/test-categ_Z.c: Likewise.
45012         * tests/unictype/test-categ_Zl.c: Likewise.
45013         * tests/unictype/test-categ_Zp.c: Likewise.
45014         * tests/unictype/test-categ_Zs.c: Likewise.
45015         * tests/unictype/test-ctype_alnum.c: Likewise.
45016         * tests/unictype/test-ctype_alpha.c: Likewise.
45017         * tests/unictype/test-ctype_blank.c: Likewise.
45018         * tests/unictype/test-ctype_cntrl.c: Likewise.
45019         * tests/unictype/test-ctype_digit.c: Likewise.
45020         * tests/unictype/test-ctype_graph.c: Likewise.
45021         * tests/unictype/test-ctype_lower.c: Likewise.
45022         * tests/unictype/test-ctype_print.c: Likewise.
45023         * tests/unictype/test-ctype_punct.c: Likewise.
45024         * tests/unictype/test-ctype_space.c: Likewise.
45025         * tests/unictype/test-ctype_upper.c: Likewise.
45026         * tests/unictype/test-ctype_xdigit.c: Likewise.
45027         * tests/unictype/test-decdigit.h: Likewise.
45028         * tests/unictype/test-digit.h: Likewise.
45029         * tests/unictype/test-numeric.h: Likewise.
45030         * tests/unictype/test-pr_alphabetic.c: Likewise.
45031         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45032         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45033         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45034         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45035         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45036         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45037         * tests/unictype/test-pr_bidi_control.c: Likewise.
45038         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45039         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45040         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45041         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45042         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45043         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45044         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45045         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45046         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45047         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45048         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45049         * tests/unictype/test-pr_combining.c: Likewise.
45050         * tests/unictype/test-pr_composite.c: Likewise.
45051         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45052         * tests/unictype/test-pr_dash.c: Likewise.
45053         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45054         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45055         * tests/unictype/test-pr_deprecated.c: Likewise.
45056         * tests/unictype/test-pr_diacritic.c: Likewise.
45057         * tests/unictype/test-pr_extender.c: Likewise.
45058         * tests/unictype/test-pr_format_control.c: Likewise.
45059         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45060         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45061         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45062         * tests/unictype/test-pr_hex_digit.c: Likewise.
45063         * tests/unictype/test-pr_hyphen.c: Likewise.
45064         * tests/unictype/test-pr_id_continue.c: Likewise.
45065         * tests/unictype/test-pr_id_start.c: Likewise.
45066         * tests/unictype/test-pr_ideographic.c: Likewise.
45067         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45068         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45069         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45070         * tests/unictype/test-pr_iso_control.c: Likewise.
45071         * tests/unictype/test-pr_join_control.c: Likewise.
45072         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45073         * tests/unictype/test-pr_line_separator.c: Likewise.
45074         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45075         * tests/unictype/test-pr_lowercase.c: Likewise.
45076         * tests/unictype/test-pr_math.c: Likewise.
45077         * tests/unictype/test-pr_non_break.c: Likewise.
45078         * tests/unictype/test-pr_not_a_character.c: Likewise.
45079         * tests/unictype/test-pr_numeric.c: Likewise.
45080         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45081         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45082         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45083         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45084         * tests/unictype/test-pr_other_id_start.c: Likewise.
45085         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45086         * tests/unictype/test-pr_other_math.c: Likewise.
45087         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45088         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45089         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45090         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45091         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45092         * tests/unictype/test-pr_private_use.c: Likewise.
45093         * tests/unictype/test-pr_punctuation.c: Likewise.
45094         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45095         * tests/unictype/test-pr_radical.c: Likewise.
45096         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45097         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45098         * tests/unictype/test-pr_space.c: Likewise.
45099         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45100         * tests/unictype/test-pr_titlecase.c: Likewise.
45101         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45102         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45103         * tests/unictype/test-pr_uppercase.c: Likewise.
45104         * tests/unictype/test-pr_variation_selector.c: Likewise.
45105         * tests/unictype/test-pr_white_space.c: Likewise.
45106         * tests/unictype/test-pr_xid_continue.c: Likewise.
45107         * tests/unictype/test-pr_xid_start.c: Likewise.
45108         * tests/unictype/test-pr_zero_width.c: Likewise.
45109         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45110         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45111
45112 2007-11-12  Bruno Haible  <bruno@clisp.org>
45113
45114         Unicode character classification functions.
45115         * lib/unictype.h: New file.
45116         * modules/unictype/base: New file.
45117         * modules/unictype/category-L: New file.
45118         * modules/unictype/category-Lu: New file.
45119         * modules/unictype/category-Ll: New file.
45120         * modules/unictype/category-Lt: New file.
45121         * modules/unictype/category-Lm: New file.
45122         * modules/unictype/category-Lo: New file.
45123         * modules/unictype/category-M: New file.
45124         * modules/unictype/category-Mn: New file.
45125         * modules/unictype/category-Mc: New file.
45126         * modules/unictype/category-Me: New file.
45127         * modules/unictype/category-N: New file.
45128         * modules/unictype/category-Nd: New file.
45129         * modules/unictype/category-Nl: New file.
45130         * modules/unictype/category-No: New file.
45131         * modules/unictype/category-P: New file.
45132         * modules/unictype/category-Pc: New file.
45133         * modules/unictype/category-Pd: New file.
45134         * modules/unictype/category-Ps: New file.
45135         * modules/unictype/category-Pe: New file.
45136         * modules/unictype/category-Pi: New file.
45137         * modules/unictype/category-Pf: New file.
45138         * modules/unictype/category-Po: New file.
45139         * modules/unictype/category-S: New file.
45140         * modules/unictype/category-Sm: New file.
45141         * modules/unictype/category-Sc: New file.
45142         * modules/unictype/category-Sk: New file.
45143         * modules/unictype/category-So: New file.
45144         * modules/unictype/category-Z: New file.
45145         * modules/unictype/category-Zs: New file.
45146         * modules/unictype/category-Zl: New file.
45147         * modules/unictype/category-Zp: New file.
45148         * modules/unictype/category-C: New file.
45149         * modules/unictype/category-Cc: New file.
45150         * modules/unictype/category-Cf: New file.
45151         * modules/unictype/category-Cs: New file.
45152         * modules/unictype/category-Co: New file.
45153         * modules/unictype/category-Cn: New file.
45154         * modules/unictype/category-or: New file.
45155         * modules/unictype/category-of: New file.
45156         * modules/unictype/category-test: New file.
45157         * modules/unictype/category-test-withtable: New file.
45158         * modules/unictype/category-byname: New file.
45159         * modules/unictype/category-none: New file.
45160         * modules/unictype/category-and: New file.
45161         * modules/unictype/category-and-not: New file.
45162         * modules/unictype/category-name: New file.
45163         * modules/unictype/combining-class: New file.
45164         * modules/unictype/category-all: New file.
45165         * modules/unictype/bidicategory-all: New file.
45166         * modules/unictype/bidicategory-byname: New file.
45167         * modules/unictype/bidicategory-name: New file.
45168         * modules/unictype/bidicategory-of: New file.
45169         * modules/unictype/bidicategory-test: New file.
45170         * modules/unictype/decimal-digit: New file.
45171         * modules/unictype/digit: New file.
45172         * modules/unictype/numeric: New file.
45173         * modules/unictype/mirror: New file.
45174         * modules/unictype/property-white-space: New file.
45175         * modules/unictype/property-alphabetic: New file.
45176         * modules/unictype/property-other-alphabetic: New file.
45177         * modules/unictype/property-not-a-character: New file.
45178         * modules/unictype/property-default-ignorable-code-point: New file.
45179         * modules/unictype/property-other-default-ignorable-code-point: New
45180         file.
45181         * modules/unictype/property-deprecated: New file.
45182         * modules/unictype/property-logical-order-exception: New file.
45183         * modules/unictype/property-variation-selector: New file.
45184         * modules/unictype/property-private-use: New file.
45185         * modules/unictype/property-unassigned-code-value: New file.
45186         * modules/unictype/property-uppercase: New file.
45187         * modules/unictype/property-other-uppercase: New file.
45188         * modules/unictype/property-lowercase: New file.
45189         * modules/unictype/property-other-lowercase: New file.
45190         * modules/unictype/property-titlecase: New file.
45191         * modules/unictype/property-soft-dotted: New file.
45192         * modules/unictype/property-id-start: New file.
45193         * modules/unictype/property-other-id-start: New file.
45194         * modules/unictype/property-id-continue: New file.
45195         * modules/unictype/property-other-id-continue: New file.
45196         * modules/unictype/property-xid-start: New file.
45197         * modules/unictype/property-xid-continue: New file.
45198         * modules/unictype/property-pattern-white-space: New file.
45199         * modules/unictype/property-pattern-syntax: New file.
45200         * modules/unictype/property-join-control: New file.
45201         * modules/unictype/property-grapheme-base: New file.
45202         * modules/unictype/property-grapheme-extend: New file.
45203         * modules/unictype/property-other-grapheme-extend: New file.
45204         * modules/unictype/property-grapheme-link: New file.
45205         * modules/unictype/property-bidi-control: New file.
45206         * modules/unictype/property-bidi-left-to-right: New file.
45207         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45208         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45209         * modules/unictype/property-bidi-european-digit: New file.
45210         * modules/unictype/property-bidi-eur-num-separator: New file.
45211         * modules/unictype/property-bidi-eur-num-terminator: New file.
45212         * modules/unictype/property-bidi-arabic-digit: New file.
45213         * modules/unictype/property-bidi-common-separator: New file.
45214         * modules/unictype/property-bidi-block-separator: New file.
45215         * modules/unictype/property-bidi-segment-separator: New file.
45216         * modules/unictype/property-bidi-whitespace: New file.
45217         * modules/unictype/property-bidi-non-spacing-mark: New file.
45218         * modules/unictype/property-bidi-boundary-neutral: New file.
45219         * modules/unictype/property-bidi-pdf: New file.
45220         * modules/unictype/property-bidi-embedding-or-override: New file.
45221         * modules/unictype/property-bidi-other-neutral: New file.
45222         * modules/unictype/property-hex-digit: New file.
45223         * modules/unictype/property-ascii-hex-digit: New file.
45224         * modules/unictype/property-ideographic: New file.
45225         * modules/unictype/property-unified-ideograph: New file.
45226         * modules/unictype/property-radical: New file.
45227         * modules/unictype/property-ids-binary-operator: New file.
45228         * modules/unictype/property-ids-trinary-operator: New file.
45229         * modules/unictype/property-zero-width: New file.
45230         * modules/unictype/property-space: New file.
45231         * modules/unictype/property-non-break: New file.
45232         * modules/unictype/property-iso-control: New file.
45233         * modules/unictype/property-format-control: New file.
45234         * modules/unictype/property-dash: New file.
45235         * modules/unictype/property-hyphen: New file.
45236         * modules/unictype/property-punctuation: New file.
45237         * modules/unictype/property-line-separator: New file.
45238         * modules/unictype/property-paragraph-separator: New file.
45239         * modules/unictype/property-quotation-mark: New file.
45240         * modules/unictype/property-sentence-terminal: New file.
45241         * modules/unictype/property-terminal-punctuation: New file.
45242         * modules/unictype/property-currency-symbol: New file.
45243         * modules/unictype/property-math: New file.
45244         * modules/unictype/property-other-math: New file.
45245         * modules/unictype/property-paired-punctuation: New file.
45246         * modules/unictype/property-left-of-pair: New file.
45247         * modules/unictype/property-combining: New file.
45248         * modules/unictype/property-composite: New file.
45249         * modules/unictype/property-decimal-digit: New file.
45250         * modules/unictype/property-numeric: New file.
45251         * modules/unictype/property-diacritic: New file.
45252         * modules/unictype/property-extender: New file.
45253         * modules/unictype/property-ignorable-control: New file.
45254         * modules/unictype/property-test: New file.
45255         * modules/unictype/property-byname: New file.
45256         * modules/unictype/property-all: New file.
45257         * modules/unictype/scripts: New file.
45258         * modules/unictype/scripts-all: New file.
45259         * modules/unictype/block-of: New file.
45260         * modules/unictype/block-test: New file.
45261         * modules/unictype/block-list: New file.
45262         * modules/unictype/block-all: New file.
45263         * modules/unictype/syntax-c-whitespace: New file.
45264         * modules/unictype/syntax-java-whitespace: New file.
45265         * modules/unictype/syntax-c-ident: New file.
45266         * modules/unictype/syntax-java-ident: New file.
45267         * modules/unictype/ctype-alnum: New file.
45268         * modules/unictype/ctype-alpha: New file.
45269         * modules/unictype/ctype-cntrl: New file.
45270         * modules/unictype/ctype-digit: New file.
45271         * modules/unictype/ctype-graph: New file.
45272         * modules/unictype/ctype-lower: New file.
45273         * modules/unictype/ctype-print: New file.
45274         * modules/unictype/ctype-punct: New file.
45275         * modules/unictype/ctype-space: New file.
45276         * modules/unictype/ctype-upper: New file.
45277         * modules/unictype/ctype-xdigit: New file.
45278         * modules/unictype/ctype-blank: New file.
45279         * lib/unictype/bidi_byname.c: New file.
45280         * lib/unictype/bidi_name.c: New file.
45281         * lib/unictype/bidi_of.c: New file.
45282         * lib/unictype/bidi_test.c: New file.
45283         * lib/unictype/bitmap.h: New file.
45284         * lib/unictype/block_test.c: New file.
45285         * lib/unictype/blocks.c: New file.
45286         * lib/unictype/categ_C.c: New file.
45287         * lib/unictype/categ_Cc.c: New file.
45288         * lib/unictype/categ_Cf.c: New file.
45289         * lib/unictype/categ_Cn.c: New file.
45290         * lib/unictype/categ_Co.c: New file.
45291         * lib/unictype/categ_Cs.c: New file.
45292         * lib/unictype/categ_L.c: New file.
45293         * lib/unictype/categ_Ll.c: New file.
45294         * lib/unictype/categ_Lm.c: New file.
45295         * lib/unictype/categ_Lo.c: New file.
45296         * lib/unictype/categ_Lt.c: New file.
45297         * lib/unictype/categ_Lu.c: New file.
45298         * lib/unictype/categ_M.c: New file.
45299         * lib/unictype/categ_Mc.c: New file.
45300         * lib/unictype/categ_Me.c: New file.
45301         * lib/unictype/categ_Mn.c: New file.
45302         * lib/unictype/categ_N.c: New file.
45303         * lib/unictype/categ_Nd.c: New file.
45304         * lib/unictype/categ_Nl.c: New file.
45305         * lib/unictype/categ_No.c: New file.
45306         * lib/unictype/categ_P.c: New file.
45307         * lib/unictype/categ_Pc.c: New file.
45308         * lib/unictype/categ_Pd.c: New file.
45309         * lib/unictype/categ_Pe.c: New file.
45310         * lib/unictype/categ_Pf.c: New file.
45311         * lib/unictype/categ_Pi.c: New file.
45312         * lib/unictype/categ_Po.c: New file.
45313         * lib/unictype/categ_Ps.c: New file.
45314         * lib/unictype/categ_S.c: New file.
45315         * lib/unictype/categ_Sc.c: New file.
45316         * lib/unictype/categ_Sk.c: New file.
45317         * lib/unictype/categ_Sm.c: New file.
45318         * lib/unictype/categ_So.c: New file.
45319         * lib/unictype/categ_Z.c: New file.
45320         * lib/unictype/categ_Zl.c: New file.
45321         * lib/unictype/categ_Zp.c: New file.
45322         * lib/unictype/categ_Zs.c: New file.
45323         * lib/unictype/categ_and.c: New file.
45324         * lib/unictype/categ_and_not.c: New file.
45325         * lib/unictype/categ_byname.c: New file.
45326         * lib/unictype/categ_name.c: New file.
45327         * lib/unictype/categ_none.c: New file.
45328         * lib/unictype/categ_of.c: New file.
45329         * lib/unictype/categ_or.c: New file.
45330         * lib/unictype/categ_test.c: New file.
45331         * lib/unictype/combining.c: New file.
45332         * lib/unictype/ctype_alnum.c: New file.
45333         * lib/unictype/ctype_alpha.c: New file.
45334         * lib/unictype/ctype_blank.c: New file.
45335         * lib/unictype/ctype_cntrl.c: New file.
45336         * lib/unictype/ctype_digit.c: New file.
45337         * lib/unictype/ctype_graph.c: New file.
45338         * lib/unictype/ctype_lower.c: New file.
45339         * lib/unictype/ctype_print.c: New file.
45340         * lib/unictype/ctype_punct.c: New file.
45341         * lib/unictype/ctype_space.c: New file.
45342         * lib/unictype/ctype_upper.c: New file.
45343         * lib/unictype/ctype_xdigit.c: New file.
45344         * lib/unictype/decdigit.c: New file.
45345         * lib/unictype/digit.c: New file.
45346         * lib/unictype/identsyntaxmap.h: New file.
45347         * lib/unictype/mirror.c: New file.
45348         * lib/unictype/numeric.c: New file.
45349         * lib/unictype/pr_alphabetic.c: New file.
45350         * lib/unictype/pr_ascii_hex_digit.c: New file.
45351         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45352         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45353         * lib/unictype/pr_bidi_block_separator.c: New file.
45354         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45355         * lib/unictype/pr_bidi_common_separator.c: New file.
45356         * lib/unictype/pr_bidi_control.c: New file.
45357         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45358         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45359         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45360         * lib/unictype/pr_bidi_european_digit.c: New file.
45361         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45362         * lib/unictype/pr_bidi_left_to_right.c: New file.
45363         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45364         * lib/unictype/pr_bidi_other_neutral.c: New file.
45365         * lib/unictype/pr_bidi_pdf.c: New file.
45366         * lib/unictype/pr_bidi_segment_separator.c: New file.
45367         * lib/unictype/pr_bidi_whitespace.c: New file.
45368         * lib/unictype/pr_byname.c: New file.
45369         * lib/unictype/pr_byname.gperf: New file.
45370         * lib/unictype/pr_combining.c: New file.
45371         * lib/unictype/pr_composite.c: New file.
45372         * lib/unictype/pr_currency_symbol.c: New file.
45373         * lib/unictype/pr_dash.c: New file.
45374         * lib/unictype/pr_decimal_digit.c: New file.
45375         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45376         * lib/unictype/pr_deprecated.c: New file.
45377         * lib/unictype/pr_diacritic.c: New file.
45378         * lib/unictype/pr_extender.c: New file.
45379         * lib/unictype/pr_format_control.c: New file.
45380         * lib/unictype/pr_grapheme_base.c: New file.
45381         * lib/unictype/pr_grapheme_extend.c: New file.
45382         * lib/unictype/pr_grapheme_link.c: New file.
45383         * lib/unictype/pr_hex_digit.c: New file.
45384         * lib/unictype/pr_hyphen.c: New file.
45385         * lib/unictype/pr_id_continue.c: New file.
45386         * lib/unictype/pr_id_start.c: New file.
45387         * lib/unictype/pr_ideographic.c: New file.
45388         * lib/unictype/pr_ids_binary_operator.c: New file.
45389         * lib/unictype/pr_ids_trinary_operator.c: New file.
45390         * lib/unictype/pr_ignorable_control.c: New file.
45391         * lib/unictype/pr_iso_control.c: New file.
45392         * lib/unictype/pr_join_control.c: New file.
45393         * lib/unictype/pr_left_of_pair.c: New file.
45394         * lib/unictype/pr_line_separator.c: New file.
45395         * lib/unictype/pr_logical_order_exception.c: New file.
45396         * lib/unictype/pr_lowercase.c: New file.
45397         * lib/unictype/pr_math.c: New file.
45398         * lib/unictype/pr_non_break.c: New file.
45399         * lib/unictype/pr_not_a_character.c: New file.
45400         * lib/unictype/pr_numeric.c: New file.
45401         * lib/unictype/pr_other_alphabetic.c: New file.
45402         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45403         * lib/unictype/pr_other_grapheme_extend.c: New file.
45404         * lib/unictype/pr_other_id_continue.c: New file.
45405         * lib/unictype/pr_other_id_start.c: New file.
45406         * lib/unictype/pr_other_lowercase.c: New file.
45407         * lib/unictype/pr_other_math.c: New file.
45408         * lib/unictype/pr_other_uppercase.c: New file.
45409         * lib/unictype/pr_paired_punctuation.c: New file.
45410         * lib/unictype/pr_paragraph_separator.c: New file.
45411         * lib/unictype/pr_pattern_syntax.c: New file.
45412         * lib/unictype/pr_pattern_white_space.c: New file.
45413         * lib/unictype/pr_private_use.c: New file.
45414         * lib/unictype/pr_punctuation.c: New file.
45415         * lib/unictype/pr_quotation_mark.c: New file.
45416         * lib/unictype/pr_radical.c: New file.
45417         * lib/unictype/pr_sentence_terminal.c: New file.
45418         * lib/unictype/pr_soft_dotted.c: New file.
45419         * lib/unictype/pr_space.c: New file.
45420         * lib/unictype/pr_terminal_punctuation.c: New file.
45421         * lib/unictype/pr_test.c: New file.
45422         * lib/unictype/pr_titlecase.c: New file.
45423         * lib/unictype/pr_unassigned_code_value.c: New file.
45424         * lib/unictype/pr_unified_ideograph.c: New file.
45425         * lib/unictype/pr_uppercase.c: New file.
45426         * lib/unictype/pr_variation_selector.c: New file.
45427         * lib/unictype/pr_white_space.c: New file.
45428         * lib/unictype/pr_xid_continue.c: New file.
45429         * lib/unictype/pr_xid_start.c: New file.
45430         * lib/unictype/pr_zero_width.c: New file.
45431         * lib/unictype/scripts.c: New file.
45432         * lib/unictype/sy_c_ident.c: New file.
45433         * lib/unictype/sy_c_whitespace.c: New file.
45434         * lib/unictype/sy_java_ident.c: New file.
45435         * lib/unictype/sy_java_whitespace.c: New file.
45436
45437         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45438         Unicode 5.0.0.
45439         * lib/unictype/blocks.h: Likewise.
45440         * lib/unictype/categ_C.h: Likewise.
45441         * lib/unictype/categ_Cc.h: Likewise.
45442         * lib/unictype/categ_Cf.h: Likewise.
45443         * lib/unictype/categ_Cn.h: Likewise.
45444         * lib/unictype/categ_Co.h: Likewise.
45445         * lib/unictype/categ_Cs.h: Likewise.
45446         * lib/unictype/categ_L.h: Likewise.
45447         * lib/unictype/categ_Ll.h: Likewise.
45448         * lib/unictype/categ_Lm.h: Likewise.
45449         * lib/unictype/categ_Lo.h: Likewise.
45450         * lib/unictype/categ_Lt.h: Likewise.
45451         * lib/unictype/categ_Lu.h: Likewise.
45452         * lib/unictype/categ_M.h: Likewise.
45453         * lib/unictype/categ_Mc.h: Likewise.
45454         * lib/unictype/categ_Me.h: Likewise.
45455         * lib/unictype/categ_Mn.h: Likewise.
45456         * lib/unictype/categ_N.h: Likewise.
45457         * lib/unictype/categ_Nd.h: Likewise.
45458         * lib/unictype/categ_Nl.h: Likewise.
45459         * lib/unictype/categ_No.h: Likewise.
45460         * lib/unictype/categ_P.h: Likewise.
45461         * lib/unictype/categ_Pc.h: Likewise.
45462         * lib/unictype/categ_Pd.h: Likewise.
45463         * lib/unictype/categ_Pe.h: Likewise.
45464         * lib/unictype/categ_Pf.h: Likewise.
45465         * lib/unictype/categ_Pi.h: Likewise.
45466         * lib/unictype/categ_Po.h: Likewise.
45467         * lib/unictype/categ_Ps.h: Likewise.
45468         * lib/unictype/categ_S.h: Likewise.
45469         * lib/unictype/categ_Sc.h: Likewise.
45470         * lib/unictype/categ_Sk.h: Likewise.
45471         * lib/unictype/categ_Sm.h: Likewise.
45472         * lib/unictype/categ_So.h: Likewise.
45473         * lib/unictype/categ_Z.h: Likewise.
45474         * lib/unictype/categ_Zl.h: Likewise.
45475         * lib/unictype/categ_Zp.h: Likewise.
45476         * lib/unictype/categ_Zs.h: Likewise.
45477         * lib/unictype/categ_of.h: Likewise.
45478         * lib/unictype/combining.h: Likewise.
45479         * lib/unictype/ctype_alnum.h: Likewise.
45480         * lib/unictype/ctype_alpha.h: Likewise.
45481         * lib/unictype/ctype_blank.h: Likewise.
45482         * lib/unictype/ctype_cntrl.h: Likewise.
45483         * lib/unictype/ctype_digit.h: Likewise.
45484         * lib/unictype/ctype_graph.h: Likewise.
45485         * lib/unictype/ctype_lower.h: Likewise.
45486         * lib/unictype/ctype_print.h: Likewise.
45487         * lib/unictype/ctype_punct.h: Likewise.
45488         * lib/unictype/ctype_space.h: Likewise.
45489         * lib/unictype/ctype_upper.h: Likewise.
45490         * lib/unictype/ctype_xdigit.h: Likewise.
45491         * lib/unictype/decdigit.h: Likewise.
45492         * lib/unictype/digit.h: Likewise.
45493         * lib/unictype/mirror.h: Likewise.
45494         * lib/unictype/numeric.h: Likewise.
45495         * lib/unictype/pr_alphabetic.h: Likewise.
45496         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45497         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45498         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45499         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45500         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45501         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45502         * lib/unictype/pr_bidi_control.h: Likewise.
45503         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45504         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45505         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45506         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45507         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45508         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45509         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45510         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45511         * lib/unictype/pr_bidi_pdf.h: Likewise.
45512         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45513         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45514         * lib/unictype/pr_combining.h: Likewise.
45515         * lib/unictype/pr_composite.h: Likewise.
45516         * lib/unictype/pr_currency_symbol.h: Likewise.
45517         * lib/unictype/pr_dash.h: Likewise.
45518         * lib/unictype/pr_decimal_digit.h: Likewise.
45519         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45520         * lib/unictype/pr_deprecated.h: Likewise.
45521         * lib/unictype/pr_diacritic.h: Likewise.
45522         * lib/unictype/pr_extender.h: Likewise.
45523         * lib/unictype/pr_format_control.h: Likewise.
45524         * lib/unictype/pr_grapheme_base.h: Likewise.
45525         * lib/unictype/pr_grapheme_extend.h: Likewise.
45526         * lib/unictype/pr_grapheme_link.h: Likewise.
45527         * lib/unictype/pr_hex_digit.h: Likewise.
45528         * lib/unictype/pr_hyphen.h: Likewise.
45529         * lib/unictype/pr_id_continue.h: Likewise.
45530         * lib/unictype/pr_id_start.h: Likewise.
45531         * lib/unictype/pr_ideographic.h: Likewise.
45532         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45533         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45534         * lib/unictype/pr_ignorable_control.h: Likewise.
45535         * lib/unictype/pr_iso_control.h: Likewise.
45536         * lib/unictype/pr_join_control.h: Likewise.
45537         * lib/unictype/pr_left_of_pair.h: Likewise.
45538         * lib/unictype/pr_line_separator.h: Likewise.
45539         * lib/unictype/pr_logical_order_exception.h: Likewise.
45540         * lib/unictype/pr_lowercase.h: Likewise.
45541         * lib/unictype/pr_math.h: Likewise.
45542         * lib/unictype/pr_non_break.h: Likewise.
45543         * lib/unictype/pr_not_a_character.h: Likewise.
45544         * lib/unictype/pr_numeric.h: Likewise.
45545         * lib/unictype/pr_other_alphabetic.h: Likewise.
45546         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45547         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45548         * lib/unictype/pr_other_id_continue.h: Likewise.
45549         * lib/unictype/pr_other_id_start.h: Likewise.
45550         * lib/unictype/pr_other_lowercase.h: Likewise.
45551         * lib/unictype/pr_other_math.h: Likewise.
45552         * lib/unictype/pr_other_uppercase.h: Likewise.
45553         * lib/unictype/pr_paired_punctuation.h: Likewise.
45554         * lib/unictype/pr_paragraph_separator.h: Likewise.
45555         * lib/unictype/pr_pattern_syntax.h: Likewise.
45556         * lib/unictype/pr_pattern_white_space.h: Likewise.
45557         * lib/unictype/pr_private_use.h: Likewise.
45558         * lib/unictype/pr_punctuation.h: Likewise.
45559         * lib/unictype/pr_quotation_mark.h: Likewise.
45560         * lib/unictype/pr_radical.h: Likewise.
45561         * lib/unictype/pr_sentence_terminal.h: Likewise.
45562         * lib/unictype/pr_soft_dotted.h: Likewise.
45563         * lib/unictype/pr_space.h: Likewise.
45564         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45565         * lib/unictype/pr_titlecase.h: Likewise.
45566         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45567         * lib/unictype/pr_unified_ideograph.h: Likewise.
45568         * lib/unictype/pr_uppercase.h: Likewise.
45569         * lib/unictype/pr_variation_selector.h: Likewise.
45570         * lib/unictype/pr_white_space.h: Likewise.
45571         * lib/unictype/pr_xid_continue.h: Likewise.
45572         * lib/unictype/pr_xid_start.h: Likewise.
45573         * lib/unictype/pr_zero_width.h: Likewise.
45574         * lib/unictype/scripts.h: Likewise.
45575         * lib/unictype/scripts_byname.gperf: Likewise.
45576         * lib/unictype/sy_c_ident.h: Likewise.
45577         * lib/unictype/sy_c_whitespace.h: Likewise.
45578         * lib/unictype/sy_java_ident.h: Likewise.
45579         * lib/unictype/sy_java_whitespace.h: Likewise.
45580
45581         * lib/unictype/Makefile: New file.
45582         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45583         glibc.
45584         * lib/unictype/3level.h: New file, copied from glibc.
45585         * lib/unictype/3levelbit.h: New file.
45586
45587 2007-11-11  Bruno Haible  <bruno@clisp.org>
45588
45589         * modules/gperf: New file.
45590         * modules/iconv_open (Depends-on): Add it.
45591         (Makefile.am): Remove the GPERF definition.
45592
45593 2007-11-11  Bruno Haible  <bruno@clisp.org>
45594
45595         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45596         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45597
45598 2007-11-11  Bruno Haible  <bruno@clisp.org>
45599
45600         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45601         (usage): Remove function.
45602
45603 2007-11-11  Bruno Haible  <bruno@clisp.org>
45604
45605         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45606         gl_FUNC_CEILF_LIBS.
45607         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45608         gl_FUNC_CEIL_LIBS.
45609         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45610         gl_FUNC_CEILL_LIBS.
45611         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45612         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45613         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45614
45615 2007-11-11  Bruno Haible  <bruno@clisp.org>
45616
45617         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45618         roundf were declared but do not exist on functions.
45619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45620         roundl were declared but do not exist on functions.
45621         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45622         HAVE_FLOORL_AND_CEILL, respectively.
45623         Needed for Sun C on Solaris 10.
45624
45625 2007-11-11  Bruno Haible  <bruno@clisp.org>
45626
45627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45628         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45629         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45630         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45631         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45632         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45633         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45634         HAVE_DECL_ROUNDF.
45635         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45636         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45638         of HAVE_DECL_ROUND*.
45639         * modules/math (Makefile.am): Update.
45640
45641 2007-11-10  Bruno Haible  <bruno@clisp.org>
45642
45643         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45644         ptrdiff_t as m4/intl.m4.
45645
45646 2007-11-10  Jim Meyering  <meyering@redhat.com>
45647
45648         Avoid link failure for the argmatch test.
45649         * tests/test-argmatch.c (usage): Define function to avoid a link
45650         failure: argmatch_die requires a usage function.
45651
45652 2007-11-09  Bruno Haible  <bruno@clisp.org>
45653
45654         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45655         * doc/functions/vsnprintf.texi: Likewise.
45656         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45657         with a size argument < 2.
45658
45659 2007-11-09  Bruno Haible  <bruno@clisp.org>
45660
45661         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45662         buffer. Fixes an inefficiency introduced on 2007-11-03.
45663
45664 2007-11-09  Bruno Haible  <bruno@clisp.org>
45665
45666         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45667         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45668
45669 2007-11-08  Jim Meyering  <meyering@redhat.com>
45670
45671         Change cache variable name prefix "jm_" to "gl_" everywhere.
45672         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45673         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45674         * m4/uptime.m4: s/gl_/jm_/
45675
45676 2007-11-07  Bruno Haible  <bruno@clisp.org>
45677
45678         Update to GNU gettext 0.17.
45679         * m4/intl.m4: Update to GNU gettext 0.17.
45680         * m4/po.m4: Likewise.
45681         * modules/gettext (Files): Remove m4/ulonglong.m4.
45682         (configure.ac): Require gettext infrastructure from version 0.17.
45683
45684 2007-11-06  Bruno Haible  <bruno@clisp.org>
45685
45686         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45687         symbolic values are not defined in a public header.
45688         * lib/freadable.c (freadable) [QNX]: Likewise.
45689         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45690         * lib/freading.c (freading) [QNX]: Likewise.
45691         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45692         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45693         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45694         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45695         Reported by Alain Magloire.
45696
45697         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45698
45699 2007-11-05  Bruno Haible  <bruno@clisp.org>
45700
45701         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45702         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45703         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45704         Reported by Eric Blake.
45705
45706 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45707             Bruno Haible  <bruno@clisp.org>
45708
45709         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45710         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45711         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45712         (malloc): Undefine also before including <stdlib.h>.
45713         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45714         Needed on OSF/1 4.0.
45715
45716 2007-11-05  Jim Meyering  <meyering@redhat.com>
45717
45718         git-version-gen: sync from coreutils.
45719         * build-aux/git-version-gen: Add comments.
45720         Change the first '-' to '.' in the snapshot version string,
45721         e.g., 6.9-377-08144 -> 6.9.377-08144
45722         Remove first parameter.
45723         Don't declare a version "-dirty" merely because a time
45724         stamp has changed.
45725
45726 2007-11-04  Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/lock.h: Protect all macro definitions containing an 'if'
45729         statement through a "do { ... } while (0)".
45730         * lib/tls.h: Likewise.
45731
45732 2007-11-04  Bruno Haible  <bruno@clisp.org>
45733
45734         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45735
45736 2007-11-04  Bruno Haible  <bruno@clisp.org>
45737
45738         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45739         * modules/fprintf-posix (Depends-on): Add nocrash.
45740         * modules/snprintf-posix (Depends-on): Likewise.
45741         * modules/sprintf-posix (Depends-on): Likewise.
45742         * modules/vasnprintf-posix (Depends-on): Likewise.
45743         * modules/vasprintf-posix (Depends-on): Likewise.
45744         * modules/vfprintf-posix (Depends-on): Likewise.
45745         * modules/vsnprintf-posix (Depends-on): Likewise.
45746         * modules/vsprintf-posix (Depends-on): Likewise.
45747         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45748         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45749         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45750         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45751         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45752         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45753         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45754
45755 2007-11-04  Bruno Haible  <bruno@clisp.org>
45756
45757         * modules/nocrash: New file.
45758         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45759         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45760
45761 2007-11-04  Bruno Haible  <bruno@clisp.org>
45762
45763         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45764         precision handling.
45765         * tests/test-vasprintf-posix.c (test_function): Likewise.
45766         * tests/test-snprintf-posix.h (test_function): Likewise.
45767         * tests/test-sprintf-posix.h (test_function): Likewise.
45768
45769         Fix *printf behaviour for large precisions on mingw and BeOS.
45770         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45771         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45773         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45774         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45775         gl_PRINTF_PRECISION and test its result. Invoke
45776         gl_PREREQ_VASNPRINTF_PRECISION.
45777         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45778         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45779         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45781         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45783         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45784         * doc/functions/fprintf.texi: Update.
45785         * doc/functions/printf.texi: Update.
45786         * doc/functions/snprintf.texi: Update.
45787         * doc/functions/sprintf.texi: Update.
45788         * doc/functions/vfprintf.texi: Update.
45789         * doc/functions/vprintf.texi: Update.
45790         * doc/functions/vsnprintf.texi: Update.
45791         * doc/functions/vsprintf.texi: Update.
45792
45793 2007-11-04  Bruno Haible  <bruno@clisp.org>
45794
45795         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45796
45797 2007-11-04  Bruno Haible  <bruno@clisp.org>
45798
45799         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45800         Reported by Sylvain Beucler <beuc@gnu.org>.
45801
45802 2007-11-03  Bruno Haible  <bruno@clisp.org>
45803
45804         * tests/test-fprintf-posix2.sh: New file.
45805         * tests/test-fprintf-posix2.c: New file.
45806         * modules/fprintf-posix-tests (Files): Add them.
45807         (TESTS): Add test-fprintf-posix2.sh.
45808         (configure.ac): Check for getrlimit and setrlimit.
45809         (check_PROGRAMS): Add test-fprintf-posix2.
45810
45811         * tests/test-printf-posix2.sh: New file.
45812         * tests/test-printf-posix2.c: New file.
45813         * modules/printf-posix-tests (Files): Add them.
45814         (TESTS): Add test-printf-posix2.sh.
45815         (configure.ac): Check for getrlimit and setrlimit.
45816         (check_PROGRAMS): Add test-printf-posix2.
45817
45818         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45819         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45820         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45821         (decode_double): New function, copied from decode_long_double.
45822         (scale10_round_decimal_decoded): New function, extracted from
45823         scale10_round_decimal_long_double.
45824         (scale10_round_decimal_long_double): Use it.
45825         (scale10_round_decimal_double): New function.
45826         (floorlog10): New function.
45827         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45829         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45830         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45831         gl_PRINTF_ENOMEM and test its result. Invoke
45832         gl_PREREQ_VASNPRINTF_ENOMEM.
45833         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45834         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45835         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45836         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45837         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45838         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45839         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45840         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45841         * modules/snprintf-posix (Depends-on): Likewise.
45842         * modules/sprintf-posix (Depends-on): Likewise.
45843         * modules/vasnprintf-posix (Depends-on): Likewise.
45844         * modules/vasprintf-posix (Depends-on): Likewise.
45845         * modules/vfprintf-posix (Depends-on): Likewise.
45846         * modules/vsnprintf-posix (Depends-on): Likewise.
45847         * modules/vsprintf-posix (Depends-on): Likewise.
45848         * doc/functions/fprintf.texi: Update.
45849         * doc/functions/printf.texi: Update.
45850         * doc/functions/snprintf.texi: Update.
45851         * doc/functions/sprintf.texi: Update.
45852         * doc/functions/vfprintf.texi: Update.
45853         * doc/functions/vprintf.texi: Update.
45854         * doc/functions/vsnprintf.texi: Update.
45855         * doc/functions/vsprintf.texi: Update.
45856
45857 2007-11-03  Bruno Haible  <bruno@clisp.org>
45858
45859         * modules/frexp-nolibm-tests: New file.
45860
45861         * modules/frexp-nolibm: New file.
45862         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45863
45864 2007-11-03  Bruno Haible  <bruno@clisp.org>
45865
45866         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45867         value is C99 compliant.
45868         Needed for OSF/1 5.1.
45869
45870 2007-11-03  Bruno Haible  <bruno@clisp.org>
45871
45872         Fix out-of-memory handling of vasnprintf.
45873         * lib/printf-parse.c: Include <errno.h>.
45874         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45875         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45876         is already set.
45877
45878 2007-11-02  Eric Blake  <ebb9@byu.net>
45879
45880         Fix tests on cygwin.
45881         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45882
45883 2007-11-01  Bruno Haible  <bruno@clisp.org>
45884
45885         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45886         warning.
45887         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45888         needed for POSIX compatibility.
45889
45890 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45891
45892         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45893         for compatibility with GNU.
45894
45895 2007-11-01  Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45898         (putenv): Renamed from rpl_putenv. Change argument type from
45899         'const char *' to 'char *'.
45900         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45901         of defining putenv in config.h, just set REPLACE_PUTENV.
45902         * modules/putenv (Depends-on): Add stdlib.
45903         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45904         (Include): Use <stdlib.h>.
45905         * lib/stdlib.in.h (putenv): New declaration.
45906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45907         REPLACE_PUTENV.
45908         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45909         REPLACE_PUTENV.
45910         Needed for MacOS X 10.5.0.
45911         Reported by Peter O'Gorman <peter@pogma.com>.
45912
45913 2007-11-01  Jim Meyering  <meyering@redhat.com>
45914
45915         Treat an empty date string exactly like "0".
45916         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45917         if the remaining date string (to be parsed) is empty, use "0".
45918         Reported by Mischa Molhoek and discussed in this thread:
45919         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45920
45921 2007-10-31  Bruno Haible  <bruno@clisp.org>
45922
45923         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45924         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45925         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45926         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45927         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45928         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45929
45930 2007-10-31  Bruno Haible  <bruno@clisp.org>
45931
45932         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45933         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45934         (AC_TYPE_LONG_LONG_INT): Use it.
45935         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45936         it as well.
45937         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45938         to m4/longlong.m4.
45939         * modules/stdint (Files): Remove m4/ulonglong.m4.
45940         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45941         m4/ulonglong.m4.
45942         * modules/strtoumax (Files): Likewise.
45943
45944 2007-10-30  Bruno Haible  <bruno@clisp.org>
45945
45946         * modules/xvasprintf-posix: New file.
45947         Suggested by Eric Blake.
45948
45949 2007-10-30  Bruno Haible  <bruno@clisp.org>
45950
45951         * modules/xprintf-posix-tests: New file.
45952         * tests/test-xprintf-posix.sh: New file.
45953         * tests/test-xprintf-posix.c: New file.
45954         * tests/test-xfprintf-posix.c: New file.
45955
45956         * modules/xprintf-posix: New file.
45957
45958 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45959
45960         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45961         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45962         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45963
45964 2007-10-29  Bruno Haible  <bruno@clisp.org>
45965
45966         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45967         contain the special marker '_cv_'.
45968         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45969         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45970         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45971         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45972         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45973         Reported by Ralf Wildenhues.
45974
45975 2007-10-29  Bruno Haible  <bruno@clisp.org>
45976
45977         * gnulib-tool (func_import): When --lgpl is not specified, set
45978         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45979         GPLv3.
45980         Reported by Simon Josefsson.
45981
45982 2007-10-28  Bruno Haible  <bruno@clisp.org>
45983
45984         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45985         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45986         HAVE_DECL_ISFINITE.
45987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45988         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45989         HAVE_DECL_ISFINITE.
45990
45991 2007-10-28  Bruno Haible  <bruno@clisp.org>
45992
45993         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45994         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45995
45996 2007-10-28  Bruno Haible  <bruno@clisp.org>
45997
45998         Fix link errors with Sun C 5.0 on Solaris 10.
45999         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46000         function is declared but not present in the compiler's libm.
46001         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46002         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46003         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46004         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46005         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46006         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46007         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46009         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46010         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46011         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46012         HAVE_DECL_FLOORL.
46013
46014 2007-10-28  Bruno Haible  <bruno@clisp.org>
46015
46016         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46017         gl_FUNC_FLOORL. Cache the result.
46018         (gl_FUNC_FLOORL): Use it.
46019         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46020         gl_FUNC_CEILL. Cache the result.
46021         (gl_FUNC_CEILL): Use it.
46022
46023         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46024         gl_FUNC_FLOOR. Cache the result.
46025         (gl_FUNC_FLOOR): Use it.
46026         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46027         gl_FUNC_CEIL. Cache the result.
46028         (gl_FUNC_CEIL): Use it.
46029
46030         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46031         gl_FUNC_FLOORF. Cache the result.
46032         (gl_FUNC_FLOORF): Use it.
46033         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46034         gl_FUNC_CEILF. Cache the result.
46035         (gl_FUNC_CEILF): Use it.
46036
46037 2007-10-28  Bruno Haible  <bruno@clisp.org>
46038
46039         * gnulib-tool: Allow specifying the LGPL version number through
46040         --lgpl=2 or --lgpl=3.
46041         (func_usage): Document --lgpl with argument.
46042         Handle --lgpl=... arguments.
46043         (func_import): Recognize also gl_LGPL calls with an argument. When
46044         --lgpl=2 is used and the module's license is just LGPL, report an
46045         error. Set sed_transform_lib_file according to the lgpl variable. In
46046         the generated files, use --lgpl or gl_LGPL invocations with argument,
46047         if necessary.
46048         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46049         an LGPv2+ license.
46050         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46051         gl_LGPL macro.
46052
46053 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46054             Bruno Haible  <bruno@clisp.org>
46055
46056         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46057         (u16_uctomb_aux): Likewise.
46058         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46059         !HAVE_INLINE.
46060         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46061
46062 2007-10-28  Bruno Haible  <bruno@clisp.org>
46063
46064         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46065         Invoke AM_GETTEXT_OPTION if it exists.
46066         * modules/vasprintf: Likewise.
46067         * modules/verror: Likewise.
46068         * modules/xprintf: Likewise.
46069         * modules/xvasprintf: Likewise.
46070
46071 2007-10-27  Ben Pfaff  <blp@gnu.org>
46072
46073         * lib/math.in.h: Define isfinite macro and prototypes for
46074         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46075         implementations.
46076         * m4/math_h.m4: New substitutions for isfinite module.
46077         * lib/isfinite.c: New file.
46078         * m4/isfinite.m4: New file.
46079         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46080         * modules/isfinite: New file.
46081         * modules/isfinite-tests: New file.
46082         * tests/tests-isfinite.c: New file.
46083         * doc/functions/isfinite.texi: Mention isfinite module.
46084         * MODULES.html.sh: Mention new module.
46085
46086 2007-10-27  Ben Pfaff  <blp@gnu.org>
46087
46088         Ralf Wildenhues reported that Tru64 4.0D declares the round
46089         functions but does not have definitions.
46090         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46091         cannot be found in any library, set the output variable to
46092         "missing" instead of "".
46093         * m4/round.m4: Also use our substitute if we cannot find round in
46094         any library, even if it is declared.
46095         * m4/roundf.m4: Likewise for roundf.
46096         * m4/roundl.m4: Likewise for roundl.
46097         * lib/math.in.h: Undefine roundf, round, roundl before defining
46098         their replacements, to allow for hypothetical systems where these
46099         may be defined as macros but not available in libraries.
46100
46101 2007-10-27  Bruno Haible  <bruno@clisp.org>
46102
46103         * doc/gnulib.texi: Invoke @firstparagraphindent.
46104         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46105         changes in gnulib.
46106         (Source changes): New section.
46107
46108 2007-10-26  Bruno Haible  <bruno@clisp.org>
46109
46110         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46111         borrowed from autoconf.
46112
46113 2007-10-26  Bruno Haible  <bruno@clisp.org>
46114
46115         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46116         strerror returned the empty string. Needed on HP-UX 11.00.
46117
46118 2007-10-24  Micah Cowan  <micah@cowan.name>
46119
46120         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46121         * build-aux/bootstrap: Remove support for now-unnecessary option,
46122         --cvs-user, and envvars CVS_USER, CVS_RSH.
46123
46124 2007-10-24  Jim Meyering  <meyering@redhat.com>
46125
46126         Avoid diagnostics from sha1sum when there is no cached checksum.
46127         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46128         if the po.s1 file hasn't been created yet.
46129
46130         * build-aux/bootstrap: Sync from coreutils:
46131         2007-10-24  Jim Meyering  <meyering@redhat.com>
46132         Get gnulib from the git repository, not from an obsolete cvs one.
46133         * build-aux/bootstrap: Suggestion from Micah Cowan.
46134         2007-10-04  Jim Meyering  <jim@meyering.net>
46135         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46136         (update_po_files): Work also when there are no .po files in po/.
46137
46138 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46139
46140         * README: Append ".git" to git and cg examples.
46141         Problem reported by Benoit Sigoure.
46142
46143 2007-10-23  Micah Cowan  <micah@cowan.name>
46144
46145         * users.txt: Add wget.
46146
46147 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46148
46149         Fix linking of some unistdio tests on FreeBSD.
46150         * modules/unistdio/u16-vsnprintf-tests
46151         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46152         * modules/unistdio/u16-vsprintf-tests
46153         (test_u16_vsnprintf1_LDADD): Likewise.
46154         * modules/unistdio/u32-vsnprintf-tests
46155         (test_u32_vsnprintf1_LDADD): Likewise.
46156         * modules/unistdio/u32-vsprintf-tests
46157         (test_u32_vsprintf1_LDADD): Likewise.
46158         * modules/unistdio/u8-vsnprintf-tests
46159         (test_u8_vsnprintf1_LDADD): Likewise.
46160         * modules/unistdio/u8-vsprintf-tests
46161         (test_u8_vsprintf1_LDADD): Likewise.
46162         * modules/unistdio/ulc-vsnprintf-tests
46163         (test_ulc_vsnprintf1_LDADD): Likewise.
46164         * modules/unistdio/ulc-vsprintf-tests
46165         (test_ulc_vsprintf1_LDADD): Likewise.
46166
46167         Fix linking of some uniconv tests on FreeBSD.
46168         * modules/uniconv/u16-conv-from-enc-tests
46169         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46170         * modules/uniconv/u16-conv-to-enc-tests
46171         (test_u16_conv_to_enc_LDADD): Likewise.
46172         * modules/uniconv/u16-strconv-from-enc-tests
46173         (test_u16_strconv_from_enc_LDADD): Likewise.
46174         * modules/uniconv/u16-strconv-to-enc-tests
46175         (test_u16_strconv_to_enc_LDADD): Likewise.
46176         * modules/uniconv/u32-conv-from-enc-tests
46177         (test_u32_conv_from_enc_LDADD): Likewise.
46178         * modules/uniconv/u32-conv-to-enc-tests
46179         (test_u32_conv_to_enc_LDADD): Likewise.
46180         * modules/uniconv/u32-strconv-from-enc-tests
46181         (test_u32_strconv_from_enc_LDADD): Likewise.
46182         * modules/uniconv/u32-strconv-to-enc-tests
46183         (test_u32_strconv_to_enc_LDADD): Likewise.
46184         * modules/uniconv/u8-conv-from-enc-tests
46185         (test_u8_conv_from_enc_LDADD): Likewise.
46186         * modules/uniconv/u8-conv-to-enc-tests
46187         (test_u8_conv_to_enc_LDADD): Likewise.
46188         * modules/uniconv/u8-strconv-from-enc-tests
46189         (test_u8_strconv_from_enc_LDADD): Likewise.
46190         * modules/uniconv/u8-strconv-to-enc-tests
46191         (test_u8_strconv_to_enc_LDADD): Likewise.
46192
46193 2007-10-22  Bruno Haible  <bruno@clisp.org>
46194
46195         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46196         size.
46197
46198 2007-10-22  Eric Blake  <ebb9@byu.net>
46199
46200         Tweak x*printf documentation.
46201         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46202         variable name and comments.
46203         Suggested by Bruno Haible.
46204
46205 2007-10-22  Bruno Haible  <bruno@clisp.org>
46206
46207         * lib/acl.c (copy_acl): Fix file name in comment.
46208
46209 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46210
46211         Fix Tru64 problem with stdbool.h.
46212         * lib/stdbool.in.h (false, true):
46213         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46214         Don't declare as an enum in this situation; it runs afoul of Tru64.
46215         Problem reported by Steven M. Schweda in
46216         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46217
46218 2007-10-22  Eric Blake  <ebb9@byu.net>
46219
46220         Also wrap vf?printf.
46221         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46222         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46223         (xvprintf, xvfprintf): New functions.
46224
46225 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46226
46227         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46228         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46229
46230         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46231         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46232
46233 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46234
46235         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46236         by Bruno Haible.
46237
46238 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46239
46240         * lib/getloadavg.c
46241         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46242         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46243
46244         * tests/test-i-ring.c: Work for C89.
46245
46246 2007-10-22  Bruno Haible  <bruno@clisp.org>
46247
46248         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46249         -1u, in preprocessor expression, so that we don't test for the bug
46250         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46252
46253 2007-10-22  Eric Blake  <ebb9@byu.net>
46254
46255         * tests/test-yesno.sh: Silence stderr during test.
46256
46257 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46258
46259         * modules/crypto/gc-camellia: New file.
46260
46261         * m4/gc-camellia.m4: New file.
46262
46263         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46264
46265         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46266
46267 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46268
46269         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46270         --help to stdout.  Reported by sms@antinode.org (Steven
46271         M. Schweda).
46272
46273 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46274
46275         * users.txt: Fix link to libksba.
46276
46277 2007-10-21  Ben Pfaff  <blp@gnu.org>
46278
46279         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46280         round.c roundf implementation that depends on floorf and ceilf to
46281         be tested unconditionally.
46282
46283 2007-10-21  Ben Pfaff  <blp@gnu.org>
46284
46285         * m4/check-libm-func.m4: Removed.
46286         * m4/check-math-lib.m4: New file.
46287         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46288         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46289         definition and lack of AC_LIBOBJ([roundf]).
46290         * m4/roundl.m4: Ditto, and similarly for roundl.
46291         * modules/round: Reference new m4 file.
46292         * modules/roundf: Ditto.
46293         * modules/roundl: Ditto.
46294         * tests/test-round2.c (main): Use ROUND instead of round.
46295         Bug report from Bruno Haible.
46296
46297 2007-10-21  Bruno Haible  <bruno@clisp.org>
46298
46299         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46300         context.
46301
46302 2007-10-21  Bruno Haible  <bruno@clisp.org>
46303
46304         * tests/test-wcwidth.c (main): Allow negative result for some control
46305         characters.
46306
46307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46308         Needed on OSF/1 5.1.
46309
46310 2007-10-21  Bruno Haible  <bruno@clisp.org>
46311
46312         * tests/test-floorf1.c: Include isnanf.h.
46313         (main): Use isnanf() instead of isnan().
46314         * tests/test-ceilf1.c: Include isnanf.h.
46315         (main): Use isnanf() instead of isnan().
46316         * tests/test-truncf1.c: Include isnanf.h.
46317         (main): Use isnanf() instead of isnan().
46318         * tests/test-roundf1.c: Include isnanf.h.
46319         (main): Use isnanf() instead of isnan().
46320
46321 2007-10-21  Eric Blake  <ebb9@byu.net>
46322
46323         * users.txt: Update URL for m4.
46324
46325 2007-10-21  Bruno Haible  <bruno@clisp.org>
46326
46327         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46328
46329 2007-10-21  Bruno Haible  <bruno@clisp.org>
46330
46331         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46332         Git's management files if the CVS files are not present.
46333
46334 2007-10-20  Bruno Haible  <bruno@clisp.org>
46335
46336         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46337         gcc-3.4.x.
46338
46339 2007-10-20  Ben Pfaff  <blp@gnu.org>
46340
46341         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46342         implementations.
46343         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46344         * lib/round.c: New file.
46345         * lib/roundf.c: New file.
46346         * lib/roundl.c: New file.
46347         * m4/round.m4: New file.
46348         * m4/roundf.m4: New file.
46349         * m4/roundl.m4: New file.
46350         * m4/check-libm-func-m4: New file.
46351         * modules/math: Replace round, roundf, roundl related @VARS@ in
46352         math.in.h.
46353         * modules/round: New file.
46354         * modules/round-tests: New file.
46355         * modules/roundf: New file.
46356         * modules/roundf-tests: New file.
46357         * modules/roundl: New file.
46358         * modules/roundl-tests: New file.
46359         * tests/test-round1.c: New file.
46360         * tests/test-round2.c: New file.
46361         * tests/test-roundf1.c: New file.
46362         * tests/test-roundf2.c: New file.
46363         * tests/test-roundl.c: New file.
46364         * doc/functions/round.texi: Mention round module.
46365         * doc/functions/roundf.texi: Mention roundf module.
46366         * doc/functions/roundl.texi: Mention roundl module.
46367         * MODULES.html.sh: Mention new modules.
46368         Thanks to Bruno Haible for suggestions.
46369
46370 2007-10-20  Jim Meyering  <meyering@redhat.com>
46371
46372         * lib/xprintf.c: Include <config.h> unconditionally.
46373
46374         Change xprintf's license to GPL.
46375         * modules/xprintf (License): s/LGPL/GPL/, since this module
46376         depends on modules (exit and exitfail) which are GPL.
46377         Suggestion from Bruno Haible.
46378
46379         xprintf fixes.
46380         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46381         Use a clearer diagnostic.
46382         Patch from Bruno Haible.
46383
46384 2007-10-20  Bruno Haible  <bruno@clisp.org>
46385
46386         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46387         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46389
46390 2007-10-20  Bruno Haible  <bruno@clisp.org>
46391
46392         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46393         precision in the comparison result > x - 1 or similar.
46394         * tests/test-ceilf2.c (correct_result_p): Likewise.
46395         * tests/test-truncf2.c (correct_result_p): Likewise.
46396         * tests/test-trunc2.c (correct_result_p): Likewise.
46397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46398
46399 2007-10-20  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/ceil: New file.
46402         * m4/ceil.m4: New file.
46403         * doc/functions/ceil.texi: Mention the 'ceil' module.
46404
46405 2007-10-20  Bruno Haible  <bruno@clisp.org>
46406
46407         * modules/floor: New file.
46408         * m4/floor.m4: New file.
46409         * doc/functions/floor.texi: Mention the 'floor' module.
46410
46411 2007-10-20  Bruno Haible  <bruno@clisp.org>
46412
46413         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46414         of %a.
46415         * modules/floorf-tests (Depends-on): Likewise.
46416         * modules/truncf-tests (Depends-on): Likewise.
46417         * modules/trunc-tests (Depends-on): Likewise.
46418         Reported by Ben Pfaff.
46419
46420 2007-10-19  Jim Meyering  <meyering@redhat.com>
46421
46422         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46423         Don't bother testing specific errno values.  Just test ferror.
46424
46425         New module: xprintf
46426         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46427
46428 2007-10-19  Bruno Haible  <bruno@clisp.org>
46429
46430         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46431         syntax.
46432         * modules/javaexec (Makefile.am): Likewise.
46433         * modules/relocatable-prog (Makefile.am): Likewise.
46434         Suggested by Jim Meyering.
46435
46436 2007-10-18  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46439         Reported by Jim Meyering.
46440
46441 2007-10-18  Eric Blake  <ebb9@byu.net>
46442
46443         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46444
46445 2007-10-18  Bruno Haible  <bruno@clisp.org>
46446
46447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46448         the format string into writable memory. Needed in Fortify conditions.
46449
46450 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46451             Bruno Haible  <bruno@clisp.org>
46452
46453         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46454         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46455         * modules/trim (Depends-on): Add mbchar.
46456         (configure.ac): Add gl_FUNC_MBRTOWC.
46457         (Makefile.am): Augment lib_SOURCES.
46458
46459 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46460
46461         Modify glob.c to use fstatat and dirfd, to simplify it.
46462         Suggested by Eric Blake.
46463         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46464         Don't include <stdbool.h>; not used.
46465         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46466         (link_exists_p): Simplify implementation, since we can now assume
46467         dirfd and fstatat.
46468         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46469
46470 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46471
46472         * gnulib-tool (func_get_dependencies): Fix sed script to
46473         match only tests.
46474
46475 2007-10-17  Bruno Haible  <bruno@clisp.org>
46476
46477         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46478         allow locale names without encoding suffix.
46479         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46480         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46481
46482 2007-10-16  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46485         * lib/getgroups.c (getgroups): Likewise.
46486         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46487
46488 2007-10-16  Bruno Haible  <bruno@clisp.org>
46489
46490         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46491         * modules/malloc-posix (License): Likewise.
46492         * modules/realloc-posix (License): Likewise.
46493         * modules/calloc-posix (License): Likewise.
46494         * modules/intprops (License): Change from GPL to LGPL, with
46495         Paul Eggert's approval.
46496
46497 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46498
46499         Merge glibc changes into lib/glob.c.
46500
46501         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46502         2007-10-15 04:59:03 UTC.  Here are the changes:
46503
46504         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46505
46506         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46507
46508         * lib/glob.c: Add some branch prediction throughout.
46509
46510         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46511
46512         [BZ #5103]
46513         * lib/glob.c (glob): Recognize patterns starting \/.
46514
46515         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46516
46517         [BZ #3996]
46518         * lib/glob.c (attribute_hidden): Define if not defined.
46519         (glob): Unescape dirname, filename or username when needed and not
46520         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46521         is NULL.  Handle unescaped [ in pattern without closing ].
46522         Don't pass GLOB_CHECK down to recursive glob for directories.
46523         (__glob_pattern_type): New function.
46524         (__glob_pattern_p): Implement using __glob_pattern_type.
46525         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46526         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46527         Remove unreachable code.
46528
46529         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46530
46531         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46532         explain why there are no leaks.
46533
46534         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46535
46536         [BZ #3253]
46537         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46538         time, rather allocate increasingly bigger arrays of pointers, if
46539         possible with alloca, if too large with malloc.
46540
46541 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46542
46543         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46544         Problem reported by H.Merijn Brand in
46545         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46546         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46547         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46548
46549 2007-10-15  Bruno Haible  <bruno@clisp.org>
46550
46551         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46552         with explicit rpl_ prefix.
46553         * lib/fopen.c (fopen): Likewise.
46554         * lib/freopen.c (freopen): Likewise.
46555         * lib/iconv.c (iconv): Likewise.
46556         * lib/iconv_close.c (iconv_close): Likewise.
46557
46558 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46559
46560         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46561
46562 2007-10-15  Bruno Haible  <bruno@clisp.org>
46563
46564         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46565         <stddef.h> instead of <stdlib.h> since we only need NULL.
46566         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46567
46568 2007-10-15  Bruno Haible  <bruno@clisp.org>
46569
46570         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46571         Replace paragraph talking about LIBOBJS.
46572         Reported by Colin Watson <cjwatson@debian.org>.
46573
46574 2007-10-15  Bruno Haible  <bruno@clisp.org>
46575
46576         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46577         <stdlib.h> before using NULL.
46578
46579 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46580
46581         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46582         Reported by Albert Chin <china@thewrittenword.com>.
46583
46584 2007-10-14  Bruno Haible  <bruno@clisp.org>
46585
46586         * modules/iconv_open-utf-tests: New file.
46587         * tests/test-iconv-utf.c: New file.
46588
46589         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46590         * modules/iconv_open-utf: New file.
46591         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46592         (iconv, iconv_close): New declarations.
46593         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46594         be defined.
46595         (iconv_open): Add special handling of conversion between UTF-8 and
46596         UTF-{16,32}{BE,LE}.
46597         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46598         * lib/iconv_close.c: New file.
46599         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46600         gl_FUNC_ICONV_OPEN.
46601         (gl_FUNC_ICONV_OPEN): Use it.
46602         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46603         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46604         and REPLACE_ICONV_UTF.
46605         * modules/iconv_open (Depends-on): Add c-strcase.
46606         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46607         ICONV_CONST.
46608         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46609
46610 2007-10-13  Albert Chin  <china@thewrittenword.com>
46611             Bruno Haible  <bruno@clisp.org>
46612
46613         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46614         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46615
46616 2007-10-13  Bruno Haible  <bruno@clisp.org>
46617
46618         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46619         defined, use the ISO C99 inline semantics.
46620         * lib/argp.h (ARGP_EI): Likewise.
46621
46622 2007-10-13  Bruno Haible  <bruno@clisp.org>
46623
46624         Handle 'inline' change in gcc 4.3.0.
46625         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46626         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46627         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46628         argp_fmtstream_point): Disable 'extern' declaration if the function
46629         definition is going to be provided inline.
46630         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46631         semantics, not the ISO C99 inline semantics.
46632         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46633         'extern' declaration if the function definition is going to be provided
46634         inline.
46635         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46636         the GNU C inline semantics, not the ISO C99 inline semantics. With
46637         GCC 4.2, avoid a warning.
46638
46639 2007-10-13  Bruno Haible  <bruno@clisp.org>
46640
46641         * lib/freading.h (freading): Enable the use of __freading for
46642         glibc >= 2.7.
46643         * lib/freading.c (freading): Likewise.
46644
46645 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46646
46647         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46648         "warning: C99 inline functions are not supported; using GNU89".
46649
46650 2007-10-12  Bruno Haible  <bruno@clisp.org>
46651
46652         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46653         of 2.
46654         * tests/test-ceilf2.c: New file.
46655         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46656
46657         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46658         * modules/ceilf-tests: Update.
46659
46660 2007-10-12  Bruno Haible  <bruno@clisp.org>
46661
46662         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46663         of 2.
46664         * tests/test-floorf2.c: New file.
46665         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46666
46667         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46668         * modules/floorf-tests: Update.
46669
46670 2007-10-12  Bruno Haible  <bruno@clisp.org>
46671
46672         * tests/test-trunc2.c: New file.
46673         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46674
46675         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46676         * modules/trunc-tests: Update.
46677
46678 2007-10-12  Bruno Haible  <bruno@clisp.org>
46679
46680         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46681         of 2.
46682         * tests/test-truncf2.c: New file.
46683         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46684
46685         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46686         * modules/truncf-tests: Update.
46687
46688 2007-10-11  Eric Blake  <ebb9@byu.net>
46689
46690         Don't claim strerror is broken on Interix.
46691         * doc/functions/strerror.texi (strerror): Known broken systems are
46692         now Solaris 8, and not Interix.
46693         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46694         Interix on cross-compile.
46695         Reported by Martin Koeppe in
46696         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46697
46698 2007-10-11  Bruno Haible  <bruno@clisp.org>
46699
46700         * modules/i-ring-tests: New file.
46701         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46702         instead of assert.
46703
46704 2007-10-11  Bruno Haible  <bruno@clisp.org>
46705
46706         * modules/filenamecat-tests: New file.
46707         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46708         * lib/filenamecat.c: Remove test code.
46709
46710 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46711
46712         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46713
46714         * lib/strerror.c: Include <string.h> always, to test interface,
46715         and to remove the need for the dummy.
46716         Include intprops.h to compute width instead of doing it ourselves
46717         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46718         (strerror): Define it to return NULL if there's no system strerror.
46719         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46720         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46721         ancient pre-strerror Unix systems well any more.  Saying "unknown
46722         system error" is enough.
46723         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46724         simpler strerror.c implementation.
46725         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46726         Simplify the tests to reflect the simpler strerror implementation.
46727         * modules/strerror (Depends-on): Add intprops.
46728
46729 2007-10-09  Eric Blake  <ebb9@byu.net>
46730
46731         Silence test-fpending.
46732         * modules/fpending-tests (Files): Add wrapper script.
46733         * tests/test-fpending.sh: New file.
46734
46735 2007-10-09  Bruno Haible  <bruno@clisp.org>
46736
46737         * MODULES.html.sh (func_module): Don't create a hyperlink for
46738         function names like 'printf_frexp'.
46739         (Misc): Add crc, memxor.
46740         (Characteristics of floating types): New section.
46741         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46742         isnanf-nolibm, signbit, trunc, truncf, truncl.
46743         (Enhancements for ISO C 99 functions): New subsection Input/output.
46744         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46745         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46746         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46747         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46748         (Enhancements for POSIX:2001 functions): Add chdir-long.
46749         (File system functions): Add areadlink, chdir-safer, read-file.
46750         Remove cycle-check.
46751         (File system as inode set): New section.
46752         (Date and time): Add gethrxtime.
46753         (Multithreading): Add openmp.
46754         (Internationalization functions): Add localename.
46755         (Unicode string functions): Add unistr/u*-mbsnlen.
46756         (Support for maintaining and releasing projects): Add git-version-gen.
46757         (Lone files): Remove directories.
46758
46759 2007-10-08  Ben Pfaff  <blp@gnu.org>
46760
46761         * lib/xmalloca.h: Fix typo in comment.
46762
46763 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46764
46765         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46766         when avoiding problems with integer overflow.  Use a portable test
46767         instead.
46768
46769 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46770
46771         * modules/dummy (License): Change to LGPLv2+.
46772         * modules/float (License): Likewise
46773         * modules/realloc (License): Likewise
46774         * modules/stdlib (License): Likewise
46775
46776 2007-10-07  Bruno Haible  <bruno@clisp.org>
46777
46778         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46779         * floor.c (TWO_MANT_DIG): Likewise.
46780         * ceil.c (TWO_MANT_DIG): Likewise.
46781         Reported by Ben Pfaff.
46782
46783 2007-10-07  Bruno Haible  <bruno@clisp.org>
46784
46785         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46786         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46787         * lib/frexp.c (FUNC): Likewise.
46788         * lib/printf-frexp.h (printf_frexp): Likewise.
46789         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46790         * lib/printf-frexp.c (FUNC): Likewise.
46791         Suggested by Jim Meyering.
46792
46793 2007-10-07  Jim Meyering  <meyering@redhat.com>
46794
46795         Make xnanosleep's integer overflow test more robust.
46796         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46797         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46798
46799 2007-10-07  Bruno Haible  <bruno@clisp.org>
46800
46801         * NEWS: Mention the license change.
46802
46803         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46804         abbreviations in the modules files.
46805
46806         Change copyright notice from GPLv2+ to GPLv3+.
46807         * README: Change copyright notice.
46808         * MODULES.html.sh: Likewise.
46809         * build-aux/bootstrap.conf: Likewise.
46810         * build-aux/config.libpath: Likewise.
46811         * build-aux/csharpcomp.sh.in: Likewise.
46812         * build-aux/csharpexec.sh.in: Likewise.
46813         * build-aux/install-reloc: Likewise.
46814         * build-aux/javacomp.sh.in: Likewise.
46815         * build-aux/javaexec.sh.in: Likewise.
46816         * build-aux/ldd.sh.in: Likewise.
46817         * build-aux/reloc-ldflags: Likewise.
46818         * build-aux/relocatable.sh.in: Likewise.
46819         * build-aux/x-to-1.in: Likewise.
46820         * check-module: Likewise.
46821         * config/srclistvars.sh: Likewise.
46822         * gnulib-tool: Likewise.
46823         * lib/acl-internal.h: Likewise.
46824         * lib/acl.c: Likewise.
46825         * lib/acl.h: Likewise.
46826         * lib/acl_entries.c: Likewise.
46827         * lib/areadlink-with-size.c: Likewise.
46828         * lib/areadlink.c: Likewise.
46829         * lib/areadlink.h: Likewise.
46830         * lib/argmatch.c: Likewise.
46831         * lib/argmatch.h: Likewise.
46832         * lib/argp-ba.c: Likewise.
46833         * lib/argp-eexst.c: Likewise.
46834         * lib/argp-fmtstream.c: Likewise.
46835         * lib/argp-fmtstream.h: Likewise.
46836         * lib/argp-fs-xinl.c: Likewise.
46837         * lib/argp-help.c: Likewise.
46838         * lib/argp-namefrob.h: Likewise.
46839         * lib/argp-parse.c: Likewise.
46840         * lib/argp-pin.c: Likewise.
46841         * lib/argp-pv.c: Likewise.
46842         * lib/argp-pvh.c: Likewise.
46843         * lib/argp-xinl.c: Likewise.
46844         * lib/argp.h: Likewise.
46845         * lib/at-func.c: Likewise.
46846         * lib/atanl.c: Likewise.
46847         * lib/backupfile.c: Likewise.
46848         * lib/backupfile.h: Likewise.
46849         * lib/basename.c: Likewise.
46850         * lib/binary-io.h: Likewise.
46851         * lib/byteswap.in.h: Likewise.
46852         * lib/c-stack.c: Likewise.
46853         * lib/c-stack.h: Likewise.
46854         * lib/c-strcasestr.c: Likewise.
46855         * lib/c-strcasestr.h: Likewise.
46856         * lib/c-strstr.c: Likewise.
46857         * lib/c-strstr.h: Likewise.
46858         * lib/c-strtod.c: Likewise.
46859         * lib/calloc.c: Likewise.
46860         * lib/canon-host.c: Likewise.
46861         * lib/canon-host.h: Likewise.
46862         * lib/canonicalize-lgpl.c: Likewise.
46863         * lib/canonicalize.c: Likewise.
46864         * lib/canonicalize.h: Likewise.
46865         * lib/ceil.c: Likewise.
46866         * lib/ceilf.c: Likewise.
46867         * lib/ceill.c: Likewise.
46868         * lib/chdir-long.c: Likewise.
46869         * lib/chdir-long.h: Likewise.
46870         * lib/chdir-safer.c: Likewise.
46871         * lib/chdir-safer.h: Likewise.
46872         * lib/chown.c: Likewise.
46873         * lib/classpath.c: Likewise.
46874         * lib/classpath.h: Likewise.
46875         * lib/clean-temp.c: Likewise.
46876         * lib/clean-temp.h: Likewise.
46877         * lib/cloexec.c: Likewise.
46878         * lib/close-stream.c: Likewise.
46879         * lib/closein.c: Likewise.
46880         * lib/closein.h: Likewise.
46881         * lib/closeout.c: Likewise.
46882         * lib/closeout.h: Likewise.
46883         * lib/concat-filename.c: Likewise.
46884         * lib/copy-file.c: Likewise.
46885         * lib/copy-file.h: Likewise.
46886         * lib/count-one-bits.h: Likewise.
46887         * lib/crc.c: Likewise.
46888         * lib/crc.h: Likewise.
46889         * lib/creat-safer.c: Likewise.
46890         * lib/csharpcomp.c: Likewise.
46891         * lib/csharpcomp.h: Likewise.
46892         * lib/csharpexec.c: Likewise.
46893         * lib/csharpexec.h: Likewise.
46894         * lib/cycle-check.c: Likewise.
46895         * lib/cycle-check.h: Likewise.
46896         * lib/diacrit.c: Likewise.
46897         * lib/diacrit.h: Likewise.
46898         * lib/diffseq.h: Likewise.
46899         * lib/dirchownmod.c: Likewise.
46900         * lib/dirent.in.h: Likewise.
46901         * lib/dirfd.c: Likewise.
46902         * lib/dirfd.h: Likewise.
46903         * lib/dirname.c: Likewise.
46904         * lib/dirname.h: Likewise.
46905         * lib/dummy.c: Likewise.
46906         * lib/dup-safer.c: Likewise.
46907         * lib/dup2.c: Likewise.
46908         * lib/eealloc.h: Likewise.
46909         * lib/error.c: Likewise.
46910         * lib/error.h: Likewise.
46911         * lib/euidaccess.c: Likewise.
46912         * lib/exclude.c: Likewise.
46913         * lib/exclude.h: Likewise.
46914         * lib/execute.c: Likewise.
46915         * lib/execute.h: Likewise.
46916         * lib/exitfail.c: Likewise.
46917         * lib/exitfail.h: Likewise.
46918         * lib/expl.c: Likewise.
46919         * lib/fatal-signal.c: Likewise.
46920         * lib/fatal-signal.h: Likewise.
46921         * lib/fbufmode.c: Likewise.
46922         * lib/fbufmode.h: Likewise.
46923         * lib/fchdir.c: Likewise.
46924         * lib/fchmodat.c: Likewise.
46925         * lib/fchownat.c: Likewise.
46926         * lib/fcntl--.h: Likewise.
46927         * lib/fcntl-safer.h: Likewise.
46928         * lib/fcntl.in.h: Likewise.
46929         * lib/fd-safer.c: Likewise.
46930         * lib/fflush.c: Likewise.
46931         * lib/file-has-acl.c: Likewise.
46932         * lib/file-set.c: Likewise.
46933         * lib/file-type.c: Likewise.
46934         * lib/file-type.h: Likewise.
46935         * lib/fileblocks.c: Likewise.
46936         * lib/filemode.c: Likewise.
46937         * lib/filemode.h: Likewise.
46938         * lib/filename.h: Likewise.
46939         * lib/filenamecat.c: Likewise.
46940         * lib/filenamecat.h: Likewise.
46941         * lib/findprog.c: Likewise.
46942         * lib/findprog.h: Likewise.
46943         * lib/float.in.h: Likewise.
46944         * lib/floor.c: Likewise.
46945         * lib/floorf.c: Likewise.
46946         * lib/floorl.c: Likewise.
46947         * lib/fopen-safer.c: Likewise.
46948         * lib/fopen.c: Likewise.
46949         * lib/fpending.c: Likewise.
46950         * lib/fpending.h: Likewise.
46951         * lib/fprintf.c: Likewise.
46952         * lib/fprintftime.h: Likewise.
46953         * lib/fpucw.h: Likewise.
46954         * lib/fpurge.c: Likewise.
46955         * lib/fpurge.h: Likewise.
46956         * lib/freadable.c: Likewise.
46957         * lib/freadable.h: Likewise.
46958         * lib/freadahead.c: Likewise.
46959         * lib/freadahead.h: Likewise.
46960         * lib/freading.c: Likewise.
46961         * lib/freading.h: Likewise.
46962         * lib/free.c: Likewise.
46963         * lib/freopen.c: Likewise.
46964         * lib/frexp.c: Likewise.
46965         * lib/frexpl.c: Likewise.
46966         * lib/fseek.c: Likewise.
46967         * lib/fseterr.c: Likewise.
46968         * lib/fseterr.h: Likewise.
46969         * lib/fstatat.c: Likewise.
46970         * lib/fstrcmp.c: Likewise.
46971         * lib/fstrcmp.h: Likewise.
46972         * lib/fsusage.c: Likewise.
46973         * lib/fsusage.h: Likewise.
46974         * lib/ftell.c: Likewise.
46975         * lib/ftello.c: Likewise.
46976         * lib/fts-cycle.c: Likewise.
46977         * lib/fts.c: Likewise.
46978         * lib/fts_.h: Likewise.
46979         * lib/full-read.c: Likewise.
46980         * lib/full-read.h: Likewise.
46981         * lib/full-write.c: Likewise.
46982         * lib/full-write.h: Likewise.
46983         * lib/fwritable.c: Likewise.
46984         * lib/fwritable.h: Likewise.
46985         * lib/fwriteerror.c: Likewise.
46986         * lib/fwriteerror.h: Likewise.
46987         * lib/fwriting.c: Likewise.
46988         * lib/fwriting.h: Likewise.
46989         * lib/gcd.c: Likewise.
46990         * lib/gcd.h: Likewise.
46991         * lib/getcwd.c: Likewise.
46992         * lib/getdate.h: Likewise.
46993         * lib/getdate.y: Likewise.
46994         * lib/getdomainname.c: Likewise.
46995         * lib/getdomainname.h: Likewise.
46996         * lib/getgroups.c: Likewise.
46997         * lib/gethostname.c: Likewise.
46998         * lib/gethrxtime.c: Likewise.
46999         * lib/gethrxtime.h: Likewise.
47000         * lib/getloadavg.c: Likewise.
47001         * lib/getndelim2.c: Likewise.
47002         * lib/getndelim2.h: Likewise.
47003         * lib/getnline.c: Likewise.
47004         * lib/getnline.h: Likewise.
47005         * lib/getopt.c: Likewise.
47006         * lib/getopt.in.h: Likewise.
47007         * lib/getopt1.c: Likewise.
47008         * lib/getopt_int.h: Likewise.
47009         * lib/getpagesize.h: Likewise.
47010         * lib/getsubopt.c: Likewise.
47011         * lib/gettime.c: Likewise.
47012         * lib/getugroups.c: Likewise.
47013         * lib/getugroups.h: Likewise.
47014         * lib/getusershell.c: Likewise.
47015         * lib/gl_anyavltree_list1.h: Likewise.
47016         * lib/gl_anyavltree_list2.h: Likewise.
47017         * lib/gl_anyhash_list1.h: Likewise.
47018         * lib/gl_anyhash_list2.h: Likewise.
47019         * lib/gl_anylinked_list1.h: Likewise.
47020         * lib/gl_anylinked_list2.h: Likewise.
47021         * lib/gl_anyrbtree_list1.h: Likewise.
47022         * lib/gl_anyrbtree_list2.h: Likewise.
47023         * lib/gl_anytree_list1.h: Likewise.
47024         * lib/gl_anytree_list2.h: Likewise.
47025         * lib/gl_anytree_oset.h: Likewise.
47026         * lib/gl_anytreehash_list1.h: Likewise.
47027         * lib/gl_anytreehash_list2.h: Likewise.
47028         * lib/gl_array_list.c: Likewise.
47029         * lib/gl_array_list.h: Likewise.
47030         * lib/gl_array_oset.c: Likewise.
47031         * lib/gl_array_oset.h: Likewise.
47032         * lib/gl_avltree_list.c: Likewise.
47033         * lib/gl_avltree_list.h: Likewise.
47034         * lib/gl_avltree_oset.c: Likewise.
47035         * lib/gl_avltree_oset.h: Likewise.
47036         * lib/gl_avltreehash_list.c: Likewise.
47037         * lib/gl_avltreehash_list.h: Likewise.
47038         * lib/gl_carray_list.c: Likewise.
47039         * lib/gl_carray_list.h: Likewise.
47040         * lib/gl_linked_list.c: Likewise.
47041         * lib/gl_linked_list.h: Likewise.
47042         * lib/gl_linkedhash_list.c: Likewise.
47043         * lib/gl_linkedhash_list.h: Likewise.
47044         * lib/gl_list.c: Likewise.
47045         * lib/gl_list.h: Likewise.
47046         * lib/gl_oset.c: Likewise.
47047         * lib/gl_oset.h: Likewise.
47048         * lib/gl_rbtree_list.c: Likewise.
47049         * lib/gl_rbtree_list.h: Likewise.
47050         * lib/gl_rbtree_oset.c: Likewise.
47051         * lib/gl_rbtree_oset.h: Likewise.
47052         * lib/gl_rbtreehash_list.c: Likewise.
47053         * lib/gl_rbtreehash_list.h: Likewise.
47054         * lib/gl_sublist.c: Likewise.
47055         * lib/gl_sublist.h: Likewise.
47056         * lib/group-member.c: Likewise.
47057         * lib/group-member.h: Likewise.
47058         * lib/hard-locale.c: Likewise.
47059         * lib/hard-locale.h: Likewise.
47060         * lib/hash-pjw.c: Likewise.
47061         * lib/hash-pjw.h: Likewise.
47062         * lib/hash-triple.c: Likewise.
47063         * lib/hash.c: Likewise.
47064         * lib/hash.h: Likewise.
47065         * lib/human.c: Likewise.
47066         * lib/human.h: Likewise.
47067         * lib/i-ring.c: Likewise.
47068         * lib/i-ring.h: Likewise.
47069         * lib/idcache.c: Likewise.
47070         * lib/imaxabs.c: Likewise.
47071         * lib/imaxdiv.c: Likewise.
47072         * lib/inet_pton.c: Likewise.
47073         * lib/inet_pton.h: Likewise.
47074         * lib/intprops.h: Likewise.
47075         * lib/inttostr.c: Likewise.
47076         * lib/inttostr.h: Likewise.
47077         * lib/inttypes.in.h: Likewise.
47078         * lib/isapipe.c: Likewise.
47079         * lib/isdir.c: Likewise.
47080         * lib/isnan.c: Likewise.
47081         * lib/isnan.h: Likewise.
47082         * lib/isnanf.c: Likewise.
47083         * lib/isnanf.h: Likewise.
47084         * lib/isnanl-nolibm.h: Likewise.
47085         * lib/isnanl.c: Likewise.
47086         * lib/isnanl.h: Likewise.
47087         * lib/javacomp.c: Likewise.
47088         * lib/javacomp.h: Likewise.
47089         * lib/javaexec.c: Likewise.
47090         * lib/javaexec.h: Likewise.
47091         * lib/javaversion.c: Likewise.
47092         * lib/javaversion.h: Likewise.
47093         * lib/javaversion.java: Likewise.
47094         * lib/lbrkprop.h: Likewise.
47095         * lib/lchmod.h: Likewise.
47096         * lib/lchown.c: Likewise.
47097         * lib/ldexpl.c: Likewise.
47098         * lib/linebreak.c: Likewise.
47099         * lib/linebreak.h: Likewise.
47100         * lib/linebuffer.c: Likewise.
47101         * lib/linebuffer.h: Likewise.
47102         * lib/locale.in.h: Likewise.
47103         * lib/logl.c: Likewise.
47104         * lib/long-options.c: Likewise.
47105         * lib/long-options.h: Likewise.
47106         * lib/lstat.c: Likewise.
47107         * lib/lstat.h: Likewise.
47108         * lib/math.in.h: Likewise.
47109         * lib/mbchar.c: Likewise.
47110         * lib/mbchar.h: Likewise.
47111         * lib/mbfile.h: Likewise.
47112         * lib/mbiter.h: Likewise.
47113         * lib/mbscasecmp.c: Likewise.
47114         * lib/mbscasestr.c: Likewise.
47115         * lib/mbschr.c: Likewise.
47116         * lib/mbscspn.c: Likewise.
47117         * lib/mbslen.c: Likewise.
47118         * lib/mbsncasecmp.c: Likewise.
47119         * lib/mbsnlen.c: Likewise.
47120         * lib/mbspbrk.c: Likewise.
47121         * lib/mbspcasecmp.c: Likewise.
47122         * lib/mbsrchr.c: Likewise.
47123         * lib/mbssep.c: Likewise.
47124         * lib/mbsspn.c: Likewise.
47125         * lib/mbsstr.c: Likewise.
47126         * lib/mbstok_r.c: Likewise.
47127         * lib/mbswidth.c: Likewise.
47128         * lib/mbswidth.h: Likewise.
47129         * lib/mbuiter.h: Likewise.
47130         * lib/memcasecmp.c: Likewise.
47131         * lib/memcasecmp.h: Likewise.
47132         * lib/memchr.c: Likewise.
47133         * lib/memcmp.c: Likewise.
47134         * lib/memcoll.c: Likewise.
47135         * lib/memcoll.h: Likewise.
47136         * lib/memcpy.c: Likewise.
47137         * lib/memrchr.c: Likewise.
47138         * lib/mkancesdirs.c: Likewise.
47139         * lib/mkdir-p.c: Likewise.
47140         * lib/mkdir-p.h: Likewise.
47141         * lib/mkdir.c: Likewise.
47142         * lib/mkdirat.c: Likewise.
47143         * lib/mkdtemp.c: Likewise.
47144         * lib/mkstemp-safer.c: Likewise.
47145         * lib/mkstemp.c: Likewise.
47146         * lib/modechange.c: Likewise.
47147         * lib/modechange.h: Likewise.
47148         * lib/mountlist.c: Likewise.
47149         * lib/mountlist.h: Likewise.
47150         * lib/mpsort.c: Likewise.
47151         * lib/nanosleep.c: Likewise.
47152         * lib/obstack.c: Likewise.
47153         * lib/obstack.h: Likewise.
47154         * lib/open-safer.c: Likewise.
47155         * lib/open.c: Likewise.
47156         * lib/openat-die.c: Likewise.
47157         * lib/openat-priv.h: Likewise.
47158         * lib/openat-proc.c: Likewise.
47159         * lib/openat.c: Likewise.
47160         * lib/openat.h: Likewise.
47161         * lib/pagealign_alloc.c: Likewise.
47162         * lib/pagealign_alloc.h: Likewise.
47163         * lib/physmem.c: Likewise.
47164         * lib/physmem.h: Likewise.
47165         * lib/pipe-safer.c: Likewise.
47166         * lib/pipe.c: Likewise.
47167         * lib/pipe.h: Likewise.
47168         * lib/posixtm.c: Likewise.
47169         * lib/posixtm.h: Likewise.
47170         * lib/posixver.c: Likewise.
47171         * lib/printf-frexp.c: Likewise.
47172         * lib/printf-frexp.h: Likewise.
47173         * lib/printf-frexpl.c: Likewise.
47174         * lib/printf-frexpl.h: Likewise.
47175         * lib/printf.c: Likewise.
47176         * lib/progname.c: Likewise.
47177         * lib/progname.h: Likewise.
47178         * lib/progreloc.c: Likewise.
47179         * lib/putenv.c: Likewise.
47180         * lib/quote.c: Likewise.
47181         * lib/quote.h: Likewise.
47182         * lib/quotearg.c: Likewise.
47183         * lib/quotearg.h: Likewise.
47184         * lib/raise.c: Likewise.
47185         * lib/readline.c: Likewise.
47186         * lib/readline.h: Likewise.
47187         * lib/readlink.c: Likewise.
47188         * lib/readtokens.c: Likewise.
47189         * lib/readtokens.h: Likewise.
47190         * lib/readtokens0.c: Likewise.
47191         * lib/readtokens0.h: Likewise.
47192         * lib/readutmp.c: Likewise.
47193         * lib/readutmp.h: Likewise.
47194         * lib/realloc.c: Likewise.
47195         * lib/relocwrapper.c: Likewise.
47196         * lib/rename-dest-slash.c: Likewise.
47197         * lib/rename.c: Likewise.
47198         * lib/rmdir.c: Likewise.
47199         * lib/rpmatch.c: Likewise.
47200         * lib/safe-read.c: Likewise.
47201         * lib/safe-read.h: Likewise.
47202         * lib/safe-write.c: Likewise.
47203         * lib/safe-write.h: Likewise.
47204         * lib/same-inode.h: Likewise.
47205         * lib/same.c: Likewise.
47206         * lib/same.h: Likewise.
47207         * lib/save-cwd.c: Likewise.
47208         * lib/save-cwd.h: Likewise.
47209         * lib/savedir.c: Likewise.
47210         * lib/savedir.h: Likewise.
47211         * lib/savewd.c: Likewise.
47212         * lib/savewd.h: Likewise.
47213         * lib/search.in.h: Likewise.
47214         * lib/setenv.c: Likewise.
47215         * lib/setenv.h: Likewise.
47216         * lib/settime.c: Likewise.
47217         * lib/sh-quote.c: Likewise.
47218         * lib/sh-quote.h: Likewise.
47219         * lib/sig2str.c: Likewise.
47220         * lib/sig2str.h: Likewise.
47221         * lib/signal.in.h: Likewise.
47222         * lib/signbitd.c: Likewise.
47223         * lib/signbitf.c: Likewise.
47224         * lib/signbitl.c: Likewise.
47225         * lib/sigprocmask.c: Likewise.
47226         * lib/sincosl.c: Likewise.
47227         * lib/sleep.c: Likewise.
47228         * lib/sprintf.c: Likewise.
47229         * lib/sqrtl.c: Likewise.
47230         * lib/stat-time.h: Likewise.
47231         * lib/stdio--.h: Likewise.
47232         * lib/stdio-safer.h: Likewise.
47233         * lib/stdlib--.h: Likewise.
47234         * lib/stdlib-safer.h: Likewise.
47235         * lib/stdlib.in.h: Likewise.
47236         * lib/stpcpy.c: Likewise.
47237         * lib/stpncpy.c: Likewise.
47238         * lib/strchrnul.c: Likewise.
47239         * lib/strcspn.c: Likewise.
47240         * lib/strerror.c: Likewise.
47241         * lib/strftime.c: Likewise.
47242         * lib/strftime.h: Likewise.
47243         * lib/striconveh.c: Likewise.
47244         * lib/striconveh.h: Likewise.
47245         * lib/striconveha.c: Likewise.
47246         * lib/striconveha.h: Likewise.
47247         * lib/stripslash.c: Likewise.
47248         * lib/strnlen1.c: Likewise.
47249         * lib/strnlen1.h: Likewise.
47250         * lib/strtod.c: Likewise.
47251         * lib/strtoimax.c: Likewise.
47252         * lib/strtok_r.c: Likewise.
47253         * lib/strtol.c: Likewise.
47254         * lib/strtoll.c: Likewise.
47255         * lib/strtoul.c: Likewise.
47256         * lib/strtoull.c: Likewise.
47257         * lib/sysexits.in.h: Likewise.
47258         * lib/tempname.c: Likewise.
47259         * lib/tempname.h: Likewise.
47260         * lib/timespec.h: Likewise.
47261         * lib/tls.c: Likewise.
47262         * lib/tls.h: Likewise.
47263         * lib/tmpdir.c: Likewise.
47264         * lib/tmpdir.h: Likewise.
47265         * lib/tmpfile-safer.c: Likewise.
47266         * lib/tmpfile.c: Likewise.
47267         * lib/trigl.c: Likewise.
47268         * lib/trigl.h: Likewise.
47269         * lib/trim.c: Likewise.
47270         * lib/trim.h: Likewise.
47271         * lib/trunc.c: Likewise.
47272         * lib/truncf.c: Likewise.
47273         * lib/truncl.c: Likewise.
47274         * lib/tsearch.c: Likewise.
47275         * lib/unicodeio.c: Likewise.
47276         * lib/unicodeio.h: Likewise.
47277         * lib/unistd--.h: Likewise.
47278         * lib/unistd-safer.h: Likewise.
47279         * lib/unistdio/ulc-fprintf.c: Likewise.
47280         * lib/unistdio/ulc-vfprintf.c: Likewise.
47281         * lib/unlinkdir.c: Likewise.
47282         * lib/unlinkdir.h: Likewise.
47283         * lib/unlocked-io.h: Likewise.
47284         * lib/unsetenv.c: Likewise.
47285         * lib/userspec.c: Likewise.
47286         * lib/utime.c: Likewise.
47287         * lib/utimecmp.c: Likewise.
47288         * lib/utimecmp.h: Likewise.
47289         * lib/utimens.c: Likewise.
47290         * lib/verify.h: Likewise.
47291         * lib/verror.c: Likewise.
47292         * lib/verror.h: Likewise.
47293         * lib/version-etc-fsf.c: Likewise.
47294         * lib/version-etc.c: Likewise.
47295         * lib/version-etc.h: Likewise.
47296         * lib/vfprintf.c: Likewise.
47297         * lib/vprintf.c: Likewise.
47298         * lib/vsprintf.c: Likewise.
47299         * lib/w32spawn.h: Likewise.
47300         * lib/wait-process.c: Likewise.
47301         * lib/wait-process.h: Likewise.
47302         * lib/wcwidth.c: Likewise.
47303         * lib/write-any-file.c: Likewise.
47304         * lib/xalloc-die.c: Likewise.
47305         * lib/xalloc.h: Likewise.
47306         * lib/xasprintf.c: Likewise.
47307         * lib/xgetcwd.c: Likewise.
47308         * lib/xgetcwd.h: Likewise.
47309         * lib/xgetdomainname.c: Likewise.
47310         * lib/xgetdomainname.h: Likewise.
47311         * lib/xgethostname.c: Likewise.
47312         * lib/xmalloc.c: Likewise.
47313         * lib/xmalloca.c: Likewise.
47314         * lib/xmalloca.h: Likewise.
47315         * lib/xmemcoll.c: Likewise.
47316         * lib/xnanosleep.c: Likewise.
47317         * lib/xreadlink.c: Likewise.
47318         * lib/xreadlink.h: Likewise.
47319         * lib/xsetenv.c: Likewise.
47320         * lib/xsetenv.h: Likewise.
47321         * lib/xstriconv.c: Likewise.
47322         * lib/xstriconv.h: Likewise.
47323         * lib/xstrndup.c: Likewise.
47324         * lib/xstrndup.h: Likewise.
47325         * lib/xstrtod.c: Likewise.
47326         * lib/xstrtod.h: Likewise.
47327         * lib/xstrtol-error.c: Likewise.
47328         * lib/xstrtol.c: Likewise.
47329         * lib/xstrtol.h: Likewise.
47330         * lib/xtime.h: Likewise.
47331         * lib/xvasprintf.c: Likewise.
47332         * lib/xvasprintf.h: Likewise.
47333         * lib/yesno.c: Likewise.
47334         * lib/yesno.h: Likewise.
47335         * posix-modules: Likewise.
47336         * tests/test-alloca-opt.c: Likewise.
47337         * tests/test-arcfour.c: Likewise.
47338         * tests/test-arctwo.c: Likewise.
47339         * tests/test-argmatch.c: Likewise.
47340         * tests/test-argp-2.sh: Likewise.
47341         * tests/test-argp.c: Likewise.
47342         * tests/test-arpa_inet.c: Likewise.
47343         * tests/test-array_list.c: Likewise.
47344         * tests/test-array_oset.c: Likewise.
47345         * tests/test-atexit.c: Likewise.
47346         * tests/test-avltree_list.c: Likewise.
47347         * tests/test-avltree_oset.c: Likewise.
47348         * tests/test-avltreehash_list.c: Likewise.
47349         * tests/test-base64.c: Likewise.
47350         * tests/test-binary-io.c: Likewise.
47351         * tests/test-byteswap.c: Likewise.
47352         * tests/test-c-ctype.c: Likewise.
47353         * tests/test-c-strcasecmp.c: Likewise.
47354         * tests/test-c-strcasestr.c: Likewise.
47355         * tests/test-c-strncasecmp.c: Likewise.
47356         * tests/test-c-strstr.c: Likewise.
47357         * tests/test-canonicalize-lgpl.c: Likewise.
47358         * tests/test-canonicalize.c: Likewise.
47359         * tests/test-carray_list.c: Likewise.
47360         * tests/test-ceilf.c: Likewise.
47361         * tests/test-ceill.c: Likewise.
47362         * tests/test-count-one-bits.c: Likewise.
47363         * tests/test-crc.c: Likewise.
47364         * tests/test-dirname.c: Likewise.
47365         * tests/test-fbufmode.c: Likewise.
47366         * tests/test-fcntl.c: Likewise.
47367         * tests/test-fflush.c: Likewise.
47368         * tests/test-floorf.c: Likewise.
47369         * tests/test-floorl.c: Likewise.
47370         * tests/test-fopen.c: Likewise.
47371         * tests/test-fprintf-posix.c: Likewise.
47372         * tests/test-fprintf-posix.h: Likewise.
47373         * tests/test-fpurge.c: Likewise.
47374         * tests/test-freadable.c: Likewise.
47375         * tests/test-freadahead.c: Likewise.
47376         * tests/test-freading.c: Likewise.
47377         * tests/test-freopen.c: Likewise.
47378         * tests/test-frexp.c: Likewise.
47379         * tests/test-frexpl.c: Likewise.
47380         * tests/test-fseek.c: Likewise.
47381         * tests/test-fseeko.c: Likewise.
47382         * tests/test-fseterr.c: Likewise.
47383         * tests/test-fstrcmp.c: Likewise.
47384         * tests/test-ftell.c: Likewise.
47385         * tests/test-ftello.c: Likewise.
47386         * tests/test-fwritable.c: Likewise.
47387         * tests/test-fwriting.c: Likewise.
47388         * tests/test-getaddrinfo.c: Likewise.
47389         * tests/test-getpass.c: Likewise.
47390         * tests/test-gettimeofday.c: Likewise.
47391         * tests/test-hmac-md5.c: Likewise.
47392         * tests/test-hmac-sha1.c: Likewise.
47393         * tests/test-iconv.c: Likewise.
47394         * tests/test-iconvme.c: Likewise.
47395         * tests/test-inttypes.c: Likewise.
47396         * tests/test-isnan.c: Likewise.
47397         * tests/test-isnanf.c: Likewise.
47398         * tests/test-isnanl-nolibm.c: Likewise.
47399         * tests/test-isnanl.c: Likewise.
47400         * tests/test-isnanl.h: Likewise.
47401         * tests/test-ldexpl.c: Likewise.
47402         * tests/test-linked_list.c: Likewise.
47403         * tests/test-linkedhash_list.c: Likewise.
47404         * tests/test-locale.c: Likewise.
47405         * tests/test-localename.c: Likewise.
47406         * tests/test-lock.c: Likewise.
47407         * tests/test-lseek.c: Likewise.
47408         * tests/test-malloca.c: Likewise.
47409         * tests/test-math.c: Likewise.
47410         * tests/test-mbscasecmp.c: Likewise.
47411         * tests/test-mbscasestr1.c: Likewise.
47412         * tests/test-mbscasestr2.c: Likewise.
47413         * tests/test-mbscasestr3.c: Likewise.
47414         * tests/test-mbscasestr4.c: Likewise.
47415         * tests/test-mbschr.c: Likewise.
47416         * tests/test-mbscspn.c: Likewise.
47417         * tests/test-mbsncasecmp.c: Likewise.
47418         * tests/test-mbspbrk.c: Likewise.
47419         * tests/test-mbspcasecmp.c: Likewise.
47420         * tests/test-mbsrchr.c: Likewise.
47421         * tests/test-mbsspn.c: Likewise.
47422         * tests/test-mbsstr1.c: Likewise.
47423         * tests/test-mbsstr2.c: Likewise.
47424         * tests/test-mbsstr3.c: Likewise.
47425         * tests/test-md5.c: Likewise.
47426         * tests/test-memmem.c: Likewise.
47427         * tests/test-netinet_in.c: Likewise.
47428         * tests/test-open.c: Likewise.
47429         * tests/test-printf-frexp.c: Likewise.
47430         * tests/test-printf-frexpl.c: Likewise.
47431         * tests/test-printf-posix.c: Likewise.
47432         * tests/test-printf-posix.h: Likewise.
47433         * tests/test-rbtree_list.c: Likewise.
47434         * tests/test-rbtree_oset.c: Likewise.
47435         * tests/test-rbtreehash_list.c: Likewise.
47436         * tests/test-read-file.c: Likewise.
47437         * tests/test-rijndael.c: Likewise.
47438         * tests/test-search.c: Likewise.
47439         * tests/test-signbit.c: Likewise.
47440         * tests/test-sleep.c: Likewise.
47441         * tests/test-snprintf-posix.c: Likewise.
47442         * tests/test-snprintf-posix.h: Likewise.
47443         * tests/test-snprintf.c: Likewise.
47444         * tests/test-sprintf-posix.c: Likewise.
47445         * tests/test-sprintf-posix.h: Likewise.
47446         * tests/test-stat-time.c: Likewise.
47447         * tests/test-stdbool.c: Likewise.
47448         * tests/test-stdint.c: Likewise.
47449         * tests/test-stdio.c: Likewise.
47450         * tests/test-stdlib.c: Likewise.
47451         * tests/test-stpncpy.c: Likewise.
47452         * tests/test-strcasestr.c: Likewise.
47453         * tests/test-striconv.c: Likewise.
47454         * tests/test-striconveh.c: Likewise.
47455         * tests/test-striconveha.c: Likewise.
47456         * tests/test-string.c: Likewise.
47457         * tests/test-sys_select.c: Likewise.
47458         * tests/test-sys_socket.c: Likewise.
47459         * tests/test-sys_stat.c: Likewise.
47460         * tests/test-sys_time.c: Likewise.
47461         * tests/test-sysexits.c: Likewise.
47462         * tests/test-time.c: Likewise.
47463         * tests/test-tls.c: Likewise.
47464         * tests/test-trunc.c: Likewise.
47465         * tests/test-truncf.c: Likewise.
47466         * tests/test-truncl.c: Likewise.
47467         * tests/test-unistd.c: Likewise.
47468         * tests/test-vasnprintf-posix.c: Likewise.
47469         * tests/test-vasnprintf-posix2.c: Likewise.
47470         * tests/test-vasnprintf.c: Likewise.
47471         * tests/test-vasprintf-posix.c: Likewise.
47472         * tests/test-vasprintf.c: Likewise.
47473         * tests/test-verify.c: Likewise.
47474         * tests/test-vfprintf-posix.c: Likewise.
47475         * tests/test-vprintf-posix.c: Likewise.
47476         * tests/test-vsnprintf-posix.c: Likewise.
47477         * tests/test-vsnprintf.c: Likewise.
47478         * tests/test-vsprintf-posix.c: Likewise.
47479         * tests/test-wchar.c: Likewise.
47480         * tests/test-wctype.c: Likewise.
47481         * tests/test-wcwidth.c: Likewise.
47482         * tests/test-xstrtol.c: Likewise.
47483         * tests/test-xvasprintf.c: Likewise.
47484         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47485         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47486         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47487         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47488         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47489         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47490         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47491         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47492         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47493         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47494         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47495         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47496         * tests/uniname/test-uninames.c: Likewise.
47497         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47498         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47499         * tests/unistdio/test-u16-printf1.h: Likewise.
47500         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47501         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47502         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47503         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47504         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47505         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47506         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47507         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47508         * tests/unistdio/test-u32-printf1.h: Likewise.
47509         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47510         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47511         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47512         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47513         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47514         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47515         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47516         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47517         * tests/unistdio/test-u8-printf1.h: Likewise.
47518         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47519         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47520         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47521         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47522         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47523         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47524         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47525         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47526         * tests/unistdio/test-ulc-printf1.h: Likewise.
47527         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47528         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47529         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47530         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47531         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47532         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47533         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47534         * tests/uniwidth/test-u16-width.c: Likewise.
47535         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47536         * tests/uniwidth/test-u32-width.c: Likewise.
47537         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47538         * tests/uniwidth/test-u8-width.c: Likewise.
47539         * tests/uniwidth/test-uc_width.c: Likewise.
47540         * config/srclist-update: Likewise.
47541         (fixlicense): Update to GPLv3+.
47542
47543         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47544         * tests/test-tsearch.c: Change copyright notice.
47545
47546         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47547         * lib/c-strcaseeq.h: Change copyright notice.
47548         * lib/streq.h: Likewise.
47549         * lib/uniconv.h: Likewise.
47550         * lib/uniconv/u-conv-from-enc.h: Likewise.
47551         * lib/uniconv/u-conv-to-enc.h: Likewise.
47552         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47553         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47554         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47555         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47556         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47557         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47558         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47559         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47560         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47561         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47562         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47563         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47564         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47565         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47566         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47567         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47568         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47569         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47570         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47571         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47572         * lib/uniname.h: Likewise.
47573         * lib/uniname/uniname.c: Likewise.
47574         * lib/unistdio.h: Likewise.
47575         * lib/unistdio/u-asnprintf.h: Likewise.
47576         * lib/unistdio/u-asprintf.h: Likewise.
47577         * lib/unistdio/u-printf-args.c: Likewise.
47578         * lib/unistdio/u-printf-args.h: Likewise.
47579         * lib/unistdio/u-printf-parse.h: Likewise.
47580         * lib/unistdio/u-snprintf.h: Likewise.
47581         * lib/unistdio/u-sprintf.h: Likewise.
47582         * lib/unistdio/u-vasprintf.h: Likewise.
47583         * lib/unistdio/u-vsnprintf.h: Likewise.
47584         * lib/unistdio/u-vsprintf.h: Likewise.
47585         * lib/unistdio/u16-asnprintf.c: Likewise.
47586         * lib/unistdio/u16-asprintf.c: Likewise.
47587         * lib/unistdio/u16-printf-parse.c: Likewise.
47588         * lib/unistdio/u16-snprintf.c: Likewise.
47589         * lib/unistdio/u16-sprintf.c: Likewise.
47590         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47591         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47592         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47593         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47594         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47595         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47596         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47597         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47598         * lib/unistdio/u16-vasnprintf.c: Likewise.
47599         * lib/unistdio/u16-vasprintf.c: Likewise.
47600         * lib/unistdio/u16-vsnprintf.c: Likewise.
47601         * lib/unistdio/u16-vsprintf.c: Likewise.
47602         * lib/unistdio/u32-asnprintf.c: Likewise.
47603         * lib/unistdio/u32-asprintf.c: Likewise.
47604         * lib/unistdio/u32-printf-parse.c: Likewise.
47605         * lib/unistdio/u32-snprintf.c: Likewise.
47606         * lib/unistdio/u32-sprintf.c: Likewise.
47607         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47608         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47609         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47610         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47611         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47612         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47613         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47614         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47615         * lib/unistdio/u32-vasnprintf.c: Likewise.
47616         * lib/unistdio/u32-vasprintf.c: Likewise.
47617         * lib/unistdio/u32-vsnprintf.c: Likewise.
47618         * lib/unistdio/u32-vsprintf.c: Likewise.
47619         * lib/unistdio/u8-asnprintf.c: Likewise.
47620         * lib/unistdio/u8-asprintf.c: Likewise.
47621         * lib/unistdio/u8-printf-parse.c: Likewise.
47622         * lib/unistdio/u8-snprintf.c: Likewise.
47623         * lib/unistdio/u8-sprintf.c: Likewise.
47624         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47625         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47626         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47627         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47628         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47629         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47630         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47631         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47632         * lib/unistdio/u8-vasnprintf.c: Likewise.
47633         * lib/unistdio/u8-vasprintf.c: Likewise.
47634         * lib/unistdio/u8-vsnprintf.c: Likewise.
47635         * lib/unistdio/u8-vsprintf.c: Likewise.
47636         * lib/unistdio/ulc-asnprintf.c: Likewise.
47637         * lib/unistdio/ulc-asprintf.c: Likewise.
47638         * lib/unistdio/ulc-printf-parse.c: Likewise.
47639         * lib/unistdio/ulc-snprintf.c: Likewise.
47640         * lib/unistdio/ulc-sprintf.c: Likewise.
47641         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47642         * lib/unistdio/ulc-vasprintf.c: Likewise.
47643         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47644         * lib/unistdio/ulc-vsprintf.c: Likewise.
47645         * lib/unistr.h: Likewise.
47646         * lib/unistr/u-cpy-alloc.h: Likewise.
47647         * lib/unistr/u-cpy.h: Likewise.
47648         * lib/unistr/u-endswith.h: Likewise.
47649         * lib/unistr/u-move.h: Likewise.
47650         * lib/unistr/u-set.h: Likewise.
47651         * lib/unistr/u-startswith.h: Likewise.
47652         * lib/unistr/u-stpcpy.h: Likewise.
47653         * lib/unistr/u-stpncpy.h: Likewise.
47654         * lib/unistr/u-strcat.h: Likewise.
47655         * lib/unistr/u-strcpy.h: Likewise.
47656         * lib/unistr/u-strcspn.h: Likewise.
47657         * lib/unistr/u-strdup.h: Likewise.
47658         * lib/unistr/u-strlen.h: Likewise.
47659         * lib/unistr/u-strncat.h: Likewise.
47660         * lib/unistr/u-strncpy.h: Likewise.
47661         * lib/unistr/u-strnlen.h: Likewise.
47662         * lib/unistr/u-strpbrk.h: Likewise.
47663         * lib/unistr/u-strspn.h: Likewise.
47664         * lib/unistr/u-strstr.h: Likewise.
47665         * lib/unistr/u-strtok.h: Likewise.
47666         * lib/unistr/u16-check.c: Likewise.
47667         * lib/unistr/u16-chr.c: Likewise.
47668         * lib/unistr/u16-cmp.c: Likewise.
47669         * lib/unistr/u16-cpy-alloc.c: Likewise.
47670         * lib/unistr/u16-cpy.c: Likewise.
47671         * lib/unistr/u16-endswith.c: Likewise.
47672         * lib/unistr/u16-mblen.c: Likewise.
47673         * lib/unistr/u16-mbsnlen.c: Likewise.
47674         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47675         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47676         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47677         * lib/unistr/u16-mbtouc.c: Likewise.
47678         * lib/unistr/u16-mbtoucr.c: Likewise.
47679         * lib/unistr/u16-move.c: Likewise.
47680         * lib/unistr/u16-next.c: Likewise.
47681         * lib/unistr/u16-prev.c: Likewise.
47682         * lib/unistr/u16-set.c: Likewise.
47683         * lib/unistr/u16-startswith.c: Likewise.
47684         * lib/unistr/u16-stpcpy.c: Likewise.
47685         * lib/unistr/u16-stpncpy.c: Likewise.
47686         * lib/unistr/u16-strcat.c: Likewise.
47687         * lib/unistr/u16-strchr.c: Likewise.
47688         * lib/unistr/u16-strcmp.c: Likewise.
47689         * lib/unistr/u16-strcpy.c: Likewise.
47690         * lib/unistr/u16-strcspn.c: Likewise.
47691         * lib/unistr/u16-strdup.c: Likewise.
47692         * lib/unistr/u16-strlen.c: Likewise.
47693         * lib/unistr/u16-strmblen.c: Likewise.
47694         * lib/unistr/u16-strmbtouc.c: Likewise.
47695         * lib/unistr/u16-strncat.c: Likewise.
47696         * lib/unistr/u16-strncmp.c: Likewise.
47697         * lib/unistr/u16-strncpy.c: Likewise.
47698         * lib/unistr/u16-strnlen.c: Likewise.
47699         * lib/unistr/u16-strpbrk.c: Likewise.
47700         * lib/unistr/u16-strrchr.c: Likewise.
47701         * lib/unistr/u16-strspn.c: Likewise.
47702         * lib/unistr/u16-strstr.c: Likewise.
47703         * lib/unistr/u16-strtok.c: Likewise.
47704         * lib/unistr/u16-to-u32.c: Likewise.
47705         * lib/unistr/u16-to-u8.c: Likewise.
47706         * lib/unistr/u16-uctomb-aux.c: Likewise.
47707         * lib/unistr/u16-uctomb.c: Likewise.
47708         * lib/unistr/u32-check.c: Likewise.
47709         * lib/unistr/u32-chr.c: Likewise.
47710         * lib/unistr/u32-cmp.c: Likewise.
47711         * lib/unistr/u32-cpy-alloc.c: Likewise.
47712         * lib/unistr/u32-cpy.c: Likewise.
47713         * lib/unistr/u32-endswith.c: Likewise.
47714         * lib/unistr/u32-mblen.c: Likewise.
47715         * lib/unistr/u32-mbsnlen.c: Likewise.
47716         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47717         * lib/unistr/u32-mbtouc.c: Likewise.
47718         * lib/unistr/u32-mbtoucr.c: Likewise.
47719         * lib/unistr/u32-move.c: Likewise.
47720         * lib/unistr/u32-next.c: Likewise.
47721         * lib/unistr/u32-prev.c: Likewise.
47722         * lib/unistr/u32-set.c: Likewise.
47723         * lib/unistr/u32-startswith.c: Likewise.
47724         * lib/unistr/u32-stpcpy.c: Likewise.
47725         * lib/unistr/u32-stpncpy.c: Likewise.
47726         * lib/unistr/u32-strcat.c: Likewise.
47727         * lib/unistr/u32-strchr.c: Likewise.
47728         * lib/unistr/u32-strcmp.c: Likewise.
47729         * lib/unistr/u32-strcpy.c: Likewise.
47730         * lib/unistr/u32-strcspn.c: Likewise.
47731         * lib/unistr/u32-strdup.c: Likewise.
47732         * lib/unistr/u32-strlen.c: Likewise.
47733         * lib/unistr/u32-strmblen.c: Likewise.
47734         * lib/unistr/u32-strmbtouc.c: Likewise.
47735         * lib/unistr/u32-strncat.c: Likewise.
47736         * lib/unistr/u32-strncmp.c: Likewise.
47737         * lib/unistr/u32-strncpy.c: Likewise.
47738         * lib/unistr/u32-strnlen.c: Likewise.
47739         * lib/unistr/u32-strpbrk.c: Likewise.
47740         * lib/unistr/u32-strrchr.c: Likewise.
47741         * lib/unistr/u32-strspn.c: Likewise.
47742         * lib/unistr/u32-strstr.c: Likewise.
47743         * lib/unistr/u32-strtok.c: Likewise.
47744         * lib/unistr/u32-to-u16.c: Likewise.
47745         * lib/unistr/u32-to-u8.c: Likewise.
47746         * lib/unistr/u32-uctomb.c: Likewise.
47747         * lib/unistr/u8-check.c: Likewise.
47748         * lib/unistr/u8-chr.c: Likewise.
47749         * lib/unistr/u8-cmp.c: Likewise.
47750         * lib/unistr/u8-cpy-alloc.c: Likewise.
47751         * lib/unistr/u8-cpy.c: Likewise.
47752         * lib/unistr/u8-endswith.c: Likewise.
47753         * lib/unistr/u8-mblen.c: Likewise.
47754         * lib/unistr/u8-mbsnlen.c: Likewise.
47755         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47756         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47757         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47758         * lib/unistr/u8-mbtouc.c: Likewise.
47759         * lib/unistr/u8-mbtoucr.c: Likewise.
47760         * lib/unistr/u8-move.c: Likewise.
47761         * lib/unistr/u8-next.c: Likewise.
47762         * lib/unistr/u8-prev.c: Likewise.
47763         * lib/unistr/u8-set.c: Likewise.
47764         * lib/unistr/u8-startswith.c: Likewise.
47765         * lib/unistr/u8-stpcpy.c: Likewise.
47766         * lib/unistr/u8-stpncpy.c: Likewise.
47767         * lib/unistr/u8-strcat.c: Likewise.
47768         * lib/unistr/u8-strchr.c: Likewise.
47769         * lib/unistr/u8-strcmp.c: Likewise.
47770         * lib/unistr/u8-strcpy.c: Likewise.
47771         * lib/unistr/u8-strcspn.c: Likewise.
47772         * lib/unistr/u8-strdup.c: Likewise.
47773         * lib/unistr/u8-strlen.c: Likewise.
47774         * lib/unistr/u8-strmblen.c: Likewise.
47775         * lib/unistr/u8-strmbtouc.c: Likewise.
47776         * lib/unistr/u8-strncat.c: Likewise.
47777         * lib/unistr/u8-strncmp.c: Likewise.
47778         * lib/unistr/u8-strncpy.c: Likewise.
47779         * lib/unistr/u8-strnlen.c: Likewise.
47780         * lib/unistr/u8-strpbrk.c: Likewise.
47781         * lib/unistr/u8-strrchr.c: Likewise.
47782         * lib/unistr/u8-strspn.c: Likewise.
47783         * lib/unistr/u8-strstr.c: Likewise.
47784         * lib/unistr/u8-strtok.c: Likewise.
47785         * lib/unistr/u8-to-u16.c: Likewise.
47786         * lib/unistr/u8-to-u32.c: Likewise.
47787         * lib/unistr/u8-uctomb-aux.c: Likewise.
47788         * lib/unistr/u8-uctomb.c: Likewise.
47789         * lib/unitypes.h: Likewise.
47790         * lib/uniwidth.h: Likewise.
47791         * lib/uniwidth/cjk.h: Likewise.
47792         * lib/uniwidth/u16-strwidth.c: Likewise.
47793         * lib/uniwidth/u16-width.c: Likewise.
47794         * lib/uniwidth/u32-strwidth.c: Likewise.
47795         * lib/uniwidth/u32-width.c: Likewise.
47796         * lib/uniwidth/u8-strwidth.c: Likewise.
47797         * lib/uniwidth/u8-width.c: Likewise.
47798         * lib/uniwidth/width.c: Likewise.
47799
47800 2007-10-07  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47803         The file is still under LGPL (see modules/inttypes).
47804
47805 2007-10-06  Bruno Haible  <bruno@clisp.org>
47806
47807         * modules/trunc (Dependencies): Add 'extensions'.
47808         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47809         Reported by Ben Pfaff <blp@gnu.org>.
47810
47811 2007-10-06  Bruno Haible  <bruno@clisp.org>
47812
47813         * modules/freopen-tests: New file.
47814         * tests/test-freopen.c: New file.
47815
47816         * modules/fopen-tests: New file.
47817         * tests/test-fopen.c: New file.
47818
47819         * modules/fopen: New file.
47820         * lib/fopen.c: New file.
47821         * m4/fopen.m4: New file.
47822         * modules/freopen: New file.
47823         * lib/freopen.c: New file.
47824         * m4/freopen.m4: New file.
47825         * lib/stdio.in.h (fopen, freopen): New declarations.
47826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47827         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47828         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47829         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47830         * doc/functions/fopen.texi: Mention the 'fopen' module.
47831         * doc/functions/freopen.texi: Mention the 'freopen' module.
47832
47833 2007-10-06  Bruno Haible  <bruno@clisp.org>
47834
47835         * modules/open-tests: New file.
47836         * tests/test-open.c: New file.
47837
47838         * modules/open: New file.
47839         * lib/open.c: New file.
47840         * m4/open.m4: New file.
47841         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47842         lib/open.c does.
47843         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47844         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47845         macros.
47846         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47847         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47848         REPLACE_OPEN.
47849         * doc/functions/open.texi: Mention the 'open' module.
47850
47851 2007-10-04  Bruno Haible  <bruno@clisp.org>
47852
47853         * modules/ceill-tests: New file.
47854         * tests/test-ceill.c: New file.
47855
47856         * modules/ceill: New file.
47857         * lib/ceill.c: Replace entire file.
47858         * m4/ceill.m4: New file.
47859         * lib/math.in.h (ceill): Replace declaration.
47860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47861         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47862         * doc/functions/ceill.texi: Mention the 'ceill' module.
47863         * modules/mathl (Files): Remove lib/ceill.c.
47864         (Depends-on): Add ceill.
47865
47866 2007-10-04  Bruno Haible  <bruno@clisp.org>
47867
47868         * modules/ceilf-tests: New file.
47869         * tests/test-ceilf.c: New file.
47870
47871         * modules/ceilf: New file.
47872         * lib/ceil.c: New file.
47873         * lib/ceilf.c: New file.
47874         * m4/ceilf.m4: New file.
47875         * lib/math.in.h (ceilf): New declaration.
47876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47877         HAVE_DECL_CEILF.
47878         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47879         HAVE_DECL_CEILF.
47880         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47881
47882 2007-10-04  Bruno Haible  <bruno@clisp.org>
47883
47884         * modules/floorl-tests: New file.
47885         * tests/test-floorl.c: New file.
47886
47887         * modules/floorl: New file.
47888         * lib/floorl.c: Replace entire file.
47889         * m4/floorl.m4: New file.
47890         * lib/math.in.h (floorl): Replace declaration.
47891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47892         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47893         * doc/functions/floorl.texi: Mention the 'floorl' module.
47894         * modules/mathl (Files): Remove lib/floorl.c.
47895         (Depends-on): Add floorl.
47896
47897 2007-10-04  Bruno Haible  <bruno@clisp.org>
47898
47899         * modules/floorf-tests: New file.
47900         * tests/test-floorf.c: New file.
47901
47902         * modules/floorf: New file.
47903         * lib/floor.c: New file.
47904         * lib/floorf.c: New file.
47905         * m4/floorf.m4: New file.
47906         * lib/math.in.h (floorf): New declaration.
47907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47908         HAVE_DECL_FLOORF.
47909         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47910         HAVE_DECL_FLOORF.
47911         * doc/functions/floorf.texi: Mention the 'floorf' module.
47912
47913 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47914             Bruno Haible  <bruno@clisp.org>
47915
47916         Advertise for the Git server instead of the CVS server.
47917         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47918         repository instead of the CVS one.
47919         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47920         about all VCS systems generically.
47921         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47922
47923 2007-10-04  Bruno Haible  <bruno@clisp.org>
47924
47925         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47926         means.
47927         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47928
47929 2007-10-04  Bruno Haible  <bruno@clisp.org>
47930
47931         * modules/truncl-tests: New file.
47932         * tests/test-truncl.c: New file.
47933
47934         * modules/truncl: New file.
47935         * lib/truncl.c: New file.
47936         * m4/truncl.m4: New file.
47937         * lib/math.in.h (truncl): New declaration.
47938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47939         HAVE_DECL_TRUNCL.
47940         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47941         HAVE_DECL_TRUNCL.
47942         * doc/functions/truncl.texi: Mention the 'truncl' module.
47943
47944 2007-10-04  Bruno Haible  <bruno@clisp.org>
47945
47946         * modules/truncf-tests: New file.
47947         * tests/test-truncf.c: New file.
47948
47949         * modules/truncf: New file.
47950         * lib/trunc.c: Make paramerizable through USE_* macros.
47951         * lib/truncf.c: New file.
47952         * m4/truncf.m4: New file.
47953         * lib/math.in.h (truncf): New declaration.
47954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47955         HAVE_DECL_TRUNCF.
47956         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47957         HAVE_DECL_TRUNCF.
47958         * doc/functions/truncf.texi: Mention the 'truncf' module.
47959
47960 2007-10-03  Bruno Haible  <bruno@clisp.org>
47961
47962         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47963         augmentation also for tests modules.
47964         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47965         * modules/atexit-tests (Makefile.am): Likewise.
47966         * modules/binary-io-tests (Makefile.am): Likewise.
47967         * modules/c-strcase-tests (Makefile.am): Likewise.
47968         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47969         * modules/canonicalize-tests (Makefile.am): Likewise.
47970         * modules/closein-tests (Makefile.am): Likewise.
47971         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47972         * modules/freadahead-tests (Makefile.am): Likewise.
47973         * modules/fseek-tests (Makefile.am): Likewise.
47974         * modules/fseeko-tests (Makefile.am): Likewise.
47975         * modules/ftell-tests (Makefile.am): Likewise.
47976         * modules/ftello-tests (Makefile.am): Likewise.
47977         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47978         * modules/isnanl-tests (Makefile.am): Likewise.
47979         * modules/lseek-tests (Makefile.am): Likewise.
47980         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47981         * modules/mbscasestr-tests (Makefile.am): Likewise.
47982         * modules/mbschr-tests (Makefile.am): Likewise.
47983         * modules/mbscspn-tests (Makefile.am): Likewise.
47984         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47985         * modules/mbspbrk-tests (Makefile.am): Likewise.
47986         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47987         * modules/mbsrchr-tests (Makefile.am): Likewise.
47988         * modules/mbsspn-tests (Makefile.am): Likewise.
47989         * modules/mbsstr-tests (Makefile.am): Likewise.
47990         * modules/printf-posix-tests (Makefile.am): Likewise.
47991         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47992         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47993         * modules/tsearch-tests (Makefile.am): Likewise.
47994         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47995         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47996         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47997         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47998         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47999         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48000         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48001         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48002         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48003         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48004         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48005         * modules/xstrtol-tests (Makefile.am): Likewise.
48006         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48007         * modules/yesno-tests (Makefile.am): Likewise.
48008
48009 2007-10-03  Bruno Haible  <bruno@clisp.org>
48010
48011         * modules/trunc-tests: New file.
48012         * tests/test-trunc.c: New file.
48013
48014         * modules/trunc: New file.
48015         * lib/trunc.c: New file.
48016         * m4/trunc.m4: New file.
48017         * lib/math.in.h (trunc): New declaration.
48018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48019         HAVE_DECL_TRUNC.
48020         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48021         HAVE_DECL_TRUNC.
48022         * doc/functions/trunc.texi: Mention the 'trunc' module.
48023
48024 2007-10-03  Bruno Haible  <bruno@clisp.org>
48025
48026         * tests/test-fpending.c: New file, mostly copied
48027         from coreutils/lib/t-fpending.c.
48028         * modules/fpending-tests: New file.
48029
48030 2007-10-03  Bruno Haible  <bruno@clisp.org>
48031
48032         Port the stdio extensions to QNX (untested).
48033         * lib/fseterr.c (fseterr): Add support for QNX.
48034         * lib/fbufmode.c (fbufmode): Likewise.
48035         * lib/freadable.c (freadable): Likewise.
48036         * lib/fwritable.c (fwritable): Likewise.
48037         * lib/freading.c (freading): Likewise.
48038         * lib/fwriting.c (fwriting): Likewise.
48039         * lib/freadahead.c (freadahed): Likewise.
48040         * lib/fpurge.c (fpurge): Likewise.
48041         * lib/fseeko.c (rpl_fseeko): Likewise.
48042
48043 2007-10-03  Bruno Haible  <bruno@clisp.org>
48044             Jim Meyering  <jim@meyering.net>
48045             Eric Blake  <ebb9@byu.net>
48046
48047         * doc/relocatable.texi: Use @command instead of @program.
48048
48049 2007-10-02  Jim Meyering  <jim@meyering.net>
48050
48051         Perform one more "_.h" -> ".in.h" substitution.
48052         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48053         instead of unistd_.h here, too.
48054
48055 2007-10-01  Bruno Haible  <bruno@clisp.org>
48056
48057         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48058         Needed for the alloca-opt module.
48059
48060 2007-09-30  Bruno Haible  <bruno@clisp.org>
48061
48062         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48063         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48064         alloca_.h.
48065         * lib/argz.in.h: Renamed from lib/argz_.h.
48066         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48067         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48068         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48069         byteswap_.h.
48070         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48071         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48072         dirent_.h.
48073         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48074         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48075         fcntl_.h.
48076         * lib/float.in.h: Renamed from lib/float_.h.
48077         * modules/float (Files, Makefile.am): Use float.in.h instead of
48078         float_.h.
48079         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48080         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48081         fnmatch_.h.
48082         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48083         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48084         getopt_.h.
48085         * lib/glob.in.h: Renamed from lib/glob_.h.
48086         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48087         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48088         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48089         iconv_.h.
48090         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48091         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48092         inttypes_.h.
48093         * lib/locale.in.h: Renamed from lib/locale_.h.
48094         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48095         locale_.h.
48096         * lib/math.in.h: Renamed from lib/math_.h.
48097         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48098         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48099         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48100         of netinet_in_.h. Add dependency.
48101         * lib/poll.in.h: Renamed from lib/poll_.h.
48102         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48103         * lib/search.in.h: Renamed from lib/search_.h.
48104         * modules/search (Files, Makefile.am): Use search.in.h instead of
48105         search_.h.
48106         * lib/signal.in.h: Renamed from lib/signal_.h.
48107         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48108         _signal.h.
48109         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48110         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48111         stdbool_.h.
48112         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48113         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48114         stdint_.h.
48115         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48116         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48117         stdio_.h.
48118         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48119         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48120         stdlib_.h.
48121         * lib/string.in.h: Renamed from lib/string_.h.
48122         * modules/string (Files, Makefile.am): Use string.in.h instead of
48123         string_.h.
48124         * doc/gnulib-tool.texi (Initial import): Update.
48125         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48126         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48127         of sys_select_.h. Add dependency.
48128         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48129         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48130         of sys_socket_.h.
48131         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48132         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48133         sys_stat_.h.
48134         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48135         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48136         sys_time_.h.
48137         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48138         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48139         sysexits_.h.
48140         * lib/time.in.h: Renamed from lib/time_.h.
48141         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48142         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48143         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48144         unistd_.h.
48145         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48146         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48147         wchar_.h.
48148         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48149         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48150         wctype_.h.
48151         * build-aux/bootstrap (slurp): Update.
48152         * lib/.cppi-disable: Update.
48153
48154 2007-09-30  Bruno Haible  <bruno@clisp.org>
48155
48156         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48157         Needed on BeOS.
48158
48159 2007-09-30  Bruno Haible  <bruno@clisp.org>
48160
48161         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48162
48163 2007-09-29  Bruno Haible  <bruno@clisp.org>
48164
48165         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48166
48167 2007-09-29  Bruno Haible  <bruno@clisp.org>
48168
48169         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48170         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48171         * build-aux/install-reloc: Compile also areadlink.c.
48172         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48173
48174 2007-09-29  Bruno Haible  <bruno@clisp.org>
48175
48176         * gnulib-tool (func_emit_initmacro_done): Indentation.
48177
48178 2007-09-29  Bruno Haible  <bruno@clisp.org>
48179
48180         * README: Add CVS checkout update instructions.
48181         Info from Bob Proulx <bob@proulx.com>.
48182
48183 2007-09-28  Eric Blake  <ebb9@byu.net>
48184
48185         Provide move-if-change.
48186         * build-aux/move-if-change: New file, based on best practice
48187         rather than any canonical upstream location.
48188
48189 2007-09-28  Jim Meyering  <jim@meyering.net>
48190
48191         Fix canonicalize loop-detection corner case.
48192         Do not attempt to stat the symlink values stored via seen_triple.
48193         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48194         on linux-2.6.18, (but not 2.6.22).
48195         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48196         triple_compare.  The former compares dev,ino,filename, while the latter
48197         would actually stat dirname(filename) when dev and ino were equal.
48198         * lib/hash-triple.c: Install <string.h>.
48199         (STREQ): Define.
48200         (triple_compare_ino_str): New function.
48201         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48202
48203 2007-09-28  Eric Blake  <ebb9@byu.net>
48204
48205         Enforce that AC_REPLACE_FUNCS files exist.
48206         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48207         override check for typos.
48208
48209         Fix test-closein on Solaris 10.
48210         * tests/test-closein.c (main): Don't assume stdin can be inherited
48211         closed on all systems.
48212         * tests/test-closein.sh: Likewise.
48213         Reported by Piotr Tarnowski.
48214
48215 2007-09-28  Jim Meyering  <jim@meyering.net>
48216
48217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48218
48219 2007-09-27  Jim Meyering  <jim@meyering.net>
48220
48221         canonicalize: Avoid a false-positive cycle failure.
48222         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48223         Sort.  Remove cycle-check.
48224         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48225         not cycle-check.h.
48226         (seen_triple): New function.
48227         (canonicalize_filename_mode): Use it instead of cycle-check.
48228         * tests/test-canonicalize.c: Add a test for this bug.
48229         * tests/test-canonicalize.sh: Set up and run the test.
48230
48231         New module, file-set, from coreutils.
48232         * modules/file-set: Define it.
48233         * lib/file-set.c, lib/file-set.h: Implement.
48234
48235         New module, hash-triple, from coreutils.
48236         * modules/hash-triple: Define it.
48237         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48238
48239 2007-09-25  Eric Blake  <ebb9@byu.net>
48240
48241         Fix strerror on Interix.
48242         * lib/string_.h (strerror): Declare replacement.
48243         * doc/functions/strerror.texi (strerror): Document the Interix
48244         shortcoming.
48245         * modules/string (Makefile.am): Support new hooks.
48246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48247         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48248         gl_FUNC_STRERROR_SEPARATE.
48249         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48250         * lib/strerror.c (rpl_strerror): Provide replacement.
48251         * modules/strerror (Depends-on): Add string.
48252         (configure.ac): Detect use of module.
48253         * tests/test-strerror.c: New file.
48254         * modules/strerror-tests: New test module.
48255         * modules/argp (Depends-on): Add strerror.
48256         * modules/error (Depends-on): Likewise.
48257         Reported by Martin Koeppe.
48258
48259 2007-09-24  Bruno Haible  <bruno@clisp.org>
48260
48261         * README: Update git instructions.
48262
48263 2007-09-24  Eric Blake  <ebb9@byu.net>
48264
48265         Revert fpending breakage from 2007-09-08.
48266         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48267         __fpending.c.
48268
48269 2007-09-24  Jim Meyering  <jim@meyering.net>
48270
48271         filenamecat.c: Add a test.
48272         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48273         showing how the function works when DIR is the empty string.
48274
48275 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48276
48277         * tests/test-canonicalize.sh: Turn on executable bit.
48278
48279 2007-09-19  Eric Blake  <ebb9@byu.net>
48280
48281         * README: Update CVS instructions.
48282
48283 2007-09-18  Bruno Haible  <bruno@clisp.org>
48284
48285         * modules/areadlink: New file.
48286         * lib/areadlink.h (areadlink): New declaration.
48287         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48288
48289 2007-09-17  Jim Meyering  <jim@meyering.net>
48290
48291         * lib/savewd.c (ESTALE) [!defined]: Define.
48292         Reported to be required on Interix by Martin Koeppe.
48293
48294 2007-09-17  Bruno Haible  <bruno@clisp.org>
48295
48296         * gnulib-tool (func_version): Use $version.
48297
48298 2007-09-16  Bruno Haible  <bruno@clisp.org>
48299
48300         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48301         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48302         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48303         Reported by Greg Schafer <gschafer@zip.com.au>.
48304
48305 2007-09-15  Bruno Haible  <bruno@clisp.org>
48306
48307         * gnulib-tool (sed): Try a little harder to make bash understand the
48308         alias.
48309         Reported by Bruce Korb <bruce.korb@gmail.com>.
48310
48311 2007-09-13  Eric Blake  <ebb9@byu.net>
48312
48313         * ChangeLog: Remove conflict markers.
48314
48315 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48316
48317         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48318         Reported by Bruno Haible <bruno@clisp.org>.
48319
48320 2007-09-12  Bruno Haible  <bruno@clisp.org>
48321
48322         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48323         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48324         is not defined.
48325
48326 2007-09-12  Eric Blake  <ebb9@byu.net>
48327
48328         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48330         Autoconf definition.
48331         * modules/euidaccess (Depends-on): Add extensions, for
48332         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48333         * modules/fnmatch (Depends-on): Likewise.
48334         * modules/getaddrinfo (Depends-on): Likewise.
48335         * modules/getdelim (Depends-on): Likewise.
48336         * modules/getline (Depends-on): Likewise.
48337         * modules/getsubopt (Depends-on): Likewise.
48338         * modules/gettext (Depends-on): Likewise.
48339         * modules/group-member (Depends-on): Likewise.
48340         * modules/mbchar (Depends-on): Likewise.
48341         * modules/memmem (Depends-on): Likewise.
48342         * modules/mempcpy (Depends-on): Likewise.
48343         * modules/memrchr (Depends-on): Likewise.
48344         * modules/pagealign_alloc (Depends-on): Likewise.
48345         * modules/readutmp (Depends-on): Likewise.
48346         * modules/stpcpy (Depends-on): Likewise.
48347         * modules/stpncpy (Depends-on): Likewise.
48348         * modules/strchrnul (Depends-on): Likewise.
48349         * modules/strndup (Depends-on): Likewise.
48350         * modules/strsep (Depends-on): Likewise.
48351         * modules/strverscmp (Depends-on): Likewise.
48352         * modules/vasprintf (Depends-on): Likewise.
48353         * modules/wcwidth (Depends-on): Likewise.
48354         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48355         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48356         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48357         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48358         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48359         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48360         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48361         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48362         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48363         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48364         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48365         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48366         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48367         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48368         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48369         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48371         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48372         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48373         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48374         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48375         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48376         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48377         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48378         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48380         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48381         so that lock.m4 can be used in gettext without extensions module.
48382
48383 2007-09-11  Bruno Haible  <bruno@clisp.org>
48384
48385         * m4/isc-posix.m4: Remove file.
48386         Suggested by Eric Blake.
48387
48388 2007-09-11  Eric Blake  <ebb9@byu.net>
48389
48390         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48391
48392 2007-09-10  Bruno Haible  <bruno@clisp.org>
48393
48394         * posix-modules: Fix typo in error message.
48395         Reported by Matt <mkraai@beckman.com>.
48396
48397 2007-09-09  Bruno Haible  <bruno@clisp.org>
48398
48399         * doc/functions/getdelim.texi: Update list of platforms lacking the
48400         function.
48401         * doc/functions/getline.texi: Likewise.
48402
48403 2007-09-09  Jim Meyering  <jim@meyering.net>
48404
48405         * lib/hash.c (hash_initialize): Detect calloc failure.
48406         Reported by Bruno Haible.
48407
48408 2007-09-09  Bruno Haible  <bruno@clisp.org>
48409
48410         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48411         malloc or realloc fails.
48412
48413 2007-09-09  Bruno Haible  <bruno@clisp.org>
48414
48415         * modules/getcwd (Depends-on): Add malloc-posix.
48416         * modules/glob (Depends-on): Likewise.
48417         * modules/putenv (Depends-on): Likewise.
48418         * modules/strdup (Depends-on): Likewise.
48419         * modules/getdelim (Depends-on): Add realloc-posix.
48420         * modules/read-file (Depends-on): Likewise.
48421
48422 2007-09-09  Bruno Haible  <bruno@clisp.org>
48423
48424         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48425         (gl_FUNC_MALLOC_POSIX): Require it.
48426         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48427         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48428         * modules/realloc (Files): Add m4/malloc.m4.
48429         * modules/calloc (Files): Likewise.
48430
48431 2007-09-09  Bruno Haible  <bruno@clisp.org>
48432
48433         * modules/malloc-posix: New file.
48434         * modules/malloc (Depends-on): Add malloc-posix.
48435         * lib/malloc.c: Include errno.h.
48436         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48437         and a POSIX-compatible malloc into a single function. Set ENOMEM
48438         when returning NULL.
48439         * m4/malloc.m4: New file.
48440         * doc/functions/malloc.texi: Mention the malloc-posix module.
48441         * lib/stdlib_.h (malloc): New declaration.
48442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48443         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48444         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48445         and HAVE_MALLOC_POSIX.
48446
48447 2007-09-09  Bruno Haible  <bruno@clisp.org>
48448
48449         * modules/realloc-posix: New file.
48450         * modules/realloc (Depends-on): Add realloc-posix.
48451         * lib/realloc.c: Include errno.h.
48452         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48453         and a POSIX-compatible realloc into a single function. Set ENOMEM
48454         when returning NULL.
48455         * m4/realloc.m4: New file.
48456         * doc/functions/realloc.texi: Mention the realloc-posix module.
48457         * lib/stdlib_.h (realloc): New declaration.
48458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48459         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48460         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48461         and HAVE_REALLOC_POSIX.
48462
48463 2007-09-09  Bruno Haible  <bruno@clisp.org>
48464
48465         * modules/calloc-posix: New file.
48466         * modules/calloc (Depends-on): Add calloc-posix.
48467         * lib/calloc.c: Include errno.h.
48468         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48469         and a POSIX-compatible calloc into a single function. Set ENOMEM
48470         when returning NULL.
48471         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48472         * doc/functions/calloc.texi: Mention the calloc-posix module.
48473         * lib/stdlib_.h (calloc): New declaration.
48474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48475         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48476         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48477         and HAVE_CALLOC_POSIX.
48478
48479 2007-09-09  Bruno Haible  <bruno@clisp.org>
48480
48481         Allow for modules to show an arbitrary notice.
48482         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48483         * gnulib-tool: New option --extract-notice.
48484         (func_usage): Document it.
48485         (sed_extract_prog): Update.
48486         (func_get_notice): New function.
48487         (func_modules_notice): New function.
48488         (func_import, func_create_testdir): Invoke it.
48489         Suggested by Jim Meyering.
48490
48491 2007-09-09  Bruno Haible  <bruno@clisp.org>
48492
48493         * gnulib-tool: New options --verbose, --quiet.
48494         (func_usage): Document them.
48495         (verbose): New variable.
48496         (func_execute_command): New function.
48497         (func_import): Don't show the module list and the file list if
48498         $verbose < 0.
48499         (func_create_testdir): Likewise. Use func_execute_command.
48500         (func_create_megatestdir): Use func_execute_command.
48501
48502 2007-09-08  Bruno Haible  <bruno@clisp.org>
48503
48504         * gnulib-tool (func_import): Prefer rsync over wget when available,
48505         for fetching the PO files.
48506
48507 2007-09-08  Bruno Haible  <bruno@clisp.org>
48508
48509         * posix-modules: New file. Portions copied from gnulib-tool.
48510         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48511
48512 2007-09-08  Jim Meyering  <jim@meyering.net>
48513
48514         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48515         * lib/fpending.h: Rename from __fpending.h.
48516         * lib/fpending.c: Rename from __fpending.c.
48517         Include "fpending.h", not "__fpending.h".
48518         * lib/__fpending.h, lib/__fpending.c: Remove files.
48519         * modules/fpending (Files): Reflect new file names.
48520         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48521
48522 2007-09-08  Bruno Haible  <bruno@clisp.org>
48523
48524         * m4/inttypes-h.m4: Remove stub file.
48525
48526 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48527
48528         * doc/headers/stdint.texi: Discuss #include_next issue.
48529
48530 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48531
48532         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48533
48534 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48535
48536         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48537         in variable name.
48538
48539 2007-09-03  Jim Meyering  <jim@meyering.net>
48540
48541         New module: git-version-gen.
48542         * modules/git-version-gen: New file.
48543
48544         Import changes from coreutils for bootstrap script.
48545
48546         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48547
48548         bootstrap: uses rsync to download the .po files
48549         * build-aux/bootstrap (po_download_command_format): New global.
48550         (download_po_files): Use rsync.
48551         (update_po_files): Don't remove .po files after download,
48552         so future rsync runs can take advantage of the copies.
48553
48554         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48555
48556         Solve the unnecessary-.po-file-regeneration problem once and for all.
48557         * build-aux/bootstrap (download_po_files): New function, renamed from
48558         get_translations.  Now, downloads, but doesn't update LINGUAS.
48559         (update_po_files): New function.
48560
48561         bootstrap: Ignore more.
48562         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48563         uniwidth to e.g., lib/.gitignore.
48564         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48565
48566         * build-aux/bootstrap: New setting: vc_ignore.
48567         (insert_sorted_if_absent): Create $file if absent.
48568         Adapt to new, possibly empty, list: $vc_ignore.
48569
48570         bootstrap: generate more ignorable names
48571         * build-aux/bootstrap (slurp): When generating ignorable names,
48572         also map .sin to .sed, .gperf to .c, and .y to .c.
48573
48574 2007-09-03  Jim Meyering  <jim@meyering.net>
48575
48576         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48577         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48578
48579 2007-09-02  Bruno Haible  <bruno@clisp.org>
48580
48581         Fix mis-recognition of 'mcs' on QNX 6.
48582         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48583         output contains the string "Mono".
48584         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48585         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48586
48587 2007-09-01  Bruno Haible  <bruno@clisp.org>
48588
48589         Fix collision between uniwidth/* and linebreak modules.
48590         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48591         u32_width): Remove declarations.
48592         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48593         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48594         streq3, streq2, streq1, streq0): Remove functions.
48595         (STREQ): Remove macro.
48596         (is_cjk_encoding): Remove function.
48597         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48598         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48599         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48600         * NEWS: Document the change.
48601
48602 2007-09-01  Bruno Haible  <bruno@clisp.org>
48603
48604         * lib/streq.h: Add double-inclusion guard.
48605
48606 2007-09-01  Karl Berry  <karl@gnu.org>
48607
48608         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48609
48610 2007-08-28  Jim Meyering  <jim@meyering.net>
48611
48612         Rename mreadlink_with_size to areadlink_with_size.
48613         * NEWS: Document the change.
48614         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48615         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48616         * lib/mreadlink.h: Rename this to...
48617         * lib/areadlink.h: ...this.
48618         * modules/mreadlink-with-size: Rename this to...
48619         * modules/areadlink-with-size: ...this.
48620         * lib/canonicalize.c: Reflect the renaming.
48621         * modules/canonicalize: Likewise.
48622
48623 2007-08-26  Bruno Haible  <bruno@clisp.org>
48624
48625         * gnulib-tool (func_import): When deciding which files to remove,
48626         consider also dangling symbolic links.
48627         Reported by Eric Blake.
48628
48629 2007-08-26  Bruno Haible  <bruno@clisp.org>
48630
48631         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48632
48633 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48634
48635         * lib/readline.c: Don't include getline.h, the prototype is now
48636         found in stdio.h.
48637
48638 2007-08-23  Jim Meyering  <jim@meyering.net>
48639
48640         Getdelim touchup.
48641         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48642         around the funlockfile call, since funlockfile never sets errno.
48643         Don't set errno upon failed realloc.
48644
48645 2007-08-22  Eric Blake  <ebb9@byu.net>
48646
48647         Getline touchups.
48648         * lib/getdelim.c (getdelim): Revert regression that required *n to
48649         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48650         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48651         getdelim, rather than whether implementation is missing.
48652         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48653         * lib/stdio_.h (getline): Also declare if replacement is
48654         required.
48655         * doc/functions/getdelim.texi: New file.
48656         * doc/functions/getline.texi: Likewise.
48657         * doc/gnulib.texi (Function Substitutes): Add new files.
48658         Reported by Bruno Haible.
48659
48660 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48661
48662         * users.txt: Add Guile.
48663
48664 2007-08-22  Eric Blake  <ebb9@byu.net>
48665
48666         * tests/test-getdelim.c (main): Use remove, not unlink.
48667         * tests/test-getline.c (main): Likewise.
48668
48669         Move getline and getdelim into stdio.h, per POSIX 200x.
48670         * modules/getline (Files): Remove getline.h.
48671         (Depends-on): Add stdio.
48672         (configure.ac): Add module indicator.
48673         * modules/getdelim (Files): Remove getdelim.h.
48674         (Depends-on): Add stdio.
48675         (configure.ac): Add module indicator.
48676         * modules/stdio (Makefile.am): Work with new indicators.
48677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48678         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48679         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48680         * lib/getdelim.h: Delete.
48681         * lib/getline.h: Delete.
48682         * lib/stdio_.h (getdelim, getline): Declare.
48683         * modules/getdelim-tests: New module.
48684         * modules/getline-tests: Likewise.
48685         * tests/test-getdelim.c: New file.
48686         * tests/test-getline.c: Likewise.
48687         * NEWS: Document the change.
48688         * lib/getline.c: Update choice of header.
48689         * lib/csharpcomp.c: Likewise.
48690         * lib/getpass.c: Likewise.
48691         * lib/javacomp.c: Likewise.
48692         * lib/javaversion.c: Likewise.
48693         * lib/yesno.c: Likewise.
48694         * lib/getdelim.c: Likewise.
48695         (getdelim): Set errno on failure, and avoid memory leak.
48696
48697 2007-08-19  Bruno Haible  <bruno@clisp.org>
48698
48699         * modules/closein (Depends-on): Add freadahead.
48700         * lib/closein.c: Include freadahead.h.
48701         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48702         is zero.
48703
48704 2007-08-19  Bruno Haible  <bruno@clisp.org>
48705
48706         * modules/freadahead-tests: New file.
48707         * tests/test-freadahead.sh: New file.
48708         * tests/test-freadahead.c: New file.
48709
48710         * modules/freadahead: New file.
48711         * lib/freadahead.h: New file.
48712         * lib/freadahead.c: New file.
48713         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48714         fbufmode, fpurge, freadable, fwritable.
48715
48716 2007-08-19  Eric Blake  <ebb9@byu.net>
48717
48718         Test yesno in combination with closein.
48719         * lib/yesno.c (yesno): Document use of stdin.
48720         * modules/yesno-tests (Files): New module.
48721         * tests/test-yesno.c (main): New file.
48722         * tests/test-yesno.sh: Likewise.
48723
48724 2007-08-19  Bruno Haible  <bruno@clisp.org>
48725
48726         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48727         * lib/fseeko.c (rpl_fseeko): Likewise.
48728         * lib/fseterr.c (fseterr): Likewise.
48729
48730 2007-08-19  Bruno Haible  <bruno@clisp.org>
48731
48732         * tests/test-lseek.c (main): Disable a test for BeOS.
48733         * doc/functions/lseek.texi: Document the BeOS bug.
48734
48735 2007-08-19  Bruno Haible  <bruno@clisp.org>
48736             Eric Blake  <ebb9@byu.net>
48737
48738         * lib/lseek.c: Include <sys/stat.h>.
48739         (rpl_lseek): Add workaround code also for Unix platforms.
48740         Needed for BeOS.
48741         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48742         * doc/functions/lseek.texi: Document BeOS definiency.
48743
48744 2007-08-18  Bruno Haible  <bruno@clisp.org>
48745
48746         * modules/fstrcmp-tests: New file.
48747         * tests/test-fstrcmp.c: New file.
48748
48749 2007-08-18  Bruno Haible  <bruno@clisp.org>
48750
48751         * modules/fstrcmp: New file, from GNU gettext with modifications.
48752         * lib/fstrcmp.h: New file, from GNU gettext.
48753         * lib/fstrcmp.c: New file, from GNU gettext.
48754         * MODULES.html.sh (String handling): Add fstrcmp.
48755
48756 2007-08-18  Bruno Haible  <bruno@clisp.org>
48757
48758         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48759         'bool'.
48760         (diag, compareseq): Remove const from the ctxt argument.
48761         (USE_HEURISTIC): Undefine at the end.
48762
48763 2007-08-18  Jim Meyering  <jim@meyering.net>
48764
48765         New file: lib/idcache.h
48766         * NEWS: Mention the addition.
48767         * modules/idcache (Files): Add lib/idcache.h
48768         * lib/idcache.c: Include "idcache.h".
48769         Don't include <sys/types.h>.
48770         Add a FIXME comment.
48771         Move file-scoped "static" declarations to the top.
48772         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48773
48774 2007-08-17  Bruno Haible  <bruno@clisp.org>
48775         and Paul Eggert  <eggert@cs.ucla.edu>
48776
48777         * MODULES.html.sh: Add diffseq.
48778         * modules/diffseq: New file.
48779         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48780         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48781
48782 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48783
48784         Import changes from coreutils for bootstrap script.
48785
48786         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48787
48788         * build-aux/bootstrap (slurp): Work even in environments where
48789         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48790         current code does not slurp files whose names start with ".", and
48791         this looks like it might be a troublesome area.
48792
48793         2007-07-11  Jim Meyering  <jim@meyering.net>
48794
48795         If there's a GPL vN copyright comment, require that N == 3.
48796
48797         2007-07-08  Jim Meyering  <jim@meyering.net>
48798
48799         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48800         * build-aux/bootstrap (mam_template): Move definition out of loop.
48801
48802         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48803
48804         * build-aux/bootstrap (symlink_to_dir): Rename function from
48805         symlink_to_gnulib.  Add a directory parameter.  Update all
48806         callers.
48807         (cp_mark_as_generated): Also check for -- and link to -- files in
48808         gl/.
48809
48810         2007-07-08  Jim Meyering  <jim@meyering.net>
48811
48812         Adapt to deeper hierarchy in gnulib.
48813         * build-aux/bootstrap (symlink_to_dir): If the destination
48814         directory doesn't exist, create it. This is required at least for
48815         "lib/uniwidth/cjk.h".
48816
48817         2007-05-15  Jim Meyering  <jim@meyering.net>
48818
48819         * build-aux/bootstrap: Now that generated Makefile.am files
48820         are no longer under version control, they must be created at
48821         bootstrap time.
48822
48823 2007-08-14  Ben Pfaff  <blp@gnu.org>
48824
48825         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48826
48827 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48828
48829         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48830         given the changes below.
48831         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48832         even on hosts that have padding bits beyond the supported 64.
48833
48834 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48835
48836         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48837         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48838         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48839         depends on it.
48840         (xstrtol_error): Remove.
48841         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48842         but with a different signature.
48843         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48844         * lib/xstrtol-error.c: Include exitfail.h.
48845         (xstrtol_fatal): New function, with a different signature from the
48846         old xstrtol_error, so that the caller need not worry about passing
48847         in an exit status, or about storage management of the option argument.
48848         (xstrtol_error): Now a static function.  Redo signature to
48849         implement xstrtol_fatal.  Output the correct number of hyphens in
48850         front of the option so that the caller need not worry about
48851         storage management.
48852         (N_): New macro.
48853         (_): Remove; not used now.
48854         * modules/xstrtol: Depend on getopt.
48855         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48856         of old STRTOL_FATAL_ERROR macro.
48857         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48858         of test program.
48859         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48860         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48861
48862 2007-08-08  Eric Blake  <ebb9@byu.net>
48863
48864         * lib/xstrtol-error.c: Add missing include.
48865
48866         Move xstrtol messages into gnulib domain, when --pobase is used.
48867         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48868         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48869         * modules/xstrtol (Files): Distribute new file.
48870         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48871         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48872         * tests/test-xstrtol.c: ...into new file.
48873         * tests/test-xstrtoul.c: Also test xstrtoul.
48874         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48875         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48876         * tests/test-xstrtol.sh: Drive the tests.
48877         * tests/test-xstrtoimax.sh: Likewise.
48878         * tests/test-xstrtoumax.sh: Likewise.
48879         * modules/xstrtol-tests: New module.
48880         * modules/xstrtoimax-tests: Likewise.
48881         * modules/xstrtoumax-tests: Likewise.
48882
48883 2007-08-08  Jim Meyering  <jim@meyering.net>
48884
48885         New function: mfile_name_concat.
48886         * lib/filenamecat.c (mfile_name_concat): New function, just like
48887         file_name_concat, but return NULL upon failure rather than exiting
48888         with a diagnostic.
48889         * lib/filenamecat.h: Declare it.
48890
48891 2007-08-07  Bruno Haible  <bruno@clisp.org>
48892
48893         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48894         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48895         warning from gcc.
48896         Reported by Eric Blake.
48897
48898 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48899
48900         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48901         * modules/crypto/arcfour (License): Likewise.
48902         * modules/crypto/des-tests (License): Likewise.
48903         * modules/crypto/gc-arctwo-tests (License): Likewise.
48904         * modules/crypto/gc-des-tests (License): Likewise.
48905         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48906         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48907         * modules/crypto/gc-md2-tests (License): Likewise.
48908         * modules/crypto/gc-md4-tests (License): Likewise.
48909         * modules/crypto/gc-md5-tests (License): Likewise.
48910         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48911         * modules/crypto/gc-rijndael-tests (License): Likewise.
48912         * modules/crypto/gc-sha1-tests (License): Likewise.
48913         * modules/crypto/gc-tests (License): Likewise.
48914         * modules/crypto/hmac-md5 (License): Likewise.
48915         * modules/crypto/hmac-sha1 (License): Likewise.
48916         * modules/crypto/md2-tests (License): Likewise.
48917         * modules/crypto/md4-tests (License): Likewise.
48918         * modules/crypto/md5 (License): Likewise.
48919         * modules/crypto/rijndael (License): Likewise.
48920         * modules/crypto/sha1 (License): Likewise.
48921         * modules/memxor (License): Likewise.
48922
48923 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48924         and Bruno Haible  <bruno@clisp.org>
48925
48926         * NEWS: Describe interface changes to human, xstrtol.
48927         * lib/human.h: Include <xstrtol.h>.
48928         (human_options): Return enum strtol_error, not int.  Remove
48929         bool arg; take int * instead.
48930         * lib/human.c: Don't include "gettext.h".
48931         (_): Remove; no longer used.
48932         Don't include <xstrtol.h>, since human.h does it.
48933         (human_options): Adjust to abovementioned interface changes.
48934         Do not report error to stderr; that's now the caller's
48935         responsibility.
48936         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48937         interface change.
48938         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48939         Str, Argument_type_string.  All uses changed.  Put " argument"
48940         in diagnostics to make them clearer.  Change wording of suffix
48941         message for clarity.
48942         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48943         Argument_type_string.
48944         (STRTOL_FATAL_WARN): Remove; no longer used.
48945         * modules/human (Depends-on): Remove gettext-h.
48946
48947 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48948
48949         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48950
48951 2007-07-31  Bruno Haible  <bruno@clisp.org>
48952
48953         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48954         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48955         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48956
48957 2007-07-31  Bruno Haible  <bruno@clisp.org>
48958
48959         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48960         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48961
48962 2007-07-30  Bruno Haible  <bruno@clisp.org>
48963
48964         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48965         * modules/c-ctype (License): Likewise.
48966         * modules/c-strcase (License): Likewise.
48967         * modules/check-version (License): Likewise.
48968         * modules/iconv (License): Likewise.
48969         * modules/iconv_open (License): Likewise.
48970         * modules/read-file (License): Likewise.
48971         * modules/striconv (License): Likewise.
48972         * modules/strverscmp (License): Likewise.
48973         * modules/vasprintf (License): Likewise.
48974         * modules/crypto/des (License): Likewise.
48975         * modules/crypto/gc (License): Likewise.
48976         * modules/crypto/gc-arcfour (License): Likewise.
48977         * modules/crypto/gc-arctwo (License): Likewise.
48978         * modules/crypto/gc-des (License): Likewise.
48979         * modules/crypto/gc-hmac-md5 (License): Likewise.
48980         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48981         * modules/crypto/gc-md2 (License): Likewise.
48982         * modules/crypto/gc-md4 (License): Likewise.
48983         * modules/crypto/gc-md5 (License): Likewise.
48984         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48985         * modules/crypto/gc-random (License): Likewise.
48986         * modules/crypto/gc-rijndael (License): Likewise.
48987         * modules/crypto/gc-sha1 (License): Likewise.
48988         * modules/crypto/md2 (License): Likewise.
48989         * modules/crypto/md4 (License): Likewise.
48990
48991 2007-07-30  Jim Meyering  <jim@meyering.net>
48992
48993         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48994         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48995         it has valid stat data.  This bug would cause du not to count the
48996         sizes of inaccessible directories.
48997         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48998         in <http://bugzilla.redhat.com/250077>.
48999
49000 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49001             Bruno Haible  <bruno@clisp.org>
49002
49003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49004         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49005         #include_next, gives a diagnostic about it, but reports no error in
49006         the exit code.
49007         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49008
49009 2007-07-24  Ben Pfaff  <blp@gnu.org>
49010
49011         Improve name: "count-one-bits" is better than "popcount".
49012         * MODULES.html.sh: Update name.
49013         * lib/popcount.h: Renamed lib/count-one-bits.h.
49014         (popcount): Renamed count_one_bits.
49015         (popcountl): Renamed count_one_bits_l.
49016         (popcountll): Renamed count_one_bits_ll.
49017         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49018         * modules/popcount: Renamed module/count-one-bits.
49019         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49020         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49021
49022 2007-07-23  Ben Pfaff  <blp@gnu.org>
49023
49024         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49025         better code generation, and add U to large constants to avoid
49026         warnings, in non-GCC case.
49027         Suggested by Bruno Haible.
49028
49029 2007-07-23  Ben Pfaff  <blp@gnu.org>
49030
49031         * lib/popcount.h: Use verify_true instead of if...abort.
49032         * modules/popcount: Depend on verify module.
49033         Suggested by Jim Meyering.
49034
49035 2007-07-23  Bruno Haible  <bruno@clisp.org>
49036
49037         * gnulib-tool (func_import): Create a .cvsignore file also when the
49038         directory is not yet in CVS but the toplevel directory is. When
49039         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49040         Reported by Karl Berry.
49041
49042 2007-07-22  Ben Pfaff  <blp@gnu.org>
49043
49044         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49045         case.
49046         Suggested by Eric Blake.
49047
49048 2007-07-22  Ben Pfaff  <blp@gnu.org>
49049
49050         New module: popcount.
49051         * MODULES.html.sh: Add popcount.
49052         * modules/popcount: New file.
49053         * modules/popcount-tests: New file.
49054         * tests/test-popcount.c: New file.
49055         * lib/popcount.h: New file.
49056         * m4/popcount.m4: New file.
49057
49058 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49059
49060         * build-aux/announce-gen: Update to GPLv3.
49061
49062         * build-aux/config.guess: Update from config.
49063
49064 2007-07-21  Bruno Haible  <bruno@clisp.org>
49065
49066         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49067         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49068
49069 2007-07-20  Jim Meyering  <jim@meyering.net>
49070
49071         * check-module: Diagnose a self-dependency.
49072
49073 2007-07-19  Bruno Haible  <bruno@clisp.org>
49074
49075         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49076         empty.
49077         Reported by Eric Blake.
49078
49079 2007-07-18  Bruno Haible  <bruno@clisp.org>
49080
49081         * gnulib-tool: New options --po-base, --po-domain.
49082         (func_usage): Document them.
49083         (pobase, po_domain): New variables.
49084         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49085         DEFAULT_TEXT_DOMAIN.
49086         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49087         (func_import): Consider pobase and po_domain. Create a po/ directory.
49088         (func_create_testdir): Set pobase and po_domain to empty.
49089         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49090         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49091
49092 2007-07-18  Bruno Haible  <bruno@clisp.org>
49093
49094         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49095         EXTRA_DIST augmentation for files in build-aux/.
49096
49097 2007-07-16  Bruno Haible  <bruno@clisp.org>
49098
49099         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49100         * modules/getdelim (License): Likewise.
49101
49102 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49103
49104         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49105         * modules/d-type (License): Likewise.
49106         * modules/extensions (License): Likewise.
49107         * modules/fnmatch (License): Likewise.
49108         * modules/fseeko (License): Likewise.
49109         * modules/getaddrinfo (License): Likewise.
49110         * modules/getline (License): Likewise.
49111         * modules/getlogin_r (License): Likewise.
49112         * modules/getpass (License): Likewise.
49113         * modules/gettimeofday (License): Likewise.
49114         * modules/glob (License): Likewise.
49115         * modules/inet_ntop (License): Likewise.
49116         * modules/malloc (License): Likewise.
49117         * modules/malloca (License): Likewise.
49118         * modules/memmem (License): Likewise.
49119         * modules/mempcpy (License): Likewise.
49120         * modules/memset (License): Likewise.
49121         * modules/minmax (License): Likewise.
49122         * modules/mktime (License): Likewise.
49123         * modules/netinet_in (License): Likewise.
49124         * modules/pathmax (License): Likewise.
49125         * modules/poll (License): Likewise.
49126         * modules/regex (License): Likewise.
49127         * modules/snprintf (License): Likewise.
49128         * modules/stdbool (License): Likewise.
49129         * modules/stdint (License): Likewise.
49130         * modules/stdio (License): Likewise.
49131         * modules/strcase (License): Likewise.
49132         * modules/strcasestr (License): Likewise.
49133         * modules/strdup (License): Likewise.
49134         * modules/string (License): Likewise.
49135         * modules/strndup (License): Likewise.
49136         * modules/strnlen (License): Likewise.
49137         * modules/strpbrk (License): Likewise.
49138         * modules/strptime (License): Likewise.
49139         * modules/strsep (License): Likewise.
49140         * modules/sys_select (License): Likewise.
49141         * modules/sys_socket (License): Likewise.
49142         * modules/sys_stat (License): Likewise.
49143         * modules/sys_time (License): Likewise.
49144         * modules/time (License): Likewise.
49145         * modules/time_r (License): Likewise.
49146         * modules/timegm (License): Likewise.
49147         * modules/unistd (License): Likewise.
49148         * modules/vsnprintf (License): Likewise.
49149         * modules/wctype (License): Likewise.
49150
49151 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49152
49153         * modules/argz (License): LGPLv2+.
49154
49155 2007-07-15  Karl Berry  <karl@gnu.org>
49156
49157         * doc/gnulib.texi: revise node structure per new fdl.texi.
49158
49159 2007-07-14  Bruno Haible  <bruno@clisp.org>
49160
49161         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49162         the output file.
49163         * lib/uniname/uninames.h: Regenerated.
49164
49165 2007-07-14  Karl Berry  <karl@gnu.org>
49166
49167         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49168         omitting sectioning and index commands.
49169
49170 2007-07-13  Bruno Haible  <bruno@clisp.org>
49171
49172         New gnulib-tool option --more-symlinks.
49173         * gnulib-tool (func_usage): Document --more-symlinks.
49174         (do_copyrights): New variable.
49175         Recognize option --more-symlinks.
49176         (func_import): Don't add a copyright notice transform to
49177         sed_transform_lib_file if do_copyrights is empty.
49178
49179 2007-07-13  Bruno Haible  <bruno@clisp.org>
49180
49181         * lib/vasnprintf.c (decimal_point_char): Define also if
49182         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49183         && !NEED_PRINTF_DIRECTIVE_A.
49184         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49185         Gary V. Vaughan <gary@gnu.org>.
49186
49187 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49188
49189         * lib/inttypes_.h: Undo previous change, since it was fixed
49190         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49191
49192 2007-07-13  Bruno Haible  <bruno@clisp.org>
49193
49194         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49195         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49196
49197 2007-07-13  Jim Meyering  <jim@meyering.net>
49198
49199         df: Don't fail for Tru64's "file-on-file mount".
49200         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49201         so we fall through and use statfs instead.  Details here:
49202         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49203         Reported by Albert Chin.
49204
49205 2007-07-13  Bruno Haible  <bruno@clisp.org>
49206
49207         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49208         * modules/configmake (License): Likewise.
49209         * modules/gettext (License): Likewise.
49210         * modules/gettext-h (License): Likewise.
49211         * modules/include_next (License): Likewise.
49212         * modules/link-warning (License): Likewise.
49213         * modules/localcharset (License): Likewise.
49214         * modules/localename (License): Likewise.
49215         * modules/lock (License): Likewise.
49216         * modules/relocatable-lib-lgpl (License): Likewise.
49217         * modules/size_max (License): Likewise.
49218         * modules/vasnprintf (License): Likewise.
49219         * modules/wchar (License): Likewise.
49220         * modules/xsize (License): Likewise.
49221
49222 2007-07-13  Bruno Haible  <bruno@clisp.org>
49223
49224         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49225         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49226
49227 2007-07-12  Bruno Haible  <bruno@clisp.org>
49228
49229         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49230         in the modules files.
49231
49232 2007-07-11  Karl Berry  <karl@gnu.org>
49233
49234         * MODULES.html.sh (func_module): use
49235          sed -e '\|^'"${includefile}"'$|d'
49236          instead of /.../d, to avoid errors on $includefile's containing /.
49237
49238 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49239
49240         * gnulib-tool (func_import): Avoid duplication of --avoid
49241         statements
49242         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49243         names to `_' in variable names.
49244
49245 2007-07-10  Eric Blake  <ebb9@byu.net>
49246
49247         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49248         * NEWS: Document this change.
49249
49250 2007-07-08  Bruno Haible  <bruno@clisp.org>
49251
49252         Update to Unicode 5.0.
49253         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49254         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49255         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49256         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49257         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49258         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49259         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49260         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49261         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49262         U+10A3F, U+1D242..U+1D244.
49263         (nonspacing_table_ind): Update.
49264         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49265         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49266
49267 2007-07-08  Bruno Haible  <bruno@clisp.org>
49268
49269         Update to Unicode 5.0.
49270         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49271         code transform. Extend the name index field of unicode_name_to_code and
49272         unicode_code_to_name from 16 to 24 bits.
49273         * lib/uniname/uniname.c (unicode_character_name,
49274         unicode_name_character): Add the range 0x12xxx to the code transform.
49275         * lib/uniname/uninames.h: Regenerated.
49276         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49277
49278 2007-07-07  Bruno Haible  <bruno@clisp.org>
49279
49280         * modules/wcwidth-tests: New file.
49281         * tests/test-wcwidth.c: New file.
49282
49283         Work around MacOS X wcwidth() bug.
49284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49285         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49286         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49287         original wcwidth in non-UTF-8 locales.
49288         * modules/wcwidth (Depends-on): Add localcharset, streq,
49289         uniwidth/width.
49290         * doc/functions/wcwidth.texi: Update.
49291
49292 2007-07-07  Bruno Haible  <bruno@clisp.org>
49293
49294         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49295         (wcwidth): New declaration.
49296         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49297         macros.
49298         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49299         here. Prepare for creating <wchar.h> unconditionally.
49300         * modules/wchar (Depends-on): Add link-warning.
49301         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49302         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49303         * lib/wcwidth.h: Remove file.
49304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49305         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49306         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49307         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49308         (Include): Replace wcwidth.h with <wchar.h>.
49309         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49310         * lib/mbchar.h: Don't include wcwidth.h.
49311         * lib/mbswidth.c: Likewise.
49312         * NEWS: Mention the change.
49313
49314 2007-07-07  Bruno Haible  <bruno@clisp.org>
49315
49316         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49317         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49318         definition with an external declaration.
49319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49320         defined as a function. Remove AC_C_INLINE requirement.
49321         * modules/wcwidth (Files): Add lib/wcwidth.c.
49322         (Makefile.am): Remove redundant statement.
49323
49324 2007-07-07  Bruno Haible  <bruno@clisp.org>
49325
49326         * MODULES.html.sh (Unicode string functions): Add the new modules.
49327
49328         * tests/uniwidth/test-u32-strwidth.c: New file.
49329         * modules/uniwidth/u32-strwidth-tests: New file.
49330
49331         * lib/uniwidth/u32-strwidth.c: New file.
49332         * modules/uniwidth/u32-strwidth: New file.
49333
49334         * tests/uniwidth/test-u16-strwidth.c: New file.
49335         * modules/uniwidth/u16-strwidth-tests: New file.
49336
49337         * lib/uniwidth/u16-strwidth.c: New file.
49338         * modules/uniwidth/u16-strwidth: New file.
49339
49340         * tests/uniwidth/test-u8-strwidth.c: New file.
49341         * modules/uniwidth/u8-strwidth-tests: New file.
49342
49343         * lib/uniwidth/u8-strwidth.c: New file.
49344         * modules/uniwidth/u8-strwidth: New file.
49345
49346         * tests/uniwidth/test-u32-width.c: New file.
49347         * modules/uniwidth/u32-width-tests: New file.
49348
49349         * lib/uniwidth/u32-width.c: New file.
49350         * modules/uniwidth/u32-width: New file.
49351
49352         * tests/uniwidth/test-u16-width.c: New file.
49353         * modules/uniwidth/u16-width-tests: New file.
49354
49355         * lib/uniwidth/u16-width.c: New file.
49356         * modules/uniwidth/u16-width: New file.
49357
49358         * tests/uniwidth/test-u8-width.c: New file.
49359         * modules/uniwidth/u8-width-tests: New file.
49360
49361         * lib/uniwidth/u8-width.c: New file.
49362         * modules/uniwidth/u8-width: New file.
49363
49364         * tests/uniwidth/test-uc_width.c: New file.
49365         * modules/uniwidth/width-tests: New file.
49366
49367         * lib/uniwidth/width.c: New file, from GNU libiconv.
49368         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49369         * modules/uniwidth/width: New file.
49370
49371         * lib/uniwidth.h: New file, from GNU libiconv.
49372         * modules/uniwidth/base: New file.
49373
49374 2007-07-07  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/uniname.h: New file, from GNU gettext.
49377         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49378         * lib/uniname/uninames.h: New file, from GNU gettext.
49379         * lib/uniname/uniname.c: New file, from GNU gettext.
49380         * tests/uniname/test-uninames.sh: New file.
49381         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49382         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49383         * modules/uniname/base: New file.
49384         * modules/uniname/uniname: New file.
49385         * modules/uniname/uniname-tests: New file.
49386         * MODULES.html.sh (Unicode string functions): Add the new modules.
49387
49388 2007-07-06  Bruno Haible  <bruno@clisp.org>
49389
49390         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49391
49392 2007-07-06  Bruno Haible  <bruno@clisp.org>
49393
49394         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49395         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49396         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49397         include <sys/time.h>.
49398         Reported by Eric Blake.
49399
49400 2007-07-06  Eric Blake  <ebb9@byu.net>
49401
49402         Fix testing canonicalize on cygwin.
49403         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49404         Revert patch from 2007-06-19.
49405         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49406         canonicalize module is also in use.
49407         * tests/test-canonicalize.c: New file.
49408         * tests/test-canonicalize.sh: Likewise.
49409         * modules/canonicalize-tests: Likewise.
49410
49411 2007-07-06  Jim Meyering  <jim@meyering.net>
49412
49413         * lib/getugroups.c (getugroups): Detect getgrent failure.
49414         Adjust comment to reflect reality: this function may return -1.
49415
49416 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49417
49418         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49419         the new TP address.
49420         (usage): Fix typo
49421         (gnulib_mk): New variable.
49422
49423 2007-07-05  Jim Meyering  <jim@meyering.net>
49424
49425         Don't let endgrent clobber errno, no matter how improbable.
49426         * lib/getugroups.c (getugroups): Save and restore errno around
49427         endgrent call.
49428
49429         Close the group DB even when failing with 2^31 or more members.
49430         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49431
49432 2007-07-04  Jim Meyering  <jim@meyering.net>
49433
49434         * lib/getugroups.h: New file.
49435         * lib/getugroups.c: Include "getugroups.h".
49436         Remove uses of "register" keyword.
49437         Move local variable, "cp", down into scope where used.
49438         Give "username" parameter the "const" attribute.
49439         * modules/getugroups (Files): Add lib/getugroups.h
49440
49441 2007-07-04  Karl Berry  <karl@gnu.org>
49442
49443         * MODULES.html.sh (func_all_modules): Complete rename of
49444         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49445
49446 2007-07-02  Bruno Haible  <bruno@clisp.org>
49447
49448         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49449         mode, when inttypes.h comes from gnulib.
49450         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49451
49452 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49453
49454         * NEWS: Mention lgpl module name change.
49455
49456         * modules/lgpl-2.1: Renamed from lgpl.
49457
49458         * NEWS: Mention gpl module name change.
49459
49460         * modules/gpl-3.0: New file, based on gpl-2.0.
49461
49462         * modules/gpl-2.0: Renamed from gpl.
49463
49464         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49465         doc/gpl-2.0.texi.
49466
49467 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49468
49469         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49470         #define __STDC_LIMIT_MACROS temporarily while including
49471         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49472         Problem reported by Joel E. Denny in
49473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49474
49475 2007-07-01  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/unistdio.h: New file.
49478         * lib/unistdio/u-asnprintf.h: New file.
49479         * lib/unistdio/u-asprintf.h: New file.
49480         * lib/unistdio/u-printf-args.c: New file.
49481         * lib/unistdio/u-printf-args.h: New file.
49482         * lib/unistdio/u-printf-parse.h: New file.
49483         * lib/unistdio/u-snprintf.h: New file.
49484         * lib/unistdio/u-sprintf.h: New file.
49485         * lib/unistdio/u-vasprintf.h: New file.
49486         * lib/unistdio/u-vsnprintf.h: New file.
49487         * lib/unistdio/u-vsprintf.h: New file.
49488         * lib/unistdio/ulc-asnprintf.c: New file.
49489         * lib/unistdio/ulc-asprintf.c: New file.
49490         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49491         * lib/unistdio/ulc-printf-parse.c: New file.
49492         * lib/unistdio/ulc-snprintf.c: New file.
49493         * lib/unistdio/ulc-sprintf.c: New file.
49494         * lib/unistdio/ulc-vasnprintf.c: New file.
49495         * lib/unistdio/ulc-vasprintf.c: New file.
49496         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49497         * lib/unistdio/ulc-vsnprintf.c: New file.
49498         * lib/unistdio/ulc-vsprintf.c: New file.
49499         * lib/unistdio/u8-asnprintf.c: New file.
49500         * lib/unistdio/u8-asprintf.c: New file.
49501         * lib/unistdio/u8-printf-parse.c: New file.
49502         * lib/unistdio/u8-snprintf.c: New file.
49503         * lib/unistdio/u8-sprintf.c: New file.
49504         * lib/unistdio/u8-vasnprintf.c: New file.
49505         * lib/unistdio/u8-vasprintf.c: New file.
49506         * lib/unistdio/u8-vsnprintf.c: New file.
49507         * lib/unistdio/u8-vsprintf.c: New file.
49508         * lib/unistdio/u8-u8-asnprintf.c: New file.
49509         * lib/unistdio/u8-u8-asprintf.c: New file.
49510         * lib/unistdio/u8-u8-snprintf.c: New file.
49511         * lib/unistdio/u8-u8-sprintf.c: New file.
49512         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49513         * lib/unistdio/u8-u8-vasprintf.c: New file.
49514         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49515         * lib/unistdio/u8-u8-vsprintf.c: New file.
49516         * lib/unistdio/u16-asnprintf.c: New file.
49517         * lib/unistdio/u16-asprintf.c: New file.
49518         * lib/unistdio/u16-printf-parse.c: New file.
49519         * lib/unistdio/u16-snprintf.c: New file.
49520         * lib/unistdio/u16-sprintf.c: New file.
49521         * lib/unistdio/u16-vasnprintf.c: New file.
49522         * lib/unistdio/u16-vasprintf.c: New file.
49523         * lib/unistdio/u16-vsnprintf.c: New file.
49524         * lib/unistdio/u16-vsprintf.c: New file.
49525         * lib/unistdio/u16-u16-asnprintf.c: New file.
49526         * lib/unistdio/u16-u16-asprintf.c: New file.
49527         * lib/unistdio/u16-u16-snprintf.c: New file.
49528         * lib/unistdio/u16-u16-sprintf.c: New file.
49529         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49530         * lib/unistdio/u16-u16-vasprintf.c: New file.
49531         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49532         * lib/unistdio/u16-u16-vsprintf.c: New file.
49533         * lib/unistdio/u32-asnprintf.c: New file.
49534         * lib/unistdio/u32-asprintf.c: New file.
49535         * lib/unistdio/u32-printf-parse.c: New file.
49536         * lib/unistdio/u32-snprintf.c: New file.
49537         * lib/unistdio/u32-sprintf.c: New file.
49538         * lib/unistdio/u32-vasnprintf.c: New file.
49539         * lib/unistdio/u32-vasprintf.c: New file.
49540         * lib/unistdio/u32-vsnprintf.c: New file.
49541         * lib/unistdio/u32-vsprintf.c: New file.
49542         * lib/unistdio/u32-u32-asnprintf.c: New file.
49543         * lib/unistdio/u32-u32-asprintf.c: New file.
49544         * lib/unistdio/u32-u32-snprintf.c: New file.
49545         * lib/unistdio/u32-u32-sprintf.c: New file.
49546         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49547         * lib/unistdio/u32-u32-vasprintf.c: New file.
49548         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49549         * lib/unistdio/u32-u32-vsprintf.c: New file.
49550         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49551         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49552         * tests/unistdio/test-ulc-printf1.h: New file.
49553         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49554         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49555         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49556         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49557         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49558         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49559         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49560         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49561         * tests/unistdio/test-u8-asnprintf1.c: New file.
49562         * tests/unistdio/test-u8-asnprintf1.h: New file.
49563         * tests/unistdio/test-u8-printf1.h: New file.
49564         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49565         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49566         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49567         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49568         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49569         * tests/unistdio/test-u8-vasprintf1.c: New file.
49570         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49571         * tests/unistdio/test-u8-vsprintf1.c: New file.
49572         * tests/unistdio/test-u16-asnprintf1.c: New file.
49573         * tests/unistdio/test-u16-asnprintf1.h: New file.
49574         * tests/unistdio/test-u16-printf1.h: New file.
49575         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49576         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49577         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49578         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49579         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49580         * tests/unistdio/test-u16-vasprintf1.c: New file.
49581         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49582         * tests/unistdio/test-u16-vsprintf1.c: New file.
49583         * tests/unistdio/test-u32-asnprintf1.c: New file.
49584         * tests/unistdio/test-u32-asnprintf1.h: New file.
49585         * tests/unistdio/test-u32-printf1.h: New file.
49586         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49587         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49588         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49589         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49590         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49591         * tests/unistdio/test-u32-vasprintf1.c: New file.
49592         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49593         * tests/unistdio/test-u32-vsprintf1.c: New file.
49594         * modules/unistdio/base: New file.
49595         * modules/unistdio/u-printf-args: New file.
49596         * modules/unistdio/ulc-asnprintf: New file.
49597         * modules/unistdio/ulc-asprintf: New file.
49598         * modules/unistdio/ulc-fprintf: New file.
49599         * modules/unistdio/ulc-printf-parse: New file.
49600         * modules/unistdio/ulc-snprintf: New file.
49601         * modules/unistdio/ulc-sprintf: New file.
49602         * modules/unistdio/ulc-vasnprintf: New file.
49603         * modules/unistdio/ulc-vasprintf: New file.
49604         * modules/unistdio/ulc-vfprintf: New file.
49605         * modules/unistdio/ulc-vsnprintf: New file.
49606         * modules/unistdio/ulc-vsprintf: New file.
49607         * modules/unistdio/u8-asnprintf: New file.
49608         * modules/unistdio/u8-asprintf: New file.
49609         * modules/unistdio/u8-printf-parse: New file.
49610         * modules/unistdio/u8-snprintf: New file.
49611         * modules/unistdio/u8-sprintf: New file.
49612         * modules/unistdio/u8-vasnprintf: New file.
49613         * modules/unistdio/u8-vasprintf: New file.
49614         * modules/unistdio/u8-vsnprintf: New file.
49615         * modules/unistdio/u8-vsprintf: New file.
49616         * modules/unistdio/u8-u8-asnprintf: New file.
49617         * modules/unistdio/u8-u8-asprintf: New file.
49618         * modules/unistdio/u8-u8-snprintf: New file.
49619         * modules/unistdio/u8-u8-sprintf: New file.
49620         * modules/unistdio/u8-u8-vasnprintf: New file.
49621         * modules/unistdio/u8-u8-vasprintf: New file.
49622         * modules/unistdio/u8-u8-vsnprintf: New file.
49623         * modules/unistdio/u8-u8-vsprintf: New file.
49624         * modules/unistdio/u16-asnprintf: New file.
49625         * modules/unistdio/u16-asprintf: New file.
49626         * modules/unistdio/u16-printf-parse: New file.
49627         * modules/unistdio/u16-snprintf: New file.
49628         * modules/unistdio/u16-sprintf: New file.
49629         * modules/unistdio/u16-vasnprintf: New file.
49630         * modules/unistdio/u16-vasprintf: New file.
49631         * modules/unistdio/u16-vsnprintf: New file.
49632         * modules/unistdio/u16-vsprintf: New file.
49633         * modules/unistdio/u16-u16-asnprintf: New file.
49634         * modules/unistdio/u16-u16-asprintf: New file.
49635         * modules/unistdio/u16-u16-snprintf: New file.
49636         * modules/unistdio/u16-u16-sprintf: New file.
49637         * modules/unistdio/u16-u16-vasnprintf: New file.
49638         * modules/unistdio/u16-u16-vasprintf: New file.
49639         * modules/unistdio/u16-u16-vsnprintf: New file.
49640         * modules/unistdio/u16-u16-vsprintf: New file.
49641         * modules/unistdio/u32-asnprintf: New file.
49642         * modules/unistdio/u32-asprintf: New file.
49643         * modules/unistdio/u32-printf-parse: New file.
49644         * modules/unistdio/u32-snprintf: New file.
49645         * modules/unistdio/u32-sprintf: New file.
49646         * modules/unistdio/u32-vasnprintf: New file.
49647         * modules/unistdio/u32-vasprintf: New file.
49648         * modules/unistdio/u32-vsnprintf: New file.
49649         * modules/unistdio/u32-vsprintf: New file.
49650         * modules/unistdio/u32-u32-asnprintf: New file.
49651         * modules/unistdio/u32-u32-asprintf: New file.
49652         * modules/unistdio/u32-u32-snprintf: New file.
49653         * modules/unistdio/u32-u32-sprintf: New file.
49654         * modules/unistdio/u32-u32-vasnprintf: New file.
49655         * modules/unistdio/u32-u32-vasprintf: New file.
49656         * modules/unistdio/u32-u32-vsnprintf: New file.
49657         * modules/unistdio/u32-u32-vsprintf: New file.
49658         * modules/unistdio/ulc-asnprintf-tests: New file.
49659         * modules/unistdio/ulc-vasnprintf-tests: New file.
49660         * modules/unistdio/ulc-vasprintf-tests: New file.
49661         * modules/unistdio/ulc-vsnprintf-tests: New file.
49662         * modules/unistdio/ulc-vsprintf-tests: New file.
49663         * modules/unistdio/u8-asnprintf-tests: New file.
49664         * modules/unistdio/u8-vasnprintf-tests: New file.
49665         * modules/unistdio/u8-vasprintf-tests: New file.
49666         * modules/unistdio/u8-vsnprintf-tests: New file.
49667         * modules/unistdio/u8-vsprintf-tests: New file.
49668         * modules/unistdio/u16-asnprintf-tests: New file.
49669         * modules/unistdio/u16-vasnprintf-tests: New file.
49670         * modules/unistdio/u16-vasprintf-tests: New file.
49671         * modules/unistdio/u16-vsnprintf-tests: New file.
49672         * modules/unistdio/u16-vsprintf-tests: New file.
49673         * modules/unistdio/u32-asnprintf-tests: New file.
49674         * modules/unistdio/u32-vasnprintf-tests: New file.
49675         * modules/unistdio/u32-vasprintf-tests: New file.
49676         * modules/unistdio/u32-vsnprintf-tests: New file.
49677         * modules/unistdio/u32-vsprintf-tests: New file.
49678         * MODULES.html.sh (Unicode string functions): Add the new modules.
49679
49680 2007-07-01  Bruno Haible  <bruno@clisp.org>
49681
49682         * lib/sprintf.c (sprintf): Limit the available length estimation,
49683         to avoid address wraparound.
49684         * lib/vsprintf.c (vsprintf): Likewise.
49685         * modules/sprintf-posix (Dependencies): Add stdint.
49686         * modules/vsprintf-posix (Dependencies): Likewise.
49687
49688 2007-07-01  Bruno Haible  <bruno@clisp.org>
49689
49690         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49691         Windows PATH as well. Conservative double-quoting. Comments.
49692
49693 2007-07-01  Bruno Haible  <bruno@clisp.org>
49694             Eric Blake  <ebb9@byu.net>
49695             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49696
49697         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49698         empty components in $PATH, denoting '.'.
49699
49700 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49701
49702         * gnulib-tool: Fix indentation.
49703         (func_create_megatestdir): Likewise.
49704         Report by Bruno Haible.
49705
49706 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49707
49708         Sync from Automake.
49709         * build-aux/gnupload: Fix shell portability issues with for loops.
49710         Report by Karl Berry.
49711
49712 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49713
49714         * build-aux/maint.mk (POURL): Use translationproject.org.
49715
49716 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49717             Bruno Haible  <bruno@clisp.org>
49718
49719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49720         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49721         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49722         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49723         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49724
49725 2007-06-27  Bruno Haible  <bruno@clisp.org>
49726
49727         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49728         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49729
49730 2007-06-26  Karl Berry  <karl@gnu.org>
49731
49732         * MODULES.html.sh: remove xreadlink-with-size.
49733
49734 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49735
49736         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49737         method that I hope also handles the double-include problem noted
49738         by Bruno Haible in
49739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49740
49741 2007-06-23  Bruno Haible  <bruno@clisp.org>
49742
49743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49744         Don't let the 'mostlyclean' target fail if the last subdirectory could
49745         not be removed.
49746         Reported by Karl Berry.
49747
49748 2007-06-23  Bruno Haible  <bruno@clisp.org>
49749
49750         * gnulib-tool (echo): Add a speedier workaround for ksh.
49751         * tests/test-echo.sh: Likewise.
49752
49753 2007-06-23  Bruno Haible  <bruno@clisp.org>
49754
49755         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49756         * tests/test-echo.sh: Likewise.
49757
49758 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49759
49760         * gnulib-tool (IFS): Initialize early, so we don't set it to
49761         empty later.
49762         (self_abspathname): Rewrite algorithm to set it, reindent.
49763         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49764         (func_create_megatestdir): Merge some sed scripts.
49765
49766 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49767
49768         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49769         exposed by Sun Studio 11 cc on Solaris 8.
49770
49771 2007-06-22  Bruno Haible  <bruno@clisp.org>
49772
49773         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49774         backslashes.
49775         * tests/test-echo.sh: New file.
49776
49777 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49778
49779         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49780         simplify `sed_replace_build_aux' scripts, they are portable but
49781         echoing them with `echo' is not.
49782         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49783
49784 2007-06-21  Karl Berry  <karl@gnu.org>
49785
49786         * config/srclist.txt: guess we can't handle the licenses via
49787         srclist at the moment.
49788
49789 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49790
49791         * MODULES.html.sh: Add include_next.
49792         * modules/include_next: New file.
49793
49794 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49795
49796         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49797         INCLUDE_NEXT.
49798         (gl_CHECK_NEXT_HEADERS): New macro.
49799         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49800         the obsolescent gl_ABSOLUTE_HEADER.
49801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49802         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49803         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49804         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49805         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49806         * m4/math_h.m4 (gl_MATH_H): Likewise.
49807         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49808         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49809         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49810         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49811         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49812         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49813         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49817         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49818         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49819         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49820         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49821         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49822         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49823         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49824         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49825         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49826         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49827         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49828         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49829         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49830         * lib/float_.h: Likewise.
49831         * lib/inttypes_.h: Likewise.
49832         * lib/math_.h: Likewise.
49833         * lib/search_.h: Likewise.
49834         * lib/signal_.h: Likewise.
49835         * lib/stdint_.h: Likewise.
49836         * lib/stdio_.h: Likewise.
49837         * lib/stdlib_.h: Likewise.
49838         * lib/string_.h: Likewise.
49839         * lib/sys_stat_.h: Likewise.
49840         * lib/sys_time_.h: Likewise.
49841         * lib/time_.h: Likewise.
49842         * lib/unistd_.h: Likewise.
49843         * lib/wchar_.h: Likewise.
49844         * lib/wctype_.h: Likewise.
49845         * lib/dirent_.h: Likewise.
49846         * lib/iconv_.h: Likewise.
49847         * lib/locale_.h: Likewise.
49848         * lib/netinet_in_.h: Likewise.
49849         * lib/sys_select_.h: Likewise.
49850         * lib/sys_socket_.h: Likewise.
49851         * lib/sysexits_.h: Likewise.
49852         * modules/fcntl (Depends-on): Depend on include_next, not
49853         absolute_header.
49854         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49855         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49856         * modules/fchdir: Likewise.
49857         * modules/float: Likewise.
49858         * modules/iconv_open: Likewise.
49859         * modules/inttypes: Likewise.
49860         * modules/locale: Likewise.
49861         * modules/math: Likewise.
49862         * modules/netinet_in: Likewise.
49863         * modules/search: Likewise.
49864         * modules/signal: Likewise.
49865         * modules/stdint: Likewise.
49866         * modules/stdio: Likewise.
49867         * modules/stdlib: Likewise.
49868         * modules/string: Likewise.
49869         * modules/sys_select: Likewise.
49870         * modules/sys_socket: Likewise.
49871         * modules/sys_stat: Likewise.
49872         * modules/sys_time: Likewise.
49873         * modules/sysexits: Likewise.
49874         * modules/time: Likewise.
49875         * modules/unistd: Likewise.
49876         * modules/wchar: Likewise.
49877         * modules/wctype: Likewise.
49878         * modules/sys_stat: Change maintainer to "all".
49879         * modules/unistd: Likewise.
49880
49881 2007-06-20  Karl Berry  <karl@gnu.org>
49882
49883         * config/srclist.txt: track www changes in license files.
49884
49885 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49886
49887         * build-aux/bootstrap: Remove stray dot.
49888         Make sure build_aux settings are honored when linking
49889         gnulib_extra_files.
49890
49891 2007-06-19  Eric Blake  <ebb9@byu.net>
49892
49893         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49894         Allow compilation on cygwin.
49895
49896 2007-06-19  Jim Meyering  <jim@meyering.net>
49897
49898         xreadlink-with-size: Remove module.  No longer used.
49899         Ex-callers now use xreadlink or mreadlink-with-size.
49900         * modules/xreadlink-with-size: Remove module.
49901         * lib/xreadlink-with-size.c: Remove file.
49902         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49903         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49904         just before the function definition *is* accurate.
49905
49906         Eliminate one way canonicalize_filename_mode could exit.
49907         * lib/canonicalize.c (canonicalize_filename_mode):
49908         Use mreadlink_with_size, not xreadlink_with_size.
49909
49910 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49911
49912         Detect porting problems to FreeBSD/arm, which has time_t wider than
49913         long int.  Original problem reported for GNU diff by Xin Li in
49914         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49915         * modules/getdate (Depends-on): Add intprops, verify.
49916         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49917         is an integer type no wider than long int.
49918
49919 2007-06-18  Jim Meyering  <jim@meyering.net>
49920
49921         New module: mreadlink-with-size.
49922         * MODULES.html.sh: Add mreadlink-with-size.
49923         * modules/mreadlink-with-size: New module
49924         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49925         not xreadlink-with-size.
49926         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49927
49928 2007-06-16  Bruno Haible  <bruno@clisp.org>
49929
49930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49931         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49932         Reported by Gary V. Vaughan <gary@gnu.org>.
49933
49934 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49935
49936         Revamp lchown so that it lives in unistd.h where it belongs.
49937         * lib/lchown.h: Remove.
49938         * lib/dirchownmod.c: Don't include lib/lchown.h.
49939         * lib/fchownat.c: Likewise.
49940         * lib/openat.c: Likewise.
49941         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49942         does not follow symlinks.
49943         (EOPNOTSUPP): Define if not defined.
49944         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49945         is defined to 0.
49946         (lchown): New decl.
49947         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49948         Do not check for lchown decl.
49949         Set REPLACE_LCHOWN.
49950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49951         REPLACE_LCHOWN.
49952         * modules/chown: Make it clear it follows symlinks.
49953         * modules/lchown: Make it clear it doesn't follow symlinks.
49954         (Files): Remove lib/lchown.h
49955         (Depends-on): Add unistd.
49956         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49957         (Include): Include <unistd.h>, not "lchown.h".
49958         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49959         REPLACE_LCHOWN.
49960
49961 2007-06-15  Jim Meyering  <jim@meyering.net>
49962
49963         Change license (GPL to LGPL) of fsusage and dependents.
49964         * modules/fsusage (License): Change to LGPL.
49965         * modules/full-read (License): Likewise.
49966         * modules/full-write (License): Likewise.
49967         * modules/safe-read (License): Likewise.
49968         * modules/safe-write (License): Likewise.
49969
49970 2007-06-14  Ben Pfaff  <blp@gnu.org>
49971
49972         Missing part of allocsa -> malloca transition.
49973         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49974         gl_MALLOCA.
49975
49976 2007-06-12  Bruno Haible  <bruno@clisp.org>
49977
49978         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49979         to ia64, x86_64, i386.
49980         Reported by Eric Blake.
49981
49982 2007-06-12  Bruno Haible  <bruno@clisp.org>
49983
49984         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49985         cross-compiling to x86_64.
49986
49987 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49988
49989         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49990         glitch reported by Ralf Wildenhues in
49991         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49992
49993         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49994         Vin Shelton.
49995
49996 2007-06-11  Bruno Haible  <bruno@clisp.org>
49997
49998         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49999         replacement string.
50000         Reported by Eric Blake.
50001
50002 2007-06-10  Bruno Haible  <bruno@clisp.org>
50003
50004         Prepare vasnprintf code for use with Unicode strings.
50005         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50006         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50007         TYPE_U32_STRING.
50008         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50009         a_u32_string variants.
50010         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50011         * lib/printf-args.c: Don't include config.h and the specification
50012         header if PRINTF_FETCHARGS is already defined.
50013         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50014         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50015         TYPE_U16_STRING, TYPE_U32_STRING.
50016         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50017         u16_directive, u16_directives, u32_directive, u32_directives): New
50018         types.
50019         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50020         New declarations.
50021         * lib/printf-parse.c: Don't include config.h and the specification
50022         header if PRINTF_PARSE is already defined. Eliminate the set of
50023         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50024         them now. Include c-ctype.h.
50025         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50026         directive and CHAR_T_ONLY_ASCII.
50027         * lib/vasnprintf.c: Don't include config.h and the specification header
50028         if VASNPRINTF is already defined.
50029         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50030         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50031         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50032         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50033         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50034         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50035         code accordingly.
50036         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50037         pad_ourselves also in this case, with the 'c' and 's' directives, and
50038         with a different notion of "width".
50039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50040
50041 2007-06-10  Bruno Haible  <bruno@clisp.org>
50042
50043         * modules/unistr/u32-mbsnlen: New file.
50044         * lib/unistr/u32-mbsnlen.c: New file.
50045
50046         * modules/unistr/u16-mbsnlen: New file.
50047         * lib/unistr/u16-mbsnlen.c: New file.
50048
50049         * modules/unistr/u8-mbsnlen: New file.
50050         * lib/unistr/u8-mbsnlen.c: New file.
50051
50052         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50053         declarations.
50054
50055 2007-06-10  Bruno Haible  <bruno@clisp.org>
50056
50057         * lib/string_.h (mbsnlen): New declaration.
50058         * lib/mbsnlen.c: New file.
50059         * m4/mbsnlen.m4: New file.
50060         * modules/mbsnlen: New file.
50061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50062         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50063         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50064
50065 2007-06-10  Bruno Haible  <bruno@clisp.org>
50066
50067         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50068
50069 2007-06-10  Bruno Haible  <bruno@clisp.org>
50070
50071         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50072         * lib/mbuiter.h: Likewise.
50073
50074 2007-06-10  Bruno Haible  <bruno@clisp.org>
50075
50076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50077         declaration.
50078
50079 2007-06-10  Karl Berry  <karl@gnu.org>
50080
50081         * config/srclist.txt: remove gettext entries, Bruno prefers
50082         to update individually.
50083
50084 2007-06-10  Bruno Haible  <bruno@clisp.org>
50085
50086         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50087         'maxlen'. Ensure only length + width bytes are allocated, not
50088         length + 1 + width.
50089
50090 2007-06-09  Bruno Haible  <bruno@clisp.org>
50091
50092         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50093         (CHAR_T): Remove macro.
50094         (VASNPRINTF): Update.
50095
50096 2007-06-09  Bruno Haible  <bruno@clisp.org>
50097
50098         * MODULES.html.sh (Unicode string functions): Add the new modules.
50099
50100         * modules/uniconv/u32-conv-to-enc: New file.
50101         * lib/uniconv/u32-conv-to-enc.c: New file.
50102         * modules/uniconv/u32-conv-to-enc-tests: New file.
50103         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50104
50105         * modules/uniconv/u16-conv-to-enc: New file.
50106         * lib/uniconv/u16-conv-to-enc.c: New file.
50107         * lib/uniconv/u-conv-to-enc.h: New file.
50108         * modules/uniconv/u16-conv-to-enc-tests: New file.
50109         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50110
50111         * modules/uniconv/u8-conv-to-enc: New file.
50112         * lib/uniconv/u8-conv-to-enc.c: New file.
50113         * modules/uniconv/u8-conv-to-enc-tests: New file.
50114         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50115
50116         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50117         u32_conv_to_encoding): New declarations.
50118
50119 2007-06-09  Bruno Haible  <bruno@clisp.org>
50120
50121         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50122
50123 2007-06-09  Bruno Haible  <bruno@clisp.org>
50124
50125         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50126         * modules/malloca: Renamed from modules/allocsa, updated.
50127         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50128         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50129         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50130         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50131         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50132         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50133         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50134         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50135         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50136         * modules/c-strcasestr (Depends-on): Update.
50137         * lib/c-strcasestr.c: Update.
50138         * modules/c-strstr (Depends-on): Update.
50139         * lib/c-strstr.c: Update.
50140         * modules/canonicalize-lgpl (Depends-on): Update.
50141         * lib/canonicalize-lgpl.c: Update.
50142         * modules/clean-temp (Depends-on): Update.
50143         * lib/clean-temp.c: Update.
50144         * modules/csharpcomp (Depends-on): Update.
50145         * lib/csharpcomp.c: Update.
50146         * modules/csharpexec (Depends-on): Update.
50147         * lib/csharpexec.c: Update.
50148         * modules/javacomp (Depends-on): Update.
50149         * lib/javacomp.c: Update.
50150         * modules/javaexec (Depends-on): Update.
50151         * lib/javaexec.c: Update.
50152         * modules/mbscasestr (Depends-on): Update.
50153         * lib/mbscasestr.c: Update.
50154         * modules/mbsstr (Depends-on): Update.
50155         * lib/mbsstr.c: Update.
50156         * modules/setenv (Depends-on): Update.
50157         * lib/setenv.c: Update.
50158         * modules/strcasestr (Depends-on): Update.
50159         * lib/strcasestr.c: Update.
50160         * modules/striconveha (Depends-on): Update.
50161         * lib/striconveha.c: Update.
50162         * modules/relocatable-prog-wrapper (Files): Update.
50163         * lib/relocwrapper.c: Update.
50164         * build-aux/install-reloc: Update.
50165         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50166
50167 2007-06-08  Bruno Haible  <bruno@clisp.org>
50168
50169         Port to uClibc.
50170         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50171         * lib/fpurge.c (fpurge): Likewise.
50172         * lib/freading.c (freading): Likewise.
50173         * lib/fseeko.c (rpl_fseeko): Likewise.
50174         * lib/fseterr.c (fseterr): Likewise.
50175         * lib/fwriting.c (fwriting): Likewise.
50176         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50177
50178 2007-06-08  Bruno Haible  <bruno@clisp.org>
50179
50180         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50181         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50182         * modules/gettext (Files): Add m4/intlmacosx.m4.
50183
50184 2007-06-07  Bruno Haible  <bruno@clisp.org>
50185
50186         * modules/localename-tests: New file.
50187         * tests/test-localename.c: New file.
50188
50189         New module 'localename'.
50190         * lib/localename.h: New file.
50191         * lib/localename.c: New file, from GNU gettext.
50192         * m4/localename.m4: New file.
50193         * modules/localename: New file.
50194
50195 2007-06-07  Bruno Haible  <bruno@clisp.org>
50196
50197         Work around the lack of <wchar.h> on some builds of uClibc.
50198         * doc/headers/wchar.texi: Update.
50199         * lib/wchar_.h: Include <wchar.h> only if it exists.
50200         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50201         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50202         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50203         doesn't exist.
50204         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50205         * modules/mbfile (Depends-on): Add wchar.
50206         * modules/mbiter (Depends-on): Likewise.
50207         * modules/mbuiter (Depends-on): Likewise.
50208         Reported by Simon Josefsson.
50209
50210 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50211
50212         Work around problem reported by Steven M. Schweda in
50213         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50214         Tru64 5.1B with the Compaq compiler environment installed declares
50215         an 'isblank' function but does not define it in the C library.
50216         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50217         * lib/regex_internal.h (isblank): Likewise.
50218         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50219         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50220
50221 2007-06-05  Bruno Haible  <bruno@clisp.org>
50222
50223         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50224         ia64.
50225         * modules/printf-safe: New file.
50226         * modules/fprintf-posix (Depends-on): Add printf-safe.
50227         * modules/printf-posix (Depends-on): Likewise.
50228         * modules/snprintf-posix (Depends-on): Likewise.
50229         * modules/sprintf-posix (Depends-on): Likewise.
50230         * modules/vasnprintf-posix (Depends-on): Likewise.
50231         * modules/vasprintf-posix (Depends-on): Likewise.
50232         * modules/vfprintf-posix (Depends-on): Likewise.
50233         * modules/vprintf-posix (Depends-on): Likewise.
50234         * modules/vsnprintf-posix (Depends-on): Likewise.
50235         * modules/vsprintf-posix (Depends-on): Likewise.
50236         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50237         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50238         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50239         "no" on i386, x86_64, ia64.
50240         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50241         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50242         on i386, x86_64, ia64.
50243         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50244         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50245         on i386, x86_64, ia64.
50246         * tests/test-vasnprintf-posix.c: Include float.h.
50247         (LDBL80_WORDS): New macro.
50248         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50249         on i386, x86_64, ia64.
50250         * tests/test-vasprintf-posix.c: Include float.h.
50251         (LDBL80_WORDS): New macro.
50252         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50253         on i386, x86_64, ia64.
50254         * tests/test-snprintf-posix.c: Include float.h.
50255         * tests/test-sprintf-posix.c: Likewise.
50256         * tests/test-vsnprintf-posix.c: Likewise.
50257         * tests/test-vsprintf-posix.c: Likewise.
50258
50259 2007-06-05  Bruno Haible  <bruno@clisp.org>
50260
50261         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50262         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50263         non-IEEE numbers on i386, x86_64, ia64.
50264         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50265         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50266         * tests/test-isnanl.h: Include float.h.
50267         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50268
50269 2007-06-05  Bruno Haible  <bruno@clisp.org>
50270
50271         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50272         also the %a / %A. Handle the %a / %A code before this extra handling.
50273
50274 2007-06-05  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50277         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50278
50279 2007-06-05  Bruno Haible  <bruno@clisp.org>
50280
50281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50282         typo in variable name.
50283
50284 2007-06-05  Eric Blake  <ebb9@byu.net>
50285
50286         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50287         Reported by Simon Josefsson.
50288
50289 2007-06-04  Bruno Haible  <bruno@clisp.org>
50290
50291         Avoid test failures on some PowerPC platforms.
50292         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50293         Define differently for PowerPC.
50294         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50295         Reported by Gary V. Vaughan <gary@gnu.org>.
50296
50297 2007-06-02  Bruno Haible  <bruno@clisp.org>
50298
50299         Fix test-stdint failure on FreeBSD/ia64.
50300         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50301         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50302         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50303         * doc/headers/stdint.texi: Update.
50304
50305 2007-06-01  Bruno Haible  <bruno@clisp.org>
50306
50307         * tests/test-binary-io.c (main): Pass a third argument to open().
50308         Reported by Gary V. Vaughan <gary@gnu.org>.
50309
50310 2007-06-01  Bruno Haible  <bruno@clisp.org>
50311
50312         * doc/functions/frexpl.texi: Update for mingw.
50313
50314 2007-06-01  Bruno Haible  <bruno@clisp.org>
50315
50316         * tests/test-lseek.c (main): Disable test of errno for invalid third
50317         argument.
50318         * doc/functions/lseek.texi: Update.
50319         Reported by Gary V. Vaughan <gary@gnu.org>.
50320
50321 2007-05-28  Bruno Haible  <bruno@clisp.org>
50322
50323         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50324
50325 2007-05-31  Eric Blake  <ebb9@byu.net>
50326
50327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50328         cross compiling.
50329
50330 2007-05-30  Eric Blake  <ebb9@byu.net>
50331         and Bruno Haible  <bruno@clisp.org>
50332
50333         Work around mingw test failures exposed by m4-1.4.9b.
50334         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50335         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50336         moment.
50337
50338 2007-05-30  Bruno Haible  <bruno@clisp.org>
50339
50340         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50341         assuming that they are closed. Needed on HP-UX 11.
50342
50343 2007-05-29  Bruno Haible  <bruno@clisp.org>
50344
50345         Fix a problem with #include_next.
50346         * lib/dirent_.h: Split the double-inclusion guard.
50347         * lib/fcntl_.h: Likewise.
50348         * lib/float_.h: Likewise.
50349         * lib/iconv_.h: Likewise.
50350         * lib/inttypes_.h: Likewise.
50351         * lib/locale_.h: Likewise.
50352         * lib/math_.h: Likewise.
50353         * lib/netinet_in_.h: Likewise.
50354         * lib/search_.h: Likewise.
50355         * lib/signal_.h: Likewise.
50356         * lib/stdint_.h: Likewise.
50357         * lib/stdio_.h: Likewise.
50358         * lib/stdlib_.h: Likewise.
50359         * lib/string_.h: Likewise.
50360         * lib/sys_select_.h: Likewise.
50361         * lib/sys_socket_.h: Likewise.
50362         * lib/sys_stat_.h: Likewise.
50363         * lib/sys_time_.h: Likewise.
50364         * lib/sysexits_.h: Likewise.
50365         * lib/time_.h: Likewise.
50366         * lib/unistd_.h: Likewise.
50367         * lib/wchar_.h: Likewise.
50368         * lib/wctype_.h: Likewise.
50369
50370 2007-05-29  Bruno Haible  <bruno@clisp.org>
50371
50372         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50373         for the moment.
50374
50375 2007-05-29  Bruno Haible  <bruno@clisp.org>
50376
50377         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50378         invocation.
50379         Reported by Eric Blake.
50380
50381 2007-05-29  Bruno Haible  <bruno@clisp.org>
50382
50383         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50384         compiling case.
50385
50386 2007-05-29  Eric Blake  <ebb9@byu.net>
50387             Bruno Haible  <bruno@clisp.org>
50388
50389         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50390         cross compiles.
50391
50392 2007-05-28  Eric Blake  <ebb9@byu.net>
50393
50394         * modules/closein-tests (test_closein_LDADD): Support test on
50395         cygwin with libtool.
50396
50397 2007-05-28  Bruno Haible  <bruno@clisp.org>
50398
50399         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50400         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50401         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50402         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50403         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50404         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50405         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50406         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50407         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50408
50409 2007-05-28  Eric Blake  <ebb9@byu.net>
50410
50411         Unconditionally include <config.h> in unit tests.
50412         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50413         * tests/test-allocsa.c, tests/test-arcfour.c,
50414         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50415         tests/test-array_list.c, tests/test-array_oset.c,
50416         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50417         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50418         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50419         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50420         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50421         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50422         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50423         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50424         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50425         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50426         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50427         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50428         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50429         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50430         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50431         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50432         test-md5.c, test-memmem.c, test-printf-posix.c,
50433         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50434         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50435         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50436         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50437         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50438         test-vasnprintf-posix2.c, test-vasnprintf.c,
50439         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50440         test-vfprintf-posix.c, test-vprintf-posix.c,
50441         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50442         test-xvasprintf.c: Likewise.
50443
50444 2007-05-28  Bruno Haible  <bruno@clisp.org>
50445
50446         * gnulib-tool (func_import): Remember the --with-tests command-line
50447         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50448         Reported by Eric Blake.
50449
50450 2007-05-28  Bruno Haible  <bruno@clisp.org>
50451
50452         * modules/ftell-tests: New file.
50453         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50454         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50455
50456         * lib/ftell.c: New file.
50457         * modules/ftell: New file.
50458         * m4/ftell.m4: New file.
50459         * doc/functions/ftell.texi: Update.
50460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50461         REPLACE_FTELL.
50462         * lib/stdio_.h (rpl_ftell): New declaration.
50463         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50464         REPLACE_FTELL.
50465
50466 2007-05-28  Eric Blake  <ebb9@byu.net>
50467
50468         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50469
50470 2007-05-28  Bruno Haible  <bruno@clisp.org>
50471
50472         * modules/fseek-tests: New file.
50473         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50474         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50475
50476         * lib/fseek.c: New file.
50477         * modules/fseek: New file.
50478         * m4/fseek.m4: New file.
50479         * doc/functions/fseek.texi: Update.
50480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50481         REPLACE_FSEEK.
50482         * lib/stdio_.h (rpl_fseek): New declaration.
50483         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50484         REPLACE_FSEEK.
50485
50486 2007-05-28  Bruno Haible  <bruno@clisp.org>
50487
50488         * lib/stdio_.h (fflush): More comments.
50489
50490 2007-05-28  Bruno Haible  <bruno@clisp.org>
50491
50492         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50493         runtime test.
50494
50495 2007-05-28  Eric Blake  <ebb9@byu.net>
50496
50497         Improve lseek module.
50498         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50499         * lib/unistd_.h (lseek): Scale back link warning message.
50500         * tests/test-lseek.c: Beef up test.
50501         * tests/test-lseek.sh: Exercise more facets of lseek.
50502         Reported by Bruno Haible.
50503
50504 2007-05-28  Bruno Haible  <bruno@clisp.org>
50505
50506         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50507         to define.
50508
50509 2007-05-27  Bruno Haible  <bruno@clisp.org>
50510
50511         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50512
50513 2007-05-27  Bruno Haible  <bruno@clisp.org>
50514
50515         * modules/openmp: New file.
50516         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50517         Noah Misch.
50518
50519 2007-05-26  Bruno Haible  <bruno@clisp.org>
50520
50521         * modules/chdir-long (Depends-on): Add fchdir.
50522         * modules/chdir-safer (Depends-on): Likewise.
50523         * modules/fts (Depends-on): Likewise.
50524         * modules/fts-lgpl (Depends-on): Likewise.
50525         * modules/openat (Depends-on): Likewise.
50526         * modules/savewd (Depends-on): Likewise.
50527
50528 2007-05-24  Eric Blake  <ebb9@byu.net>
50529
50530         Fix lseek on mingw.
50531         * modules/lseek: New module.
50532         * m4/lseek.m4: New file.
50533         * lib/lseek.c: New file.
50534         * modules/lseek-tests: New file.
50535         * tests/test-lseek.c: New file.
50536         * tests/test-lseek.sh: New file.
50537         * MODULES.html.sh: Document lseek module.
50538         * modules/fflush (Depends-on): Add lseek, fseeko.
50539         * modules/fseeko (Depends-on): Likewise.
50540         * modules/ftello (Depends-on): Likewise.
50541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50542         broken.
50543         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50544         broken.
50545         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50546         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50547         * lib/ftello.c (rpl_ftello): Likewise.
50548         * tests/test-fseeko.c (main): Test this.
50549         * tests/test-fseeko.sh: Likewise.
50550         * tests/test-ftello.c (main): Likewise.
50551         * tests/test-ftello.sh: Likewise.
50552         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50553         implies replacing fseek.
50554         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50555         HAVE_FTELLO.
50556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50557         * modules/unistd (Makefile.am): Likewise.
50558         * lib/unistd_.h (lseek): Declare a replacement.
50559         * doc/functions/lseek.texi (lseek): Document this fix.
50560         * doc/functions/fseek.texi (fseek): Likewise.
50561         * doc/functions/ftell.texi (ftell): Likewise.
50562
50563 2007-05-24  Bruno Haible  <bruno@clisp.org>
50564
50565         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50566         in the printed representation of a NaN.
50567         * tests/test-vasprintf-posix.c (test_function): Likewise.
50568         * tests/test-snprintf-posix.h (test_function): Likewise.
50569         * tests/test-sprintf-posix.h (test_function): Likewise.
50570         Reported by Eric Blake.
50571
50572 2007-05-23  Eric Blake  <ebb9@byu.net>
50573
50574         Fix fseeko/ftello on cygwin 1.5.24.
50575         * doc/functions/fseeko.texi (fseeko): Document the fix.
50576         * doc/functions/ftello.texi (ftello): Document the fix.
50577         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50578         * doc/functions/stdout.text (stdout): New file.
50579         * doc/functions/stderr.text (stderr): New file.
50580         * doc/gnulib.texi (Function Substitutes): Use new files.
50581         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50582         prior to 1.7.0.
50583         * tests/test-ftello.c (main): Likewise for ftello.
50584         * tests/test-fseeko.sh: New file.
50585         * tests/test-ftello.sh: New file.
50586         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50587         with seekable stdin.
50588         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50589         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50590         (gl_REPLACE_FSEEKO): New macro.
50591         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50592         * modules/fseeko (Files): Distribute fseeko.c.
50593         * modules/ftello (Files): Distribute ftello.c.
50594         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50595         mode.
50596         * lib/ftello.c (rpl_ftello): New file.
50597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50598         fseeko, ftello.
50599         (gl_STDIN_LARGE_OFFSET): New macro.
50600         * modules/stdio (Makefile.am): Perform the replacement.
50601         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50602
50603 2007-05-23  Bruno Haible  <bruno@clisp.org>
50604
50605         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50606         GNULIB_POSIXCHECK is defined.
50607
50608 2007-05-21  Bruno Haible  <bruno@clisp.org>
50609
50610         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50611         Check also the output for NaN arguments. When cross-compiling, guess
50612         no on IRIX.
50613         * lib/vasnprintf.c: Update comments.
50614         * tests/test-vasnprintf-posix.c (strisnan): New function.
50615         (test_function): Use it.
50616         * tests/test-vasprintf-posix.c (strisnan): New function.
50617         (test_function): Use it.
50618         * tests/test-snprintf-posix.h (strisnan): New function.
50619         (test_function): Use it.
50620         * tests/test-sprintf-posix.h (strisnan): New function.
50621         (test_function): Use it.
50622         Reported by Eric Blake.
50623
50624 2007-05-20  Bruno Haible  <bruno@clisp.org>
50625
50626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50627         numbers that fails on BeOS.
50628         * doc/functions/frexpl.texi: Update.
50629
50630 2007-05-20  Jim Meyering  <jim@meyering.net>
50631
50632         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50633         forced upon us by glibc-2.6.
50634
50635 2007-05-20  Bruno Haible  <bruno@clisp.org>
50636
50637         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50638         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50639         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50640         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50641         NEED_PRINTF_INFINITE.
50642         (is_infinitel): New function.
50643         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50645         gl_PREREQ_VASNPRINTF_INFINITE.
50646         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50647         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50648         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50649         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50650         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50651         gl_PREREQ_VASNPRINTF_INFINITE.
50652         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50653         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50655         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50656         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50657         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50659         * doc/functions/fprintf.texi: Update.
50660         * doc/functions/printf.texi: Update.
50661         * doc/functions/snprintf.texi: Update.
50662         * doc/functions/sprintf.texi: Update.
50663         * doc/functions/vfprintf.texi: Update.
50664         * doc/functions/vprintf.texi: Update.
50665         * doc/functions/vsnprintf.texi: Update.
50666         * doc/functions/vsprintf.texi: Update.
50667
50668 2007-05-20  Bruno Haible  <bruno@clisp.org>
50669
50670         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50671         was not found in libc.
50672         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50673
50674 2007-05-20  Bruno Haible  <bruno@clisp.org>
50675
50676         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50677         printed as "-nan" instead of "nan".
50678         * tests/test-vasprintf-posix.c (test_function): Likewise.
50679         * tests/test-snprintf-posix.h (test_function): Likewise.
50680         * tests/test-sprintf-posix.h (test_function): Likewise.
50681         Needed for HP-UX 11.
50682
50683 2007-05-20  Jim Meyering  <jim@meyering.net>
50684
50685         Fix buggy test for the fchownat-deref bug.
50686         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50687         symlink required for the run-test.  Without it, this test would
50688         always declare that fchownat doesn't work, and client code would
50689         unnecessarily use the replacement function with fixed libc.
50690         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50691         Reported by Greg Schafer.
50692
50693 2007-05-19  Bruno Haible  <bruno@clisp.org>
50694
50695         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50696         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50697         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50698         Needed for IRIX 6.5 and Solaris 2.5.1.
50699
50700 2007-05-19  Bruno Haible  <bruno@clisp.org>
50701
50702         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50703         (test_function): Skip tests involving -0.0 on platforms where
50704         -0.0 = 0.0.
50705         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50706         (test_function): Skip tests involving -0.0 on platforms where
50707         -0.0 = 0.0.
50708         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50709         (test_function): Skip tests involving -0.0 on platforms where
50710         -0.0 = 0.0.
50711         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50712         (test_function): Skip tests involving -0.0 on platforms where
50713         -0.0 = 0.0.
50714         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50715         tests.
50716         * tests/test-printf-posix.h (test_function): Likewise.
50717         * tests/test-printf-posix.output: Remove all -0.0 related results.
50718         Needed for IRIX 6.5.
50719
50720 2007-05-19  Bruno Haible  <bruno@clisp.org>
50721
50722         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50723         printed as "nan0x7fffffff" instead of "nan".
50724         * tests/test-vasprintf-posix.c (test_function): Likewise.
50725         * tests/test-snprintf-posix.h (test_function): Likewise.
50726         * tests/test-sprintf-posix.h (test_function): Likewise.
50727         * tests/test-fprintf-posix.h (NaN): Remove macro.
50728         (test_function): Remove all NaN related tests.
50729         * tests/test-printf-posix.h (NaN): Remove macro.
50730         (test_function): Remove all NaN related tests.
50731         * tests/test-printf-posix.output: Remove all NaN related results.
50732         Needed for IRIX 6.5.
50733
50734 2007-05-19  Bruno Haible  <bruno@clisp.org>
50735
50736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50738
50739 2007-05-19  Bruno Haible  <bruno@clisp.org>
50740
50741         * lib/float_.h: New file.
50742         * m4/float_h.m4: New file.
50743         * modules/float: New file.
50744         * modules/isnanl (Dependencies): Add float.
50745         * modules/isnanl-nolibm (Dependencies): Likewise.
50746         * modules/mathl (Dependencies): Likewise.
50747         * modules/printf-frexpl (Dependencies): Likewise.
50748         * modules/signbit (Dependencies): Likewise.
50749         * modules/vasnprintf (Dependencies): Likewise.
50750         * doc/headers/float.texi: Update.
50751
50752 2007-05-19  Jim Meyering  <jim@meyering.net>
50753
50754         * lib/utimens.c (gl_futimens): Rename from futimens,
50755         now that glibc-2.6 declares futimens.
50756         * lib/utimens.h: Likewise.
50757
50758 2007-05-19  Bruno Haible  <bruno@clisp.org>
50759
50760         Avoid test failures on mingw.
50761         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50762         * tests/test-printf-posix.sh: Likewise.
50763         * tests/test-vfprintf-posix.sh: Likewise.
50764         * tests/test-vprintf-posix.sh: Likewise.
50765
50766 2007-05-19  Bruno Haible  <bruno@clisp.org>
50767
50768         Fix *printf result for NaN, Inf, -0.0 on mingw.
50769         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50770         * lib/vasnprintf.c: Include math.h and isnan.h.
50771         (is_infinite_or_zero): New function.
50772         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50773         values in the %f, %F, %e, %E, %g, %G directives.
50774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50775         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50776         gl_PRINTF_INFINITE and test its result. Invoke
50777         gl_PREREQ_VASNPRINTF_INFINITE.
50778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50779         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50780         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50781         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50782         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50784         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50785         * doc/functions/fprintf.texi: Update.
50786         * doc/functions/printf.texi: Update.
50787         * doc/functions/snprintf.texi: Update.
50788         * doc/functions/sprintf.texi: Update.
50789         * doc/functions/vfprintf.texi: Update.
50790         * doc/functions/vprintf.texi: Update.
50791         * doc/functions/vsnprintf.texi: Update.
50792         * doc/functions/vsprintf.texi: Update.
50793
50794 2007-05-19  Bruno Haible  <bruno@clisp.org>
50795
50796         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50797         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50798         Instead of multiplying with 10^k, set extra_zeroes to k.
50799         (scale10_round_long_double): Remove function.
50800
50801 2007-05-18  Bruno Haible  <bruno@clisp.org>
50802
50803         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50804         introduced on 2007-05-06.
50805
50806 2007-05-18  Bruno Haible  <bruno@clisp.org>
50807
50808         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50809         %g directives.
50810         * tests/test-vasprintf-posix.c (test_function): Likewise.
50811         * tests/test-snprintf-posix.h (test_function): Likewise.
50812         * tests/test-sprintf-posix.h (test_function): Likewise.
50813
50814 2007-05-18  Bruno Haible  <bruno@clisp.org>
50815
50816         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50817         (strmatch): New function.
50818         (test_function): Test the %f directive on numbers of various exponents.
50819         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50820         (strmatch): New function.
50821         (test_function): Test the %f directive on numbers of various exponents.
50822         * tests/test-snprintf-posix.h (strmatch): New function.
50823         (test_function): Test the %f directive on numbers of various exponents.
50824         * tests/test-sprintf-posix.h (strmatch): New function.
50825         (test_function): Test the %f directive on numbers of various exponents.
50826         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50827         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50828         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50829         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50830
50831 2007-05-18  Bruno Haible  <bruno@clisp.org>
50832
50833         Add support for 'long double' number output.
50834         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50835         * lib/vasnprintf.c: Include math.h and float+.h.
50836         (mp_limb_t): New type.
50837         (GMP_LIMB_BITS): New macro.
50838         (mp_twolimb_t): New type.
50839         (GMP_TWOLIMB_BITS): New macro.
50840         (mpn_t): New type.
50841         (multiply, divide, convert_to_decimal, decode_long_double,
50842         scale10_round_long_double, scale10_round_decimal_long_double,
50843         floorlog10l): New functions.
50844         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50845         for the %f, %F, %e, %E, %g, %G directives.
50846         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50848         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50849         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50851         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50852         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50853         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50854         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50856         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50857         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50858         * modules/snprintf-posix (Depends-on): Likewise.
50859         * modules/sprintf-posix (Depends-on): Likewise.
50860         * modules/vasnprintf-posix (Depends-on): Likewise.
50861         * modules/vasprintf-posix (Depends-on): Likewise.
50862         * modules/vfprintf-posix (Depends-on): Likewise.
50863         * modules/vsnprintf-posix (Depends-on): Likewise.
50864         * modules/vsprintf-posix (Depends-on): Likewise.
50865         * modules/vasnprintf (Files): Add lib/float+.h.
50866         * doc/functions/fprintf.texi: Update.
50867         * doc/functions/printf.texi: Update.
50868         * doc/functions/snprintf.texi: Update.
50869         * doc/functions/sprintf.texi: Update.
50870         * doc/functions/vfprintf.texi: Update.
50871         * doc/functions/vprintf.texi: Update.
50872         * doc/functions/vsnprintf.texi: Update.
50873         * doc/functions/vsprintf.texi: Update.
50874
50875 2007-05-18  Bruno Haible  <bruno@clisp.org>
50876
50877         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50878
50879 2007-05-18  Bruno Haible  <bruno@clisp.org>
50880
50881         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50882         for printing 64-bit integers. Needed for mingw.
50883
50884 2007-05-18  Bruno Haible  <bruno@clisp.org>
50885
50886         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50887         gl_FUNC_FREXPL_WORKS.
50888         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50889
50890 2007-05-18  Bruno Haible  <bruno@clisp.org>
50891
50892         * modules/frexpl-nolibm-tests: New file.
50893
50894         * modules/frexpl-nolibm: New file.
50895         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50896
50897 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50898
50899         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50900         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50901         GCC 4.2, which otherwise issues a lot of warnings.
50902         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50903         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50904         Likewise.
50905         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50906         * modules/iconv_open (iconv.h): Likewise.
50907         * modules/locale (locale.h): Likewise.
50908         * modules/netinet_in (netinet/in.h): Likewise.
50909         * modules/sys_select (sys_select.h): Likewise.
50910         * modules/sys_socket (sys/socket.h): Likewise.
50911         * modules/sys_stat (sys/stat.h): Likewise.
50912         * modules/sysexits (sysexits.h): Likewise.
50913         * modules/unistd (unistd.h): Likewise.
50914
50915 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50916
50917         * modules/closein-tests (Makefile.am): Distribute
50918         `test-closein.sh'.
50919
50920 2007-05-17  Bruno Haible  <bruno@clisp.org>
50921
50922         * tests/test-printf-posix.output: Renamed from
50923         tests/test-fprintf-posix.out.
50924         * modules/fprintf-posix-tests: Update.
50925         * modules/printf-posix-tests: Update.
50926         * modules/vfprintf-posix-tests: Update.
50927         * modules/vprintf-posix-tests: Update.
50928         * tests/test-fprintf-posix.sh: Update.
50929         * tests/test-printf-posix.sh: Update.
50930         * tests/test-vfprintf-posix.sh: Update.
50931         * tests/test-vprintf-posix.sh: Update.
50932         Reported by Ralf Wildenhues.
50933
50934 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50935
50936         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50937         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50938         GCC 4.2, which otherwise issues a lot of warnings.
50939         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50940         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50941         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50942         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50943         it should no longer be needed.
50944         * lib/string_.h: Likewise.
50945         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50946         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50947         * modules/inttypes (inttypes.h): Likewise.
50948         * modules/math (math.h): Likewise.
50949         * modules/search (search.h): Likewise.
50950         * modules/signal (signal.h): Likewise.
50951         * modules/stdint (stdint.h): Likewise.
50952         * modules/stdio (stdio.h): Likewise.
50953         * modules/stdlib (stdlib.h): Likewise.
50954         * modules/string (string.h): Likewise.
50955         * modules/sys_time (sys/time.h): Likewise.
50956         * modules/time (time.h): Likewise.
50957         * modules/wchar (wchar.h): Likewise.
50958         * modules/wctype (wtype.h): Likewise.
50959
50960 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50961
50962         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50963
50964 2007-05-13  Bruno Haible  <bruno@clisp.org>
50965
50966         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50967         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50968         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50969         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50970         (gl_PREREQ_STRTOK_R): Don't require it here.
50971
50972 2007-05-13  Bruno Haible  <bruno@clisp.org>
50973
50974         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50975         when used in C++ mode.
50976
50977 2007-05-12  Bruno Haible  <bruno@clisp.org>
50978
50979         * lib/linebuffer.h: Tweak doc.
50980         * lib/linebuffer.c: Likewise.
50981
50982 2007-05-12  James Youngman  <jay@gnu.org>
50983
50984         * lib/linebuffer.c (readlinebuffer_delim): New function,
50985         like readlinebuffer, but use a caller-specified delimiter.
50986         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50987         as the delimiter.
50988         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50989
50990 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50991
50992         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50993         * modules/openat (Files): Remove openat-die.c.
50994         (Depends-on): Add openat-die.
50995         * modules/openat-die: New module.
50996
50997 2007-05-06  Bruno Haible  <bruno@clisp.org>
50998
50999         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51000         Update with info about Cygwin.
51001         * doc/functions/fprintf.texi: Update.
51002         * doc/functions/printf.texi: Update.
51003         * doc/functions/snprintf.texi: Update.
51004         * doc/functions/sprintf.texi: Update.
51005         * doc/functions/vfprintf.texi: Update.
51006         * doc/functions/vprintf.texi: Update.
51007         * doc/functions/vsnprintf.texi: Update.
51008         * doc/functions/vsprintf.texi: Update.
51009         Reported by Eric Blake.
51010
51011 2007-05-06  Bruno Haible  <bruno@clisp.org>
51012
51013         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51014         padding ourselves for the floating-point directives.
51015         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51017         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51018         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51019         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51020         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51022         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51023         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51024         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51027         * tests/test-snprintf-posix.h (test_function): Also check the width
51028         and some flags in the %f directive.
51029         * tests/test-sprintf-posix.h (test_function): Likewise.
51030         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51031         * tests/test-vasprintf-posix.c (test_function): Likewise.
51032         * doc/functions/fprintf.texi: Update.
51033         * doc/functions/printf.texi: Update.
51034         * doc/functions/snprintf.texi: Update.
51035         * doc/functions/sprintf.texi: Update.
51036         * doc/functions/vfprintf.texi: Update.
51037         * doc/functions/vprintf.texi: Update.
51038         * doc/functions/vsnprintf.texi: Update.
51039         * doc/functions/vsprintf.texi: Update.
51040
51041 2007-05-06  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51044         pass the ' flag character to sprintf or snprintf.
51045         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51048         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51049         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51050         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51054         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51056         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51057         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51058         flag.
51059         * tests/test-sprintf-posix.h (test_function): Likewise.
51060         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51061         * tests/test-vasprintf-posix.c (test_function): Likewise.
51062         * doc/functions/fprintf.texi: Update.
51063         * doc/functions/printf.texi: Update.
51064         * doc/functions/snprintf.texi: Update.
51065         * doc/functions/sprintf.texi: Update.
51066         * doc/functions/vfprintf.texi: Update.
51067         * doc/functions/vprintf.texi: Update.
51068         * doc/functions/vsnprintf.texi: Update.
51069         * doc/functions/vsprintf.texi: Update.
51070
51071 2007-05-01  Bruno Haible  <bruno@clisp.org>
51072
51073         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51074
51075 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51076
51077         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51078         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51079
51080 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51081
51082         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51083         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51084         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51085
51086 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51087
51088         * lib/argp-help.c (struct hol_entry): New member `ord'.
51089         (HOL_ENTRY_PTRCMP): Use ord for comparison
51090         (hol_sort): Initialize ord.
51091
51092 2007-05-01  Bruno Haible  <bruno@clisp.org>
51093
51094         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51095         Reported by Eric Blake.
51096         * doc/gnulib.texi (Function Substitutes): Update.
51097
51098 2007-05-01  Bruno Haible  <bruno@clisp.org>
51099
51100         * doc/functions.texi: Remove file, now redundant through
51101         doc/functions/*.texi.
51102
51103 2007-05-01  Bruno Haible  <bruno@clisp.org>
51104
51105         * modules/argp (Depends-on): Add sleep.
51106
51107 2007-05-01  Bruno Haible  <bruno@clisp.org>
51108
51109         * modules/sleep-tests: New file.
51110         * tests/test-sleep.c: New file.
51111
51112         * modules/sleep: New file.
51113         * lib/sleep.c: New file.
51114         * m4/sleep.m4: New file.
51115         * lib/unistd_.h (sleep): New declaration.
51116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51117         HAVE_SLEEP.
51118         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51119         * doc/functions/sleep.texi: Document the sleep module.
51120
51121 2007-05-01  Bruno Haible  <bruno@clisp.org>
51122
51123         * lib/sigprocmask.h: Remove file.
51124         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51125         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51126         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51127         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51128         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51129         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51130         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51131         HAVE_SIGSET_T as a shell variable.
51132         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51133         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51134         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51135         (Depends-on): Add signal. Remove verify.
51136         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51137         (Include): Mention <signal.h> instead of sigprocmask.h.
51138         * NEWS: Mention the change.
51139         * lib/fatal-signal.c: Don't include sigprocmask.h.
51140
51141 2007-05-01  Bruno Haible  <bruno@clisp.org>
51142
51143         * modules/signal: New file.
51144         * lib/signal_.h: New file.
51145         * m4/signal_h.m4: New file.
51146
51147 2007-05-01  Bruno Haible  <bruno@clisp.org>
51148
51149         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51150         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51151         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51152         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51153
51154 2007-05-01  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51157         configure time.
51158         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51159         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51160         * modules/sys_stat (Makefile.am): Substitute their values into
51161         sys/stat.h.
51162
51163 2007-05-01  Bruno Haible  <bruno@clisp.org>
51164
51165         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51166         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51167         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51168
51169 2007-05-01  Bruno Haible  <bruno@clisp.org>
51170
51171         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51172         'assert' module here.
51173
51174 2007-05-01  Bruno Haible  <bruno@clisp.org>
51175
51176         * doc/functions/*.texi: New files.
51177         * doc/functions/google-ranking.txt: New file.
51178         * doc/gnulib.texi (Function Substitutes): New chapter.
51179         (ctime, inet_ntoa): Remove sections.
51180         * doc/ctime.texi: Remove file.
51181         * doc/inet_ntoa.texi: Remove file.
51182         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51183         dependencies.
51184         (%.info): New rule, specifying a --reference-limit.
51185
51186 2007-05-01  Bruno Haible  <bruno@clisp.org>
51187
51188         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51189
51190 2007-05-01  Bruno Haible  <bruno@clisp.org>
51191
51192         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51193         the portability of 'mkdir' to mingw systems.
51194
51195 2007-05-01  Bruno Haible  <bruno@clisp.org>
51196
51197         * doc/headers/google-ranking.txt: New file.
51198
51199 2007-04-30  Eric Blake  <ebb9@byu.net>
51200
51201         Prefer fseeko to fseek.
51202         * modules/getpass (Depends-on): Add fseeko.
51203         * lib/getpass.c (getpass): Use fseeko, not fseek.
51204
51205 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51206
51207         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51208         assumes the sorting is stable, while most qsort implementations
51209         are not.  Use argument addresses to ensure they never compare as
51210         equal.
51211
51212         * tests/test-argp-2.sh (usage-indent test): Fix output
51213         (func_compare): Restore diff options
51214         * tests/test-argp.c: Restore #include "progname.h"
51215
51216 2007-04-29  Bruno Haible  <bruno@clisp.org>
51217
51218         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51220         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51222         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51223         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51224         (TESTS, check_PROGRAMS): Add test-snprintf.
51225         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51226         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51227         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51228         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51229         assertions that fail on HP-UX, OSF/1, or IRIX.
51230         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51231
51232 2007-04-29  Bruno Haible  <bruno@clisp.org>
51233
51234         * MODULES.html.sh (posix_functions): Remove 'contents'.
51235
51236 2007-04-29  Karl Berry  <karl@gnu.org>
51237
51238         * config/srclist.txt (gendocs_template_min): new entry.
51239
51240 2007-04-29  Bruno Haible  <bruno@clisp.org>
51241
51242         Work around fpurge bug on BSD systems.
51243         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51244         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51245         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51246         fpurge to rpl_fpurge if the system already has this function.
51247         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51248         the case where the system already has this function. Correct invariants
51249         on BSD systems.
51250         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51251         BSD systems.
51252
51253 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51254
51255         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51256         proposed by Sven Verdoolaege.
51257
51258         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51259         options.
51260         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51261         (usage and help tests): Update
51262
51263 2007-04-29  Bruno Haible  <bruno@clisp.org>
51264
51265         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51266         Print more information in case of failure. Disable a test on BeOS.
51267
51268 2007-04-29  Bruno Haible  <bruno@clisp.org>
51269
51270         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51271         This helps debugging on systems on which no gdb is available.
51272
51273 2007-04-29  Bruno Haible  <bruno@clisp.org>
51274
51275         * lib/freading.h: Improve comments.
51276         * lib/fwriting.h: Likewise.
51277         * tests/test-freading.c (main): Don't check freading immediately after
51278         repositioning. Needed for glibc.
51279
51280 2007-04-29  Bruno Haible  <bruno@clisp.org>
51281
51282         * lib/freading.c (freading): Trivial simplification.
51283
51284 2007-04-28  Bruno Haible  <bruno@clisp.org>
51285
51286         * tests/test-fwriting.c (main): Also test the interaction between
51287         fflush and fwriting.
51288         * modules/fwriting-tests (Depends-on): Add fflush.
51289
51290         * tests/test-freading.c (main): Also test the interaction between
51291         fflush and freading.
51292         * modules/freading-tests (Depends-on): Add fflush.
51293
51294 2007-04-28  Bruno Haible  <bruno@clisp.org>
51295
51296         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51297         fseeko and ftello.
51298         Suggested by Eric Blake.
51299
51300 2007-04-28  Jim Meyering  <jim@meyering.net>
51301
51302         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51303         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51304         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51305
51306 2007-04-27  Eric Blake  <ebb9@byu.net>
51307
51308         * doc/headers/assert.texi (assert.h): Document assert module use.
51309
51310 2007-04-27  Bruno Haible  <bruno@clisp.org>
51311
51312         * doc/headers/*.texi: New files.
51313         * doc/gnulib.texi (Header File Substitutes): New chapter.
51314         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51315         dependencies.
51316         (standards.info ,standards.html, standards.dvi): Update dependencies.
51317         (mostlyclean, clean): New targets.
51318
51319 2007-04-27  Bruno Haible  <bruno@clisp.org>
51320
51321         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51322         * modules/sysexits (Files, Makefile.am): Update.
51323
51324         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51325         * modules/sys_socket (Files, Makefile.am): Update.
51326
51327         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51328         * modules/sys_stat (Files, Makefile.am): Update.
51329
51330 2007-04-27  Eric Blake  <ebb9@byu.net>
51331
51332         * lib/freading.h: Improve comments.
51333         * lib/fwriting.h: Likewise.
51334         * lib/fflush.c: Likewise.
51335
51336         Fix closein for mingw.
51337         * modules/closein-tests: Add tests for closein.
51338         * tests/test-closein.c: New file.
51339         * tests/test-closein.sh: Likewise.
51340         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51341         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51342
51343 2007-04-27  Bruno Haible  <bruno@clisp.org>
51344
51345         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51346         version is < 6.
51347         * lib/math_.h [__DECC]: Likewise.
51348         * lib/stdio_.h [__DECC]: Likewise.
51349         * lib/stdlib_.h [__DECC]: Likewise.
51350         * lib/string_.h [__DECC]: Likewise.
51351         * lib/time_.h [__DECC]: Likewise.
51352         * lib/wchar_.h [__DECC]: Likewise.
51353         * lib/wctype_.h [__DECC]: Likewise.
51354
51355 2007-04-27  Bruno Haible  <bruno@clisp.org>
51356
51357         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51358
51359 2007-04-27  Bruno Haible  <bruno@clisp.org>
51360
51361         * lib/fflush.c: Add comments.
51362         * modules/fpurge-tests (Depends-on): Add fflush.
51363         * modules/freadable-tests (Depends-on): Likewise.
51364         * modules/fwritable-tests (Depends-on): Likewise.
51365
51366 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51367
51368         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51369         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51370         Report by Bruno Haible <bruno@clisp.org>.
51371
51372 2007-04-26  Eric Blake  <ebb9@byu.net>
51373
51374         Fix fflush on mingw.
51375         * modules/fflush (Depends-on): Add freading.
51376         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51377         but unread data.
51378
51379 2007-04-26  Eric Blake  <ebb9@byu.net>
51380         and Bruno Haible  <bruno@clisp.org>
51381
51382         Implement freading and fwriting.
51383         * lib/freading.c: New file.
51384         * lib/freading.h: Likewise.
51385         * m4/freading.m4: Likewise.
51386         * modules/freading: Likewise.
51387         * modules/freading-tests: Likewise.
51388         * tests/test-freading.c: Likewise.
51389         * lib/fwriting.c: New file.
51390         * lib/fwriting.h: Likewise.
51391         * m4/fwriting.m4: Likewise.
51392         * modules/fwriting: Likewise.
51393         * modules/fwriting-tests: Likewise.
51394         * tests/test-fwriting.c: Likewise.
51395         * MODULES.html.sh (File stream based Input/Output): Mention them.
51396
51397 2007-04-26  Bruno Haible  <bruno@clisp.org>
51398
51399         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51400         'long' when we assume it.
51401         Suggested by Eric Blake.
51402
51403 2007-04-26  Bruno Haible  <bruno@clisp.org>
51404
51405         Ensure fseeko, ftello are declared on glibc systems.
51406         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51407         * modules/fseeko (configure.ac-early): Likewise.
51408         * modules/ftello (configure.ac-early): Likewise.
51409         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51410         AC_FUNC_FSEEKO for this.
51411         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51412         (gl_CHECK_FSEEKO): Remove macro.
51413
51414 2007-04-26  Bruno Haible  <bruno@clisp.org>
51415
51416         * tests/test-fflush.c (main): Also check the ftell result after
51417         fflush and fseek/fseeko.
51418         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51419         file descriptor position cache in the stream.
51420         * lib/fseeko.c (rpl_fseeko): Likewise.
51421
51422 2007-04-26  Bruno Haible  <bruno@clisp.org>
51423
51424         * modules/fflush-tests (Depends-on): Add fseeko.
51425
51426 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51427             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51428
51429         * lib/argz_.h: ensure error_t definition is obtained in same
51430         mechanism system argz.h would have.
51431         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51432         argz facilities are known bad.  Err on the side of caution if
51433         cross-compiling.
51434
51435 2007-04-25  Eric Blake  <ebb9@byu.net>
51436
51437         * lib/fpurge.c (includes): Use stdlib.h for free.
51438         * tests/test-fflush.c (main): Also test fflush-fseeko.
51439
51440 2007-04-25  Bruno Haible  <bruno@clisp.org>
51441
51442         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51443         * lib/fseeko.c: New file.
51444         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51445         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51446         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51447         gl_FUNC_FSEEKO.
51448         (gl_FUNC_FSEEKO): Invoke it.
51449         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51450         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51451         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51452
51453 2007-04-25  Bruno Haible  <bruno@clisp.org>
51454
51455         * modules/fflush (Depends-on): Add ftello.
51456
51457 2007-04-25  Bruno Haible  <bruno@clisp.org>
51458
51459         * modules/ftello-tests: New file.
51460         * tests/test-ftello.c: New file.
51461
51462         * modules/ftello: New file.
51463         * m4/ftello.m4: New file.
51464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51465         HAVE_FTELLO.
51466         * lib/stdio_.h (ftello): New declaration.
51467         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51468         HAVE_FTELLO.
51469
51470 2007-04-25  Bruno Haible  <bruno@clisp.org>
51471
51472         * modules/fseeko-tests: New file.
51473         * tests/test-fseeko.c: New file.
51474
51475         * modules/fseeko: New file.
51476         * m4/fseeko.m4: New file.
51477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51478         HAVE_FSEEKO.
51479         * lib/stdio_.h (fseeko): New declaration.
51480         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51481         HAVE_FSEEKO.
51482
51483 2007-04-25  Bruno Haible  <bruno@clisp.org>
51484
51485         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51486
51487 2007-04-25  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51490         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51491         * tests/test-unistd.c: Likewise.
51492         * tests/test-fcntl.c: Likewise.
51493
51494 2007-04-23  Eric Blake  <ebb9@byu.net>
51495
51496         * lib/fflush.c: Fix missing include.
51497         Reported by Bruno Haible.
51498
51499 2007-04-23  Bruno Haible  <bruno@clisp.org>
51500
51501         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51502         Reported by Eric Blake.
51503
51504 2007-04-23  Bruno Haible  <bruno@clisp.org>
51505
51506         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51507
51508 2007-04-23  Bruno Haible  <bruno@clisp.org>
51509
51510         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51511
51512 2007-04-23  Bruno Haible  <bruno@clisp.org>
51513
51514         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51515         Needed on HP-UX 11.
51516
51517 2007-04-16  Eric Blake  <ebb9@byu.net>
51518
51519         Make fflush rely on fpurge.
51520         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51521         open coding all variants.
51522         * modules/fflush (Depends-on): Add fpurge and unistd.
51523         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51524         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51525
51526         Fix --with-tests compilation on cygwin.
51527         * modules/argmatch-tests (Makefile.am): List gnulib library first
51528         in LDADD.
51529         * modules/argp-tests (Makefile.am): Likewise.
51530         * modules/array-list-tests (Makefile.am): Likewise.
51531         * modules/array-oset-tests (Makefile.am): Likewise.
51532         * modules/avltree-list-tests (Makefile.am): Likewise.
51533         * modules/avltree-oset-tests (Makefile.am): Likewise.
51534         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51535         * modules/carray-list-tests (Makefile.am): Likewise.
51536         * modules/dirname-tests (Makefile.am): Likewise.
51537         * modules/frexp-tests (Makefile.am): Likewise.
51538         * modules/isnanl-tests (Makefile.am): Likewise.
51539         * modules/linked-list-tests (Makefile.am): Likewise.
51540         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51541         * modules/lock-tests (Makefile.am): Likewise.
51542         * modules/rbtree-list-tests (Makefile.am): Likewise.
51543         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51544         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51545         * modules/tls-tests (Makefile.am): Likewise.
51546         * modules/tsearch-tests (Makefile.am): Likewise.
51547         * modules/xvasprintf-tests (Makefile.am): Likewise.
51548
51549         Fix fpurge for cygwin.
51550         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51551         value.
51552         * modules/fpurge-tests (Depends-on): Clean up trash.
51553
51554 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51555
51556         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51557
51558         * m4/autobuild.m4: Re-indent.
51559
51560 2007-04-13  Bruno Haible  <bruno@clisp.org>
51561
51562         * modules/fpurge-tests: New file.
51563         * tests/test-fpurge.c: New file.
51564
51565         * modules/fpurge: New file.
51566         * lib/fpurge.h: New file.
51567         * lib/fpurge.c: New file.
51568         * m4/fpurge.m4: New file.
51569
51570 2007-04-13  Bruno Haible  <bruno@clisp.org>
51571
51572         * modules/fbufmode-tests: New file.
51573         * tests/test-fbufmode.c: New file.
51574
51575         * modules/fbufmode: New file.
51576         * lib/fbufmode.h: New file.
51577         * lib/fbufmode.c: New file.
51578         * m4/fbufmode.m4: New file.
51579
51580 2007-04-13  Bruno Haible  <bruno@clisp.org>
51581
51582         * modules/fwritable-tests: New file.
51583         * tests/test-fwritable.c: New file.
51584
51585         * modules/fwritable: New file.
51586         * lib/fwritable.h: New file.
51587         * lib/fwritable.c: New file.
51588         * m4/fwritable.m4: New file.
51589
51590 2007-04-13  Bruno Haible  <bruno@clisp.org>
51591
51592         * modules/freadable-tests: New file.
51593         * tests/test-freadable.c: New file.
51594
51595         * modules/freadable: New file.
51596         * lib/freadable.h: New file.
51597         * lib/freadable.c: New file.
51598         * m4/freadable.m4: New file.
51599
51600 2007-04-13  Bruno Haible  <bruno@clisp.org>
51601
51602         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51603         MOSTLYCLEANFILES.
51604
51605 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51606
51607         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51608         gzip bootstrap.conf to avoid dragging in i18n machinery.
51609         (gnulib_tool_option): Use it.
51610
51611 2007-04-13  Bruno Haible  <bruno@clisp.org>
51612
51613         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51614         %F directives.
51615         * tests/test-vasprintf-posix.c (test_function): Likewise.
51616         * tests/test-snprintf-posix.h (test_function): Likewise.
51617         * tests/test-sprintf-posix.h (test_function): Likewise.
51618         * tests/test-fprintf-posix.h (test_function): Likewise.
51619         * tests/test-printf-posix.h (test_function): Likewise.
51620         * tests/test-fprintf-posix.out: Likewise.
51621
51622 2007-04-13  Bruno Haible  <bruno@clisp.org>
51623
51624         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51625         * modules/tls-tests (configure.ac): Likewise.
51626         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51627
51628 2007-04-13  Bruno Haible  <bruno@clisp.org>
51629
51630         * lib/tls.c (glthread_tls_get): Fix return type.
51631         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51632
51633 2007-04-12  Eric Blake  <ebb9@byu.net>
51634
51635         * modules/gettime (Depends-on): Remove gettime.
51636         Reported by Dmitry V. Levin.
51637
51638 2007-04-12  Bruno Haible  <bruno@clisp.org>
51639
51640         * modules/fflush (Include): Mention <stdio.h>.
51641         * modules/strtoimax (Include): Mention <inttypes.h>.
51642         * modules/strtoumax (Include): Likewise.
51643
51644 2007-04-12  Eric Blake  <ebb9@byu.net>
51645
51646         * .cvsignore: New file.
51647         * .gitignore: Likewise.
51648
51649 2007-04-12  Bruno Haible  <bruno@clisp.org>
51650
51651         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51652         not before, since $(LDADD) often contains libgnu.a.
51653         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51654         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51655         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51656         Needed on Cygwin.
51657
51658 2007-04-12  Eric Blake  <ebb9@byu.net>
51659
51660         Work around glibc's failure to flush stdin on fclose.
51661         * lib/closein.c (close_stdin): Flush stdin before closing.
51662
51663         Work around glibc's failure to reset seekable stdin on exit.
51664         * modules/closein: New module.
51665         * lib/closein.c: New file.
51666         * lib/closein.h: Likewise.
51667         * m4/closein.m4: Likewise.
51668         * MODULES.html.sh (File stream based Input/Output): Document it.
51669
51670 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51671
51672         * gnulib-tool: Rename generated 'autobuild' script to
51673         'do-autobuild' in --create-megatestdir output.
51674
51675         * doc/gnulib.texi (Build robot for gnulib): Fix.
51676
51677 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51678
51679         * modules/sysexits (Depends-on): Add absolute-header.
51680
51681 2007-04-12  Eric Blake  <ebb9@byu.net>
51682
51683         No need to preserve errno on success.
51684         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51685         Reported by Bruno Haible.
51686
51687 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51688
51689         * MODULES.html.sh (Support for maintaining and releasing
51690         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51691
51692 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51693
51694         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51695
51696 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51697
51698         * modules/autobuild: New module.
51699
51700         * m4/autobuild.m4: New file.
51701
51702 2007-04-11  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51705         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51708         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51709         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51710         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51712         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51713         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51714         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51715         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51716         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51717         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51718         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51719         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51721         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51722         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51723         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51724         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51725         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51726         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51727         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51728         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51729         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51730         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51731         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51732         Reported by Eric Blake.
51733
51734 2007-04-11  Bruno Haible  <bruno@clisp.org>
51735
51736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51737
51738 2007-04-10  Bruno Haible  <bruno@clisp.org>
51739
51740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51741         for NaN and Infinity. Needed on FreeBSD 6.1.
51742         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51743         regarding results for "%010a" of Infinity and NaN.
51744         * tests/test-vasprintf-posix.c (test_function): Likewise.
51745         * tests/test-snprintf-posix.h (test_function): Likewise.
51746         * tests/test-sprintf-posix.h (test_function): Likewise.
51747         * tests/test-fprintf-posix.h (test_function): Likewise.
51748         * tests/test-printf-posix.h (test_function): Likewise.
51749         * tests/test-fprintf-posix.out: Likewise.
51750
51751 2007-04-10  Bruno Haible  <bruno@clisp.org>
51752
51753         * modules/locale-tests: New file.
51754         * tests/test-locale.c: New file.
51755
51756         * modules/locale: New file.
51757         * lib/locale_.h: New file.
51758         * m4/locale_h.m4: New file.
51759
51760 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51761             Bruno Haible  <bruno@clisp.org>
51762
51763         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51764         be determined, test for availability of the copysignf, copysign,
51765         copysignl functions.
51766         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51767         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51768         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51769
51770 2007-04-09  Eric Blake  <ebb9@byu.net>
51771
51772         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51773         * modules/stdio (Makefile.am): Support fflush.
51774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51775         * modules/fflush: New file.
51776         * lib/fflush.c: Likewise.
51777         * m4/fflush.m4: Likewise.
51778         * modules/fflush-tests: New test.
51779         * tests/test-fflush.c: Likewise.
51780         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51781
51782 2007-04-06  Bruno Haible  <bruno@clisp.org>
51783
51784         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51785         (VASNPRINTF): Use signbit for faster determination whether to print a
51786         minus sign.
51787         * modules/vasnprintf (Files): Remove lib/float+.h.
51788         * modules/fprintf-posix (Depends-on): Add signbit.
51789         * modules/snprintf-posix (Depends-on): Likewise.
51790         * modules/sprintf-posix (Depends-on): Likewise.
51791         * modules/vasnprintf-posix (Depends-on): Likewise.
51792         * modules/vasprintf-posix (Depends-on): Likewise.
51793         * modules/vfprintf-posix (Depends-on): Likewise.
51794         * modules/vsnprintf-posix (Depends-on): Likewise.
51795         * modules/vsprintf-posix (Depends-on): Likewise.
51796
51797 2007-04-06  Bruno Haible  <bruno@clisp.org>
51798
51799         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51800         * tests/test-frexpl.c (main): Likewise.
51801         * tests/test-ldexpl.c (main): Likewise.
51802         * modules/frexp-tests (Depends-on): Add signbit.
51803         * modules/frexpl-tests (Depdends-on): Likewise.
51804         * modules/ldexpl-tests (Depdends-on): Likewise.
51805
51806 2007-04-06  Bruno Haible  <bruno@clisp.org>
51807
51808         * modules/signbit-tests: New file.
51809         * tests/test-signbit.c: New file.
51810
51811         * modules/signbit: New file.
51812         * lib/signbitf.c: New file.
51813         * lib/signbitd.c: New file.
51814         * lib/signbitl.c: New file.
51815         * m4/signbit.m4: New file.
51816         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51817         (signbit): New macro.
51818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51819         REPLACE_SIGNBIT.
51820         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51821         REPLACE_FREXPL into math.h.
51822
51823 2007-04-06  Bruno Haible  <bruno@clisp.org>
51824
51825         * modules/isnanf-nolibm-tests: New file.
51826         * tests/test-isnanf.c: New file.
51827
51828         * modules/isnanf-nolibm: New file.
51829         * lib/isnanf.h: New file.
51830         * lib/isnanf.c: New file.
51831         * lib/isnan.c: Consider the USE_FLOAT macro.
51832         * m4/isnanf.m4: New file.
51833
51834 2007-04-06  Bruno Haible  <bruno@clisp.org>
51835
51836         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51837         (Link): New section.
51838
51839         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51840
51841 2007-04-06  Bruno Haible  <bruno@clisp.org>
51842
51843         Assume the 'long double' type.
51844         * m4/longdouble.m4: Remove file.
51845         * config/srclist.txt: Don't mention longdouble.m4.
51846         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51847         * lib/float+.h: Likewise.
51848         * lib/frexp.c: Likewise.
51849         * lib/printf-args.h: Likewise.
51850         * lib/printf-args.c: Likewise.
51851         * lib/printf-frexp.c: Likewise.
51852         * lib/printf-parse.c: Likewise.
51853         * lib/vasnprintf.c: Likewise.
51854         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51855         * m4/intl.m4: Likewise.
51856         * m4/isnanl.m4: Likewise.
51857         * m4/printf.m4: Likewise.
51858         * m4/printf-frexpl.m4: Likewise.
51859         * m4/vasnprintf.m4: Likewise.
51860         * modules/allocsa (Files): Remove m4/longdouble.m4.
51861         * modules/gettext (Files): Likewise.
51862         * modules/relocatable-prog-wrapper (Files): Likewise.
51863         * modules/vasnprintf (Files): Likewise.
51864         * modules/isnanl (Files): Likewise.
51865         (Include): Simplify.
51866         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51867         (Include): Simplify.
51868         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51869         (Include): Simplify.
51870         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51871         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51872         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51873         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51874         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51875         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51876         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51877         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51878         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51879         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51880         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51881         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51882         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51883         * tests/test-isnanl.c: Likewise.
51884         * tests/test-snprintf-posix.h: Likewise.
51885         * tests/test-sprintf-posix.h: Likewise.
51886         * tests/test-vasnprintf-posix.c: Likewise.
51887         * tests/test-vasnprintf-posix2.c: Likewise.
51888         * tests/test-vasprintf-posix.c: Likewise.
51889
51890 2007-04-06  Bruno Haible  <bruno@clisp.org>
51891
51892         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51893         * lib/math_.h [__DECC]: Include the overridden include file through
51894         #include_next, outside the double-inclusion guard.
51895         * lib/stdio_.h [__DECC]: Likewise.
51896         * lib/stdlib_.h [__DECC]: Likewise.
51897         * lib/string_.h [__DECC]: Likewise.
51898         * lib/time_.h [__DECC]: Likewise.
51899         * lib/wchar_.h [__DECC]: Likewise.
51900         * lib/wctype_.h [__DECC]: Likewise.
51901         * lib/inttypes_.h [__DECC]: Likewise.
51902         Reported by Albert Chin <china@thewrittenword.com> in
51903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51904
51905 2007-04-04  Eric Blake  <ebb9@byu.net>
51906
51907         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51908         1.5.x.
51909
51910 2007-04-04  Bruno Haible  <bruno@clisp.org>
51911
51912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51913         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51914
51915 2007-04-04  Bruno Haible  <bruno@clisp.org>
51916
51917         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51918         results for "%010a" of Infinity and NaN.
51919         * tests/test-vasprintf-posix.c (test_function): Likewise.
51920         * tests/test-snprintf-posix.h (test_function): Likewise.
51921         * tests/test-sprintf-posix.h (test_function): Likewise.
51922         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51923         * tests/test-printf-posix.h (test_function): Likewise.
51924         * tests/test-fprintf-posix.out: Update.
51925         Needed for FreeBSD 6.1.
51926
51927 2007-04-04  Bruno Haible  <bruno@clisp.org>
51928
51929         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51930         directly used by the gnulib modules nor by gnulib-tool.
51931
51932 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51933
51934         * DEPENDENCIES: Give overall description of version dependency
51935         desirability.  Use more-typical names for apps.
51936         Add shell, coreutils, diffutils, grep, tar, gzip.
51937
51938 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51939
51940         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51941
51942 2007-04-04  Karl Berry  <karl@gnu.org>
51943
51944         * MODULES.html.sh (func_module): missing '.
51945
51946 2007-04-03  Bruno Haible  <bruno@clisp.org>
51947
51948         * modules/argmatch-tests (Makefile.am): New variable
51949         test_argmatch_LDADD.
51950         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51951         * modules/array-list-tests (Makefile.am): New variable
51952         test_array_list_LDADD.
51953         * modules/array-oset-tests (Makefile.am): New variable
51954         test_array_oset_LDADD.
51955         * modules/avltree-list-tests (Makefile.am): New variable
51956         test_avltree_list_LDADD.
51957         * modules/avltree-oset-tests (Makefile.am): New variable
51958         test_avltree_oset_LDADD.
51959         * modules/avltreehash-list-tests (Makefile.am): New variable
51960         test_avltreehash_list_LDADD.
51961         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51962         test_canonicalize_lgpl_LDADD.
51963         * modules/carray-list-tests (Makefile.am): New variable
51964         test_carray_list_LDADD.
51965         * modules/dirname-tests (Makefile.am): New variable
51966         test_dirname_LDADD.
51967         * modules/linked-list-tests (Makefile.am): New variable
51968         test_linked_list_LDADD.
51969         * modules/linkedhash-list-tests (Makefile.am): New variable
51970         test_linkedhash_list_LDADD.
51971         * modules/rbtree-list-tests (Makefile.am): New variable
51972         test_rbtree_list_LDADD.
51973         * modules/rbtree-oset-tests (Makefile.am): New variable
51974         test_rbtree_oset_LDADD.
51975         * modules/rbtreehash-list-tests (Makefile.am): New variable
51976         test_rbtreehash_list_LDADD.
51977         * modules/xvasprintf-tests (Makefile.am): New variable
51978         test_xvasprintf_LDADD.
51979         Reported by Eric Blake.
51980
51981 2007-04-03  Eric Blake  <ebb9@byu.net>
51982
51983         * DEPENDENCIES: Weaken m4 requirements.
51984
51985 2007-04-03  Bruno Haible  <bruno@clisp.org>
51986
51987         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51988         * modules/isnanl-tests (configure.ac): Likewise.
51989
51990 2007-04-03  Ben Pfaff  <blp@gnu.org>
51991
51992         * modules/iconv_open: Add $(srcdir)/ to source directory
51993         references in Makefile fragments that call gperf, to fix VPATH
51994         builds.
51995
51996 2007-04-03  Bruno Haible  <bruno@clisp.org>
51997
51998         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51999         * lib/ldexpl.c: Undo last change.
52000
52001 2007-04-03  Bruno Haible  <bruno@clisp.org>
52002
52003         * modules/printf-frexpl (Depends-on): Undo last change.
52004         (Files): Add m4/ldexpl.m4.
52005
52006 2007-04-03  Bruno Haible  <bruno@clisp.org>
52007
52008         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52009         * modules/isnanl (Link): New section.
52010
52011         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52012         * modules/frexp (Link): New section.
52013
52014         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52015         * modules/frexpl (Link): New section.
52016
52017         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52018         * modules/ldexpl (Link): New section.
52019
52020 2007-04-03  Bruno Haible  <bruno@clisp.org>
52021
52022         * modules/TEMPLATE-EXTENDED: New file.
52023         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52024
52025 2007-04-03  Bruno Haible  <bruno@clisp.org>
52026
52027         * DEPENDENCIES: New file.
52028         Suggested by Simon Josefsson.
52029
52030 2007-04-03  Bruno Haible  <bruno@clisp.org>
52031
52032         * doc/gnulib.texi: Escape @.
52033
52034 2007-04-03  James Youngman  <jay@gnu.org>
52035         and Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52038         birthtime on all systems that have birthtime, not just those which
52039         use st_birthtimensec rather than st_birthtim.  Putting zero in
52040         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52041         that the birth time is not available for files on an NFS mount.
52042
52043 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52044
52045         * modules/memxor: Move back from crypto/, suggested by Bruno.
52046         * modules/crypto/hmac-sha1: Fix memxor dependency.
52047
52048         * modules/crypto/gc: Moved from ../.
52049
52050 2007-04-02  Eric Blake  <ebb9@byu.net>
52051
52052         * lib/ldexpl.c (includes): Avoid libm.
52053
52054         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52055
52056 2007-04-02  Bruno Haible  <bruno@clisp.org>
52057
52058         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52059         on IRIX.
52060
52061 2007-04-02  Bruno Haible  <bruno@clisp.org>
52062
52063         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52064         x86 or x86_64 platforms running MacOS X.
52065         Reported by Ryan Schmidt <@ryandesign.com>.
52066
52067 2007-04-02  Bruno Haible  <bruno@clisp.org>
52068
52069         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52070         i386.
52071
52072 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52073
52074         * modules/crypto/arcfour: Moved from ../.
52075         * modules/crypto/arcfour-tests: Moved from ../.
52076         * modules/crypto/arctwo: Moved from ../.
52077         * modules/crypto/arctwo-tests: Moved from ../.
52078         * modules/crypto/des: Moved from ../.
52079         * modules/crypto/des-tests: Moved from ../.
52080         * modules/crypto/gc-arcfour: Moved from ../.
52081         * modules/crypto/gc-arcfour-tests: Moved from ../.
52082         * modules/crypto/gc-arctwo: Moved from ../.
52083         * modules/crypto/gc-arctwo-tests: Moved from ../.
52084         * modules/crypto/gc-des: Moved from ../.
52085         * modules/crypto/gc-des-tests: Moved from ../.
52086         * modules/crypto/gc-hmac-md5: Moved from ../.
52087         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52088         * modules/crypto/gc-hmac-sha1: Moved from ../.
52089         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52090         * modules/crypto/gc-md2: Moved from ../.
52091         * modules/crypto/gc-md2-tests: Moved from ../.
52092         * modules/crypto/gc-md4: Moved from ../.
52093         * modules/crypto/gc-md4-tests: Moved from ../.
52094         * modules/crypto/gc-md5: Moved from ../.
52095         * modules/crypto/gc-md5-tests: Moved from ../.
52096         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52097         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52098         * modules/crypto/gc-random: Moved from ../.
52099         * modules/crypto/gc-rijndael: Moved from ../.
52100         * modules/crypto/gc-rijndael-tests: Moved from ../.
52101         * modules/crypto/gc-sha1: Moved from ../.
52102         * modules/crypto/gc-sha1-tests: Moved from ../.
52103         * modules/crypto/gc-tests: Moved from ../.
52104         * modules/crypto/hmac-md5: Moved from ../.
52105         * modules/crypto/hmac-md5-tests: Moved from ../.
52106         * modules/crypto/hmac-sha1: Moved from ../.
52107         * modules/crypto/hmac-sha1-tests: Moved from ../.
52108         * modules/crypto/md2: Moved from ../.
52109         * modules/crypto/md2-tests: Moved from ../.
52110         * modules/crypto/md4: Moved from ../.
52111         * modules/crypto/md4-tests: Moved from ../.
52112         * modules/crypto/md5: Moved from ../.
52113         * modules/crypto/md5-tests: Moved from ../.
52114         * modules/crypto/memxor: Moved from ../.
52115         * modules/crypto/rijndael: Moved from ../.
52116         * modules/crypto/rijndael-tests: Moved from ../.
52117         * modules/crypto/sha1: Moved from ../.
52118
52119 2007-03-30  James Youngman  <jay@gnu.org>
52120
52121         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52122         rename() to change the ctime of a file (because ctime is unaffected
52123         by rename on jfs2 on AIX 5.1).
52124         (main): Start by doing cleanup, in case a previous run failed leaving
52125         test files behind.
52126
52127 2007-03-31  Bruno Haible  <bruno@clisp.org>
52128
52129         Support old proprietary implementations of iconv.
52130         * modules/iconv_open: New file.
52131         * lib/iconv_.h: New file.
52132         * m4/iconv_h.m4: New file.
52133         * lib/iconv_open.c: New file.
52134         * lib/iconv_open-aix.gperf: New file.
52135         * lib/iconv_open-hpux.gperf: New file.
52136         * lib/iconv_open-irix.gperf: New file.
52137         * lib/iconv_open-osf.gperf: New file.
52138         * m4/iconv_open.m4: New file.
52139         * modules/linebreak (Depends-on): Add iconv_open.
52140         * modules/striconv (Depends-on): Likewise.
52141         * modules/striconveh (Depends-on): Likewise.
52142         * modules/unicodeio (Depends-on): Likewise.
52143         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52144         (iconv_t)(-1).
52145         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52146         conversion if cd is (iconv_t)(-1).
52147         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52148         is not possible.
52149
52150 2007-03-31  Bruno Haible  <bruno@clisp.org>
52151
52152         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52153         work on Solaris either. Protect also second use of "autodetect_jp".
52154
52155 2007-03-31  Bruno Haible  <bruno@clisp.org>
52156
52157         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52158         the function is not present.
52159
52160 2007-03-31  Bruno Haible  <bruno@clisp.org>
52161
52162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52163         the function is not present.
52164
52165 2007-03-31  Bruno Haible  <bruno@clisp.org>
52166
52167         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52168         a bug in HP-UX iconv_open().
52169
52170 2007-03-31  Bruno Haible  <bruno@clisp.org>
52171
52172         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52173         (Mathematics <math.h>): New section, add fpieee.
52174         (Input/output <stdio.h>): Add fseterr.
52175         (Mathematics <math.h>): New section, add printf-frexp.
52176         (Container data structures): Add sublist.
52177         (Core language properties): Add fpucw, inline.
52178         (Functions for greatest-width integer types <inttypes.h>): Add
52179         imaxabs, imaxdiv, inttypes.
52180         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52181         isnanl-nolibm, ldexp.
52182         (Mathematics <math.h>): New section, add printf-frexpl.
52183         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52184         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52185         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52186         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52187         (Unicode string functions): Add unistr/u*-mbtoucr.
52188         (Java): Add javacomp-script, javaexec-script.
52189         (C#): Add csharpcomp-script, csharpexec-script.
52190         (Support for building libraries and executables): Add havelib,
52191         relocatable-*.
52192         (Support for maintaining and releasing projects): Renamed from
52193         'Support for maintaining and release projects'. Add announce-gen.
52194
52195 2007-03-31  Bruno Haible  <bruno@clisp.org>
52196
52197         * README: Talk primarily about git.
52198         (git and CVS): Renamed from CVS.
52199         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52200         gnulib is available through git.
52201         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52202
52203 2007-03-30  Bruno Haible  <bruno@clisp.org>
52204
52205         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52206         * lib/poll_.h: Likewise.
52207         * lib/stat_.h: Likewise.
52208         * lib/sys_time_.h: Likewise.
52209         * lib/sysexit_.h: Likewise.
52210         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52211         * lib/stdbool_.h: Likewise.
52212         * lib/byteswap_.h: Add double-inclusion guard.
52213
52214 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52215
52216         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52217
52218 2007-03-30  Karl Berry  <karl@gnu.org>
52219
52220         * config/srclist-update: double space after USA in the license
52221         substitution, since that's how it's usually (?) written.
52222
52223 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52224
52225         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52226         reported by Bruno Haible.
52227
52228 2007-03-29  Bruno Haible  <bruno@clisp.org>
52229
52230         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52231         a bug in AIX iconv().
52232
52233 2007-03-29  Bruno Haible  <bruno@clisp.org>
52234
52235         * modules/ldexpl-tests: New file.
52236         * tests/test-ldexpl.c: New file.
52237
52238 2007-03-29  Bruno Haible  <bruno@clisp.org>
52239
52240         * lib/ldexpl.c: Include fpucw.h.
52241         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52242         multiplication.
52243         * modules/ldexpl (Depends-on): Add fpucw.
52244
52245 2007-03-29  Bruno Haible  <bruno@clisp.org>
52246
52247         * modules/ldexpl: New file.
52248         * m4/ldexpl.m4: New file.
52249         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52250         set.
52251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52252         REPLACE_LDEXPL.
52253         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52254         REPLACE_LDEXPL.
52255         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52256         gl_FUNC_LDEXPL_WORKS.
52257         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52258         * modules/mathl (Files): Remove lib/ldexpl.c.
52259         (Depends-on): Add ldexpl.
52260
52261 2007-03-29  Bruno Haible  <bruno@clisp.org>
52262
52263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52264
52265 2007-03-29  Bruno Haible  <bruno@clisp.org>
52266
52267         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52268         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52269         and possibly also HP-UX.
52270         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52271         work on AIX, IRIX, HP-UX, OSF/1.
52272         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52273         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52274         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52275         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52276         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52277         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52278
52279 2007-03-29  Bruno Haible  <bruno@clisp.org>
52280
52281         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52282
52283 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52284
52285         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52286         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52287
52288 2007-03-29  Eric Blake  <ebb9@byu.net>
52289
52290         * lib/acl-internal.h: Remove redundant include.
52291         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52292         Cygwin when a file is locked.
52293
52294 2007-03-29  Bruno Haible  <bruno@clisp.org>
52295
52296         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52297         file.
52298         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52299
52300 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52301
52302         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52303         try to remove a parent directory if the child couldn't be removed
52304         (except for the first rmdir, which could fail because the child
52305         doesn't exist).  Problem reported by Jeff Blaine in
52306         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52307
52308 2007-03-28  Bruno Haible  <bruno@clisp.org>
52309
52310         * lib/striconveh.c (utf8conv_carefully): New function.
52311         (mem_cd_iconveh_internal): Invoke it.
52312
52313 2007-03-28  Bruno Haible  <bruno@clisp.org>
52314
52315         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52316         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52317         input.
52318         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52319         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52320         unistr/u8-uctomb.
52321
52322 2007-03-28  Bruno Haible  <bruno@clisp.org>
52323
52324         * modules/unistr/u8-mbtoucr: New file.
52325         * lib/unistr/u8-mbtoucr.c: New file.
52326         * modules/unistr/u16-mbtoucr: New file.
52327         * lib/unistr/u16-mbtoucr.c: New file.
52328         * modules/unistr/u16-mbtoucr: New file.
52329         * lib/unistr/u16-mbtoucr.c: New file.
52330         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52331
52332 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52333             Bruno Haible  <bruno@clisp.org>
52334
52335         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52336         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52337         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52338
52339         * m4/stdio_h.m4: Add stubs for vasprintf too.
52340
52341         * modules/stdio: Support vasprintf in sed command.
52342
52343         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52344         vasprintf.h.  Add stdio module indicator.
52345
52346         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52347         vasprintf.h.
52348
52349         * lib/vasprintf.h: File removed.
52350
52351         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52352         * lib/vasprintf.c: Ditto.
52353         * lib/xvasprintf.c: Ditto.
52354         * tests/test-vasprintf-posix.c: Ditto.
52355         * tests/test-vasprintf.c: Ditto.
52356
52357 2007-03-27  Bruno Haible  <bruno@clisp.org>
52358
52359         Make vasnprintf multithread-safe.
52360         * lib/vasnprintf.c (decimal_point_char): New function.
52361         (VASNPRINTF): Use it.
52362         Suggested by Simon Josefsson.
52363
52364 2007-03-27  Eric Blake  <ebb9@byu.net>
52365
52366         Support sub-second birthtime on cygwin.
52367         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52368         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52369         (get_stat_birthtime): Also work with st_birthtim.
52370
52371 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52372
52373         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52374         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52375         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52376         (get_stat_birthtime_ns): Simplify compile-time tests.
52377         (get_stat_birthtime): Change the API to look like
52378         get_stat_mtime etc., except return a negative tv_nsec on error.
52379         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52380         Don't check for "spare" fields.
52381         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52382         or for struct stat.st_birthtime, as these tests aren't used.
52383         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52384
52385 2007-03-27  Bruno Haible  <bruno@clisp.org>
52386
52387         * lib/stat-time.h: Include <sys/stat.h>.
52388
52389 2007-03-27  James Youngman  <jay@gnu.org>
52390
52391         * lib/stat-time.h (get_stat_birthtime): New function for
52392           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52393         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52394           and its variants.
52395         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52396         * modules/stat-time-test: New file.
52397         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52398
52399 2007-03-26  Bruno Haible  <bruno@clisp.org>
52400
52401         Better support of signalling NaNs.
52402         * lib/atanl.c: Include isnanl.h.
52403         (atanl): Perform test for NaN at the beginning of the function and
52404         through a call to isnanl.
52405         * lib/cosl.c: Include isnanl.h.
52406         (cosl): Perform test for NaN at the beginning of the function and
52407         through a call to isnanl.
52408         * lib/ldexpl.c: Include isnanl.h.
52409         (ldexpl): Perform test for NaN through a call to isnanl.
52410         * lib/logl.c: Include isnanl.h.
52411         (logl): Perform test for NaN at the beginning of the function and
52412         through a call to isnanl.
52413         * lib/sinl.c: Include isnanl.h.
52414         (sinl): Perform test for NaN at the beginning of the function and
52415         through a call to isnanl.
52416         * lib/sqrtl.c: Include isnanl.h.
52417         (sqrtl): Perform test for NaN at the beginning of the function and
52418         through a call to isnanl.
52419         * lib/tanl.c: Include isnanl.h.
52420         (tanl): Perform test for NaN at the beginning of the function and
52421         through a call to isnanl.
52422         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52423         * modules/mathl (Depends-on): Add isnanl.
52424
52425 2007-03-26  Eric Blake  <ebb9@byu.net>
52426
52427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52428         regression in logic sense of previous patch.
52429
52430 2007-03-26  Bruno Haible  <bruno@clisp.org>
52431
52432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52433         unportable shell command "if ! ...".
52434         Reported by Ralf Wildenhues.
52435
52436 2007-03-25  Bruno Haible  <bruno@clisp.org>
52437
52438         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52439         <sysexits.h> file, and only add EX_CONFIG.
52440         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52441         absolute file name and whether it is sufficient. Substitute also
52442         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52443         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52444         ABSOLUTE_SYSEXITS_H into sysexits.h.
52445
52446 2007-03-25  Bruno Haible  <bruno@clisp.org>
52447
52448         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52449         hints is NULL.
52450
52451 2007-03-25  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52454         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52455
52456 2007-03-25  Bruno Haible  <bruno@clisp.org>
52457
52458         * lib/vasnprintf.c: Include langinfo.h.
52459         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52460         multithread-safe.
52461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52462         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52467         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52470         Reported by Simon Josefsson.
52471
52472 2007-03-25  Bruno Haible  <bruno@clisp.org>
52473
52474         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52475         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52476         * modules/vasnprintf (Depends-on): Add stdint.
52477
52478 2007-03-25  Bruno Haible  <bruno@clisp.org>
52479
52480         * modules/fpieee: New file.
52481         * m4/fpieee.m4: New file.
52482         * modules/isnan-nolibm (Depends-on): Add fpieee.
52483         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52484         * modules/isnanl (Depends-on): Add fpieee.
52485
52486 2007-03-25  Bruno Haible  <bruno@clisp.org>
52487
52488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52489
52490 2007-03-25  Bruno Haible  <bruno@clisp.org>
52491
52492         Avoid test failures on IRIX 6.5.
52493         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52494         (main): Use it.
52495         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52496         macros.
52497         (main): Use them.
52498
52499 2007-03-25  Bruno Haible  <bruno@clisp.org>
52500
52501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52502         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52503         exists but doesn't work.
52504         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52505         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52507         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52508         math.h.
52509
52510 2007-03-25  Bruno Haible  <bruno@clisp.org>
52511
52512         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52513         returns inf. Needed on IRIX 6.5.
52514
52515 2007-03-25  Bruno Haible  <bruno@clisp.org>
52516
52517         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52518         (main): Use isnanl instead of x != x idiom.
52519         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52520
52521         * tests/test-frexp.c: Include isnan.h.
52522         (main): Use isnan instead of x != x idiom.
52523         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52524
52525 2007-03-25  Bruno Haible  <bruno@clisp.org>
52526
52527         * tests/test-frexp.c (NaN): New function/macro.
52528         (main): Use it instead of 0.0 / 0.0.
52529         * tests/test-isnan.c (NaN): New function/macro.
52530         (main): Use it instead of 0.0 / 0.0.
52531         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52532         (test_function): Use it instead of 0.0 / 0.0.
52533         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52534         (test_function): Use it instead of 0.0 / 0.0.
52535         * tests/test-snprintf-posix.h (NaN): New function/macro.
52536         (test_function): Use it instead of 0.0 / 0.0.
52537         * tests/test-sprintf-posix.h (NaN): New function/macro.
52538         (test_function): Use it instead of 0.0 / 0.0.
52539         * tests/test-fprintf-posix.h (NaN): New function/macro.
52540         (test_function): Use it instead of 0.0 / 0.0.
52541         * tests/test-printf-posix.h (NaN): New function/macro.
52542         (test_function): Use it instead of 0.0 / 0.0.
52543
52544         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52545
52546 2007-03-25  Bruno Haible  <bruno@clisp.org>
52547
52548         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52549
52550 2007-03-25  Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/regexec.c (merge_state_with_log): Make static.
52553
52554 2007-03-25  Bruno Haible  <bruno@clisp.org>
52555
52556         * lib/trigl.c (kernel_rem_pio2): Make static.
52557
52558 2007-03-25  Bruno Haible  <bruno@clisp.org>
52559
52560         * lib/sincosl.c (sincosl_table): Make static.
52561
52562 2007-03-25  Bruno Haible  <bruno@clisp.org>
52563
52564         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52565         if the compiler does not support C99.
52566
52567 2007-03-25  Bruno Haible  <bruno@clisp.org>
52568
52569         * modules/time (Makefile.am): Ensure all rule action lines start with a
52570         tab.
52571
52572 2007-03-24  Bruno Haible  <bruno@clisp.org>
52573
52574         * modules/tsearch-tests: New file.
52575         * tests/test-tsearch.sh: New file.
52576         * tests/test-tsearch.c: New file, mostly copied from glibc.
52577
52578         * modules/search-tests: New file.
52579         * tests/test-search.c: New file.
52580
52581         * modules/search: New file.
52582         * lib/search_.h: New file, incorporating lib/tsearch.h.
52583         * m4/search_h.m4: New file.
52584         * lib/tsearch.h: Remove file.
52585         * lib/tsearch.c: Include search.h instead of tsearch.h.
52586         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52587         HAVE_TSEARCH.
52588         * modules/tsearch (Files): Remove lib/tsearch.h.
52589         (Depends-on): Add search.
52590         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52591         (Include): Change tsearch.h into search.h.
52592
52593 2007-03-24  Bruno Haible  <bruno@clisp.org>
52594
52595         * modules/fpucw: New file.
52596         * lib/fpucw.h: New file.
52597         * lib/frexp.c: Include fpucw.h.
52598         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52599         (FUNC): Use them.
52600         * lib/printf-frexp.c: Include fpucw.h.
52601         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52602         (FUNC): Use them.
52603         * lib/vasnprintf.c: Include fpucw.h.
52604         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52605         'long double' calculations.
52606         * tests/test-frexpl.c: Include fpucw.h.
52607         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52608         * tests/test-printf-frexpl.c: Include fpucw.h.
52609         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52610         * modules/frexpl (Depends-on): Add fpucw.
52611         * modules/printf-frexpl (Depends-on): Likewise.
52612         * modules/fprintf-posix (Depends-on): Likewise.
52613         * modules/snprintf-posix (Depends-on): Likewise.
52614         * modules/sprintf-posix (Depends-on): Likewise.
52615         * modules/vasnprintf-posix (Depends-on): Likewise.
52616         * modules/vasprintf-posix (Depends-on): Likewise.
52617         * modules/vfprintf-posix (Depends-on): Likewise.
52618         * modules/vsnprintf-posix (Depends-on): Likewise.
52619         * modules/vsprintf-posix (Depends-on): Likewise.
52620         * modules/frexpl-tests (Depends-on): Likewise.
52621         * modules/printf-frexpl-tests (Depends-on): Likewise.
52622
52623 2007-03-24  Bruno Haible  <bruno@clisp.org>
52624
52625         * lib/float+.h: New file.
52626         * lib/isnan.c: Include float+.h.
52627         (SIZE): New macro.
52628         (FUNC): Compare only SIZE bytes of the value.
52629         * lib/vasnprintf.c: Include float+.h.
52630         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52631         SIZEOF_LDBL or SIZEOF_DBL bytes.
52632         * modules/isnan-nolibm (Files): Add lib/float+.h.
52633         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52634         * modules/isnanl (Files): Add lib/float+.h.
52635         * modules/vasnprintf (Files): Add lib/float+.h.
52636
52637 2007-03-24  Bruno Haible  <bruno@clisp.org>
52638
52639         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52640         include isnanl-nolibm.h.
52641
52642 2007-03-24  Bruno Haible  <bruno@clisp.org>
52643
52644         * tests/test-read-file.c (main): Don't produce spurious output for
52645         expected situations. Make the test fail if it encountered unexpected
52646         results.
52647
52648 2007-03-24  Bruno Haible  <bruno@clisp.org>
52649
52650         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52651         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52652
52653 2007-03-24  Bruno Haible  <bruno@clisp.org>
52654
52655         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52656
52657 2007-03-24  Bruno Haible  <bruno@clisp.org>
52658
52659         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52660         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52661
52662         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52663         * modules/utf8-ucs4: Turn into a symbolic link to module
52664         unistr/u8-mbtouc.
52665
52666         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52667         utf8-ucs4-unsafe.
52668         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52669         unistr/u8-mbtouc-unsafe.
52670
52671         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52672         * modules/utf16-ucs4: Turn into a symbolic link to module
52673         unistr/u16-mbtouc.
52674
52675         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52676         utf16-ucs4-unsafe.
52677         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52678         unistr/u16-mbtouc-unsafe.
52679
52680         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52681         * modules/ucs4-utf8: Turn into a symbolic link to module
52682         unistr/u8-ubtomb.
52683
52684         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52685         * modules/ucs4-utf16: Turn into a symbolic link to module
52686         unistr/u16-ubtomb.
52687
52688 2007-03-24  Bruno Haible  <bruno@clisp.org>
52689
52690         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52691         Enable the function only if HAVE_INLINE.
52692         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52693         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52694         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52695         Enable the function only if HAVE_INLINE.
52696         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52697         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52698         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52699         Enable the function only if HAVE_INLINE.
52700         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52701         Enable the function only if HAVE_INLINE.
52702         * modules/utf8-ucs4: Update.
52703         * modules/utf8-ucs4-unsafe: Update.
52704         * modules/utf16-ucs4: Update.
52705         * modules/utf16-ucs4-unsafe: Update.
52706         * modules/ucs4-utf8: Update.
52707         * modules/ucs4-utf16: Update.
52708
52709 2007-03-24  Bruno Haible  <bruno@clisp.org>
52710
52711         * lib/utf8-ucs4.h: Remove file.
52712         * lib/utf8-ucs4-unsafe.h: Remove file.
52713         * lib/utf16-ucs4.h: Remove file.
52714         * lib/utf16-ucs4-unsafe.h: Remove file.
52715         * lib/ucs4-utf8.h: Remove file.
52716         * lib/ucs4-utf16.h: Remove file.
52717         * lib/unistr.h: Include their previous contents.
52718         * m4/utf-ucs4.m4: Remove file.
52719         * m4/ucs4-utf.m4: Remove file.
52720         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52721         (Depends-on): Add unistr/base.
52722         (configure.ac): Remove gl_UTF_UCS4.
52723         (Makefile.am): Update.
52724         (Include): Change to unistr.h.
52725         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52726         (Depends-on): Add unistr/base.
52727         (configure.ac): Remove gl_UTF_UCS4.
52728         (Makefile.am): Update.
52729         (Include): Change to unistr.h.
52730         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52731         (Depends-on): Add unistr/base.
52732         (configure.ac): Remove gl_UTF_UCS4.
52733         (Makefile.am): Update.
52734         (Include): Change to unistr.h.
52735         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52736         (Depends-on): Add unistr/base.
52737         (configure.ac): Remove gl_UTF_UCS4.
52738         (Makefile.am): Update.
52739         (Include): Change to unistr.h.
52740         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52741         (Depends-on): Add unistr/base.
52742         (configure.ac): Remove gl_UCS4_UTF.
52743         (Makefile.am): Update.
52744         (Include): Change to unistr.h.
52745         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52746         (Depends-on): Add unistr/base.
52747         (configure.ac): Remove gl_UCS4_UTF.
52748         (Makefile.am): Update.
52749         (Include): Change to unistr.h.
52750         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52751         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52752         utf8-ucs4-unsafe.h.
52753         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52754         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52755         utf16-ucs4-unsafe.h.
52756         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52757         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52758         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52759         * lib/unistr/u8-strchr.c: Likewise.
52760         * lib/unistr/u8-strrchr.c: Likewise.
52761         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52762         * lib/unistr/u16-strchr.c: Likewise.
52763         * lib/unistr/u16-strrchr.c: Likewise.
52764         * lib/striconveh.c: Update.
52765         * lib/linebreak.c: Update.
52766
52767 2007-03-24  Bruno Haible  <bruno@clisp.org>
52768
52769         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52770         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52771
52772 2007-03-22  Bruno Haible  <bruno@clisp.org>
52773
52774         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52775
52776 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52777
52778         * MODULES.html.sh (File system functions): New module write-any-file.
52779         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52780         * m4/write-any-file.m4: New files.
52781
52782 2007-03-23  Eric Blake  <ebb9@byu.net>
52783
52784         * gnulib-tool: Rearrange space-tab sequences, since some editors
52785         like to eat them.
52786
52787 2007-03-23  Eric Blake  <ebb9@byu.net>
52788
52789         * lib/version-etc.c (version_etc_va): Update license wording to
52790         be more concise.  Recommended by Richard Stallman.
52791
52792 2007-03-22  Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/poll.c (MSG_PEEK): New fallback definition.
52795
52796 2007-03-22  Bruno Haible  <bruno@clisp.org>
52797
52798         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52799         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52800         (main): Update.
52801         Fixes a compilation error on BeOS.
52802
52803 2007-03-22  Bruno Haible  <bruno@clisp.org>
52804
52805         * modules/frexpl-tests: New file.
52806         * tests/test-frexpl.c: New file.
52807
52808         * modules/frexpl: New file.
52809         * m4/frexpl.m4: New file.
52810         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52811         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52813         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52814         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52815         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52816
52817 2007-03-22  Bruno Haible  <bruno@clisp.org>
52818
52819         * lib/frexpl.c: Share code with lib/frexp.c.
52820         * modules/mathl (Files): Add lib/frexp.c.
52821         (Depends-on): Add isnanl-nolibm.
52822
52823 2007-03-22  Bruno Haible  <bruno@clisp.org>
52824
52825         * modules/printf-frexp (Files): Add m4/frexp.m4.
52826         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52827         only if the found frexp function actually works.
52828
52829 2007-03-22  Bruno Haible  <bruno@clisp.org>
52830
52831         * lib/frexp.c: Remove older implementation that uses divisions.
52832
52833 2007-03-21  Bruno Haible  <bruno@clisp.org>
52834
52835         * modules/frexp-tests: New file.
52836         * tests/test-frexp.c: New file.
52837
52838         * modules/frexp: New file.
52839         * lib/frexp.c: New file.
52840         * m4/frexp.m4: New file.
52841         * lib/math_.h (frexp): New declaration.
52842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52843         REPLACE_FREXP.
52844         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52845
52846 2007-03-21  Bruno Haible  <bruno@clisp.org>
52847
52848         * modules/isnanl-tests: New file.
52849         * tests/test-isnanl.c: New file.
52850
52851         * modules/isnanl: New file.
52852         * lib/isnanl.h: New file.
52853         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52854         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52855         gl_FUNC_ISNANL_WORKS.
52856         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52857         New macros.
52858
52859 2007-03-21  Bruno Haible  <bruno@clisp.org>
52860
52861         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52862         lib/isnanl.h.
52863         (Include): Update.
52864         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52865         * lib/vasnprintf.c: Update.
52866         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52867         tests/test-isnanl.h, remove tests/test-isnanl.c.
52868         (Makefile.am): Update.
52869         * tests/test-isnanl-nolibm.c: New file.
52870         * tests/test-isnanl.h: New file.
52871         * tests/test-isnanl.c: Remove file.
52872
52873 2007-03-21  Jim Meyering  <jim@meyering.net>
52874
52875         When trying to open ".", treat ESTALE like EACCES.
52876         * lib/savewd.c (savewd_save): Resort to forking not just upon
52877         failure with EACCES, but also when errno is ESTALE.
52878
52879 2007-03-20  Bruno Haible  <bruno@clisp.org>
52880
52881         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52882         Needed on AIX 5.1. Reported by Matthew Woehlke.
52883
52884 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52885
52886         Suggestions by Bruno Haible:
52887         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52888         our own.
52889         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52890         * modules/acl (Depends-on): Add gettext.
52891
52892 2007-03-19  Bruno Haible  <bruno@clisp.org>
52893
52894         * modules/iconvme: Remove file.
52895         * lib/iconvme.h: Remove file.
52896         * lib/iconvme.c: Remove file.
52897         * m4/iconvme.m4: Remove file.
52898
52899 2007-03-19  Bruno Haible  <bruno@clisp.org>
52900
52901         * doc/relocatable-maint.texi: Break long shell script line.
52902         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52903
52904 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52905
52906         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52907         handle file_has_acl.
52908         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52909         * lib/acl.c: Move header inclusions and related macro defns into
52910         lib/acl-internal.h.
52911         (S_ISLNK): Remove defn, since that's now done for us.
52912         (file_has_acl): Move to lib/file-has-acl.c.
52913         Call acl_trivial if available.  This is the crucial part of the fix.
52914         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52915         shared within the library.  Rewrite a bit, partly to make it compatible
52916         with the GNU coding style.
52917         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52918         Remove unnecessary double-quotes.
52919         Don't test for acl_to_text; the build will catch that.
52920         Replace acl_entries if it doesn't exist and it is needed.
52921         Check for -lsec and acl_trivial (as used on Solaris 10).
52922         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52923         lib/file-has-acl.c.
52924         (Depends-on): Add sys_stat, for S_ISLNK.
52925
52926 2007-03-19  Ben Pfaff  <blp@gnu.org>
52927
52928         * doc/gnulib.texi: Fix typos.
52929         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52930
52931 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52932
52933         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52934         If size is zero here, buf must be zero.
52935
52936 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52937
52938         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52939         <bruno@clisp.org>.
52940
52941 2007-03-18  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52944         Suggested by Eric Blake.
52945
52946 2007-03-18  Ben Pfaff  <blp@gnu.org>
52947
52948         * doc/relocatable.texi: Recommend using as prefix a directory
52949         that does not exist and will never be created.  Based on
52950         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52951         and others.
52952
52953 2007-03-17  Bruno Haible  <bruno@clisp.org>
52954
52955         * lib/fchownat.c: Include lchown.h.
52956
52957 2007-03-17  Bruno Haible  <bruno@clisp.org>
52958
52959         Fix endless loop when the given allocated size was > INT_MAX.
52960         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52961         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52962         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52963         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52964         * lib/sprintf.c (sprintf): Likewise.
52965
52966 2007-03-17  Bruno Haible  <bruno@clisp.org>
52967
52968         * tests/test-argp-2.sh (func_compare): Output a context diff.
52969
52970 2007-03-17  Bruno Haible  <bruno@clisp.org>
52971
52972         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52973         locale's decimal-point character.
52974
52975 2007-03-17  Bruno Haible  <bruno@clisp.org>
52976
52977         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52978         before comparing it. Needed because on some platforms (e.g. x86) a
52979         'long double' occupies less bytes than sizeof (long double).
52980
52981 2007-03-17  Bruno Haible  <bruno@clisp.org>
52982
52983         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52984         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52985         * tests/test-getaddrinfo.c (simple): Likewise.
52986         * tests/test-read-file.c (main): Likewise.
52987
52988 2007-03-17  Bruno Haible  <bruno@clisp.org>
52989
52990         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52991
52992 2007-03-17  Bruno Haible  <bruno@clisp.org>
52993
52994         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52995         unused variable.
52996
52997 2007-03-17  Bruno Haible  <bruno@clisp.org>
52998
52999         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53000         * tests/test-c-strncasecmp.c: Likewise.
53001
53002 2007-03-17  Bruno Haible  <bruno@clisp.org>
53003
53004         * modules/stdlib (Depends-on): Add unistd.
53005         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53006         Needed for MacOS X 10.3.
53007
53008 2007-03-17  Bruno Haible  <bruno@clisp.org>
53009
53010         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53011
53012 2007-03-17  Bruno Haible  <bruno@clisp.org>
53013
53014         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53015
53016 2007-03-17  Bruno Haible  <bruno@clisp.org>
53017
53018         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53019         to reflect files copied from gnulib (with or without modifications).
53020         Suggested by Jim Meyering.
53021
53022 2007-03-17  Eric Blake  <ebb9@byu.net>
53023
53024         * NEWS: Document stdlib change from 2007-02-18.
53025
53026 2007-03-17  Jim Meyering  <jim@meyering.net>
53027
53028         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53029         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53030         someone uses a name containing shell meta-characters.
53031         Reported by Alfred M. Szmidt.
53032
53033         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53034
53035 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53036
53037         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53038         and copy gettext configuration files only if configure.ac contains
53039         a use of AM_GNU_GETTEXT_VERSION.
53040
53041 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53042
53043         * build-aux/bootstrap (gnulib_name): New variable.
53044         (gnulib_tool_options): Use it.
53045
53046 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53047
53048         * tests/test-des.c: Use new namespace.
53049
53050 2007-03-15  Bruno Haible  <bruno@clisp.org>
53051
53052         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53053         Reported by James Youngman <jay@gnu.org>.
53054
53055 2007-03-15  Bruno Haible  <bruno@clisp.org>
53056
53057         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53058         declared prototype. Needed with cc on OSF/1 5.1.
53059
53060 2007-03-15  Bruno Haible  <bruno@clisp.org>
53061
53062         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53063         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53064         (struct gl_list_implementation): Add dispose_fn argument to the
53065         'create_empty', 'create' methods.
53066         (struct gl_list_impl_base): Add field 'dispose_fn'.
53067         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53068         argument.
53069         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53070         dispose_fn argument.
53071         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53072         dispose_fn on the dropped values.
53073         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53074         dispose_fn argument.
53075         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53076         dropped values.
53077         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53078         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53079         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53080         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53081         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53082         argument.
53083         (gl_tree_list_free): Call dispose_fn on the dropped values.
53084         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53085         the dropped values.
53086         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53087         Add dispose_fn argument.
53088         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53089         Call dispose_fn on the dropped values.
53090         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53091         Add dispose_fn argument.
53092         (gl_sublist_create): Initialize the 'dispose_fn' field.
53093         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53094         * tests/test-array_list.c (main): Update.
53095         * tests/test-carray_list.c (main): Update.
53096         * tests/test-avltree_list.c (main): Update.
53097         * tests/test-rbtree_list.c (main): Update.
53098         * tests/test-avltreehash_list.c (main): Update.
53099         * tests/test-rbtreehash_list.c (main): Update.
53100         * tests/test-linked_list.c (main): Update.
53101         * tests/test-linkedhash_list.c (main): Update.
53102         * tests/test-array_oset.c (main): Update.
53103
53104 2007-03-15  Bruno Haible  <bruno@clisp.org>
53105
53106         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53107         (gl_oset_create_empty): Add dispose_fn argument.
53108         (struct gl_oset_implementation): Add dispose_fn argument to
53109         'create_empty' method.
53110         (struct gl_oset_impl_base): Add dispose_fn field.
53111         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53112         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53113         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53114         values.
53115         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53116         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53117         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53118         dropped value.
53119         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53120         dropped value.
53121         * tests/test-array_oset.c (main): Update.
53122         * tests/test-avltree_oset.c (main): Update.
53123         * tests/test-rbtree_oset.c (main): Update.
53124         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53125
53126 2007-03-13  Bruno Haible  <bruno@clisp.org>
53127
53128         * tests/test-stdbool.c (i): Update after last patch.
53129
53130 2007-03-12  Bruno Haible  <bruno@clisp.org>
53131
53132         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53133         the iswprint macro. Needed on Solaris 2.5.1.
53134
53135 2007-03-12  Bruno Haible  <bruno@clisp.org>
53136
53137         * tests/test-printf-frexp.c (main): Declare x as volatile.
53138
53139 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53140
53141         * doc/gnulib.texi (Build robot for gnulib): New section.
53142
53143 2007-03-12  Jim Meyering  <jim@meyering.net>
53144
53145         * build-aux/bootstrap: New file.
53146         * build-aux/bootstrap.conf: New file, from coreutils.
53147
53148 2007-03-11  Bruno Haible  <bruno@clisp.org>
53149
53150         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53151
53152 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53153
53154         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53155         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53156         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53157
53158 2007-03-11  Bruno Haible  <bruno@clisp.org>
53159
53160         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53161         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53162
53163 2007-03-11  Bruno Haible  <bruno@clisp.org>
53164
53165         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53166         formula. Needed for SunPRO C 5.0.
53167
53168 2007-03-11  Bruno Haible  <bruno@clisp.org>
53169
53170         * modules/long-options (Depends-on): Add getopt.
53171
53172 2007-03-11  Bruno Haible  <bruno@clisp.org>
53173
53174         * modules/modechange (Depends-on): Add stdbool.
53175
53176 2007-03-11  Bruno Haible  <bruno@clisp.org>
53177
53178         * modules/i-ring (Depends-on): Add stdbool.
53179
53180 2007-03-11  Bruno Haible  <bruno@clisp.org>
53181
53182         * modules/gc-des (Depends-on): Add stdbool.
53183
53184 2007-03-11  Bruno Haible  <bruno@clisp.org>
53185
53186         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53187
53188 2007-03-11  Bruno Haible  <bruno@clisp.org>
53189
53190         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53191
53192 2007-03-11  Bruno Haible  <bruno@clisp.org>
53193
53194         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53195
53196 2007-03-11  Bruno Haible  <bruno@clisp.org>
53197
53198         * lib/vasnprintf.c (sprintf): Undefine.
53199
53200 2007-03-11  Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53203         initializers in SunPRO C and Compaq C compilers.
53204
53205 2007-03-11  Bruno Haible  <bruno@clisp.org>
53206
53207         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53208         decrementing code ANSI C compliant.
53209
53210 2007-03-11  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53213         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53214
53215 2007-03-11  Bruno Haible  <bruno@clisp.org>
53216
53217         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53218         <stdbool.h> substitute doesn't pass.
53219
53220 2007-03-11  Bruno Haible  <bruno@clisp.org>
53221
53222         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53223
53224 2007-03-11  Bruno Haible  <bruno@clisp.org>
53225
53226         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53227         script, for submission to autobuild.josefsson.org.
53228
53229 2007-03-10  Bruno Haible  <bruno@clisp.org>
53230
53231         * modules/canonicalize-lgpl-tests: New file.
53232         * tests/test-canonicalize-lgpl.sh: New file.
53233         * tests/test-canonicalize-lgpl.c: New file.
53234
53235         * modules/c-strcase-tests: New file.
53236         * tests/test-c-strcase.sh: New file.
53237         * tests/test-c-strcasecmp.c: New file.
53238         * tests/test-c-strncasecmp.c: New file.
53239
53240         * modules/atexit-tests: New file.
53241         * tests/test-atexit.sh: New file.
53242         * tests/test-atexit.c: New file.
53243
53244 2007-03-10  Bruno Haible  <bruno@clisp.org>
53245
53246         * tests/test-binary-io.sh: Use temporary filenames that are not so
53247         likely to clash with those of other tests (in a parallel make).
53248         * tests/test-binary-io.c: Likewise.
53249
53250 2007-03-10  Bruno Haible  <bruno@clisp.org>
53251
53252         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53253         fallback; use #error instead.
53254         Suggested by Simon Josefsson.
53255
53256 2007-03-10  Bruno Haible  <bruno@clisp.org>
53257
53258         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53259         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53260         first and the last.
53261
53262 2007-03-10  Bruno Haible  <bruno@clisp.org>
53263
53264         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53265
53266 2007-03-10  Bruno Haible  <bruno@clisp.org>
53267
53268         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53269         "make distcheck".
53270         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53271         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53272         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53273
53274 2007-03-10  Bruno Haible  <bruno@clisp.org>
53275
53276         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53277         variable.
53278         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53279         variable.
53280
53281 2007-03-09  Eric Blake  <ebb9@byu.net>
53282         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53283
53284         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53285         types are not being provided by gnulib.
53286         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53287         types are supported.
53288
53289 2007-03-10  Bruno Haible  <bruno@clisp.org>
53290
53291         * lib/stdio_.h (__attribute__): New macro.
53292         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53293         vsprintf): Specify __attribute__ __format__ for GCC.
53294         Suggested by Eric Blake.
53295
53296 2007-03-09  Bruno Haible  <bruno@clisp.org>
53297
53298         * modules/printf-posix-tests: New file.
53299         * tests/test-printf-posix.sh: New file.
53300         * tests/test-printf-posix.c: New file.
53301
53302         * modules/printf-posix: New file.
53303         * lib/printf.c: New file.
53304         * m4/printf-posix-rpl.m4: New file.
53305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53306         REPLACE_PRINTF.
53307         * lib/stdio_.h (printf): New declaration.
53308         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53309         ____strfmon____): New macros.
53310         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53311         REPLACE_PRINTF.
53312
53313 2007-03-09  Bruno Haible  <bruno@clisp.org>
53314
53315         * tests/test-vasnprintf-posix2.sh: New file.
53316         * tests/test-vasnprintf-posix2.c: New file.
53317         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53318         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53319         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53320
53321         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53322         a locale dependent decimal point, rather than always '.'.
53323
53324 2007-03-09  Eric Blake  <ebb9@byu.net>
53325
53326         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53327         spite of platforms like Tandem/NSK that define it to -1.
53328
53329 2007-03-08  Bruno Haible  <bruno@clisp.org>
53330
53331         * modules/vprintf-posix-tests: New file.
53332         * tests/test-vprintf-posix.sh: New file.
53333         * tests/test-vprintf-posix.c: New file.
53334         * tests/test-printf-posix.h: New file.
53335
53336         * modules/vprintf-posix: New file.
53337         * lib/vprintf.c: New file.
53338         * m4/vprintf-posix.m4: New file.
53339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53340         REPLACE_VPRINTF.
53341         * lib/stdio_.h (vprintf): New declaration.
53342         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53343         REPLACE_VPRINTF.
53344
53345 2007-03-08  Bruno Haible  <bruno@clisp.org>
53346
53347         * modules/fprintf-posix-tests: New file.
53348         * tests/test-fprintf-posix.sh: New file.
53349         * tests/test-fprintf-posix.c: New file.
53350
53351         * modules/fprintf-posix: New file.
53352         * lib/fprintf.c: New file.
53353         * m4/fprintf-posix.m4: New file.
53354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53355         REPLACE_FPRINTF.
53356         * lib/stdio_.h (fprintf): New declaration.
53357         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53358         REPLACE_FPRINTF.
53359
53360 2007-03-08  Bruno Haible  <bruno@clisp.org>
53361
53362         * modules/vfprintf-posix-tests: New file.
53363         * tests/test-vfprintf-posix.sh: New file.
53364         * tests/test-vfprintf-posix.c: New file.
53365         * tests/test-fprintf-posix.h: New file.
53366         * tests/test-fprintf-posix.out: New file.
53367
53368         * modules/vfprintf-posix: New file.
53369         * lib/vfprintf.c: New file.
53370         * m4/vfprintf-posix.m4: New file.
53371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53372         REPLACE_VFPRINTF.
53373         * lib/stdio_.h (vfprintf): New declaration.
53374         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53375         REPLACE_VFPRINTF.
53376
53377 2007-03-08  Bruno Haible  <bruno@clisp.org>
53378
53379         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53380
53381 2007-03-08  Bruno Haible  <bruno@clisp.org>
53382
53383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53384         instead of 'expr' invocations.
53385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53390         Suggested by Paul Eggert.
53391
53392 2007-03-08  Bruno Haible  <bruno@clisp.org>
53393
53394         * modules/fseterr-tests: New file.
53395         * tests/test-fseterr.c: New file.
53396
53397         * modules/fseterr: New file.
53398         * lib/fseterr.h: New file.
53399         * lib/fseterr.c: New file.
53400
53401 2007-03-08  Bruno Haible  <bruno@clisp.org>
53402
53403         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53404         * lib/getopt_.h: Likewise.
53405         * lib/mbswidth.h: Likewise.
53406         * lib/setenv.h: Likewise.
53407         * lib/vasnprintf.h: Likewise.
53408         * lib/vasprintf.h: Likewise.
53409         * lib/verror.h: Likewise.
53410         * lib/xsetenv.h: Likewise.
53411         * lib/xvasprintf.h: Likewise.
53412
53413 2007-03-08  Jim Meyering  <jim@meyering.net>
53414
53415         * users.txt: Add parted.
53416
53417         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53418
53419 2007-03-07  Bruno Haible  <bruno@clisp.org>
53420
53421         * m4/printf.m4: Make the shell script snippets copy&pastable.
53422
53423 2007-03-02  Bruno Haible  <bruno@clisp.org>
53424
53425         * lib/netinet_in_.h: New file.
53426         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53427         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53428         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53429         (Depends-on): Add absolute-header.
53430         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53431         into netinet/in.h.
53432
53433 2007-03-03  Bruno Haible  <bruno@clisp.org>
53434
53435         * lib/sys_select_.h: New file.
53436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53437         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53438         * modules/sys_select (Files): Add lib/sys_select_.h.
53439         (Depends-on): Add absolute-header.
53440         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53441         into sys/select.h.
53442
53443 2007-03-02  Bruno Haible  <bruno@clisp.org>
53444
53445         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53446         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53447         values.
53448         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53449         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53450         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53451         * modules/sys_socket (Depends-on): Add absolute-header.
53452         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53453         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53454         (Include): Remove requirement of inclusion of <sys/types.h>.
53455
53456 2007-03-02  Bruno Haible  <bruno@clisp.org>
53457
53458         * lib/byteswap_.h (bswap_32): Fix formula.
53459
53460 2007-03-06  Bruno Haible  <bruno@clisp.org>
53461
53462         * modules/sprintf-posix-tests: New file.
53463         * tests/test-sprintf-posix.c: New file.
53464
53465         * modules/sprintf-posix: New file.
53466         * lib/sprintf.c: New file.
53467         * m4/sprintf-posix.m4: New file.
53468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53469         REPLACE_SPRINTF.
53470         * lib/stdio_.h (sprintf): New declaration.
53471         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53472         REPLACE_SPRINTF.
53473
53474 2007-03-06  Bruno Haible  <bruno@clisp.org>
53475
53476         * modules/vsprintf-posix-tests: New file.
53477         * tests/test-vsprintf-posix.c: New file.
53478         * tests/test-sprintf-posix.h: New file.
53479
53480         * modules/vsprintf-posix: New file.
53481         * lib/vsprintf.c: New file.
53482         * m4/vsprintf-posix.m4: New file.
53483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53484         REPLACE_VSPRINTF.
53485         * lib/stdio_.h (vsprintf): New declaration.
53486         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53487         REPLACE_VSPRINTF.
53488
53489 2007-03-06  Bruno Haible  <bruno@clisp.org>
53490
53491         * modules/vsnprintf (Depend-on): Remove minmax.
53492
53493 2007-03-06  Bruno Haible  <bruno@clisp.org>
53494
53495         * modules/snprintf-posix-tests: New file.
53496         * tests/test-snprintf-posix.c: New file.
53497
53498         * modules/snprintf-posix: New file.
53499         * m4/snprintf-posix.m4: New file.
53500         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53501         gl_FUNC_SNPRINTF.
53502         (gl_FUNC_SNPRINTF): Invoke it.
53503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53504         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53505         is set.
53506         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53507
53508 2007-03-06  Bruno Haible  <bruno@clisp.org>
53509
53510         * modules/vsnprintf-posix-tests: New file.
53511         * tests/test-vsnprintf-posix.c: New file.
53512         * tests/test-snprintf-posix.h: New file.
53513
53514         * modules/vsnprintf-posix: New file.
53515         * m4/vsnprintf-posix.m4: New file.
53516         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53517         gl_FUNC_VSNPRINTF.
53518         (gl_FUNC_VSNPRINTF): Invoke it.
53519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53520         * lib/stdio_.h (vsnprintf): Define as a replacement if
53521         REPLACE_VSNPRINTF is set.
53522         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53523
53524 2007-03-06  Bruno Haible  <bruno@clisp.org>
53525
53526         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53528
53529 2007-03-06  Bruno Haible  <bruno@clisp.org>
53530
53531         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53532         (asinl): Declare also if HAVE_DECL_ASINL is set.
53533         (atanl): Declare also if HAVE_DECL_ATANL is set.
53534         (ceill): Declare also if HAVE_DECL_CEILL is set.
53535         (cosl): Declare also if HAVE_DECL_COSL is set.
53536         (expl): Declare also if HAVE_DECL_EXPL is set.
53537         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53538         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53539         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53540         (logl): Declare also if HAVE_DECL_LOGL is set.
53541         (sinl): Declare also if HAVE_DECL_SINL is set.
53542         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53543         (tanl): Declare also if HAVE_DECL_TANL is set.
53544         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53546         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53547         declaration of frexpl, ldexpl.
53548         * modules/printf-frexpl (Depends-on): Add math.
53549         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53550
53551 2007-03-05  Bruno Haible  <bruno@clisp.org>
53552
53553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53554         frexpl and ldexpl are declared.
53555         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53556
53557 2007-03-05  Bruno Haible  <bruno@clisp.org>
53558
53559         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53560         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53561
53562 2007-03-05  Bruno Haible  <bruno@clisp.org>
53563
53564         * lib/stdio_.h: Include <stddef.h>.
53565
53566 2007-03-05  Bruno Haible  <bruno@clisp.org>
53567
53568         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53569
53570 2007-03-05  Bruno Haible  <bruno@clisp.org>
53571
53572         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53573         NetBSD 4, from Ralf Wildenhues.
53574
53575 2007-03-04  Bruno Haible  <bruno@clisp.org>
53576
53577         * lib/vasprintf.h: Update #if logic for the case when the functions
53578         exist but are overridden.
53579
53580 2007-03-04  Bruno Haible  <bruno@clisp.org>
53581
53582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53583         implementations: glibc-2.4 and MacOS X 10.3.
53584         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53585         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53586         * tests/test-vasprintf-posix.c (test_function): Likewise.
53587
53588 2007-03-04  Bruno Haible  <bruno@clisp.org>
53589
53590         * modules/vasprintf-posix-tests: New file.
53591         * tests/test-vasprintf-posix.c: New file.
53592
53593         * modules/vasprintf-posix: New file.
53594         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53595         defined.
53596         * m4/vasprintf-posix.m4: New file.
53597         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53598         gl_FUNC_VASPRINTF.
53599         (gl_FUNC_VASPRINTF): Invoke it.
53600         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53601         here.
53602         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53603
53604 2007-03-04  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53607         REPLACE_GETTIMEOFDAY.
53608         * modules/sys_time (Makefile.am): Likewise.
53609         * m4/sys_time_h.m4: Likewise.
53610         * m4/gettimeofday.m4: Likewise.
53611
53612 2007-03-04  Bruno Haible  <bruno@clisp.org>
53613
53614         * modules/vasnprintf-posix-tests: New file.
53615         * tests/test-vasnprintf-posix.c: New file.
53616
53617         * modules/vasnprintf-posix: New file.
53618         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53619         printf-frexpl.h.
53620         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53621         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53622         REPLACE_VASNPRINTF is defined.
53623         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53624         gl_FUNC_VASNPRINTF.
53625         (gl_FUNC_VASNPRINTF): Invoke it.
53626         * m4/vasnprintf-posix.m4: New file.
53627         * m4/printf.m4: New file.
53628
53629 2007-03-04  Bruno Haible  <bruno@clisp.org>
53630
53631         Compile progreloc.c only if --enable-relocatable is specified.
53632         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53633         if --enable-relocatable was specified.
53634         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53635         lib_SOURCES.
53636
53637 2007-03-04  Jim Meyering  <jim@meyering.net>
53638
53639         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53640         Use it consistently, rather than enumerating errno constants.
53641
53642 2007-03-04  Bruno Haible  <bruno@clisp.org>
53643
53644         * modules/xvasprintf-tests: New file.
53645         * tests/test-xvasprintf.c: New file.
53646
53647         * modules/vasprintf-tests: New file.
53648         * tests/test-vasprintf.c: New file.
53649
53650         * modules/vasnprintf-tests: New file.
53651         * tests/test-vasnprintf.c: New file.
53652
53653         * modules/vsnprintf-tests: New file.
53654         * tests/test-vsnprintf.c: New file.
53655
53656         * modules/snprintf-tests: New file.
53657         * tests/test-snprintf.c: New file.
53658
53659 2007-03-04  Bruno Haible  <bruno@clisp.org>
53660
53661         Compile relocatable.c only if --enable-relocatable is specified.
53662         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53663         gl_RELOCATABLE_LIBRARY.
53664         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53665         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53666         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53667         gl_RELOCATABLE_LIBRARY.
53668         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53669         (Makefile.am): Remove lib_SOURCES.
53670         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53671         gl_RELOCATABLE_LIBRARY.
53672         (Makefile.am): Remove lib_SOURCES.
53673         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53674         always.
53675         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53676         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53677
53678 2007-03-04  Bruno Haible  <bruno@clisp.org>
53679
53680         * modules/argmatch-tests: New file.
53681         * tests/test-argmatch.c: New file.
53682
53683         * tests/test-allocsa.c (main): Halve the number of loop runs.
53684
53685         * modules/alloca-opt-tests: New file.
53686         * tests/test-alloca-opt.c: New file.
53687
53688 2007-03-04  Jim Meyering  <jim@meyering.net>
53689
53690         Work around difference between Linux ACLs and Solaris 10 ZFS.
53691         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53692         for EINVAL.
53693
53694 2007-03-03  Bruno Haible  <bruno@clisp.org>
53695
53696         * modules/relocatable-prog (Depends-on): Add back progreloc's
53697         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53698
53699 2007-03-03  Bruno Haible  <bruno@clisp.org>
53700
53701         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53702         * modules/relocatable-lib: New file.
53703
53704 2007-03-03  Bruno Haible  <bruno@clisp.org>
53705
53706         * modules/relocatable-prog: Renamed from modules/relocatable.
53707         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53708
53709 2007-03-03  Bruno Haible  <bruno@clisp.org>
53710
53711         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53712         m4/relocatable-lib.m4.
53713         (Depends-on): Remove 'relocatable'.
53714         (configure.ac): Add gl_RELOCATABLE_NOP.
53715
53716 2007-03-03  Bruno Haible  <bruno@clisp.org>
53717
53718         * modules/relocatable-prog-wrapper: New file.
53719         * modules/relocatable (Depends-on): Add it. Remove all other
53720         dependencies except progname.
53721         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53722
53723         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53724         (gl_FUNC_STRERROR): Nop.
53725         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53726
53727         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53728         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53729
53730         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53731         (gl_FUNC_READLINK): Update.
53732
53733         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53734
53735 2007-03-03  Bruno Haible  <bruno@clisp.org>
53736
53737         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53738         * modules/xreadlink (Depends-on): Add unistd.
53739         * modules/xreadlink-with-size (Depends-on): Likewise.
53740
53741 2007-03-03  Bruno Haible  <bruno@clisp.org>
53742
53743         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53744         extracted from gt_FUNC_SETENV.
53745         (gt_FUNC_SETENV): Remove macro.
53746         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53747         remove gt_FUNC_SETENV.
53748
53749 2007-03-03  Bruno Haible  <bruno@clisp.org>
53750
53751         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53752         ENABLE_RELOCATABLE here.
53753         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53754
53755 2007-03-03  Bruno Haible  <bruno@clisp.org>
53756
53757         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53758         * tests/test-rbtreehash_list.c: Include progname.h.
53759         (main): Call set_program_name.
53760
53761         * modules/rbtree-oset-tests (Depends-on): Add progname.
53762         * tests/test-rbtree_oset.c: Include progname.h.
53763         (main): Call set_program_name.
53764
53765         * modules/rbtree-list-tests (Depends-on): Add progname.
53766         * tests/test-rbtree_list.c: Include progname.h.
53767         (main): Call set_program_name.
53768
53769         * modules/linked-list-tests (Depends-on): Add progname.
53770         * tests/test-linked_list.c: Include progname.h.
53771         (main): Call set_program_name.
53772
53773 2007-03-03  Bruno Haible  <bruno@clisp.org>
53774
53775         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53776         All uses of __restrict changed to _Restrict_.
53777         * lib/glob_.h (__restrict): Remove macro.
53778
53779 2007-03-02  Bruno Haible  <bruno@clisp.org>
53780
53781         * modules/gettext (configure.ac): Require gettext infrastructure
53782         from version 0.16.1.
53783
53784 2007-03-02  Bruno Haible  <bruno@clisp.org>
53785
53786         * modules/linkedhash-list-tests (Depends-on): Add progname.
53787         * tests/test-linkedhash_list.c: Include progname.h.
53788         (main): Call set_program_name.
53789
53790         * modules/carray-list-tests (Depends-on): Add progname.
53791         * tests/test-carray_list.c: Include progname.h.
53792         (main): Call set_program_name.
53793
53794         * modules/avltreehash-list-tests (Depends-on): Add progname.
53795         * tests/test-avltreehash_list.c: Include progname.h.
53796         (main): Call set_program_name.
53797
53798         * modules/avltree-oset-tests (Depends-on): Add progname.
53799         * tests/test-avltree_oset.c: Include progname.h.
53800         (main): Call set_program_name.
53801
53802         * modules/avltree-list-tests (Depends-on): Add progname.
53803         * tests/test-avltree_list.c: Include progname.h.
53804         (main): Call set_program_name.
53805
53806         * modules/array-oset-tests (Depends-on): Add progname.
53807         * tests/test-array_oset.c: Include progname.h.
53808         (main): Call set_program_name.
53809
53810         * modules/array-list-tests (Depends-on): Add progname.
53811         * tests/test-array_list.c: Include progname.h.
53812         (main): Call set_program_name.
53813
53814         * modules/argp-tests (Depends-on): Add progname.
53815         * tests/test-argp.c: Include argp.h first. Include progname.h.
53816         (main): Call set_program_name.
53817
53818 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53819
53820         * doc/gnulib-tool.texi (Initial import): Reword description of
53821         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53822         limited effect even if defined after the first system include.
53823
53824 2007-03-01  Bruno Haible  <bruno@clisp.org>
53825
53826         * build-aux/config.libpath: Update to libtool-1.5.22.
53827         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53828
53829 2007-03-01  Bruno Haible  <bruno@clisp.org>
53830
53831         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53832         foo_CFLAGS.
53833         Reported by Ralf Wildenhues.
53834
53835 2007-03-01  Bruno Haible  <bruno@clisp.org>
53836
53837         * build-aux/install-reloc: Remove object files left over by some
53838         compilers.
53839         Reported by Ralf Wildenhues.
53840
53841 2007-03-01  Bruno Haible  <bruno@clisp.org>
53842
53843         * build-aux/install-reloc: Break long lines.
53844
53845 2007-03-01  Bruno Haible  <bruno@clisp.org>
53846
53847         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53848         Reported by Ralf Wildenhues.
53849
53850 2007-03-01  Bruno Haible  <bruno@clisp.org>
53851
53852         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53853         include ordering constraints.
53854
53855 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53856
53857         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53859         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53860         as another example.
53861         * lib/time_.h: Fix misspelling.
53862         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53863         Require gl_HEADER_TIME_H_DEFAULTS.
53864         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53865         * m4/time_r.m4 (gl_TIME_R): Likewise.
53866         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53867
53868 2007-03-01  Bruno Haible  <bruno@clisp.org>
53869
53870         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53871         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53872
53873 2007-03-01  Jim Meyering  <jim@meyering.net>
53874
53875         * modules/xreadlink (Maintainer): Add my name.
53876         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53877
53878 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53879             Bruno Haible  <bruno@clisp.org>
53880
53881         * build-aux/install-reloc: Compile also c-ctype.c.
53882         * build-aux/relocatable.sh.in: New file.
53883         * doc/relocatable.texi: New file.
53884         * doc/relocatable-maint.texi: New file.
53885         * doc/gnulib.texi: Include relocatable-maint.texi.
53886         * lib/progreloc.c: Include unistd.h unconditionally.
53887         * lib/relocwrapper.c: Include unistd.h unconditionally.
53888         Include c-ctype.h.
53889         (add_dotbin): Use c_tolower.
53890         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53891         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53892         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53893         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53894         to m4/relocatable-lib.m4.
53895         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53896         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53897         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53898         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53899         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53900         * modules/relocatable: New file.
53901         * modules/relocatable-lib: New file.
53902         * modules/relocatable-script: New file.
53903
53904 2007-02-28  Bruno Haible  <bruno@clisp.org>
53905
53906         Import --enable-relocatable infrastructure.
53907         * build-aux/config.libpath: New file, from GNU gettext.
53908         * build-aux/install-reloc: New file, from GNU gettext.
53909         * build-aux/reloc-ldflags: New file, from GNU gettext.
53910         * lib/relocatable.h: New file, from GNU gettext.
53911         * lib/relocatable.c: New file, from GNU gettext.
53912         * lib/relocwrapper.c: New file, from GNU gettext.
53913         * m4/relocatable.m4: New file, from GNU gettext.
53914
53915 2007-02-28  Bruno Haible  <bruno@clisp.org>
53916
53917         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53918
53919         * modules/xreadlink: New file, from GNU gettext with modifications.
53920         * lib/xreadlink.c: New file, from GNU gettext.
53921         * lib/xreadlink.h: Add comments.
53922         (xreadlink): New declaration.
53923
53924         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53925         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53926         lib/xreadlink-with-size.c.
53927         (configure.ac): Remove gl_XREADLINK invocation.
53928         (Makefile.am): Augment lib_SOURCES.
53929         * m4/xreadlink.m4: Remove file.
53930         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53931         (xreadlink_with_size): Renamed from xreadink.
53932         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53933         * modules/canonicalize (Depends-on): Replace xreadlink with
53934         xreadlink-with-size.
53935         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53936
53937 2007-02-25  Jim Meyering  <jim@meyering.net>
53938
53939         * build-aux/announce-gen: When complaining about excess arguments,
53940         list them.
53941
53942 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53943
53944         * README: Document signed integer overflow situation more
53945         accurately.
53946
53947 2007-02-25  Bruno Haible  <bruno@clisp.org>
53948
53949         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53950         'a' or 'A' conversion.
53951
53952 2007-02-25  Bruno Haible  <bruno@clisp.org>
53953
53954         * modules/filename: Renamed from modules/pathname.
53955         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53956         lib/concatpath.c with lib/concat-filename.c.
53957         (Makefile.am): Update.
53958         (Include): Replace pathname.h with filename.h.
53959         * lib/filename.h: Renamed from lib/pathname.h.
53960         (concatenated_filename): Renamed from concatenated_pathname.
53961         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53962         (concatenated_filename): Renamed from concatenated_pathname.
53963         * lib/findprog.c: Include filename.h instead of pathname.h.
53964         (find_in_path): Update.
53965         * lib/javacomp.c: Include filename.h instead of pathname.h.
53966         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53967         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53968         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53969         is_oldgcj_14_13_usable, is_javac_usable): Update.
53970         * lib/javaexec.c: Include filename.h instead of pathname.h.
53971         (execute_java_class): Update.
53972         * modules/findprog: Update.
53973         * modules/javacomp: Update.
53974         * modules/javaexec: Update.
53975         * MODULES.html.sh (File system functions): Add 'filename', remove
53976         'pathname'.
53977
53978 2007-02-25  Bruno Haible  <bruno@clisp.org>
53979
53980         * modules/printf-frexpl-tests: New file.
53981         * tests/test-printf-frexpl.c: New file.
53982
53983         * modules/printf-frexpl: New file.
53984         * lib/printf-frexpl.h: New file.
53985         * lib/printf-frexpl.c: New file.
53986         * m4/printf-frexpl.m4: New file.
53987
53988 2007-02-25  Bruno Haible  <bruno@clisp.org>
53989
53990         * modules/printf-frexp-tests: New file.
53991         * tests/test-printf-frexp.c: New file.
53992
53993         * modules/printf-frexp: New file.
53994         * lib/printf-frexp.h: New file.
53995         * lib/printf-frexp.c: New file.
53996         * m4/printf-frexp.m4: New file.
53997
53998 2007-02-25  Bruno Haible  <bruno@clisp.org>
53999
54000         Assume automake >= 1.10 for the tests.
54001         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54002         * modules/arctwo-tests: Likewise.
54003         * modules/argp-tests: Likewise.
54004         * modules/avltree-list-tests: Likewise.
54005         * modules/avltree-oset-tests: Likewise.
54006         * modules/avltreehash-list-tests: Likewise.
54007         * modules/carray-list-tests: Likewise.
54008         * modules/crc-tests: Likewise.
54009         * modules/des-tests: Likewise.
54010         * modules/gc-arcfour-tests: Likewise.
54011         * modules/gc-arctwo-tests: Likewise.
54012         * modules/gc-des-tests: Likewise.
54013         * modules/gc-hmac-md5-tests: Likewise.
54014         * modules/gc-hmac-sha1-tests: Likewise.
54015         * modules/gc-md2-tests: Likewise.
54016         * modules/gc-md4-tests: Likewise.
54017         * modules/gc-md5-tests: Likewise.
54018         * modules/gc-pbkdf2-sha1-tests: Likewise.
54019         * modules/gc-rijndael-tests: Likewise.
54020         * modules/gc-sha1-tests: Likewise.
54021         * modules/gc-tests: Likewise.
54022         * modules/getaddrinfo-tests: Likewise.
54023         * modules/hmac-md5-tests: Likewise.
54024         * modules/hmac-sha1-tests: Likewise.
54025         * modules/linked-list-tests: Likewise.
54026         * modules/linkedhash-list-tests: Likewise.
54027         * modules/lock-tests: Likewise.
54028         * modules/md2-tests: Likewise.
54029         * modules/md4-tests: Likewise.
54030         * modules/md5-tests: Likewise.
54031         * modules/rbtree-list-tests: Likewise.
54032         * modules/rbtree-oset-tests: Likewise.
54033         * modules/rbtreehash-list-tests: Likewise.
54034         * modules/read-file-tests: Likewise.
54035         * modules/rijndael-tests: Likewise.
54036         * modules/stdint-tests: Likewise.
54037         * modules/tls-tests: Likewise.
54038
54039 2007-02-24  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54042         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54043         function; instead check whether isnan with a double argument links.
54044         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54045         function; instead check whether isnan with a 'long double' argument
54046         links.
54047         Reported by Eric Blake <ebb9@byu.net>.
54048
54049 2007-02-24  Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54052         defined.
54053         * lib/isnanl.c: Remove all code. Just include isnan.c.
54054         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54055
54056 2007-02-25  Jim Meyering  <jim@meyering.net>
54057
54058         Avoid conflicting types for 'unsetenv' on FreeBSD.
54059         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54060         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54061         in stdlib.h.
54062
54063 2007-02-24  Bruno Haible  <bruno@clisp.org>
54064
54065         * modules/isnanl-nolibm-tests: New file.
54066         * tests/test-isnanl.c: New file.
54067
54068         * modules/isnanl-nolibm: New file.
54069         * lib/isnanl.h: New file.
54070         * lib/isnanl.c: New file.
54071         * m4/isnanl.m4: New file.
54072
54073 2007-02-24  Bruno Haible  <bruno@clisp.org>
54074
54075         * modules/isnan-nolibm-tests: New file.
54076         * tests/test-isnan.c: New file.
54077
54078         * modules/isnan-nolibm: New file.
54079         * lib/isnan.h: New file.
54080         * lib/isnan.c: New file.
54081         * m4/isnan.m4: New file.
54082
54083 2007-02-24  Bruno Haible  <bruno@clisp.org>
54084
54085         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54086         assume that an exponent fits in 20 bits.
54087
54088 2007-02-24  Jim Meyering  <jim@meyering.net>
54089
54090         * m4/regex.m4: Update the description of the configure-time option,
54091         --without-included-regex, to state accurately what the defaults are,
54092         and perhaps to give people an idea why using this option is risky.
54093
54094 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54095
54096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54097         loops on small arguments.  This attempts to avoid the problem
54098         Bruno Haible reported for AIX 4.3.2 in
54099         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54100
54101 2007-02-23  Bruno Haible  <bruno@clisp.org>
54102
54103         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54104         Needed for help2man.
54105
54106 2007-02-23  Karl Berry  <karl@gnu.org>
54107
54108         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54109         exists, foo.h should be cvs-ignored, not committed.
54110
54111 2007-02-23  Eric Blake  <ebb9@byu.net>
54112
54113         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54114         * lib/stat-time.h (includes): Likewise.
54115         * lib/utimecmp.c (includes): Likewise.
54116         * lib/utimens.h (includes): Likewise.
54117         * lib/getdate.y (includes): Also include "timespec.h" for use
54118         internal to the module.
54119         * modules/utimens (Depends-on): Revert yesterday's patch.
54120         * modules/nanosleep (Depends-on): Add missing dependency.
54121
54122 2007-02-22  Bruno Haible  <bruno@clisp.org>
54123
54124         * lib/glob.c: Don't include getlogin_r.h.
54125
54126 2007-02-22  Jim Meyering  <jim@meyering.net>
54127
54128         * modules/utimens (Depends-on): Add timespec, required for
54129         utimens.h's inclusion of timespec.h.
54130
54131 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54132
54133         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54134         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54135         Schwab in
54136         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54137         I'll try to think of a better way to fix the Solaris problem.
54138
54139         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54140         like glibc; on Solaris 10, it fails with errno == EINVAL.
54141         POSIX says the behavior is unspecified if the first argument is NULL,
54142         so play it safe and never pass NULL to the system getcwd.
54143
54144 2007-02-21  Jim Meyering  <jim@meyering.net>
54145
54146         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54147         of gettimeofday.  It would conflict with the one now always
54148         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54149         an IRIX 6.5 build failure.
54150
54151 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54152
54153         Minor fixups to port to Solaris 10 with Sun C 5.8.
54154         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54155         * modules/getcwd (Depends-on): Add dirfd.
54156         * lib/putenv.c (putenv): #undef it.
54157         (rpl_putenv): New decl.
54158         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54159
54160 2007-02-20  Bruno Haible  <bruno@clisp.org>
54161
54162         * modules/stdio-tests: New file.
54163         * tests/test-stdio.c: New file.
54164
54165         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54166         (Depends-on): Add stdio.
54167         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54168         (Include): Use <stdio.h> instead of vsnprintf.h.
54169         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54170         HAVE_DECL_VSNPRINTF.
54171         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54172
54173         * modules/snprintf (Files): Remove lib/snprintf.h.
54174         (Depends-on): Add stdio.
54175         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54176         (Include): Use <stdio.h> instead of snprintf.h.
54177         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54178         HAVE_DECL_SNPRINTF.
54179         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54180         * lib/getaddrinfo.c: Likewise.
54181
54182         * modules/stdio: New file.
54183         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54184         * lib/snprintf.h: Remove file.
54185         * lib/vsnprintf.h: Remove file.
54186         * lib/.cppi-disable: Remove snprintf.h.
54187         * m4/stdio_h.m4: New file.
54188         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54189
54190 2007-02-20  Jim Meyering  <jim@meyering.net>
54191
54192         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54193         used by e.g., mingw.  From Bruno Haible.
54194
54195 2007-02-19  Bruno Haible  <bruno@clisp.org>
54196
54197         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54198         warnings.
54199         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54200
54201 2007-02-19  Bruno Haible  <bruno@clisp.org>
54202
54203         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54204         from mingw users.
54205
54206 2007-02-19  Bruno Haible  <bruno@clisp.org>
54207
54208         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54209         warnings.
54210         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54211
54212 2007-02-19  Jim Meyering  <jim@meyering.net>
54213
54214         Don't use FD after a successful "fdopendir (fd)".
54215         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54216         Reset it by calling dirfd on the just-obtained DIR*.
54217
54218         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54219         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54220
54221 2007-02-18  Bruno Haible  <bruno@clisp.org>
54222
54223         * lib/readlink.c: Include <unistd.h>.
54224         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54225         HAVE_READLINK.
54226         * modules/readlink (Depends-on): Add unistd.
54227         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54228         (Include): Add <unistd.h>.
54229
54230         * lib/getlogin_r.h: Remove file.
54231         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54232         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54233         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54234         HAVE_DECL_GETLOGIN_R.
54235         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54237         (Include): Use <unistd.h> instead of getlogin_r.h.
54238
54239         * lib/getcwd.h: Remove file.
54240         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54241         * lib/xgetcwd.c: Likewise.
54242         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54243         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54244         * modules/getcwd (Files): Remove lib/getcwd.h.
54245         (Depends-on): Add unistd.
54246         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54247         (Include): Use <unistd.h> instad of getcwd.h.
54248
54249         * lib/ftruncate.c: Include <unistd.h> first.
54250         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54251         Set HAVE_FTRUNCATE.
54252         * modules/ftruncate (Depends-on): Add unistd.
54253         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54254
54255         * lib/fchdir.c: Include <unistd.h> first.
54256         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54258         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54259         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54260         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54261
54262         * lib/dup2.c: Include <unistd.h> first.
54263         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54264         HAVE_DUP2.
54265         * modules/dup2 (Depends-on): Add unistd.
54266         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54267
54268         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54269         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54270         REPLACE_CHOWN. Don't define chown as a macro here.
54271         * modules/chown (Depends-on): Add unistd.
54272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54273
54274         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54275         Add definition for GL_LINK_WARNING.
54276         (chown, dup2): New declarations.
54277         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54278         link warning.
54279         (ftruncate): New declaration.
54280         (getcwd): New declaration, taken from old getcwd.h.
54281         (getlogin_r): New declaration, taken from old getlogin_r.h.
54282         (readlink): New declaration.
54283         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54284         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54285         (gl_PREREQ_UNISTD): Remove macro.
54286         (gl_UNISTD_MODULE_INDICATOR): New macro.
54287         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54288         many new variables. Don't set UNISTD_H.
54289         * modules/unistd (Description): Change.
54290         (Depends-on): Add link-warning.
54291         (configure.ac): Update.
54292         (Makefile.am): Create unistd.h always. Substitute many new variables
54293         into it.
54294
54295 2007-02-18  Bruno Haible  <bruno@clisp.org>
54296
54297         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54298         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54299         HAVE_GETSUBOPT.
54300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54301         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54302         * lib/getsubopt.h: Remove file.
54303         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54304         (Depends-on): Add stdlib.
54305         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54306         (Includes): Use <stdlib.h> instead of getsubopt.h.
54307         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54308         Set HAVE_GETSUBOPT.
54309         * lib/getsubopt.c: Don't include getsubopt.h.
54310
54311 2007-02-18  Bruno Haible  <bruno@clisp.org>
54312
54313         * modules/fchdir (Depends-on): Add dup2.
54314
54315 2007-02-18  Bruno Haible  <bruno@clisp.org>
54316
54317         * lib/stdlib_.h: Handle glibc's special invocation convention
54318         specially.
54319
54320 2007-02-18  Bruno Haible  <bruno@clisp.org>
54321
54322         * modules/stdlib-tests: New file.
54323         * tests/test-stdlib.c: New file.
54324
54325         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54326         (Depends-on): Add stdlib.
54327         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54328         (Includes): Use <stdlib.h> instead of mkstemp.h.
54329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54330         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54331         * lib/mkstemp.c: Don't include mkstemp.h.
54332         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54333         * lib/stdlib--.h: Don't include mkstemp.h.
54334
54335         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54336         (Depends-on): Add stdlib.
54337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54338         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54339         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54340         HAVE_MKDTEMP.
54341         * lib/mkdtemp.c: Don't include mkdtemp.h.
54342         * lib/clean-temp.c: Don't include mkdtemp.h.
54343
54344         * modules/exit (Files): Remove lib/exit.h.
54345         (Depends-on): Add stdlib.
54346         (Makefile.am): Remove lib_SOURCES.
54347         (Include): Use <stdlib.h> instead of exit.h.
54348         * lib/argmatch.c: Don't include exit.h.
54349         * lib/execute.c: Likewise.
54350         * lib/pagealign_alloc.c: Likewise.
54351         * lib/pipe.c: Likewise.
54352         * lib/wait-process.c: Likewise.
54353         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54354         * lib/exitfail.c: Likewise.
54355         * lib/savewd.c: Likewise.
54356         * lib/xsetenv.c: Likewise.
54357
54358         * modules/stdlib: New file.
54359         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54360         and extra comments about mkstemp().
54361         * lib/exit.h: Remove file.
54362         * lib/mkdtemp.h: Remove file.
54363         * lib/mkstemp.h: Remove file.
54364         * m4/stdlib_h.m4: New file.
54365         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54366
54367 2007-02-18  Bruno Haible  <bruno@clisp.org>
54368
54369         * modules/math-tests: New file.
54370         * tests/test-math.c: New file.
54371
54372         * modules/math: New file.
54373         * modules/mathl (Files): Remove lib/mathl.h.
54374         (Depends-on): Add math.
54375         (Makefile.am): Don't mention mathl.h.
54376         (Include): Use <math.h> instead of mathl.h.
54377         * lib/math_.h: New file.
54378         * lib/mathl.h: Remove file.
54379         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54380         mathl.h.
54381         * lib/asinl.c: Likewise.
54382         * lib/atanl.c: Likewise.
54383         * lib/ceill.c: Likewise.
54384         * lib/cosl.c: Likewise.
54385         * lib/expl.c: Likewise.
54386         * lib/floorl.c: Likewise.
54387         * lib/frexpl.c: Likewise.
54388         * lib/ldexpl.c: Likewise.
54389         * lib/logl.c: Likewise.
54390         * lib/sincosl.c: Likewise.
54391         * lib/sinl.c: Likewise.
54392         * lib/sqrtl.c: Likewise.
54393         * lib/tanl.c: Likewise.
54394         * lib/trigl.c: Likewise.
54395         * m4/math_h.m4: New file.
54396         * MODULES.html.sh (Mathematics): Add math.
54397
54398 2007-02-17  Bruno Haible  <bruno@clisp.org>
54399
54400         * modules/wctype-tests: New file.
54401         * tests/test-wctype.c: New file.
54402
54403         * modules/wchar-tests: New file.
54404         * tests/test-wchar.c: New file.
54405
54406         * modules/unistd-tests: New file.
54407         * tests/test-unistd.c: New file.
54408
54409         * modules/time-tests: New file.
54410         * tests/test-time.c: New file.
54411
54412         * modules/sysexits-tests: New file.
54413         * tests/test-sysexits.c: New file.
54414
54415         * modules/sys_time-tests: New file.
54416         * tests/test-sys_time.c: New file.
54417
54418         * modules/sys_stat-tests: New file.
54419         * tests/test-sys_stat.c: New file.
54420
54421         * modules/sys_socket-tests: New file.
54422         * tests/test-sys_socket.c: New file.
54423
54424         * modules/sys_select-tests: New file.
54425         * tests/test-sys_select.c: New file.
54426
54427         * modules/string-tests: New file.
54428         * tests/test-string.c: New file.
54429
54430         * modules/stdbool-tests: New file.
54431         * tests/test-stdbool.c: New file.
54432
54433         * modules/netinet_in-tests: New file.
54434         * tests/test-netinet_in.c: New file.
54435
54436         * modules/inttypes-tests: New file.
54437         * tests/test-inttypes.c: New file.
54438
54439         * modules/fcntl-tests: New file.
54440         * tests/test-fcntl.c: New file.
54441
54442         * modules/byteswap-tests: New file.
54443         * tests/test-byteswap.c: New file.
54444
54445         * modules/arpa_inet-tests: New file.
54446         * tests/test-arpa_inet.c: New file.
54447
54448 2007-02-17  Bruno Haible  <bruno@clisp.org>
54449
54450         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54451         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54452         if the corresponding module is not enabled. Emit link warnings if
54453         the function is used nevertheless.
54454         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54455         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54456         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54457         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54458         * modules/inttypes (Depends-on): Add link-warning.
54459         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54460         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54461         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54462         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54463         * modules/imaxdiv (configure.ac): Likewise.
54464         * modules/strtoimax (configure.ac): Likewise.
54465         * modules/strtoumax (configure.ac): Likewise.
54466
54467 2007-02-17  Bruno Haible  <bruno@clisp.org>
54468
54469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54470         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54471         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54472         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54473
54474 2007-02-17  Bruno Haible  <bruno@clisp.org>
54475
54476         * modules/link-warning: New file.
54477         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54478         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54479         * modules/string (Depends-on): Add link-warning.
54480         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54481         string.h.
54482         * MODULES.html.sh (Support for building libraries and executables): Add
54483         link-warning.
54484
54485 2007-02-17  Bruno Haible  <bruno@clisp.org>
54486
54487         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54488         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54489         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54490         long lines.
54491
54492 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54493             Bruno Haible  <bruno@clisp.org>
54494
54495         * modules/tmpfile: New file.
54496         * lib/tmpfile.c: New file.
54497         * m4/tmpfile.m4: New file.
54498         * MODULES.html.sh (func_all_modules): New section "Input/output".
54499
54500 2007-02-15  Bruno Haible  <bruno@clisp.org>
54501
54502         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54503         (supports_delete_on_close): New function.
54504         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54505
54506 2007-02-14  Bruno Haible  <bruno@clisp.org>
54507
54508         * modules/mbspcasecmp-tests: New file.
54509         * tests/test-mbspcasecmp.sh: New file.
54510         * tests/test-mbspcasecmp.c: New file.
54511
54512         New module mbspcasecmp.
54513         * modules/mbspcasecmp: New file.
54514         * lib/mbspcasecmp.c: New file.
54515         * lib/string_.h (strncasecmp): Change warning message.
54516         (mbspcasecmp): New declaration.
54517         * m4/mbspcasecmp.m4: New file.
54518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54519         GNULIB_MBSPCASECMP.
54520         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54521         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54522
54523 2007-02-14  Bruno Haible  <bruno@clisp.org>
54524
54525         * modules/mbsncasecmp-tests: New file.
54526         * tests/test-mbsncasecmp.sh: New file.
54527         * tests/test-mbsncasecmp.c: New file.
54528
54529         New module mbsncasecmp.
54530         * modules/mbsncasecmp: New file.
54531         * lib/mbsncasecmp.c: New file.
54532         * lib/string_.h (mbsncasecmp): New declaration.
54533         * m4/mbsncasecmp.m4: New file.
54534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54535         GNULIB_MBSNCASECMP.
54536         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54537         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54538
54539 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54540
54541         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54542         Verify that it doesn't overlap with our flags.
54543         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54544         do not have the desired effect in multibyte locales; instead, use
54545         mbscasecmp.
54546         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54547         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54548         we don't require GNU fnmatch ourselves (if our users require it, they
54549         should do so explicitly).
54550
54551         Fix regex code so it doesn't rely on strcasecmp.
54552         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54553         Otherwise, include gnulib's langinfo.h.
54554         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54555         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54556         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54557         * modules/regex (FILES): Remove m4/codeset.m4.
54558         (Depends-on): Add localcharset.  Remove strcase.
54559
54560 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54561
54562         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54563         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54564
54565 2007-02-13  Bruno Haible  <bruno@clisp.org>
54566
54567         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54569
54570 2007-02-12  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54573         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54574         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54575         time warning rather than a link error.
54576
54577 2007-02-12  Bruno Haible  <bruno@clisp.org>
54578
54579         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54580         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54581         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54582
54583 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54584
54585         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54586         args, not 2.
54587
54588 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54589
54590         New module 'time', so that apps can include <time.h> as per
54591         POSIX and GNU instead of separate include files like time_r.h
54592         and timegm.h.  This implementation tries out a simpler approach
54593         for replacing decls in standard include files (as compared to
54594         the string module), somewhat as an experiment.
54595
54596         * config/srclist.txt: Comment out mktime.c for now.
54597         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54598         since it doesn't apply any more.  Use generic wording instead.
54599         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54600         'time'.
54601         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54602         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54603         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54604         Don't include <sys/types.h>; no longer needed since we assume C89.
54605         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54606         * lib/strftime.c: Likewise.
54607         * lib/time_r.c: Likewise.
54608         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54609         * lib/nanosleep.c: Include <time.h> first, to check interface.
54610         * lib/strptime.c: Likewise.
54611         * lib/time_r.c: Likewise.
54612         * lib/timegm.c: Likewise.
54613         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54614         needed.
54615         * lib/timegm.c: Don't include timegm.h; no longer needed.
54616         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54617         time.h now handles any problems in that area.
54618         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54619         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54620         that time.h defines struct timespec.
54621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54622         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54623         handles that.
54624         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54625         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54626         needed.  Set REPLACE_LOCALTIME.
54627         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54628         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54629         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54630         nanosleep; time_h.m4 now does that.  Don't require
54631         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54632         module handles this now.
54633         * modules/getdate (Depends-on): Remove timespec.  Add time.
54634         * modules/nanosleep (Depends-on): Likewise.
54635         * modules/stat-time (Depends-on): Likewise.
54636         * modules/nanosleep (Include): Include time.h, not timespec.h.
54637         * modules/strptime (Files): Remove lib/strptime.h.
54638         (Depends-on): Add extensions, time.
54639         (Include): Include time.h, not strptime.h.
54640         * modules/time_r (Files): Remove lib/time_r.h.
54641         (Depends-on): Add time.
54642         (Include): Include time.h, not time_r.h.
54643         * modules/timegm: Likewise.
54644         * modules/timespec (Description): Now does timespec-related decls
54645         of our own, instead of struct timespec itself.
54646         (Depends-on): Add time; remove extensions.
54647         (Maintainer): Add self.
54648         * modules/utimecmp (Depends-on): Add time; remove timespec.
54649         * modules/utimens (Depends-on): Likewise.
54650         * modules/xnanosleep (Depends-on): Likewise.
54651
54652 2007-02-11  Bruno Haible  <bruno@clisp.org>
54653
54654         * lib/c-strstr.c: Include allocsa.h.
54655         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54656         * lib/c-strcasestr.c: Include allocsa.h.
54657         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54658         * lib/strcasestr.c: Include allocsa.h.
54659         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54660         * lib/mbsstr.c: Include allocsa.h.
54661         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54662         allocsa/freesa instead of malloc/free.
54663         * lib/mbscasestr.c: Include allocsa.h.
54664         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54665         allocsa/freesa instead of malloc/free.
54666         * modules/c-strstr (Depends-on): Add allocsa.
54667         * modules/c-strcasestr (Depends-on): Likewise.
54668         * modules/strcasestr (Depends-on): Likewise.
54669         * modules/mbsstr (Depends-on): Likewise.
54670         * modules/mbscasestr (Depends-on): Likewise.
54671
54672 2007-02-11  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54675
54676         * modules/mbsspn-tests: New file.
54677         * tests/test-mbsspn.sh: New file.
54678         * tests/test-mbsspn.c: New file.
54679
54680 2007-02-11  Bruno Haible  <bruno@clisp.org>
54681
54682         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54683
54684         * modules/mbspbrk-tests: New file.
54685         * tests/test-mbspbrk.sh: New file.
54686         * tests/test-mbspbrk.c: New file.
54687
54688 2007-02-11  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54691         unneeded cast.
54692
54693         * modules/mbscspn-tests: New file.
54694         * tests/test-mbscspn.sh: New file.
54695         * tests/test-mbscspn.c: New file.
54696
54697 2007-02-11  Bruno Haible  <bruno@clisp.org>
54698
54699         * modules/mbscasecmp-tests: New file.
54700         * tests/test-mbscasecmp.sh: New file.
54701         * tests/test-mbscasecmp.c: New file.
54702
54703 2007-02-11  Bruno Haible  <bruno@clisp.org>
54704
54705         Ensure O(n) worst-case complexity of mbscasestr.
54706         * lib/mbscasestr.c: Include stdbool.h.
54707         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54708         functions.
54709         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54710         the bookkeeping indicates that it's worth it.
54711         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54712
54713         * modules/mbscasestr-tests: New file.
54714         * tests/test-mbscasestr1.c: New file.
54715         * tests/test-mbscasestr2.sh: New file.
54716         * tests/test-mbscasestr2.c: New file.
54717         * tests/test-mbscasestr3.sh: New file.
54718         * tests/test-mbscasestr3.c: New file.
54719         * tests/test-mbscasestr4.sh: New file.
54720         * tests/test-mbscasestr4.c: New file.
54721         * m4/locale-tr.m4: New file.
54722
54723 2007-02-11  Bruno Haible  <bruno@clisp.org>
54724
54725         Ensure O(n) worst-case complexity of mbsstr.
54726         * lib/mbsstr.c: Include stdbool.h.
54727         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54728         functions.
54729         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54730         bookkeeping indicates that it's worth it.
54731         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54732
54733         * modules/mbsstr-tests: New file.
54734         * tests/test-mbsstr1.c: New file.
54735         * tests/test-mbsstr2.sh: New file.
54736         * tests/test-mbsstr2.c: New file.
54737         * tests/test-mbsstr3.sh: New file.
54738         * tests/test-mbsstr3.c: New file.
54739         * m4/locale-fr.m4: New file.
54740
54741 2007-02-11  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/mbsrchr.c (mbsrchr): Fix bug.
54744
54745         * modules/mbsrchr-tests: New file.
54746         * tests/test-mbsrchr.sh: New file.
54747         * tests/test-mbsrchr.c: New file.
54748
54749 2007-02-11  Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/mbschr.c (mbschr): Fix bug.
54752
54753         * modules/mbschr-tests: New file.
54754         * tests/test-mbschr.sh: New file.
54755         * tests/test-mbschr.c: New file.
54756         * m4/locale-zh.m4: New file.
54757
54758 2007-02-11  Bruno Haible  <bruno@clisp.org>
54759
54760         Support for copying multibyte string iterators.
54761         * lib/mbiter.h: Include <string.h>.
54762         (mbiter_multi_copy): New function.
54763         (mbi_copy): New macro.
54764         * lib/mbuiter.h: Include <string.h>.
54765         (mbuiter_multi_copy): New function.
54766         (mbui_copy): New macro.
54767
54768 2007-02-11  Bruno Haible  <bruno@clisp.org>
54769
54770         New module mbslen.
54771         * modules/mbslen: New file.
54772         * lib/mbslen.c: New file.
54773         * lib/string_.h (mbslen): New declaration.
54774         * m4/mbslen.m4: New file.
54775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54776         GNULIB_MBSLEN.
54777         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54778         * MODULES.html.sh (Internationalization functions): Add mbslen.
54779
54780 2007-02-11  Bruno Haible  <bruno@clisp.org>
54781
54782         Ensure O(n) worst-case complexity of strcasestr substitute.
54783         * lib/strcasestr.c: Include stdbool.h.
54784         (knuth_morris_pratt): New function.
54785         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54786         bookkeeping indicates that it's worth it.
54787         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54788
54789         * modules/strcasestr-tests: New file.
54790         * tests/test-strcasestr.c: New file.
54791
54792 2007-02-11  Bruno Haible  <bruno@clisp.org>
54793
54794         Ensure O(n) worst-case complexity of c_strcasestr.
54795         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54796         (knuth_morris_pratt): New function.
54797         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54798         the bookkeeping indicates that it's worth it.
54799         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54800
54801         * modules/c-strcasestr-tests: New file.
54802         * tests/test-c-strcasestr.c: New file.
54803
54804 2007-02-11  Bruno Haible  <bruno@clisp.org>
54805
54806         Ensure O(n) worst-case complexity of c_strstr.
54807         * lib/c-strstr.c: Include stdbool.h, string.h.
54808         (knuth_morris_pratt): New function.
54809         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54810         bookkeeping indicates that it's worth it.
54811         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54812
54813         * lib/c-strstr.c: Complete rewrite for maintainability.
54814
54815         * modules/c-strstr-tests: New file.
54816         * tests/test-c-strstr.c: New file.
54817
54818 2007-02-11  Bruno Haible  <bruno@clisp.org>
54819
54820         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54821         5.2.1 and earlier, whereby \055 was treated just like the range
54822         delimiter '-'.
54823         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54824
54825 2007-02-08  Bruno Haible  <bruno@clisp.org>
54826
54827         * modules/regex (Depends-on): Add stdbool.
54828         Reported by Dalibor Topic <robilad@kaffe.org>.
54829
54830 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54831
54832         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54833         Prefer returning from main to exiting from it.
54834         Remove unnecessary parens after sizeof.
54835
54836 2007-02-05  Bruno Haible  <bruno@clisp.org>
54837
54838         New module mbssep.
54839         * modules/mbssep: New file.
54840         * lib/mbssep.c: New file.
54841         * lib/string_.h (strsep): Add a conditional link warning.
54842         (mbssep): New declaration.
54843         * m4/mbssep.m4: New file.
54844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54845         GNULIB_MBSSEP.
54846         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54847         * MODULES.html.sh (Internationalization functions): Add mbssep.
54848
54849 2007-02-05  Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54852         Optimize search in case of 1 delimiter.
54853
54854 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54855
54856         * lib/acl.h: Include sys/types.h before sys/acl.h.
54857
54858 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54859
54860         Merge upstream fix for glibc bugzilla #3957:
54861
54862         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54863
54864         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54865         bit for RE_HAT_LISTS_NOT_NEWLINE.
54866         (build_charclass_op): Remove bogus comment.
54867
54868 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54869
54870         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54871
54872 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54875         * lib/memmem.c [!defined _LIBC]: Include config.h.
54876
54877 2007-02-04  Bruno Haible  <bruno@clisp.org>
54878
54879         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54880         warning message.
54881
54882 2007-02-04  Bruno Haible  <bruno@clisp.org>
54883
54884         New module mbstok_r.
54885         * modules/mbstok_r: New file.
54886         * lib/mbstok_r.c: New file.
54887         * lib/string_.h (strtok_r): Change argument names to match the
54888         comments. Add a conditional link warning.
54889         (mbstok_r): New declaration.
54890         * m4/mbstok_r.m4: New file.
54891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54892         GNULIB_MBSTOK_R.
54893         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54894         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54895
54896 2007-02-04  Bruno Haible  <bruno@clisp.org>
54897
54898         New module mbsspn.
54899         * modules/mbsspn: New file.
54900         * lib/mbsspn.c: New file.
54901         * lib/string_.h (strspn): Add a conditional link warning.
54902         (mbsspn): New declaration.
54903         * m4/mbsspn.m4: New file.
54904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54905         GNULIB_MBSSPN.
54906         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54907         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54908
54909 2007-02-04  Bruno Haible  <bruno@clisp.org>
54910
54911         New module mbspbrk.
54912         * modules/mbspbrk: New file.
54913         * lib/mbspbrk.c: New file.
54914         * lib/string_.h (strpbrk): Add a conditional link warning.
54915         (mbspbrk): New declaration.
54916         * m4/mbspbrk.m4: New file.
54917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54918         GNULIB_MBSPBRK.
54919         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54920         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54921
54922 2007-02-04  Bruno Haible  <bruno@clisp.org>
54923
54924         New module mbscspn.
54925         * modules/mbscspn: New file.
54926         * lib/mbscspn.c: New file.
54927         * lib/string_.h (strcspn): Add a conditional link warning.
54928         (mbscspn): New declaration.
54929         * m4/mbscspn.m4: New file.
54930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54931         GNULIB_MBSCSPN.
54932         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54933         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54934
54935 2007-02-04  Bruno Haible  <bruno@clisp.org>
54936
54937         New module mbscasestr, reduced goal of strcasestr.
54938         * modules/mbscasestr: New file.
54939         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54940         (mbscasestr): Renamed from strcasestr.
54941         * lib/strcasestr.c: Don't include mbuiter.h.
54942         (strcasestr): Remove support for multibyte locales.
54943         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54944         Change the conditional link warning.
54945         (mbscasestr): New declaration.
54946         * m4/mbscasestr.m4: New file.
54947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54948         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54949         REPLACE_STRCASESTR.
54950         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54952         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54953         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54954         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54955         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54956         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54957         (Depends-on): Remove mbuiter.
54958         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54959
54960 2007-02-04  Bruno Haible  <bruno@clisp.org>
54961
54962         Simplify handling of strncasecmp.
54963         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54964         the conditional link warning.
54965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54966         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54967         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54968         * modules/strcase (configure.ac): Don't invoke
54969         gl_STRING_MODULE_INDICATOR.
54970         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54971
54972 2007-02-04  Bruno Haible  <bruno@clisp.org>
54973
54974         New module mbscasecmp, reduced goal of strcasecmp.
54975         * modules/mbscasecmp: New file.
54976         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54977         (mbscasecmp): Renamed from strcasecmp.
54978         * lib/strcasecmp.c: Don't include mbuiter.h.
54979         (strcasecmp): Remove support for multibyte locales.
54980         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54981         Change the conditional link warning.
54982         (mbscasecmp): New declaration.
54983         * m4/mbscasecmp.m4: New file.
54984         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54985         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54986         REPLACE_STRCASECMP.
54987         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54989         GNULIB_MBSCASECMP.
54990         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54991         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54992         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54993         (Depends-on): Remove mbuiter.
54994         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54995
54996 2007-02-04  Bruno Haible  <bruno@clisp.org>
54997
54998         New module mbsstr. Remove module strstr.
54999         * modules/mbsstr: New file.
55000         * modules/strstr: Remove file.
55001         * lib/mbsstr.c: Renamed from lib/strstr.c.
55002         (mbsstr): Renamed from strstr.
55003         * lib/string_.h (strstr): Remove declaration. Change the conditional
55004         link warning.
55005         (mbsstr): New declaration.
55006         * m4/mbsstr.m4: New file.
55007         * m4/strstr.m4: Remove file.
55008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55009         REPLACE_STRSTR.
55010         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55011         Don't initialize GNULIB_STRSTR.
55012         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55013         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55014         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55015         (Support for systems lacking ANSI C 89): Remove strstr.
55016
55017 2007-02-04  Bruno Haible  <bruno@clisp.org>
55018
55019         New module mbsrchr.
55020         * modules/mbsrchr: New file.
55021         * lib/mbsrchr.c: New file.
55022         * lib/string_.h (strrchr): Add a conditional link warning.
55023         (mbsrchr): New declaration.
55024         * m4/mbsrchr.m4: New file.
55025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55026         GNULIB_MBSRCHR.
55027         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55028         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55029
55030 2007-02-04  Bruno Haible  <bruno@clisp.org>
55031
55032         New module mbschr.
55033         * modules/mbschr: New file.
55034         * lib/mbschr.c: New file.
55035         * lib/string_.h (strchr): Add a conditional link warning.
55036         (mbschr): New declaration.
55037         * m4/mbschr.m4: New file.
55038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55039         GNULIB_MBSCHR.
55040         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55041         * MODULES.html.sh (Internationalization functions): Add mbschr.
55042
55043 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55044
55045         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55046
55047         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55048
55049 2007-02-04  Bruno Haible  <bruno@clisp.org>
55050
55051         New module description section 'configure.ac-early'.
55052         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55053         (func_get_autoconf_early_snippet): New function.
55054         (func_import, func_create_testdir): Use it. Remove special cases for
55055         modules 'extensions' and 'lock'.
55056         * modules/extensions (configure.ac-early): Require
55057         gl_USE_SYSTEM_EXTENSIONS.
55058         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55059
55060 2007-02-04  Bruno Haible  <bruno@clisp.org>
55061
55062         Make use of gcj-4.3's -fsource and -ftarget option.
55063         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55064         and if so try the options -fsource and -ftarget.
55065         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55066         source_version, ftarget_option, target_version arguments.
55067         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55068         (is_envjavac_oldgcj_14_14_usable): Renamed from
55069         is_envjavac_gcj_14_14_usable.
55070         (is_envjavac_oldgcj_14_13_usable): Renamed from
55071         is_envjavac_gcj_14_13_usable.
55072         (is_gcj_present): Update.
55073         (is_gcj_43, is_gcj43_usable): New functions.
55074         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55075         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55076         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55077         try the options -fsource and -ftarget.
55078
55079 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55080
55081         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55082         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55083         larger value.
55084
55085 2007-02-03  Jim Meyering  <jim@meyering.net>
55086
55087         Give tools a better chance to allocate space for very large buffers.
55088         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55089
55090         Make pwd and readlink work also when run with an unreadable parent dir
55091         on systems with openat support.
55092         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55093         provided getcwd function, even when we have openat support.
55094         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55095
55096 2007-02-02  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55099         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55100         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55101         portability problems if one of these functions is only used on specific
55102         platforms.
55103         Reported by Paul Eggert.
55104
55105 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55106
55107         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55108         is causing more trouble than it's curing.
55109         * lib/regex_internal.h (__mempcpy): Remove.
55110         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55111         (and make the code a tad smaller to boot).
55112         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55113
55114 2007-02-02  Jim Meyering  <jim@meyering.net>
55115
55116         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55117         section, not in the Makefile.am: one.
55118
55119 2007-02-02  Eric Blake  <ebb9@byu.net>
55120
55121         * lib/strchrnul.c: Always include config.h first.
55122
55123         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55124         gnulib strstr is not necessary here.
55125
55126 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55127
55128         * m4/socklen.m4: Fix typo.
55129
55130 2007-02-02  Eric Blake  <ebb9@byu.net>
55131
55132         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55133         * modules/netinet_in (Makefile.am): Likewise.
55134
55135 2007-02-01  Bruno Haible  <bruno@clisp.org>
55136
55137         * lib/string_.h (GL_LINK_WARNING): New macro.
55138         (strcasecmp, strstr, strcasestr): If provided by the system,
55139         conditionally define as a macro that leads to a warning instead of to
55140         an error.
55141         (strncasecmp): Conditionally define as a macro that leads to a warning.
55142
55143 2007-02-01  Karl Berry  <karl@gnu.org>
55144
55145         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55146
55147 2007-02-01  Bruno Haible  <bruno@clisp.org>
55148
55149         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55150         renamings.
55151
55152 2007-02-01  Eric Blake  <ebb9@byu.net>
55153
55154         * modules/regex (Depends-on): Revert dependence on mempcpy.
55155         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55156         module's definition of mempcpy.
55157         Reported by Paul Eggert.
55158
55159 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55160
55161         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55162         the symbol XYZ before redefining it.  This fixes a problem with
55163         programs that don't use XYZ, when compiled on systems that define
55164         XYZ to something else.
55165
55166 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55167
55168         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55169         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55170         writeable to group or other and (2) is intended to have a special
55171         mode bit that is set or cleared.  In such a case, the directory
55172         should be neither group- nor other-writeable until the special
55173         mode bits are right.
55174
55175 2007-01-31  Eric Blake  <ebb9@byu.net>
55176
55177         * modules/mountlist (Depends-on): Add strstr.
55178
55179         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55180         bug.
55181         * modules/string (Makefile.am): Remove redundant replacement.
55182         * modules/regex (Depends-on): Add mempcpy.
55183
55184 2007-01-31  Bruno Haible  <bruno@clisp.org>
55185
55186         New module description field 'Link'.
55187         * gnulib-tool (func_usage): Document --extract-link-directive.
55188         (sed_extract_prog): Recognize 'Link' directive.
55189         (func_get_link_directive): New function.
55190         (func_import): Show summary of link directives.
55191         Handle --extract-link-directive option.
55192         * modules/acl (Link): New section.
55193         * modules/clock-time (Link): New section.
55194         * modules/euidaccess (Link): New section.
55195         * modules/gettext (Link): New section.
55196         * modules/iconv (Link): New section.
55197         * modules/lock (Link): New section.
55198         * modules/nanosleep (Link): New section.
55199         * modules/readline (Link): New section.
55200
55201 2007-01-27  Bruno Haible  <bruno@clisp.org>
55202
55203         Enforce the use of gnulib modules for unportable <string.h> functions.
55204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55205         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55206         (gl_HEADER_STRING_H_BODY): Require it.
55207         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55208         the symbol XYZ to one that gives a link error.
55209         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55210         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55211         * modules/mempcpy (configure.ac): Likewise.
55212         * modules/memrchr (configure.ac): Likewise.
55213         * modules/stpcpy (configure.ac): Likewise.
55214         * modules/stpncpy (configure.ac): Likewise.
55215         * modules/strcase (configure.ac): Likewise.
55216         * modules/strcasestr (configure.ac): Likewise.
55217         * modules/strchrnul (configure.ac): Likewise.
55218         * modules/strdup (configure.ac): Likewise.
55219         * modules/strndup (configure.ac): Likewise.
55220         * modules/strnlen (configure.ac): Likewise.
55221         * modules/strpbrk (configure.ac): Likewise.
55222         * modules/strsep (configure.ac): Likewise.
55223         * modules/strstr (configure.ac): Likewise.
55224         * modules/strtok_r (configure.ac): Likewise.
55225
55226 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55227
55228         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55229
55230 2007-01-30  Jim Meyering  <jim@meyering.net>
55231
55232         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55233
55234 2007-01-29  Bruno Haible  <bruno@clisp.org>
55235
55236         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55237         * lib/execute.c: Likewise.
55238         * lib/pipe.c: Likewise.
55239         * lib/printf-args.h: Likewise.
55240         * lib/printf-args.c: Likewise.
55241         * lib/printf-parse.c: Likewise.
55242         * lib/vasnprintf.c: Likewise.
55243
55244 2007-01-29  Eric Blake  <ebb9@byu.net>
55245
55246         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55247         declaration.
55248
55249 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55250
55251         * lib/strptime.h (strptime): Use 'restrict' for args where
55252         POSIX requires this.
55253         * lib/strptime.c (strptime): Likewise.
55254         Change license notice from LGPL to GPL, since gnulib-tool will
55255         change this as needed.
55256         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55257         defined.
55258         Include "strptime.h" first, to check interface.
55259         Do not #undef _LIBC and _NL_CURRENT.
55260         Do not include <stdlib.h>; no longer needed.
55261         Include "time_r.h" and declare ptime_locale_status
55262         only if _LIBC is not defined.
55263         (__P): Remove unused macro.
55264         (match_string): Bring back glibc version, but use it only if _LIBC
55265         is defined.
55266         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55267         Remove unnecessary assertion and abort() call.
55268         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55269         * m4/strptime.m4: Fix serial number comment.
55270         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55271         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55272         (Depends-on): Add time_r.
55273
55274 2007-01-29  Bruno Haible  <bruno@clisp.org>
55275
55276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55277         strptime.
55278         * modules/strptime (Depends-on): Add stdbool.
55279         * lib/strptime.h: Include <time.h> always. Add comments.
55280
55281 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55282
55283         * modules/strptime: New file.
55284         * lib/strptime.h: New file.
55285         * lib/strptime.c: New file.
55286         * m4/strptime.m4: New file.
55287
55288 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         * MODULES.html.sh: New module mpsort.
55291         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55292
55293         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55294         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55295         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55296         All uses changed.
55297         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55298         All uses changed.
55299         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55300         to _Restrict_.
55301         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55302         the parameter matches the prototype.
55303
55304 2007-01-28  Jim Meyering  <jim@meyering.net>
55305
55306         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55307         sys/time.h here, reverting that part of the previous patch:
55308         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55309
55310 2007-01-28  Bruno Haible  <bruno@clisp.org>
55311
55312         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55313         value of $(SYS_TIME_H).
55314         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55315         remove it conditionally, too. [added by Jim Meyering]
55316         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55317         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55318         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55319         GETTIMEOFDAY_REPLACEMENT to 1.
55320
55321 2007-01-28  Bruno Haible  <bruno@clisp.org>
55322
55323         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55324         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55326         Set UNISTD_H instead of UNISTD_H2.
55327         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55328
55329 2007-01-28  Bruno Haible  <bruno@clisp.org>
55330
55331         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55332         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55333
55334 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55335
55336         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55337         (func_create_testdir): Ensure C locale for `grep' and `tr'
55338         character ranges.
55339         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55340         ACLOCAL_AMFLAGS parsing state machine.
55341
55342 2007-01-27  Bruno Haible  <bruno@clisp.org>
55343
55344         * modules/unistr/base: Update.
55345
55346 2007-01-27  Bruno Haible  <bruno@clisp.org>
55347
55348         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55349         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55350         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55351         modules/unistr/u32-mbtouc.
55352         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55353         * lib/unistr.h: Update.
55354         * lib/linebreak.c: Update.
55355         * modules/unistr/u32-mbtouc: Renamed from
55356         modules/unistr/u32-mbtouc-safe.
55357         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55358         * lib/unistr.h: Update.
55359         * lib/unistr/u32-to-u8.c: Update.
55360         * lib/unistr/u32-to-u16.c: Update.
55361
55362 2007-01-27  Bruno Haible  <bruno@clisp.org>
55363
55364         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55365         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55366         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55367         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55368         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55369         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55370         modules/unistr/u16-mbtouc.
55371         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55372         * lib/unistr.h: Update.
55373         * lib/linebreak.c: Update.
55374         * modules/linebreak: Update.
55375         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55376         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55377         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55378         * modules/unistr/u16-mbtouc: Renamed from
55379         modules/unistr/u16-mbtouc-safe.
55380         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55381         * lib/unistr.h: Update.
55382         * lib/unistr/u16-to-u8.c: Update.
55383         * modules/unistr/u16-to-u8: Update.
55384         * lib/unistr/u16-to-u32.c: Update.
55385         * modules/unistr/u16-to-u32: Update.
55386
55387 2007-01-27  Bruno Haible  <bruno@clisp.org>
55388
55389         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55390         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55391         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55392         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55393         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55394         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55395         modules/unistr/u8-mbtouc.
55396         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55397         * lib/unistr.h: Update.
55398         * lib/striconveh.c: Update.
55399         * modules/striconveh: Update.
55400         * lib/linebreak.c: Update.
55401         * modules/linebreak: Update.
55402         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55403         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55404         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55405         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55406         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55407         * lib/unistr.h: Update.
55408         * lib/striconveh.c: Update.
55409         * modules/striconveh: Update.
55410         * lib/unistr/u8-to-u16.c: Update.
55411         * modules/unistr/u8-to-u16: Update.
55412         * lib/unistr/u8-to-u32.c: Update.
55413         * modules/unistr/u8-to-u32: Update.
55414
55415 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55416
55417         Sync from Libtool.
55418         * lib/argz.c: Do not include strings.h nor memory.h, include
55419         string.h unconditionally.  Patch by Simon Josefsson.
55420
55421 2007-01-27  Bruno Haible  <bruno@clisp.org>
55422
55423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55424         from gl_HEADER_STRING_H_BODY.
55425         (gl_HEADER_STRING_H_BODY): Require it.
55426         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55427         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55428         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55429         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55430         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55431         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55432         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55433         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55434         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55435         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55436         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55437         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55438         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55439         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55440         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55441
55442 2007-01-27  Bruno Haible  <bruno@clisp.org>
55443
55444         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55445         check_PROGRAMS into noinst_PROGRAMS.
55446         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55447         check_PROGRAMS in this case.
55448         (func_import): Set for_test to false.
55449         (func_create_testdir): Set for_test to true.
55450
55451 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55452             Bruno Haible  <bruno@clisp.org>
55453
55454         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55455         (Depends-on): Add string.
55456         (Includes): Use <string.h> instead of strcasestr.h.
55457         * modules/string (Makefile.am): Also substitute the value of
55458         REPLACE_STRCASESTR.
55459         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55460         assume strcasestr is declared in <string.h> not <strings.h>. Also
55461         set REPLACE_STRCASESTR.
55462         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55463         REPLACE_STRCASESTR.
55464         * lib/strcasestr.h: Remove file.
55465         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55466         * lib/string_.h (strcasestr): New declaration.
55467
55468 2007-01-27  Bruno Haible  <bruno@clisp.org>
55469
55470         * lib/string_.h: Use 'extern'.
55471
55472 2007-01-27  Jim Meyering  <jim@meyering.net>
55473
55474         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55475         of set-but-not-used local, "q".
55476
55477         * lib/mempcpy.c: Include <config.h> before <string.h>.
55478         This fixes a compilation error on HP-UX, due to the system's
55479         "restrict"-using mempcpy prototype.
55480
55481 2007-01-26  Bruno Haible  <bruno@clisp.org>
55482
55483         Small optimization.
55484         * lib/javacomp.c: Include c-strstr.h.
55485          (is_envjavac_gcj): Use c_strstr instead of strstr.
55486         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55487
55488 2007-01-26  Bruno Haible  <bruno@clisp.org>
55489
55490         * MODULES.html.sh (Unicode string functions): Add the new modules.
55491
55492         * modules/uniconv/u32-strconv-to-locale: New file.
55493         * lib/uniconv/u32-strconv-to-locale.c: New file.
55494
55495         * modules/uniconv/u16-strconv-to-locale: New file.
55496         * lib/uniconv/u16-strconv-to-locale.c: New file.
55497
55498         * modules/uniconv/u8-strconv-to-locale: New file.
55499         * lib/uniconv/u8-strconv-to-locale.c: New file.
55500
55501         * modules/uniconv/u32-strconv-from-locale: New file.
55502         * lib/uniconv/u32-strconv-from-locale.c: New file.
55503
55504         * modules/uniconv/u16-strconv-from-locale: New file.
55505         * lib/uniconv/u16-strconv-from-locale.c: New file.
55506
55507         * modules/uniconv/u8-strconv-from-locale: New file.
55508         * lib/uniconv/u8-strconv-from-locale.c: New file.
55509
55510         * modules/uniconv/u32-strconv-to-enc: New file.
55511         * lib/uniconv/u32-strconv-to-enc.c: New file.
55512         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55513         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55514
55515         * modules/uniconv/u16-strconv-to-enc: New file.
55516         * lib/uniconv/u16-strconv-to-enc.c: New file.
55517         * lib/uniconv/u-strconv-to-enc.h: New file.
55518         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55519         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55520
55521         * modules/uniconv/u8-strconv-to-enc: New file.
55522         * lib/uniconv/u8-strconv-to-enc.c: New file.
55523         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55524         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55525
55526         * modules/uniconv/u32-strconv-from-enc: New file.
55527         * lib/uniconv/u32-strconv-from-enc.c: New file.
55528         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55529         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55530
55531         * modules/uniconv/u16-strconv-from-enc: New file.
55532         * lib/uniconv/u16-strconv-from-enc.c: New file.
55533         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55534         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55535
55536         * modules/uniconv/u8-strconv-from-enc: New file.
55537         * lib/uniconv/u8-strconv-from-enc.c: New file.
55538         * lib/uniconv/u-strconv-from-enc.h: New file.
55539         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55540         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55541
55542         * modules/uniconv/u32-conv-from-enc: New file.
55543         * lib/uniconv/u32-conv-from-enc.c: New file.
55544         * modules/uniconv/u32-conv-from-enc-tests: New file.
55545         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55546
55547         * modules/uniconv/u16-conv-from-enc: New file.
55548         * lib/uniconv/u16-conv-from-enc.c: New file.
55549         * lib/uniconv/u-conv-from-enc.h: New file.
55550         * modules/uniconv/u16-conv-from-enc-tests: New file.
55551         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55552
55553         * modules/uniconv/u8-conv-from-enc: New file.
55554         * lib/uniconv/u8-conv-from-enc.c: New file.
55555         * modules/uniconv/u8-conv-from-enc-tests: New file.
55556         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55557
55558         * modules/uniconv/base: New file.
55559         * lib/uniconv.h: New file.
55560
55561 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55562
55563         * doc/gnulib-tool.texi (Initial import): Update to match current
55564         behavior with strdup module.
55565         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55566         * lib/memmem.h: Remove; all uses removed.  This is now done
55567         by <string.h>.
55568         * lib/mempcpy.h: Likewise.
55569         * lib/memrchr.h: Likewise.
55570         * lib/stpcpy.h: Likewise.
55571         * lib/stpncpy.h: Likewise.
55572         * lib/strcase.h: Likewise.
55573         * lib/strchrnul.h: Likewise.
55574         * lib/strdup.h: Likewise.
55575         * lib/strndup.h: Likewise.
55576         * lib/strnlen.h: Likewise.
55577         * lib/strpbrk.h: Likewise.
55578         * lib/strsep.h: Likewise.
55579         * lib/strstr.h: Likewise.
55580         * lib/strtok_r.h: Likewise.
55581         * lib/string_.h: New file.
55582         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55583         Rely on <string.h> instead.
55584         * lib/canon-host.c: Likewise.
55585         * lib/chdir-long.c: Likewise.
55586         * lib/concatpath.c: Likewise.
55587         * lib/exclude.c: Likewise.
55588         * lib/fchdir.c: Likewise.
55589         * lib/getaddrinfo.c: Likewise.
55590         * lib/getcwd.c: Likewise.
55591         * lib/getsubopt.c: Likewise.
55592         * lib/glob.c: Likewise.
55593         * lib/hard-locale.c: Likewise.
55594         * lib/iconvme.c: Likewise.
55595         * lib/javacomp.c: Likewise.
55596         * lib/mempcpy.c: Likewise.
55597         * lib/memrchr.c: Likewise.
55598         * lib/regex_internal.h: Likewise.
55599         * lib/stpncpy.c: Likewise.
55600         * lib/strcasecmp.c: Likewise.
55601         * lib/strchrnul.c: Likewise.
55602         * lib/strdup.c: Likewise.
55603         * lib/striconv.c: Likewise.
55604         * lib/striconveh.c: Likewise.
55605         * lib/striconveha.c: Likewise.
55606         * lib/strncasecmp.c: Likewise.
55607         * lib/strndup.c: Likewise.
55608         * lib/strnlen.c: Likewise.
55609         * lib/strsep.c: Likewise.
55610         * lib/strstr.c: Likewise.
55611         * lib/strtok_r.c: Likewise.
55612         * lib/userspec.c: Likewise.
55613         * lib/w32spawn.h: Likewise.
55614         * lib/xstrndup.c: Likewise.
55615         * lib/mountlist.c (strstr): Remove decl.
55616         * m4/string_h.m4: New file.
55617         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55618         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55619         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55620         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55621         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55622         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55623         Set REPLACE_STRCASECMP if necessary.
55624         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55625         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55626         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55627         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55628         HAVE_DECL_STRDUP if necessary.
55629         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55630         since gl_FUNC_STRNDUP does that now.
55631         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55632         Check for decl here...
55633         (gl_PREREQ_STRNLEN): ... not here.
55634         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55635         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55636         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55637         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55638         necessary.
55639         * modules/string: New file.
55640         * modules/memmem (Files): Remove special-purpose include file.
55641         (Depends-on): Add string.
55642         (Include): Include <string.h>, not the removed file.
55643         * modules/mempcpy: Likewise.
55644         * modules/memrchr: Likewise.
55645         * modules/stpcpy: Likewise.
55646         * modules/stpncpy: Likewise.
55647         * modules/strcase: Likewise.
55648         * modules/strchrnul: Likewise.
55649         * modules/strdup: Likewise.
55650         * modules/strndup: Likewise.
55651         * modules/strnlen: Likewise.
55652         * modules/strpbrk: Likewise.
55653         * modules/strsep: Likewise.
55654         * modules/strstr: Likewise.
55655         * modules/strtok_r: Likewise.
55656         * tests/test-dirname.c: Don't include "strdup.h", since
55657         <string.h> now suffices.
55658         * tests/test-memmem.c: Don't include "memmem.h", since
55659         <string.h> now suffices.
55660
55661 2007-01-25  Bruno Haible  <bruno@clisp.org>
55662
55663         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55664         *resultp is 0.
55665
55666         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55667         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55668         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55669         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55670
55671         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55672         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55673         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55674         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55675         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55676         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55677
55678 2007-01-24  Bruno Haible  <bruno@clisp.org>
55679
55680         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55681         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55682         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55683         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55684         gl_FUNC_FTS_CORE.
55685         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55686         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55687         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55688         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55689         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55690         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55691         gl_FUNC_FCHOWNAT.
55692         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55693         gl_FUNC_STRFTIME.
55694         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55695         Reported by Ralf Wildenhues.
55696
55697 2007-01-24  Bruno Haible  <bruno@clisp.org>
55698
55699         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55700         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55701         gl_GETADDRINFO.
55702         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55703         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55704         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55705
55706 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55709         Don't use 'exit'; just return from 'main'.
55710         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55711
55712         * lib/fnmatch_.h: Readjust white space and comments to match
55713         glibc, to avoid spurious diffs.
55714
55715 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55716
55717         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55718         2004-12-01 change by Jakub Jelinek, since this code won't compile
55719         if !LIBC.  Problem reported by Bob Proulx.
55720
55721 2007-01-23  Bruno Haible  <bruno@clisp.org>
55722
55723         * lib/striconveh.c: Include c-strcaseeq.h.
55724         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55725         * modules/striconveh (Depends-on): Add c-strcaseeq.
55726
55727 2007-01-23  Bruno Haible  <bruno@clisp.org>
55728
55729         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55730
55731         * modules/c-strcaseeq: New file.
55732         * lib/c-strcaseeq.h: New file.
55733
55734         * modules/streq: New file.
55735         * lib/streq.h: New file.
55736
55737 2007-01-23  Bruno Haible  <bruno@clisp.org>
55738
55739         * modules/striconveha-tests: New file.
55740         * tests/test-striconveha.c: New file.
55741
55742         * lib/striconveha.h: Include <stdbool.h>.
55743         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55744         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55745         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55746         (mem_iconveha): New function.
55747         (str_iconveha_notranslit): Renamed from str_iconveha.
55748         (str_iconveha): New function.
55749         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55750         c-strcase.
55751
55752 2007-01-23  Bruno Haible  <bruno@clisp.org>
55753
55754         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55755         encodings without forgiving before trying any encoding with handler.
55756         (str_iconveha): Try all encodings without forgiving before trying any
55757         encoding with handler.
55758
55759 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55760
55761         Import the following changes from libc.
55762
55763         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55764
55765         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55766
55767         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55768
55769         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55770         normal_bracket label.
55771
55772         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55773
55774         [BZ #361]
55775         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55776         to normal_bracket after fetching the next character.
55777
55778 2007-01-22  Bruno Haible  <bruno@clisp.org>
55779
55780         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55781         argument.
55782         * lib/striconveh.c (iconv_carefully_1): New function.
55783         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55784         argument.
55785         (str_cd_iconveh): Update.
55786         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55787         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55788         * tests/test-striconveh.c (MAGIC): New macro.
55789         (new_offsets): New function.
55790         (main): Test call with and without offsets.
55791
55792 2007-01-22  Bruno Haible  <bruno@clisp.org>
55793
55794         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55795         * modules/sys_select (Makefile.am): Likewise.
55796         * modules/sys_socket (Makefile.am): Likewise.
55797         * modules/sys_time (Makefile.am): Likewise.
55798
55799 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55800
55801         * modules/gettimeofday (License): Change from GPL to LGPL, since
55802         gettimeofday is a library function.
55803
55804 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55805
55806         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55807
55808 2007-01-21  Bruno Haible  <bruno@clisp.org>
55809
55810         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55811
55812 2007-01-21  Bruno Haible  <bruno@clisp.org>
55813
55814         * modules/striconveha: New file.
55815         * lib/striconveha.h: New file.
55816         * lib/striconveha.c: New file.
55817         * MODULES.html.sh (Internationalization functions): Add striconveha.
55818         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55819         string.
55820         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55821
55822 2007-01-21  Bruno Haible  <bruno@clisp.org>
55823
55824         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55825         * lib/striconveh.c (str_iconveh): Likewise.
55826
55827 2007-01-21  Bruno Haible  <bruno@clisp.org>
55828
55829         * lib/striconveh.h (mem_iconveh): New declaration.
55830         * lib/striconveh.c (mem_iconveh): New function.
55831         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55832
55833 2007-01-21  Bruno Haible  <bruno@clisp.org>
55834
55835         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55836
55837         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55838         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55839         original result buffer.
55840         (str_cd_iconveh): Update.
55841         * tests/test-striconveh.c (main): Update.
55842
55843         * lib/striconv.h (mem_cd_iconv): Change specification.
55844         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55845         result buffer.
55846         (str_cd_iconv): Update.
55847         * tests/test-striconv.c (main): Update.
55848
55849 2007-01-21  Bruno Haible  <bruno@clisp.org>
55850
55851         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55852
55853 2007-01-20  Jim Meyering  <jim@meyering.net>
55854
55855         * lib/userspec.c (parse_with_separator): If a user or group string
55856         starts with "+", skip the corresponding name-to-ID look-up, since
55857         such a look-up must fail: user and group names may not include "+".
55858
55859 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55860
55861         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55862         since we now assume the sys_time module.
55863         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55864         check for sys/time.h; no longer needed.
55865         * modules/poll (Depends-on): Depend on sys_time.
55866
55867 2007-01-18  Bruno Haible  <bruno@clisp.org>
55868
55869         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55870         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55871
55872         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55873         gettimeofday.
55874
55875         * tests/test-gettimeofday.c: Include <time.h>.
55876         (dummy): Remove variable.
55877
55878         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55879         gl_HEADER_SYS_TIME_H.
55880         (gl_HEADER_SYS_TIME_H): New macro.
55881
55882         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55883         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55885         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55886         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55887         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55888         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55889         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55890         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55891         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55892         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55893
55894         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55895         last change; it caused a compilation error when cross-compiling to
55896         Cygwin.
55897
55898 2007-01-18  Jim Meyering  <jim@meyering.net>
55899
55900         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55901         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55902         than the race-prone "test -d sys || mkdir sys".
55903         (configure.ac): Use AC_PROG_MKDIR_P.
55904         * modules/sys_select: Likewise.
55905         * modules/sys_socket: Likewise.
55906         * modules/sys_time: Likewise.
55907
55908 2007-01-18  Eric Blake  <ebb9@byu.net>
55909
55910         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55911         replace gettimeofday.
55912         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55913         name, to avoid infinite recursion.
55914
55915 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55916
55917         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55918         module sys_time.
55919         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55920         assume timespec.h defines struct timeval.
55921         * lib/settime.c: Likewise.
55922         * lib/utimens.c: Likewise.
55923         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55924         since we now assume the gettimeofday module.
55925         * lib/tempname.c (__gen_tempname): Likewise.
55926         * lib/gettimeofday.h: Remove.
55927         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55928         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55929         Include <time.h>, for 'time()'.
55930         (localtime_buffer_addr): Also use this workaround if
55931         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55932         to simplify the uses.  All uses changed.
55933         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55934         that #undef is inside {}, and 'const' follows type name consistently.
55935         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55936         (gettimeofday): Do not use the maximum possible value for
55937         tv->tv_usec, since that might break usages other than ls.c.
55938         Instead, we'll leave ls.c alone.  This undoes today's patch
55939         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55940         we've never observed the problem but might as well keep the
55941         canary.
55942         * lib/nanosleep.c: Include timespec.h first, for interface check.
55943         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55944         now assume the sys_time module.
55945         * lib/tempname.c: Likewise.
55946         * lib/timespec.h: Likewise.
55947         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55948         needed.
55949         * lib/strftime.c: Likewise.
55950         * lib/timespec.h: Likewise.
55951         * lib/posixtm.c: Include posixtm.h first, for interface check.
55952         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55953         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55954         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55955         * lib/sys_time_.h: New file.
55956         * lib/timespec.h (struct timespec): Use long int, not long.
55957         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55958         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55959         Remove obsolescent call to AC_HEADER_TIME.
55960         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55961         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55962         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55963         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55964         Likewise.
55965         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55966         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55967         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55968         into the sys_time module.  Check for gettimeofday just once.
55969         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55970         for gettimeofday signature to just check the signature.  Merely
55971         compile it, since linking doesn't test signature.  Improve test for
55972         whether gettimeofday.o is actually needed.
55973         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55974         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55975         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55976         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55977         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55978         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55979         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55980         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55981         than worrying about sys/time.h.
55982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55983         Don't bother worrying about TIME_WITH_SYS_TIME.
55984         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55985         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55986         * m4/sys_time_h.m4: New file.
55987         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55988         Don't include sys/time.h.  Return from main rather than exiting.
55989         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55990         all uses changed.
55991         * modules/gethrxtime (Depends-on): Add sys_time.
55992         * modules/gettime (Depends-on): Likewise.
55993         * modules/gettimeofday (Depends-on): Likewise.
55994         * modules/nanosleep (Depends-on): Likewise.
55995         * modules/settime (Depends-on): Likewise.
55996         * modules/tempname (Depends-on): Likewise.
55997         * modules/utimens (Depends-on): Likewise.
55998         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55999         (Include): Change back to <sys/time.h>.
56000         (Maintainer): Add self.
56001         * modules/sys_time: New file.
56002         * modules/tempname (Depends-on): Add gettimeofday.
56003         * tests/test-gettimeofday.c: Include <sys/time.h>
56004         rather than gettimeofday.h.
56005
56006 2007-01-17  Bruno Haible  <bruno@clisp.org>
56007
56008         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56009         the license default to GPL.
56010         (func_create_testdir): Don't complain if a module is LGPL and its
56011         tests module depends on GPLed modules.
56012
56013 2007-01-17  Bruno Haible  <bruno@clisp.org>
56014
56015         * lib/gettimeofday.c (gettimeofday): Add code for the case
56016         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56017         maximum possible value for tv->tv_usec, rather than the minimum one.
56018
56019 2005-10-08  Martin Lambers  <marlam@marlam.de>
56020 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56021 2007-01-16  Bruno Haible  <bruno@clisp.org>
56022
56023         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56024         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56025         gl_FUNC_GETTIMEOFDAY.
56026         (Include): Add gettimeofday.h.
56027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56028         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56029         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56030         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56031         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56032         * lib/gettimeofday.h: New file.
56033         * lib/gettimeofday.c: Include <sys/timeb.h>.
56034         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56035         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56036         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56037         fall back on time().
56038
56039         * tests/test-gettimeofday.c: New file.
56040         * modules/gettimeofday-tests: New file.
56041
56042 2007-01-16  Eric Blake  <ebb9@byu.net>
56043
56044         * modules/fnmatch (Depends-on): Depend on wchar.
56045         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56046         * m4/fnmatch.m4: Likewise.
56047         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56048         * m4/mbchar.m4: Likewise.
56049         * modules/mbswidth (Depends-on): Depend on wchar.
56050         * lib/mbswidth.c: Assume <wchar.h>.
56051         * m4/mbswidth.m4: Likewise.
56052         * modules/quotearg (Depends-on): Depend on wchar.
56053         * lib/quotearg.c: Assume <wchar.h>.
56054         * m4/quotearg.m4: Likewise.
56055         * modules/regex (Depends-on): Depend on wchar.
56056         * lib/regex_internal.h: Assume <wchar.h>.
56057         * m4/regex.m4: Likewise.
56058         * modules/stdint (Depends-on): Depend on wchar.
56059         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56060         * m4/stdint.m4: Likewise.
56061         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56062         * modules/strftime (Depends-on): Depend on wchar.
56063         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56064         * modules/strtol (Depends-on): Depend on wchar.
56065         * lib/strtol.c: Assume <wchar.h>.
56066         * modules/wcwidth (Depends-on): Depend on wchar.
56067         * lib/wcwidth.h: Assume <wchar.h>.
56068         * m4/wcwidth.m4: Likewise.
56069
56070 2007-01-16  Bruno Haible  <bruno@clisp.org>
56071
56072         * modules/csharpexec-script: New, created from...
56073         * modules/csharpexec: ... this.
56074
56075 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56076
56077         * modules/javaexec-script: New, created from...
56078         * modules/javaexec: ... this.
56079
56080 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56081
56082         * modules/poll (Dependencies): Add sys_select.
56083
56084 2007-01-15  Jim Meyering  <jim@meyering.net>
56085
56086         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56087         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56088         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56089         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56090
56091 2007-01-15  Bruno Haible  <bruno@clisp.org>
56092
56093         * modules/striconveh: New file.
56094         * lib/striconveh.h: New file.
56095         * lib/striconveh.c: New file.
56096         * MODULES.html.sh (Internationalization functions): Add striconveh.
56097
56098         * modules/striconveh-tests: New file.
56099         * tests/test-striconveh.c: New file.
56100
56101 2007-01-15  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56104         not from GNU libiconv or GNU libc.
56105
56106 2007-01-15  Bruno Haible  <bruno@clisp.org>
56107
56108         * doc/gnulib-intro.texi (Copyright): Explain the different license
56109         terms for module descriptions, autoconf macros, tests, documentation.
56110
56111 2007-01-14  Bruno Haible  <bruno@clisp.org>
56112
56113         * modules/striconv-tests: New file.
56114         * tests/test-striconv.c: New file.
56115
56116 2007-01-14  Bruno Haible  <bruno@clisp.org>
56117
56118         * modules/iconv-tests: New file.
56119         * tests/test-iconv.c: New file.
56120
56121 2007-01-14  Bruno Haible  <bruno@clisp.org>
56122
56123         * gnulib-tool (func_get_license): For test modules, use the license of
56124         the main module.
56125
56126 2007-01-14  Bruno Haible  <bruno@clisp.org>
56127
56128         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56129         if iconv is found to exist.
56130
56131 2007-01-14  Bruno Haible  <bruno@clisp.org>
56132
56133         * modules/c-ctype-tests: New file.
56134         * tests/test-c-ctype.c: New file.
56135
56136 2007-01-14  Bruno Haible  <bruno@clisp.org>
56137
56138         * modules/binary-io-tests: New file.
56139         * tests/test-binary-io.sh: New file.
56140         * tests/test-binary-io.c: New file.
56141
56142 2007-01-14  Bruno Haible  <bruno@clisp.org>
56143
56144         * modules/array-oset-tests: New file.
56145         * tests/test-array_oset.c: New file.
56146
56147 2007-01-14  Bruno Haible  <bruno@clisp.org>
56148
56149         * modules/array-list-tests: New file.
56150         * tests/test-array_list.c: New file.
56151
56152 2007-01-14  Bruno Haible  <bruno@clisp.org>
56153
56154         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56155         and make.
56156         Reported by Simon Josefsson in
56157         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56158
56159 2007-01-14  Bruno Haible  <bruno@clisp.org>
56160
56161         * modules/allocsa-tests: New file.
56162         * tests/test-allocsa.c: New file.
56163
56164 2007-01-14  Bruno Haible  <bruno@clisp.org>
56165
56166         * modules/fchdir (Depends-on): Add absolute-header.
56167         * modules/unistd (Depends-on): Likewise.
56168
56169 2006-12-30  Bruno Haible  <bruno@clisp.org>
56170
56171         * modules/fchdir: New file.
56172         * modules/unistd (Files): Add lib/unistd_.h.
56173         (Makefile.am): Generate unistd.h from unistd_.h.
56174         * lib/fchdir.c: New file.
56175         * lib/dirent_.h: New file.
56176         * lib/unistd_.h: New file.
56177         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56178         * m4/fchdir.m4: New file.
56179         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56180         (gl_HEADER_UNISTD): Invoke it.
56181         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56182         function.
56183         * lib/backupfile.c (opendir, closedir): Undefine.
56184         * lib/chown.c (open, close): Undefine.
56185         * lib/clean-temp.c (open, close): Undefine.
56186         * lib/copy-file.c (open, close): Undefine.
56187         * lib/execute.c (open, close): Undefine.
56188         * lib/fsusage.c (open, close): Undefine.
56189         * lib/gc-gnulib.c (open, close): Undefine.
56190         * lib/getcwd.c (opendir, closedir): Undefine.
56191         * lib/glob.c (opendir, closedir): Undefine.
56192         * lib/javacomp.c (open, close): Undefine.
56193         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56194         * lib/openat-proc.c (open, close): Undefine.
56195         * lib/pagealign_alloc.c (open, close): Undefine.
56196         * lib/pipe.c (open, close): Undefine.
56197         * lib/progreloc.c (open, close): Undefine.
56198         * lib/savedir.c (opendir, closedir): Undefine.
56199         * lib/utime.c (open, close): Undefine.
56200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56201
56202 2007-01-10  Bruno Haible  <bruno@clisp.org>
56203
56204         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56205
56206 2007-01-12  Eric Blake  <ebb9@byu.net>
56207
56208         Provide a robust <wchar.h>.  Further simplifications are now
56209         possible in other modules, but not included here.
56210         * modules/wchar: New module.
56211         * m4/wchar.m4: New file.
56212         * lib/wchar_.h: Likewise.
56213         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56214         of the new module.
56215         * MODULES.html.sh (Extended multibyte and wide character utilities):
56216         New section.
56217
56218 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56219
56220         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56221         to a reasonable default for memory allocation.
56222         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56223         file system that reports garbage st_size values for symlinks.
56224         Problem reported by Liyang Hu.
56225
56226 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56227
56228         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56229         Emacs .#* auto-save files).
56230
56231 2007-01-11  Bruno Haible  <bruno@clisp.org>
56232
56233         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56234         directory.
56235
56236 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56237
56238         Use @...@ consistently in lib/wctype_.h.
56239         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56240         on it being set to 1 or 0.
56241         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56242         go back to AC_SUBSTing it.
56243         * modules/wctype (Makefile.am): Undo previous change.
56244
56245 2007-01-10  Eric Blake  <ebb9@byu.net>
56246
56247         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56248         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56249         * modules/wctype (Makefile.am): Likewise.
56250         Reported by Chris McGuire.
56251
56252 2007-01-10  Jim Meyering  <jim@meyering.net>
56253
56254         fts.c: a small readability/maintainability improvement
56255         * lib/fts.c (fts_read): Make this code slightly more readable and
56256         maintainable by hoisting the "sp->fts_cur = p" assignments to
56257         immediately follow the statements that set P.  Derived from
56258         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56259
56260 2007-01-10  Eric Blake  <ebb9@byu.net>
56261
56262         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56263         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56265         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56266         Reported by Chris McGuire.
56267
56268 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56269
56270         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56271         in sed script.
56272
56273 2007-01-09  Bruno Haible  <bruno@clisp.org>
56274
56275         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56276         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56277         variables.
56278         (func_module): Use them.
56279
56280 2007-01-09  Bruno Haible  <bruno@clisp.org>
56281
56282         * modules/unistr/base: New file.
56283         * lib/unistr.h: New file.
56284
56285         * modules/unistr/u8-to-u16: New file.
56286         * lib/unistr/u8-to-u16.c: New file.
56287
56288         * modules/unistr/u8-to-u32: New file.
56289         * lib/unistr/u8-to-u32.c: New file.
56290
56291         * modules/unistr/u16-to-u8: New file.
56292         * lib/unistr/u16-to-u8.c: New file.
56293
56294         * modules/unistr/u16-to-u32: New file.
56295         * lib/unistr/u16-to-u32.c: New file.
56296
56297         * modules/unistr/u32-to-u8: New file.
56298         * lib/unistr/u32-to-u8.c: New file.
56299
56300         * modules/unistr/u32-to-u16: New file.
56301         * lib/unistr/u32-to-u16.c: New file.
56302
56303         * modules/unistr/u8-check: New file.
56304         * modules/unistr/u16-check: New file.
56305         * modules/unistr/u32-check: New file.
56306         * lib/unistr/u8-check.c: New file.
56307         * lib/unistr/u16-check.c: New file.
56308         * lib/unistr/u32-check.c: New file.
56309
56310         * modules/unistr/u8-chr: New file.
56311         * modules/unistr/u16-chr: New file.
56312         * modules/unistr/u32-chr: New file.
56313         * lib/unistr/u8-chr.c: New file.
56314         * lib/unistr/u16-chr.c: New file.
56315         * lib/unistr/u32-chr.c: New file.
56316
56317         * modules/unistr/u8-cmp: New file.
56318         * modules/unistr/u16-cmp: New file.
56319         * modules/unistr/u32-cmp: New file.
56320         * lib/unistr/u8-cmp.c: New file.
56321         * lib/unistr/u16-cmp.c: New file.
56322         * lib/unistr/u32-cmp.c: New file.
56323
56324         * modules/unistr/u8-cpy: New file.
56325         * modules/unistr/u16-cpy: New file.
56326         * modules/unistr/u32-cpy: New file.
56327         * lib/unistr/u8-cpy.c: New file.
56328         * lib/unistr/u16-cpy.c: New file.
56329         * lib/unistr/u32-cpy.c: New file.
56330         * lib/unistr/u-cpy.h: New file.
56331
56332         * modules/unistr/u8-cpy-alloc: New file.
56333         * modules/unistr/u16-cpy-alloc: New file.
56334         * modules/unistr/u32-cpy-alloc: New file.
56335         * lib/unistr/u8-cpy-alloc.c: New file.
56336         * lib/unistr/u16-cpy-alloc.c: New file.
56337         * lib/unistr/u32-cpy-alloc.c: New file.
56338         * lib/unistr/u-cpy-alloc.h: New file.
56339
56340         * modules/unistr/u8-endswith: New file.
56341         * modules/unistr/u16-endswith: New file.
56342         * modules/unistr/u32-endswith: New file.
56343         * lib/unistr/u8-endswith.c: New file.
56344         * lib/unistr/u16-endswith.c: New file.
56345         * lib/unistr/u32-endswith.c: New file.
56346         * lib/unistr/u-endswith.h: New file.
56347
56348         * modules/unistr/u8-mblen: New file.
56349         * modules/unistr/u16-mblen: New file.
56350         * modules/unistr/u32-mblen: New file.
56351         * lib/unistr/u8-mblen.c: New file.
56352         * lib/unistr/u16-mblen.c: New file.
56353         * lib/unistr/u32-mblen.c: New file.
56354
56355         * modules/unistr/u8-mbtouc: New file.
56356         * modules/unistr/u16-mbtouc: New file.
56357         * modules/unistr/u32-mbtouc: New file.
56358         * lib/unistr/u8-mbtouc.c: New file.
56359         * lib/unistr/u16-mbtouc.c: New file.
56360         * lib/unistr/u32-mbtouc.c: New file.
56361
56362         * modules/unistr/u8-mbtouc-safe: New file.
56363         * modules/unistr/u16-mbtouc-safe: New file.
56364         * modules/unistr/u32-mbtouc-safe: New file.
56365         * lib/unistr/u8-mbtouc-safe.c: New file.
56366         * lib/unistr/u16-mbtouc-safe.c: New file.
56367         * lib/unistr/u32-mbtouc-safe.c: New file.
56368
56369         * modules/unistr/u8-move: New file.
56370         * modules/unistr/u16-move: New file.
56371         * modules/unistr/u32-move: New file.
56372         * lib/unistr/u8-move.c: New file.
56373         * lib/unistr/u16-move.c: New file.
56374         * lib/unistr/u32-move.c: New file.
56375         * lib/unistr/u-move.h: New file.
56376
56377         * modules/unistr/u8-next: New file.
56378         * modules/unistr/u16-next: New file.
56379         * modules/unistr/u32-next: New file.
56380         * lib/unistr/u8-next.c: New file.
56381         * lib/unistr/u16-next.c: New file.
56382         * lib/unistr/u32-next.c: New file.
56383
56384         * modules/unistr/u8-prev: New file.
56385         * modules/unistr/u16-prev: New file.
56386         * modules/unistr/u32-prev: New file.
56387         * lib/unistr/u8-prev.c: New file.
56388         * lib/unistr/u16-prev.c: New file.
56389         * lib/unistr/u32-prev.c: New file.
56390
56391         * modules/unistr/u8-set: New file.
56392         * modules/unistr/u16-set: New file.
56393         * modules/unistr/u32-set: New file.
56394         * lib/unistr/u8-set.c: New file.
56395         * lib/unistr/u16-set.c: New file.
56396         * lib/unistr/u32-set.c: New file.
56397         * lib/unistr/u-set.h: New file.
56398
56399         * modules/unistr/u8-startswith: New file.
56400         * modules/unistr/u16-startswith: New file.
56401         * modules/unistr/u32-startswith: New file.
56402         * lib/unistr/u8-startswith.c: New file.
56403         * lib/unistr/u16-startswith.c: New file.
56404         * lib/unistr/u32-startswith.c: New file.
56405         * lib/unistr/u-startswith.h: New file.
56406
56407         * modules/unistr/u8-stpcpy: New file.
56408         * modules/unistr/u16-stpcpy: New file.
56409         * modules/unistr/u32-stpcpy: New file.
56410         * lib/unistr/u8-stpcpy.c: New file.
56411         * lib/unistr/u16-stpcpy.c: New file.
56412         * lib/unistr/u32-stpcpy.c: New file.
56413         * lib/unistr/u-stpcpy.h: New file.
56414
56415         * modules/unistr/u8-stpncpy: New file.
56416         * modules/unistr/u16-stpncpy: New file.
56417         * modules/unistr/u32-stpncpy: New file.
56418         * lib/unistr/u8-stpncpy.c: New file.
56419         * lib/unistr/u16-stpncpy.c: New file.
56420         * lib/unistr/u32-stpncpy.c: New file.
56421         * lib/unistr/u-stpncpy.h: New file.
56422
56423         * modules/unistr/u8-strcat: New file.
56424         * modules/unistr/u16-strcat: New file.
56425         * modules/unistr/u32-strcat: New file.
56426         * lib/unistr/u8-strcat.c: New file.
56427         * lib/unistr/u16-strcat.c: New file.
56428         * lib/unistr/u32-strcat.c: New file.
56429         * lib/unistr/u-strcat.h: New file.
56430
56431         * modules/unistr/u8-strchr: New file.
56432         * modules/unistr/u16-strchr: New file.
56433         * modules/unistr/u32-strchr: New file.
56434         * lib/unistr/u8-strchr.c: New file.
56435         * lib/unistr/u16-strchr.c: New file.
56436         * lib/unistr/u32-strchr.c: New file.
56437
56438         * modules/unistr/u8-strcmp: New file.
56439         * modules/unistr/u16-strcmp: New file.
56440         * modules/unistr/u32-strcmp: New file.
56441         * lib/unistr/u8-strcmp.c: New file.
56442         * lib/unistr/u16-strcmp.c: New file.
56443         * lib/unistr/u32-strcmp.c: New file.
56444
56445         * modules/unistr/u8-strcpy: New file.
56446         * modules/unistr/u16-strcpy: New file.
56447         * modules/unistr/u32-strcpy: New file.
56448         * lib/unistr/u8-strcpy.c: New file.
56449         * lib/unistr/u16-strcpy.c: New file.
56450         * lib/unistr/u32-strcpy.c: New file.
56451         * lib/unistr/u-strcpy.h: New file.
56452
56453         * modules/unistr/u8-strcspn: New file.
56454         * modules/unistr/u16-strcspn: New file.
56455         * modules/unistr/u32-strcspn: New file.
56456         * lib/unistr/u8-strcspn.c: New file.
56457         * lib/unistr/u16-strcspn.c: New file.
56458         * lib/unistr/u32-strcspn.c: New file.
56459         * lib/unistr/u-strcspn.h: New file.
56460
56461         * modules/unistr/u8-strdup: New file.
56462         * modules/unistr/u16-strdup: New file.
56463         * modules/unistr/u32-strdup: New file.
56464         * lib/unistr/u8-strdup.c: New file.
56465         * lib/unistr/u16-strdup.c: New file.
56466         * lib/unistr/u32-strdup.c: New file.
56467         * lib/unistr/u-strdup.h: New file.
56468
56469         * modules/unistr/u8-strlen: New file.
56470         * modules/unistr/u16-strlen: New file.
56471         * modules/unistr/u32-strlen: New file.
56472         * lib/unistr/u8-strlen.c: New file.
56473         * lib/unistr/u16-strlen.c: New file.
56474         * lib/unistr/u32-strlen.c: New file.
56475         * lib/unistr/u-strlen.h: New file.
56476
56477         * modules/unistr/u8-strmblen: New file.
56478         * modules/unistr/u16-strmblen: New file.
56479         * modules/unistr/u32-strmblen: New file.
56480         * lib/unistr/u8-strmblen.c: New file.
56481         * lib/unistr/u16-strmblen.c: New file.
56482         * lib/unistr/u32-strmblen.c: New file.
56483
56484         * modules/unistr/u8-strmbtouc: New file.
56485         * modules/unistr/u16-strmbtouc: New file.
56486         * modules/unistr/u32-strmbtouc: New file.
56487         * lib/unistr/u8-strmbtouc.c: New file.
56488         * lib/unistr/u16-strmbtouc.c: New file.
56489         * lib/unistr/u32-strmbtouc.c: New file.
56490
56491         * modules/unistr/u8-strncat: New file.
56492         * modules/unistr/u16-strncat: New file.
56493         * modules/unistr/u32-strncat: New file.
56494         * lib/unistr/u8-strncat.c: New file.
56495         * lib/unistr/u16-strncat.c: New file.
56496         * lib/unistr/u32-strncat.c: New file.
56497         * lib/unistr/u-strncat.h: New file.
56498
56499         * modules/unistr/u8-strncmp: New file.
56500         * modules/unistr/u16-strncmp: New file.
56501         * modules/unistr/u32-strncmp: New file.
56502         * lib/unistr/u8-strncmp.c: New file.
56503         * lib/unistr/u16-strncmp.c: New file.
56504         * lib/unistr/u32-strncmp.c: New file.
56505
56506         * modules/unistr/u8-strncpy: New file.
56507         * modules/unistr/u16-strncpy: New file.
56508         * modules/unistr/u32-strncpy: New file.
56509         * lib/unistr/u8-strncpy.c: New file.
56510         * lib/unistr/u16-strncpy.c: New file.
56511         * lib/unistr/u32-strncpy.c: New file.
56512         * lib/unistr/u-strncpy.h: New file.
56513
56514         * modules/unistr/u8-strnlen: New file.
56515         * modules/unistr/u16-strnlen: New file.
56516         * modules/unistr/u32-strnlen: New file.
56517         * lib/unistr/u8-strnlen.c: New file.
56518         * lib/unistr/u16-strnlen.c: New file.
56519         * lib/unistr/u32-strnlen.c: New file.
56520         * lib/unistr/u-strnlen.h: New file.
56521
56522         * modules/unistr/u8-strpbrk: New file.
56523         * modules/unistr/u16-strpbrk: New file.
56524         * modules/unistr/u32-strpbrk: New file.
56525         * lib/unistr/u8-strpbrk.c: New file.
56526         * lib/unistr/u16-strpbrk.c: New file.
56527         * lib/unistr/u32-strpbrk.c: New file.
56528         * lib/unistr/u-strpbrk.h: New file.
56529
56530         * modules/unistr/u8-strrchr: New file.
56531         * modules/unistr/u16-strrchr: New file.
56532         * modules/unistr/u32-strrchr: New file.
56533         * lib/unistr/u8-strrchr.c: New file.
56534         * lib/unistr/u16-strrchr.c: New file.
56535         * lib/unistr/u32-strrchr.c: New file.
56536
56537         * modules/unistr/u8-strspn: New file.
56538         * modules/unistr/u16-strspn: New file.
56539         * modules/unistr/u32-strspn: New file.
56540         * lib/unistr/u8-strspn.c: New file.
56541         * lib/unistr/u16-strspn.c: New file.
56542         * lib/unistr/u32-strspn.c: New file.
56543         * lib/unistr/u-strspn.h: New file.
56544
56545         * modules/unistr/u8-strstr: New file.
56546         * modules/unistr/u16-strstr: New file.
56547         * modules/unistr/u32-strstr: New file.
56548         * lib/unistr/u8-strstr.c: New file.
56549         * lib/unistr/u16-strstr.c: New file.
56550         * lib/unistr/u32-strstr.c: New file.
56551         * lib/unistr/u-strstr.h: New file.
56552
56553         * modules/unistr/u8-strtok: New file.
56554         * modules/unistr/u16-strtok: New file.
56555         * modules/unistr/u32-strtok: New file.
56556         * lib/unistr/u8-strtok.c: New file.
56557         * lib/unistr/u16-strtok.c: New file.
56558         * lib/unistr/u32-strtok.c: New file.
56559         * lib/unistr/u-strtok.h: New file.
56560
56561         * modules/unistr/u8-uctomb: New file.
56562         * modules/unistr/u16-uctomb: New file.
56563         * modules/unistr/u32-uctomb: New file.
56564         * lib/unistr/u8-uctomb.c: New file.
56565         * lib/unistr/u16-uctomb.c: New file.
56566         * lib/unistr/u32-uctomb.c: New file.
56567
56568         * MODULES.html.sh (Unicode string functions): Add the new modules.
56569
56570 2007-01-08  Bruno Haible  <bruno@clisp.org>
56571
56572         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56573         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56574         subdirectories.
56575
56576 2007-01-08  Karl Berry  <karl@gnu.org>
56577
56578         * doc/error.texi: mention that main() fns must set program_name
56579         when progname is used.
56580
56581 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56582
56583         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56584         WCTYPE_H is empty, for the benefit of builds from non-distclean
56585         directories.  Problem reported by Eric Blake in
56586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56587
56588 2007-01-08  Bruno Haible  <bruno@clisp.org>
56589
56590         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56591         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56592         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56593         PROVIDE_CANONICALIZE_FILENAME_MODE.
56594         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56595
56596 2007-01-08  Bruno Haible  <bruno@clisp.org>
56597
56598         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56599         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56600         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56601         * lib/fts.c: Likewise.
56602         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56603
56604 2006-12-25  Bruno Haible  <bruno@clisp.org>
56605
56606         * modules/utf8-ucs4-safe: New file.
56607         * lib/utf8-ucs4-safe.h: New file.
56608         * lib/unistr/utf8-ucs4-safe.c: New file.
56609
56610         * modules/utf16-ucs4-safe: New file.
56611         * lib/utf16-ucs4-safe.h: New file.
56612         * lib/unistr/utf16-ucs4-safe.c: New file.
56613
56614         * MODULES.html.sh (Unicode string functions): Add the new modules.
56615
56616 2007-01-08  Bruno Haible  <bruno@clisp.org>
56617
56618         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56619         (Depends-on): Add unitypes.
56620         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56621         (u8_mbtouc_aux): Move out to separate file.
56622         (u8_mbtouc): Use ucs4_t, uint8_t types.
56623         * lib/unistr/utf8-ucs4.c: New file.
56624
56625         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56626         (Depends-on): Add unitypes.
56627         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56628         (u16_mbtouc_aux): Move out to separate file.
56629         (u16_mbtouc): Use ucs4_t, uint16_t types.
56630         * lib/unistr/utf16-ucs4.c: New file.
56631
56632         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56633         (Depends-on): Add unitypes.
56634         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56635         (u8_uctomb_aux): Move out to separate file.
56636         (u8_uctomb): Use ucs4_t, uint8_t types.
56637         * lib/unistr/ucs4-utf8.c: New file.
56638
56639         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56640         (Depends-on): Add unitypes.
56641         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56642         (u16_uctomb_aux): Move out to separate file.
56643         (u16_uctomb): Use ucs4_t, uint16_t types.
56644         * lib/unistr/ucs4-utf16.c: New file.
56645
56646 2006-12-25  Bruno Haible  <bruno@clisp.org>
56647
56648         * modules/unitypes: New file.
56649         * lib/unitypes.h: New file.
56650         * MODULES.html.sh (func_all_modules): New section "Unicode string
56651         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56652         this section. Add unitypes.
56653
56654 2007-01-08  Bruno Haible  <bruno@clisp.org>
56655
56656         Avoid variable names that conflict with those from libtool.
56657         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56658         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56659         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56660         library_names_spec to acl_library_names_spec, hardcode_* to
56661         acl_hardcode_*.
56662         Reported by Ralf Wildenhues.
56663
56664 2007-01-08  Bruno Haible  <bruno@clisp.org>
56665
56666         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56667         definition.
56668         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56669         definition.
56670         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56671         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56672         definition.
56673         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56674         definition.
56675         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56676         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56677         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56678         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56679         definition.
56680         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56681         definition.
56682         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56683         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56684         GC_USE_<algorithm>.
56685         * lib/gc-libgcrypt.c: Likewise.
56686         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56687         * modules/gc-arctwo (configure.ac): Likewise.
56688         * modules/gc-des (configure.ac): Likewise.
56689         * modules/gc-hmac-md5 (configure.ac): Likewise.
56690         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56691         * modules/gc-md2 (configure.ac): Likewise.
56692         * modules/gc-md4 (configure.ac): Likewise.
56693         * modules/gc-md5 (configure.ac): Likewise.
56694         * modules/gc-random (configure.ac): Likewise.
56695         * modules/gc-rijndael (configure.ac): Likewise.
56696         * modules/gc-sha1 (configure.ac): Likewise.
56697
56698 2007-01-08  Bruno Haible  <bruno@clisp.org>
56699
56700         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56701         macro definition.
56702         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56703         definition.
56704         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56705         definition.
56706         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56707         * modules/fcntl-safer (configure.ac): Likewise.
56708         * modules/fopen-safer (configure.ac): Likewise.
56709         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56710         GNULIB_FWRITEERROR macro definition.
56711
56712 2007-01-08  Bruno Haible  <bruno@clisp.org>
56713
56714         * m4/gnulib-common.m4: New file.
56715         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56716         (func_get_filelist): Add m4/gnulib-common.m4.
56717
56718 2007-01-08  Bruno Haible  <bruno@clisp.org>
56719
56720         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56721         command.
56722
56723 2007-01-08  Jim Meyering  <jim@meyering.net>
56724
56725         Use a more robust test for a "can't happen" condition.
56726         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56727         narrowed the st_size value.  Presuming the "can't happen" condition
56728         is true, that narrowing could conceivably convert an invalid st_size
56729         value into a valid one.  Instead, use a change based on Matthew
56730         Woehlke's original patch.
56731
56732         Slight readability improvement: use an assert-like macro
56733         in place of literal "abort ()" uses.
56734         * lib/fts.c (fts_assert): Define.
56735         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56736         Use this macro instead of a bare 'abort'.
56737
56738 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56739
56740         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56741         simply work around them.
56742         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56743         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56744         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56745         declaring.
56746         Don't bother to define as macros, since the standard doesn't require it.
56747         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56748         longer worry about IRIX 5.3.
56749         (HAVE_WCTYPE_CTMP_BUG): Remove.
56750
56751 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56752
56753         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56754         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56755         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56756         Problems reported by Georg Schwarz for IRIX 5.3.
56757
56758         * gnulib-tool (autoconf_minversion): Take the maximum version number
56759         found, not the minimum.  Problem reported by James Youngman.
56760
56761 2007-01-03  Karl Berry  <karl@gnu.org>
56762
56763         * doc/error.texi: new file, explaining interaction with progname.
56764         * doc/gnulib.texi: include it.  Update copyright.
56765
56766 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56767
56768         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56769         AC_CANONICAL_HOST, to improve autobuild outputs.
56770
56771 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56772             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56773
56774         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56775         sockets, server sockets, and other file descriptors.  Count errors
56776         to compute the return value.  Reorder the code a bit to be easier
56777         to follow.  Don't set event bits that were not requested (except
56778         POLLERR and POLLHUP).
56779
56780 2007-01-01  Bruno Haible  <bruno@clisp.org>
56781
56782         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56783
56784 2007-01-03  Jim Meyering  <jim@meyering.net>
56785
56786         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56787
56788 2007-01-02  Bruno Haible  <bruno@clisp.org>
56789
56790         * modules/settime (Include): Require timespec.h.
56791         * modules/nanosleep (Include): Likewise.
56792
56793 2007-01-01  Bruno Haible  <bruno@clisp.org>
56794
56795         * gnulib-tool (func_emit_copyright_notice): Bump year.
56796         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56797
56798 2007-01-01  Bruno Haible  <bruno@clisp.org>
56799
56800         Improve support for OpenBSD.
56801         * build-aux/config.rpath (libname_spec): Export.
56802         (library_names_spec): New variable. Export.
56803         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56804         library_names_spec from the config.rpath output. Locate shared library
56805         through the name pattern in library_names_spec.
56806
56807 2007-01-01  Eric Blake  <ebb9@byu.net>
56808
56809         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56810
56811 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56812
56813         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56814         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56815         assume the C locale, and avoid an "eval" that could cause trouble.
56816         Problem with SORT reported by Bob Proulx.
56817
56818         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56819         Define.  Trivial patch from Henning Nielsen Lund, originally
56820         sent to bug-grep@gnu.org today.
56821
56822 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56825         struct stat.  Problem reported by Henning Nielsen Lund.
56826         * lib/acl.c: Include acl.h first, to check interface.  Don't
56827         bother to include sys/types.h and sys/stat.h again.
56828
56829 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56830
56831         Import the following change from libc; problem reported by
56832         Sven Verdoolaege.
56833
56834         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56835
56836         [BZ #1373]
56837         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56838
56839 2006-12-28  Jim Meyering  <jim@meyering.net>
56840
56841         * build-aux/announce-gen: Do not assume that the package
56842         builds any of tar.gz, tar.bz2, and .xdelta files.
56843         Suggestion from Simon Josefsson.
56844
56845 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56846
56847         * modules/announce-gen: New file.
56848
56849 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56850
56851         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56852         handles its gotchas now.
56853         * lib/mbswidth.c: Likewise.
56854         * lib/wcwidth.h: Likewise.
56855         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56856         and iswcntrl; the wctype module does this stuff now.
56857         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56859         * modules/mbchar (Depends-on): Add wctype.
56860         * modules/mbswidth (Depends-on): Likewise.
56861         * modules/wcwidth (Depends-on): Likewise.
56862
56863 2006-12-27  Eric Blake  <ebb9@byu.net>
56864
56865         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56866         module uses more than what <wctype.h> is required to provide.
56867
56868 2006-12-26  Eric Blake  <ebb9@byu.net>
56869
56870         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56871
56872 2006-12-26  Eric Blake  <ebb9@byu.net>
56873
56874         * modules/absolute-header: New module.
56875         * modules/fcntl (Depends-on): Depend on it.
56876         * modules/inttypes (Depends-on): Likewise.
56877         * modules/stdint (Depends-on): Likewise.
56878         * modules/sys_stat (Depends-on): Likewise.
56879         * modules/wctype (Depends-on): Likewise.
56880         * MODULES.html.sh (Support for building libraries and
56881         executables): Document it.
56882
56883 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56884
56885         * gnulib-tool (SED): Remove, undoing previous change.
56886         The problem was that it broke coreutils on Solaris, because
56887         "sed --posix" leaked into a makefile.
56888         (sed): New alias, if 'alias' and GNU sed.
56889
56890 2006-12-24  Jim Meyering  <jim@meyering.net>
56891
56892         Work around an fchownat bug in glibc-2.4:
56893         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56894         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56895         in spite of the -P option.
56896         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56897         New macros.
56898         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56899         * modules/openat (Files): Add lib/fchownat.c.
56900         * lib/openat.c (fchownat): Don't define here.  Move to...
56901         * lib/fchownat.c: ...this new file.
56902
56903 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56904
56905         Fix bug reported by Bruno Haible in
56906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56907         where quotearg.c didn't compile on Mac OS X 10.2 because it
56908         lacks <wchar.h> and wint_t.
56909         * lib/wctype_.h (__wctype_wint_t): New type.
56910         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56911         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56912         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56913         Arg is now of type __wctype_wint_t, not wint_t.
56914         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56915         substitute HAVE_WINT_T.
56916         * modules/wctype (Files): Add m4/wint_t.m4.
56917         (wctype.h): Substitute HAVE_WINT_T.
56918
56919 2006-12-23  Bruno Haible  <bruno@clisp.org>
56920
56921         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56922
56923 2006-12-23  Bruno Haible  <bruno@clisp.org>
56924
56925         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56926         S_ISLNK.
56927         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56928         mingw.
56929
56930 2006-12-22  Bruno Haible  <bruno@clisp.org>
56931
56932         * lib/copy-file.c: Include acl.h.
56933         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56934         Close the file descriptors only after being done with copy_acl.
56935         * modules/copy-file (Depends-on): Add acl.
56936
56937 2006-12-22  Bruno Haible  <bruno@clisp.org>
56938
56939         * gnulib-tool (SED): New variable.
56940         Use $SED instead of sed everywhere.
56941
56942 2006-12-22  Bruno Haible  <bruno@clisp.org>
56943
56944         * modules/no-c++: New file.
56945         * m4/no-c++.m4: New file.
56946         * MODULES.html.sh (Support for building libraries and executables):
56947         Add no-c++.
56948
56949 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56950
56951         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56952         Include <limits.h>, and use its INT_MAX to rewrite the
56953         j loop so that it does not overflow 'int'.  Problem reported by
56954         Ralf Wildenhues in
56955         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56956         Play it safe by shifting left by 1 rather than multiplying by 2,
56957         as GCC is less likely to optimize this away when the value
56958         is signed (when it assumes overflow leads to undefined behavior).
56959         Also, don't assume time_t uses two's complement.
56960
56961 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56962
56963         * MODULES.html.sh: New module wctype.
56964         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56965         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56966         <wctype.h>, since the new wctype module should fix this.
56967         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56968         the wctype module should arrange for it.
56969         * lib/regex_internal.h: Likewise.
56970         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56971         since the wctype module should handle this now.
56972         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56973         * modules/fnmatch (Depends-on): Add wctype.
56974         * modules/quotearg (Depends-on): Likewise.
56975         * modules/regex (Depends-on): Likewise.
56976
56977 2006-12-19  Bruno Haible  <bruno@clisp.org>
56978
56979         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56980         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56981
56982 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56983
56984         * modules/savewd (Depends-on): Fix dependency on fcntl.
56985
56986 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56987
56988         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56989         conforms to C99, rather than relying on the user's environment
56990         setting of STDINT_H.
56991
56992 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56993         and Eric Blake  <ebb9@byu.net>
56994
56995         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56996         This is more consistent with the other defines here.
56997         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56998         Port to z/OS.  Problem reported by Paul Gilmartin.
56999         Change local vars to use gl_ prefix rather than ac_.
57000         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57001         with other defines.
57002         * modules/double-slash-root: New module.
57003         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57004         (Depends-on): Add double-slash-root.
57005         * MODULES.html.sh (File system functions): Mention new module.
57006
57007 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57008
57009         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57010         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57011         This is for the benefit of gzip, which doesn't do i18n.
57012
57013 2006-12-12  Jim Meyering  <jim@meyering.net>
57014
57015         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57016         Reported by Andreas Schwab <schwab@suse.de>.
57017
57018 2006-12-12  Bruno Haible  <bruno@clisp.org>
57019
57020         Merge these changes.
57021         2006-09-05  Bruno Haible  <bruno@clisp.org>
57022         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57023         iconv_alloc succeeded.
57024         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57025         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57026         test for " && dest " at the end - dest is always != NULL there. Call
57027         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57028         with 2xNULL arguments, also to flush the state storage. Handle the
57029         IRIX iconv behaviour. Realloc the final result, to throw away unused
57030         memory.
57031
57032 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57033
57034         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57035         and fchmodat unconditionally, since glibc 2.4 has them.
57036         Problem reported by Arkadiusz Miskiewicz.
57037
57038 2006-12-10  Bruno Haible  <bruno@clisp.org>
57039
57040         * gnulib-tool (func_import): Show the include files only for those
57041         modules that are copied and specified.
57042         Reported by Karl Berry.
57043
57044 2006-12-08  Jim Meyering  <jim@meyering.net>
57045
57046         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57047         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57048
57049         * build-aux/announce-gen: Add two new options, both optional:
57050         --bootstrap-tools=TOOL_LIST
57051               a comma-separated list of tools, e.g.,
57052               autoconf,automake,bison,gnulib
57053         --gnulib-snapshot-date=DATE
57054               if gnulib is in the bootstrap tool list,
57055               then report this as the snapshot date.
57056               If not specified, use the current date/time.
57057               If you specify a date here, be sure it's UTC.
57058
57059 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57060
57061         * tests/test-argp-2.sh: Fix test to match actual output.
57062         (func_compare): Fix sed script to be portable.
57063
57064 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57065
57066         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57067         workaround for this case.  It is not autoconfigured now; offhand
57068         it's hard to see how to autoconfigure it.
57069
57070 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57071
57072         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57073         a directory that is about to be chowned.  Such a directory's
57074         initial file permissions should permit the owner only and this
57075         should not be changed until after the chown, since the group and
57076         other bits would be incorrect if they granted permission before
57077         the chown.
57078
57079         Fix porting problem for iswctype reported by Georg Schwarz in:
57080         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57081         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57082         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57084         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57085
57086 2006-12-03  Jim Meyering  <jim@meyering.net>
57087
57088         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57089         p->fts_statp may not yet be defined.
57090         (fts_read): Instead, set it in the caller, once p->fts_statp is
57091         sure to be defined, and corresponds to a top-level directory.
57092         This bug made du -x fail.  Here's the coreutils test case:
57093         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57094         Reported by Mike Frysinger.
57095
57096 2006-12-01  Jim Meyering  <jim@meyering.net>
57097
57098         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57099         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57100         Reported by Simon Josefsson.
57101
57102 2006-11-30  Jim Meyering  <jim@meyering.net>
57103
57104         * m4/warning.m4: Use the all-permissive copyright notice
57105         recommended by RMS (rather than LGPL).
57106         * m4/vararrays.m4: Likewise.
57107         * m4/flexmember.m4: Likewise.
57108
57109 2006-11-29  Bruno Haible  <bruno@clisp.org>
57110
57111         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57112         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57113         using +=.
57114         Reported by Simon Josefsson <simon@josefsson.org>.
57115
57116 2006-11-28  James Youngman <jay@gnu.org>
57117
57118         * README: Advise users that they might find the bug-gnulib@gnu.org
57119         and autotools-announce@gnu.org mailing lists useful.
57120
57121 2006-11-28  Bruno Haible  <bruno@clisp.org>
57122
57123         * m4/ptrdiff_max.m4: Remove file.
57124
57125 2006-11-21  Bruno Haible  <bruno@clisp.org>
57126
57127         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57128         _AC_COMPUTE_INT.
57129         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57130         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57131         _AC_COMPUTE_INT.
57132         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57133         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57134         _AC_COMPUTE_INT.
57135         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57136
57137 2006-11-28  Jim Meyering  <jim@meyering.net>
57138
57139         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57140         warning from "gcc -Wshadow" about shadowing the builtin.
57141
57142 2006-11-27  Bruno Haible  <bruno@clisp.org>
57143
57144         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57145         _AC_COMPUTE_INT.
57146         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57147
57148 2006-11-27  Bruno Haible  <bruno@clisp.org>
57149             Paul Eggert  <eggert@cs.ucla.edu>
57150
57151         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57152
57153 2006-11-26  Bruno Haible  <bruno@clisp.org>
57154
57155         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57156         noinst_LTLIBRARIES.
57157
57158 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57159             Bruno Haible  <bruno@clisp.org>
57160
57161         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57162         if compiling with "gcc -ansi".
57163
57164 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57165
57166         Fix some incompatibilities with gcc -ansi -pedantic.
57167         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57168         if compiling pedantically with GCC, unless it's C99 or later.
57169         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57170         it mishandles gcc -ansi -pedantic as well.
57171         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57172         if gcc -pedantic.
57173         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57174         initializers for struct if -pedantic, unless it's C99 or later.
57175
57176 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57177
57178         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57179         Don't close an fd more than once. Identical atimes indicate
57180         success, not failure.
57181
57182 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57183
57184         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57185
57186 2006-11-23  Jim Meyering  <jim@meyering.net>
57187
57188         * build-aux/announce-gen: New file.  From coreutils.
57189
57190 2006-11-22  Jim Meyering  <jim@meyering.net>
57191
57192         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57193         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57194         (fts_read): Use a temporary to narrow the overused st_size member
57195         before using it in a switch statement.  Reported by Matthew Woehlke.
57196
57197         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57198         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57199
57200 2006-11-20  Bruno Haible  <bruno@clisp.org>
57201
57202         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57203         changequote instead of pairs of brackets.
57204         Reported by Andreas Schwab <schwab@suse.de>.
57205
57206 2006-11-21  Jim Meyering  <jim@meyering.net>
57207
57208         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57209         so as to remain compatible with older compilers.
57210         Patch from Michael Deutschmann.
57211
57212 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57213
57214         * MODULES.html.sh (File system functions): Add openat.
57215
57216         * lib/openat.h (rpl_fstatat): New macro, if
57217         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57218         (fstatat): Define to rpl_fstatat under the same conditions,
57219         unless COMPILING_FSTATAT.
57220         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57221         seems to have the bug.
57222         * lib/fstatat.c: New file.
57223         * modules/openat (Files): Add it.
57224
57225 2006-11-20  Bruno Haible  <bruno@clisp.org>
57226
57227         * Makefile: New file.
57228
57229 2006-11-20  Jim Meyering  <jim@meyering.net>
57230
57231         The beginnings of syntax-related checks for gnulib.
57232         * lib/Makefile: New file.
57233         * lib/t-idcache: New script.  Ensure that the two halves of
57234         idcache.c stay in sync.
57235
57236         * lib/idcache.c: Adjust comments in user- and group- portions to
57237         be more accurate, and to be consistent with one another.
57238
57239 2006-11-20  Jim Meyering  <jim@meyering.net>
57240
57241         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57242         continue using the flexible array member (thus, this module performs
57243         half as many malloc calls), with the addition that...
57244         (getgroup, getuser): Consistently record a non-match via an empty
57245         "name" string, and map an empty string match to a NULL return value.
57246         * modules/idcache (Depends-on): Re-add flexmember.
57247
57248         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57249         (getuidbyname, getgroup, getgidbyname): Likewise.
57250
57251         Use cleaner syntax: NULL rather than 0.
57252         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57253
57254 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57257         It mishandled the case where the group was missing.
57258         Problem reported by Greg Schafer.
57259         * modules/idcache: Likewise.
57260
57261 2006-11-18  Jim Meyering  <jim@meyering.net>
57262
57263         * check-module (%exempt_header): Add exception for some
57264         conditionally-included headers.
57265
57266         * modules/i-ring (Depends-on): Add verify.
57267         (License): Change to LGPL.
57268
57269 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57270
57271         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57272         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57273         and inttostr.h.  Use snprintf rather than uinttostr, so that
57274         LGPLed code doesn't depend on GPLed.
57275
57276 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57277
57278         * modules/inline (License): Change from GPL to LGPL.
57279
57280 2006-11-17  Jim Meyering  <jim@meyering.net>
57281
57282         * modules/d-type (License): Switch to LGPL.
57283
57284 2006-11-15  Bruno Haible  <bruno@clisp.org>
57285
57286         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57287
57288 2006-11-15  Eric Blake  <ebb9@byu.net>
57289
57290         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57291         the module dependency.
57292
57293 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57294             Bruno Haible  <bruno@clisp.org>
57295
57296         * gnulib-tool (func_create_testdir): Add license consistency check.
57297
57298 2006-11-15  Eric Blake  <ebb9@byu.net>
57299
57300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57301         random "(cached)" in configure output.
57302
57303 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57304
57305         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57306         test for conforming inttypes.h is both announced and cached.
57307
57308         * MODULES.html.sh (seen_modules, seen_files): New variables.
57309         (func_module): Rewrite to use a few less gnulib-tool and sed
57310         invocations.  Avoid a couple of quadratic algorithms for ...
57311         (missed_modules, missed_files): ... these, with ...
57312         (func_append, func_tmpdir): ... these new functions, from
57313         gnulib-tool.  Analogously, install traps for cleanup.
57314
57315         * tests/test-gc.c (main): Remove unused variables.
57316         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57317
57318 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57319
57320         * modules/inttostr (License): Change to LGPL.
57321
57322 2006-11-14  Eric Blake  <ebb9@byu.net>
57323
57324         * modules/tempname (License): Change to LGPL.
57325
57326 2006-11-14  Eric Blake  <ebb9@byu.net>
57327
57328         * doc/functions.texi (Function Portability): *printf functions on
57329         Cygwin now understand all POSIX size specifiers.
57330
57331 2006-11-14  Bruno Haible  <bruno@clisp.org>
57332
57333         * modules/c-ctype (License): Change to LGPL.
57334
57335 2006-11-12  Bruno Haible  <bruno@clisp.org>
57336
57337         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57338         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57339         for GNOME libraries, for which the include files are installed in
57340         subdirectories of $prefix/include.
57341
57342 2006-11-12  Bruno Haible  <bruno@clisp.org>
57343
57344         * m4/lib-link.m4: Require at least autoconf-2.54.
57345         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57346         name to underscores for the --with option.
57347
57348 2006-11-13  Bruno Haible  <bruno@clisp.org>
57349
57350         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57351         the tests directory.
57352         Reported by Ralf Wildenhues.
57353
57354 2006-11-13  Bruno Haible  <bruno@clisp.org>
57355
57356         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57357         (func_emit_initmacro_end): Undo the override here.
57358         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57359         Works around the famous automake error in coreutils.
57360
57361 2006-11-13  Eric Blake  <ebb9@byu.net>
57362
57363         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57364         element, not its node.
57365
57366 2006-11-12  Bruno Haible  <bruno@clisp.org>
57367
57368         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57369         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57370
57371 2006-11-12  Bruno Haible  <bruno@clisp.org>
57372
57373         * gnulib-tool: New option --local-symlink.
57374         (func_usage): Document it.
57375         (lsymbolic): New variable.
57376         (func_import, func_create_testdir): If --symlink was not specified,
57377         test whether --local-symlink was specified and the file comes from
57378         the local_gnulib_dir.
57379
57380 2006-11-12  Bruno Haible  <bruno@clisp.org>
57381
57382         * gnulib-tool (func_ln): New function.
57383         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57384
57385 2006-11-12  Bruno Haible  <bruno@clisp.org>
57386
57387         Finish support for source files in subdirectories.
57388         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57389         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57390         AUTOMAKE_OPTIONS.
57391         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57392
57393 2006-11-12  Bruno Haible  <bruno@clisp.org>
57394
57395         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57396         EXTRA_lib_SOURCES augmentation.
57397         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57398
57399 2006-11-12  Jim Meyering  <jim@meyering.net>
57400
57401         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57402         file descriptors.  This also averts a failure on systems with
57403         native openat support when a traversed directory lacks "x" access.
57404         * lib/fts_.h: Include "i-ring.h"
57405         (struct FTS) [fts_fd_ring]: New member.
57406         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57407         (FCHDIR): Add parentheses.
57408         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57409         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57410         When descending, rather than simply closing the previous
57411         fts_cwd_fd value, push that file descriptor onto the ring.
57412         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57413         (fts_open): Initialize the new fd_ring member.
57414         (fts_close): Clear the ring.
57415         (fts_safe_changedir): When possible, use our new fd_ring to skip
57416         the diropen and fstat and dev/ino comparison that would normally
57417         accompany a virtual `chdir ("..")'.
57418
57419         * modules/fts (Depends-on): Add i-ring.
57420         * modules/i-ring: New module.
57421         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57422         * m4/i-ring.m4: New file.
57423
57424 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57425
57426         * gnulib-tool (func_create_testdir): Fix replacement of
57427         `build-aux' in configure.ac.  Run autotools in gltests
57428         subdirectory.
57429         (func_create_testdir, func_create_megatestdir, test): There is
57430         no need for '--force' in most autotool invocations in a new
57431         tree.  Actually fail the whole test if any of the tools, or the
57432         configure or make stages fail.
57433
57434         Sync from Automake.
57435         * build-aux/gnupload: Revert last change.  Add pointer to upload
57436         instructions of the GNU Maintenance Instructions.
57437         Suggestion by Karl Berry.
57438
57439 2006-11-10  Jim Meyering  <jim@meyering.net>
57440
57441         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57442
57443 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57444
57445         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57446         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57447         (bind_textdomain_codeset) [! ENABLE_NLS]:
57448         Evaluate all the arguments.  That way, callers get compatible behavior
57449         if the arguments have side effects.  Also, it avoids some GCC
57450         diagnostics in some cases; Joel E. Denny reported problems when Bison
57451         was configured with --enable-gcc-warnigs.
57452
57453 2006-11-10  Jim Meyering  <jim@meyering.net>
57454
57455         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57456         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57457         account.
57458
57459 2006-11-10  Jim Meyering  <jim@meyering.net>
57460
57461         * modules/inline: New file/module.
57462         * modules/xalloc (Files): Remove m4/inline.m4.
57463         (Depends-on): Add inline, instead.
57464         * modules/oset: Likewise.
57465         * modules/list: Likewise.
57466
57467 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57468
57469         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57470         Problem reported by Matthew Woehlke.
57471
57472 2006-11-09  Bruno Haible  <bruno@clisp.org>
57473
57474         * lib/tempname.c (gen_tempname): Remove variant that invokes
57475         __gen_tempname.
57476         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57477         __gen_tempname.
57478
57479 2006-11-08  Bruno Haible  <bruno@clisp.org>
57480
57481         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57482         to 'yes' instead of 'cross-compiling'.
57483
57484 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57485
57486         * lib/quotearg.h (quotearg_free): New decl.
57487         * lib/quotearg.c (quotearg_free): New function.
57488         (slot0, nslots, slotvec0, slotvec):
57489         Now file-scope so that quotearg_free can get at them.
57490
57491 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57492
57493         Sync from Automake.
57494         * build-aux/gnupload: Add missing 'gnu' to example URL.
57495         Report by Karl Berry.
57496
57497 2006-11-08  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57500         Suggested by Paul Eggert.
57501
57502 2006-11-08  Jim Meyering  <jim@meyering.net>
57503
57504         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57505         It's already included if !_LIBC.
57506         (fts_safe_changedir): Add a comment.
57507
57508 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57509
57510         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57511         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57512         Matthew Woehlke.
57513
57514         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57515         definitions up, to avoid colliding with change below.
57516         (static_inline) [HAVE_INLINE]: New macro.
57517         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57518         Provide extern decls when !HAVE_INLINE.  Do not define unless
57519         static_inline is defined, either by us or by xmalloc.c.  Use
57520         static_inline rather than static inline.
57521         (XCALLOC): Optimize sizeof(T) = 1 case.
57522         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57523
57524 2006-11-07  Bruno Haible  <bruno@clisp.org>
57525
57526         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57527         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57528         AC_C_INLINE.
57529         * modules/xalloc (Files): Add m4/inline.m4.
57530
57531 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57532
57533         * README: Fix typo.
57534         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57535         (Miscellanous Notes): ...from this.
57536
57537 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57538
57539         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57540         Mention that offsetof should be used instead of sizeof.
57541         From Bruno Haible.
57542
57543 2006-11-07  Bruno Haible  <bruno@clisp.org>
57544
57545         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57546
57547 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57550         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57551         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57552         (gl_tree_add_before, gl_tree_add_after):
57553         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57554         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57555         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57556         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57557         (gl_linked_add_after, gl_linked_add_at): Likewise.
57558         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57559         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57560         (gl_tree_add_before, gl_tree_add_after): Likewise.
57561         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57562         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57563         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57564
57565 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57566
57567         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57568
57569 2006-11-06  Bruno Haible  <bruno@clisp.org>
57570
57571         * m4/inline.m4: New file.
57572         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57573         * modules/list (Files): Add m4/inline.m4.
57574         * modules/oset (Files): Likewise.
57575
57576 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57577
57578         * lib/idcache.c: Include <stddef.h>, for offsetof.
57579         (struct userid.name): Change from char * to a flexible array member.
57580         All uses changed.
57581         * modules/idcache (Depends-on): Add flexmember.
57582
57583         * MODULES.html.sh (Core language properties): New module flexmember.
57584         * modules/flexmember, m4/flexmember.m4: New files.
57585
57586         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57587         inline functions that are identical with the old xnmalloc_inline,
57588         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57589         that we can avoid some unnecessary integer multiplications and
57590         divisions in the common case where the element size is known at
57591         compile time.
57592         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57593         needed.
57594         (xnboundedmalloc): Remove.
57595         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57596         arguments, for consistency with rest of this header.
57597         (xcharalloc): Rewrite using XNMALLOC.
57598         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57599         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57600         versions have been moved to lib/xalloc.h and renamed to be the
57601         non-*_inline versions.
57602         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57603         and xnrealloc functions, since those functions are now inline and
57604         now call us.
57605         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57606         renaming described above.
57607         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57608         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57609         captures the dependency in AC_C_INLINE.
57610
57611         New module canonicalize-lgpl, proposed by Charles Wilson in
57612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57613         with a few small changes afterwards.
57614         * MODULES.html.sh (File system functions): New module
57615         canonicalize-lgpl.
57616         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57617         and canonicalize_file_name.
57618         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57619         * modules/canonicalize-lgpl: New files.
57620
57621 2006-11-05  Bruno Haible  <bruno@clisp.org>
57622
57623         * gnulib-tool (func_import, func_create_testdir): Create directories
57624         also for files in subdirectories of lib/.
57625
57626 2006-11-05  Bruno Haible  <bruno@clisp.org>
57627
57628         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57629         ANSI C compliant.
57630
57631 2006-11-03  Bruno Haible  <bruno@clisp.org>
57632
57633         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57634         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57635         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57636         (xnboundedmalloc): New inline function.
57637         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57638         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57639         xmalloc.
57640         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57641         xmalloc.
57642         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57643         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57644         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57645         xmalloc.
57646         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57647         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57648         xmalloc.
57649         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57650         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57651         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57652         xmalloc.
57653         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57654         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57655         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57656         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57657         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57658         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57659         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57660
57661 2006-11-03  Bruno Haible  <bruno@clisp.org>
57662
57663         * lib/c-ctype.h [C++]: Define functions without name mangling.
57664         * lib/fwriteerror.h [C++]: Likewise.
57665         * lib/gcd.h [C++]: Likewise.
57666         * lib/linebreak.h [C++]: Likewise.
57667
57668 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57669
57670         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57671         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57672         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57673         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57674         Check for functions and headers just once.
57675         Check for declaration of canonicalize_file_name.
57676         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57677
57678 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57679
57680         * gnulib-tool (func_import): Fix typo in actioncmd.
57681
57682 2006-11-02  Bruno Haible  <bruno@clisp.org>
57683
57684         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57685         newline sequence in the Makefile.am snippet as a space, like "make"
57686         does.
57687         Reported by Roger Persson <perrog@gmail.com>.
57688
57689 2006-11-01  Bruno Haible  <bruno@clisp.org>
57690
57691         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57692         already declared in <string.h>.
57693         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57694
57695 2006-11-01  Bruno Haible  <bruno@clisp.org>
57696
57697         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57698         * lib/strcase.h: Include <string.h>.
57699         (strcasecmp): Define to rpl_strcasecmp here.
57700
57701 2006-11-01  Bruno Haible  <bruno@clisp.org>
57702
57703         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57704
57705 2006-11-01  Eric Blake  <ebb9@byu.net>
57706
57707         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57708
57709         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57710
57711 2006-10-29  Bruno Haible  <bruno@clisp.org>
57712
57713         Make it compile in C++ mode.
57714         * lib/full-write.c (full_rw): Add a cast.
57715
57716 2006-11-01  Bruno Haible  <bruno@clisp.org>
57717
57718         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57719         be POSIX compliant.
57720         Reported by Roger Persson <perrog@gmail.com>.
57721
57722 2006-11-01  Eric Blake  <ebb9@byu.net>
57723
57724         * lib/getopt_.h: Fix comments.
57725
57726 2006-10-31  Eric Blake  <ebb9@byu.net>
57727
57728         * modules/tmpdir (Depends-on): Add sys_stat.
57729         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57730         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57731         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57732         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57733         tempname.
57734
57735 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57736
57737         Avoid some C++ diagnostics reported by Bruno Haible.
57738         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57739         xmalloc.
57740         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57741         (struct slotvec): Move to top level.
57742         (quotearg_n_options): Rewrite to avoid xmalloc.
57743         * lib/xalloc.h (xcharalloc): New function.
57744         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57745         [defined __cplusplus]: Add function template that provides result
57746         type propagation.  This part of the change is from Bruno Haible.
57747
57748 2006-10-29  Bruno Haible  <bruno@clisp.org>
57749
57750         Make it compile in C++ mode.
57751         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57752         * lib/strnlen1.c (strnlen1): Cast memchr result.
57753         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57754         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57755         (create_temp_dir): Rename local variable 'template'.
57756         (compile_csharp_using_sscli): Add cast.
57757         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57758         * lib/findprog.c (find_in_path): Likewise.
57759         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57760         * lib/wait-process.c (register_slave_subprocess): Likewise.
57761
57762 2006-10-22  Bruno Haible  <bruno@clisp.org>
57763
57764         * modules/tsearch: New file.
57765         * lib/tsearch.h: New file.
57766         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57767         * m4/tsearch.m4: New file.
57768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57769
57770 2006-10-29  Eric Blake  <ebb9@byu.net>
57771
57772         * lib/arcfour.c: Assume config.h.
57773         * lib/arctwo.c: Likewise.
57774         * lib/base64.c: Likewise.
57775         * lib/check-version.c: Likewise.
57776         * lib/crc.c: Likewise.
57777         * lib/des.c: Likewise.
57778         * lib/gc-gnulib.c: Likewise.
57779         * lib/gc-libgcrypt.c: Likewise.
57780         * lib/gc-pbkdf2-sha1.c: Likewise.
57781         * lib/getaddrinfo.c: Likewise.
57782         * lib/getdelim.c: Likewise.
57783         * lib/getline.c: Likewise.
57784         * lib/hmac-md5.c: Likewise.
57785         * lib/hmac-sha1.c: Likewise.
57786         * lib/iconvme.c: Likewise.
57787         * lib/md2.c: Likewise.
57788         * lib/md4.c: Likewise.
57789         * lib/memxor.c: Likewise.
57790         * lib/read-file.c: Likewise.
57791         * lib/readline.c: Likewise.
57792         * lib/rijndael-alg-fst.c: Likewise.
57793         * lib/rijndael-api-fst.c: Likewise.
57794         * lib/xgetdomainname.c: Likewise.
57795
57796 2006-10-28  Eric Blake  <ebb9@byu.net>
57797
57798         * lib/xstrndup.c: Assume config.h.
57799
57800 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57801
57802         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57803         stat-macros.h is now for our own macros, whereas stat_h is for
57804         macros in the <sys/stat.h> name space.
57805         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57806         (STAT_MACROS_H): Remove.
57807         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57808         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57809         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57810         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57811         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57812         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57813         Move these macros to ...
57814         * lib/stat_.h: here.  Don't include stat-macros.h.
57815         * lib/canonicalize.c: Don't include stat-macros.h.
57816         * lib/chown.c: Likewise.
57817         * lib/euidaccess.c: Likewise.
57818         * lib/file-type.c: Likewise.
57819         * lib/filemode.c: Likewise.
57820         * lib/glob.c: Likewise.
57821         * lib/isapipe.c: Likewise.
57822         * lib/lchown.c: Likewise.
57823         * lib/lstat.c: Likewise.
57824         * lib/mkdir-p.c: Likewise.
57825         * lib/rmdir.c: Likewise.
57826         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57827         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57828         unless mkdir isn't declared, to speed up 'configure'.
57829         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57830         would define all the S_* symbols.
57831         * modules/canonicalize (Depends-on):
57832         Depend on sys_stat, not stat-macros.
57833         * modules/chown: Likewise.
57834         * modules/euidaccess: Likewise.
57835         * modules/filemode: Likewise.
57836         * modules/file-type: Likewise.
57837         * modules/glob: Likewise.
57838         * modules/isapipe: Likewise.
57839         * modules/lchown: Likewise.
57840         * modules/lstat: Likewise.
57841         * modules/mkancesdirs: Likewise.
57842         * modules/rmdir: Likewise.
57843         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57844         * modules/modechange: Likewise.
57845         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57846         (configure.ac): Remove gl_STAT_MACROS.
57847         * modules/sys_stat (Depends-on): Remove stat-macros.
57848
57849 2006-10-27  Bruno Haible  <bruno@clisp.org>
57850
57851         * m4/signed.m4: Remove file.
57852         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57853         invocation.
57854         * modules/vasnprintf (Files): Remove m4/signed.m4.
57855
57856 2006-10-27  Bruno Haible  <bruno@clisp.org>
57857
57858         Update to GNU gettext 0.16.
57859         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57860         m4/inttypes-h.m4, m4/signed.m4.
57861         * m4/gettext.m4: Update to GNU gettext 0.16.
57862         * m4/intl.m4: New file, from GNU gettext.
57863         * m4/intldir.m4: New file, from GNU gettext.
57864         * config/srclist.txt: Update
57865
57866 2006-10-27  Eric Blake  <ebb9@byu.net>
57867
57868         * MODULES.html.sh: Document tempname.
57869         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57870         dependencies.
57871         (Files): Move lib/tempname.c...
57872         * modules/tempname: ...to this new module.
57873         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57874         (gl_PREREQ_TEMPNAME): Move...
57875         * m4/tempname.m4: ...to this new file.
57876         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57877         * modules/sys_stat (Depends-on): Add stat-macros.
57878         * lib/stat_.h (includes): Pick up stat macros.
57879         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57880         if stat macros are broken.
57881         * lib/tempname.c (includes): No need to include "stat-macros.h".
57882         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57883         (direxists, __path_search) [!_LIBC]: Don't compile these in
57884         gnulib; the tmpdir module covers that.
57885         * lib/tempname.h: New file.
57886
57887 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         * COPYING: Explain how gnulib-tool converts licence headers.
57890         Almost all wording by Eric Blake.
57891
57892 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57893
57894         * lib/mbchar.h (is_basic_table): Make read-only.
57895         * lib/mbchar.c (is_basic_table): Likewise.
57896         Reported by John Darrington.
57897
57898 2006-10-25  Bruno Haible  <bruno@clisp.org>
57899
57900         * lib/progname.h (set_program_name): Undefine before defining.
57901
57902 2006-10-25  Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57905         false for non-gcc C++ compilers.
57906         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57907
57908 2006-10-24  Bruno Haible  <bruno@clisp.org>
57909
57910         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57911         iconv implementations like Irix iconv.
57912
57913 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57914
57915         * modules/vararrays: New file.
57916         * m4/vararrays.m4: New file, taken from diffutils.
57917         * MODULES.html.sh: New module vararrays.
57918
57919 2006-10-24  Karl Berry  <karl@gnu.org>
57920
57921         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57922         Don't call GNU Unix.
57923
57924 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57925
57926         * users.txt: Add Libtool.
57927
57928         Sync from Libtool:
57929
57930         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57931
57932         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57933         to gnulib's policy of including config.h unconditionally.
57934
57935 2006-10-24  Bruno Haible  <bruno@clisp.org>
57936
57937         * modules/wcwidth (Files): Add m4/wint_t.m4.
57938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57939         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57940
57941 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57942
57943         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57944         to pacify GCC with some -W flags enabled.  Problem reported by
57945         Bruno Haible.
57946
57947 2006-10-24  Jim Meyering  <jim@meyering.net>
57948
57949         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57950         Reported by Karl Berry.
57951
57952 2006-10-23  Bruno Haible  <bruno@clisp.org>
57953
57954         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57955
57956 2006-10-24  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/gl_list.h: Use C comment style, not C++ comment style.
57959
57960 2006-10-23  Eric Blake  <ebb9@byu.net>
57961
57962         * lib/getaddrinfo.c (includes): Add missing include.
57963
57964 2006-10-23  Bruno Haible  <bruno@clisp.org>
57965             Paul Eggert  <eggert@cs.ucla.edu>
57966
57967         Ability to rename obstack_free.
57968         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57969         obstack_free.
57970         (obstack_free): Invoke the __obstack_free macro.
57971         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57972
57973 2006-10-23  Bruno Haible  <bruno@clisp.org>
57974             Paul Eggert  <eggert@cs.ucla.edu>
57975
57976         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57977         __argc, __argv from the declaration. (They are defined as macros on
57978         mingw.)
57979
57980 2006-10-22  Bruno Haible  <bruno@clisp.org>
57981
57982         * doc/gnulib-intro.texi: New file.
57983         * doc/gnulib.texi: Include it.
57984
57985 2006-10-21  Bruno Haible  <bruno@clisp.org>
57986
57987         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57988         "Introduction", "Miscellanous Notes", "Particular Modules".
57989
57990 2006-10-21  Bruno Haible  <bruno@clisp.org>
57991
57992         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57993         Change mostlyclean-local rule to avoid sh syntax error from bash
57994         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57995
57996 2006-10-23  Jim Meyering  <jim@meyering.net>
57997
57998         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57999         in place of snprintf.
58000
58001         * modules/inttostr (Files): Add lib/uinttostr.c.
58002         * lib/uinttostr.c (inttostr): New file/function.
58003         * lib/inttostr.h (uinttostr): Declare.
58004         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58005         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58006         Add uinttostr.
58007         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58008
58009 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58010
58011         * lib/canonicalize.c (ELOOP): Define if not already defined.
58012         Problem reported by Bruno Haible in
58013         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58014
58015 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58016
58017         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58018         Problem reported by Perry Smith and Ville Laurikari.
58019
58020         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58021         uses.
58022
58023 2006-10-19  Bruno Haible  <bruno@clisp.org>
58024
58025         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58026         for mingw.
58027
58028 2006-10-19  Bruno Haible  <bruno@clisp.org>
58029
58030         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58031         Needed for mingw.
58032
58033 2006-10-19  Bruno Haible  <bruno@clisp.org>
58034
58035         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58036
58037 2006-10-19  Bruno Haible  <bruno@clisp.org>
58038
58039         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58040         it.
58041
58042 2006-10-19  Bruno Haible  <bruno@clisp.org>
58043
58044         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58045         invocation.
58046
58047 2006-10-19  Bruno Haible  <bruno@clisp.org>
58048
58049         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58050         mountlist by default.
58051
58052 2006-10-16  Bruno Haible  <bruno@clisp.org>
58053
58054         * lib/c-strstr.c: Include c-strstr.h.
58055
58056 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58057
58058         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58059         in a slash.
58060
58061 2006-10-18  Bruno Haible  <bruno@clisp.org>
58062
58063         * lib/lock.h [C++]: Wrap definitions in extern "C".
58064
58065 2006-10-18  Bruno Haible  <bruno@clisp.org>
58066
58067         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58068         gl_LIBOBJS list.
58069
58070 2006-10-18  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58073
58074 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58075
58076         * lib/xstrtol.h: Include gettext.h.
58077         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58078         Problem reported by Eric Blake.
58079         * modules/xstrtol (Depends-on): Add gettext-h.
58080
58081 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58082
58083         * lib/strftime.c (advance): New macro.
58084         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58085         incomplete type, so you can't add 0 to it.  Problem and patch
58086         reported by Eelco Dolstra for dietlibc.
58087
58088 2006-10-18  Jim Meyering  <jim@meyering.net>
58089
58090         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58091         type for a local, and rename it: s/up/user_proc/.
58092
58093 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58094
58095         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58096         READ_UTMP_USER_PROCESS.
58097         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58098
58099 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58100
58101         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58102         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58103
58104 2006-10-17  Eric Blake  <ebb9@byu.net>
58105
58106         * lib/sigprocmask.c (sigprocmask): Fix typo.
58107
58108         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58109
58110         * modules/clean-temp (Makefile.am): Don't add to make output...
58111         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58112         config.h.
58113
58114 2006-10-17  Bruno Haible  <bruno@clisp.org>
58115
58116         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58117         differently if DEFAULT_TEXT_DOMAIN is set.
58118
58119 2006-10-16  Bruno Haible  <bruno@clisp.org>
58120
58121         * lib/clean-temp.c: Include fwriteerror.h.
58122
58123 2006-10-16  Bruno Haible  <bruno@clisp.org>
58124
58125         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58126
58127 2006-10-16  Bruno Haible  <bruno@clisp.org>
58128
58129         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58130         * lib/sigprocmask.h: Include <sys/types.h>.
58131         (sigset_t): Use the system's definition if present.
58132
58133 2006-10-17  Eric Blake  <ebb9@byu.net>
58134
58135         * lib/xvasprintf.c (includes): Assume config.h.
58136         * lib/xasprintf.c (includes): Likewise.
58137
58138 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58139
58140         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58141         at least as wide as intmax_t.
58142
58143 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58144
58145         (Imported from Automake.)
58146         * build-aux/gnupload: Update to version 1.1 of directive file.
58147
58148 2006-10-16  Eric Blake  <ebb9@byu.net>
58149
58150         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58151         match Automake 1.10a.
58152
58153 2006-10-14  Bruno Haible  <bruno@clisp.org>
58154
58155         * modules/sigprocmask: New file.
58156         * lib/sigprocmask.h: New file.
58157         * lib/sigprocmask.c: New file.
58158         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58159         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58160         request sigprocmask.o.
58161         (gl_PREREQ_SIGPROCMASK): New macro.
58162         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58163         (Depends-on): Add sigprocmask.
58164         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58165         gt_SIGNALBLOCKING. Test for 'raise' only once.
58166         * lib/fatal-signal.c: Include sigprocmask.h.
58167         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58168         unblock_fatal_signals): Define always.
58169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58170         sigprocmask.
58171
58172 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58173
58174         Sync from Automake.
58175         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58176         which incorrectly sets the mode of an existing destination
58177         directory.  In some cases the unpatched install-sh could do the
58178         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58179         system.  We hope this is rare in practice, but it's clearly worth
58180         fixing.  Problem reported by Alex Unleashed in
58181         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58182         Also, don't bother to check for -m bugs unless we're using -m;
58183         suggested by Stepan Kasal.
58184
58185 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58186
58187         Sync from Automake.
58188         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58189         `-c' flag, so they appear at the same position as in %FASTDEP%
58190         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58191         which ignores unknown options only after the first non-option.
58192         Bug report against M4 by Nelson H. F. Beebe.
58193
58194 2006-10-13  Jim Meyering  <jim@meyering.net>
58195
58196         Fix a bug in yesterday's change.
58197         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58198         p->fts_statp->st_dev would be used uninitialized.
58199         Ensures that we always call fts_stat on the very first entry.
58200         Miklos Szeredi reported that find -xdev stopped working.
58201
58202 2006-10-12  Bruno Haible  <bruno@clisp.org>
58203
58204         * gnulib-tool (func_get_automake_snippet): Append an automatically
58205         computed EXTRA_DIST augmentation.
58206         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58207         * modules/alloca-opt (Makefile.am): Likewise.
58208         * modules/allocsa (Makefile.am): Likewise.
58209         * modules/arcfour (Makefile.am): Likewise.
58210         * modules/arctwo (Makefile.am): Likewise.
58211         * modules/argmatch (Makefile.am): Likewise.
58212         * modules/argz (Makefile.am): Likewise.
58213         * modules/atexit (Makefile.am): Likewise.
58214         * modules/backupfile (Makefile.am): Likewise.
58215         * modules/byteswap (Makefile.am): Likewise.
58216         * modules/c-strtod (Makefile.am): Likewise.
58217         * modules/c-strtold (Makefile.am): Likewise.
58218         * modules/calloc (Makefile.am): Likewise.
58219         * modules/canon-host (Makefile.am): Likewise.
58220         * modules/canonicalize (Makefile.am): Likewise.
58221         * modules/chdir-long (Makefile.am): Likewise.
58222         * modules/chdir-safer (Makefile.am): Likewise.
58223         * modules/check-version (Makefile.am): Likewise.
58224         * modules/chown (Makefile.am): Likewise.
58225         * modules/cloexec (Makefile.am): Likewise.
58226         * modules/close-stream (Makefile.am): Likewise.
58227         * modules/closeout (Makefile.am): Likewise.
58228         * modules/crc (Makefile.am): Likewise.
58229         * modules/csharpexec (Makefile.am): Likewise.
58230         * modules/cycle-check (Makefile.am): Likewise.
58231         * modules/des (Makefile.am): Likewise.
58232         * modules/dev-ino (Makefile.am): Likewise.
58233         * modules/dirfd (Makefile.am): Likewise.
58234         * modules/dirname (Makefile.am): Likewise.
58235         * modules/dup2 (Makefile.am): Likewise.
58236         * modules/eealloc (Makefile.am): Likewise.
58237         * modules/error (Makefile.am): Likewise.
58238         * modules/euidaccess (Makefile.am): Likewise.
58239         * modules/exclude (Makefile.am): Likewise.
58240         * modules/exitfail (Makefile.am): Likewise.
58241         * modules/fcntl-safer (Makefile.am): Likewise.
58242         * modules/fcntl (Makefile.am): Likewise.
58243         * modules/file-type (Makefile.am): Likewise.
58244         * modules/fileblocks (Makefile.am): Likewise.
58245         * modules/filemode (Makefile.am): Likewise.
58246         * modules/filenamecat (Makefile.am): Likewise.
58247         * modules/fnmatch (Makefile.am): Likewise.
58248         * modules/fopen-safer (Makefile.am): Likewise.
58249         * modules/fpending (Makefile.am): Likewise.
58250         * modules/fprintftime (Makefile.am): Likewise.
58251         * modules/free (Makefile.am): Likewise.
58252         * modules/fsusage (Makefile.am): Likewise.
58253         * modules/ftruncate (Makefile.am): Likewise.
58254         * modules/fts (Makefile.am): Likewise.
58255         * modules/gc-arcfour (Makefile.am): Likewise.
58256         * modules/gc-des (Makefile.am): Likewise.
58257         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58258         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58259         * modules/gc-md4 (Makefile.am): Likewise.
58260         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58261         * modules/gc-sha1 (Makefile.am): Likewise.
58262         * modules/gc (Makefile.am): Likewise.
58263         * modules/getaddrinfo (Makefile.am): Likewise.
58264         * modules/getcwd (Makefile.am): Likewise.
58265         * modules/getdelim (Makefile.am): Likewise.
58266         * modules/getdomainname (Makefile.am): Likewise.
58267         * modules/getgroups (Makefile.am): Likewise.
58268         * modules/gethostname (Makefile.am): Likewise.
58269         * modules/gethrxtime (Makefile.am): Likewise.
58270         * modules/getline (Makefile.am): Likewise.
58271         * modules/getloadavg (Makefile.am): Likewise.
58272         * modules/getlogin_r (Makefile.am): Likewise.
58273         * modules/getndelim2 (Makefile.am): Likewise.
58274         * modules/getopt (Makefile.am): Likewise.
58275         * modules/getpagesize (Makefile.am): Likewise.
58276         * modules/getpass-gnu (Makefile.am): Likewise.
58277         * modules/getpass (Makefile.am): Likewise.
58278         * modules/getsubopt (Makefile.am): Likewise.
58279         * modules/gettime (Makefile.am): Likewise.
58280         * modules/gettimeofday (Makefile.am): Likewise.
58281         * modules/getugroups (Makefile.am): Likewise.
58282         * modules/getusershell (Makefile.am): Likewise.
58283         * modules/glob (Makefile.am): Likewise.
58284         * modules/group-member (Makefile.am): Likewise.
58285         * modules/hard-locale (Makefile.am): Likewise.
58286         * modules/hash (Makefile.am): Likewise.
58287         * modules/hmac-md5 (Makefile.am): Likewise.
58288         * modules/hmac-sha1 (Makefile.am): Likewise.
58289         * modules/human (Makefile.am): Likewise.
58290         * modules/idcache (Makefile.am): Likewise.
58291         * modules/imaxabs (Makefile.am): Likewise.
58292         * modules/imaxdiv (Makefile.am): Likewise.
58293         * modules/inet_ntop (Makefile.am): Likewise.
58294         * modules/inet_pton (Makefile.am): Likewise.
58295         * modules/intprops (Makefile.am): Likewise.
58296         * modules/inttostr (Makefile.am): Likewise.
58297         * modules/inttypes (Makefile.am): Likewise.
58298         * modules/isapipe (Makefile.am): Likewise.
58299         * modules/javaversion (Makefile.am): Likewise.
58300         * modules/lchmod (Makefile.am): Likewise.
58301         * modules/lchown (Makefile.am): Likewise.
58302         * modules/localcharset (Makefile.am): Likewise.
58303         * modules/long-options (Makefile.am): Likewise.
58304         * modules/lstat (Makefile.am): Likewise.
58305         * modules/malloc (Makefile.am): Likewise.
58306         * modules/mathl (Makefile.am): Likewise.
58307         * modules/mbchar (Makefile.am): Likewise.
58308         * modules/md2 (Makefile.am): Likewise.
58309         * modules/md4 (Makefile.am): Likewise.
58310         * modules/md5 (Makefile.am): Likewise.
58311         * modules/memcasecmp (Makefile.am): Likewise.
58312         * modules/memchr (Makefile.am): Likewise.
58313         * modules/memcmp (Makefile.am): Likewise.
58314         * modules/memcoll (Makefile.am): Likewise.
58315         * modules/memcpy (Makefile.am): Likewise.
58316         * modules/memmem (Makefile.am): Likewise.
58317         * modules/memmove (Makefile.am): Likewise.
58318         * modules/mempcpy (Makefile.am): Likewise.
58319         * modules/memrchr (Makefile.am): Likewise.
58320         * modules/memset (Makefile.am): Likewise.
58321         * modules/memxor (Makefile.am): Likewise.
58322         * modules/mkancesdirs (Makefile.am): Likewise.
58323         * modules/mkdir-p (Makefile.am): Likewise.
58324         * modules/mkdir (Makefile.am): Likewise.
58325         * modules/mkdtemp (Makefile.am): Likewise.
58326         * modules/mkstemp (Makefile.am): Likewise.
58327         * modules/mktime (Makefile.am): Likewise.
58328         * modules/modechange (Makefile.am): Likewise.
58329         * modules/mountlist (Makefile.am): Likewise.
58330         * modules/nanosleep (Makefile.am): Likewise.
58331         * modules/obstack (Makefile.am): Likewise.
58332         * modules/openat (Makefile.am): Likewise.
58333         * modules/pagealign_alloc (Makefile.am): Likewise.
58334         * modules/pathmax (Makefile.am): Likewise.
58335         * modules/physmem (Makefile.am): Likewise.
58336         * modules/poll (Makefile.am): Likewise.
58337         * modules/posixtm (Makefile.am): Likewise.
58338         * modules/posixver (Makefile.am): Likewise.
58339         * modules/putenv (Makefile.am): Likewise.
58340         * modules/quote (Makefile.am): Likewise.
58341         * modules/quotearg (Makefile.am): Likewise.
58342         * modules/raise (Makefile.am): Likewise.
58343         * modules/read-file (Makefile.am): Likewise.
58344         * modules/readline (Makefile.am): Likewise.
58345         * modules/readlink (Makefile.am): Likewise.
58346         * modules/readtokens (Makefile.am): Likewise.
58347         * modules/readutmp (Makefile.am): Likewise.
58348         * modules/realloc (Makefile.am): Likewise.
58349         * modules/regex (Makefile.am): Likewise.
58350         * modules/rename-dest-slash (Makefile.am): Likewise.
58351         * modules/rename (Makefile.am): Likewise.
58352         * modules/rijndael (Makefile.am): Likewise.
58353         * modules/rmdir (Makefile.am): Likewise.
58354         * modules/rpmatch (Makefile.am): Likewise.
58355         * modules/safe-read (Makefile.am): Likewise.
58356         * modules/safe-write (Makefile.am): Likewise.
58357         * modules/same-inode (Makefile.am): Likewise.
58358         * modules/same (Makefile.am): Likewise.
58359         * modules/save-cwd (Makefile.am): Likewise.
58360         * modules/savedir (Makefile.am): Likewise.
58361         * modules/setenv (Makefile.am): Likewise.
58362         * modules/settime (Makefile.am): Likewise.
58363         * modules/sha1 (Makefile.am): Likewise.
58364         * modules/sig2str (Makefile.am): Likewise.
58365         * modules/snprintf (Makefile.am): Likewise.
58366         * modules/stat-macros (Makefile.am): Likewise.
58367         * modules/stat-time (Makefile.am): Likewise.
58368         * modules/stdbool (Makefile.am): Likewise.
58369         * modules/stdint (Makefile.am): Likewise.
58370         * modules/stdlib-safer (Makefile.am): Likewise.
58371         * modules/stpcpy (Makefile.am): Likewise.
58372         * modules/stpncpy (Makefile.am): Likewise.
58373         * modules/strcase (Makefile.am): Likewise.
58374         * modules/strcasestr (Makefile.am): Likewise.
58375         * modules/strchrnul (Makefile.am): Likewise.
58376         * modules/strcspn (Makefile.am): Likewise.
58377         * modules/strdup (Makefile.am): Likewise.
58378         * modules/strerror (Makefile.am): Likewise.
58379         * modules/strftime (Makefile.am): Likewise.
58380         * modules/strndup (Makefile.am): Likewise.
58381         * modules/strnlen (Makefile.am): Likewise.
58382         * modules/strpbrk (Makefile.am): Likewise.
58383         * modules/strsep (Makefile.am): Likewise.
58384         * modules/strstr (Makefile.am): Likewise.
58385         * modules/strtod (Makefile.am): Likewise.
58386         * modules/strtoimax (Makefile.am): Likewise.
58387         * modules/strtok_r (Makefile.am): Likewise.
58388         * modules/strtol (Makefile.am): Likewise.
58389         * modules/strtoll (Makefile.am): Likewise.
58390         * modules/strtoul (Makefile.am): Likewise.
58391         * modules/strtoull (Makefile.am): Likewise.
58392         * modules/strtoumax (Makefile.am): Likewise.
58393         * modules/strverscmp (Makefile.am): Likewise.
58394         * modules/sys_socket (Makefile.am): Likewise.
58395         * modules/sys_stat (Makefile.am): Likewise.
58396         * modules/sysexits (Makefile.am): Likewise.
58397         * modules/time_r (Makefile.am): Likewise.
58398         * modules/timegm (Makefile.am): Likewise.
58399         * modules/timespec (Makefile.am): Likewise.
58400         * modules/tmpfile-safer (Makefile.am): Likewise.
58401         * modules/trim (Makefile.am): Likewise.
58402         * modules/unistd-safer (Makefile.am): Likewise.
58403         * modules/unlinkdir (Makefile.am): Likewise.
58404         * modules/unlocked-io (Makefile.am): Likewise.
58405         * modules/userspec (Makefile.am): Likewise.
58406         * modules/utime (Makefile.am): Likewise.
58407         * modules/utimecmp (Makefile.am): Likewise.
58408         * modules/utimens (Makefile.am): Likewise.
58409         * modules/vasnprintf (Makefile.am): Likewise.
58410         * modules/vasprintf (Makefile.am): Likewise.
58411         * modules/vsnprintf (Makefile.am): Likewise.
58412         * modules/xalloc (Makefile.am): Likewise.
58413         * modules/xgetcwd (Makefile.am): Likewise.
58414         * modules/xnanosleep (Makefile.am): Likewise.
58415         * modules/xreadlink (Makefile.am): Likewise.
58416         * modules/xstrtod (Makefile.am): Likewise.
58417         * modules/xstrtol (Makefile.am): Likewise.
58418         * modules/xstrtold (Makefile.am): Likewise.
58419         * modules/yesno (Makefile.am): Likewise.
58420         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58421
58422 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58423
58424         * modules/error (Makefile.am): Distribute files through
58425         EXTRA_DIST, not lib_SOURCES.
58426
58427 2006-10-12  Eric Blake  <ebb9@byu.net>
58428
58429         * modules/error (Makefile.am): Distribute files in /lib.
58430         * modules/obstack (Makefile.am): Likewise.
58431
58432 2006-10-12  Bruno Haible  <bruno@clisp.org>
58433
58434         * modules/acl (Makefile.am): Distribute all files in lib/ through
58435         EXTRA_DIST.
58436         * modules/arcfour (Makefile.am): Likewise.
58437         * modules/arctwo (Makefile.am): Likewise.
58438         * modules/argmatch (Makefile.am): Likewise.
58439         * modules/argz (Makefile.am): Likewise.
58440         * modules/atexit (Makefile.am): Likewise.
58441         * modules/backupfile (Makefile.am): Likewise.
58442         * modules/c-strtod (Makefile.am): Likewise.
58443         * modules/c-strtold (Makefile.am): Likewise.
58444         * modules/calloc (Makefile.am): Likewise.
58445         * modules/canon-host (Makefile.am): Likewise.
58446         * modules/canonicalize (Makefile.am): Likewise.
58447         * modules/chdir-long (Makefile.am): Likewise.
58448         * modules/chdir-safer (Makefile.am): Likewise.
58449         * modules/check-version (Makefile.am): Likewise.
58450         * modules/chown (Makefile.am): Likewise.
58451         * modules/cloexec (Makefile.am): Likewise.
58452         * modules/close-stream (Makefile.am): Likewise.
58453         * modules/closeout (Makefile.am): Likewise.
58454         * modules/crc (Makefile.am): Likewise.
58455         * modules/cycle-check (Makefile.am): Likewise.
58456         * modules/des (Makefile.am): Likewise.
58457         * modules/dirfd (Makefile.am): Likewise.
58458         * modules/dirname (Makefile.am): Likewise.
58459         * modules/dup2 (Makefile.am): Likewise.
58460         * modules/euidaccess (Makefile.am): Likewise.
58461         * modules/exclude (Makefile.am): Likewise.
58462         * modules/exitfail (Makefile.am): Likewise.
58463         * modules/fcntl-safer (Makefile.am): Likewise.
58464         * modules/file-type (Makefile.am): Likewise.
58465         * modules/fileblocks (Makefile.am): Likewise.
58466         * modules/filemode (Makefile.am): Likewise.
58467         * modules/filenamecat (Makefile.am): Likewise.
58468         * modules/fnmatch (Makefile.am): Likewise.
58469         * modules/fopen-safer (Makefile.am): Likewise.
58470         * modules/fpending (Makefile.am): Likewise.
58471         * modules/fprintftime (Makefile.am): Likewise.
58472         * modules/free (Makefile.am): Likewise.
58473         * modules/fsusage (Makefile.am): Likewise.
58474         * modules/ftruncate (Makefile.am): Likewise.
58475         * modules/fts (Makefile.am): Likewise.
58476         * modules/gc (Makefile.am): Likewise.
58477         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58478         * modules/getaddrinfo (Makefile.am): Likewise.
58479         * modules/getcwd (Makefile.am): Likewise.
58480         * modules/getdelim (Makefile.am): Likewise.
58481         * modules/getdomainname (Makefile.am): Likewise.
58482         * modules/getgroups (Makefile.am): Likewise.
58483         * modules/gethostname (Makefile.am): Likewise.
58484         * modules/gethrxtime (Makefile.am): Likewise.
58485         * modules/getline (Makefile.am): Likewise.
58486         * modules/getloadavg (Makefile.am): Likewise.
58487         * modules/getlogin_r (Makefile.am): Likewise.
58488         * modules/getopt (Makefile.am): Likewise.
58489         * modules/getpass (Makefile.am): Likewise.
58490         * modules/getpass-gnu (Makefile.am): Likewise.
58491         * modules/getsubopt (Makefile.am): Likewise.
58492         * modules/gettime (Makefile.am): Likewise.
58493         * modules/gettimeofday (Makefile.am): Likewise.
58494         * modules/getugroups (Makefile.am): Likewise.
58495         * modules/getusershell (Makefile.am): Likewise.
58496         * modules/glob (Makefile.am): Likewise.
58497         * modules/group-member (Makefile.am): Likewise.
58498         * modules/hard-locale (Makefile.am): Likewise.
58499         * modules/hash (Makefile.am): Likewise.
58500         * modules/hmac-md5 (Makefile.am): Likewise.
58501         * modules/hmac-sha1 (Makefile.am): Likewise.
58502         * modules/human (Makefile.am): Likewise.
58503         * modules/idcache (Makefile.am): Likewise.
58504         * modules/imaxabs (Makefile.am): Likewise.
58505         * modules/imaxdiv (Makefile.am): Likewise.
58506         * modules/inet_ntop (Makefile.am): Likewise.
58507         * modules/inet_pton (Makefile.am): Likewise.
58508         * modules/inttostr (Makefile.am): Likewise.
58509         * modules/isapipe (Makefile.am): Likewise.
58510         * modules/lchown (Makefile.am): Likewise.
58511         * modules/long-options (Makefile.am): Likewise.
58512         * modules/lstat (Makefile.am): Likewise.
58513         * modules/malloc (Makefile.am): Likewise.
58514         * modules/mathl (Makefile.am): Likewise.
58515         * modules/mbchar (Makefile.am): Likewise.
58516         * modules/md2 (Makefile.am): Likewise.
58517         * modules/md4 (Makefile.am): Likewise.
58518         * modules/md5 (Makefile.am): Likewise.
58519         * modules/memcasecmp (Makefile.am): Likewise.
58520         * modules/memchr (Makefile.am): Likewise.
58521         * modules/memcmp (Makefile.am): Likewise.
58522         * modules/memcoll (Makefile.am): Likewise.
58523         * modules/memcpy (Makefile.am): Likewise.
58524         * modules/memmem (Makefile.am): Likewise.
58525         * modules/memmove (Makefile.am): Likewise.
58526         * modules/mempcpy (Makefile.am): Likewise.
58527         * modules/memrchr (Makefile.am): Likewise.
58528         * modules/memset (Makefile.am): Likewise.
58529         * modules/memxor (Makefile.am): Likewise.
58530         * modules/mkancesdirs (Makefile.am): Likewise.
58531         * modules/mkdir (Makefile.am): Likewise.
58532         * modules/mkdir-p (Makefile.am): Likewise.
58533         * modules/mkdtemp (Makefile.am): Likewise.
58534         * modules/mkstemp (Makefile.am): Likewise.
58535         * modules/mktime (Makefile.am): Likewise.
58536         * modules/modechange (Makefile.am): Likewise.
58537         * modules/mountlist (Makefile.am): Likewise.
58538         * modules/nanosleep (Makefile.am): Likewise.
58539         * modules/openat (Makefile.am): Likewise.
58540         * modules/pagealign_alloc (Makefile.am): Likewise.
58541         * modules/physmem (Makefile.am): Likewise.
58542         * modules/poll (Makefile.am): Likewise.
58543         * modules/posixtm (Makefile.am): Likewise.
58544         * modules/posixver (Makefile.am): Likewise.
58545         * modules/putenv (Makefile.am): Likewise.
58546         * modules/quote (Makefile.am): Likewise.
58547         * modules/quotearg (Makefile.am): Likewise.
58548         * modules/raise (Makefile.am): Likewise.
58549         * modules/read-file (Makefile.am): Likewise.
58550         * modules/readline (Makefile.am): Likewise.
58551         * modules/readlink (Makefile.am): Likewise.
58552         * modules/readtokens (Makefile.am): Likewise.
58553         * modules/readutmp (Makefile.am): Likewise.
58554         * modules/realloc (Makefile.am): Likewise.
58555         * modules/regex (Makefile.am): Likewise.
58556         * modules/rename (Makefile.am): Likewise.
58557         * modules/rename-dest-slash (Makefile.am): Likewise.
58558         * modules/rijndael (Makefile.am): Likewise.
58559         * modules/rmdir (Makefile.am): Likewise.
58560         * modules/rpmatch (Makefile.am): Likewise.
58561         * modules/safe-read (Makefile.am): Likewise.
58562         * modules/safe-write (Makefile.am): Likewise.
58563         * modules/same (Makefile.am): Likewise.
58564         * modules/save-cwd (Makefile.am): Likewise.
58565         * modules/savedir (Makefile.am): Likewise.
58566         * modules/setenv (Makefile.am): Likewise.
58567         * modules/settime (Makefile.am): Likewise.
58568         * modules/sha1 (Makefile.am): Likewise.
58569         * modules/sig2str (Makefile.am): Likewise.
58570         * modules/snprintf (Makefile.am): Likewise.
58571         * modules/stdlib-safer (Makefile.am): Likewise.
58572         * modules/stpcpy (Makefile.am): Likewise.
58573         * modules/stpncpy (Makefile.am): Likewise.
58574         * modules/strcase (Makefile.am): Likewise.
58575         * modules/strcasestr (Makefile.am): Likewise.
58576         * modules/strchrnul (Makefile.am): Likewise.
58577         * modules/strcspn (Makefile.am): Likewise.
58578         * modules/strdup (Makefile.am): Likewise.
58579         * modules/strerror (Makefile.am): Likewise.
58580         * modules/strftime (Makefile.am): Likewise.
58581         * modules/strndup (Makefile.am): Likewise.
58582         * modules/strnlen (Makefile.am): Likewise.
58583         * modules/strpbrk (Makefile.am): Likewise.
58584         * modules/strsep (Makefile.am): Likewise.
58585         * modules/strstr (Makefile.am): Likewise.
58586         * modules/strtod (Makefile.am): Likewise.
58587         * modules/strtoimax (Makefile.am): Likewise.
58588         * modules/strtok_r (Makefile.am): Likewise.
58589         * modules/strtol (Makefile.am): Likewise.
58590         * modules/strtoll (Makefile.am): Likewise.
58591         * modules/strtoul (Makefile.am): Likewise.
58592         * modules/strtoull (Makefile.am): Likewise.
58593         * modules/strtoumax (Makefile.am): Likewise.
58594         * modules/strverscmp (Makefile.am): Likewise.
58595         * modules/time_r (Makefile.am): Likewise.
58596         * modules/timegm (Makefile.am): Likewise.
58597         * modules/tmpfile-safer (Makefile.am): Likewise.
58598         * modules/unistd-safer (Makefile.am): Likewise.
58599         * modules/unlinkdir (Makefile.am): Likewise.
58600         * modules/userspec (Makefile.am): Likewise.
58601         * modules/utime (Makefile.am): Likewise.
58602         * modules/utimecmp (Makefile.am): Likewise.
58603         * modules/utimens (Makefile.am): Likewise.
58604         * modules/vasnprintf (Makefile.am): Likewise.
58605         * modules/vasprintf (Makefile.am): Likewise.
58606         * modules/vsnprintf (Makefile.am): Likewise.
58607         * modules/xalloc (Makefile.am): Likewise.
58608         * modules/xgetcwd (Makefile.am): Likewise.
58609         * modules/xnanosleep (Makefile.am): Likewise.
58610         * modules/xreadlink (Makefile.am): Likewise.
58611         * modules/xstrtod (Makefile.am): Likewise.
58612         * modules/xstrtol (Makefile.am): Likewise.
58613         * modules/xstrtold (Makefile.am): Likewise.
58614         * modules/yesno (Makefile.am): Likewise.
58615
58616 2006-10-12  Jim Meyering  <jim@meyering.net>
58617
58618         * m4/getloadavg.m4: Revert the change below.
58619
58620         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58621         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58622         fail with a symlink, which is what coreutils' ./bootstrap now
58623         creates by default.
58624
58625 2006-10-12  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58628         mingw.
58629         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58630         MSVC and mingw explicitly.
58631
58632 2006-10-11  Simon Josefsson  <jas@extundo.com>
58633             Bruno Haible  <bruno@clisp.org>
58634
58635         Add support for multiple gnulib-tool invocations in the scope of a
58636         single configure.ac file.
58637         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58638         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58639         with the same contents as the _LIBADD variable.
58640         (func_emit_initmacro_start, func_emit_initmacro_end,
58641         func_emit_initmacro_done): New functions.
58642         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58643         gl_LIBOBJS and gl_LTLIBOBJS.
58644
58645 2006-10-11  Bruno Haible  <bruno@clisp.org>
58646
58647         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58648         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58649         autoreconf. Instead, invoke autopoint explicitly but move back the
58650         *.m4 files from gnulib.
58651
58652 2006-10-11  Bruno Haible  <bruno@clisp.org>
58653
58654         * gnulib-tool (func_usage): Make module names after --create-testdir
58655         optional.
58656         (func_create_testdir): If no module was specified, use nearly all
58657         modules.
58658
58659 2006-10-12  Jim Meyering  <jim@meyering.net>
58660
58661         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58662         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58663         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58664         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58665         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58666         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58667         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58668         (fts_set_stat_required): New function.
58669         (fts_open): Defer the calls to fts_stat, if possible or requested.
58670         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58671         into fts_stat itself.
58672         (fts_read): Perform any required (deferred) fts_stat call.
58673         (fts_build): Likewise, for the directory we're about to open and read.
58674         In the readdir loop, carefully decide whether each entry will require
58675         an eventual call to fts_stat, using dirent.d_type info if available.
58676         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58677         a command line argument into this function.  Update all callers.
58678         Map a return value of FTS_DOT to FTS_D for a command line argument.
58679         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58680         Thanks to Miklos Szeredi for his tenacity and for the initial
58681         bug report about "find" failing on a FUSE-based file system.
58682
58683         * lib/fts.c (fts_open): Use consistent indentation.
58684
58685 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58686
58687         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58688         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58689         reported by Jim Meyering.  All uses of cache variables renamed
58690         to match Autoconf's.
58691         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58692         the other one.
58693
58694         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58695         Fix misspelling in diagnostic.
58696
58697 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58698
58699         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58700         defined.  Problem reported by Matthew Woehlke.
58701
58702         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58703         Add support for Tandem NonStop R series.
58704         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58705         Use new macro.
58706
58707         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58708         (has_trailing_slash): Omit size arg; all callers changed.
58709         Omit 'inline', since it doesn't help performance and we'd
58710         need to configure it.
58711         Don't count //, ///, etc. as having a trailing slash.
58712         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58713         (rpl_rename_dest_slash): On failure, use rename's errno rather
58714         than (in some cases) an incorrect or junk errno.
58715         Simplify code by removing need to compute length; this does
58716         cause it to make two passes instead of one over the file name,
58717         but it's worth it.
58718
58719         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58720         change, since Autoconf's version may no longer be appropriate now
58721         that we are using CVS Autoconf's version.  Add support for Tandem.
58722
58723 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58724             Bruno Haible  <bruno@clisp.org>
58725
58726         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58727         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58728         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58729         gl_AC_TYPE_LONG_LONG.
58730
58731         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58732         instead of HAVE_LONG_LONG.
58733         * lib/printf-args.c (printf_fetchargs): Likewise.
58734         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58735         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58736         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58737         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58738         gl_AC_TYPE_LONG_LONG.
58739
58740 2006-10-11  Bruno Haible  <bruno@clisp.org>
58741
58742         * m4/longlong.m4: Add comments.
58743         * m4/ulonglong.m4: Likewise.
58744
58745 2006-10-10  Bruno Haible  <bruno@clisp.org>
58746
58747         Make it possible to #define stpcpy, strdup to aliases.
58748         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58749         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58750
58751 2006-10-10  Bruno Haible  <bruno@clisp.org>
58752
58753         Make it possible to #define gcd to an alias.
58754         * lib/gcd.c: Include config.h.
58755
58756 2006-10-10  Bruno Haible  <bruno@clisp.org>
58757
58758         Make it possible to #define c_isascii to an alias.
58759         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58760         defined. Undefine the macros before defining them, to avoid gcc
58761         warnings.
58762         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58763         define NO_C_CTYPE_MACROS early.
58764
58765 2006-10-10  Bruno Haible  <bruno@clisp.org>
58766
58767         Make it possible to #define set_program_name to an alias.
58768         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58769         ENABLE_RELOCATABLE early.
58770
58771 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58772
58773         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58774         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58775         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58776         More generally, don't assume that 64-bit signed int is available
58777         if unsigned int is, and vice versa.
58778         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58779         unsigned symbols, not on their signed counterparts.
58780         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58781         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58782         (UINT64_C, UINTMAX_C):
58783         Likewise.
58784         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58785         unsigned counterparts.
58786         (Have_long_long, Unsigned): New macros.
58787         (Int): Renamed from INT.
58788         (strtoimax): Use the new macros.
58789         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58790         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58791         * modules/inttypes (inttypes.h): Substitute
58792         HAVE_UNSIGNED_LONG_LONG_INT.
58793         * modules/stdint (stdint.h): Likewise.
58794         (Files): Add m4/ulonglong.m4.
58795
58796 2006-10-10  Bruno Haible  <bruno@clisp.org>
58797
58798         Fix a gcc -Wshadow warning.
58799         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58800         to 'bucket'.
58801         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58802         gl_linked_indexof_from_to): Likewise.
58803         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58804         Likewise.
58805         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58806         Likewise.
58807         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58808         Reported by Eric Blake.
58809
58810 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58811
58812         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58813         for NetBSD.  Problem reported by Bruno Haible.
58814
58815 2006-10-09  Jim Meyering  <jim@meyering.net>
58816
58817         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58818         Patch from Bruno Haible.
58819
58820 2006-10-09  Jim Meyering  <jim@meyering.net>
58821
58822         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58823         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58824         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58825
58826 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58827
58828         Don't include <config.h> twice; this doesn't work in some cases,
58829         e.g., when config.h has "#define intmax_t long long int" and
58830         we include <config.h>, <inttypes.h>, <config.h> in that order.
58831         Problem reported by Matthew Woehlke in:
58832         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58833         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58834         * lib/fts-cycle.c: Don't include config.h.
58835         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58836         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58837         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58838         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58839         inttypes.h.
58840         * lib/xstrtoumax.c: Likewise.
58841         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58842         __strtol and the like, so that this module is more like its siblings.
58843         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58844         Remove; no longer needed now that we assume gnulib inttypes.h.
58845
58846 2006-10-08  Bruno Haible  <bruno@clisp.org>
58847
58848         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58849         option.
58850
58851 2006-10-07  Jim Meyering  <jim@meyering.net>
58852
58853         * modules/inttypes (inttypes.h): Revert what seems to have been
58854         an inadvertent part of today's change: use "|", not "/" in the
58855         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58856
58857 2006-10-07  Bruno Haible  <bruno@clisp.org>
58858
58859         * modules/sublist: New file.
58860
58861 2006-10-07  Bruno Haible  <bruno@clisp.org>
58862
58863         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58864         * modules/argz (argz.h): Likewise.
58865         * modules/arpa_inet (arpa/inet.h): Likewise.
58866         * modules/byteswap (byteswap.h): Likewise.
58867         * modules/configmake (configmake.h): Likewise.
58868         * modules/fcntl (fcntl.h): Likewise.
58869         * modules/fnmatch (fnmatch.h): Likewise.
58870         * modules/getopt (getopt.h): Likewise.
58871         * modules/glob (glob.h): Likewise.
58872         * modules/inttypes (inttypes.h): Likewise.
58873         * modules/netinet_in (netinet/in.h): Likewise.
58874         * modules/poll (poll.h): Likewise.
58875         * modules/stdbool (stdbool.h): Likewise.
58876         * modules/stdint (stdint.h): Likewise.
58877         * modules/sys_select (sys/select.h): Likewise.
58878         * modules/sys_socket (sys/socket.h): Likewise.
58879         * modules/sys_stat (sys/stat.h): Likewise.
58880         * modules/sysexits (sysexits.h): Likewise.
58881         * modules/unistd (unistd.h): Likewise.
58882         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58883         Add a "DO NOT EDIT" comment to the generated file.
58884         (func_import): Likewise for gnulib-comp.m4.
58885
58886 2006-10-07  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/gl_sublist.h: New file.
58889         * lib/gl_sublist.c: New file.
58890
58891 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58892
58893         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58894         name (relative to the original working directory) and the file
58895         name component (relative to the temporary working directory).  All
58896         callers changed.
58897         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58898         * lib/mkdir-p.c (make_dir_parents): Likewise.
58899         * lib/mkdir-p.h (make_dir_parents): Likewise.
58900
58901 2006-10-06  Eric Blake  <ebb9@byu.net>
58902
58903         Define several macros for use by the clean-temp module.
58904         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58905         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58906         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58907
58908         * lib/clean-temp.h (close_stream_temp): New declaration.
58909         * lib/clean-temp.c (includes): Pull in headers according to what
58910         other modules are in use.
58911         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58912
58913 2006-10-06  Bruno Haible  <bruno@clisp.org>
58914
58915         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58916         instead of fopen, fwriteerror.
58917
58918 2006-10-06  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58921         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58922         int.
58923         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58924         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58925         Return an error indicator.
58926         Suggested by Eric Blake.
58927
58928 2006-10-06  Bruno Haible  <bruno@clisp.org>
58929
58930         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58931         Reported by Eric Blake.
58932
58933 2006-10-06  Bruno Haible  <bruno@clisp.org>
58934
58935         * modules/closeout (Description): Mention stderr too.
58936
58937 2006-10-06  Bruno Haible  <bruno@clisp.org>
58938         and Paul Eggert  <eggert@cs.ucla.edu>
58939
58940         * lib/closeout.c (close_stdout): Also close stderr.
58941         * lib/closeout.h: Update comment.
58942
58943 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58944
58945         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58946         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58947         * lib/dirchownmod.c: Include lchown.h.
58948         * lib/lchown.c: Don't include files that lchown.h now includes.
58949         Don't declare chown, since lchown.h now does that.
58950         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58951         (lchown): Define to rpl_chown if lchown is declared but
58952         does not exist.  Declare using a prototype if lchown is not
58953         declared.  Add a copyright notice.
58954         * lib/mkstemp.h: Include <unistd.h>.
58955         * lib/openat.c: Include lchown.h.
58956
58957         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58958         we now test for that separately.
58959         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58960         rather than O_NOFOLLOW, when testing whether it's possible to
58961         avoid a race condition reliably.
58962         * lib/savewd.c (savewd_chdir): Likewise.
58963
58964         Remove macros that are no longer needed now that stdint.h is
58965         reliable.
58966         * lib/fsusage.c (UINTMAX_MAX): Remove.
58967         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58968         * lib/utimecmp.c (SIZE_MAX): Remove.
58969
58970         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58971
58972         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58973         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58974         O_NOATIME works.
58975
58976 2006-10-05  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/gl_list.h (gl_sortedlist_search_from_to,
58979         gl_sortedlist_indexof_from_to): New declarations.
58980         (gl_list_implementation): New fields sortedlist_search_from_to,
58981         sortedlist_indexof_from_to.
58982         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58983         inline functions.
58984         * lib/gl_list.c (gl_sortedlist_search_from_to,
58985         gl_sortedlist_indexof_from_to): New functions.
58986         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58987         function.
58988         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58989         (gl_array_sortedlist_search_from_to): New function.
58990         (gl_array_list_implementation): Update.
58991         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58992         function.
58993         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58994         (gl_carray_sortedlist_search_from_to): New function.
58995         (gl_carray_list_implementation): Update.
58996         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58997         gl_linked_sortedlist_indexof_from_to): New functions.
58998         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58999         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59000         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59001         gl_tree_sortedlist_indexof_from_to): New functions.
59002         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59003         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59004         Update.
59005         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59006         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59007         Update.
59008
59009 2006-10-05  Bruno Haible  <bruno@clisp.org>
59010
59011         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59012         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59013         (struct gl_list_implementation): Add fields search_from_to,
59014         indexof_from_to. Remove fields search, indexof.
59015         (gl_list_search): Use the search_from_to method.
59016         (gl_list_search_from, gl_list_search_from_to): New functions.
59017         (gl_list_indexof): Use the indexof_from_to method.
59018         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59019         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59020         (gl_list_search_from, gl_list_search_from_to): New functions.
59021         (gl_list_indexof): Use the indexof_from_to method.
59022         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59023         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59024         gl_array_indexof. Add start_index, end_index arguments.
59025         (gl_array_search_from_to): Renamed from gl_array_search. Add
59026         start_index, end_index arguments.
59027         (gl_array_remove, gl_array_list_implementation): Update.
59028         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59029         gl_carray_indexof. Add start_index, end_index arguments.
59030         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59031         start_index, end_index arguments.
59032         (gl_carray_remove, gl_carray_list_implementation): Update.
59033         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59034         gl_linked_search. Add start_index, end_index arguments.
59035         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59036         start_index, end_index arguments.
59037         (gl_linked_remove): Update.
59038         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59039         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59040         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59041         field to 'size_t'.
59042         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59043         gl_tree_search. Add start_index, end_index arguments.
59044         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59045         start_index, end_index arguments.
59046         (gl_tree_remove): Update.
59047         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59048         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59049         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59050         function.
59051         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59052         gl_tree_search. Add start_index, end_index arguments.
59053         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59054         start_index, end_index arguments.
59055         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59056         Update.
59057         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59058
59059 2006-10-05  Bruno Haible  <bruno@clisp.org>
59060
59061         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59062
59063         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59064         fwriteerror_temp): New declarations.
59065         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59066         (descriptors): New variable.
59067         (cleanup): First, close the descriptors.
59068         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59069         fclose_temp, fwriteerror_temp): New functions.
59070
59071 2006-10-04  Jim Meyering  <jim@meyering.net>
59072
59073         * lib/fts.c (fts_open): Tiny comment change.
59074
59075 2006-10-04  Bruno Haible  <bruno@clisp.org>
59076
59077         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59078         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59079         gl_LOCK_BODY.
59080         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59081         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59082         gl_LOCK_EARLY_BODY.
59083         (gl_LOCK): Require gl_LOCK_BODY.
59084
59085 2006-10-04  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59088         (gl_oset_search_atleast): New declaration.
59089         (struct gl_oset_implementation): Add field 'search_atleast'.
59090         (gl_oset_search_atleast): New inline function.
59091         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59092         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59093         (gl_array_oset_implementation): Update.
59094         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59095         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59096         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59097
59098 2006-10-04  Bruno Haible  <bruno@clisp.org>
59099
59100         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59101
59102 2006-10-03  Bruno Haible  <bruno@clisp.org>
59103
59104         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59105         from gl_avltreehash_list_implementation.
59106
59107 2006-10-03  Bruno Haible  <bruno@clisp.org>
59108
59109         * lib/gl_oset.c (gl_oset_add): Fix return type.
59110
59111 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59112
59113         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59114
59115 2006-10-02  Eric Blake  <ebb9@byu.net>
59116
59117         * modules/strnlen (Depends-on): Add extensions.
59118
59119 2006-10-02  Eric Blake  <ebb9@byu.net>
59120
59121         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59122         definition in 2.60+.
59123
59124 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59125
59126         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59127         checks.
59128
59129 2006-10-02  Bruno Haible  <bruno@clisp.org>
59130
59131         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59132         to the AUTOMAKE_OPTIONS.
59133         Reported by Jim Meyering.
59134
59135 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59136
59137         Work around bug in Solaris 10 /proc file system:
59138         /proc/self/fd/NNN/.. isn't the parent directory of
59139         the directory whose file descriptor is NNN.  This needs to
59140         be worked around at run time, not compile time, since a
59141         program might be built on Solaris 8, where things work, and
59142         run on Solaris 10.
59143         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59144         to use the following interface instead:
59145         (OPENAT_BUFFER_SIZE): New macro.
59146         (openat_proc_name): New function.
59147         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59148         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59149         Likewise.
59150         * lib/openat-proc.c: New file.
59151         * modules/openat (Files): Add lib/openat-proc.c.
59152         (Depends-on): Add same-inode, stdbool.
59153         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59154
59155 2006-09-29  Bruno Haible  <bruno@clisp.org>
59156
59157         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59158         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59159         argument. Set stdout_closed before testing for ferror, not after.
59160         (fwriteerror, fwriteerror_no_ebadf): New functions.
59161
59162 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59163
59164         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59165
59166 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59167
59168         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59169         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59170
59171 2006-09-28  Jim Meyering  <jim@meyering.net>
59172
59173         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59174         Include <unistd.h>.
59175
59176 2006-09-28  Bruno Haible  <bruno@clisp.org>
59177
59178         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59179         * modules/linkedhash-list (Depends-on): Likewise.
59180         * modules/rbtreehash-list (Depends-on): Likewise.
59181
59182 2006-09-28  Bruno Haible  <bruno@clisp.org>
59183
59184         * lib/strndup.h: Simplify the redefinition of strndup.
59185         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59187
59188 2006-09-28  Bruno Haible  <bruno@clisp.org>
59189
59190         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59191         * lib/gl_linkedhash_list.c: Likewise.
59192         * lib/gl_rbtreehash_list.c: Likewise.
59193
59194 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59195
59196         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59197         getaddrinfo.
59198
59199         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59200         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59201         it causes <stdio_ext.h> to cause a compile-time error.
59202         Problem reported by Nelson H. F. Beebe.
59203         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59204         of HAVE_DECL___PENDING.
59205
59206         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59207         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59208         declaration.
59209
59210 2006-09-27  Jim Meyering  <jim@meyering.net>
59211
59212         This file could end up with a definition for a function
59213         named __strndup, rather than rpl_strndup on a system with
59214         incomplete weak_alias support.
59215         * lib/strndup.c (strndup): Rename from __strndup.
59216         Remove #defines that used to map __strndup to strndup.
59217         Don't use K&R prototypes.
59218         Remove LIBC-related code, since this file is not sync'd with glibc.
59219         * lib/strndup.h: Revamp, accordingly.
59220         * m4/strndup.m4: Modernize.
59221
59222 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59223
59224         * modules/savewd (Depends-on): Add 'raise'.
59225         * lib/savewd.c: Include <signal.h>, for 'raise'.
59226
59227 2006-09-26  Jim Meyering  <jim@meyering.net>
59228
59229         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59230         when we detect Darwin 8.7.0's acl_get_file bug.
59231         Rearrange to perform the new (below) run-test while $LIBS
59232         contains any acl-related library.  Set USE_ACL at the end.
59233         (gl_ACL_GET_FILE): New function.
59234
59235 2006-09-26  Eric Blake  <ebb9@byu.net>
59236
59237         * lib/verror.c: Include <config.h> unconditionally.
59238
59239 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59240
59241         * modules/clock-time (Maintainer): Add self.
59242         * modules/getlogin_r (Depends-on): Add extensions.
59243
59244 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59245
59246         * modules/clock-time: New module.
59247         * modules/nanosleep (Depends-on): Add clock-time.
59248         * modules/gethrxtime (Depends-on): Likewise.
59249         * modules/gettime (Depends-on): Likewise.
59250         * modules/settime (Depends-on): Likewise.
59251
59252         * modules/fts-lgpl: Depend on openat.
59253         * modules/mkancesdirs: Depend on savewd.
59254         * modules/mkdir-p: Likewise.
59255
59256 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59257
59258         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59259
59260         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59261         `gl_have_arbitrary_file_name_length_limit' to
59262         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59263         actually works between configure runs.
59264
59265 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59266             Bruno Haible  <bruno@clisp.org>
59267
59268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59269
59270 2006-09-25  Jim Meyering  <jim@meyering.net>
59271
59272         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59273         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59274
59275 2006-09-25  Eric Blake  <ebb9@byu.net>
59276
59277         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59278         exec's in 2006-09-18 patch when shuffling fds.
59279
59280 2006-09-25  Bruno Haible  <bruno@clisp.org>
59281
59282         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59283         Reported by Jim Meyering.
59284
59285 2006-09-24  Jim Meyering  <jim@meyering.net>
59286
59287         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59288         compare a pointer against a literal "0".  That caused failures with
59289         at least HP-UX's hpcc.
59290
59291 2006-09-22  Simon Josefsson  <jas@extundo.com>
59292
59293         * modules/gc-sha1:
59294         * modules/gc-md4:
59295         * modules/gc-hmac-sha1:
59296         * modules/gc-hmac-md5:
59297         * modules/gc-des:
59298         * modules/gc-arcfour: Distribute more files.
59299
59300 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59301
59302         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59303         (gl_linked_iterator_from_to): Initialize struct completely.
59304         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59305         (gl_tree_iterator_from_to): Likewise
59306         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59307         * lib/gl_array_list.c [lint] (gl_array_iterator)
59308         (gl_array_iterator_from_to): Likewise.
59309         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59310         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59311         (gl_carray_iterator_from_to): Likewise.
59312
59313         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59314         * lib/md4.c (md4_process_block): Remove unused variable.
59315         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59316         parentheses for clarity.
59317
59318 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59319
59320         * modules/bison-i18n (Depends-on): Add gettext.
59321
59322 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59323
59324         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59325         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59326         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59327         also add missing comma that caused broken test.
59328         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59329         stdlib.h, for `abort'.
59330         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59331         variables.
59332         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59333         include unistd.h if present, for `rmdir'.
59334         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59335         variables.
59336         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59337         in the process include standard headers for prototypes.
59338         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59339         gets declared on GNU/Linux.
59340         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59341         unistd.h, for `rmdir'.
59342         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59343
59344         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59345         always true.
59346         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59347
59348         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59349
59350 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59351
59352         * gnulib-tool (func_version): Create output all at once.  This
59353         may help avoid triggering unnecessary SIGPIPEs, and at any
59354         rate it doesn't hurt.
59355
59356 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59357             Bruno Haible  <bruno@clisp.org>
59358
59359         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59360         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59361         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59362
59363         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59364         (gl_FUNC_VASPRINTF): Invoke it.
59365
59366 2006-09-22  Bruno Haible  <bruno@clisp.org>
59367
59368         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59369         getloadavg.c as first argument.
59370
59371 2006-09-22  Bruno Haible  <bruno@clisp.org>
59372
59373         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59374         at the beginning of the gl_INIT macro.
59375         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59376         gl_GETLOADAVG.
59377
59378 2006-09-22  Bruno Haible  <bruno@clisp.org>
59379
59380         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59381         module.
59382         Suggested by Ralf Wildenhues.
59383
59384 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59385
59386         Import this patch from libc:
59387
59388         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59389
59390         * lib/regex_internal.c (re_string_reconstruct): Handle
59391         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59392         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59393         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59394         re_string_context_at.
59395
59396         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59397         now requires it.
59398         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59399         gl_REGEX now does it for us.
59400         (gl_REGEX): Add test taken from
59401         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59402
59403         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59404         Check that large offsets work.  Modernize Autoconf usages.
59405         Prefer "yes" to mean a good thing rather than a bad.
59406         Don't put "#define mkstemp" in config.h, as this might interfere
59407         with standard system headers that "#define mkstemp mkstemp64".
59408
59409         * modules/mkstemp (Depends-on): Add extensions, so that
59410         mkstemp is visible on some platforms.
59411         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59412         (Include): Change to "mkstemp.h" from <stdlib.h>.
59413         (Files): Add mkstemp.h.
59414
59415         * lib/mkstemp.h: New file, since some standard headers
59416         #define mkstemp.
59417         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59418         Include "mkstemp.h".
59419         Make the _LIBC code resemble glibc original more,
59420         e.g., use K&R style.
59421         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59422         (mkstemp): Remove, since mkstemp.h does this for us.
59423         * lib/stdlib--.h: Include mkstemp.h.
59424
59425         Import this patch from libc:
59426
59427         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59428
59429         * lib/tempname.c (__gen_tempname): Change attempts_min
59430         into a macro.  Use preprocessor to decide how to initialize
59431         attempts [Coverity CID 67].
59432
59433 2006-09-20  Bruno Haible  <bruno@clisp.org>
59434
59435         * lib/mkdtemp.c: Import from libc.
59436         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59437                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59438                 attempts_min into a macro.  Use preprocessor to decide how to
59439                 initialize attempts [Coverity CID 67].
59440         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59441                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59442                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59443
59444 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59445
59446         * gnulib-tool (func_exit): New function, to allow to pass the
59447         exit status portably through the trap.  Use everywhere.
59448         (--help, --version): Signal a write error.
59449         (trap): catch SIGPIPE, for write errors.
59450         Exit at the end of the trap, with the correct exit status.
59451
59452 2006-09-19  Karl Berry  <karl@gnu.org>
59453
59454         * doc/gnulib.texi: note about the license texinfo files.
59455
59456 2006-09-19  Eric Blake  <ebb9@byu.net>
59457
59458         * gnulib-tool: Avoid space-tab.
59459
59460 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59461
59462         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59463         that prevented coreutils 6.1 from building.  Problem reported
59464         by Petter Reinholdtsen.
59465
59466 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59467
59468         * gnulib-tool (avoidlist): Fix typo that broke options like
59469         --avoid=lock that are used by coreutils bootstrap.
59470
59471 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59472
59473         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59474         more systematically.
59475
59476 2006-09-18  Jim Meyering  <jim@meyering.net>
59477
59478         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59479
59480 2006-09-18  Bruno Haible  <bruno@clisp.org>
59481
59482         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59483
59484 2006-09-18  Bruno Haible  <bruno@clisp.org>
59485
59486         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59487         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59488         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59489         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59490         * m4/gettext.m4: Require autoconf >= 2.52.
59491         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59492         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59493         of gl_cv_header_inttypes_h.
59494
59495 2006-09-18  Bruno Haible  <bruno@clisp.org>
59496
59497         * lib/javaversion.c: Include configmake.h.
59498
59499 2006-09-18  Bruno Haible  <bruno@clisp.org>
59500
59501         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59502         avoid that the while loops be executed in a subshell.
59503
59504 2006-09-18  Bruno Haible  <bruno@clisp.org>
59505
59506         * MODULES.html.sh (func_module): Break long lines.
59507         Suggested by Bruce Korb <bkorb@gnu.org>.
59508
59509 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59510
59511         Speed up by a factor of 1.12.
59512         * gnulib-tool (nl): New variable.
59513         (func_import): Rewrite include directive extraction to only read each
59514         directive once.
59515
59516 2006-09-17  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/javaversion (Makefile.am): Remove DEFS setting.
59519         (Depends-on): Add configmake, for PKGDATADIR definition.
59520
59521 2006-09-17  Bruno Haible  <bruno@clisp.org>
59522
59523         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59524
59525 2006-09-17  Bruno Haible  <bruno@clisp.org>
59526
59527         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59528         (func_modules_transitive_closure, func_modules_add_dummy,
59529         func_modules_to_filelist, func_import, func_create_testdir,
59530         func_create_megatestdir, ...): Use it wherever possible.
59531         Suggested by Ralf Wildenhues.
59532
59533 2006-09-16  Karl Berry  <karl@gnu.org>
59534
59535         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59536         to avoid sectioning errors.
59537         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59538         [ifinfo]: blank line after @center-ed titles.
59539         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59540         Spell FSF address consistently with others.
59541         (These changes approved by rms.)
59542
59543 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59544
59545         Speed up by a factor of 1.61.
59546         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59547         already checked module names again.
59548
59549 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59550
59551         Speed up by a factor of 1.13.
59552         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59553         for new_files, and the input to func_add_or_update.
59554
59555 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59556
59557         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59558         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59559
59560 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59561
59562         * modules/mkancesdirs (Depends-on): Add fcntl.
59563         * modules/savewd: New file.
59564         * MODULES.html.sh (File system functions): Add savewd.
59565
59566         * modules/configmake (Makefile.am): Add support for the
59567         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59568
59569 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * m4/savewd.m4: New file.
59572
59573 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59574
59575         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59576         (dirchownmod): New arg FD.  All callers changed.
59577         Use FD rather than opening the directory ourself, as opening is
59578         now the caller's responsibility.
59579         * lib/dirchownmod.h: Likewise.
59580         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59581         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59582         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59583         (test_dir): Remove.
59584         (mkancesdirs): Return length of prefix of FILE that has already
59585         been made, or -2 if there is a child doing the work.  Redo
59586         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59587         ".", and treat ".." specially since it might stray back into
59588         already-created areas.  Use a subprocess if necessary.  New arg
59589         WD; all users changed.  MAKE_DIR function should now return 1
59590         if it creates a directory that is not readable.  Return -2 if
59591         a child process is spun off.
59592         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59593         Adjust signature to match code.
59594         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59595         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59596         all users changed.
59597         * lib/savewd.c, lib/savewd.h: New files.
59598
59599 2006-09-15  Jim Meyering  <jim@meyering.net>
59600
59601         * modules/rename-dest-slash: New module.
59602         * MODULES.html.sh (posix_compat): Add it here.
59603
59604         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59605
59606 2006-09-15  Jim Meyering  <jim@meyering.net>
59607
59608         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59609         file.
59610
59611         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59612
59613 2006-09-15  Jim Meyering  <jim@meyering.net>
59614
59615         * lib/rename-dest-slash.c (has_trailing_slash): Use
59616         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59617         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59618         test before testing whether SRC is a directory.
59619         Suggestions from Bruno Haible.
59620
59621         Avoid a warning about an unused variable.
59622         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59623         into the #ifdef block where it's used.
59624
59625         * lib/rename-dest-slash.c: New file.
59626
59627 2006-09-14  Bruno Haible  <bruno@clisp.org>
59628
59629         * lib/allocsa.c: Include <config.h> unconditionally.
59630         * lib/asnprintf.c: Likewise.
59631         * lib/asprintf.c: Likewise.
59632         * lib/c-strcasecmp.c: Likewise.
59633         * lib/c-strcasestr.c: Likewise.
59634         * lib/c-strncasecmp.c: Likewise.
59635         * lib/c-strstr.c: Likewise.
59636         * lib/classpath.c: Likewise.
59637         * lib/clean-temp.c: Likewise.
59638         * lib/concatpath.c: Likewise.
59639         * lib/copy-file.c: Likewise.
59640         * lib/csharpcomp.c: Likewise.
59641         * lib/csharpexec.c: Likewise.
59642         * lib/execute.c: Likewise.
59643         * lib/fatal-signal.c: Likewise.
59644         * lib/findprog.c: Likewise.
59645         * lib/fwriteerror.c: Likewise.
59646         * lib/gl_array_list.c: Likewise.
59647         * lib/gl_array_oset.c: Likewise.
59648         * lib/gl_avltree_list.c: Likewise.
59649         * lib/gl_avltree_oset.c: Likewise.
59650         * lib/gl_avltreehash_list.c: Likewise.
59651         * lib/gl_carray_list.c: Likewise.
59652         * lib/gl_linked_list.c: Likewise.
59653         * lib/gl_linkedhash_list.c: Likewise.
59654         * lib/gl_list.c: Likewise.
59655         * lib/gl_oset.c: Likewise.
59656         * lib/gl_rbtree_list.c: Likewise.
59657         * lib/gl_rbtree_oset.c: Likewise.
59658         * lib/gl_rbtreehash_list.c: Likewise.
59659         * lib/imaxabs.c: Likewise.
59660         * lib/imaxdiv.c: Likewise.
59661         * lib/javacomp.c: Likewise.
59662         * lib/javaexec.c: Likewise.
59663         * lib/javaversion.c: Likewise.
59664         * lib/linebreak.c: Likewise.
59665         * lib/localcharset.c: Likewise.
59666         * lib/lock.c: Likewise.
59667         * lib/mbchar.c: Likewise.
59668         * lib/mbswidth.c: Likewise.
59669         * lib/mkdtemp.c: Likewise.
59670         * lib/pipe.c: Likewise.
59671         * lib/printf-args.c: Likewise.
59672         * lib/printf-parse.c: Likewise.
59673         * lib/progname.c: Likewise.
59674         * lib/progreloc.c: Likewise.
59675         * lib/readlink.c: Likewise.
59676         * lib/sh-quote.c: Likewise.
59677         * lib/stpcpy.c: Likewise.
59678         * lib/stpncpy.c: Likewise.
59679         * lib/strcasecmp.c: Likewise.
59680         * lib/strcasestr.c: Likewise.
59681         * lib/strcspn.c: Likewise.
59682         * lib/striconv.c: Likewise.
59683         * lib/strncasecmp.c: Likewise.
59684         * lib/strnlen1.c: Likewise.
59685         * lib/strstr.c: Likewise.
59686         * lib/strtok_r.c: Likewise.
59687         * lib/tls.c: Likewise.
59688         * lib/tmpdir.c: Likewise.
59689         * lib/unicodeio.c: Likewise.
59690         * lib/unsetenv.c: Likewise.
59691         * lib/vasnprintf.c: Likewise.
59692         * lib/vasprintf.c: Likewise.
59693         * lib/wait-process.c: Likewise.
59694         * lib/xallocsa.c: Likewise.
59695         * lib/xsetenv.c: Likewise.
59696         * lib/xstriconv.c: Likewise.
59697
59698 2006-09-13  Simon Josefsson  <jas@extundo.com>
59699
59700         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59701         that internally, suggested by Ralf Wildenhues
59702         <Ralf.Wildenhues@gmx.de>.
59703
59704 2006-09-13  Simon Josefsson  <jas@extundo.com>
59705
59706         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59707         @LIBOBJS@.
59708         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59709
59710 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59711
59712         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59713         longer worry about uses that don't define HAVE_CONFIG_H.
59714         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59715         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59716         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59717         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59718         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59719         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59720         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59721         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59722         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59723         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59724         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59725         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59726         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59727         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59728         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59729         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59730         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59731         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59732         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59733         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59734         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59735         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59736         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59737         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59738         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59739         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59740         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59741         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59742         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59743         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59744         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59745         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59746         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59747         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59748         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59749         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59750         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59751         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59752         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59753         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59754         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59755         Likewise.
59756
59757 2006-09-13  Eric Blake  <ebb9@byu.net>
59758
59759         * lib/getopt.c: Fix typo in last commit.
59760
59761 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59762
59763         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59764         dgettext.
59765
59766 2006-09-12  Jim Meyering  <jim@meyering.net>
59767
59768         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59769         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59770         Reported by Nelson H. F. Beebe.
59771
59772 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59773
59774         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59775         program_invocation_name and program_invocation_short_name are
59776         initialized.
59777         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59778         and program_invocation_short_name to argp.h, so they are visible
59779         to user programs.
59780         * lib/argp.h: Likewise
59781
59782 2006-09-10  Bruno Haible  <bruno@clisp.org>
59783
59784         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59785         m4/inttypes_h.m4, m4/uintmax_t.m4.
59786
59787 2006-09-10  Bruno Haible  <bruno@clisp.org>
59788
59789         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59790         gl_AC_TYPE_UINTMAX_T.
59791
59792 2006-09-10  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59795
59796 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59797
59798         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59799         convention.  Text proposed by Bruno Haible.
59800         (struct argp_option): Document the use of N_() wrappers.
59801
59802         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59803         '\v', and translate the two parts separately, instead of feeding
59804         the whole string to gettext.  This allows to exclude
59805         '\v' from the strings visible to the translator by writing doc
59806         strings as N_("..") "\v" N_("..").
59807
59808 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59809
59810         * config/srclist.txt: Undo latest change; the bug was fixed.
59811
59812 2006-09-09  Bruno Haible  <bruno@clisp.org>
59813
59814         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59815         assignments if building a library without libtool.
59816         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59817         in func_emit_lib_Makefile_am.
59818         (func_import): When building a static library libfoo.a, arrange to
59819         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59820         (func_create_testdir): Likewise.
59821         * modules/gc (configure.ac, Makefile.am): If building statically,
59822         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59823         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59824         * modules/striconv (configure.ac, Makefile.am): Likewise.
59825         Based on a suggestion by Ralf Wildenhues.
59826
59827 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59828
59829         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59830         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59831         Also:
59832
59833         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59834         Add year_2050_test to catch glibc bug 2821
59835         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59836
59837         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59838         Prefer #ifdef to #if.
59839
59840         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59841         Return from 'main' instead of calling 'exit'.
59842
59843 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59844
59845         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59846         returned the maximum time_t value rather than (time_t) -1.
59847         Problem originally reported by William Bardwell
59848         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59849
59850         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59851         Moved to here ...
59852         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59853         ... from here.
59854
59855 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59856
59857         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59858         2821 is fixed.
59859
59860 2006-09-08  Jim Meyering  <jim@meyering.net>
59861
59862         Don't make generated files read-only.  That would bother too many
59863         people.  However, do retain the ability to work when targets are
59864         read-only: remove the destination and temporary files before writing
59865         them (when generated via sed or echo), or by using the -f option for
59866         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59867         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59868         * modules/byteswap, modules/configmake, modules/fcntl:
59869         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59870         * modules/localcharset, modules/netinet_in, modules/poll:
59871         * modules/stdbool, modules/stdint, modules/sys_select:
59872         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59873
59874 2006-09-08  Jim Meyering  <jim@meyering.net>
59875
59876         Avoid new build failure on FreeBSD 6.0.
59877         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59878         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59879         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59880
59881 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59882
59883         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59884
59885 2006-09-07  Jim Meyering  <jim@meyering.net>
59886
59887         Fix global typo in last change: use chmod u-w, not chmod u-x.
59888         Spotted by Paul Eggert and Bruce Korb.
59889         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59890         * modules/byteswap, modules/configmake, modules/fcntl:
59891         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59892         * modules/localcharset, modules/netinet_in, modules/poll:
59893         * modules/stdbool, modules/stdint, modules/sys_select:
59894         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59895
59896 2006-09-06  Jim Meyering  <jim@meyering.net>
59897
59898         Make generated files be read-only.
59899         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59900         Ensure that each generated file is now read-only.
59901         * modules/argz: Likewise.
59902         * modules/arpa_inet: Likewise.
59903         * modules/byteswap: Likewise.
59904         * modules/configmake: Likewise.
59905         * modules/fcntl: Likewise.
59906         * modules/fnmatch: Likewise.
59907         * modules/getopt: Likewise.
59908         * modules/glob: Likewise.
59909         * modules/inttypes: Likewise.
59910         * modules/netinet_in: Likewise.
59911         * modules/poll: Likewise.
59912         * modules/stdbool: Likewise.
59913         * modules/stdint: Likewise.
59914         * modules/sys_select: Likewise.
59915         * modules/sys_socket: Likewise.
59916         * modules/sys_stat: Likewise.
59917         * modules/sysexits: Likewise.
59918         * modules/localcharset: Same as above, but continue using temporary
59919         file named "t-$@" (why different?) rather than the "$@-t" used
59920         everywhere else.
59921
59922         * modules/sysexits (Makefile.am): Replace literal occurrences
59923         of "sysexit.h" more readable, and more consistent, "$@".
59924
59925 2006-09-06  Bruno Haible  <bruno@clisp.org>
59926
59927         * modules/striconv: New file.
59928         * modules/xstriconv: New file.
59929         * MODULES.html.sh (Internationalization functions): Add striconv,
59930         xstriconv.
59931
59932 2006-09-06  Bruno Haible  <bruno@clisp.org>
59933
59934         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59935         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59936         not using libtool correctly.
59937
59938 2006-09-06  Bruno Haible  <bruno@clisp.org>
59939
59940         * lib/striconv.h: New file.
59941         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59942         iconvstring.c.
59943         * lib/xstriconv.h: New file.
59944         * lib/xstriconv.c: New file.
59945
59946 2006-09-06  Bruno Haible  <bruno@clisp.org>
59947
59948         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59949         lib_..._LDFLAGS.
59950
59951 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59952
59953         * lib/argz_.h: Sync from Libtool.
59954
59955         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59956                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59957
59958         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59959
59960 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59961
59962         * modules/trim: New file.
59963
59964 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59965
59966         * lib/trim.h: New file.
59967         * lib/trim.c: New file.
59968
59969 2006-09-05  Bruno Haible  <bruno@clisp.org>
59970
59971         * MODULES.html.sh (String handling): Add trim.
59972
59973 2006-09-04  Karl Berry  <karl@gnu.org>
59974
59975         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59976         until next release.
59977
59978 2006-09-03  Bruno Haible  <bruno@clisp.org>
59979
59980         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59981         correctly.
59982
59983 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59984
59985         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59986         not gl_GETLOADAVG.  Omit unneeded semicolons.
59987         Problems reported by Ralf Wildenhues in
59988         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59989         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59990         at the end, which is the usual gnulib style.
59991
59992         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59993         of doing all the work ourselves.
59994         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59995         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59996
59997 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59998
59999         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60000         Problem reported by Ralf Wildenhues in
60001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60002
60003         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60004         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60005
60006 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60007
60008         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60009         yesterday's patch by changing test -n to test -z.
60010
60011 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60014         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60015         the former is now obsolescent.
60016
60017         * modules/chdir-long (Depends-on): Add fcntl.
60018
60019 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60022         obsolescent, and programs should use gnulib instead.
60023         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60024         but with prefixes changed.
60025
60026 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60027
60028         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60029         or stdbool.h, because they might not exist while configuring.
60030
60031         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60032         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60033         does that for us.
60034         (O_DIRECTORY): Remove.
60035
60036 2006-08-31  Eric Blake  <ebb9@byu.net>
60037
60038         * gnulib-tool: Don't let emacs change spaces to TAB.
60039
60040 2006-08-31  Bruno Haible  <bruno@clisp.org>
60041
60042         * gnulib-tool: When calling func_import more than once, do it in a
60043         subshell.
60044         Reported by Eric Blake <ebb9@byu.net>.
60045
60046 2006-08-31  Bruno Haible  <bruno@clisp.org>
60047
60048         * gnulib-tool (nl): Remove variable.
60049         (sed_transform_lib_file): Use more robust test for config-h module.
60050         (func_import): Fix typo in 2006-08-25 patch.
60051
60052 2006-08-31  Bruno Haible  <bruno@clisp.org>
60053
60054         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60055         specified, augment Makefile.am variables instead of assigning them.
60056
60057 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60058
60059         Work around a bug in both the Linux and SunOS 64-bit kernels:
60060         nanosleep mishandles sleeps for longer than 2**31 seconds.
60061         Problem reported by Frank v Waveren in
60062         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60064         Check for nanosleep bug.
60065         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60066
60067 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60068
60069         Work around a bug in both the Linux and SunOS 64-bit kernels:
60070         nanosleep mishandles sleeps for longer than 2**31 seconds.
60071         Problem reported by Frank v Waveren in
60072         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60073         * lib/nanosleep.c (BILLION): New constant.
60074         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60075         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60076         implementation.
60077
60078 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60079
60080         * modules/nanosleep (Depends-on): Add gettime.
60081
60082 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60083         and Simon Josefsson  <jas@extundo.com>
60084         and Oskar Liljeblad  <oskar@osk.mine.nu>
60085
60086         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60087         * gnulib-tool (func_import): New license type 'unmodifiable license
60088         text'.
60089         * modules/fdl: Use it.  Longer description.
60090         * module/gpl, module/lgpl: New files.
60091
60092 2006-08-30  Jim Meyering  <jim@meyering.net>
60093
60094         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60095         shadowing the parameter.
60096
60097 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60098
60099         Sync from Libtool:
60100
60101         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60102
60103         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60104         sharing with gnulib.  Report by Eric Blake.
60105
60106 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60107
60108         * modules/isapipe: New file.
60109         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60110
60111 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60112
60113         * modules/configmake (Makefile.am): Add a comment, and omit
60114         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60115         by Bruno Haible.
60116
60117 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         * m4/isapipe.m4: New file.
60120
60121 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60122
60123         * lib/isapipe.c, lib/isapipe.h: New files.
60124
60125 2006-08-29  Jim Meyering  <jim@meyering.net>
60126
60127         * modules/configmake (Makefile.am): Make configmake.h depend on
60128         Makefile.  Otherwise, a stale configmake.h could hang around.
60129
60130 2006-08-29  Eric Blake  <ebb9@byu.net>
60131
60132         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60133         resolution of upstream bug 3044.
60134
60135 2006-08-29  Bruno Haible  <bruno@clisp.org>
60136
60137         * modules/localcharset (Depends-on): Add configmake.
60138         (Makefile.am): Remove setting of LIBDIR through DEFS.
60139
60140 2006-08-29  Bruno Haible  <bruno@clisp.org>
60141
60142         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60143         defined.
60144
60145 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60146
60147         * modules/fcntl: New file.
60148         * modules/chdir-safer (Depends-on): Add fcntl.
60149         * modules/fts: Likewise.
60150         * modules/mkdir-p: Likewise.
60151
60152         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60153         This undoes the most recent change, since we're now addressing the
60154         problem in a different way.
60155
60156         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60157         into output, since the output might be called Makefile.am even
60158         if $makefile_name is something different.
60159         (func_import): Use $makefile_am rather than
60160         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60161         empty.
60162
60163         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60164
60165 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60166
60167         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60168         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60169         recent change to stdint.m4, since we're now addressing the problem in a
60170         different way.
60171
60172 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60173
60174         * m4/fcntl_h.m4: New file.
60175
60176 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60177
60178         * lib/fcntl_.h: New file.
60179         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60180         the fcntl module.
60181         * lib/dirchownmod.c: Likewise.
60182         * lib/fts.c: Likewise.
60183
60184         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60185         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60186         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60187         just before including <inttypes.h>, to avoid circular inclusion.
60188
60189 2006-08-28  Jim Meyering  <jim@meyering.net>
60190
60191         * doc/visibility.texi: Actually read and correct the grammar of the
60192         sentence affected by yesterday's change.
60193
60194 2006-08-28  Eric Blake  <ebb9@byu.net>
60195
60196         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60197         needs wrapper.
60198
60199 2006-08-28  Eric Blake  <ebb9@byu.net>
60200
60201         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60202
60203 2006-08-28  Eric Blake  <ebb9@byu.net>
60204
60205         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60206
60207 2006-08-28  Bruno Haible  <bruno@clisp.org>
60208
60209         * modules/c-strstr: New file, from GNU gettext.
60210         * MODULES.html.sh (String handling): Add c-strstr.
60211
60212 2006-08-28  Bruno Haible  <bruno@clisp.org>
60213
60214         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60215         macros.
60216         Reported by Eric Blake.
60217
60218 2006-08-28  Bruno Haible  <bruno@clisp.org>
60219
60220         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60221         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60222         * lib/vasprintf.c: Include errno.h, limits.h.
60223         (EOVERFLOW): New fallback definition.
60224         (vasprintf): Test here whether the string length is > INT_MAX.
60225         * lib/vsnprintf.c: Include errno.h, limits.h.
60226         (EOVERFLOW): New fallback definition.
60227         (vsnprintf): Fix bug when generated string was too long for the buffer.
60228         Test here whether the string length is > INT_MAX.
60229
60230 2006-08-28  Bruno Haible  <bruno@clisp.org>
60231
60232         * lib/inttypes_.h (SCNX*): Remove definitions.
60233         Reported by Eric Blake.
60234
60235 2006-08-28  Bruno Haible  <bruno@clisp.org>
60236
60237         * lib/c-strstr.h: New file, from GNU gettext.
60238         * lib/c-strstr.c: New file, from GNU gettext.
60239
60240 2006-08-28  Bruno Haible  <bruno@clisp.org>
60241
60242         * gnulib-tool: Reorder some statements.
60243
60244 2006-08-28  Bruno Haible  <bruno@clisp.org>
60245
60246         * gnulib-tool: New option --makefile-name.
60247         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60248         $makefile_name.
60249         (func_import): Write $makefile_name to the cache file, and read it from
60250         there unless explicitly specified. Use $makefile_name as file name
60251         instead of Makefile.am. Adjust the recommendations accordingly.
60252
60253 2006-08-28  Bruno Haible  <bruno@clisp.org>
60254
60255         * gnulib-tool (func_verify_module): Check against misapplying patch.
60256
60257 2006-08-28  Bruno Haible  <bruno@clisp.org>
60258
60259         * gnulib-tool (func_relativize, func_relconcat): New functions.
60260         Give an error if --local-dir is given with --update.
60261         Remove trailing slashes from $local_gnulib_dir.
60262         (func_import): Store the relativized $local_gnulib_dir in
60263         gnulib-cache.m4, and read it from there if not specified explicitly.
60264
60265 2006-08-28  Bruno Haible  <bruno@clisp.org>
60266
60267         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60268         is the current directory. Respect also $local_gnulib_dir.
60269
60270 2006-08-28  Bruno Haible  <bruno@clisp.org>
60271             Simon Josefsson  <jas@extundo.com>
60272
60273         BeOS portability.
60274         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60275
60276 2006-08-27  Jim Meyering  <jim@meyering.net>
60277
60278         * doc/visibility.texi: Remove duplicate word: "pointer".
60279
60280 2006-08-26  Bruno Haible  <bruno@clisp.org>
60281
60282         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60283         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60284         (Makefile.am): Create inttypes.h from inttypes_.h.
60285         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60286
60287         * modules/imaxabs: New file.
60288
60289         * modules/imaxdiv: New file.
60290
60291 2006-08-26  Bruno Haible  <bruno@clisp.org>
60292
60293         * m4/inttypes.m4: New file.
60294         * m4/_inttypes_h.m4: Remove file.
60295         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60296         PRI_MACROS_BROKEN.
60297         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60298
60299         * m4/imaxabs.m4: New file.
60300
60301         * m4/imaxdiv.m4: New file.
60302
60303 2006-08-26  Bruno Haible  <bruno@clisp.org>
60304
60305         * lib/inttypes_.h: New file.
60306         * lib/inttypes.h: Remove file.
60307         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60308
60309         * lib/imaxabs.c: New file.
60310
60311         * lib/imaxdiv.c: New file.
60312
60313 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60314
60315         New config-h module, so that "make" output needn't be cluttered
60316         by -DHAVE_CONFIG_H.
60317         * MODULES.html.sh (Support for building libraries and executables):
60318         Add config-h.
60319         * modules/config-h: New file.
60320         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60321         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60322         the config-h module is used.
60323
60324         New configmake module, so that "make" output needn't be cluttered
60325         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60326         * MODULES.html.sh (Support for building libraries and executables):
60327         Add configmake.
60328         * modules/configmake: New file.
60329
60330 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         * m4/config-h.m4: New file.
60333
60334 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60335
60336         * config/srclist.txt: Add elisp-comp.
60337
60338 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60339
60340         * MODULES.html.sh (Support for building libraries and executables):
60341         Add elisp-comp.
60342         * build-aux/elisp-comp: New file.
60343         * modules/elisp-comp: New file.
60344
60345 2006-08-24  Bruno Haible  <bruno@clisp.org>
60346
60347         * gnulib-tool (func_create_testdir): Use non-default values of
60348         sourcebase and m4base.
60349
60350 2006-08-24  Bruno Haible  <bruno@clisp.org>
60351
60352         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60353         HTML structure.
60354
60355 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * modules/openat (Depends-on): Add lchown.
60358
60359 2006-08-23  Bruno Haible  <bruno@clisp.org>
60360
60361         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60362         of gl_LOCK_EARLY instead of gl_LOCK.
60363
60364 2006-08-23  Bruno Haible  <bruno@clisp.org>
60365
60366         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60367         on OSF/1 to no.
60368         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60369
60370 2006-08-23  Bruno Haible  <bruno@clisp.org>
60371
60372         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60373         as unusable.
60374
60375         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60376         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60377         (gl_LOCK): New macro.
60378
60379 2006-08-22  Simon Josefsson  <jas@extundo.com>
60380
60381         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60382         to md5 module.
60383
60384 2006-08-22  Simon Josefsson  <jas@extundo.com>
60385
60386         * MODULES.html.sh: Add "Support for maintaining and release
60387         projects".
60388
60389         * build-aux/gnupload: New file, from coreutils.
60390
60391 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         Avoid the need for AC_LIBSOURCES in m4 macros.
60394         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60395         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60396         * modules/check-version (EXTRA_DIST): Add check-version.h.
60397         * modules/crc (EXTRA_DIST): Add crc.h.
60398         * modules/des (EXTRA_DIST): Add des.h.
60399         * modules/gc (EXTRA_DIST): Add gc.h.
60400         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60401         * modules/getline (EXTRA_DIST): Add getline.h.
60402         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60403         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60404         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60405         * modules/md2 (EXTRA_DIST): Add md2.h.
60406         * modules/md4 (EXTRA_DIST): Add md4.h.
60407         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60408         * modules/read-file (EXTRA_DIST): Add read-file.h.
60409         * modules/readline (EXTRA_DIST): Add readline.h.
60410         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60411         rijndael-api-fst.h.
60412
60413 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60414
60415         * m4/rijndael.m4 (gl_ARCFOUR):
60416         * m4/arctwo.m4 (gl_ARCTWO):
60417         * m4/check-version.m4 (gl_CHECK_VERSION):
60418         * m4/crc.m4 (gl_CRC):
60419         * m4/des.m4 (gl_DES):
60420         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60421         * m4/gc.m4 (gl_GC):
60422         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60423         * m4/getline.m4 (gl_FUNC_GETLINE):
60424         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60425         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60426         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60427         * m4/md2.m4 (gl_MD2):
60428         * m4/md4.m4 (gl_MD4):
60429         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60430         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60431         * m4/readline.m4 (gl_FUNC_READLINE):
60432         * m4/rijndael.m4 (gl_RIJNDAEL):
60433         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60434         to get the necessary .h files and whatnot.
60435
60436 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60437
60438         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60439         gnulib rather than the other way around.
60440         * config/srclistvars.sh (COREUTILS): Remove.
60441
60442 2006-08-22  Jim Meyering  <jim@meyering.net>
60443
60444         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60445
60446         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60447
60448 2006-08-22  Eric Blake  <ebb9@byu.net>
60449
60450         * modules/regexprops-generic: New file.
60451         * MODULES.html.sh (Support for building documentation): List it.
60452
60453 2006-08-22  Eric Blake  <ebb9@byu.net>
60454
60455         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60456         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60457         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60458         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60459
60460 2006-08-22  Bruno Haible  <bruno@clisp.org>
60461
60462         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60463         and lib_LTLIBRARIES like the other lib_* variables.
60464
60465 2006-08-22  Bruno Haible  <bruno@clisp.org>
60466
60467         * build-aux/x-to-1.in: New file, from GNU gettext.
60468
60469 2006-08-22  Bruno Haible  <bruno@clisp.org>
60470
60471         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60472         <utmpx.h> exists.
60473
60474 2006-08-22  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60477         <utmpx.h> exists.
60478
60479 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         BeOS portability.
60482         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60483         exist.
60484         Problem reported by Bruno Haible.
60485
60486 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60487
60488         Avoid the need for AC_LIBSOURCES in m4 macros.
60489         * modules/acl (EXTRA_DIST): Add acl.h.
60490         * modules/argmatch (Files): Add m4/argmatch.m4.
60491         (configure.ac): Add gl_ARGMATCH.
60492         (EXTRA_DIST): Renamed from lib_SOURCES, for
60493         consistency with the other modules.  Remove argmatch.c.
60494         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60495         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60496         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60497         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60498         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60499         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60500         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60501         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60502         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60503         * modules/closeout (EXTRA_DIST): Add closeout.h.
60504         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60505         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60506         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60507         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60508         dirname.h; remove basename.c and stripslash.c.
60509         * modules/exclude (EXTRA_DIST): Add exclude.h.
60510         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60511         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60512         * modules/file-type (EXTRA_DIST): Add file-type.h.
60513         * modules/filemode (EXTRA_DIST): Add filemode.h.
60514         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60515         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60516         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60517         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60518         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60519         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60520         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60521         * modules/getdate (EXTRA_DIST): Add getdate.c.
60522         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60523         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60524         * modules/getpass (EXTRA_DIST): Add getpass.h.
60525         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60526         * modules/group-member (EXTRA_DIST): Add group-member.h.
60527         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60528         * modules/hash (EXTRA_DIST): Add hash.h.
60529         * modules/human (EXTRA_DIST): Add human.h.
60530         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60531         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60532         * modules/lchown (EXTRA_DIST): Add lchown.h.
60533         * modules/long-options (EXTRA_DIST): Add long-options.h.
60534         * modules/lstat (EXTRA_DIST): Add lstat.h.
60535         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60536         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60537         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60538         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60539         * modules/memxor (EXTRA_DIST): Add memxor.h.
60540         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60541         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60542         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60543         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60544         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60545         * modules/physmem (EXTRA_DIST): Add physmem.h.
60546         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60547         * modules/posixver (EXTRA_DIST): Add posixver.h.
60548         * modules/quote (EXTRA_DIST): Add quote.h.
60549         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60550         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60551         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60552         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60553         regex_internal.h regexec.c.
60554         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60555         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60556         * modules/same (EXTRA_DIST): Add same.h.
60557         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60558         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60559         * modules/savedir (EXTRA_DIST): Add savedir.h.
60560         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60561         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60562         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60563         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60564         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60565         * modules/strdup (EXTRA_DIST): Add strdup.h.
60566         * modules/strftime (EXTRA_DIST): Add strftime.h.
60567         * modules/strndup (EXTRA_DIST): Add strndup.h.
60568         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60569         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60570         * modules/time_r (EXTRA_DIST): Add time_r.h.
60571         * modules/timespec (EXTRA_DIST): Add timespec.h.
60572         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60573         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60574         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60575         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60576         * modules/userspec (EXTRA_DIST): Add userspec.h.
60577         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60578         * modules/utimens (EXTRA_DIST): Add utimens.h.
60579         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60580         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60581         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60582         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60583         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60584         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60585         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60586         * modules/yesno (EXTRA_DIST): Add yesno.h.
60587
60588 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60589
60590         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60591
60592         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60593         * m4/dev-ino.m4, same-inode.m4: Remove.
60594
60595         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60596         * m4/acl.m4 (AC_FUNC_ACL):
60597         * m4/backupfile.m4 (gl_BACKUPFILE):
60598         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60599         * m4/canon-host.m4 (gl_CANON_HOST):
60600         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60601         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60602         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60603         * m4/cloexec.m4 (gl_CLOEXEC):
60604         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60605         * m4/closeout.m4 (gl_CLOSEOUT):
60606         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60607         * m4/dirname.m4 (gl_DIRNAME):
60608         * m4/exclude.m4 (gl_EXCLUDE):
60609         * m4/exitfail.m4 (gl_EXITFAIL):
60610         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60611         * m4/file-type.m4 (gl_FILE_TYPE):
60612         * m4/filemode.m4 (gl_FILEMODE):
60613         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60614         * m4/fpending.m4 (gl_FUNC_FPENDING):
60615         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60616         * m4/fts.m4 (gl_FUNC_FTS):
60617         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60618         * m4/getdate.m4 (gl_GETDATE):
60619         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60620         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60621         * m4/getpass.m4 (gl_FUNC_GETPASS):
60622         * m4/gettime.m4 (gl_GETTIME):
60623         * m4/getugroups.m4 (gl_GETUGROUPS):
60624         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60625         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60626         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60627         * m4/hash.m4 (gl_HASH):
60628         * m4/idcache.m4 (gl_IDCACHE):
60629         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60630         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60631         * m4/long-options.m4 (gl_LONG_OPTIONS):
60632         * m4/lstat.m4 (gl_FUNC_LSTAT):
60633         * m4/md5.m4 (gl_MD5):
60634         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60635         * m4/memcoll.m4 (gl_MEMCOLL):
60636         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60637         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60638         * m4/memxor.m4 (gl_MEMXOR):
60639         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60640         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60641         * m4/modechange.m4 (gl_MODECHANGE):
60642         * m4/mountlist.m4 (gl_MOUNTLIST):
60643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60644         * m4/openat.m4 (gl_FUNC_OPENAT):
60645         * m4/pathmax.m4 (gl_PATHMAX):
60646         * m4/physmem.m4 (gl_PHYSMEM):
60647         * m4/posixtm.m4 (gl_POSIXTM):
60648         * m4/posixver.m4 (gl_POSIXVER):
60649         * m4/quote.m4 (gl_QUOTE):
60650         * m4/quotearg.m4 (gl_QUOTEARG):
60651         * m4/readtokens.m4 (gl_READTOKENS):
60652         * m4/readutmp.m4 (gl_READUTMP):
60653         * m4/regex.m4 (gl_REGEX):
60654         * m4/safe-read.m4 (gl_SAFE_READ):
60655         * m4/safe-write.m4 (gl_SAFE_WRITE):
60656         * m4/same.m4 (gl_SAME):
60657         * m4/save-cwd.m4 (gl_SAVE_CWD):
60658         * m4/savedir.m4 (gl_SAVEDIR):
60659         * m4/settime.m4 (gl_SETTIME):
60660         * m4/sha1.m4 (gl_SHA1):
60661         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60662         * m4/stat-macros.m4 (gl_STAT_MACROS):
60663         * m4/stat-time.m4 (gl_STAT_TIME):
60664         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60665         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60666         * m4/strdup.m4 (gl_FUNC_STRDUP):
60667         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60668         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60669         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60670         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60671         * m4/time_r.m4 (gl_TIME_R):
60672         * m4/timespec.m4 (gl_TIMESPEC):
60673         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60674         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60675         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60676         * m4/userspec.m4 (gl_USERSPEC):
60677         * m4/utimecmp.m4 (gl_UTIMECMP):
60678         * m4/utimens.m4 (gl_UTIMENS):
60679         * m4/xalloc.m4 (gl_XALLOC):
60680         * m4/xgetcwd.m4 (gl_XGETCWD):
60681         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60682         * m4/xreadlink.m4 (gl_XREADLINK):
60683         * m4/xstrtod.m4 (gl_XSTRTOD):
60684         * m4/yesno.m4 (gl_YESNO):
60685         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60686         to get the necessary .h files and whatnot.
60687
60688 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60689             Bruno Haible  <bruno@clisp.org>
60690
60691         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60692         /bin/sh understanding of '!' conditional negation.
60693
60694 2006-08-21  Jim Meyering  <jim@meyering.net>
60695
60696         * modules/openat (Depends-on): Really alphabetize.
60697
60698         * modules/acl (Depends-on): Add error and quote.
60699
60700         * check-module (find_included_lib_files): Add at-func.c to the
60701         ok-to-include-more-than-once white list.
60702
60703         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60704
60705 2006-08-21  Bruno Haible  <bruno@clisp.org>
60706
60707         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60708         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60709         Reported by Martin Lambers <marlam@marlam.de>.
60710
60711 2006-08-21  Bruno Haible  <bruno@clisp.org>
60712
60713         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60714         specify an installation location, don't emit a noinst_LIBRARIES or
60715         noinst_LTLIBRARIES assignment.
60716
60717 2006-08-21  Bruno Haible  <bruno@clisp.org>
60718
60719         BeOS portability.
60720         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60721         BeOS has mbrtowc() but no <wctype.h>.
60722
60723 2006-08-21  Bruno Haible  <bruno@clisp.org>
60724
60725         BeOS portability.
60726         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60727         exist.
60728
60729 2006-08-21  Bruno Haible  <bruno@clisp.org>
60730
60731         BeOS portability.
60732         * lib/mbchar.h: Include <wctype.h> only if it exists.
60733
60734 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60735
60736         Remove files that are no longer needed by their respective modules.
60737         * m4/obstack.m4: Remove.
60738         * m4/strerror_r.m4: Remove.
60739         * m4/uint32_t.m4: Remove.
60740         * m4/uintptr_t.m4: Remove.
60741         * m4/ullong_max.m4: Remove.
60742         * m4/xstrtoimax.m4: Remove.
60743         * m4/xstrtoumax.m4: Remove.
60744
60745         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60746         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60747         dependencies now capture this.
60748
60749         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60750         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60751         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60752         * m4/human.m4 (gl_HUMAN): Likewise.
60753         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60754         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60755
60756         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60757
60758         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60759         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60760         stdint.
60761         * m4/human.m4 (gl_HUMAN): Likewise.
60762         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60763         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60764         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60765         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60766         * m4/xstrtol (gl_XSTRTOL): Likewise.
60767
60768         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60769         AC_TYPE_LONG_LONG_INT.
60770         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60771         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60772         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60773         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60774
60775         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60776         on stdbool.
60777
60778         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60779         (gl_PREREQ_XSTRTOUL): Remove.
60780
60781         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60782
60783         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60784         mode.
60785
60786 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60787
60788         Add and change modules to make it easier for coreutils to use
60789         gnulib-tool.
60790         * modules/backupfile (Files): Remove m4/d-ino.m4.
60791         (Depends-on): Add d-ino.
60792         * modules/cycle-check (Depends-on): Add stdint.
60793         (lib_SOURCES): Add cycle-check.h.
60794         * modules/d-ino: New module.
60795         * modules/d-type: New module.
60796         * modules/error (Files): Remove m4/strerror_r.m4.
60797         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60798         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60799         m4/inttypes_h.m4, m4/uintmax_t.m4.
60800         (Depends-on): Add stdint.
60801         (lib_SOURCES): Add fsusage.h.
60802         * modules/getcwd (Files): Remove d-ino.m4.
60803         (Depends-on): Add d-ino.
60804         * modules/getndelim2 (Depends-on): Add stdint.
60805         * modules/glob (Files): Remove m4/d-type.m4.
60806         (Depends-on): Add d-type.
60807         * modules/host-os: New module.
60808         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60809         m4/inttypes_h.m4, m4/uintmax_t.m4.
60810         * Depends-on: Add stdint.
60811         (lib_SOURCES): Add human.h.
60812         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60813         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60814         m4/uintmax_t.m4, m4/ulonglong.m4.
60815         (Depends-on): Add stdint.
60816         (EXTRA_DIST): Add inttostr.h.
60817         * modules/lchmod: New module.
60818         * modules/link-follow: New module.
60819         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60820         (Depends-on): Add lchmod.
60821         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60822         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60823         (Depends-on): Add stdint.
60824         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60825         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60826         (Depends-on): Add stdint.
60827         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60828         * modules/perl: New module.
60829         * modules/regex (Depends-on): Add stdint.
60830         * modules/rmdir-errno: New module.
60831         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60832         m4/intmax_t.m4.
60833         (Depends-on): Add stdint.
60834         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60835         m4/uintmax_t.m4.
60836         (Depends-on): Add stdint.
60837         * modules/unlink-busy: New module.
60838         * modules/utimecmp (Depends-on): Add stdint.
60839         * modules/uptime: New module.
60840         * modules/winsz-ioctl: New module.
60841         * modules/winsz-termios: New module.
60842         * modules/xnanosleep (Depends-on): Add nanosleep.
60843         * modules/ullong_max: Remove.
60844         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60845         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60846         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60847         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60848         (Depends-on): Add inttypes.
60849         (lib_SOURCES): Add xstrtol.h.
60850         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60851         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60852         * MODULES.html.sh: Move 'assert' into the assert section.
60853         Move 'dummy' into the linking section.
60854         Remove ullong_max.
60855         Add section for compatibility checks for POSIX:2001 functions,
60856         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60857         winsz-ioctl, and winsz-termios into it.
60858         Add lchmod.
60859         Add top-level Misc section and put host-os, perl, and uptime
60860         into it.
60861
60862 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60863
60864         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60865         now assume the stdint module.  Do not include inttypes.h.
60866         * lib/fsusage.h: Likewise.
60867         * lib/getndelim2.c: Likewise.
60868         * lib/human.h: Likewise.
60869         * lib/inttostr.h: Likewise.
60870         * lib/obstack.c: Likewise.
60871         * lib/regex_internal.h: Likewise.
60872         * lib/tempname.c: Likewise.
60873         * lib/utimecmp.c: Likewise.
60874         * lib/xstrtol.h: Likewise.
60875
60876         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60877
60878         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60879         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60880         * lib/xtime.h: Likewise.
60881
60882 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60883
60884         * modules/openat (Files): Add lib/fchmodat.c.
60885         Fixes problem reported by Jay Youngman.
60886
60887 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60888
60889         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60890         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60891
60892 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60893             Bruno Haible  <bruno@clisp.org>
60894
60895         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60896         and is a script that invokes bison. Tighten the code. Add comments.
60897
60898 2006-08-18  Jim Meyering  <jim@meyering.net>
60899
60900         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60901         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60902         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60903         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60904
60905 2006-08-18  Bruno Haible  <bruno@clisp.org>
60906
60907         * modules/bison-i18n: New file.
60908         * MODULES.html.sh (Internationalization functions): Add it.
60909
60910 2006-08-18  Bruno Haible  <bruno@clisp.org>
60911
60912         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60913         sys/statvfs.h. When getmntinfo was found, check its declaration and
60914         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60915
60916 2006-08-18  Bruno Haible  <bruno@clisp.org>
60917
60918         * m4/bison-i18n.m4: New file, from bison.
60919
60920 2006-08-18  Bruno Haible  <bruno@clisp.org>
60921
60922         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60923         (ME_DUMMY): Treat "kernfs" as a dummy.
60924         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60925
60926 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60927
60928         Update from coreutils.
60929
60930         2006-08-15  Jim Meyering  <jim@meyering.net>
60931
60932         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60933
60934         2006-01-17  Jim Meyering  <jim@meyering.net>
60935
60936         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60937
60938         2006-01-11  Jim Meyering  <jim@meyering.net>
60939
60940         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60941         Check for the lchmod function.
60942
60943 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60944
60945         Update from coreutils.
60946
60947         * lib/__fpending.h: Add copyright notice.
60948         * lib/fprintftime.h: Likewise.
60949         * lib/savedir.c: Use (C) in copyright notice.
60950         * lib/savedir.h: Likewise.
60951
60952         2006-08-15  Jim Meyering  <jim@meyering.net>
60953
60954         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60955         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60956         in support of the EXPECTED_ERRNO macro.
60957         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60958         definitions.  Instead, define the appropriate symbols and include
60959         "at-func.c".
60960         * lib/mkdirat.c (mkdirat): Likewise.
60961         * lib/fchmodat.c (fchmodat): Likewise.
60962         (ENOSYS): Remove definition.
60963         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60964         it.  Don't include "unistd--.h" -- it wasn't ever used.
60965
60966         2006-01-17  Jim Meyering  <jim@meyering.net>
60967
60968         Rewrite fts.c not to change the current working directory,
60969         by using openat, fstatat, fdopendir, etc..
60970
60971         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60972         (HAVE_OPENAT_SUPPORT): Define.
60973         [_LIBC] (fchdir): Don't undef or define; no longer used.
60974         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60975         Now, this `function' always succeeds, and consumes its file descriptor
60976         parameter -- so callers must not close such FDs.  Update callers.
60977         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60978         (diropen): Add parameter, SP.  Adjust all callers.
60979         Implement using diropen_fd, rather than open.
60980         (fts_open): Initialize new member, fts_cwd_fd.
60981         Remove fts_rft-setting code.
60982         (fts_close): Close fts_cwd_fd, if necessary.
60983         (__opendir2): Define in terms of opendir or opendirat,
60984         depending on whether the FST_NOCHDIR flag is set.
60985         (fts_build): Since fts_safe_changedir consumes its FD, and since
60986         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60987         and close the dup'd file descriptor upon failure.
60988         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60989         (fts_safe_changedir): Tweak semantics to reflect that this function
60990         now calls cwd_advance_fd and hence consumes its FD argument.
60991         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60992         [struct FTS] (fts_rft): Remove now-unused member.
60993         [struct FTS] (fts_cycle.state): Improve comment.
60994
60995         * lib/openat.c (openat_needs_fchdir): New function.
60996         * lib/openat.h (openat_needs_fchdir): Declare it.
60997
60998 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60999
61000         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61001         Problem and fix reported by Pádraig Brady in
61002         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61003
61004 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61005
61006         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61007
61008 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61009
61010         * lib/memcoll.c (memcoll): Optimize for the common case where the
61011         arguments are bytewise equal.
61012
61013 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61014
61015         * doc/regexprops-generic.texi: Add a copyright notice.
61016
61017 2006-08-15  Bruno Haible  <bruno@clisp.org>
61018
61019         * modules/tmpdir (License): Change to LGPL.
61020
61021 2006-08-15  Bruno Haible  <bruno@clisp.org>
61022
61023         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61024         module.
61025
61026 2006-08-14  Simon Josefsson  <jas@extundo.com>
61027
61028         * config/srclist.txt: Add gnupload.
61029
61030 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         Change copyright notice from LGPL 2 to GPL 2, since that's the
61033         standard form used in the gnulib repository.
61034         * tests/test-lock.c: Likewise.
61035         * tests/test-stdint.c: Likewise.
61036         * tests/test-tls.c: Likewise.
61037
61038         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61039         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61040         Add copyright notice.
61041
61042         * check-module: Add copyright notice.  Output a copyright
61043         notice if "--version" is specified.
61044         * modules/COPYING: New file.
61045         * tests/test-getaddrinfo.c: Add copyright notice.
61046         * tests/test-verify.c: Likewise.
61047
61048 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61049
61050         Change copyright notice from LGPL 2 to GPL 2, since that's the
61051         standard form used in the gnulib repository.
61052         * lib/lock.c: LGPL -> GPL.
61053         * lib/lock.h: Likewise.
61054         * lib/strnlen1.c: Likewise.
61055         * lib/strnlen1.h: Likewise.
61056         * lib/tls.c: Likewise.
61057         * lib/tls.h: Likewise.
61058         * lib/tmpdir.c: Likewise.
61059
61060         * lib/TODO: Remove; this belongs only in coreutils.
61061
61062 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         Add copyright notices to long-enough files that lack them, since
61065         otherwise the files aren't clearly free.  Use the same notice that
61066         getdate.texi already uses.
61067         * doc/alloca-opt.texi: Add copyright notice.
61068         * doc/alloca.texi: Likewise.
61069         * doc/ctime.texi: Likewise.
61070         * doc/functions.texi: Likewise.
61071         * doc/gcd.texi: Likewise.
61072         * doc/gnulib-tool.texi: Likewise.
61073         * doc/inet_ntoa.texi: Likewise.
61074         * doc/visibility.texi: Likewise.
61075
61076         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61077         * doc/quote.texi: Add copyright notice.
61078
61079         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61080         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61081         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61082         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61083         is now obsolete, and give a pointer to the Sun list.
61084         Add copyright notice.
61085
61086 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61087
61088         * config/srclistvars.sh: Add copyright notice.
61089
61090 2006-08-14  Eric Blake  <ebb9@byu.net>
61091
61092         Import the following change from libc:
61093
61094         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61095
61096         Upstream bug 2997.
61097         * lib/misc/error.c: Add space between program name and message if file
61098         name is missing.
61099
61100 2006-08-12  Karl Berry  <karl@gnu.org>
61101
61102         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61103         remove, these originate in gnulib now.
61104
61105 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61106
61107         * doc/Makefile (standards.info standards.html standards.dvi):
61108         Also depend on make-stds.texi.
61109
61110 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61113         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61114
61115         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61116         in wchar_t.  Problem reported by Eric Blake.
61117
61118         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61119         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61120         Also, help the compiler to keep LEN in a register.
61121
61122 2006-08-11  Eric Blake  <ebb9@byu.net>
61123
61124         * users.txt: Sort.  Add tar.
61125
61126 2006-08-11  Bruno Haible  <bruno@clisp.org>
61127
61128         * users.txt: New file.
61129
61130 2006-08-11  Bruno Haible  <bruno@clisp.org>
61131
61132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61133         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61134
61135 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         * modules/snprintf (Depends-on): Remove minmax.
61138         (Maintainer): Add self and Bruno.
61139
61140 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61141
61142         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61143         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61144         (EOVERFLOW): Define if the system does not.
61145         Do not include "minmax.h"; it wasn't used.
61146         (snprintf): Don't assume size_t promotes to an unsigned type.
61147         Fix bug when generated string was too long for the buffer: the
61148         buffer's contents are supposed to be the initial prefix of the
61149         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61150         exceeds INT_MAX; do the check ourselves.
61151
61152         Import the following changes from libc:
61153
61154         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61155
61156         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61157         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61158         set wc to the byte which couldn't be converted.
61159         (re_string_reconstruct): Don't clear valid_raw_len before calling
61160         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61161         tip_context using re_string_context_at.
61162
61163         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61164
61165         * lib/posix/regex.h: g++ still cannot handled [restrict].
61166
61167         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61168
61169         * lib/posix/regex.h: Remove special handling for VMS.
61170
61171 2006-08-10  Jim Meyering  <jim@meyering.net>
61172
61173         * modules/same-inode: New module.
61174         * modules/dev-ino: New module.
61175         * modules/cycle-check: Depend on these modules, rather than simply
61176         including their .h files.
61177         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61178         required via m4/cycle-check.m4.
61179         * modules/same: Depend on new same-inode module, rather than
61180         including same-inode.h.
61181         * modules/chdir-safer: New file.
61182
61183         * modules/chown (Depends-on): Add stat-macros.
61184
61185 2006-08-10  Jim Meyering  <jim@meyering.net>
61186
61187         * m4/cycle-check.m4: New file.
61188         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61189         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61190
61191 2006-08-10  Eric Blake  <ebb9@byu.net>
61192
61193         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61194         in from original proposal.
61195
61196 2006-08-10  Eric Blake  <ebb9@byu.net>
61197         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61198
61199         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61200         namespace.
61201
61202 2006-08-10  Bruno Haible  <bruno@clisp.org>
61203
61204         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61205         as well.
61206
61207 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61208
61209         Sync from coreutils.
61210
61211         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61212
61213         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61214         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61215
61216 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61217
61218         * modules/restrict: Remove; no longer needed now that we assume
61219         Autoconf 2.59 or later.
61220         * MODULES.html.sh: Remove 'restrict'.
61221         * modules/argp (Depends-on): Remove 'restrict'.
61222         * modules/base64 (Depends-on): Likewise.
61223         * modules/gc (Depends-on): Likewise.
61224         * modules/getaddrinfo (Depends-on): Likewise.
61225         * modules/glob (Depends-on): Likewise.
61226         * modules/inet_ntop (Depends-on): Likewise.
61227         * modules/inet_pton (Depends-on): Likewise.
61228         * modules/memxor (Depends-on): Likewise.
61229         * modules/regex (Depends-on): Likewise.
61230         * modules/strtok_r (Depends-on): Likewise.
61231         * modules/time_r (Depends-on): Likewise.
61232
61233 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61234
61235         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61236         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61237         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61238         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61239         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61240         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61241         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61242         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61243
61244         Merge from coreutils.
61245         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61246         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61247         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61248         * m4/time_r.m4 (gl_TIME_R): Likewise.
61249
61250 2006-08-09  Karl Berry  <karl@gnu.org>
61251
61252         * config/srclist.txt: no more gettext-tools, per Bruno.
61253
61254 2006-08-08  Eric Blake  <ebb9@byu.net>
61255
61256         * modules/verror: New module.
61257         * MODULES.html.sh: Document it.
61258
61259 2006-08-08  Eric Blake  <ebb9@byu.net>
61260
61261         * lib/verror.h, lib/verror.c: New files.
61262
61263 2006-08-08  Eric Blake  <ebb9@byu.net>
61264
61265         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61266         verror_at_line output complies with GNU Coding Standards even when
61267         file is NULL.
61268
61269 2006-08-07  Bruno Haible  <bruno@clisp.org>
61270
61271         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61272         versions of AIX.
61273         Reported by Ralf Wildenhues.
61274
61275 2006-08-07  Bruno Haible  <bruno@clisp.org>
61276
61277         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61278         in an AC_DEFUN. Needed so that the autoconf snippets can use
61279         AC_REQUIRE.
61280
61281 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61282
61283         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61284         Initialize pkgdata_DATA.
61285         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61286         overriding it.
61287
61288 2006-08-06  Eric Blake  <ebb9@byu.net>
61289
61290         * lib/error.h: Fold in some upstream changes from glibc.
61291         * lib/error.c: Likewise.
61292
61293 2006-08-04  Bruno Haible  <bruno@clisp.org>
61294
61295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61296         Make the mostlyclean-local rule depend on mostlyclean-generic.
61297         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61298
61299 2006-07-31  Bruno Haible  <bruno@clisp.org>
61300
61301         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61302         <stdlib.h>, <string.h>.
61303
61304 2006-07-30  Bruno Haible  <bruno@clisp.org>
61305
61306         * modules/readlink (License): Change to LGPL.
61307
61308 2006-07-30  Bruno Haible  <bruno@clisp.org>
61309
61310         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61311         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61312         set PKGDATADIR to point to it.
61313
61314 2006-07-30  Bruno Haible  <bruno@clisp.org>
61315
61316         * modules/csharpexec (configure.ac): Comment out macro invocation.
61317         * modules/javaexec (configure.ac): Likewise.
61318         * modules/javacomp-script (configure.ac): Likewise.
61319
61320         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61321
61322 2006-07-30  Bruno Haible  <bruno@clisp.org>
61323
61324         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61325         linked-list.
61326
61327 2006-07-30  Bruno Haible  <bruno@clisp.org>
61328
61329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61330
61331 2006-07-30  Bruno Haible  <bruno@clisp.org>
61332
61333         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61334         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61335         get removed.
61336
61337 2006-07-29  Bruno Haible  <bruno@clisp.org>
61338
61339         Make it possible for gnulib-tool to work with locally modified or
61340         augmented gnulib repositories.
61341         * gnulib-tool (func_usage): Document --local-dir option.
61342         (local_gnulib_dir): New variable.
61343         Handle --local-dir option.
61344         (func_lookup_file): New function.
61345         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61346         (func_get_description, func_get_filelist, func_get_description,
61347         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61348         func_get_automake_snippet, func_get_include_directive,
61349         func_get_license, func_get_maintainer): Use func_lookup_file.
61350         (func_import, func_create_testdir): Use func_lookup_file.
61351
61352 2006-07-29  Bruno Haible  <bruno@clisp.org>
61353
61354         * modules/setenv (Depends-on): Add unistd.
61355
61356 2006-07-29  Bruno Haible  <bruno@clisp.org>
61357
61358         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61359
61360 2006-07-29  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61363
61364 2006-07-29  Bruno Haible  <bruno@clisp.org>
61365
61366         * gnulib-tool (import, update): If there is no Makefile.am, look at
61367         aclocal.m4, instead of bailing out.
61368
61369 2006-07-29  Bruno Haible  <bruno@clisp.org>
61370
61371         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61372         Categorize the options by when they are useful.
61373
61374 2006-07-29  Bruno Haible  <bruno@clisp.org>
61375
61376         * gnulib-tool (func_usage): Document option --no-libtool.
61377         Handle option --no-libtool.
61378         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61379         for changed semantics of $libtool variable.
61380         (func_import): Likewise. If libtool is not used, show this through
61381         an option --no-libtool.
61382         (func_create_testdir): Update.
61383
61384 2006-07-29  Bruno Haible  <bruno@clisp.org>
61385
61386         * gnulib-tool (func_import): Extend error message about missing
61387         --doc-base.
61388
61389 2006-07-29  Bruno Haible  <bruno@clisp.org>
61390
61391         * gnulib-tool (func_import): Don't create the $docbase directory if
61392         there is no file to store there.
61393
61394 2006-07-29  Bruno Haible  <bruno@clisp.org>
61395
61396         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61397         relevant, look for configure.ac there, not in the current directory.
61398         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61399
61400 2006-07-29  Bruno Haible  <bruno@clisp.org>
61401
61402         * gnulib-tool (SORT): New variable.
61403         (func_usage): Undocument --assume-autoconf option.
61404         Remove --assume-autoconf option handling.
61405         (autoconf_minversion): Determine from the contents of configure.ac.
61406         (func_import): Remove autoconf_minversion handling.
61407         Suggested by Eric Blake.
61408
61409 2006-07-29  Bruno Haible  <bruno@clisp.org>
61410
61411         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61412
61413 2006-07-29  Bruno Haible  <bruno@clisp.org>
61414
61415         * config/srclist.txt (*setenv.[ch]): Remove rules.
61416
61417 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61418
61419         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61420
61421 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61422
61423         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61424         arpa/inet.h.
61425
61426 2006-07-28  Simon Josefsson  <jas@extundo.com>
61427
61428         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61429         * modules/inet_pton (Depends-on): Likewise.
61430
61431 2006-07-28  Simon Josefsson  <jas@extundo.com>
61432
61433         * m4/netinet_in_h.m4: New file.
61434
61435 2006-07-28  Simon Josefsson  <jas@extundo.com>
61436
61437         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61438         #include's.
61439
61440 2006-07-28  Simon Josefsson  <jas@extundo.com>
61441
61442         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61443         #include's.
61444
61445 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61446
61447         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61448         setgid on directories only if they set these bits.
61449         * lib/modechange.h: Remove obsolete comment about masks.
61450
61451 2006-07-28  Eric Blake  <ebb9@byu.net>
61452
61453         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61454         macro expansion.
61455
61456 2006-07-28  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61459
61460 2006-07-28  Bruno Haible  <bruno@clisp.org>
61461
61462         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61463
61464 2006-07-28  Bruno Haible  <bruno@clisp.org>
61465
61466         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61467         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61468         Define fallbacks.
61469         Avoids link error on FreeBSD 4.x.
61470         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61471
61472         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61473         encoding.
61474         * lib/mbswidth.c (iswcntrl): Likewise.
61475
61476 2006-07-27  Bruno Haible  <bruno@clisp.org>
61477
61478         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61479         test.
61480
61481 2006-07-27  Bruno Haible  <bruno@clisp.org>
61482
61483         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61484         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61485         defined.
61486
61487 2006-07-26  Eric Blake  <ebb9@byu.net>
61488
61489         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61490
61491 2006-07-26  Eric Blake  <ebb9@byu.net>
61492
61493         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61494         like mingw that lack mkstemp.
61495         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61496         avoid compilation warning on mingw.
61497
61498 2006-07-26  Bruno Haible  <bruno@clisp.org>
61499
61500         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61501         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61502         INT_FAST*_MIN, INTPTR_MIN.
61503
61504 2006-07-25  Bruno Haible  <bruno@clisp.org>
61505
61506         * modules/version-etc (Depends-on): Add stdarg.
61507
61508 2006-07-25  Bruno Haible  <bruno@clisp.org>
61509
61510         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61511         complex commands.
61512
61513 2006-07-25  Bruno Haible  <bruno@clisp.org>
61514
61515         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61516         defined in <stdarg.h> or config.h.
61517
61518 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61521         (gl_STDIO_SAFER): Remove.
61522
61523 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61524
61525         * MODULES.html.sh (File stream based Input/Output):
61526         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61527         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61528         * modules/fopen-safer, modules/tmpfile-safer: New files.
61529         * modules/stdio-safer: Remove.
61530
61531 2006-07-24  Bruno Haible  <bruno@clisp.org>
61532
61533         * modules/tmpdir: New file.
61534         * MODULES.html.sh (File system functions): Add it.
61535
61536 2006-07-24  Bruno Haible  <bruno@clisp.org>
61537
61538         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61539         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61540
61541 2006-07-24  Bruno Haible  <bruno@clisp.org>
61542
61543         * modules/clean-temp: New file.
61544
61545 2006-07-24  Bruno Haible  <bruno@clisp.org>
61546
61547         * m4/tmpdir.m4: New file, from GNU gettext.
61548
61549 2006-07-24  Bruno Haible  <bruno@clisp.org>
61550
61551         * lib/tmpdir.h: New file, from GNU gettext.
61552         * lib/tmpdir.c: New file, from GNU gettext.
61553
61554 2006-07-24  Bruno Haible  <bruno@clisp.org>
61555
61556         * lib/clean-temp.h: New file, from GNU gettext.
61557         * lib/clean-temp.c: New file, from GNU gettext.
61558
61559 2006-07-23  Eric Blake  <ebb9@byu.net>
61560
61561         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61562         (Depends-on): Add binary-io.
61563
61564 2006-07-23  Eric Blake  <ebb9@byu.net>
61565
61566         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61567
61568 2006-07-23  Eric Blake  <ebb9@byu.net>
61569
61570         * lib/tmpfile-safer.c: New file.
61571         * lib/stdio-safer.h (fopen_safer): Add prototype.
61572         * lib/stdio--.h (tmpfile): Make safer.
61573
61574 2006-07-23  Bruno Haible  <bruno@clisp.org>
61575
61576         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61577         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61578         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61579         gl_linked_remove_at): Use it.
61580
61581 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61582         and Simon Josefsson <jas@extundo.com>
61583
61584         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61585
61586         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61587
61588 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61589
61590         * modules/close-stream: New file.
61591         * modules/closeout (Description): Make it clear that it exits
61592         with a diagnostic on error.
61593         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61594         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61595
61596 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61597
61598         * m4/close-stream.m4: New file.
61599
61600 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         * lib/close-stream.c, lib/close-stream.h: New files.
61603
61604 2006-07-22  Bruno Haible  <bruno@clisp.org>
61605
61606         Merge from GNU gettext 0.15.
61607
61608         2006-05-01  Bruno Haible  <bruno@clisp.org>
61609
61610                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61611
61612         2006-07-22  Bruno Haible  <bruno@clisp.org>
61613
61614                 * modules/javaversion: New file.
61615                 * MODULES.html.sh (Java): Add javaversion.
61616
61617         2006-03-12  Bruno Haible  <bruno@clisp.org>
61618
61619                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61620
61621         2005-12-04  Bruno Haible  <bruno@clisp.org>
61622
61623                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61624                 (untested).
61625
61626         2006-06-21  Bruno Haible  <bruno@clisp.org>
61627
61628                 Avoid warnings from recent versions of mcs.
61629                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61630                 -o, -L, -r any more. Use options documented since mcs-1.0
61631                 instead. Similarly for -g.
61632
61633         2005-12-04  Bruno Haible  <bruno@clisp.org>
61634
61635                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61636                 .resources, not .resource.
61637
61638         2005-07-09  Bruno Haible  <bruno@clisp.org>
61639
61640                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61641                 add a .dll suffix.
61642                 Reported by Mark Junker <mjscod@gmx.de>.
61643
61644         2006-07-22  Bruno Haible  <bruno@clisp.org>
61645
61646                 * modules/gettext: Upgrade to gettext-0.15.
61647                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61648                 m4/visibility.m4.
61649                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61650
61651 2006-07-22  Bruno Haible  <bruno@clisp.org>
61652
61653         Merge from GNU gettext 0.15.
61654
61655         2006-03-25  Bruno Haible  <bruno@clisp.org>
61656
61657                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61658
61659         2006-07-21  Bruno Haible  <bruno@clisp.org>
61660
61661                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61662                 "1.1".
61663
61664         2006-05-09  Bruno Haible  <bruno@clisp.org>
61665
61666                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61667                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61668                 for the conftestver execution.
61669
61670         2006-05-01  Bruno Haible  <bruno@clisp.org>
61671
61672                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61673                 optional target-version argument. Verify that the compiler
61674                 groks source of the specified source-version, or add -source
61675                 option as necessary. Verify that the compiler produces
61676                 bytecode in the specified target-version, or add -target and
61677                 -source options as necessary. Make the result of the test
61678                 available as variable CONF_JAVAC. Also log error output in
61679                 config.log.
61680
61681         2006-03-11  Bruno Haible  <bruno@clisp.org>
61682
61683                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61684
61685         2006-05-09  Bruno Haible  <bruno@clisp.org>
61686
61687                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61688                 CLASSPATH_SEPARATOR to a semicolon.
61689
61690         2006-03-12  Bruno Haible  <bruno@clisp.org>
61691
61692                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61693                 available as variable CONF_JAVA, for subsequent autoconf
61694                 tests. Also log error output in config.log.
61695
61696         2006-07-19  Bruno Haible  <bruno@clisp.org>
61697
61698                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61699                 that getline works on glibc2 systems. Needed to avoid trouble
61700                 in relocatable.c.
61701                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61702
61703         2005-12-04  Bruno Haible  <bruno@clisp.org>
61704
61705                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61706                 launcher (untested).
61707
61708         2005-12-04  Bruno Haible  <bruno@clisp.org>
61709
61710                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61711
61712         2006-07-22  Bruno Haible  <bruno@clisp.org>
61713
61714                 * gettext.m4: Update from GNU gettext-0.15.
61715                 * nls.m4: Likewise.
61716                 * po.m4: Likewise.
61717                 * inttypes-pri.m4: Likewise.
61718                 * inttypes-h.m4: Renamed from inttypes.m4.
61719                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61720
61721 2006-07-22  Bruno Haible  <bruno@clisp.org>
61722
61723         Merge from GNU gettext 0.15.
61724
61725         2005-07-05  Bruno Haible  <bruno@clisp.org>
61726
61727                 * printf-args.c (printf_fetchargs): Work around broken
61728                 definition of wint_t on mingw.
61729
61730         2005-02-12  Bruno Haible  <bruno@clisp.org>
61731
61732                 * xallocsa.h: Add extern "C" for C++.
61733
61734         2006-05-17  Bruno Haible  <bruno@clisp.org>
61735
61736                 Cygwin portability.
61737                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61738
61739         2006-04-30  Bruno Haible  <bruno@clisp.org>
61740
61741                 * progreloc.c: Include <mach-o/dyld.h> if available.
61742                 (find_executable): Use _NSGetExecutablePath when possible.
61743
61744         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61745
61746                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61747                 function.
61748
61749         2005-12-29  Bruno Haible  <bruno@clisp.org>
61750
61751                 * progreloc.c (set_program_name_and_installdir): Fix
61752                 compilation error.
61753
61754         2005-12-04  Bruno Haible  <bruno@clisp.org>
61755
61756                 Cygwin portability.
61757                 * progreloc.c: Include <windows.h> also on Cygwin.
61758                 (find_executable): Add support for Cygwin.
61759                 (set_program_name_and_installdir): Handle also platforms with
61760                 nonempty EXEEXT.
61761
61762         2006-07-11  Bruno Haible  <bruno@clisp.org>
61763
61764                 * javacomp.c: Fix a comment.
61765                 Reported by Jim Meyering.
61766
61767         2006-04-30  Bruno Haible  <bruno@clisp.org>
61768
61769                 * javacomp.h (compile_java_class): Add source_version,
61770                 target_version arguments.
61771                 * javacomp.c: Rewritten to choose only a compiler that
61772                 respects the specified source_version and target_version.
61773
61774         2006-06-27  Bruno Haible  <bruno@clisp.org>
61775
61776                 Assume correct S_ISDIR macro.
61777                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61778
61779         2006-07-22  Bruno Haible  <bruno@clisp.org>
61780
61781                 * javaversion.h: New file, from GNU gettext.
61782                 * javaversion.c: New file, from GNU gettext.
61783                 * javaversion.java: New file, from GNU gettext.
61784                 * javaversion.class: New file, from GNU gettext.
61785
61786         2006-05-17  Bruno Haible  <bruno@clisp.org>
61787
61788                 Cygwin portability.
61789                 * javaexec.c (execute_java_class): Test for jview program
61790                 also on Cygwin.
61791
61792         2006-04-09  Bruno Haible  <bruno@clisp.org>
61793
61794                 * fatal-signal.c: Don't include string.h.
61795                 (at_fatal_signal): Use a copying loop instead of memcpy.
61796
61797         2005-12-04  Bruno Haible  <bruno@clisp.org>
61798
61799                 * csharpexec.c: Add support for 'clix' launcher (untested).
61800                 (execute_csharp_using_sscli): New function.
61801                 (execute_csharp_program): Call it.
61802
61803         2006-06-21  Bruno Haible  <bruno@clisp.org>
61804
61805                 Avoid warnings from recent versions of mcs.
61806                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61807                 -o, -L, -r any more. Use options documented since mcs-1.0
61808                 instead. Similarly for -g.
61809
61810         2005-07-09  Bruno Haible  <bruno@clisp.org>
61811
61812                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61813                 add a .dll suffix.
61814                 Reported by Mark Junker <mjscod@gmx.de>.
61815
61816         2006-06-17  Bruno Haible  <bruno@clisp.org>
61817
61818                 * config.charset: Update for NetBSD 3.0.
61819
61820         2006-05-17  Bruno Haible  <bruno@clisp.org>
61821
61822                 Cygwin portability.
61823                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61824
61825         2006-05-16  Bruno Haible  <bruno@clisp.org>
61826
61827                 * localcharset.c [CYGWIN]: Include <windows.h>.
61828                 (get_charset_aliases): For Cygwin, return the same CPxxx
61829                 aliases list as under WIN32.
61830                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61831                 the environment variables. Fall back to GetACP().
61832
61833         2006-04-05  Bruno Haible  <bruno@clisp.org>
61834
61835                 * config.charset: Update Juan Manuel Guerrero's address.
61836
61837         2005-02-12  Bruno Haible  <bruno@clisp.org>
61838
61839                 * allocsa.h: Add extern "C" for C++.
61840
61841         2005-02-10  Bruno Haible  <bruno@clisp.org>
61842
61843                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61844                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61845
61846         2006-07-22  Bruno Haible  <bruno@clisp.org>
61847
61848                 * gettext.h: Update to GNU gettext-0.15.
61849
61850 2006-07-22  Bruno Haible  <bruno@clisp.org>
61851
61852         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61853         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61854         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61855
61856 2006-07-21  Eric Blake  <ebb9@byu.net>
61857
61858         * modules/stdlib-safer: New file.
61859         * MODULES.html.sh (File stream based Input/Output): Add
61860         stdlib-safer.
61861
61862 2006-07-21  Eric Blake  <ebb9@byu.net>
61863
61864         * lib/stdlib-safer.h: New file from coreutils, required by
61865         stdlib--.h.
61866
61867 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61868
61869         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61870
61871 2006-07-20  Bruno Haible  <bruno@clisp.org>
61872
61873         * gnulib-tool: Recognize new option --assume-autoconf.
61874         (autoconf_minversion): New variable.
61875         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61876
61877 2006-07-20  Bruno Haible  <bruno@clisp.org>
61878
61879         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61880
61881 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61882
61883         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61884         Reindent and repaginate.
61885
61886 2006-07-19  Derek Price  <derek@ximbiot.com>
61887
61888         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61889         Correct grammar.
61890
61891 2006-07-17  Bruno Haible  <bruno@clisp.org>
61892
61893         * modules/list: New file.
61894         * modules/array-list: New file.
61895         * modules/carray-list, modules/carray-list-tests: New files.
61896         * modules/linked-list, modules/linked-list-tests: New files.
61897         * modules/avltree-list, modules/avltree-list-tests: New files.
61898         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61899         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61900         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61901         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61902         * modules/oset: New file.
61903         * modules/array-oset: New file.
61904         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61905         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61906         * tests/test-carray_list.c: New file.
61907         * tests/test-linked_list.c: New file.
61908         * tests/test-avltree_list.c: New file.
61909         * tests/test-rbtree_list.c: New file.
61910         * tests/test-linkedhash_list.c: New file.
61911         * tests/test-avltreehash_list.c: New file.
61912         * tests/test-rbtreehash_list.c: New file.
61913         * tests/test-avltree_oset.c: New file.
61914         * tests/test-rbtree_oset.c: New file.
61915         * MODULES.html.sh (Container data structures): New section.
61916
61917 2006-07-17  Bruno Haible  <bruno@clisp.org>
61918
61919         * m4/gl_list.m4: New file.
61920
61921 2006-07-17  Bruno Haible  <bruno@clisp.org>
61922
61923         * lib/gl_list.h: New file.
61924         * lib/gl_list.c: New file.
61925         * lib/gl_array_list.h: New file.
61926         * lib/gl_array_list.c: New file.
61927         * lib/gl_carray_list.h: New file.
61928         * lib/gl_carray_list.c: New file.
61929         * lib/gl_linked_list.h: New file.
61930         * lib/gl_linked_list.c: New file.
61931         * lib/gl_anylinked_list1.h: New file.
61932         * lib/gl_anylinked_list2.h: New file.
61933         * lib/gl_avltree_list.h: New file.
61934         * lib/gl_avltree_list.c: New file.
61935         * lib/gl_anyavltree_list1.h: New file.
61936         * lib/gl_anyavltree_list2.h: New file.
61937         * lib/gl_rbtree_list.h: New file.
61938         * lib/gl_rbtree_list.c: New file.
61939         * lib/gl_anyrbtree_list1.h: New file.
61940         * lib/gl_anyrbtree_list2.h: New file.
61941         * lib/gl_anytree_list1.h: New file.
61942         * lib/gl_anytree_list2.h: New file.
61943         * lib/gl_linkedhash_list.h: New file.
61944         * lib/gl_linkedhash_list.c: New file.
61945         * lib/gl_anyhash_list1.h: New file.
61946         * lib/gl_anyhash_list2.h: New file.
61947         * lib/gl_avltreehash_list.h: New file.
61948         * lib/gl_avltreehash_list.c: New file.
61949         * lib/gl_rbtreehash_list.h: New file.
61950         * lib/gl_rbtreehash_list.c: New file.
61951         * lib/gl_anytreehash_list1.h: New file.
61952         * lib/gl_anytreehash_list2.h: New file.
61953
61954         * lib/gl_oset.h: New file.
61955         * lib/gl_oset.c: New file.
61956         * lib/gl_array_oset.h: New file.
61957         * lib/gl_array_oset.c: New file.
61958         * lib/gl_avltree_oset.h: New file.
61959         * lib/gl_avltree_oset.c: New file.
61960         * lib/gl_rbtree_oset.h: New file.
61961         * lib/gl_rbtree_oset.c: New file.
61962         * lib/gl_anytree_oset.h: New file.
61963
61964 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61965
61966         * m4/mkancesdirs.m4: New file.
61967         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61968         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61969         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61970         it.
61971
61972 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61973
61974         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61975         * lib/mkancesdirs.h: New files.
61976         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61977         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61978         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61979         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61980         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61981         callers changed.  Revamp internals significantly, by not
61982         attempting to create directories that are temporarily more
61983         permissive than the final results.  Do not attempt to use
61984         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61985         This removes some race conditions, fixes some bugs, and simplifies
61986         things.  Use new dirchownmod function to do owner and mode changes.
61987         * lib/mkdir-p.h: Likewise.
61988         * lib/modechange.c (octal_to_mode): New function.
61989         (struct mode_change): New member mentioned.
61990         (make_node_op_equals): New arg mentioned.  All callers changed.
61991         (mode_compile): Keep track of which mode bits the user has explicitly
61992         mentioned.
61993         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61994         New arg PMODE_BITS, to keep track of which mode bits the user
61995         mentioned; it treats S_ISUID and S_ISGID speciall.
61996         All callers changed.
61997         * lib/modechange.h: Likewise.
61998
61999 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         * MODULES.html.sh: Add mkancestors.
62002         * modules/mkancesdirs: New module.
62003         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62004         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62005         The chdir-safer and afs files are now orphans; I'll remove them
62006         unless someone speaks up.
62007         Add lib/dirchownmod.c, lib/dirchownmod.h.
62008         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62009         Add lchown, mkancesdirs.
62010         (Maintainer): Add self.
62011
62012 2006-07-15  Karl Berry  <karl@gnu.org>
62013
62014         * gnulib-tool: help message wording/arrangement.
62015
62016 2006-07-14  Simon Josefsson  <jas@extundo.com>
62017
62018         * doc/gnulib.texi (Libtool and Windows): New section.
62019
62020 2006-07-12  Simon Josefsson  <jas@extundo.com>
62021
62022         * modules/gendocs (License): Fix license, approved by Karl.
62023
62024 2006-07-12  Eric Blake  <ebb9@byu.net>
62025
62026         * MODULES.html.sh: Add gendocs.
62027
62028 2006-07-11  Eric Blake  <ebb9@byu.net>
62029
62030         * modules/fdl: New module, to install doc/fdl.texi.
62031         * MODULES.html.sh: Add new section for documentation modules.
62032         * gnulib-tool: Avoid space-tab.
62033         (--doc-base): New option, to manage files from doc.
62034
62035 2006-07-11  Eric Blake  <ebb9@byu.net>
62036
62037         * m4/absolute-header.m4: Fix comments to match recent change.
62038
62039 2006-07-11  Eric Blake  <ebb9@byu.net>
62040
62041         * gnulib-tool: List --doc-base before --tests-base.
62042
62043 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62044
62045         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62046
62047 2006-07-11  Bruno Haible  <bruno@clisp.org>
62048
62049         * README: Mention where to put documentation.
62050
62051 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62052
62053         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62054
62055 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62058         to stdint.m4.
62059
62060 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62061
62062         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62063         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62064         "no/such/file/stdint.h" when there is no such file, so that
62065         the resulting C code can be parsed by dodgy compilers.
62066         Problems reported by Bob Proulx.
62067
62068 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62069
62070         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62071         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62072         macros into the GNU _D_EXACT_NAMLEN.
62073         * lib/savedir.c:  Likewise.
62074         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62075
62076 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62077         and Paul Eggert  <eggert@cs.ucla.edu>
62078
62079         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62080         * m4/savedir.m4:
62081         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62082         macros into the GNU _D_EXACT_NAMLEN.
62083
62084 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62085
62086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62087         around the absolute name, to work around a problem with the HP-UX
62088         11.23 native C compiler, reported by Bob Proulx.
62089
62090 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62091
62092         * doc/maintain.texi, make-stds.texi: Sync from
62093         <http://savannah.gnu.org/projects/gnustandards>.
62094
62095 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62096
62097         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62098
62099 2006-07-09  Jim Meyering  <jim@meyering.net>
62100
62101         * m4/glob.m4: Remove a doubled word in a comment.
62102
62103 2006-07-09  Jim Meyering  <jim@meyering.net>
62104
62105         * lib/argp-pv.c: Remove a doubled word in a comment.
62106         * lib/check-version.c (check_version): Likewise.
62107         * lib/javacomp.c (compile_java_class): Likewise.
62108
62109 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62110
62111         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62112         for the benefit of people using Autoconf 2.60.  If you want to
62113         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62114         (or m4/onceonly.m4, if pre-2.57) manually.
62115
62116 2006-07-08  Jim Meyering  <jim@meyering.net>
62117
62118         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62119         comment.
62120         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62121         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62122         comment.
62123
62124 2006-07-08  Jim Meyering  <jim@meyering.net>
62125
62126         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62127
62128 2006-07-07  Simon Josefsson  <jas@extundo.com>
62129
62130         * tests/test-crc.c: Change expected crc value, the test vector
62131         were probably computed using the old broken crc.c?
62132
62133 2006-07-06  Simon Josefsson  <jas@extundo.com>
62134
62135         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62136         now the canonical place for the M4 file).
62137
62138         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62139         from the sys_socket dependency now.
62140
62141         * modules/inet_pton (Files): Ditto.
62142
62143         * modules/inet_ntop (Files): Ditto.
62144
62145 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62146
62147         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62148         not gl_PREREQ_GETUSERSHELL.
62149
62150 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62151
62152         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62153         with only one argument, for Autoconf 2.60.
62154         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62155         expand to nothing, so add a shell command to avoid syntax error.
62156         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62157
62158 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62159
62160         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62161
62162 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62163
62164         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62165         no longer needed.  Check for isblank decl.
62166         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62167         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62168         of existence.
62169
62170 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62171
62172         * lib/getloadavg.c: Use __VMS, not VMS.
62173         * lib/getopt.c: Likewise.
62174         * lib/getpagesize.h: Likewise.
62175         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62176         and probably does not work.
62177
62178 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62179
62180         * lib/.cppi-disable: Add wcwidth.
62181         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62182         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62183         (ISGRAPH): Remove.  All uses changed to isgraph.
62184         (FOLD) [!defined _LIBC]: Remove special case.
62185         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62186         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62187         HAVE_ISBLANK.
62188         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62189         case.
62190
62191 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62192
62193         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62194         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62195         brackets.  Other minor changes to suppress some compiler
62196         warnings.
62197
62198 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62199         and Paul Eggert  <eggert@cs.ucla.edu>
62200
62201         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62202         of invoking obsolescent AC_HEADER_DIRENT macro.
62203         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62204         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62205         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62206         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62207         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62208         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62209         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62210         * m4/readdir.m4: Remove; no longer needed.
62211
62212 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62213         and Paul Eggert  <eggert@cs.ucla.edu>
62214
62215         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62216         Don't worry about this obsolete case any more.
62217         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62218         directories.
62219         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62220         worry about this obsolete case any more.
62221         * lib/fts.c: Likewise.
62222         * lib/getcwd.c: Likewise.
62223         * lib/glob.h: Likewise.
62224         * lib/savedir.c: Likewise.
62225
62226 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62227
62228         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62229         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62230         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62231         needed.
62232         All uses removed.
62233         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62234         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62235         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62236         needed.
62237         * m4/getdate.m4 (gl_GETDATE): Likewise.
62238         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62239         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62240         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62241         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62242         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62243         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62244         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62245         needed.
62246
62247 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62248
62249         * lib/memcasecmp.c: Include <limits.h>.
62250         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62251         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62252         Don't assume isdigit succeeds only on '0' through '9'.
62253
62254 2006-07-05  Eric Blake  <ebb9@byu.net>
62255
62256         * modules/getaddrinfo (Depends-on): Add snprintf.
62257
62258 2006-07-05  Eric Blake  <ebb9@byu.net>
62259
62260         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62261         to avoid 'header present but could not be compiled' on cygwin.
62262
62263 2006-07-05  Eric Blake  <ebb9@byu.net>
62264
62265         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62266         missing from netdb.h.
62267         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62268
62269 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62270
62271         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62272         no longer needed.
62273         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62274         * m4/getdate.m4 (gl_GETDATE): Likewise.
62275         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62276         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62277         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62278         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62279         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62280
62281 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62282
62283         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62284         All uses of is_space replaced by isspace.
62285         * lib/exit.h: Don't talk about STDC_HEADERS.
62286         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62287         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62288         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62289         replaced by isprint etc.
62290         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62291         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62292         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62293         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62294         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62295         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62296
62297 2006-07-05  Bruno Haible  <bruno@clisp.org>
62298
62299         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62300         the function exists, before testing against AIX.
62301         Reported by Martin Lambers <marlam@marlam.de>.
62302
62303 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62304
62305         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62306         From Mark D. Baushke.
62307
62308 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62309
62310         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62311         to the absolute name, not just one, to bypass Sun C 5.8's
62312         "warning: #include of /usr/include/... may be non-portable".
62313
62314 2006-07-04  Eric Blake  <ebb9@byu.net>
62315
62316         * modules/dirname-tests: New test module.
62317         * tests/test-dirname.c: New file, replacing dirname.c
62318         TEST_DIRNAME section that was recently deleted.
62319
62320 2006-07-04  Bruno Haible  <bruno@clisp.org>
62321
62322         Assume ANSI C header files and <ctype.h> functions.
62323         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62324         (mbsnwidth): Use isprint, iscntrl instead.
62325
62326 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62327
62328         Merge from coreutils.
62329         * MODULES.html.sh: Add xstrtold.
62330         * modules/xstrtold: New file.
62331         * modules/cycle-check (Files): Add lib/same-inode.h.
62332         * modules/dirname (Files): Add m4/double-slash-root.m4.
62333         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62334         * modules/mkdir-p (Files): Add lib/same-inode.h.
62335         * modules/same (Files): Add lib/same-inode.h.
62336
62337 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62338
62339         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62340         This is to keep the terminology clean; POSIX talks about
62341         "absolute pathnames", not "full pathnames", but the GNU
62342         Coding Standards say to use "path" for something else;
62343         so use "absolute" to keep both sides happy.
62344         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62345         Set gl_absolute_header, not gl_full_header_path.
62346         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62347         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62348         All uses changed.
62349
62350         Merge from coreutils.
62351
62352         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62353
62354         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62355         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62356         want to require the building of c-strtod.o.
62357         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62358         needs -lm directly.
62359         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62360
62361         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62362
62363         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62364         --as-needed option if available.  Problem reported by Albert Chin in
62365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62366         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62367         cc merely issues a bunch of annoying warnings for --as-needed
62368         (this problem was reported by Bob Proulx).  Also, try linking with
62369         -lm to detect a bug in binutils 2.16 (this problem was reported
62370         by Ralf Wildenhues).
62371
62372         2006-06-18  Jim Meyering  <jim@meyering.net>
62373
62374         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62375         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62376         macro.
62377         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62378         also check for glibc-2.4's abort-inducing bug.
62379
62380         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62381         Low-probability clean-up should be to use rmdir to get rid of
62382         the just-created directory, not unlink.
62383
62384         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62385         configure fail, and request a bug report to inform us about it.
62386         Add a comment that, barring reports to the contrary, in 2007 we'll
62387         assume ftruncate is universally available.
62388
62389         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62390
62391         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62392
62393         2006-03-12  Jim Meyering  <jim@meyering.net>
62394
62395         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62396         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62397         * m4/same.m4 (gl_SAME): Likewise.
62398         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62399
62400         2006-03-11  Eric Blake  <ebb9@byu.net>
62401
62402         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62403         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62404         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62405         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62406
62407 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62408
62409         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62410         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62411         reported by Mark D. Baushke, one in
62412         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62413
62414         Merge from coreutils.
62415
62416         * lib/.cppi-disable: Add stdint_.h.
62417         * lib/.cvsignore: Add stdint.h.
62418
62419         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62420
62421         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62422         both double and long double versions.
62423         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62424         * lib/xstrtold.c: New file.
62425         * lib/xstrtod.h (xstrtold): New decl.
62426
62427         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62428
62429         * lib/filemode.c (setst): Remove.
62430         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62431         (arguably) clearer, and the generated code is a bit smaller on my
62432         Debian GNU/Linux stable x86 host.
62433
62434         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62437         Assume that filemode.h includes sys/types.h and sys/stat.h.
62438         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62439         (ftypelet): Reorder to put common cases first, for efficiency.
62440         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62441         to do 'M'.
62442         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62443         of 10, for compatibility with FreeBSD.  All callers changed.
62444         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62445         types that can't be deduced solely from st_mode.  First arg is now a
62446         const pointer.
62447         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62448         (strmode): Renamed from mode_string.
62449         (filemodestring): New decl.
62450         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62451         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62452         needed.
62453         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62454
62455         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62456
62457         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62458         fsusage.h now does that.  Include fsusage.h first, to test interface.
62459         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62460         at most one method (the old code could have generated decls that
62461         didn't conform to C89, not that this was ever exercised).
62462         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62463
62464         2006-03-19  Jim Meyering  <jim@meyering.net>
62465
62466         Work even in a chroot where d_ino values for entries in "/"
62467         don't match the stat.st_ino values for the same names.
62468         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62469         number, iterate through all entries again, using lstat instead.
62470         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62471         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62472
62473         * lib/getcwd.c (__getcwd): Clarify a comment.
62474         Use memcpy in place of a call to strcpy.
62475
62476         2006-03-12  Jim Meyering  <jim@meyering.net>
62477
62478         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62479         matches that of the current directory (which we're about to chdir ".."
62480         out of), then save the dev-ino of the parent, instead.
62481
62482         * lib/same-inode.h (SAME_INODE): New file/macro.
62483         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62484         Include "same-inode.h", instead.
62485         * lib/same.c: Likewise.
62486         * lib/cycle-check.h: Include "same-inode.h".
62487         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62488         * lib/cycle-check.c (SAME_INODE): Remove definition.
62489         * lib/root-dev-ino.h: Include "same-inode.h".
62490
62491         2006-03-11  Eric Blake  <ebb9@byu.net>
62492
62493         * lib/same.c (same_name): s/base_name/last_component/
62494         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62495         * lib/filenamecat.c (file_name_concat): Likewise.
62496
62497         2006-03-11  Eric Blake  <ebb9@byu.net>,
62498                     Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62501         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62502         drive prefix.
62503         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62504         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62505         (last_component): New method.
62506         * lib/dirname.c (dir_len): Determine when drive letters need a
62507         subsequent slash.  Preserve // when it is special.
62508         (dir_name): Don't append dot when drive letter is absolute.
62509         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62510         * lib/basename.c (base_name): New semantics - malloc the result.
62511         Preserve // when it is special.  Preserve relative files that look
62512         like drive letters.
62513         (base_len): Preserve // when it is special.
62514         (last_component): New method, similar to old base_name semantics.
62515         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62516         base_name.  Strip redundant slashes from ///.
62517
62518 2006-07-03  Jim Meyering  <jim@meyering.net>
62519
62520         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62521         macro is used before the first cycle_check call.
62522
62523 2006-07-03  Eric Blake  <ebb9@byu.net>
62524
62525         * modules/dirname (Depends-on): Add xstrndup.
62526
62527 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62528
62529         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62530         test cases, so that config.log is a bit easier to follow.
62531
62532 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62533
62534         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62535         both are 64 bits, since this seems to be the tradition, and this
62536         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62537         we ever run into a host that prefers long long to long in this
62538         case, we'll need another configure-time test.  Problem reported by
62539         Jim Meyering.
62540
62541 2006-07-02  Eric Blake  <ebb9@byu.net>
62542
62543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62544
62545 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62546
62547         * modules/inttypes (Depends-on): No longer depends on stdint.
62548         * modules/stdint (Description): Say more about assumptions.
62549         Say that the fast types might differ.  Say macros are used.
62550         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62551         (Makefile.am): Revise list of substituted symbols to match
62552         new stdint.m4.
62553         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62554         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62555         * tests/test-stdint.c (verify_same_types)
62556         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62557         the code conforms to C99/C89.
62558         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62559         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62560
62561 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62562
62563         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62564         but fix a bug, by requiring at least 64 bits.
62565         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62566         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62567         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62568         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62569
62570         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62571         changes.  Make 2.59 a prerequisite.  Check and substitute for
62572         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62573         inttypes.h.  Do not use special include files; just use the
62574         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62575         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62576         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62577         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62578         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62579         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62580         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62581         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62582         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62583         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62584         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62585         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62586         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62587         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62588         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62589         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62590         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62591         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62592         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62593         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62594         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62595         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62596         not check for things that C99 does not require, e.g., int8_t.  If
62597         a test isn't needed unless <stdint.h> isn't working, and is
62598         unlikely to be needed for any other reason, then don't do it
62599         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62600         size_t, since we assume C89 freestanding at least.  Do not check
62601         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62602         the right thing even if the types are not defined.  Instead use:
62603         (gl_STDINT_TYPE_PROPERTIES): New macro.
62604         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62605         testing whether <sys/types.h> clashes, as Autoconf does this for
62606         us now.  All uses removed.
62607         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62608         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62609         (gl_CHECK_TYPE_SAME):
62610         Remove; no longer needed.
62611         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62612         exists, since we'll return 0 anyway in that case.
62613         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62614
62615 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62616
62617         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62618         possible collision with system files.
62619         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62620         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62621         WCHAR_MIN and WCHAR_MAX in this case.
62622         (<stddef.h>): Do not include; no longer needed.
62623         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62624         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62625         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62626         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62627         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62628         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62629         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62630         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62631         !defined(__c99))]: Include in this case too, since it's harmless
62632         now.
62633         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62634         dangerous to do so.
62635         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62636         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62637         (_STDINT_MIN, _STDINT_MAX): New macros.
62638         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62639         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62640         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62641         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62642         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62643         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62644         macros, not typedefs; this simplifies things quite a bit.
62645         Use long int for all types narrower than int64_t.
62646         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62647         Define in terms of long long int or int64_t or long int,
62648         not int64_t or int32_t.  This saves some compile-time testing.
62649         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62650         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62651         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62652         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62653         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62654         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62655         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62656         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62657         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62658         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62659         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62660         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62661         undef any previous version and define our own version, for
62662         simplicity and consistency with the new macros for types.
62663         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62664         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62665         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62666         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62667         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62668         @WINT_T_SUFFIX@ to keep things simple here.
62669         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62670         Simplify by assuming typical 8/16/32/64 host, since we're
62671         already doing that elsewhere anyway.
62672         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62673         and assume long long int is 64 bits if available.  This
62674         speeds up 'configure'.
62675
62676 2006-07-01  Eric Blake  <ebb9@byu.net>
62677
62678         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62679         Reported by Andreas Buening.
62680
62681 2006-07-01  Eric Blake  <ebb9@byu.net>
62682
62683         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62684
62685 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62686
62687         * lib/getaddrinfo.c: fixed typo
62688
62689 2006-06-29  Jim Meyering  <jim@meyering.net>
62690
62691         * modules/strftime (Maintainer): Add my name, since with the
62692         FPRINTFTIME changes strftime.c has forked from glibc.
62693
62694 2006-06-29  Eric Blake  <ebb9@byu.net>
62695
62696         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62697
62698 2006-06-29  Eric Blake  <ebb9@byu.net>
62699
62700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62701
62702 2006-06-29  Eric Blake  <ebb9@byu.net>
62703
62704         * lib/stat_.h: New file.
62705
62706 2006-06-29  Eric Blake  <ebb9@byu.net>
62707
62708         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62709         unused static function.
62710
62711 2006-06-29  Eric Blake  <ebb9@byu.net>
62712
62713         * doc/functions.texi (Function Portability): Document missing lstat
62714         on mingw.
62715
62716 2006-06-29  Eric Blake  <ebb9@byu.net>
62717
62718         * MODULES.html.sh: Add sys_stat.
62719         * modules/sys_stat: New module.
62720         * modules/mkstemp (Depends-on): Add sys_stat.
62721
62722 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62723
62724         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62725
62726 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62727
62728         * m4/c-bs-a.m4: Removed.
62729
62730 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62731
62732         * lib/strftime.c: Assume strftime() exists.
62733
62734 2006-06-29  Derek Price  <derek@ximbiot.com>
62735
62736         * modules/c-bs-a: Removed - \a is C89.
62737         * MODULES.html.sh: Remove c-bs-a.
62738
62739 2006-06-29  Bruno Haible  <bruno@clisp.org>
62740
62741         * modules/wcwidth (License): Change to LGPL.
62742
62743 2006-06-28  Simon Josefsson  <jas@extundo.com>
62744
62745         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62746         on _WIN32.
62747
62748         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62749         getnameinfo.
62750
62751 2006-06-28  Simon Josefsson  <jas@extundo.com>
62752
62753         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62754
62755 2006-06-28  Simon Josefsson  <jas@extundo.com>
62756
62757         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62758         functions there.  It will succeed on Windows XP, but on Windows
62759         2000 and (presumably) earlier, it will fail, and use the internal
62760         re-implementation.
62761         (use_win32_p): New function.
62762         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62763         Support AI_NUMERICSERV to disable getservbyname.
62764         (getnameinfo): New function, only supports
62765         NI_NUMERICHOST|NI_NUMERICSERV for now.
62766
62767         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62768         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62769         getnameinfo.
62770
62771 2006-06-28  Eric Blake  <ebb9@byu.net>
62772
62773         * modules/wcwidth: New file.
62774         * modules/mbchar (Depends-on): Add wcwidth.
62775         * modules/mbswidth (Depends-on): Add wcwidth.
62776         * MODULES.html.sh: Add wcwidth.
62777
62778 2006-06-28  Eric Blake  <ebb9@byu.net>
62779
62780         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62782
62783 2006-06-28  Eric Blake  <ebb9@byu.net>
62784
62785         * lib/xvasprintf.h: Fix comments.
62786
62787 2006-06-28  Eric Blake  <ebb9@byu.net>
62788
62789         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62790         * lib/mbswidth.c (wcwidth): Move from here...
62791         * lib/wcwidth.h: ...to this new file.
62792
62793 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62794
62795         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62796
62797         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62798         it's obsolete.
62799         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62800
62801 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62802
62803         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62804         Autoconf 2.60 says this stuff was obsolete.
62805
62806 2006-06-28  Bruno Haible  <bruno@clisp.org>
62807
62808         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62809
62810 2006-06-28  Bruno Haible  <bruno@clisp.org>
62811
62812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62813         gt_TYPE_WCHAR_T.
62814
62815 2006-06-28  Bruno Haible  <bruno@clisp.org>
62816
62817         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62818         declaration for wcwidth.
62819         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62820
62821 2006-06-28  Bruno Haible  <bruno@clisp.org>
62822
62823         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62824         (mkdir): Define using _mkdir.
62825
62826 2006-06-28  Bruno Haible  <bruno@clisp.org>
62827
62828         * lib/getaddrinfo.h: Fix POSIX URL.
62829         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62830         _WIN32.
62831         (use_win32_p): Make static.
62832         (getaddrinfo): Reject service name if it is empty or does not consist
62833         solely of decimal digits, or if its value is > 65535.
62834         (getnameinfo): Remove useless casts.
62835
62836 2006-06-27  Simon Josefsson  <jas@extundo.com>
62837
62838         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62839         Eggert and Martin Lambers.
62840
62841 2006-06-27  Simon Josefsson  <jas@extundo.com>
62842
62843         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62844         Eggert and Martin Lambers.
62845
62846 2006-06-27  Bruno Haible  <bruno@clisp.org>
62847
62848         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62849         result to 0, not to empty.
62850         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62851
62852 2006-06-27  Bruno Haible  <bruno@clisp.org>
62853
62854         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62855
62856 2006-06-26  Simon Josefsson  <jas@extundo.com>
62857
62858         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62859         present.
62860
62861 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62862
62863         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62864         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62865         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62866
62867 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62868
62869         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62870
62871 2006-06-26  Bruno Haible  <bruno@clisp.org>
62872
62873         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62874
62875 2006-06-26  Bruno Haible  <bruno@clisp.org>
62876
62877         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62878
62879 2006-06-26  Bruno Haible  <bruno@clisp.org>
62880
62881         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62882         SGI C compiler in pre-C99 mode.
62883         Suggested by Mark D. Baushke and Larry Jones.
62884
62885 2006-06-26  Bruno Haible  <bruno@clisp.org>
62886
62887         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62888         WCHAR_MAX.
62889         Reported by Mark D. Baushke and Larry Jones.
62890
62891 2006-06-26  Bruno Haible  <bruno@clisp.org>
62892
62893         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62894         in pre-C99 mode.
62895         Suggested by Mark D. Baushke and Larry Jones.
62896
62897 2006-06-23  Simon Josefsson  <jas@extundo.com>
62898             Bruno Haible  <bruno@clisp.org>
62899
62900         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62901         Emit mostlyclean-local rule.
62902         (func_emit_tests_Makefile_am): Likewise.
62903         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62904
62905 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62906
62907         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62908
62909 2006-06-23  Bruno Haible  <bruno@clisp.org>
62910
62911         * tests/test-stdint.c: Update to match ISO C 99 Technical
62912         Corrigendum 1.
62913
62914 2006-06-23  Bruno Haible  <bruno@clisp.org>
62915
62916         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62917
62918 2006-06-23  Bruno Haible  <bruno@clisp.org>
62919
62920         * lib/stdint_.h: Treat IRIX like OpenBSD.
62921
62922 2006-06-23  Bruno Haible  <bruno@clisp.org>
62923
62924         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62925         ISO C 99 Technical Corrigendum 1.
62926
62927 2006-06-22  Simon Josefsson  <jas@extundo.com>
62928
62929         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62930         MinGW.
62931
62932 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62933
62934         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62935         needed.  Some compiler complained about some of them.  Problem reported
62936         by Larry Jones in
62937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62938
62939 2006-06-21  Simon Josefsson  <jas@extundo.com>
62940
62941         * tests/test-getaddrinfo.c: New file.
62942
62943         * modules/getaddrinfo-tests: New file.
62944
62945         * MODULES.html.sh: Add inet_pton.
62946
62947         * modules/inet_pton: New file.
62948
62949 2006-06-21  Simon Josefsson  <jas@extundo.com>
62950
62951         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62952         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62953         of using the (limited) gnulib implementation on Windows XP.
62954
62955         * m4/inet_pton.m4: New file.
62956
62957 2006-06-21  Simon Josefsson  <jas@extundo.com>
62958
62959         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62960         variable.
62961
62962         * lib/socket_.h: Don't define WINVER.
62963
62964         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62965         slightly modified to work in gnulib.
62966
62967 2006-06-21  Simon Josefsson  <jas@extundo.com>
62968
62969         * doc/gnulib.texi (Windows sockets): Add.
62970
62971 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         * lib/read-file.c (fread_file): Start with buffer allocation of
62974         0 bytes rather than 1 byte; this simplifies the code.
62975         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62976         code to free buffer and save/restore errno.
62977         (internal_read_file): Remove unused local.
62978
62979 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62980
62981         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62982         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62983         Problem reported by Denis Excoffier in
62984         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62985
62986 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62987
62988         * modules/sys_socket, modules/socklen: Include sys/types since
62989         FreeBSD 4.x's sys/socket.h needs it.
62990
62991 2006-06-19  Simon Josefsson  <jas@extundo.com>
62992
62993         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62994
62995 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62996
62997         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62998
62999 2006-06-19  Bruno Haible  <bruno@clisp.org>
63000
63001         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63002         and FULL_PATH_INTTYPES_H in angle brackets.
63003         Reported by Mark D. Baushke <mdb@gnu.org>.
63004
63005 2006-06-17  Eric Blake  <ebb9@byu.net>
63006
63007         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63008         errno.
63009
63010 2006-06-17  Bruno Haible  <bruno@clisp.org>
63011
63012         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63013         <sys/inttypes.h>.
63014
63015 2006-06-17  Bruno Haible  <bruno@clisp.org>
63016
63017         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63018         whether errno is declared. Assume <errno.h> declares errno.
63019
63020 2006-06-17  Bruno Haible  <bruno@clisp.org>
63021
63022         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63023
63024 2006-06-17  Bruno Haible  <bruno@clisp.org>
63025
63026         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63027         problem on Solaris 2.5.1.
63028
63029 2006-06-16  Eric Blake  <ebb9@byu.net>
63030
63031         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63032         * lib/unicodeio.c [!defined errno]: Likewise.
63033         * lib/strtol.c [!defined errno]: Likewise.
63034         * lib/strtod.c [!defined errno]: Likewise.
63035
63036 2006-06-15  Eric Blake  <ebb9@byu.net>
63037
63038         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63039
63040 2006-06-15  Eric Blake  <ebb9@byu.net>
63041
63042         * config/srclist.txt (ssize_t.m4): Lose sync.
63043
63044 2006-06-15  Bruno Haible  <bruno@clisp.org>
63045
63046         * modules/stdint (Files): Include m4/full-header-path.m4,
63047         m4/size_max.m4, m4/wchar_t.m4.
63048         (Makefile.am): Many more substitutions.
63049         * modules/stdint-tests: New file.
63050         * tests/test-stdint.c: New file.
63051
63052 2006-06-15  Bruno Haible  <bruno@clisp.org>
63053
63054         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63055         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63056         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63057         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63058         gl_CHECK_TYPE_SAME): New macros.
63059
63060 2006-06-15  Bruno Haible  <bruno@clisp.org>
63061
63062         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63063
63064 2006-06-15  Bruno Haible  <bruno@clisp.org>
63065
63066         * lib/stdint_.h: Rewritten to be fully auto-configured.
63067         Fixes bug on HP-UX/IA64.
63068
63069 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63070
63071         * lib/getdate.y (__attribute__): Don't define if already defined.
63072         Problem reported by Larry Jones.
63073         * lib/utimens.c (__attribute__): Likewise.
63074
63075 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63076
63077         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63078         reported by Andreas Schwab.
63079
63080 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63081             Bruno Haible  <bruno@clisp.org>
63082
63083         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63084         check for the declaration of strnlen and a run test that exposes the
63085         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63086         rpl_strndup.
63087
63088 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63089             Bruno Haible  <bruno@clisp.org>
63090
63091         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63092
63093 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63094
63095         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63096         compile test, for Tru64 4.0D.
63097
63098 2006-05-28  Karl Berry  <karl@gnu.org>
63099
63100         * config/srclist.txt (printf-args.c): lose sync.
63101
63102 2006-05-26  Martin Lambers  <marlam@marlam.de>
63103
63104         * lib/getpass.c: Updates the test for the native W32 API, and adds
63105         missing includes, thus fixing compilation warnings.
63106
63107 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63108
63109         * lib/exclude.c (exclude_fnmatch): New function.
63110         (excluded_file_name): Call exclude_fnmatch.
63111         * lib/exclude.h (excluded_file_name): New prototype
63112
63113 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63114
63115         * lib/tempname.c (small_open, large_open): New macros.
63116         (__open, __open64) [!_LIBC]: Remove.
63117         (__gen_tempname): Use small_open and large_open instead of __open
63118         and __open64.  This fixes a portability bug on HP-UX 11.11i
63119         reported by Simon Wing-Tang in
63120         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63121
63122 2006-05-24  Bruno Haible  <bruno@clisp.org>
63123
63124         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63125         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63126         Reported by Thorsten Maerz <torte@netztorte.de> via
63127         Aaron Stone <aaron@serendipity.cx>.
63128
63129 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63130
63131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63132         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63133         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63134         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63135         not really conditional on the cache.
63136         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63137
63138 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63139
63140         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63141         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63142         (my_usleep): Don't mishandle maximum value.
63143
63144 2006-05-19  Jim Meyering  <jim@meyering.net>
63145
63146         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63147
63148 2006-05-17  Bruno Haible  <bruno@clisp.org>
63149
63150         Cygwin portability.
63151         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63152
63153 2006-05-17  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/stdint_.h: Fix recognition of Cygwin.
63156
63157 2006-05-15  Bruno Haible  <bruno@clisp.org>
63158
63159         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63160         on libtool patch by Ralf Wildenhues.
63161
63162 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63163
63164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63165         test for C99 conformance; (bool) 0.5 is an integer constant
63166         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63167         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63168
63169 2006-05-11  Simon Josefsson  <jas@extundo.com>
63170
63171         * m4/xvasprintf.m4: Fix obvious typo.
63172
63173 2006-05-11  Jim Meyering  <jim@meyering.net>
63174
63175         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63176         James Lemley.
63177
63178 2006-05-10  Simon Josefsson  <jas@extundo.com>
63179
63180         * lib/md4.c: Typo fix, update copyright years.
63181         (K1, K2): Don't use L because it turn computations into 64-bit on
63182         64-bit platforms.
63183
63184 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63185
63186         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63187         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63188         unwanted sign propagation, e.g., on hosts with 64-bit int.
63189         There still are some problems with reeelly weird theoretical hosts
63190         (e.g., 33-bit int) but it's not worth worrying about now.
63191         * lib/sha1.c (rol): Likewise.
63192         (K1, K2, K3, K4): Remove unnecessary L suffix.
63193
63194 2006-05-10  Bruno Haible  <bruno@clisp.org>
63195
63196         * lib/des.c: Cast to avoid warnings.
63197
63198 2006-05-09  Bruno Haible  <bruno@clisp.org>
63199
63200         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63201         (Depends-on): Depend also on xsize, stdarg.
63202         (configure.ac): Add gl_XVASPRINTF.
63203
63204 2006-05-09  Bruno Haible  <bruno@clisp.org>
63205
63206         * m4/xvasprintf.m4: New file.
63207
63208 2006-05-09  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63211         (EOVERFLOW): Define fallback value.
63212         (xstrcat): New function.
63213         (xvasprintf): Recognize the special case of a string concatenation.
63214
63215 2006-05-08  Eric Blake  <ebb9@byu.net>
63216
63217         * gnulib-tool (func_version): Base copyright year on CVS date.
63218         (func_emit_copyright_notice): New function.
63219         (func_emit_lib_Makefile_am): Use it.
63220         (func_emit_tests_Makefile_am): Likewise.
63221         (func_import): Likewise.
63222
63223 2006-05-08  Bruno Haible  <bruno@clisp.org>
63224
63225         * modules/stdarg: New file.
63226         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63227
63228 2006-05-08  Bruno Haible  <bruno@clisp.org>
63229
63230         * m4/stdarg.m4: New file, from GNU gettext.
63231
63232 2006-05-08  Bruno Haible  <bruno@clisp.org>
63233
63234         * config/srclist.txt (build-aux/config.rpath): different from latest
63235         release.
63236
63237 2006-05-08  Bruno Haible  <bruno@clisp.org>
63238
63239         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63240
63241 2006-05-05  Jim Meyering  <jim@meyering.net>
63242
63243         * m4/warning.m4: New file, derived from bison's file by the same name.
63244
63245 2006-05-03  Bruno Haible  <bruno@clisp.org>
63246
63247         * lib/stdint_.h: Shorter URL.
63248         * lib/inttypes.h: Likewise.
63249
63250 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63253
63254 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63255
63256         * lib/verify.h: Document the internals better.  Most of this change
63257         was written by Bruno Haible.
63258
63259 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63260
63261         * doc/verify.texi: New file, partly based on a proposal by
63262         Bruno Haible.
63263
63264 2006-05-02  Bruno Haible  <bruno@clisp.org>
63265
63266         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63267         test from here...
63268         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63269
63270 2006-04-29  Bruno Haible  <bruno@clisp.org>
63271
63272         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63273         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63274
63275 2006-04-29  Bruno Haible  <bruno@clisp.org>
63276
63277         * gnulib-tool: Make --update option actually work.
63278
63279 2006-04-29  Bruno Haible  <bruno@clisp.org>
63280
63281         * doc/gcd.texi: New file.
63282         * doc/gnulib.texi: Include it.
63283
63284 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63285
63286         * lib/getdate.y (get_date): When adding relative date, start with the
63287         initial time, not with the result of the first mktime call.
63288
63289 2006-04-25  Bruno Haible  <bruno@clisp.org>
63290
63291         * gnulib-tool (func_import): Output the include directives in three
63292         blocks, sorted separately.
63293         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63294
63295 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63296
63297         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63298         to define main with arguments, for C++.  Reported by Eric Blake.
63299         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63300         Prefer 'int main ()' to 'int main (void)', for C++.
63301         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63302         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63303         for 'main', for C99 and C++.
63304
63305 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63306
63307         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63308         Don't assume that exit status -1 is valid.
63309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63310         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63311         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63312         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63313         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63314         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63315         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63316         functions can be used without declaring them, or that you can
63317         exit with status -1.
63318         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63319
63320 2006-04-24  Karl Berry  <karl@gnu.org>
63321
63322         * config/srclist.txt (longdouble.m4): sync lost.
63323
63324 2006-04-24  Eric Blake  <ebb9@byu.net>
63325
63326         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63327
63328 2006-04-24  Bruno Haible  <bruno@clisp.org>
63329
63330         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63331         poll() implementation in AIX.
63332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63333
63334 2006-04-24  Bruno Haible  <bruno@clisp.org>
63335
63336         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63337         assigned exactly once.
63338
63339 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63340             Bruno Haible  <bruno@clisp.org>
63341
63342         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63343         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63344         for AM_CPPFLAGS.
63345
63346 2006-04-23  Bruno Haible  <bruno@clisp.org>
63347
63348         * modules/copy-file: Depend on unistd.
63349         * modules/execute: Likewise.
63350         * modules/fatal-signal: Likewise.
63351         * modules/findprog: Likewise.
63352         * modules/mkdtemp : Likewise.
63353         * modules/pipe: Likewise.
63354         * modules/wait-process: Likewise.
63355
63356 2006-04-23  Bruno Haible  <bruno@clisp.org>
63357
63358         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63359         condition was already detected.
63360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63361
63362 2006-04-23  Bruno Haible  <bruno@clisp.org>
63363
63364         * lib/copy-file.c: Include <unistd.h> unconditionally.
63365         * lib/execute.c: Likewise.
63366         * lib/fatal-signal.c: Likewise.
63367         * lib/findprog.c: Likewise.
63368         * lib/mkdtemp.c: Likewise.
63369         * lib/pipe.h: Likewise.
63370         * lib/pipe.c: Likewise.
63371         * lib/wait-process.h: Likewise.
63372
63373 2006-04-23  Bruno Haible  <bruno@clisp.org>
63374
63375         * gnulib-tool (func_usage): Fix --import description. Document
63376         --update.
63377         (func_import): Create temporary file in a temporary directory, if
63378         --dry-run is specified. Silence errors from 'grep' when there are no
63379         m4 files in $m4dir.
63380         (func_create_testdir): Silence errors from 'grep' when there are no
63381         m4 files in $m4dir.
63382         Reported by Karl Berry <karl@freefriends.org>.
63383
63384 2006-04-20  Bruno Haible  <bruno@clisp.org>
63385
63386         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63387         one argument, so that the code will be portable to Autoconf 2.60.
63388         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63389         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63390         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63391
63392 2006-04-19  Derek Price  <derek@ximbiot.com>
63393             Eric Blake  <ebb9@byu.net>
63394
63395         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63396         rather than "/full/path.h".  Update comment to match.  Shorten &
63397         generalize m4_translit call via AS_TR_CPP.
63398
63399 2006-04-19  Derek Price  <derek@ximbiot.com>
63400             Eric Blake  <ebb9@byu.net>
63401
63402         * lib/inttypes.h: Correct grammar in comment.
63403
63404 2006-04-18  Derek Price  <derek@ximbiot.com>
63405             Paul Eggert  <eggert@cs.ucla.edu>
63406
63407         * modules/inttypes: New file.
63408         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63409
63410 2006-04-18  Derek Price  <derek@ximbiot.com>
63411             Paul Eggert  <eggert@cs.ucla.edu>
63412
63413         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63414         New files.
63415
63416 2006-04-18  Derek Price  <derek@ximbiot.com>
63417             Paul Eggert  <eggert@cs.ucla.edu>
63418
63419         * lib/inttypes.h: New file.
63420         * lib/strtoimax.c: Assume <inttypes.h>.
63421
63422 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63423
63424         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63425         isn't mounted.  Problem reported by Kir Kolyshkin.
63426
63427 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63428
63429         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63430         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63431         Derek R. Price.
63432         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63433         implementation.
63434
63435 2006-04-12  Eric Blake  <ebb9@byu.net>
63436
63437         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63438         is now done automatically by the corresponding Autoconf macro.
63439
63440 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63441
63442         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63443         time_r.h.
63444
63445 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63446
63447         Merge regex changes from libc, removing some of our
63448         POSIX-conformance changes that were rejected and redoing them in a
63449         less-intrusive way.
63450
63451         * lib/regcomp.c (re_compile_internal, init_dfa):
63452         Length arg is now size_t, not Idx.  All uses changed.
63453         (peek_token): Forward decl now says internal_function.
63454         (__re_error_msgid, __re_error_msgid_idx):
63455         Now static rather than extern with attribute_hidden.
63456         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63457         For some reason libc prefers K&R style defns for external functions.
63458         (regerror) [!defined _LIBC]: Likewise.
63459         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63460         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63461         (build_range_exp, build_collating_symbol):
63462         Use K&R-style defn.
63463         (re_compile_fastmap): Use '\0' to memset, not 0.
63464         (utf8_sb_map): Make the calculations more obvious.
63465         (init_dfa, parse_bracket_exp, build_charclass_op):
63466         Call calloc and cast result, as glibc does.
63467         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63468         (build_range_exp, build_collating_symbol):
63469         Now internal functions.
63470
63471         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63472
63473         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63474         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63475         Don't depend on VMS; depend on __VMS instead, for POSIX
63476         namespace cleanness.
63477         (regoff_t): Define to ssize_t, not long int.
63478
63479         Remove the REG_ macros named below.  Instead, make the old names
63480         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63481         __USE_GNU_REGEX.
63482         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63483         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63484         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63485         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63486         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63487         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63488         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63489         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63490         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63491         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63492         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63493         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63494         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63495         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63496         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63497         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63498         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63499         (REG_NREGS):
63500         Remove.  All uses replaced by the old RE_* names.
63501         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63502         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63503         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63504         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63505         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63506         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63507         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63508         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63509         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63510         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63511         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63512         Don't bother having these macros be independent of each others'
63513         values, since they no longer exist in the POSIX name space.
63514
63515         Rename the following member names back to their old names,
63516         unless !__USE_GNU_REGEX.  All uses changed back.
63517         (buffer): Renamed from re_buffer.
63518         (allocated): Renamed from re_allocated.
63519         (used): Renamed from re_used.
63520         (syntax): Renamed from re_syntax.
63521         (fastmap): Renamed from re_fastmap.
63522         (translate): Renamed from re_translate.
63523         (can_be_null): Renamed from re_can_be_null.
63524         (regs_allocated): Renamed from re_regs_allocated.
63525         (fastmap_accurate): Renamed from re_fastmap_accurate.
63526         (no_sub): Renamed from re_no_sub.
63527         (not_bol): Renamed from re_not_bol.
63528         (not_eol): Renamed from re_not_eol.
63529         (newline_anchor): Renamed from re_newline_anchor.
63530         (num_regs): Renamed from rm_num_regs.
63531         (start): Renamed from rm_start.
63532         (end): Renamed from rm_end.
63533
63534         (free_state): Move up a bit.
63535
63536         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63537         #define to be empty.
63538         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63539         when that is what is intended.
63540         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63541         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63542         (MAX): New macro.
63543         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63544         All uses changed back to re_malloc, etc.  It's now the caller's
63545         responsibility to check for overflow; all callers changed.
63546         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63547         (re_x2nrealloc): Remove.
63548         (free_state): Remove decl.
63549
63550         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63551         (re_set_registers, re_exec):
63552         Use K&R-style defn.
63553
63554         2006-01-31  Roland McGrath  <roland@redhat.com>
63555
63556         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63557         Reported by Mike Frysinger <vapier@gentoo.org>.
63558
63559         2006-01-15  Andreas Jaeger  <aj@suse.de>
63560
63561         [BZ #1950]
63562         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63563         build_wcs_upper_buffer change.
63564         (build_wcs_upper_buffer): Change return type.
63565
63566         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63567
63568         * lib/regex_internal.h: Include <stdint.h> if available.
63569
63570         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63571
63572         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63573
63574         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63575
63576         * lib/regcomp.c: Adjust for changed secondary hash function.
63577
63578         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63579
63580         * lib/regex.h: Pretty printing.
63581         Clean up namespace a bit.
63582
63583         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63584
63585         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63586         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63587
63588         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63589                     Ulrich Drepper  <drepper@redhat.com>
63590
63591         [BZ #1302]
63592         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63593         changed.
63594         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63595
63596         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63597
63598         [BZ #281]
63599         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63600         * lib/regcomp.c: Remove unnecessary uses of
63601         unsigned RE_TRANSLATE_TYPE.
63602         * lib/regex_internal.h: Likewise.
63603         * lib/regex_internal.c: Likewise.
63604         * lib/regexec.c: Likewise.
63605         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63606
63607         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63608
63609         * lib/regexec.c (find_recover_state): Remove unnecessary
63610         initialization.
63611         (transit_state_bkref): Make DFA a const pointer.
63612         (get_subexp): Likewise.
63613         (check_arrival): Likewise.
63614         (update_cur_sifted_state): Likewise.
63615         (re_search_internal): Likewise.
63616         (prune_impossible_nodes): Likewise.
63617         (acquire_init_state_context): Likewise.
63618         (proceed_next_node): Likewise.
63619         (set_regs): Likewise.
63620         (free_fail_stack_return): Likewise.
63621         (check_arrival_expand_ecl): Mark DFA parameter as const.
63622         (check_arrival_expand_ecl_sub): Likewise.
63623         (check_subexp_limits): Likewise.
63624         (sub_epsilon_src_nodes):  Likewise.
63625         (add_epsilon_src_nodes):  Likewise.
63626         (merge_state_array): Likewise.
63627         (update_regs): Likewise.
63628         (build_trtable): Likewise.
63629         (sift_states_backward): Mark MCTX parameter as const.
63630         (build_sifted_states): Likewise.
63631         (update_cur_sifted_state): Likewise.
63632         (sift_states_mkref): Likewise.
63633         (check_arrival_expand_ecl): Mark eclosure as const.
63634         (check_dst_limits_calc_pos_1): Likewise.
63635         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63636         pointer.
63637
63638         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63639
63640         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63641         (transit_state_sb): Likewise.
63642         (transit_state_mb): Likewise.
63643         (sift_states_iter_mb): Likewise.
63644         (check_arrival_add_next_nodes): Likewise.
63645         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63646         [_LIBC] (re_search_2_stub): Use mempcpy.
63647
63648         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63649         mbrtowc for very simple UTF-8 case.
63650
63651         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63652         a pointer-to-const.
63653         (re_acquire_state_context): Likewise.
63654         * lib/regex_internal.h: Adjust prototypes.
63655
63656         * lib/regex.c: Prevent using C++ compilers.
63657
63658         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63659         (re_acquire_state_context): Likewise.
63660
63661 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63662
63663         * modules/regex (Depends-on): Add ssize_t.
63664
63665 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63668         translation table.
63669
63670 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63671
63672         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63673
63674 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63675             Bruno Haible  <bruno@clisp.org>
63676
63677         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63678         <sys/types.h> and <inttypes.h>.
63679
63680 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63681
63682         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63683         `__error_t_defined', so argp.h will not typedef the former.
63684
63685 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63686
63687         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63688         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63689         glibc names.  Even if glibc is changed to conform to POSIX, the
63690         traditional names will be available anyway, since regex depends on
63691         the extensions module.  Also, fix a longstanding typo in the
63692         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63693         reported by Emanuele Giaquinta.  Also, change sense of cached
63694         variable, so that the message makes sense.
63695
63696 2006-03-24  Simon Josefsson  <jas@extundo.com>
63697
63698         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63699         including some doc fixes.
63700         (base64_encode_alloc): Fix +1 bug on allocation failures.
63701
63702 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63703
63704         * lib/base64.c (base64_encode): Do not read past end of array with
63705         unsanitized input on systems with CHAR_BIT > 8.
63706
63707 2006-03-24  Eric Blake  <ebb9@byu.net>
63708
63709         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63710
63711 2006-03-22  Karl Berry  <karl@gnu.org>
63712
63713         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63714         * config/srclistvars.sh (COREUTILS): new var.
63715
63716 2006-03-17  Jim Meyering  <jim@meyering.net>
63717
63718         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63719         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63720
63721 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63722
63723         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63724         no longer needs it.  Instead, check that regoff_t is as least
63725         as wide as ptrdiff_t.
63726
63727         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63728         so that our regex.h stays compatible with the installed regex.
63729         This is helpful for installers who configure --without-included-regex.
63730         Problem reported by Emanuele Giaquinta.
63731
63732 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63733
63734         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63735         Typedef to long int, not to off_, as POSIX will likely change
63736         in that direction.
63737
63738 2006-03-15  Eric Blake  <ebb9@byu.net>
63739
63740         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63741
63742 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63743
63744         * lib/argp-help.c (validate_uparams): Fix typo
63745         * lib/argp-parse.c (argp_default_options): Consistently begin help
63746         messages with a lowercase letter.
63747
63748 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63749
63750         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63751         overrun buffers and shouldn't be used (much as gets shouldn't be
63752         used).
63753         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63754
63755 2006-03-08  Simon Josefsson  <jas@extundo.com>
63756
63757         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63758         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63759
63760 2006-03-08  Simon Josefsson  <jas@extundo.com>
63761
63762         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63763         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63764
63765 2006-03-08  Simon Josefsson  <jas@extundo.com>
63766
63767         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63768         signal that configure disabled the device.
63769
63770 2006-03-08  Simon Josefsson  <jas@extundo.com>
63771
63772         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63773         languages.
63774
63775 2006-03-07  Simon Josefsson  <jas@extundo.com>
63776
63777         * modules/getopt (Depends-on): Add unistd.
63778
63779         * modules/unistd: New file.
63780
63781 2006-03-07  Simon Josefsson  <jas@extundo.com>
63782
63783         * modules/gc-random: New file.
63784
63785 2006-03-07  Simon Josefsson  <jas@extundo.com>
63786
63787         * m4/unistd_h.m4: New file.
63788
63789 2006-03-07  Simon Josefsson  <jas@extundo.com>
63790
63791         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63792         test to be side-effect free by storing the result in the cache
63793         variable gl_cv_lib_readline, and moving the assignment of
63794         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63795         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63796
63797 2006-03-07  Simon Josefsson  <jas@extundo.com>
63798
63799         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63800         error on missing devices (the functions will return an error).
63801
63802         * m4/gc.m4: Move random stuff to gc-random.m4
63803
63804 2006-03-07  Simon Josefsson  <jas@extundo.com>
63805
63806         * lib/unistd_.h: New file.
63807
63808 2006-03-07  Simon Josefsson  <jas@extundo.com>
63809
63810         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63811
63812 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63813
63814         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63815         Problem reported by Juan Manuel Guerrero.
63816
63817 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63818
63819         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63820         the unistd module.
63821         * lib/getlogin_r.c: Likewise.
63822         * lib/getlogin_r.h: Likewise.
63823         * lib/glob.c: Likewise.
63824         * lib/pagealign_alloc.c: Likewise.
63825         * lib/unistd_.h: Remove; no longer needed.
63826
63827 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63828
63829         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63830         Add unistd.
63831         * modules/c-stack (Depends-on): Add unistd.
63832         * modules/getlogin_r: Likewise.
63833         * modules/glob: Likewise.
63834         * modules/pagealign_alloc: Likewise.
63835         * modules/unistd (Files): Remove lib/unistd_.h.
63836         (EXTRA_DIST): Remove.
63837         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63838         need unistd_.h.
63839         (MOSTLYCLEANFILES): Remove unistd.h-t.
63840
63841 2006-03-03  Simon Josefsson  <jas@extundo.com>
63842
63843         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63844
63845 2006-03-03  Simon Josefsson  <jas@extundo.com>
63846
63847         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63848         libidn and bison.
63849
63850 2006-03-03  Simon Josefsson  <jas@extundo.com>
63851
63852         * build-aux/maint.mk: Add indent target.
63853
63854 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63855
63856         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63857         our replacement poll.h in any case, to avoid a differing
63858         declaration from a system header.  Seen on AIX.
63859
63860 2006-03-01  Simon Josefsson  <jas@extundo.com>
63861
63862         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63863         <kasal@ucw.cz>.
63864
63865 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63866
63867         * modules/gettime (Depends-on): Add extensions module.
63868         * modules/nanosleep (Depends-on): Likewise.
63869         * modules/settime (Depends-on): Likewise.
63870
63871 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63872
63873         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63874         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63875         pedantically.
63876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63877         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63878
63879         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63880         not "==".  Reported by Ralf Wildenhues.
63881
63882 2006-03-01  Karl Berry  <karl@gnu.org>
63883
63884         * doc/Copyright/request-*: new files, synced from gnuorg.
63885
63886 2006-03-01  Karl Berry  <karl@gnu.org>
63887
63888         * config/srclist.txt (Copyright/*): new entries.
63889
63890 2006-02-28  Simon Josefsson  <jas@extundo.com>
63891
63892         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63893
63894 2006-02-27  Simon Josefsson  <jas@extundo.com>
63895
63896         * lib/base64.h: Indent #define's.  From Jim Meyering
63897         <jim@meyering.net>.
63898
63899 2006-02-27  Jim Meyering  <jim@meyering.net>
63900
63901         Revert the change of 2006-02-24, so these files can continue
63902         to be sync'd from gettext.
63903         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63904         of `config.h'.
63905
63906 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63907
63908         * modules/intprops: New file.
63909         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63910         Add intprops.
63911         * modules/getloadavg (Files): Remove lib/intprops.h.
63912         (Depends-on): Add intprops.
63913         * modules/human: Likewise.
63914         * modules/inttostr: Likewise.
63915         * modules/openat: Likewise.
63916         * modules/sig2str: Likewise.
63917         * modules/userspec: Likewise.
63918         * modules/utimecmp: Likewise.
63919         * modules/xnanosleep: Likewise.
63920         * modules/xstrtol: Likewise.
63921
63922 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63923
63924         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63925         * modules/lock-tests (TESTS): Use $(EXEEXT).
63926         * modules/tls-tests: Likewise.
63927         * modules/argp-tests: Likewise.
63928         (check_PROGRAMS): New var, replacing...
63929         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63930
63931 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63932
63933         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63934         `config.h'.
63935
63936 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63937
63938         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63939
63940 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63941
63942         Sync from coreutils.
63943         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63944         gl_CHDIR_SAFER.
63945
63946 2006-02-22  Jim Meyering  <jim@meyering.net>
63947
63948         Sync from coreutils.
63949         * m4/chdir-safer.m4: New file.
63950
63951 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63952
63953         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63954         AT_FDCWD exceeds INT_MAX.
63955         * lib/openat.h (AT_FDCWD): Likewise.
63956
63957 2006-02-17  Eric Blake  <address@hidden>
63958
63959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63960
63961 2006-02-16  Simon Josefsson  <jas@extundo.com>
63962
63963         * modules/getaddrinfo (Depends-on): Add sys_socket.
63964
63965 2006-02-15  Simon Josefsson  <jas@extundo.com>
63966
63967         * build-aux/maint.mk: Add dsyntax-check rule.
63968
63969 2006-02-15  Eric Blake  <ebb9@byu.net>
63970
63971         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63972         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63973         'present but cannot compile' warnings on cygwin.
63974         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63975         use ws2tcpip.h if sys/socket.h works.
63976         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63977         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63978
63979 2006-02-14  Simon Josefsson  <jas@extundo.com>
63980
63981         * modules/maintainer-makefile (Files): Rename.
63982
63983         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63984         and (the local) Makefile.cfg to maint-cfg.mk.
63985
63986         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63987         to the latter.
63988
63989         * modules/maintainer-makefile: New module.
63990
63991         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63992         severaly stripped to make it possible to build it up from scratch
63993         with reliable tests.
63994
63995         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63996         fixes to permit overriding the default actions when configure and
63997         makefile are not available.
63998
63999 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64000
64001         Sync from coreutils.
64002         * modules/lstat (Depends-on): Don't depend on xalloc.
64003         (License): Change from GPL to LGPL, since this is now simply a
64004         replacement for a libc function.
64005
64006 2006-02-14  Jim Meyering  <jim@meyering.net>
64007
64008         Sync from coreutils.
64009
64010         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64011         failure on deficient systems, and simplify gnulib lgpl dependencies.
64012         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64013         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64014
64015         * lib/xalloc-die.c: Remove unused definition of N_.
64016
64017 2006-02-14  Jim Meyering  <jim@meyering.net>
64018
64019         Sync from coreutils.
64020         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64021         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64022         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64023         double-quote uses of that variable, to accommodate the rare case in
64024         which getmntent is available in none of the libraries checked.  This
64025         happens at least on FreeBSD 5.0.
64026
64027 2006-02-13  Simon Josefsson  <jas@extundo.com>
64028
64029         * gnulib-tool (Usage): Fix --import, from
64030         karl@freefriends.org (Karl Berry).
64031
64032 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64033
64034         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64035
64036 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64037
64038         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64039         "autoupdate" on 2005-12-12.
64040
64041 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64042
64043         * modules/closeout (Depends-on): Remove atexit.
64044
64045 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64048         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64049
64050 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64053         __EXTENSIONS__ if this causes compilation to fail.  Problem
64054         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64055         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64056
64057 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64058
64059         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64060         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64061         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64062         All uses changed.
64063
64064 2006-01-26  Simon Josefsson  <jas@extundo.com>
64065
64066         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64067         prototype is visible on mingw32.
64068
64069         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64070         for mingw32.
64071
64072         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64073         mingw32).
64074
64075 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64078         attempt to open for write; this always fails, at least on POSIX
64079         hosts.  This reinstates the 2006-01-09 change, which was
64080         inadvertently removed.
64081
64082 2006-01-26  Bruno Haible  <bruno@clisp.org>
64083
64084         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64085         Reported by Paul Eggert.
64086
64087 2006-01-26  Bruno Haible  <bruno@clisp.org>
64088             Paul Eggert  <eggert@cs.ucla.edu>
64089
64090         * lib/stdbool_.h (_Bool)
64091         [(! (defined __cplusplus || defined __BEOS__)
64092           && !defined __GNUC__
64093           && !(defined __HP_cc || defined __xlc__
64094                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64095                || defined __sgi))]:
64096         #define to signed char in these cases too; this simplifies
64097         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64098         etc., separately) and makes it more conservative.
64099
64100 2006-01-25  Simon Josefsson  <jas@extundo.com>
64101
64102         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64103         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64104         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64105
64106 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64107
64108         * lib/argp-namefrob.h: Bugfix. Remove stray #
64109
64110 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64111
64112         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64113         so that we test the test.
64114         Check for yet another HP-UX cc bug involving *bool |= bool.
64115
64116 2006-01-25  Karl Berry  <karl@gnu.org>
64117
64118         * config/srclist.txt (vasnprintf.c): sync lost.
64119
64120 2006-01-25  Jim Meyering  <jim@meyering.net>
64121
64122         Sync from the stable (b5) branch of coreutils:
64123
64124         * lib/fts.c (fts_children): Don't let close() clobber errno from
64125         failed fchdir().
64126
64127         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64128         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64129         a dangling symlink.  That can also happen at least for ELOOP.
64130         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64131         FYI, this bug predates the inclusion of fts.c in coreutils.
64132
64133         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64134         in their own block, so pre-c99 compilers don't object.
64135
64136         Avoid the double-free (first in fts_read, second in fts_close) that
64137         would occur when an `active' directory is made inaccessible (e.g.,
64138         via chmod a-x) during a traversal.
64139         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64140         before returning.  Reproduce this failure by
64141         mkdir -p a/b; cd a; chmod a-x . b
64142         Reported by Stavros Passas.
64143
64144 2006-01-25  Jim Meyering  <jim@meyering.net>
64145
64146         * lib/fileblocks.c: Remove more useless parentheses.
64147         * lib/readutmp.h: Likewise.
64148
64149 2006-01-25  Bruno Haible  <bruno@clisp.org>
64150
64151         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64152         warnings.
64153         Reported by Paul Eggert.
64154
64155 2006-01-25  Bruno Haible  <bruno@clisp.org>
64156
64157         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64158         rid of a trap command. For Solaris sh.
64159         Reported by Mark D. Baushke <mdb@gnu.org>.
64160
64161 2006-01-24  Simon Josefsson  <jas@extundo.com>
64162
64163         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64164         Bruno.
64165
64166 2006-01-24  Karl Berry  <karl@gnu.org>
64167
64168         * config/srclist.txt (argp-namefrob.h): sync lost.
64169
64170 2006-01-24  Jim Meyering  <jim@meyering.net>
64171
64172         * modules/openat (Files): Add lib/intprops.h.
64173         From Mark D. Baushke.
64174
64175 2006-01-24  Jim Meyering  <jim@meyering.net>
64176
64177         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64178         Reported by Mark D. Baushke.
64179
64180 2006-01-24  Jim Meyering  <jim@meyering.net>
64181
64182         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64183
64184 2006-01-24  Bruno Haible  <bruno@clisp.org>
64185
64186         * modules/strnlen (Maintainer): Change from glibc to all.
64187
64188 2006-01-24  Bruno Haible  <bruno@clisp.org>
64189
64190         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64191         Patch by Paul Eggert.
64192
64193 2006-01-24  Bruno Haible  <bruno@clisp.org>
64194
64195         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64196         already has it.
64197         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64198         2005-11-26.
64199
64200         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64201         'signed char' to avoid problems with the built-in _Bool type.
64202         Reported by Paul Eggert on 2005-11-26.
64203
64204 2006-01-24  Bruno Haible  <bruno@clisp.org>
64205
64206         * gnulib-tool (func_import): Avoid constructing complicated sed
64207         expressions inside backquote.
64208         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64209
64210 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64211
64212         These changes imported from libc.
64213         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64214         test and two separate function calls.
64215         * lib/strndup.c (__strndup): Add libc_hidden_def.
64216
64217 2006-01-23  Simon Josefsson  <jas@extundo.com>
64218
64219         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64220         Remove the test_*_SOURCES variable: automake infers it by default.
64221         * modules/tls-tests: Likewise.
64222
64223 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64224
64225         Work around porting bugs reported by Dieter in
64226         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64227         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64228         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64229         Include "getopt.h" first, to check interface.
64230         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64231         !HAVE_DECL_GETENV.
64232         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64233         (__strndup): Revert to K&R-style function dfns, the glibc style.
64234         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64235         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64236         Include strnlen.h first, to get prototype properly.
64237         (strnlen): Renamed from __strnlen.
64238         Remove weak alias.
64239
64240 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64241
64242         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64243
64244 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64245
64246         * config/srclist.txt: Adjust to reflect glibc reorganization.
64247         This affects only comments.
64248
64249 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64250
64251          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64252          Reported by Bruce Korb <bkorb@gnu.org>.
64253
64254 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64255
64256         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64257         to pacify gcc -Wswitch-default.
64258
64259 2006-01-22  Bruno Haible  <bruno@clisp.org>
64260
64261         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64262         temporary buffer for sprintf, take into account the precision also
64263         for 'd', 'i', 'u', 'o', 'x', 'X'.
64264
64265 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64266
64267         * modules/argp-tests: New module
64268         * tests/test-argp.c: New file
64269         * tests/test-argp-2.sh: New file
64270
64271 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64272
64273         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64274         (__argp_base_name): Removed
64275         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64276         typo.
64277         (__argp_base_name): Provide macro definition or extern declaration
64278         depending on the configuration
64279
64280 2006-01-20  Simon Josefsson  <jas@extundo.com>
64281
64282         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64283
64284 2006-01-20  Simon Josefsson  <jas@extundo.com>
64285
64286         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64287
64288 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64291         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64292         Suggested by Bruno Haible.
64293
64294 2006-01-20  Karl Berry  <karl@gnu.org>
64295
64296         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64297         until changes propagate, I guess.
64298
64299 2006-01-19  Simon Josefsson  <jas@extundo.com>
64300
64301         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64302
64303 2006-01-19  Simon Josefsson  <jas@extundo.com>
64304
64305         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64306
64307 2006-01-19  Simon Josefsson  <jas@extundo.com>
64308
64309         * gnulib-tool: Set check_PROGRAMS.
64310
64311         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64312         modules/des-tests, modules/gc-arcfour-tests,
64313         modules/gc-arctwo-tests, modules/gc-des-tests,
64314         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64315         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64316         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64317         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64318         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64319         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64320         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64321         test_*_SOURCES.
64322
64323 2006-01-18  Simon Josefsson  <jas@extundo.com>
64324
64325         * modules/socklen (Depends-on): Depend on sys_socket.
64326
64327 2006-01-18  Simon Josefsson  <jas@extundo.com>
64328
64329         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64330         modules/des-tests, modules/gc-arcfour-tests,
64331         modules/gc-arctwo-tests, modules/gc-des-tests,
64332         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64333         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64334         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64335         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64336         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64337         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64338         $(EXEEXT) to automake TESTS variable, for mingw32.
64339
64340 2006-01-17  Simon Josefsson  <jas@extundo.com>
64341
64342         * modules/socklen (Include): Need sys/socket.h.
64343
64344 2006-01-17  Bruno Haible  <bruno@clisp.org>
64345
64346         * modules/ssize_t (Include): Add <sys/types.h>.
64347
64348 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64349
64350         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64351         it's not portable and it doesn't work with cross-compiles.
64352         Problem reported by Bruno Haible.  Fix missing-$ typo in
64353         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64354         -zignore from being used with Sun's C compiler.
64355
64356 2006-01-12  Simon Josefsson  <jas@extundo.com>
64357
64358         * lib/base64.c: Fix warning, reported by Bruno Haible
64359         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64360
64361 2006-01-12  Bruno Haible  <bruno@clisp.org>
64362
64363         * modules/ldd: New file.
64364         * build-aux/ldd.sh.in: New file.
64365         * MODULES.html.sh (Support for building libraries and executables): Add
64366         ldd.
64367
64368 2006-01-12  Bruno Haible  <bruno@clisp.org>
64369
64370         * m4/ldd.m4: New file.
64371
64372 2006-01-12  Bruno Haible  <bruno@clisp.org>
64373
64374         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64375         endless loop while replacing $auxdir with build-aux.
64376
64377 2006-01-11  Simon Josefsson  <jas@extundo.com>
64378
64379         * lib/stdint_.h (SIZE_MAX): Add missing (.
64380
64381 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         Sync from coreutils.
64384         * lib/md5.c: Fix commentary typos.
64385         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64386         * lib/md5.h (__attribute__): Remove; unused.
64387         * lib/sha1.c: Fix commentary to match md5 better.
64388         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64389         so that we don't need to worry about alignment.  All uses changed.
64390         This merges the 2005-10-28 md5 change into sha1.
64391
64392 2006-01-11  Jim Meyering  <jim@meyering.net>
64393
64394         Sync from coreutils.
64395         * lib/md5.c (OP): Fix spacing.
64396
64397 2006-01-11  Bruno Haible  <bruno@clisp.org>
64398
64399         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64400         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64401         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64402
64403 2006-01-11  Bruno Haible  <bruno@clisp.org>
64404
64405         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64406         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64407         the "early" section as well.
64408
64409 2006-01-11  Bruno Haible  <bruno@clisp.org>
64410
64411         Avoid "ar: no archive members specified" error on MacOS X.
64412         * gnulib-tool (func_modules_add_dummy): New function.
64413         (func_import, func_create_testdir): Invoke it.
64414
64415 2006-01-11  Bruno Haible  <bruno@clisp.org>
64416
64417         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64418         with $auxdir in AC_CONFIG_FILES statements.
64419
64420 2006-01-11  Bruno Haible  <bruno@clisp.org>
64421
64422         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64423         Initialize also noinst_HEADERS to empty.
64424
64425 2006-01-11  Bruno Haible  <bruno@clisp.org>
64426
64427         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64428         variables.
64429         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64430         autoreconf.
64431
64432 2006-01-11  Bruno Haible  <bruno@clisp.org>
64433
64434         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64435         overridable by the user.
64436         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64437
64438 2006-01-10  Simon Josefsson  <jas@extundo.com>
64439
64440         * modules/sys_socket: New file.
64441
64442 2006-01-10  Simon Josefsson  <jas@extundo.com>
64443
64444         * m4/sys_socket_h.m4: New file.
64445
64446 2006-01-10  Simon Josefsson  <jas@extundo.com>
64447
64448         * lib/socket_.h: New file.
64449
64450 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64451
64452         * modules/readutmp (Maintainer): Add myself.
64453
64454 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64455
64456         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64457         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64458         People who are still concerned with buggy memcmp implementations
64459         can invoke gl_FUNC_MEMCMP themselves.
64460
64461 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64462
64463         * lib/regex_internal.h (BITSET_WORD_BITS):
64464         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64465         preprocessor mishandles large unsigned values as if they were signed.
64466         Problem reported by Claudio Fontana in
64467         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64468
64469 2006-01-10  Jim Meyering  <jim@meyering.net>
64470
64471         Avoid the double-free (first in fts_read, second in fts_close) that
64472         would occur when an `active' directory is made inaccessible (e.g.,
64473         via chmod a-x) during a traversal.
64474         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64475         before returning.  Reproduce this failure by
64476         mkdir -p a/b; cd a; chmod a-x . b
64477         Reported by Stavros Passas.
64478
64479         Sync from coreutils.
64480         * lib/sha1.c: Tweak grammar in a comment.
64481
64482 2006-01-10  Jim Meyering  <jim@meyering.net>
64483
64484         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64485         Patch by Joerg Sonnenberger.
64486
64487 2006-01-10  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/readutmp: Depend on module free.
64490         * modules/strtok_r: Depend on module restrict.
64491
64492 2006-01-10  Bruno Haible  <bruno@clisp.org>
64493
64494         * modules/gettext (configure.ac): Add an invocation of
64495         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64496
64497 2006-01-10  Bruno Haible  <bruno@clisp.org>
64498
64499         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64500         Reported by Werner Lemberg <wl@gnu.org>.
64501
64502 2006-01-10  Bruno Haible  <bruno@clisp.org>
64503
64504         * lib/localcharset.c: Update from GNU gettext.
64505
64506 2006-01-10  Bruno Haible  <bruno@clisp.org>
64507
64508         * lib/argp.h (__const): Remove macro. Use const instead.
64509         * lib/argp-fmtstream.h (__const): Likewise.
64510         * lib/glob_.h (__const): Remove macro.
64511         * lib/glob-libc.h: Use const instead of __const.
64512
64513 2006-01-10  Bruno Haible  <bruno@clisp.org>
64514
64515         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64516         variable.
64517         Needed to avoid an automake error regarding the 'gettext' module.
64518
64519 2006-01-09  Simon Josefsson  <jas@extundo.com>
64520
64521         * modules/inet_ntop (Depends-on): Add restrict.
64522
64523 2006-01-09  Simon Josefsson  <jas@extundo.com>
64524
64525         * modules/gc-rijndael-tests (License): Put under LGPL.
64526
64527         * modules/gc-des-tests (License): Likewise.
64528
64529         * modules/gc-arcfour-tests (License): Likewise.
64530
64531         * modules/gc-arctwo-tests (License): Likewise.
64532
64533         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64534
64535         * modules/gc-hmac-sha1-tests (Files): Likewise.
64536
64537         * modules/gc-hmac-md5-tests (License): Likewise.
64538
64539         * modules/gc-sha1-tests (License): Likewise.
64540
64541         * modules/gc-md5-tests (License): Likewise.
64542
64543         * modules/gc-md4-tests (License): Likewise.
64544
64545         * modules/gc-md2-tests (License): Likewise.
64546
64547         * modules/gc-tests (License): Likewise.
64548
64549         * modules/des-tests (License): Likewise.
64550
64551         * modules/md4-tests (License): Likewise.
64552
64553         * modules/md2-tests (License): Likewise.
64554
64555 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64556
64557         Sync from coreutils:
64558
64559         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64560         * modules/lib-ignore: New file.
64561         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64562         chdir-safer.m4, lchmod.m4.
64563         * modules/openat: Add mkdirat.c, openat-priv.h.
64564
64565 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64566
64567         Sync from coreutils.
64568         * m4/lib-ignore.m4: New file.
64569         * m4/lchmod.m4: New file.
64570
64571 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64572
64573         Sync from coreutils.
64574         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64575         for write access: POSIX says that must fail.
64576         * lib/fts.c (diropen): Likewise.
64577         * lib/save-cwd.c (save_cwd): Likewise.
64578         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64579         well, for minor improvements on hosts that lack O_DIRECTORY.
64580         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64581         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64582         Fall back on chown if open failed with EACCES.
64583
64584         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64585         Report an error at compile-time if only a 1-second nominal clock
64586         resolution is found.
64587
64588         * lib/lchmod.h: New file.
64589         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64590         (make_dir_parents): Use lchown rather than chown, and
64591         lchmod rather than chmod.
64592
64593         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64594         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64595         "proc" reported by n0dalus.
64596
64597         * lib/mountlist.c: Include <limits.h>.
64598         (dev_from_mount_options)
64599         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64600         New function.  It no longer assumes "dev=" has the System V meaning
64601         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64602         (read_file_system_list)
64603         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64604         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64605         dev= in that case.
64606
64607         * lib/posixtm.h (PDS_PRE_2000): New macro.
64608         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64609         allow_century.  All usages changed.  Reject dates outside the range
64610         1969-1999 if PDS_PRE_2000 is used.
64611
64612 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64613
64614         Sync from coreutils.
64615         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64616         (Time of day items): Mention the possibility of leap seconds.
64617         Problem reported by Dr. David Alan Gilbert.
64618
64619 2006-01-09  Jim Meyering  <jim@meyering.net>
64620
64621         Sync from coreutils.
64622
64623         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64624
64625         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64626
64627         * lib/modechange.c (mode_compile): Reject an invalid mode string
64628         that starts with an octal digit.  From Andreas Gruenbacher.
64629
64630         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64631         and dup to open_safer and dup_safer, respectively.
64632         (openat_permissive): Fix typo in comment.
64633
64634         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64635         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64636         (_): Remove; no longer needed.
64637         (openat): Renamed from rpl_openat; no need for rpl_openat
64638         since openat.h renames openat for us.
64639         Replace most of the body with a call to openat_permissive,
64640         to avoid duplicate code.
64641         Port to (probably hypothetical) environments were mode_t is
64642         wider than int.
64643         (openat_permissive): Require mode arg, so that we can check
64644         types better.  Put it just after flags.  Change cwd failure
64645         indicator from pointer-to-bool to pointer-to-errno-value.
64646         All callers changed.
64647         Invoke openat_save_fail and/or openat_restore_fail if
64648         cwd_errno is null, so that openat can call us.
64649         (openat_permissive, fdopendir, fstatat, unlinkat):
64650         Simplify errno handling to avoid some duplicate code,
64651         as it's OK to set errno on success.
64652         * lib/openat.h: Revamp code so that function macros depend on
64653         __OPENAT_PREFIX only, not also on AT_FDCWD.
64654         (openat_ro): Remove.  Caller changed to use openat_permissive.
64655         (openat_permissive): Now a macro, if not a function.
64656         (openat_restore_fail, openat_save_fail): Now always functions,
64657         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64658
64659         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64660         and openat.c.
64661         * lib/mkdirat.c: Include openat-priv.h.
64662         Remove definitions of macros defined therein.
64663         * lib/openat.c: Likewise.
64664
64665         * lib/mkdirat.c (mkdirat): New file and function.
64666         * lib/openat.h (mkdirat): Declare.
64667
64668         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64669
64670         * lib/openat.h (openat_permissive): Declare.
64671         (openat_ro): Define.
64672
64673         * lib/openat.c (EXPECTED_ERRNO): New macro.
64674         (openat_permissive): New function -- used in remove.c rewrite.
64675         (all functions): Set errno just before returning, only if there
64676         was an actual failure.
64677         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64678
64679         Emulate openat-family functions using Linux's procfs, if possible.
64680         Idea and some code based on Ulrich Drepper's glibc changes.
64681
64682         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64683         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64684         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64685         before falling back on save_cwd and restore_cwd.
64686         (fdopendir, fstatat, unlinkat): Likewise.
64687
64688         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64689         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64690
64691         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64692         as second argument to va_arg.  Otherwise, some versions of gcc
64693         warn that `if this code is reached, the program will abort'.
64694
64695 2006-01-09  Jim Meyering  <jim@meyering.net>
64696
64697         Sync from coreutils.
64698         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64699         Require openat-priv.h.
64700
64701 2006-01-09  Bruno Haible  <bruno@clisp.org>
64702
64703         * modules/strnlen (Include): Use strnlen.h.
64704
64705 2006-01-09  Bruno Haible  <bruno@clisp.org>
64706
64707         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64708
64709 2006-01-09  Bruno Haible  <bruno@clisp.org>
64710
64711         * lib/sysexit_.h (EX_OK): New macro.
64712         Suggested by Martin Lambers <marlam@marlam.de>.
64713
64714 2006-01-09  Bruno Haible  <bruno@clisp.org>
64715
64716         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64717         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64718
64719 2006-01-09  Bruno Haible  <bruno@clisp.org>
64720
64721         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64722         numbers.
64723
64724 2006-01-09  Bruno Haible  <bruno@clisp.org>
64725
64726         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64727         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64728         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64729         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64730
64731 2006-01-09  Bruno Haible  <bruno@clisp.org>
64732
64733         * build-aux/javacomp.sh.in: New file, moved from lib/.
64734         * modules/javacomp-script (Files): Update.
64735         (configure.ac): Add AC_CONFIG_FILES invocation.
64736         (EXTRA_DIST): Remove variable.
64737
64738         * build-aux/javaexec.sh.in: New file, moved from lib/.
64739         * modules/javaexec (Files): Update.
64740         (configure.ac): Add AC_CONFIG_FILES invocation.
64741         (EXTRA_DIST): Remove javaexec.sh.in.
64742
64743         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64744         * modules/csharpcomp-script (Files): Update.
64745         (configure.ac): Add AC_CONFIG_FILES invocation.
64746         (EXTRA_DIST): Remove variable.
64747
64748         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64749         * modules/csharpexec (Files): Update.
64750         (configure.ac): Add AC_CONFIG_FILES invocation.
64751         (EXTRA_DIST): Remove csharpexec.sh.in.
64752
64753 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64754
64755         Sync from coreutils.
64756
64757         Add POSIX ACL support
64758         * lib/acl.h (copy_acl, set_acl): Add declarations.
64759         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64760         systems other than Linux.
64761         (chmod_or_fchmod): New function: use fchmod when possible,
64762         and chmod otherwise.
64763         (file_has_acl): Add a POSIX ACL implementation, with a
64764         Linux-specific subcase.
64765         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64766         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64767         acls are unsupported.
64768         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64769         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64770         are unsupported.
64771
64772 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64773
64774         Sync from coreutils.
64775         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64776
64777 2006-01-07  Bruno Haible  <bruno@clisp.org>
64778
64779         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64780         gl_EARLY.
64781
64782 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64783
64784         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64785         Problem reported for Mingw by Mark Junker.
64786
64787 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64788
64789         * README: Gnulib normally doesn't generate a tarball.
64790
64791 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64792
64793         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64794         long int, not int, for nanosecond counts, so that people who are
64795         used to POSIX struct timespec won't be surprised.  Reported by Jim
64796         Meyering.
64797
64798 2005-12-28  Bruno Haible  <bruno@clisp.org>
64799
64800         * build-aux/config.rpath: Update from GNU gettext.
64801
64802 2005-12-16  Jim Meyering  <jim@meyering.net>
64803
64804         * modules/fprintftime: New module.
64805         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64806
64807 2005-12-16  Jim Meyering  <jim@meyering.net>
64808
64809         * m4/fprintftime.m4: New file.
64810
64811 2005-12-16  Jim Meyering  <jim@meyering.net>
64812
64813         * lib/fprintftime.c, lib/fprintftime.h: New files.
64814
64815 2005-12-15  Simon Josefsson  <jas@extundo.com>
64816
64817         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64818         new m4/socklen.m4.
64819
64820 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64821
64822         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64823         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64824
64825 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64826
64827         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64828         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64829         struct uparams is valid. Fall back to the default values if it is
64830         not.
64831
64832 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64833
64834         * modules/argp (Files): Add argp-pin.c
64835         (Depends-on): dirname
64836         (lib_SOURCES): Add argp-pin.c
64837
64838 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64839
64840         * m4/argp.m4:  Check if program_invocation_name and
64841         program_invocation_short_name are declared and define appropriate
64842         macros if they are not.
64843
64844 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64845
64846         * lib/argp-help.c (__argp_base_name): New function
64847         (__argp_short_program_name): Rewrite using __argp_base_name
64848         * lib/argp-namefrob.h: Define program_invocation_name and
64849         program_invocation_short_name if requested
64850         (__argp_base_name): Add prototype
64851         * lib/argp-parse.c (argp_def): Use gettext wrappers
64852         (argp_default_parser): Use __argp_base_name
64853         * lib/argp-pin.c: New file. Defines program_invocation_name and
64854         program_invocation_short_name on systems that lack them.
64855
64856 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64857
64858         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64859         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64860         porting problem reported by Georg Schwarz in
64861         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64862
64863 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64866         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64867         porting problem reported by Georg Schwarz in
64868         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64869
64870 2005-12-05  Bruno Haible  <bruno@clisp.org>
64871
64872         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64873         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64874         Reported by Mark Junker <mjscod@gmx.de>.
64875
64876 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64879         Use implementation from Albert Chin, with some
64880         comments/corrections by Stepan Kasal and myself.
64881
64882 2005-12-02  Bruno Haible  <bruno@clisp.org>
64883
64884         * gnulib-tool (func_import): Accept GPLed build tool modules when
64885         --lgpl is given.
64886         * modules/csharpcomp-script: New file.
64887         * modules/csharpcomp: Depend on it.
64888         * modules/javacomp-script: New file.
64889         * modules/javacomp: Depend on it.
64890         Suggested by Simon Josefsson.
64891
64892 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64895         statement, to work around an HP-UX 10.20 compiler bug reported by
64896         Peter O'Gorman.
64897
64898 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64899
64900         * modules/savedir (Depends-on): Add openat.
64901
64902 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64903
64904         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64905         (uintmax_t) [defined uintmax_t]: Do not declare.
64906         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64907         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64908         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64909         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64910         sake of portability to weird hosts that C allows (though we don't
64911         know of any practical examples).
64912
64913         * lib/savedir.h (fdsavedir): New decl.
64914         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64915         contains most of the former guts of savedir.
64916         (savedir): Use savedirstream.
64917         Include "openat.h".
64918
64919 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * modules/obstack (Files): Add m4/ulonglong.m4.
64922         Problem reported by Davide Angelocola.
64923
64924 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64927         coreutils no longer futzes with rounding modes.
64928
64929 2005-11-14  Jim Meyering  <jim@meyering.net>
64930
64931         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64932         replacement of mkstemp.
64933
64934 2005-11-10  Simon Josefsson  <jas@extundo.com>
64935
64936         * lib/readline.c: Remove EOL.
64937
64938 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64939
64940         * modules/gethrxtime (Depends-on): Add gettime.
64941
64942 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64945         or gettimeofday; no longer needed.
64946
64947 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64948
64949         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64950         time business.
64951         (gethrxtime) [! (HAVE_NANOUPTIME
64952         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64953         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64954         our own approximation.
64955
64956 2005-11-08  Eric Blake  <ebb9@byu.net>
64957
64958         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64959
64960 2005-11-08  Eric Blake  <ebb9@byu.net>
64961
64962         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64963
64964 2005-11-04  Bruno Haible  <bruno@clisp.org>
64965
64966         * gnulib-tool: Implement --update mode.
64967
64968 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64969
64970         Fix porting problem reported by Theodoros V. Kalamatianos.
64971         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64972         Don't assume that futimes failing means we must fail.
64973
64974 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64977         variables to suggest the intended function of the PATH_MAX check.
64978
64979 2005-10-30  Kean Johnston  <jkj@sco.com>
64980
64981         Trivial changes to support SCO systems.
64982         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64983         as PATH_MAX.
64984         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64985         where __ptr is null when no I/O is pending.
64986
64987 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64988
64989         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64990         leave errno alone.  Problem reported by Dmitry V. Levin.
64991
64992 2005-10-28  Simon Josefsson  <jas@extundo.com>
64993
64994         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64995         Test more.
64996
64997         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64998
64999         * modules/md2, modules/md2-tests: New files.
65000
65001 2005-10-28  Simon Josefsson  <jas@extundo.com>
65002
65003         * m4/inet_ntop.m4: More tests.
65004
65005         * m4/gc-md2.m4, md2.m4: New file.
65006
65007 2005-10-28  Simon Josefsson  <jas@extundo.com>
65008
65009         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65010         "restrict" keywords, as per POSIX.  Protect the function
65011         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65012         Don't use K&R prototypes.  Check the sprintf return values.
65013         Re-define EAFNOSUPPORT if not present.  Indent.
65014
65015         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65016         suggested by Bruno Haible <bruno@clisp.org>.
65017
65018         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65019
65020         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65021
65022         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65023         libgcrypt).
65024
65025         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65026
65027         * lib/md2.h, lib/md2.c: New files.
65028
65029 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65030
65031         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65032         errno alone.  Problem reported by Frederic Jolliton.
65033
65034 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * modules/verify (License): Change from GPL to LGPL.  This is a
65037         tiny module and there are apparently near-equivalents that are
65038         under the BSD license.
65039
65040 2005-10-24  Simon Josefsson  <jas@extundo.com>
65041
65042         * modules/sha1: Relicense to LGPL.
65043
65044 2005-10-24  Simon Josefsson  <jas@extundo.com>
65045
65046         * lib/md4.h: Shrink buffer size, now that we changed the type.
65047
65048 2005-10-23  Simon Josefsson  <jas@extundo.com>
65049
65050         * gnulib-tool (func_import): Fix --tests-base.
65051
65052 2005-10-22  Simon Josefsson  <jas@extundo.com>
65053
65054         * modules/arcfour (Depends-on): Need stdint.
65055
65056 2005-10-22  Simon Josefsson  <jas@extundo.com>
65057
65058         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65059         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65060
65061 2005-10-22  Simon Josefsson  <jas@extundo.com>
65062
65063         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65064         suggested by Bruno Haible <bruno@clisp.org>.
65065
65066 2005-10-22  Simon Josefsson  <jas@extundo.com>
65067
65068         * lib/crc.h: Include stddef.h, for size_t.
65069
65070 2005-10-22  Simon Josefsson  <jas@extundo.com>
65071
65072         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65073         arcfour_context struct (simplify test vector testing in GNU
65074         Shishi).
65075
65076 2005-10-21  Simon Josefsson  <jas@extundo.com>
65077
65078         * modules/des, modules/des-tests: New files.
65079
65080         * modules/gc-des, modules/gc-des-tests: New files.
65081
65082         * tests/test-des.c, tests/test-gc-des.c: New file.
65083
65084 2005-10-21  Simon Josefsson  <jas@extundo.com>
65085
65086         * modules/arctwo, modules/arctwo-tests: New files.
65087
65088         * tests/test-arctwo.c: New file.
65089
65090         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65091
65092         * tests/test-gc-arctwo.c: New file.
65093
65094 2005-10-21  Simon Josefsson  <jas@extundo.com>
65095
65096         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65097         Bruno Haible <bruno@clisp.org>.
65098
65099         * m4/gc-des.m4: New file.
65100
65101 2005-10-21  Simon Josefsson  <jas@extundo.com>
65102
65103         * m4/arctwo.m4: New file.
65104
65105         * m4/gc-arctwo.m4: New file.
65106
65107 2005-10-21  Simon Josefsson  <jas@extundo.com>
65108
65109         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65110         block.
65111
65112 2005-10-21  Simon Josefsson  <jas@extundo.com>
65113
65114         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65115         <bruno@clisp.org>.
65116
65117         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65118
65119         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65120         Bruno Haible <bruno@clisp.org>.
65121
65122         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65123         <bruno@clisp.org>.
65124
65125 2005-10-21  Simon Josefsson  <jas@extundo.com>
65126
65127         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65128
65129 2005-10-21  Simon Josefsson  <jas@extundo.com>
65130
65131         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65132
65133 2005-10-21  Simon Josefsson  <jas@extundo.com>
65134
65135         * lib/des.h, lib/des.c: New files.
65136
65137         * lib/gc-gnulib.c: Support DES.c
65138
65139 2005-10-21  Simon Josefsson  <jas@extundo.com>
65140
65141         * lib/arctwo.h, lib/arctwo.c: New files.
65142
65143         * lib/gc-gnulib.c: Support ARCTWO.
65144
65145 2005-10-21  Simon Josefsson  <jas@extundo.com>
65146
65147         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65148         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65149
65150 2005-10-21  Simon Josefsson  <jas@extundo.com>
65151
65152         * gnulib-tool (func_import, func_create_testdir): Define automake
65153         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65154         Makefile.am snippet),
65155         suggested by Bruno Haible <bruno@clisp.org>.
65156
65157         * modules/gc (Makefile.am): Use it.
65158
65159 2005-10-21  Bruno Haible  <bruno@clisp.org>
65160
65161         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65162         patch.
65163
65164 2005-10-19  Simon Josefsson  <jas@extundo.com>
65165
65166         * tests/test-gc-rijndael.c: New file.
65167
65168         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65169
65170 2005-10-19  Simon Josefsson  <jas@extundo.com>
65171
65172         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65173         interface too.
65174
65175 2005-10-19  Simon Josefsson  <jas@extundo.com>
65176
65177         * tests/test-gc-arcfour.c: New file.
65178
65179         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65180
65181 2005-10-19  Simon Josefsson  <jas@extundo.com>
65182
65183         * modules/gc-md4, modules/gc-md4-tests: New file.
65184
65185         * tests/test-gc-md4.c: New file.
65186
65187 2005-10-19  Simon Josefsson  <jas@extundo.com>
65188
65189         * m4/gc-md4.m4: New file.
65190
65191 2005-10-19  Simon Josefsson  <jas@extundo.com>
65192
65193         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65194         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65195         <kasal@ucw.cz>.
65196
65197 2005-10-19  Simon Josefsson  <jas@extundo.com>
65198
65199         * m4/gc-arcfour.m4: New file.
65200
65201         * m4/gc-rijndael.m4: New file.
65202
65203 2005-10-19  Simon Josefsson  <jas@extundo.com>
65204
65205         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65206
65207 2005-10-19  Simon Josefsson  <jas@extundo.com>
65208
65209         * lib/gc-gnulib.c: Support ARCFOUR.
65210
65211 2005-10-19  Simon Josefsson  <jas@extundo.com>
65212
65213         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65214         support.
65215
65216         * lib/gc.h: Add ECB enum type.
65217
65218         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65219
65220 2005-10-18  Simon Josefsson  <jas@extundo.com>
65221
65222         * tests/test-md5.c: New file.
65223
65224         * modules/md5-tests: New file.
65225
65226 2005-10-18  Simon Josefsson  <jas@extundo.com>
65227
65228         * tests/test-md4.c: New file.
65229
65230         * modules/md4, modules/md4-tests: New files.
65231
65232 2005-10-18  Simon Josefsson  <jas@extundo.com>
65233
65234         * m4/md4.m4: New file.
65235
65236 2005-10-18  Simon Josefsson  <jas@extundo.com>
65237
65238         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65239
65240 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65241
65242         * gnulib-tool (func_create_testdir): Omit the second check whether
65243         BUILT_SOURCES in nonempty.
65244
65245 2005-10-17  Simon Josefsson  <jas@extundo.com>
65246
65247         * tests/test-rijndael.c: New file.
65248
65249 2005-10-17  Simon Josefsson  <jas@extundo.com>
65250
65251         * modules/sha1: Depend on stdint instead of md5.
65252
65253         * modules/md5: Depend on stdint, remove uint32_t.
65254
65255 2005-10-17  Simon Josefsson  <jas@extundo.com>
65256
65257         * modules/gc-sha1-tests: New file.
65258
65259         * tests/test-gc-sha1.c: New file.
65260
65261 2005-10-17  Simon Josefsson  <jas@extundo.com>
65262
65263         * m4/md5.m4: Remove call to uint32_t.m4.
65264
65265 2005-10-17  Simon Josefsson  <jas@extundo.com>
65266
65267         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65268
65269         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65270         md5.h.
65271
65272         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65273
65274         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65275
65276 2005-10-17  Simon Josefsson  <jas@extundo.com>
65277
65278         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65279
65280 2005-10-17  Simon Josefsson  <jas@extundo.com>
65281
65282         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65283
65284 2005-10-17  Simon Josefsson  <jas@extundo.com>
65285
65286         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65287
65288         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65289
65290 2005-10-17  Bruno Haible  <bruno@clisp.org>
65291
65292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65293         that it can also be used in a test.
65294
65295 2005-10-16  Bruno Haible  <bruno@clisp.org>
65296
65297         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65298         TESTS_ENVIRONMENT, so that individual tests can augment it.
65299
65300         * gnulib-tool (func_create_testdir): Use an intermediate target for
65301         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65302         macros, like $(ALLOCA_H), which cannot be passed through the command
65303         line.
65304
65305 2005-10-15  Simon Josefsson  <jas@extundo.com>
65306
65307         * modules/rijndael-tests: New file.
65308
65309         * modules/rijndael: New file.
65310
65311 2005-10-15  Simon Josefsson  <jas@extundo.com>
65312
65313         * m4/rijndael.m4: New file.
65314
65315 2005-10-15  Simon Josefsson  <jas@extundo.com>
65316
65317         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65318
65319         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65320
65321 2005-10-14  Simon Josefsson  <jas@extundo.com>
65322
65323         * tests/test-arcfour.c: New file.
65324
65325         * modules/arcfour, modules/arcfour-tests: New files.
65326
65327 2005-10-14  Simon Josefsson  <jas@extundo.com>
65328
65329         * m4/arcfour.m4: New file.
65330
65331 2005-10-14  Simon Josefsson  <jas@extundo.com>
65332
65333         * lib/arcfour.h, lib/arcfour.c: New files.
65334
65335 2005-10-14  Roland McGrath  <roland@redhat.com>
65336
65337         Import from libc.  [BZ #1331]
65338         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65339         macro argument.
65340         Reported by Matej Vela <vela@debian.org>.
65341
65342 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65345         include <wchar.h>; no longer needed.
65346
65347 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65348
65349         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65350
65351 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65352         and  Ulrich Drepper  <drepper@redhat.com>
65353
65354         Import from libc.
65355         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65356         instead of inline stream orientation test and two separate
65357         function calls.  Pay no attention to USE_IN_LIBIO.
65358
65359 2005-10-13  Simon Josefsson  <jas@extundo.com>
65360
65361         * modules/gc-hmac-md5-tests: New file.
65362
65363         * tests/test-gc-hmac-sha1.c: New file.
65364
65365         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65366
65367         * modules/gc-hmac-md5-tests: New file.
65368
65369         * tests/test-gc-md5.c: New file.
65370
65371         * modules/gc-md5-tests: New file.
65372
65373 2005-10-13  Simon Josefsson  <jas@extundo.com>
65374
65375         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65376         Move memory allocation outside of loop.
65377
65378 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65381         intermediate directory is in a read-only file system.  Problem
65382         reported by Eric Blake.
65383
65384 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65385
65386         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65387
65388 2005-10-12  Simon Josefsson  <jas@extundo.com>
65389
65390         * tests/test-hmac-sha1.c: New file.
65391
65392         * modules/hmac-sha1-tests: New file.
65393
65394         * modules/hmac-sha1: New file.
65395
65396 2005-10-12  Simon Josefsson  <jas@extundo.com>
65397
65398         * modules/gc-sha1: New file.
65399
65400 2005-10-12  Simon Josefsson  <jas@extundo.com>
65401
65402         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65403
65404         * tests/test-gc-pbkdf2-sha1.c: New file.
65405
65406 2005-10-12  Simon Josefsson  <jas@extundo.com>
65407
65408         * modules/gc-md5, modules/gc-hmac-md5: New files.
65409
65410         * modules/gc (Files): Remove md5, memxor and hmac files.
65411
65412 2005-10-12  Simon Josefsson  <jas@extundo.com>
65413
65414         * m4/gc-pbkdf2-sha1.m4: New file.
65415
65416         * m4/gc-hmac-sha1.m4: New file.
65417
65418         * m4/gc-sha1: New file.
65419
65420         * m4/hmac-sha1.m4: New file.
65421
65422 2005-10-12  Simon Josefsson  <jas@extundo.com>
65423
65424         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65425
65426         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65427
65428 2005-10-12  Simon Josefsson  <jas@extundo.com>
65429
65430         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65431         suggested by Bruno Haible <bruno@clisp.org>.
65432
65433 2005-10-12  Simon Josefsson  <jas@extundo.com>
65434
65435         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65436
65437 2005-10-12  Simon Josefsson  <jas@extundo.com>
65438
65439         * lib/gc-pbkdf2-sha1.c: New file.
65440
65441         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65442
65443 2005-10-12  Simon Josefsson  <jas@extundo.com>
65444
65445         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65446
65447         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65448
65449 2005-10-12  Simon Josefsson  <jas@extundo.com>
65450
65451         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65452         GC_USE_HMAC_MD5, respectively.
65453
65454         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65455         (gc_md5): Fix typo.
65456
65457         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65458
65459         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65460
65461         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65462
65463 2005-10-12  Bruno Haible  <bruno@clisp.org>
65464
65465         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65466         Reported by Stepan Kasal <kasal@ucw.cz>.
65467
65468 2005-10-11  Simon Josefsson  <jas@extundo.com>
65469
65470         * tests/test-crc.c: New file.
65471
65472         * modules/crc, modules/crc-tests: New files.
65473
65474 2005-10-11  Simon Josefsson  <jas@extundo.com>
65475
65476         * m4/crc.m4: New file.
65477
65478 2005-10-11  Simon Josefsson  <jas@extundo.com>
65479
65480         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65481
65482         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65483
65484         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65485
65486 2005-10-11  Simon Josefsson  <jas@extundo.com>
65487
65488         * lib/crc.h, lib/crc.c: New files.
65489
65490         * lib/gc.h (gc_hash_buffer): Add doc.
65491
65492 2005-10-11  Bruno Haible  <bruno@clisp.org>
65493
65494         * modules/c-strcasestr: New file.
65495         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65496
65497 2005-10-11  Bruno Haible  <bruno@clisp.org>
65498
65499         * modules/c-strcase: New file.
65500         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65501
65502 2005-10-11  Bruno Haible  <bruno@clisp.org>
65503
65504         * lib/strcasecmp.c: Include limits.h.
65505         (strcasecmp): Avoid integer overflow on exotic platforms.
65506         * lib/strncasecmp.c: Include limits.h.
65507         (strncasecmp): Avoid integer overflow on exotic platforms.
65508         Reported by Paul Eggert.
65509
65510 2005-10-11  Bruno Haible  <bruno@clisp.org>
65511
65512         * lib/c-strcasestr.h: New file, from GNU gettext.
65513         * lib/c-strcasestr.c: New file, from GNU gettext.
65514
65515 2005-10-11  Bruno Haible  <bruno@clisp.org>
65516
65517         * lib/c-strcase.h: New file, from GNU gettext.
65518         * lib/c-strcasecmp.c: New file, from GNU gettext.
65519         * lib/c-strncasecmp.c: New file, from GNU gettext.
65520
65521 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65522
65523         * modules/mempcpy (License): GPL -> LGPL.
65524         * modules/strchrnul (License): Likewise.
65525         * modules/sysexits (License): Likewise.
65526
65527 2005-10-08  Simon Josefsson  <jas@extundo.com>
65528
65529         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65530
65531 2005-10-07  Simon Josefsson  <jas@extundo.com>
65532
65533         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65534
65535 2005-10-06  Simon Josefsson  <jas@extundo.com>
65536
65537         * tests/test-hmac-md5.c: New file.
65538
65539         * modules/hmac-md5-tests: New file.
65540
65541         * modules/hmac-md5: New file.
65542
65543 2005-10-06  Simon Josefsson  <jas@extundo.com>
65544
65545         * m4/hmac-md5.m4: New file.
65546
65547         * m4/memxor.m4: Require gl_C_RESTRICT.
65548
65549 2005-10-06  Simon Josefsson  <jas@extundo.com>
65550
65551         * lib/memxor.c (memxor): Avoid casts and warnings.
65552
65553 2005-10-06  Simon Josefsson  <jas@extundo.com>
65554
65555         * lib/hmac-md5.c: New file.
65556
65557         * lib/hmac.h: New file.
65558
65559 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65562         promotes to int, not unsigned int, to catch the AIX 5.3
65563         compiler bug.
65564
65565 2005-10-05  Simon Josefsson  <jas@extundo.com>
65566
65567         * modules/memxor: New file.
65568
65569         * modules/iconv (Files): Move config.rpath to havelib, it is used
65570         there.
65571
65572         * modules/havelib (Files): Add config.rpath.
65573
65574 2005-10-05  Simon Josefsson  <jas@extundo.com>
65575
65576         * m4/memxor.m4: New file.
65577
65578 2005-10-05  Simon Josefsson  <jas@extundo.com>
65579
65580         * lib/memxor.c (memxor): Fix compiler error.
65581
65582         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65583         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65584
65585         * lib/memxor.h, lib/memxor.c: New files.
65586
65587         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65588         we assume all systems have it, suggested by Jim Meyering
65589         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65590         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65591         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65592         same reasons.
65593
65594 2005-10-05  Simon Josefsson  <jas@extundo.com>
65595
65596         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65597
65598 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65599
65600         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65601         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65602         needed, since the source code now assumes these .h files.
65603
65604 2005-10-05  Derek Price  <derek@ximbiot.com>
65605
65606         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65607
65608 2005-10-05  Bruno Haible  <bruno@clisp.org>
65609
65610         * modules/stdint (License): Change to LGPL.
65611
65612 2005-10-04  Simon Josefsson  <jas@extundo.com>
65613
65614         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65615         D. Baushke" <mdb@gnu.org>.
65616
65617 2005-10-04  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/verify.h (verify_true): Provide alternative definition for C++.
65620
65621 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65622
65623         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65624         (SSIZE_MAX): New macro, if not already defined.
65625         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65626         than 2 GiB.
65627
65628 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65629
65630         Sync from coreutils.
65631         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65632         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65633         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65634         ULLONG_MAX doesn't work with 2.7.2.1.
65635
65636 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65637
65638         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65639         From Ben Pfaff.
65640
65641         * modules/exclude (Depends-on): Depend on verify.
65642         * modules/strtoimax (Depends-on): Likewise.
65643         * modules/utimecmp (Depends-on): Likewise.
65644
65645 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65646
65647         * lib/exclude.c: Include verify.h.
65648         (verify): Remove.  All callers changed to use verify.h's version.
65649         * lib/strtoimax.c: Likewise.
65650         * lib/utimecmp.c: Likewis.e
65651
65652         Sync from coreutils.
65653         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65654         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65655         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65656         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65657         bother returning ENOSYS if settimeofday or stime fails; just let
65658         them return whatever errno they want to return.
65659         * lib/utimens.c: Include unistd.h, for dup2.
65660         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65661         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65662
65663 2005-10-02  Jim Meyering  <jim@meyering.net>
65664
65665         Sync from coreutils.
65666         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65667         from glibc-2.2.5 that fails for read-only files.
65668
65669 2005-10-02  Jim Meyering  <jim@meyering.net>
65670
65671         Sync from coreutils.
65672         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65673         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65674         `#if HAVE_CONFIG_H'.
65675         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65676         Remove AT_FDCWD test.
65677         Do not consume the fd unless successful.
65678         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65679         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65680         block, so that we don't even try to compile it if settimeofday is
65681         available.  This works around a compilation failure on OSF1 V5.1,
65682         due to stime requiring a `long int*' while tv_sec is `int'.
65683
65684 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65685
65686         Sync from coreutils.
65687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65688         against `yes', rather than just testing for nonempty.
65689
65690 2005-10-01  Simon Josefsson  <jas@extundo.com>
65691
65692         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65693         and Darwin.
65694
65695         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65696         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65697         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65698         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65699         Check if struct addrinfo is declared.
65700
65701 2005-10-01  Simon Josefsson  <jas@extundo.com>
65702
65703         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65704         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65705         AI_* and EAI_* definitions.  Protect function declarations.
65706
65707 2005-10-01  Jim Meyering  <jim@meyering.net>
65708
65709         Sync from coreutils.
65710
65711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65712         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65713         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65714         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65715         in the inet and nsl libraries.  Required on Solaris 5.7.
65716
65717 2005-10-01  Jim Meyering  <jim@meyering.net>
65718
65719         Sync from coreutils.
65720         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65721         in the inet and nsl libraries.  Required on Solaris 5.7.
65722
65723 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65724
65725         * lib/getdelim.c (getdelim): Remove unused variables.
65726
65727 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65728
65729         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65730         so that the code works even with ancient cpp.  Portability problem
65731         with GCC 2.7.2.1 reported by Thomas M.Ott.
65732
65733 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         * modules/regex (Depends-on): Add strcase.
65736
65737         * modules/gethostname (Licence): Change from GPL to LGPL, since
65738         gethostname.c is a trivial implementation of a standard library
65739         function.
65740         * modules/poll (License): Change from GPL to LGPL, since it's
65741         derived from LGPL code.
65742
65743 2005-09-27  Jim Meyering  <jim@meyering.net>
65744
65745         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65746         HAVE_CONFIG_H.
65747
65748         * lib/intprops.h (signed_type_or_expr__): Define.
65749         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65750         for unsigned types.
65751
65752 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65753
65754         * lib/verify.h (verify_expr): Remove, replacing with:
65755         (verify_true): New macro that returns true instead of void.
65756         (verify_type__): Remove.
65757         (verify): Use verify_true rather than verify_type__.
65758
65759 2005-09-26  Bruno Haible  <bruno@clisp.org>
65760
65761         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65762         is necessary.
65763         (lib_SOURCES): Remove mbchar.c.
65764         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65765         (Files): Add m4/mbrtowc.m4.
65766         * modules/mbiter: Likewise.
65767         * modules/mbuiter: Likewise.
65768
65769 2005-09-26  Bruno Haible  <bruno@clisp.org>
65770
65771         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65772         compile mbchar.c if they are not both present.
65773         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65774         * m4/mbiter.m4 (gl_MBITER): Likewise.
65775         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65776         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65777         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65778
65779 2005-09-25  Jim Meyering  <jim@meyering.net>
65780
65781         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65782         also uses socklen_t.
65783
65784 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65785
65786         * lib/utimens.c (ENOSYS): Define if not already defined.
65787         (futimens): Support having a null PATH if the file descriptor
65788         is nonnegative.
65789
65790         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65791         Remove.
65792         (__attribute): Define to empty unless GCC 3.1 or later.
65793         This works around a core dump on OpenBSD 3.4, which has GCC
65794         2.95.3, which dumps core when given __attribute__(()).  It also
65795         simplifies other tests, since we really don't want to bother with
65796         worrying about which ancient version of GCC supported what.
65797         Original problem reported by Yoann Vandoorselaere, with part of
65798         the fix suggested by Derek Price.
65799
65800 2005-09-24  Jim Meyering  <jim@meyering.net>
65801
65802         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65803         so we can once again use a positive bitfield width of 1 -- now we
65804         don't have to explain why we were using a bitfield width of 2.
65805
65806 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65809         and similarly for the other external symbols.  Problem reported
65810         by James Gallager.
65811
65812         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65813         bug reported by Jim Meyering.
65814
65815         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65816         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65817         not needed, since socklen is a prerequisite module.
65818
65819 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65820
65821         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65822         Problem reported by Eric Blake.
65823         (getaddrinfo): Initialize se so that it's not garbage.
65824         Redo internal storage allocation so that it doesn't make unportable
65825         assumptions about alignment.
65826         Fix a memory leak.
65827
65828         * lib/utimens.c (futimens): Use futimesat if available.
65829         Prefer it to futimes since it doesn't have the futimes bug.
65830
65831         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65832         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65833         Instead, declare a function that returns a pointer to an array,
65834         and use verify_type__ to declare the size of the array.
65835         Problem and germ of a solution reported by Bruno Haible.
65836         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65837         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65838
65839 2005-09-23  Jim Meyering  <jim@meyering.net>
65840
65841         Sync from coreutils.
65842         Correct build failure (socklen_t not defined) on at least
65843         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65844         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65845
65846 2005-09-23  Jim Meyering  <jim@meyering.net>
65847
65848         * modules/getaddrinfo (Depends-on): Add socklen.
65849
65850 2005-09-23  Bruno Haible  <bruno@clisp.org>
65851
65852         * tests/test-verify.c: New file.
65853
65854 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65855
65856         Sync from coreutils.
65857
65858         * modules/argmatch (Depends-on): Add verify.
65859         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65860         unistd-safer.
65861         * modules/save-cwd (Depends-on): Likewise.
65862
65863         * modules/openat (Files): Add lib/openat-die.c.
65864         (Depends-on): Remove error, exitfail.
65865         Add dirname.
65866
65867         * modules/verify: New file.
65868         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65869         with "verify" module.
65870
65871 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         Sync from coreutils.
65874
65875         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65876         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65877         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65878         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65879         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65880         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65881         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65882         Don't bother checking for string.h, stdlib.h, unistd.h.
65883         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65884         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65885         module's job.
65886         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65887         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65888
65889         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65890         (gl_GETDATE): Use it.
65891
65892         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65893
65894 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65895
65896         Sync from coreutils.
65897
65898         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65899         stat-time.h.
65900         * lib/argmatch.h: Include verify.h
65901         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65902         (ARGMATCH_ASSERT): Remove; unused.
65903         * lib/canonicalize.c: Assume STDC_HEADERS.
65904         * lib/exclude.c: Include "strcase.h".
65905         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65906         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65907         and stdio-safer.h.
65908         (getusershell): Call fopen, not fopen_safer.
65909         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65910         Do not include unistd-safer.h.
65911         (save_cwd): Don't call fd_safer; no longer needed
65912         now that we include fcntl--.h.
65913
65914         * lib/getdate.y (relative_time): New type.
65915         (RELATIVE_TIME_0): New constant.
65916         (parser_control): Use relative_time instead of doing it ourselves.
65917         (%union): Add new relative_time rel member.
65918         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65919         Now typeless.
65920         (relunit, relunit_snumber): Now of type rel.
65921         (zone, rel, relunit, get_date): Adjust to above changes.
65922
65923         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65924         Do not include unistd-safer.h.
65925         (getloadavg): Don't call fd_safer; no longer needed
65926         now that we include fcntl--.h.
65927
65928         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65929         (make_dir_parents): Treat ENOSYS like EEXIST.
65930
65931         Improve quality of diagnostics on restore_cwd failure.
65932         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65933         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65934         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65935         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65936         each time through the loop.  Do not diagnose restore_cwd failure;
65937         that is the caller's job (and perhaps the caller does not care).
65938
65939         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65940         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65941         If the file already exists but is not a directory, don't bother
65942         to try to make its parents.
65943         Close potential file descriptor leak if we can't chdir("/") (!).
65944         Don't always return true if chdir($PWD) fails; return true only
65945         if the requested action was done successfully (except for the
65946         chdir($PWD)).
65947         Don't log final directory unless we actually made it.
65948         Refactor to avoid duplicate code to fix up permissions.
65949         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65950
65951         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65952         to make it a bit faster and (I hope) clearer.
65953         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65954         Fix bug in formats like %2N.
65955
65956         * lib/verify.h: New file.
65957
65958 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65959
65960         Sync from coreutils.
65961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65962
65963 2005-09-22  Jim Meyering  <jim@meyering.net>
65964
65965         Sync from coreutils.
65966
65967         * m4/lstat.m4 (gl_FUNC_LSTAT):
65968         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65969         Remove obsolete comment.
65970         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65971         * m4/xstrtod.m4: Likewise.
65972
65973         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65974
65975 2005-09-22  Jim Meyering  <jim@meyering.net>
65976
65977         Sync from coreutils.
65978
65979         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65980
65981         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65982         the .tm_year member, since otherwise gcc-4.0 would now warn about
65983         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65984
65985         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65986         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65987
65988         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65989         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65990         when run in a time zone for which daylight savings time is in effect
65991         for the starting date.
65992
65993         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65994         stop us from restricting permissions of just-created absolute-named
65995         directories.
65996         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65997         to restore initial working directory.
65998         * lib/mkdir-p.c (make_dir_parents): New parameter:
65999         different_working_dir, to tell caller if/when we change the working
66000         directory and are unable to return to the initial one.
66001         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66002         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66003         `return false'.  This fixes a bug introduced on 2004-07-30.
66004
66005         * lib/openat.c (fdopendir): Be sure to close the supplied
66006         file descriptor before returning.  This makes our replacement
66007         implementation a little closer to Solaris's, where fdopendir
66008         ties the file descriptor to the returned DIR* pointer.
66009         * lib/openat.c (unlinkat): New function.
66010         * lib/openat.h (unlinkat): Add prototype.
66011         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66012         (openat_restore_fail): Rename from openat_restore_die.
66013         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66014
66015         Provide an alternative to exiting immediately upon save_cwd or
66016         restore_cwd failure.  Now, an application can arrange e.g.,
66017         to perform a longjump in that case.
66018         * lib/openat.c: Include dirname.h.
66019         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66020         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66021         and openat_restore_die rather than calling error directly.
66022         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66023
66024         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66025         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66026         define.
66027
66028         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66029         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66030                             int utc, int nanoseconds);
66031         Background:
66032         date should not have to allocate a megabyte of virtual memory to
66033         handle a format argument like +%1048575T.  When implemented with
66034         strftime, it must allocate such a buffer, use strftime to fill it
66035         in, print it, then free it.
66036         With fprintftime, it simply prints everything and exits.
66037         With no need for memory allocation, that's one fewer way to fail.
66038         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66039         optional field width, not before, so we accept %9:z, not %:9z.
66040         (my_strftime): Be sure to use L_('x') for literals.
66041
66042         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66043         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66044         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66045         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66046         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66047         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66048         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66049         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66050         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66051         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66052         * lib/xgethostname.c, lib/xreadlink.c:
66053         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66054
66055         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66056         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66057         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66058         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66059         and don't include <sys/file.h>).
66060
66061 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66062
66063         Sync from coreutils.
66064
66065         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66066         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66067         [!LDAV_DONE]: Avoid unused variable warning.
66068
66069 2005-09-21  Bruno Haible  <bruno@clisp.org>
66070
66071         * lib/unicodeio.h (unicode_to_mb): New declaration.
66072
66073 2005-09-20  Derek Price  <derek@ximbiot.com>
66074
66075         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66076         getaddrinfo.h.
66077
66078 2005-09-20  Bruno Haible  <bruno@clisp.org>
66079
66080         * gnulib-tool: Remove trailing slashes from the values specified for
66081         --source-base, --m4-base, --tests-base, --aux-dir.
66082         Suggested by Simon Josefsson <jas@extundo.com>.
66083
66084 2005-09-20  Bruno Haible  <bruno@clisp.org>
66085
66086         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66087         func_modules_to_filelist, func_import, func_create_testdir): Make all
66088         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66089         change when gnulib-tool is invoked in a different locale.
66090
66091 2005-09-19  Simon Josefsson  <jas@extundo.com>
66092
66093         * m4/socklen.m4: Fix typo.
66094
66095 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66096
66097         Use a consistent style for including <config.h>.
66098         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66099         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66100         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66101         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66102         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66103         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66104         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66105         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66106         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66107         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66108         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66109         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66110         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66111         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66112         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66113         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66114         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66115         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66116         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66117         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66118         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66119         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66120         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66121         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66122         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66123         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66124         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66125         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66126         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66127         lib/xstrtoumax.c, lib/yesno.c:
66128         Standardize inclusion of config.h.
66129         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66130         lib/inttostr.h:  Removed inclusion of config.h from header files.
66131         * lib/inttostr.c:  Adjusted in-tree users.
66132         * lib/timespec.h: Remove superfluous warning to include config.h.
66133         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66134         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66135         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66136         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66137         config.h with HAVE_CONFIG_H.
66138
66139 2005-09-19  Jim Meyering  <jim@meyering.net>
66140
66141         * modules/pathmax (License): Change to LGPL.
66142
66143 2005-09-19  Derek Price  <derek@ximbiot.com>
66144
66145         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66146
66147 2005-09-19  Bruno Haible  <bruno@clisp.org>
66148
66149         * gnulib-tool (import): Provide default for --tests-base.
66150
66151 2005-09-19  Bruno Haible  <bruno@clisp.org>
66152
66153         * doc/quote.texi: New file, extracted from gnulib.texi.
66154         * doc/ctime.texi: New file, extracted from gnulib.texi.
66155         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66156         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66157         * doc/gnulib.texi: Include them.
66158
66159 2005-09-18  Bruno Haible  <bruno@clisp.org>
66160
66161         Portability fix.
66162         * gnulib-tool (func_readlink): New function.
66163         (func_ln_if_changed): Use it.
66164
66165 2005-09-18  Bruno Haible  <bruno@clisp.org>
66166
66167         * gnulib-tool: Support --with-tests also with --import.
66168         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66169         (func_import): Use variables $testsbase and $inctests. Emit a
66170         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66171         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66172         SUBDIRS += $testsdir.
66173         (func_create_testdir): Update.
66174
66175 2005-09-18  Bruno Haible  <bruno@clisp.org>
66176
66177         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66178         instead of $dry_run.
66179         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66180         (func_ln_if_changed): Don't handle dry-run here.
66181         (func_import): In dry-run mode, detect more precisely which actions
66182         would be performed, and don't use "...ing" verbs.
66183
66184 2005-09-18  Bruno Haible  <bruno@clisp.org>
66185
66186         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66187         (func_import): Use join on two temporary files instead of three nested
66188         loops, in order to determine which files are new or old.
66189
66190 2005-09-18  Bruno Haible  <bruno@clisp.org>
66191
66192         * gnulib-tool (func_import): Comment out code that spits out the
66193         new files with --dry-run.
66194
66195 2005-09-18  Bruno Haible  <bruno@clisp.org>
66196
66197         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66198
66199 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66200
66201         * lib/stat-time.h: New file.
66202         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66203         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66204         in a different way.
66205         (timespec_cmp): New function.
66206         * lib/utimecmp.c: Include stat-time.h.
66207         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66208         members exist, not on the obsolescent ST_MTIM_NSEC.
66209         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66210
66211 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66212
66213         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66214
66215 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66216
66217         * MODULES.html.sh (File system functions): Add stat-time.
66218         * modules/stat-time: New file.
66219         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66220         is now done in a different way, by the stat-time module.
66221         * modules/utimecmp (Depends-on): Add stat-time.
66222
66223 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * m4/st_mtim.m4: Remove.  Superseded by...
66226         * m4/stat-time.m4: New file.
66227         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66228         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66229
66230 2005-09-15  Derek Price  <derek@ximbiot.com>
66231
66232         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66233
66234 2005-09-15  Derek Price  <derek@ximbiot.com>
66235
66236         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66237         * lib/regex_internal.c: Ditto, using this...
66238         (__GNUC_PREREQ): ...new macro.
66239         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66240         using...
66241         (__GNUC_PREREQ): ...this new macro.
66242
66243         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66244
66245 2005-09-15  Derek Price  <derek@ximbiot.com>
66246             Paul Eggert  <eggert@cs.ucla.edu>
66247
66248         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66249         changes, consolidating in...
66250         * lib/regex_internal.h: ...this file.
66251
66252 2005-09-13  Jim Meyering  <jim@meyering.net>
66253
66254         * lib/canon-host.c: Filter through gnu indent and reword comments
66255         slightly.
66256         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66257
66258 2005-09-13  Derek Price  <derek@ximbiot.com>
66259
66260         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66261         failure.
66262         Reported by Jim Meyering  <jim@meyering.net>.
66263
66264 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66265
66266         * lib/base64.c: Typo.
66267         (base64_encode): Put b64str in initialized data section.
66268
66269 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         Merge glibc and coreutils changes into gnulib, plus a few
66272         extra fixes.
66273         * lib/md5.c: Use #error rather than a string.
66274         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66275         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66276         (__attribute__): Define to empty for non recent-GCC.
66277         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66278         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66279         Renamed from their non-__ counterparts, with new macros replacing
66280         them if not _LIBC.  Add __THROW attribute.
66281         (rol): Remove.
66282         (struct md5_ctx): Align buffer if using GCC.
66283         * lib/sha1.h (struct sha1_ctx): Likewise.
66284         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66285         The old name was backwards.
66286         (NOTSWAP): Remove; not used.
66287         (rol): New macro, moved here from md5.h.
66288         (sha1_process_block): Remove a FIXME that doesn't make sense.
66289
66290 2005-09-12  Derek Price  <derek@ximbiot.com>
66291
66292         Return usable errors from canon-host.
66293         * lib/canon-host.h: New file.
66294         * lib/canon-host.c (canon_host): Wrap...
66295         (canon_host_r): ...this new function, which now relies exclusively on
66296         getaddrinfo.
66297         (ch_strerror): New function.
66298         (last_cherror): New global.
66299         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66300         interface.
66301         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66302         void *.
66303         (freeaddrinfo): Free ai->ai_canonname when set.
66304
66305 2005-09-12  Derek Price  <derek@ximbiot.com>
66306
66307         Make canon-host require getaddrinfo.
66308         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66309         AC_LIBSOURCE canon-host.h.  Call...
66310         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66311         gl_GETADDRINFO.
66312         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66313
66314 2005-09-12  Derek Price  <derek@ximbiot.com>
66315
66316         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66317         LGPL.
66318         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66319
66320 2005-09-12  Derek Price  <derek@ximbiot.com>
66321
66322         * lib/gai_strerror.c: Include config.h when available.  Include
66323         getaddrinfo.h before other headers to test interface.
66324         Reported by Larry Jones <lawrence.jones@ugs.com>.
66325
66326 2005-09-12  Derek Price  <derek@ximbiot.com>
66327             Paul Eggert  <eggert@cs.ucla.edu>
66328
66329         * modules/glob (Files): Add glob-libc.h.
66330
66331 2005-09-12  Derek Price  <derek@ximbiot.com>
66332             Paul Eggert  <eggert@cs.ucla.edu>
66333
66334         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66335         glob_.h, glob-libc.h.
66336         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66337
66338 2005-09-12  Derek Price  <derek@ximbiot.com>
66339             Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66342         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66343         protecting things that should be done only in gnulib contexts.
66344         * lib/glob_.h: New file, containing only the glob things needed for
66345         gnulib.
66346         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66347         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66348         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66349         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66350         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66351         and to respect the namespace rules better.
66352
66353 2005-09-08  Simon Josefsson  <jas@extundo.com>
66354
66355         * modules/socklen: New file.
66356
66357 2005-09-08  Simon Josefsson  <jas@extundo.com>
66358
66359         * m4/socklen.m4: New file.
66360
66361 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         * modules/utimens (Files): Add m4/utimbuf.m4, since
66364         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66365         Reported by Sergey Poznyakoff.
66366
66367 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66368
66369         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66370         definitions, since that's the preferred style in glibc.
66371         Fix a minor spacing issue, and update copyright notice to match
66372         glibc's.
66373
66374 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66375
66376         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66377
66378 2005-09-06  Simon Josefsson  <jas@extundo.com>
66379
66380         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66381         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66382
66383 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66384
66385         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66386         warning.
66387
66388 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         * config/srclist.txt: Add glibc bug 1302.
66391
66392 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66393
66394         Change bitset word type from unsigned int to unsigned long int,
66395         as this has better performance on typical 64-bit hosts.
66396         Port bitset code to hosts with unusual word sizes.
66397         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66398         (build_collating_symbol):
66399         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66400         argument is a bitset.  This is merely a style issue, but it makes
66401         it clearer that an entire array is expected.
66402         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66403         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66404         Port to the case where bitset_word is not the same as unsigned int.
66405         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66406         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66407         Likewise.
66408         * lib/regexec.c (check_dst_limits_calc_pos_1,
66409         check_subexp_matching_top):
66410         (build_trtable, group_nodes_into_DFAstates):
66411         Likewise.
66412         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66413         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66414         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66415         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66416         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66417         * lib/regcomp.c (optimize_subexps, lower_subexp):
66418         Work even if bitset_word has holes in its bitwise representation.
66419         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66420         * lib/regexec.c (check_dst_limits_calc_pos_1,
66421         check_subexp_matching_top):
66422         Likewise.
66423         * lib/regex_internal.c (re_string_reconstruct):
66424         Don't assume UCHAR_MAX == 255.
66425         * lib/regex_internal.h (bitset_set_all): Likewise.
66426         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66427         All uses changed.
66428         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66429         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66430         All uses changed.
66431         (BITSET_WORD_MAX): New macro.
66432         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66433         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66434         (bitset_empty, bitset_copy):
66435         Prefer sizeof (bitset) to multiplying it out ourselves.
66436         (bitset_not_merge): Remove; unused.
66437         (bitset_contain): Return bool, not unsigned int with one bit on.
66438         All callers changed.
66439         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66440         alignment than re_node_set; do this by defining a new internal
66441         type struct dests_alloc and using it to allocate memory.
66442
66443 2005-09-05  Bruno Haible  <bruno@clisp.org>
66444
66445         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66446         links.
66447
66448 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66449
66450         * modules/size_max (Makefile.am): Add size_max.h
66451
66452 2005-09-04  Derek Price  <derek@ximbiot.com>
66453
66454         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66455
66456 2005-09-03  Simon Josefsson  <jas@extundo.com>
66457
66458         * gnulib-tool: Fix typo.
66459
66460 2005-09-03  Simon Josefsson  <jas@extundo.com>
66461
66462         * config/srclist.txt: Add glibc bug 1293.
66463
66464 2005-09-03  Derek Price  <derek@ximbiot.com>
66465
66466         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66467         From Larry Jones <lawrence.jones@ugs.com>.
66468
66469 2005-09-02  Simon Josefsson  <jas@extundo.com>
66470
66471         * modules/socklen: New file.
66472
66473 2005-09-02  Simon Josefsson  <jas@extundo.com>
66474
66475         * modules/havelib: New module.
66476
66477         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66478         Use havelib.
66479
66480 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66481
66482         Check for arithmetic overflow when calculating sizes, to prevent
66483         some buffer-overflow issues.  These patches are conservative, in the
66484         sense that when I couldn't determine whether an overflow was possible,
66485         I inserted a run-time check.
66486         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66487         macros.
66488         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66489         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66490         (re_xnrealloc, re_x2nrealloc): New inline functions.
66491         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66492         parse_bracket_exp):
66493         (build_equiv_class, build_charclass): Check for arithmetic overflow
66494         in size expression calculations.
66495         * lib/regex_internal.c (re_string_realloc_buffers):
66496         (build_wcs_upper_buffer, re_node_set_add_intersect):
66497         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66498         (re_dfa_add_node, register_state): Likewise.
66499         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66500         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66501         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66502         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66503
66504 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66507         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66508
66509 2005-09-02  Bruno Haible  <bruno@clisp.org>
66510
66511         Support for lib vs. lib64 distinction on biarch platforms.
66512         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66513         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66515
66516 2005-09-02  Bruno Haible  <bruno@clisp.org>
66517
66518         * gnulib-tool (import): In the other first-use case, provide defaults
66519         as well.
66520
66521 2005-09-02  Bruno Haible  <bruno@clisp.org>
66522
66523         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66524         patches not yet found in the latest gettext release.
66525
66526 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66527
66528         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66529         to avoid a collision with bits/local_lim.h in glibc.
66530         All uses changed.  Problem reported by Dmitry V. Levin in
66531         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66532
66533         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66534         bugs in int versus size_t comparisons.
66535         (re_string_context_at): Fix bug where the code assumed that
66536         Idx is signed.
66537
66538         Use bool where appropriate.
66539         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66540         All callers changed.
66541         (calc_eclosure_iter): Likewise, for ROOT arg.
66542         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66543         (build_charclass_op): Likewise, for NON_MATCH arg.
66544         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66545         (re_string_construct_common): Likewise, for ICASE arg.
66546         * lib/regexec.c (re_search_2_stub, re_search_stub):
66547         Likewise, for RET_LEN arg.
66548         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66549         (set_regs): Likewise, for FL_BACKTRACK arg.
66550         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66551         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66552         (calc_eclosure_iter, parse_bracket_exp):
66553         Use bool for internal variables that are booleans.
66554         * lib/regexec.c (re_search_internal, check_matching,
66555         proceed_next_node):
66556         (set_regs, build_sifted_states, sift_states_bkref):
66557         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66558         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66559         (find_collation_sequence_value):
66560         Likewise.
66561         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66562         (re_node_set_compare):
66563         Return bool, not int. All callers changed.
66564         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66565         (build_trtable, check_node_accept): Likewise.
66566         * lib/regex_internal.h: Include stdbool.h.
66567
66568         Fix bugs uncovered when converting to bool.
66569         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66570         failure instead of charging ahead blindly.
66571         * lib/regex_internal.c (register_state): Likewise.
66572         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66573         for freeing internal storage.
66574         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66575         bitset pieces used as boolean, to avoid undefined behavior
66576         on hosts that do int overflow checking.
66577
66578 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66579
66580         * config/srclist.txt: Add glibc bugs 1285-1287.
66581
66582 2005-09-01  Jim Meyering  <jim@meyering.net>
66583
66584         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66585         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66586         Require gl_STAT_MACROS, too.
66587
66588 2005-09-01  Bruno Haible  <bruno@clisp.org>
66589
66590         * gnulib-tool (import): In the first-use case, provide defaults.
66591
66592 2005-09-01  Bruno Haible  <bruno@clisp.org>
66593
66594         * gnulib-tool (func_import): Remove the .tmp files.
66595
66596 2005-09-01  Bruno Haible  <bruno@clisp.org>
66597
66598         * gnulib-tool (func_import): Fix handling of symbolic links.
66599
66600 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66601
66602         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66603         old glibc regex code mishandles strings longer than 2**31 bytes.
66604         This patch fixes this when the regex code is used in gnulib
66605         (i.e., outside glibc).
66606
66607         This patch should not affect the use of the regex code inside
66608         glibc.  No doubt this problem also needs to be handled for glibc
66609         as well, but the result will be an incompatible change to the
66610         glibc ABI, and the old ABI will have to be supported too.  That
66611         can be the the subject for another patch.
66612
66613         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66614         governing whether the rest of this patch is active.  By default,
66615         the macro is disabled and the patch has no effect.
66616         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66617         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66618         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66619         (re_match_2, re_set_registers): Use the new types.
66620         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66621         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66622         New macros.
66623         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66624         (re_string_context_at, bin_tree_t, re_dfastate_t):
66625         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66626         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66627         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66628         (re_string_char_size_at, re_string_wchar_at):
66629         (re_string_elem_size_at):
66630         Use the new types and macros to port to 64-bit hosts.
66631         Use unsigned types for internal values, so that the code
66632         mostly works even for arrays larger than SSIZE_MAX.
66633         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66634         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66635         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66636         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66637         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66638         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66639         (calc_inveclosure, parse_dup_op, build_range_exp):
66640         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66641         (fetch_number, create_token_tree, mark_opt_subexp):
66642         Likewise.
66643         * lib/regex_internal.c (re_string_construct_common,
66644         create_ci_newstate):
66645         (create_cd_newstate, re_string_allocate, re_string_construct):
66646         (re_string_realloc_buffers, build_wcs_upper_buffer):
66647         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66648         (re_string_reconstruct, re_string_peek_byte_case):
66649         (re_string_fetch_byte_case, re_string_context_at):
66650         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66651         (re_node_set_init_copy, re_node_set_add_intersect):
66652         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66653         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66654         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66655         (re_acquire_state, re_acquire_state_context, register_state):
66656         Likewise.
66657         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66658         search_cur_bkref_entry):
66659         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66660         (re_search_internal, re_search_2_stub, re_search_stub)
66661         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66662         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66663         (update_cur_sifted_state, check_dst_limits):
66664         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66665         (check_subexp_limits, sift_states_bkref, merge_state_array):
66666         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66667         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66668         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66669         (expand_bkref_cache, check_node_accept_bytes):
66670         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66671         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66672         (acquire_init_state_context, check_halt_node_context):
66673         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66674         (sift_states_backward, clean_state_log_if_needed):
66675         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66676         (find_recover_state, transit_state_sb, transit_state_mb):
66677         (transit_state_bkref, build_trtable, match_ctx_clean):
66678         Likewise.
66679         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66680         to work around an assumption that REG_MISSING is negative.
66681
66682         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66683         (seek_collating_symbol_entry) [defined _LIBC]:
66684         (lookup_collation_sequence_value) [defined _LIBC]:
66685         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66686         Use prototypes rather than old-style function definitions.
66687         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66688         (transit_state_sb) [0]:
66689         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66690
66691         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66692         rm_eo.
66693
66694         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66695         (optimize_subexps, lower_subexp):
66696         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66697         since the signed shift might overflow.  Use 1u<<31 instead.
66698         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66699         Likewise.
66700         * lib/regexec.c (check_dst_limits_calc_pos_1,
66701         check_subexp_matching_top): Likewise.
66702
66703         * lib/regcomp.c (optimize_subexps, lower_subexp):
66704         Use CHAR_BIT rather than 8, for clarity.
66705         * lib/regexec.c (check_dst_limits_calc_pos_1):
66706         (check_subexp_matching_top): Likewise.
66707         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66708         have to worry about portability issues when shifting it left.
66709         Remove no-longer-needed test for table_size > 0.
66710         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66711         in a word, as the resulting behavior is undefined.
66712         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66713         in one case, a <= should have been an <, and in another case the
66714         whole test was missing.
66715         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66716         the standard name CHAR_BIT.
66717         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66718         this is not true on one's complement and signed-magnitude hosts.
66719
66720         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66721         next_last_offset.
66722         (struct re_dfa_t): Remove unused member states_alloc.
66723         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66724
66725 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66726
66727         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66728         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66729         and large-file glibc and in 32-bit large-file Solaris.
66730
66731 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66734         lengths fit in regoff_t; this isn't true if regoff_t is the same
66735         width as size_t.
66736         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66737         (= START + RANGE) instead of RANGE.  This avoids overflow
66738         problems when regoff_t is the same width as size_t.
66739         All callers changed.
66740         (re_search_2_stub): Check for overflow when adding the
66741         sizes of the two strings.
66742         (re_search_stub): Check for overflow when adding START
66743         to RANGE; if it occurs, substitute the extreme value.
66744
66745 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66746
66747         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66748
66749 2005-08-31  Jim Meyering  <jim@meyering.net>
66750
66751         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66752         a pointer-to-const.
66753         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66754         (register_state): Likewise.
66755         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66756         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66757         (group_nodes_into_DFAstates): Likewise.
66758
66759 2005-08-31  Jim Meyering  <jim@meyering.net>
66760
66761         * check-module: Add a FIXME comment.
66762
66763 2005-08-31  Eric Blake  <ebb9@byu.net>
66764
66765         * modules/unistd-safer (Files): Add unistd--.h.
66766         * modules/stdio-safer (Files): Add stdio--.h.
66767
66768 2005-08-31  Derek Price  <derek@ximbiot.com>
66769
66770         * lib/getdelim.c (getdelim): Return EOF on EOF.
66771         Reported by Larry Jones <lawrence.jones@ugs.com>.
66772
66773 2005-08-31  Bruno Haible  <bruno@clisp.org>
66774
66775         Avoid unnecessary diffs in the generated lib/Makefile.am.
66776         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66777         the generated files.
66778         (func_import): Don't set cmd.
66779
66780 2005-08-31  Bruno Haible  <bruno@clisp.org>
66781
66782         * lib/strstr.c: Include <stddef.h>, for NULL.
66783         * lib/strcasestr.c: Likewise.
66784         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66785
66786 2005-08-31  Bruno Haible  <bruno@clisp.org>
66787
66788         * gnulib-tool: New option --macro-prefix.
66789         (func_import): Use macro_prefix.
66790         (import): Handle option --macro-prefix.
66791
66792 2005-08-31  Bruno Haible  <bruno@clisp.org>
66793
66794         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66795         Also use new variables cached_lgpl, cached_libtool.
66796
66797 2005-08-31  Bruno Haible  <bruno@clisp.org>
66798
66799         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66800         always instantiating them.
66801
66802 2005-08-31  Bruno Haible  <bruno@clisp.org>
66803
66804         * gnulib-tool (func_import): Read the previous cached settings
66805         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66806         earlier added by gnulib but are now dropped. Warn when a gnulib file
66807         overwrites a non-gnulib file.
66808
66809 2005-08-31  Bruno Haible  <bruno@clisp.org>
66810
66811         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66812         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66813         projects that don't keep autogenerated files in CVS. Put into
66814         actioncmd only the specified modules, not the transitive closure.
66815
66816 2005-08-31  Bruno Haible  <bruno@clisp.org>
66817
66818         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66819         Create directories that shall be filled.
66820         (import): Don't look for gl_* macros in configure.ac. Recurse across
66821         all directories containing a gnulib-cache.m4 files, if meaningful.
66822
66823 2005-08-31  Bruno Haible  <bruno@clisp.org>
66824
66825         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66826         (import): Set seen_libtool when we see gl_LIBTOOL.
66827
66828 2005-08-31  Bruno Haible  <bruno@clisp.org>
66829
66830         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66831         declaration macro definitions from generated gnulib.m4.
66832
66833 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66834
66835         * lib/iconvme.h: Add prototype for iconv_alloc.
66836
66837 2005-08-29  Simon Josefsson  <jas@extundo.com>
66838
66839         * lib/iconvme.c: Fix errno.
66840
66841 2005-08-29  Bruno Haible  <bruno@clisp.org>
66842
66843         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66844         that it works when the directory contains spaces.
66845
66846 2005-08-29  Bruno Haible  <bruno@clisp.org>
66847
66848         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66849
66850 2005-08-29  Bruno Haible  <bruno@clisp.org>
66851
66852         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66853         Emit more advice.
66854
66855 2005-08-29  Bruno Haible  <bruno@clisp.org>
66856         and Stepan Kasal  <kasal@ucw.cz>
66857
66858         * check-module: If more parameters are given, check each of them
66859         separately; add more exceptions, as noted by Jim Meyering.
66860         (check_module): New procedure.
66861         (%exempt_header): Now contains all exceptions.
66862
66863 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66864
66865         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66866
66867 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66868
66869         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66870
66871 2005-08-28  Bruno Haible  <bruno@clisp.org>
66872
66873         * m4/gnulib-tool.m4: New file.
66874
66875 2005-08-27  Jim Meyering  <jim@meyering.net>
66876
66877         * modules/unistd-safer (Files): Add pipe-safer.c.
66878         * modules/fcntl-safer (Files): Add creat-safer.c.
66879
66880 2005-08-27  Jim Meyering  <jim@meyering.net>
66881
66882         * m4/stdlib-safer.m4: New file.  From coreutils.
66883         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66884         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66885         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66886         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66887         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66888
66889 2005-08-27  Jim Meyering  <jim@meyering.net>
66890
66891         * lib/fopen-safer.c: Merge minor changes from coreutils.
66892         * lib/dup-safer.c: Likewise.
66893         * lib/fd-safer.c: Likewise.
66894
66895         Merge from coreutils.
66896         * lib/stdio--.h: New file.
66897         * lib/stdlib--.h: New file.
66898         * lib/mkstemp-safer.c: New file.
66899
66900         GNU tar needs these.
66901         * lib/pipe-safer.c: New file.
66902         * lib/creat-safer.c: New file.
66903         * lib/fcntl--.h (creat): Define to creat_safer.
66904         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66905         * lib/unistd--.h (pipe): Define to pipe_safer.
66906         * lib/unistd-safer.h: Declare pipe_safer.
66907
66908 2005-08-26  Simon Josefsson  <jas@extundo.com>
66909
66910         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66911         Haible <bruno@clisp.org>.
66912
66913 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * lib/regex_internal.h: Remove all references to
66916         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66917         or better.
66918         (bitset_not, bitset_merge, bitset_not_merge):
66919         (bitset_mask, re_string_allocate, re_string_construct):
66920         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66921         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66922         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66923         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66924         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66925         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66926         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66927         (re_acquire_state_context):
66928         Remove unnecessary forward decls.
66929         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66930         Put __attribute at function definition,
66931         now that the function decl has been removed.
66932         * lib/regex_internal.c (re_string_peek_byte_case):
66933         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66934         Likewise.
66935
66936 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66937
66938         * m4/regex.m4: Add AC_PREREQ(2.50).
66939         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66940
66941 2005-08-25  Simon Josefsson  <jas@extundo.com>
66942
66943         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66944         __fsetlocking.
66945
66946 2005-08-25  Simon Josefsson  <jas@extundo.com>
66947
66948         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66949         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66950         GLIBC specific code.
66951
66952 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         Make regex safe for g++.  This fixes one real bug (an "err"
66955         that should have been "*err").  g++ problem reported by
66956         Sam Steingold.
66957         * lib/regex_internal.h (re_calloc): New macro, consistent with
66958         re_malloc etc.  All callers of calloc changed to use re_calloc.
66959         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66960         not int.  All callers changed.
66961         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66962         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66963         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66964         (find_recover_state): Change "err" to "*err"; this fixes what
66965         appears to be a real bug.
66966         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66967         versus int.
66968
66969 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66970
66971         * modules/regex (Depends-on): Add malloc, since the code
66972         assumes that !malloc(0) means failure.
66973
66974 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66977
66978         alloca modernization/simplification for regex.
66979         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66980         needs to be at the start of the file, and can be moved into
66981         regex_internal.h and simplified.
66982         * lib/regex_internal.h: Include <alloca.h>.
66983         (__libc_use_alloca) [!defined _LIBC]: New macro.
66984         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66985         now works outside glibc.
66986
66987 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66988
66989         * config/srclist.txt: Add glibc bugs 1241, 1245.
66990
66991 2005-08-25  Jim Meyering  <jim@meyering.net>
66992
66993         * lib/open-safer.c: Include <config.h>.
66994         Otherwise, we'd lose LARGEFILE support in any file using
66995         e.g. "fcntl--.h"
66996
66997 2005-08-25  Bruno Haible  <bruno@clisp.org>
66998
66999         * m4/minmax.m4: Require autoconf 2.52.
67000         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67001         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67002         alternatives of translit over the alphabet.
67003         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67004
67005 2005-08-24  Simon Josefsson  <jas@extundo.com>
67006
67007         * tests/test-getpass.c: New file.
67008
67009 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67010
67011         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67012         for GNU regex features.
67013
67014 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67015
67016         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67017         * lib/regex.h (regerror): Likewise.
67018
67019         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67020         requires this.  (The code never needed it.)
67021
67022         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67023         All uses of recently-renamed identifiers changed to use the new,
67024         POSIX-compliant names.  The code will build and run just fine
67025         without these changes, but it's better to eat our own dog food
67026         and use the standard-conforming names.
67027
67028         * lib/regex.h: Fix a multitude of POSIX name space violations.
67029         These changes have an effect only for programs that define
67030         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67031         do not change anything for programs compiled in the normal way.
67032         Also, there is no effect on the ABI.
67033
67034         (_REGEX_SOURCE): New macro.
67035         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67036         defined and _GNU_SOURCE is not; this fixes a name space violation.
67037
67038         Rename the following macros to obey POSIX requirements.
67039         The old names are still visible as macros if _REGEX_SOURCE is defined.
67040         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67041         RE_BACKSLASH_ESCAPE_IN_LISTS.
67042         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67043         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67044         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67045         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67046         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67047         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67048         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67049         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67050         (REG_INTERVALS): renamed from RE_INTERVALS.
67051         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67052         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67053         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67054         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67055         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67056         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67057         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67058         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67059         RE_UNMATCHED_RIGHT_PAREN_ORD.
67060         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67061         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67062         (REG_DEBUG): renamed from RE_DEBUG.
67063         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67064         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67065         unusual, since we can't clash with the POSIX REG_ICASE.
67066         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67067         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67068         (REG_NO_SUB): renamed from RE_NO_SUB.
67069         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67070         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67071         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67072         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67073         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67074         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67075         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67076         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67077         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67078         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67079         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67080         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67081         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67082         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67083         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67084         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67085         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67086         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67087         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67088         (REG_FIXED): Renamed from REGS_FIXED.
67089         (REG_NREGS): Renamed from RE_NREGS.
67090
67091         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67092         of other REG_* macros, since POSIX says the user is allowed to
67093         #undef these macros selectively.
67094
67095         (reg_errcode_t): Update comment stating what other tables need
67096         to be consistent.
67097
67098         Rename the following enum values to obey POSIX requirements.
67099         The old names are still visible as macros.
67100         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67101         is not defined, since GNU is supposed to be a superset of POSIX as
67102         much as possible, and since we want reg_errcode_t to be a signed
67103         type for implementation consistency.
67104         (_REG_NOERROR): Renamed from REG_NOERROR.
67105         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67106         (_REG_BADPAT): Renamed from REG_BADPAT.
67107         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67108         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67109         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67110         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67111         (_REG_EBRACK): Renamed from REG_EBRACK.
67112         (_REG_EPAREN): Renamed from REG_EPAREN.
67113         (_REG_EBRACE): Renamed from REG_EBRACE.
67114         (_REG_BADBR): Renamed from REG_BADBR.
67115         (_REG_ERANGE): Renamed from REG_ERANGE.
67116         (_REG_ESPACE): Renamed from REG_ESPACE.
67117         (_REG_BADRPT): Renamed from REG_BADRPT.
67118         (_REG_EEND): Renamed from REG_EEND.
67119         (_REG_ESIZE): Renamed from REG_ESIZE.
67120         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67121         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67122         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67123         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67124         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67125
67126         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67127         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67128         changed.  But support the old name if the new one is not defined
67129         and if _REGEX_SOURCE.
67130
67131         Change the following member names in struct re_pattern_buffer.
67132         The old names are still supported if !_REGEX_SOURCE.
67133         The new names are always supported, regardless of _REGEX_SOURCE.
67134         (re_buffer): Renamed from buffer.
67135         (re_allocated): Renamed from allocated.
67136         (re_used): Renamed from used.
67137         (re_syntax): Renamed from syntax.
67138         (re_fastmap): Renamed from fastmap.
67139         (re_translate): Renamed from translate.
67140         (re_can_be_null): Renamed from can_be_null.
67141         (re_regs_allocated): Renamed from regs_allocated.
67142         (re_fastmap_accurate): Renamed from fastmap_accurate.
67143         (re_no_sub): Renamed from no_sub.
67144         (re_not_bol): Renamed from not_bol.
67145         (re_not_eol): Renamed from not_eol.
67146         (re_newline_anchor): Renamed from newline_anchor.
67147
67148         Change the following member names in struct re_registers.
67149         The old names are still supported if !_REGEX_SOURCE.
67150         The new names are always supported, regardless of _REGEX_SOURCE.
67151         (rm_num_regs): Renamed from num_regs.
67152         (rm_start): Renamed from start.
67153         (rm_end): Renamed from end.
67154
67155         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67156         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67157         Prepend __ to parameter names.
67158
67159         Undo yesterday's changes.
67160
67161 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67162
67163         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67164         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67165         lib/regex.c.
67166
67167 2005-08-24  Jim Meyering  <jim@meyering.net>
67168
67169         Sync from coreutils.
67170         * m4/fcntl-safer.m4: New file.
67171
67172         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67173         and object files for this module.
67174
67175 2005-08-24  Jim Meyering  <jim@meyering.net>
67176
67177         Sync from coreutils.
67178         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67179
67180 2005-08-24  Jim Meyering  <jim@meyering.net>
67181
67182         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67183         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67184
67185 2005-08-24  Jim Meyering  <jim@meyering.net>
67186
67187         * modules/fcntl-safer: New module.
67188         * modules/fts (Depends-on): Add fcntl-safer.
67189         * MODULES.html.sh (File descriptor based Input/Output):
67190         Add fcntl-safer.
67191
67192 2005-08-24  Bruno Haible  <bruno@clisp.org>
67193
67194         Support for unit test modules.
67195         * modules/README: Mention tests modules.
67196         * modules/TEMPLATE-TESTS: New file.
67197         * gnulib-tool: New options --extract-tests-module, --with-tests and
67198         --tests-base (unused for the moment).
67199         (testsbase, inctests): New variables.
67200         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67201         (func_verify_module): Exclude TEMPLATE-TESTS.
67202         (func_verify_nontests_module, func_verify_tests_module): New functions.
67203         (func_get_dependencies): Add implicit dependency for tests modules.
67204         (func_get_tests_module): New function.
67205         (func_modules_transitive_closure): When --with-tests was specified,
67206         include the unit tests as well, unless explicitly avoided.
67207         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67208         (func_emit_tests_Makefile_am): New function.
67209         (func_create_testdir): When --with-tests was specified, emit a
67210         tests/ directory.
67211         * MODULES.html.sh (Future developments): Update.
67212
67213 2005-08-24  Bruno Haible  <bruno@clisp.org>
67214
67215         * modules/tls-tests: New file.
67216         * tests/test-tls.c: New file, from GNU gettext.
67217
67218 2005-08-24  Bruno Haible  <bruno@clisp.org>
67219
67220         * modules/lock-tests: New file.
67221         * tests/test-lock.c: New file, from GNU gettext.
67222
67223 2005-08-24  Bruno Haible  <bruno@clisp.org>
67224
67225         * lib/lock.h: Add multiple inclusion guard.
67226         * lib/tls.h: Add multiple inclusion guard.
67227
67228 2005-08-24  Bruno Haible  <bruno@clisp.org>
67229
67230         * gnulib-tool: Add support for the --aux-dir option to
67231         --create-testdir, --create-megatestdir, --test, --megatest.
67232         (func_create_testdir, func_create_megatestdir): Optionally emit a
67233         AC_CONFIG_AUX_DIR directive.
67234         (create-testdir, create-megatestdir, test, megatest): Provide a
67235         default value for $auxdir.
67236
67237 2005-08-24  Bruno Haible  <bruno@clisp.org>
67238
67239         * gnulib-tool (import): Use compound statement instead of subshell
67240         where possible.
67241
67242 2005-08-24  Bruno Haible  <bruno@clisp.org>
67243
67244         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67245
67246 2005-08-24  Bruno Haible  <bruno@clisp.org>
67247
67248         * gnulib-tool (func_version): Update.
67249
67250 2005-08-24  Bruno Haible  <bruno@clisp.org>
67251
67252         * gnulib-tool (func_import, func_create_testdir,
67253         func_create_megatestdir): Quote all autoconf macro arguments.
67254
67255 2005-08-24  Bruno Haible  <bruno@clisp.org>
67256
67257         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67258         option --force, because --force causes the aclocal.m4 of each
67259         subdirectory to be newer than the corresponding config.h.in.
67260
67261 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67262
67263         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67264         All contents moved to gl_REGEX.
67265         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67266         assume that it does.
67267
67268 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67269
67270         * lib/regex.h (REG_NOSYS)
67271         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67272         Define, since POSIX requires it as of 2001.
67273         (_REG_ENOSYS)
67274         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67275         New private symbol, used to keep the enum signed in all cases.
67276         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67277         Youngman in
67278         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67279
67280         * lib/regex_internal.c (re_string_skip_chars, register_state):
67281         (calc_state_hash):
67282         Remove forward decls; no longer needed now that we use prototypes.
67283         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67284         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67285         (clean_state_log_if_needed): Likewise.
67286
67287 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67288
67289         * config/srclist.txt: Add glibc bugs 1231-1233.
67290
67291 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67292
67293         Fix problems reported by Sam Steingold in
67294         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67295         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67296         assumed that reg_errcode_t is a signed type, which is not
67297         necessarily true if _XOPEN_SOURCE is not defined.
67298         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67299         since some compilers warn about it otherwise.
67300
67301 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67304         (init_word_char, create_initial_state, duplicate_node_closure):
67305         (fetch_token, peek_token_bracket, build_range_exp):
67306         (build_collating_symbol): Remove forward decls; no longer needed
67307         now that we use prototypes.
67308
67309         * lib/regcomp.c:
67310         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67311         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67312         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67313         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67314         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67315         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67316         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67317         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67318         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67319         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67320         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67321         (build_charclass, build_charclass_op, fetch_number, create_tree):
67322         (create_token_tree, mark_opt_subexp, duplicate_tree):
67323         Use prototypes rather than old-style definitions.
67324
67325         * lib/regex_internal.c:
67326         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67327         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67328         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67329         (re_string_reconstruct, re_string_peek_byte_case):
67330         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67331         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67332         (re_node_set_init_copy, re_node_set_add_intersect):
67333         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67334         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67335         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67336         (re_acquire_state, re_acquire_state_context, register_state):
67337         (create_ci_newstate, create_cd_newstate, free_state):
67338         Likewise.
67339         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67340         re_search_2):
67341         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67342         (re_search_internal, prune_impossible_nodes):
67343         (acquire_init_state_context, check_matching, static):
67344         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67345         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67346         (update_regs, sift_states_backward, build_sifted_states):
67347         (clean_state_log_if_needed, merge_state_array):
67348         (update_cur_sifted_state, add_epsilon_src_nodes):
67349         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67350         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67351         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67352         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67353         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67354         (check_arrival, check_arrival_add_next_nodes):
67355         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67356         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67357         (check_node_accept_bytes, check_node_accept, extend_buffers):
67358         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67359         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67360         (sift_ctx_init):
67361         Likewise.
67362
67363         * lib/regex_internal.h:
67364         (re_string_allocate, re_string_construct, re_string_reconstruct):
67365         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67366         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67367         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67368         (re_string_context_at, re_string_peek_byte_case):
67369         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67370         is defined, since we now use prototypes always.
67371
67372         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67373         C89 or better.  All uses removed.
67374
67375 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         * config/srclist.txt: Add glibc bugs 1220-1227.
67378
67379 2005-08-20  Jim Meyering  <jim@meyering.net>
67380
67381         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67382         of unused local, dfa.
67383
67384 2005-08-20  Bruno Haible  <bruno@clisp.org>
67385
67386         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67387
67388 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67391         (re_node_set_insert_last, re_dfa_add_node):
67392         Rename local variables to avoid GCC shadowing warnings.
67393
67394 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67395
67396         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67397         [defined lint]: Suppress bogus uninitialized-variable warnings.
67398
67399         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67400         and let the caller return REG_ESPACE if out of space.  This
67401         removes an uninitialied-variable warning with GCC 4.0.1, and also
67402         avoids taking the address of a local variable.  All callers
67403         changed.
67404
67405 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67408         $LIBCSRC/posix/regexec.c.
67409         Add glibc bug 1217 for regcomp.c.
67410
67411 2005-08-19  Jim Meyering  <jim@meyering.net>
67412
67413         * lib/regexec.c (proceed_next_node): Redo local variables to
67414         avoid GCC shadowing warnings.
67415
67416 2005-08-18  Bruno Haible  <bruno@clisp.org>
67417
67418         * lib/strstr.c (strstr): Fix return value in multibyte case.
67419         * lib/strcasestr.c (strcasestr): Likewise.
67420
67421 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67424
67425 2005-08-17  Jim Meyering  <jim@meyering.net>
67426
67427         Make the %s format (seconds since the epoch) work for a negative
67428         number and when used with a zero-padded field width, e.g. %015s.
67429
67430         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67431         label so that it precedes the code to set `digits'.  Otherwise,
67432         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67433         print `00-22'.  Now, it prints `-0022', as it should.
67434
67435 2005-08-17  Bruno Haible  <bruno@clisp.org>
67436
67437         * modules/strstr (Files): Add m4/mbrtowc.m4.
67438         (Depends-on): Add mbuiter.
67439
67440 2005-08-17  Bruno Haible  <bruno@clisp.org>
67441
67442         * modules/strcasestr: New file.
67443         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67444         strcasestr.
67445
67446 2005-08-17  Bruno Haible  <bruno@clisp.org>
67447
67448         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67449
67450 2005-08-17  Bruno Haible  <bruno@clisp.org>
67451
67452         * modules/mbuiter: New file.
67453         * MODULES.html.sh (Extended multibyte and wide character utilities):
67454         Add mbuiter.
67455
67456 2005-08-17  Bruno Haible  <bruno@clisp.org>
67457
67458         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67459         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67460
67461 2005-08-17  Bruno Haible  <bruno@clisp.org>
67462
67463         * m4/strcasestr.m4: New file.
67464
67465 2005-08-17  Bruno Haible  <bruno@clisp.org>
67466
67467         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67468         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67469
67470 2005-08-17  Bruno Haible  <bruno@clisp.org>
67471
67472         * lib/strcasestr.h: New file.
67473         * lib/strcasestr.c: New file.
67474
67475 2005-08-17  Bruno Haible  <bruno@clisp.org>
67476
67477         * lib/strcasecmp.c: Use mbuiter.h.
67478
67479 2005-08-17  Bruno Haible  <bruno@clisp.org>
67480
67481         * lib/mbuiter.h: New file.
67482
67483 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67484
67485         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67486         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67487         and gl_GETOPT are both invoked via different paths (as happens
67488         with GNU tar CVS because it uses both argp and getopt), the former
67489         wins.
67490
67491 2005-08-16  Bruno Haible  <bruno@clisp.org>
67492
67493         * modules/tls: New file.
67494         * MODULES.html.sh (Multithreading): Add tls.
67495
67496 2005-08-16  Bruno Haible  <bruno@clisp.org>
67497
67498         * modules/strnlen1: New file.
67499         * MODULES.html.sh (String handling): Add strnlen1.
67500
67501 2005-08-16  Bruno Haible  <bruno@clisp.org>
67502
67503         * modules/strcase (Files): Add m4/mbrtowc.m4.
67504         (Depends-on): Add strnlen1, mbchar.
67505
67506 2005-08-16  Bruno Haible  <bruno@clisp.org>
67507
67508         * modules/mbiter: New file.
67509         * MODULES.html.sh (Extended multibyte and wide character utilities):
67510         Add mbiter.
67511
67512 2005-08-16  Bruno Haible  <bruno@clisp.org>
67513
67514         * modules/mbfile: New file.
67515         * MODULES.html.sh (Extended multibyte and wide character utilities):
67516         Add mbfile.
67517
67518 2005-08-16  Bruno Haible  <bruno@clisp.org>
67519
67520         * modules/mbchar: New file.
67521         * MODULES.html.sh (Extended multibyte and wide character utilities):
67522         New section.
67523
67524 2005-08-16  Bruno Haible  <bruno@clisp.org>
67525
67526         * m4/tls.m4: New file, from GNU gettext.
67527
67528 2005-08-16  Bruno Haible  <bruno@clisp.org>
67529
67530         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67531         always.
67532         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67533
67534 2005-08-16  Bruno Haible  <bruno@clisp.org>
67535
67536         * m4/mbiter.m4: New file.
67537
67538 2005-08-16  Bruno Haible  <bruno@clisp.org>
67539
67540         * m4/mbfile.m4: New file.
67541
67542 2005-08-16  Bruno Haible  <bruno@clisp.org>
67543
67544         * m4/mbchar.m4: New file.
67545
67546 2005-08-16  Bruno Haible  <bruno@clisp.org>
67547
67548         * lib/tls.h: New file, from GNU gettext.
67549         * lib/tls.c: New file, from GNU gettext.
67550
67551 2005-08-16  Bruno Haible  <bruno@clisp.org>
67552
67553         * lib/strnlen1.h: New file.
67554         * lib/strnlen1.c: New file.
67555
67556 2005-08-16  Bruno Haible  <bruno@clisp.org>
67557
67558         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67559         (mbi_init): Update.
67560         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67561         NUL byte, not after it.
67562
67563 2005-08-16  Bruno Haible  <bruno@clisp.org>
67564
67565         * lib/strcase.h (strcasecmp): Add note in comments.
67566         * lib/strncasecmp.c: Use code from strcasecmp.c.
67567         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67568         (strcasecmp): Work correctly in multibyte locales.
67569
67570 2005-08-16  Bruno Haible  <bruno@clisp.org>
67571
67572         * lib/mbiter.h: New file.
67573
67574 2005-08-16  Bruno Haible  <bruno@clisp.org>
67575
67576         * lib/mbfile.h: New file.
67577
67578 2005-08-16  Bruno Haible  <bruno@clisp.org>
67579
67580         * lib/mbchar.h: New file.
67581         * lib/mbchar.c: New file.
67582
67583 2005-08-16  Bruno Haible  <bruno@clisp.org>
67584
67585         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67586         the valid ones. Makes the comparison operations transitive:
67587         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67588         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67589
67590 2005-08-15  Simon Josefsson  <jas@extundo.com>
67591
67592         * modules/ssize_t (License): Change to 'unlimited'.
67593
67594         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67595
67596 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67597
67598         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67599         Add comments for each pending glibc patch.
67600
67601 2005-08-15  Bruno Haible  <bruno@clisp.org>
67602
67603         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67604         __cplusplus is defined.
67605
67606 2005-08-14  Jim Meyering  <jim@meyering.net>
67607
67608         Sync from coreutils.
67609
67610         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67611         Use the hash-table-based cycle-detection code not just when
67612         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67613         Reported by James Youngman in
67614         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67615         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67616         FTS_TIGHT_CYCLE_CHECK.
67617         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67618         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67619         once again.
67620         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67621         * lib/fts.c (fd_safer): Remove decl.
67622         Include fcntl--.h rather than unistd-safer.h
67623         (fts_safe_changedir): Don't call fd_safer; no longer needed
67624         now that we include fcntl--.h.
67625
67626 2005-08-12  Simon Josefsson  <jas@extundo.com>
67627
67628         * modules/getndelim2: Use ssize_t module.
67629         * modules/getnline: Likewise.
67630         * modules/safe-read: Likewise.
67631         * modules/xreadlink: Likewise.
67632
67633         * modules/ssize_t: New file.
67634
67635 2005-08-12  Simon Josefsson  <jas@extundo.com>
67636
67637         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67638
67639 2005-08-12  Simon Josefsson  <jas@extundo.com>
67640
67641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67642         ssize_t.
67643
67644 2005-08-12  Simon Josefsson  <jas@extundo.com>
67645
67646         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67647         readline, getdelim and check_version.
67648         (Support for systems lacking ISO C 99: Sizes of integer types):
67649         Add size_max.
67650
67651 2005-08-12  Bruno Haible  <bruno@clisp.org>
67652
67653         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67654
67655 2005-08-11  Simon Josefsson  <jas@extundo.com>
67656
67657         * modules/readline: New file.
67658
67659         * modules/strnlen (Files): Add strnlen.h.
67660
67661 2005-08-11  Simon Josefsson  <jas@extundo.com>
67662
67663         * m4/readline.m4: New file.
67664
67665 2005-08-11  Simon Josefsson  <jas@extundo.com>
67666
67667         * lib/readline.h, readline.c: New file.
67668
67669 2005-08-11  Simon Josefsson  <jas@extundo.com>
67670
67671         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67672         gl_AVOID.
67673
67674 2005-08-11  Bruno Haible  <bruno@clisp.org>
67675
67676         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67677
67678 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67679
67680         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67681
67682 2005-08-10  Simon Josefsson  <jas@extundo.com>
67683
67684         * tests/test-iconvme.c: New file.
67685
67686 2005-08-10  Simon Josefsson  <jas@extundo.com>
67687
67688         * m4/strnlen.m4: New file.
67689
67690         * m4/strndup.m4: Don't check for strnlen declaration, done in
67691         strnlen.m4.
67692
67693 2005-08-10  Simon Josefsson  <jas@extundo.com>
67694
67695         * lib/strndup.c: Use strnlen.h.
67696
67697         * lib/strnlen.h: New file.
67698
67699 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67700
67701         * README: Typos.
67702
67703 2005-08-02  Simon Josefsson  <jas@extundo.com>
67704
67705         * modules/readline: New file.
67706
67707 2005-08-02  Simon Josefsson  <jas@extundo.com>
67708
67709         * modules/getdelim: New file.
67710
67711         * modules/getline: Rewrite, don't use getndelim2.
67712
67713 2005-08-02  Simon Josefsson  <jas@extundo.com>
67714
67715         * m4/getline.m4: Separate out getdelim stuff into separate module.
67716
67717         * m4/getdelim.m4: New file.
67718
67719 2005-08-02  Simon Josefsson  <jas@extundo.com>
67720
67721         * lib/getline.h, getline.c: Rewrite.
67722
67723         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67724
67725 2005-07-31  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/lock.h (gl_lock_initializer): New macro.
67728         (gl_lock_define_initialized): Use it.
67729         (gl_rwlock_initializer): New macro.
67730         (gl_rwlock_define_initialized): Use it.
67731         (gl_recursive_lock_initializer): New macro.
67732         (gl_recursive_lock_define_initialized): Use it.
67733
67734 2005-07-30  Karl Berry  <karl@gnu.org>
67735
67736         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67737         Report from Ben Pfaff, regarding getopt.
67738
67739 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67742         normal way.
67743         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67744         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67745         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67746         (gl_GETOPT): Use the new macros.  Most of the implementation
67747         is moved to the new macros.  This is for programs like Emacs
67748         that don't want all the functionality of gl_GETOPT.
67749
67750 2005-07-26  Bruno Haible  <bruno@clisp.org>
67751
67752         * m4/lock.m4: Update from GNU gettext.
67753
67754 2005-07-26  Bruno Haible  <bruno@clisp.org>
67755
67756         * lib/lock.h: Update from GNU gettext.
67757         * lib/lock.c: Update from GNU gettext.
67758
67759 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67760
67761         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67762         obsolescent AC_TRY_RUN.  Include the default includes files, for
67763         'exit'.
67764
67765 2005-07-24  Bruno Haible  <bruno@clisp.org>
67766
67767         * modules/visibility: New file.
67768         * MODULES.html.sh (Misc): Add visibility.
67769
67770 2005-07-24  Bruno Haible  <bruno@clisp.org>
67771
67772         * m4/visibility.m4: New file.
67773
67774 2005-07-24  Bruno Haible  <bruno@clisp.org>
67775
67776         * doc/visibility.texi: New file.
67777
67778 2005-07-22  Bruno Haible  <bruno@clisp.org>
67779
67780         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67781         $(ALLOCA_H), redundant through BUILT_SOURCES.
67782         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67783         redundant through BUILT_SOURCES.
67784         * modules/byteswap (Makefile.am): Remove explicit dependency on
67785         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67786         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67787         $(FNMATCH_H), redundant through BUILT_SOURCES.
67788         * modules/getopt (Makefile.am): Remove explicit dependency on
67789         $(GETOPT_H), redundant through BUILT_SOURCES.
67790         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67791         redundant through BUILT_SOURCES.
67792         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67793         redundant through BUILT_SOURCES.
67794         * modules/stdbool (Makefile.am): Remove explicit dependency on
67795         $(STDBOOL_H), redundant through BUILT_SOURCES.
67796         * modules/stdint (Makefile.am): Remove explicit dependency on
67797         $(STDINT_H), redundant through BUILT_SOURCES.
67798         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67799         Remove explicit dependency on $(SYSEXITS_H).
67800         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67801
67802 2005-07-18  Simon Josefsson  <jas@extundo.com>
67803
67804         * lib/check-version.c (check_version): Accept identical versions too.
67805
67806 2005-07-18  Bruno Haible  <bruno@clisp.org>
67807
67808         * modules/lock: New file.
67809         * MODULES.html.sh (Multithreading): New section.
67810
67811 2005-07-18  Bruno Haible  <bruno@clisp.org>
67812
67813         * m4/lock.m4: New file, from GNU gettext.
67814
67815 2005-07-18  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/lock.h: New file, from GNU gettext.
67818         * lib/lock.c: New file, from GNU gettext.
67819
67820 2005-07-18  Bruno Haible  <bruno@clisp.org>
67821
67822         * lib/lock.h (gl_once_t): New type.
67823         (gl_once_define, gl_once): New macros.
67824         * lib/lock.c (fresh_once): New variable.
67825         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67826         functions.
67827
67828 2005-07-16  Simon Josefsson  <jas@extundo.com>
67829
67830         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67831         workaround, suggested by Bruno.
67832
67833 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67834
67835         * modules/xalloc (Depends-on): Add xalloc-die.
67836         * modules/xvasprintf (Depends-on): Add xalloc-die.
67837
67838 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67839
67840         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67841         with a minor change.
67842
67843 2005-07-15  Bruno Haible  <bruno@clisp.org>
67844
67845         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67846         When using lib/poll.c, define poll as rpl_poll.
67847
67848 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         * modules/argp (Depends-on): Remove unlocked-io.
67851
67852 2005-07-14  Derek Price  <derek@ximbiot.com>
67853
67854         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67855         for glob symlink bug.
67856
67857 2005-07-14  Bruno Haible  <bruno@clisp.org>
67858
67859         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67860         Instead, test for *_unlocked function declarations directly.
67861
67862 2005-07-11  Simon Josefsson  <jas@extundo.com>
67863
67864         * modules/size_max: New file.
67865
67866         * modules/xsize: Depend on size_max module for size_max.m4.
67867
67868 2005-07-11  Simon Josefsson  <jas@extundo.com>
67869
67870         * lib/size_max.h: New file.
67871
67872 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67875         copyright symbol and the year.
67876         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67877         (version_etc_va): Use parameterized copyright notice.
67878         Reword to conform to the current GNU coding standards.
67879
67880 2005-07-11  Karl Berry  <karl@gnu.org>
67881
67882         * doc/gnulib.texi (Quoting): new node.
67883         (Initial import): more info, from Patrice.
67884
67885 2005-07-11  Bruno Haible  <bruno@clisp.org>
67886
67887         * gnulib-tool (func_usage): Document option --avoid.
67888         (Command line options): Handle --avoid.
67889         (func_acceptable): New function.
67890         (func_modules_transitive_closure): Use it.
67891
67892 2005-07-11  Bruno Haible  <bruno@clisp.org>
67893
67894         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67895         Reported by Jim Meyering.
67896
67897 2005-07-10  Bruno Haible  <bruno@clisp.org>
67898
67899         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67900         Needed when size_t is smaller than 'unsigned int'.
67901         Reported by Paul Eggert.
67902
67903 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67904
67905         * modules/argp (Depends-on): Add unlocked-io
67906
67907 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67908
67909         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67910         block of defines.
67911
67912 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67915         fix now.
67916
67917 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67918         and Paul Eggert  <eggert@cs.ucla.edu>
67919
67920         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67921         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67922
67923 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67924
67925         * modules/regex (Files): Add lib/regex_internal.c,
67926         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67927         (Depends-on): Add extensions.
67928         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67929
67930 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67931
67932         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67933         pathconf.
67934         * m4/same.m4 (gl_SAME): Likewise.
67935         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67936
67937         * m4/regex.m4: Adjust to new libc regex implementation.
67938         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67939         all the .c and .h parts of (the new) regex.
67940         Quote the m4 stuff better.
67941         Check for RE_ICASE bug of old gnulib.
67942         Check for REG_STARTEND of recent libc.
67943         Rename local variables from jm_* to gl_*.
67944         Quote operand of "test -f".
67945         Say "recent enough" version of libc, not "version 2".
67946         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67947         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67948         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67949         Remove check for btowc, isascii.
67950         Require AM_LANGINFO_CODESET.
67951
67952 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67953
67954         * lib/regex.c, regex.h: Sync from libc.
67955         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67956         * lib/regexec.c:
67957         New files, synced from libc, except that regex_internal.h
67958         currently has a small porting fix.
67959
67960 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67961
67962         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67963         regex_internal.c, regexec.c.
67964         Add regex_internal.h too, but as a comment, since the libc version
67965         is currently broken in gnulib mode.
67966
67967 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67968
67969         Support programs like Emacs that use gnulib but not gettext.
67970         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67971         * modules/gettext-h: New file.
67972         * modules/gettext (Files): Remove lib/gettext.h.
67973         (Depends-on): Add gettext-h.
67974         (Makefile.am): Remove lib_SOURCES.
67975         * modules/argmatch, modules/c-stack, modules/closeout:
67976         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67977         * modules/execute, modules/file-type, modules/getaddrinfo:
67978         * modules/getopt, modules/human, modules/javacomp:
67979         * modules/javaexec, modules/mkdir-p, modules/obstack:
67980         * modules/openat, modules/pagealign_alloc, modules/pipe:
67981         * modules/quotearg, modules/regex, modules/rpmatch:
67982         * modules/unicodeio, modules/userspec, modules/version-etc:
67983         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67984         * modules/xsetenv:
67985         Depend on gettext-h, not gettext.
67986
67987 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67988
67989         * gnulib-tool (func_import): Add support for 'public domain' license.
67990         * modules/alloca, modules/atexit, modules/memmove:
67991         Now public domain, not GPL.
67992         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67993         * modules/realloc, modules/strerror, modules/strtod:
67994         Now LGPL, not GPL.
67995
67996 2005-07-05  Bruno Haible  <bruno@clisp.org>
67997
67998         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67999         autoconf CVS. Needed for mingw.
68000
68001 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         Remove the dependency of the strftime module on the tzset module.
68004         * modules/strftime (Depends-on): Remove dependency on tzset.
68005
68006 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68007
68008         Remove the dependency of the strftime module on the tzset module.
68009         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68010         gl_FUNC_TZSET_CLOBBER.
68011
68012 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68013
68014         Remove the dependency of the strftime module on the tzset module.
68015         * lib/strftime.c (my_strftime)
68016         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68017         Copy the input structure, to work around some of the bug with
68018         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68019         Solaris releases, you should also use the tzset module, but we won't
68020         require it as a dependency any more since we don't want LGPLed code
68021         to depend on GPLed code.
68022
68023 2005-07-02  Jim Meyering  <jim@meyering.net>
68024
68025         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68026         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68027         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68028         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68029
68030 2005-07-02  Jim Meyering  <jim@meyering.net>
68031
68032         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68033
68034 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68035
68036         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68037         declares only 'struct timespec;' (!).
68038
68039 2005-07-01  Jim Meyering  <jim@meyering.net>
68040
68041         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68042         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68043         * lib/save-cwd.c, tempname.c:
68044         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68045         and don't include <sys/file.h>).
68046
68047 2005-06-29  Jim Meyering  <jim@meyering.net>
68048
68049         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68050         type name.  Use the variable name instead.
68051         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68052         Likewise.
68053
68054 2005-06-28  Simon Josefsson  <jas@extundo.com>
68055
68056         * modules/check-version (Files): Add check-version.m4.
68057
68058 2005-06-28  Simon Josefsson  <jas@extundo.com>
68059
68060         * m4/check-version.m4: New file, suggested by Jim Meyering
68061         <jim@meyering.net>.
68062
68063 2005-06-28  Simon Josefsson  <jas@extundo.com>
68064
68065         * lib/check-version.h, lib/check-version.c: New files.
68066
68067 2005-06-28  Simon Josefsson  <jas@extundo.com>
68068
68069         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68070         collision with global variable.  Better indentation.  Don't
68071         increment buffer pointer beyond buffer end.  Based on comments
68072         from Paul Eggert <eggert@cs.ucla.edu>.
68073
68074         * lib/base64.h: Indent.
68075
68076 2005-06-28  Simon Josefsson  <jas@extundo.com>
68077
68078         * doc/gnulib.texi (Library version handling): New section.
68079
68080 2005-06-28  Jim Meyering  <jim@meyering.net>
68081
68082         * check-module (find_included_lib_files): Hard-code another
68083         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68084         but modules/fts-lgpl (correctly) does not list those files.
68085
68086         * modules/canonicalize (Files): Add lib/pathmax.h.
68087
68088 2005-06-25  Simon Josefsson  <jas@extundo.com>
68089
68090         * modules/check-version: New file.
68091
68092 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68093
68094         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68095         initializer of struct addrinfo, as an indication that we don't
68096         care how many members the structure has.
68097
68098 2005-06-24  Derek Price  <derek@ximbiot.com>
68099         and Bruno Haible  <bruno@clisp.org>
68100
68101         Remove stat module & update lstat.
68102         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68103         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68104         * m4/stat.m4: Remove this file.
68105
68106 2005-06-24  Derek Price  <derek@ximbiot.com>
68107         and Bruno Haible  <bruno@clisp.org>
68108
68109         Remove stat module & update lstat.
68110         * lib/stat.c: Remove this file...
68111         (slash_aware_lstat): ...moving this content and its support...
68112         * lib/lstat.c (rpl_lstat): ...into here.
68113         * lib/lstat.h: New file.
68114
68115 2005-06-24  Derek Price  <derek@ximbiot.com>
68116         and Bruno Haible  <bruno@clisp.org>
68117
68118         Remove stat module & update lstat.
68119         * config/srclist.txt (libc sources): Remove stat.
68120
68121 2005-06-24  Derek Price  <derek@ximbiot.com>
68122         and Bruno Haible  <bruno@clisp.org>
68123
68124         Remove stat module & update lstat.
68125         * MODULES.html.sh (stat): Remove.
68126         * MODULES.html: Regenerated.
68127         * modules/lstat (Description): Correct function name.
68128         (Files): Add "lstat.h".
68129         (Depends-on): Remove stat, add xalloc, stat-macros.
68130         * modules/stat: Remove this file.
68131         (Include): Add "lstat.h", remove <sys/stat.h>.
68132
68133 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68136         (ranged_convert): Don't save conversion in a temporary struct.
68137         This causes a warning with GCC 4.0.0, and anyway in the typical
68138         case it's not worth the extra 100 bytes or so of code.
68139         (ranged_convert, __mktime_internal): When calling a function via a
68140         pointer P, use P () rather than (*P) (), as we now assume C89 or
68141         better.
68142
68143 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68146         "who -r" failed to give output.  Problem reported by Tim Waugh.
68147
68148         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68149         (xcalloc): Use it to avoid needless tests.
68150         Problem reported by Jim Meyering.
68151
68152 2005-06-20  Derek Price  <derek@ximbiot.com>
68153
68154         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68155         unnecessary for Autoconfs > 2.59c.
68156
68157 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68158
68159         * lib/argp.h (__option_is_short): Check upper limit of
68160         __key. Isprint() requires its argument to have the value
68161         of an unsigned char or EOF.
68162
68163 2005-06-16  Jim Meyering  <jim@meyering.net>
68164
68165         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68166         when either N or S is zero.
68167
68168 2005-06-16  Derek Price  <derek@ximbiot.com>
68169
68170         * m4/bison.m4: Declare YACC & YFLAGS precious.
68171
68172 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68173
68174         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68175         multibyte string or pattern, fall back on unibyte matching.
68176         Problem reported by James Youngman.
68177
68178 2005-06-08  Bruno Haible  <bruno@clisp.org>
68179
68180         * modules/csharpcomp: New file.
68181         * MODULES.html.sh (C#): Add csharpcomp.
68182
68183 2005-06-08  Bruno Haible  <bruno@clisp.org>
68184
68185         * m4/csharpcomp.m4: New file, from GNU gettext.
68186
68187 2005-06-08  Bruno Haible  <bruno@clisp.org>
68188
68189         * lib/csharpcomp.h: New file, from GNU gettext.
68190         * lib/csharpcomp.c: New file, from GNU gettext.
68191         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68192
68193 2005-06-08  Bruno Haible  <bruno@clisp.org>
68194
68195         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68196         warning on mingw.
68197
68198 2005-06-07  Derek Price  <derek@ximbiot.com>
68199
68200         Sync from CVS.
68201         * lib/glob_.h: Indent nested #ifdef.
68202
68203 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         Sync from coreutils.
68206         Use "file name" when talking about file names, instead of "filename"
68207         or "path", as per the GNU coding standards.
68208         * lib/mkdir-p.c: Renamed from makepath.c.
68209         (make_dir_parents): Renamed from make_path.  All callers changed.
68210         * lib/mkdir-p.h: Likewise.  All includers changed.
68211         * lib/filenamecat.c: Renamed from path-concat.c.
68212         (file_name_concat): Renamed from path_concat.  All callers changed.
68213         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68214         * lib/filenamecat.h: Likewise.  All includers changed.
68215         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68216         in comments or local variable names.
68217         * lib/basename.c: Likewise.
68218         * lib/canonicalize.c, canonicalize.h: Likewise.
68219         * lib/dirname.c, dirname.h: Likewise.
68220         * lib/euidaccess.c: Likewise.
68221         * lib/exclude.c: Likewise
68222         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68223         * lib/fsusage.c, fsuage.h: Likewise.
68224         * lib/fts.c, fts_.h: Likewise.
68225         * lib/getcwd.c: Likewise.
68226         * lib/getloadavg.c: Likewise.
68227         * lib/mkstemp.c: Likewise.
68228         * lib/mountlist.c, mountlist.h: Likewise.
68229         * lib/openat.c, openat.h: Likewise.
68230         * lib/readlink-stub.c: Likewise.
68231         * lib/readutmp.c, readutmp.h: Likewise.
68232         * lib/rename.c: Likewise.
68233         * lib/rmdir.c: Likewise.
68234         * lib/same.c: Likewise.
68235         * lib/savedir.c: Likewise.
68236         * lib/stripslash.c: Likewise.
68237         * lib/tempname.c: Likewise.
68238         * lib/xreadlink.c: Likewise.
68239         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68240         All uses changed.
68241         * lib/exclude.h: Likewise.
68242
68243         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68244         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68245         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68246         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68247         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68248         files have been getting away with it for years (MORE/BSD 4.3
68249         is extinct now).
68250         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68251         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68252
68253         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68254         Define to 256, not 255, as per modern POSIX.
68255
68256 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         Sync from coreutils.
68259         Use "file name" when talking about file names, instead of "filename"
68260         or "path", as per the GNU coding standards.
68261         * MODULES.html.sh: mkdir-p renamed from makepath.
68262         filenamecat renamed from path-concat.
68263         * modules/filenamecat: Renamed from modules/path-concat.
68264         (Files): filenamecat.h and filenamecat.c renamed from
68265         path-concat.h and path-concat.c.
68266         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68267         (Include): filenamecat.h, not path-concat.h.
68268         * modules/mkdir-p: Renamed from modules/makepath.
68269         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68270         makepath.c.
68271         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68272         (Include): mkdir-p.h, not makepath.h.
68273
68274 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         Sync from coreutils.
68277         * m4/mkdir-p.m4: Renamed from makepath.m4.
68278         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68279         Rename files from makepath.c to mkdir-p.c, and from
68280         makepath.h to mkdir-p.h.
68281         * m4/filenamecat.m4: Renamed from path-concat.m4.
68282         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68283         Rename files from path-concat.c to filenamecat.c,
68284         and from path-concat.h to filenamecat.h.
68285         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68286         "file name" in local variables or comments.
68287         * m4/rename.m4: Likewise.
68288
68289 2005-06-01  Bruno Haible  <bruno@clisp.org>
68290
68291         * modules/csharpexec: New file.
68292         * MODULES.html.sh (C#): New section.
68293
68294 2005-06-01  Bruno Haible  <bruno@clisp.org>
68295
68296         * m4/csharp.m4: New file, from GNU gettext.
68297         * m4/csharpexec.m4: New file, from GNU gettext.
68298
68299 2005-06-01  Bruno Haible  <bruno@clisp.org>
68300
68301         * lib/csharpexec.h: New file, from GNU gettext.
68302         * lib/csharpexec.c: New file, from GNU gettext.
68303         * lib/csharpexec.sh.in: New file, from GNU gettext.
68304
68305 2005-05-31  Derek Price  <derek@ximbiot.com>
68306             Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         Sync from cvs.
68309         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68310
68311 2005-05-31  Derek Price  <derek@ximbiot.com>
68312             Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         Sync from cvs.
68315         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68316
68317 2005-05-29  Derek Price  <derek@ximbiot.com>
68318
68319         * config/srclist.txt (glob_.h, glob.c): Add these files.
68320
68321 2005-05-29  Derek Price  <derek@ximbiot.com>
68322
68323         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68324         * modules/glob: New file.
68325         * modules/getlogin_r: Add link to POSIX spec in description.
68326
68327 2005-05-29  Derek Price  <derek@ximbiot.com>
68328             Paul Eggert  <eggert@cs.ucla.edu>
68329
68330         * m4/glob.m4: New file.
68331
68332 2005-05-29  Derek Price  <derek@ximbiot.com>
68333             Paul Eggert  <eggert@cs.ucla.edu>
68334
68335         * lib/glob_.h, lib/glob.c: New files.
68336
68337 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68338
68339         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68340         * modules/fts-lgpl (Depends-on): Remove gettext.
68341
68342 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68345         and don't require gt_INTTYPES_PRI.
68346
68347 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68350
68351         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68352         the configuration hassle isn't worth it.
68353         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68354         (LONGEST_MODIFIER, PRIuMAX): Remove.
68355
68356 2005-05-27  Bruno Haible  <bruno@clisp.org>
68357
68358         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68359
68360 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68363         _POSIX_PTHREAD_SEMANTICS for Solaris.
68364
68365 2005-05-25  Derek Price  <derek@ximbiot.com>
68366
68367         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68368
68369 2005-05-25  Derek Price  <derek@ximbiot.com>
68370             Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68373         * lib/getlogin_r.c, getlogin_r.h: New files.
68374
68375 2005-05-25  Bruno Haible  <bruno@clisp.org>
68376             Derek Price  <derek@ximbiot.com>
68377
68378         * lib/getlogin_r.h: Simplify API documentation.
68379
68380 2005-05-23  Derek Price  <derek@ximbiot.com>
68381
68382         * modules/minmax (Files): Add m4/minmax.m4.
68383         (configure.ac): Add gl_MINMAX.
68384
68385 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68386
68387         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68388         so that unistd-safer.h (GPL'ed code) need not be included.
68389
68390 2005-05-22  Bruno Haible  <bruno@clisp.org>
68391
68392         * m4/minmax.m4: New file.
68393         Based on a patch by Derek Price <derek@ximbiot.com>.
68394
68395 2005-05-22  Bruno Haible  <bruno@clisp.org>
68396
68397         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68398         (INT64_MIN): Fix definition.
68399         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68400
68401         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68402         NEED_SIGNED_INT_TYPES.
68403
68404         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68405         HAVE_SYSTEM_INTTYPES.
68406
68407 2005-05-22  Bruno Haible  <bruno@clisp.org>
68408
68409         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68410         Also include <sys/param.h> if it defines MIN, MAX.
68411         Based on a patch by Derek Price <derek@ximbiot.com>.
68412
68413 2005-05-21  Jim Meyering  <jim@meyering.net>
68414
68415         * modules/fts (Files): Add m4/inttypes-pri.m4.
68416         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68417
68418 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68419
68420         New fts module.
68421         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68422         (setup_dir, free_dir): New functions.
68423         (enter_dir, leave_dir): Define trivial
68424         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68425         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68426         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68427         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68428         Move to fts-cycle.c.
68429         (fts_open): Use setup_dir.
68430         (fts_close): Use free_dir.
68431         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68432         This adds a label and some gotos, but the alternatives were messier.
68433         Check for memory allocation failure when entering a dir.
68434         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68435         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68436         (FTS): New member fts_cycle, that is a union that contains the
68437         old active_dir_ht and cycle_state.  All uses changed to mention
68438         fts_cycle.ht and fts_cycle.state.
68439         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68440         fts.c, with the following changes:
68441         (setup_dir, free_dir): New functions.
68442         (enter_dir): Now returns bool.  Return true if successful, false
68443         if memory exhausted.  All callers changed.
68444         Do not bother partly cleaning up on
68445         memory allocation failure; that is free_dir's job.
68446         However, free ad if hash_insert fails, to avoid memory leak.
68447         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68448         fts->fts_options to see which union member to use.
68449
68450 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68453         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68454
68455 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68456
68457         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68458
68459 2005-05-20  Jim Meyering  <jim@meyering.net>
68460
68461         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68462         Now a macro, to pacify GCC.
68463
68464 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68465
68466         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68467         of -1.
68468
68469 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68470
68471         * lib/chown.c (rpl_chown): Return -1 on failure.
68472
68473 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68474
68475         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68476         Don't check for stddef.h.
68477         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68478         don't use its results.
68479         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68480         since we include them unconditionally.  Don't require
68481         AM_STDBOOL_H, since stdbool is a prerequisite.
68482         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68483         since we assume C89 or better.
68484         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68485         as we don't use their results.
68486         Don't check for fchdir, memmove, memset, strrchr, as we use
68487         them unconditionally.
68488         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68489         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68490
68491 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68492
68493         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68494         Include <stddef.h> unconditionally, since we assume C89 now.
68495         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68496         * lib/fts.c: Include fts_.h first, to check interface.
68497         Do not include intprops.h; no longer needed.
68498         Include cycle-check.h and hash.h, since fts_.h no longer does.
68499         Remove unnecessary casts of closedir to void.
68500         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68501         decide whether to decrement nlinks.
68502         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68503         (FTS): Use struct hash_table * instead of Hash_table, so that
68504         we no longer need to include hash.h here.
68505
68506 2005-05-18  Jim Meyering  <jim@meyering.net>
68507
68508         * modules/dirfd (License): Change to LGPL.  Most of the code
68509         is already in the public domain.
68510
68511 2005-05-18  Jim Meyering  <jim@meyering.net>
68512
68513         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68514         Reported by Yoann Vandoorselaere.
68515
68516 2005-05-17  Jim Meyering  <jim@meyering.net>
68517
68518         * m4/fts.m4: New file, from coreutils.
68519
68520 2005-05-17  Jim Meyering  <jim@meyering.net>
68521
68522         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68523
68524 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68525
68526         Sync from coreutils.
68527         * m4/unlinkdir.m4: New file.
68528
68529 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         Sync from coreutils.
68532         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68533         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68534         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68535         White space changes only.
68536         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68537         special.
68538         * lib/yesno.c: Include getline.h, not ctype.h.
68539         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68540         Use getline to remove arbitrary restriction on response length.
68541
68542 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * config/srclist-update: Spell out "Street" in FSF postal
68545         mail address; this is the style the FSF seems to prefer.
68546
68547         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68548         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68549         this updates FSF postal mail address.
68550
68551         Sync from coreutils.
68552         * modules/unlinkdir: New file.
68553         * modules/yesno (Depends-on): Add getline.
68554         * MODULES.html.sh (File system functions): Add unlinkdir.
68555
68556 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68557
68558         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68559         lib/strsep.h:
68560         Change the initial comment to refer to GPL, not LGPL.
68561         gnulib-tool will change it to LGPL as needed.
68562
68563         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68564         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68565         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68566         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68567         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68568         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68569         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68570         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68571         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68572         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68573         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68574         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68575         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68576         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68577         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68578         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68579         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68580         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68581         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68582         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68583         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68584         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68585         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68586         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68587         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68588         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68589         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68590         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68591         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68592         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68593         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68594         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68595         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68596         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68597         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68598         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68599         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68600         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68601         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68602         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68603         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68604         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68605         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68606         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68607         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68608         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68609         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68610         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68611         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68612         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68613         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68614         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68615         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68616         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68617         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68618         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68619         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68620         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68621         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68622         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68623         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68624         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68625         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68626         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68627         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68628         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68629         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68630         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68631         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68632         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68633         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68634         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68635         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68636         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68637         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68638         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68639         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68640         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68641         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68642         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68643         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68644         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68645         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68646         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68647         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68648         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68649         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68650         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68651         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68652         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68653         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68654         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68655         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68656         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68657         lib/yesno.c, lib/yesno.h:
68658         Update FSF postal mail address.
68659
68660 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68661
68662         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68663         tests/test-memmem.c, tests/test-stpncpy.c:
68664         Update FSF postal mail address.
68665
68666 2005-05-13  Bruno Haible  <bruno@clisp.org>
68667
68668         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68669         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68670         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68671         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68672         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68673         Add support for 64-bit integers in the MSVC compiler.
68674
68675 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68676
68677         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68678
68679 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68680
68681         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68682
68683 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68684
68685         * doc/getdate.texi (General date syntax): Don't say that date
68686         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68687         Problem reported by Nic Ferrier.
68688
68689 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68690
68691         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68692         specified in ai_socktype. Fix invalid ai_protocol
68693         check. ai_protocol is usually set to 0 or depending on
68694         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68695         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68696         ai_socktype / ai_protocol in the returned addrinfo structure.
68697
68698 2005-05-10  Simon Josefsson  <jas@extundo.com>
68699
68700         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68701         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68702
68703 2005-05-10  Karl Berry  <karl@gnu.org>
68704
68705         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68706         (from http://www.gnu.org/licenses).
68707         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68708         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68709         fdl.texi suffices.
68710
68711 2005-05-10  Karl Berry  <karl@gnu.org>
68712
68713         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68714         (COPYING.DOC): remove.
68715
68716         * config/srclist-update: new FSF address.
68717
68718 2005-05-10  Derek Price  <derek@ximbiot.com>
68719
68720         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68721         possible.
68722
68723 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68724             Bruno Haible  <bruno@clisp.org>
68725
68726         * modules/inet_ntop: New file.
68727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68728         inet_ntop.
68729
68730 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68731             Bruno Haible  <bruno@clisp.org>
68732
68733         * m4/inet_ntop.m4: New file.
68734
68735 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68736             Bruno Haible  <bruno@clisp.org>
68737
68738         * lib/inet_ntop.h: New file.
68739         * lib/inet_ntop.c: New file, from glibc with modifications.
68740
68741 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68742
68743         * modules/time_r (License): Change to LGPL.
68744         * modules/extensions (License): Change to LGPL.  Actually,
68745         the license is more permissive than that, but currently gnulib-tool
68746         doesn't know how to handle more-permissive licenses.
68747
68748         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68749         Problem reported by Dave Love.
68750
68751 2005-05-08  Jim Meyering  <jim@meyering.net>
68752
68753         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68754         blank.
68755
68756 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68757
68758         * modules/argmatch (Depends-on): Add stdbool.
68759         * modules/backupfile (Depends-on): Likewise.
68760         * modules/chdir-long (Depends-on): Likewise.
68761         * modules/closeout (Depends-on): Likewise.
68762         * modules/cycle-check (Depends-on): Likewise.
68763         * modules/dirname (Depends-on): Likewise.
68764         * modules/fnmatch (Depends-on): Likewise.
68765         * modules/fsusage (Depends-on): Likewise.
68766         * modules/fwriteerror (Depends-on): Likewise.
68767         * modules/getcwd (Depends-on): Likewise.
68768         * modules/getloadavg (Depends-on): Likewise.
68769         * modules/hard-locale (Depends-on): Likewise.
68770         * modules/makepath (Depends-on): Likewise.
68771         * modules/mountlist (Depends-on): Likewise.
68772         * modules/nanosleep (Depends-on): Likewise.
68773         * modules/posixtm (Depends-on): Likewise.
68774         * modules/quotearg (Depends-on): Likewise.
68775         * modules/readtokens (Depends-on): Likewise.
68776         * modules/readtokens0 (Depends-on): Likewise.
68777         * modules/readutmp (Depends-on): Likewise.
68778         * modules/save-cwd (Depends-on): Likewise.
68779         * modules/strftime (Depends-on): Likewise.
68780         * modules/userspec (Depends-on): Likewise.
68781         * modules/utimecmp (Depends-on): Likewise.
68782         * modules/xgetcwd (Depends-on): Likewise.
68783         * modules/xnanosleep (Depends-on): Likewise.
68784         * modules/xstrtod (Depends-on): Likewise.
68785         * modules/yesno (Depends-on): Likewise.
68786
68787 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68788
68789         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68790         needless checks.
68791
68792 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68793
68794         Merge from coreutils.  Among other things,
68795         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68796         * lib/fd-safer.c: New file.
68797         * lib/fcntl-safer.h, open-safer.c: Remove.
68798         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68799         * lib/dup-safer.c: Include unistd-safer.h first.
68800         Don't include errno.h.
68801         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68802         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68803         * lib/file-type.c: Rely on file-type.h change.
68804         * lib/getloadavg.c: Include unistd-safer.h.
68805         (getloadavg): Use safer open.
68806         * lib/getusershell.c: Include "stdio-safer.h".
68807         (getusershell): Use safer fopen.
68808         * lib/long-options.c (long_options): Use NULL rather than 0.
68809         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68810         'free'.
68811         * lib/modechange.c: Likewise.
68812         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68813         (MODE_DONE): New constant.
68814         (struct mode_change): Remove 'next' member.
68815         (make_node_op_equals): New function; like the old one of the
68816         same name, except it allocates an array.
68817         (mode_compile, mode_create_from_ref): Use it.
68818         (mode_compile): Allocate result as an array, not a linked list.
68819         Parse octal string ourself, so that we catch mistakes like "+0".
68820         (mode_adjust): Arg is an array, not a linked list.
68821         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68822         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68823         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68824         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68825         Remove.  This is now stat-macros.h's job.
68826         (talloc): Remove.  All callers replaced by xalloc, so that
68827         our invokers don't have to worry about reporting memory failures.
68828         (make_node_op_equals): Remove.
68829         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68830         New constants.
68831         (struct mode_change): Moved here from modechange.h.
68832         (mode_append_entry): Remove.
68833         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68834         apps to have incorrect behavior.  Use simpler algorithm for head
68835         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68836         Detect more invalid usages rather than having somewhat-random behavior.
68837         Don't insert an "a=" action, as that leads to incorrect behavior.
68838         (mode_compile, mode_create_from_ref): Return NULL on error instead
68839         of an enum, since now there's only one way to have an error.  All
68840         callers changed.
68841         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68842         at the correct time.  Simplify calculation of "+u" and its ilk.
68843         Don't mishandle "+X".
68844         (mode_free): Remove "register" and localize decls.
68845         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68846         (struct mode_change): Move to modechange.c; callers don't
68847         need to see this stuff.
68848         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68849         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68850         (mode_change, mode_adjust): Reflect the new signatures noted above.
68851         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68852         that might redefine system include files.
68853         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68854         (my_usleep): Use NULL rather than (void *) 0.
68855         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68856         Use siginterrupt to specify that system calls should be interrupted.
68857         (rpl_nanosleep): Move initialization of suspended closer to call of
68858         my_usleep.
68859         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68860         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68861         (desirable_utmp_entry): New function.
68862         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68863         using x2nrealloc, to simplify logic.
68864         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68865         size calculation.  Do not assume utmp file is a regular file.
68866         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68867         (READ_UTMP_CHECK_PIDS): New constant.
68868         * lib/save-cwd.c: Include unistd-safer.h.
68869         (save_cwd): Use fd_safer.
68870         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68871         [!_LIBC] Include "stat-macros.h" instead.
68872         * lib/unistd-safer.h (fd_safer): New decl.
68873
68874 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * modules/getloadavg (Depends-on): Add unistd-safer.
68877         * modules/getusershell (Depends-on): Add stdio-safer.
68878         * modules/lstat (Depends-on): Remove xalloc.
68879         * modules/mkstemp (Depends-on): Add stat-macros.
68880         * modules/modechange (Depends-on): Remove xstrtol.
68881         Add stat-macros, xalloc.
68882         * modules/save-cwd (Depends-on): Add unistd-safer.
68883         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68884         * modules/unistd-safer (Files): Add lib/fd-safer.c
68885         (Makefile.am): Remove lib_SOURCES.
68886
68887         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68888         Remove fcntl-safer; unistd-safer supersedes it.
68889
68890 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68893         AC_HEADER_STAT.
68894         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68895         (gl_PREREQ_CHOWN): Remove.
68896         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68897         it.  Don't require AC_HEADER_STAT.
68898         (gl_PREREQ_LSTAT): Remove.
68899         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68900         Don't require AC_HEADER_STAT.
68901         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68902         (gl_PREREQ_RMDIR): Remove.
68903         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68904         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68905         the stat-macros module a prerequisite.
68906         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68907         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68908         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68909         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68910         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68911         variable names.
68912         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68913         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68914         variable prefixes.
68915         * m4/fcntl-safer.m4: Remove.
68916         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68917         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68918         Invoke gl_PREREQ_FD_SAFER.
68919         (gl_PREREQ_FD_SAFER): New macro.
68920         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68921         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68922         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68923         Remove duplicate call to AC_LIBOBJ(readutmp).
68924         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68925
68926         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68927         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68928
68929 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68930
68931         * MODULES.html.sh (Misc): Add byteswap.
68932
68933 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68934
68935         * modules/getcwd (Depends-on): Add extensions.
68936         * modules/openat (Depends-on): Likewise.
68937
68938 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68939
68940         * modules/byteswap: New file.
68941
68942 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68943
68944         * m4/byteswap.m4: New file.
68945
68946 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68947
68948         * lib/byteswap_.h: New file.
68949
68950 2005-04-25  Karl Berry  <karl@gnu.org>
68951
68952         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68953
68954 2005-04-25  Albert Chin  <china@thewrittenword.com>
68955
68956         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68957         Toolkit C bug.
68958
68959 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68960
68961         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68962         (func_ln_if_changed): Remove forcibly for no error message
68963         in case file does not exist.
68964
68965 2005-04-19  Simon Josefsson  <jas@extundo.com>
68966
68967         * gnulib-tool (Options): Make --symlink mean --symbolic.
68968
68969 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68970
68971         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68972
68973 2005-04-16  Simon Josefsson  <jas@extundo.com>
68974
68975         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68976
68977 2005-04-15  Simon Josefsson  <jas@extundo.com>
68978
68979         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68980
68981 2005-04-15  Simon Josefsson  <jas@extundo.com>
68982
68983         * gnulib-tool: Rename --symlink to --symbolic.
68984
68985 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68986
68987         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68988         symbolic links to files instead of copying/moving.  Add --aux-dir,
68989         specifying directory relative --dir where auxiliary build tools
68990         are placed.
68991
68992 2005-04-14  Bruno Haible  <bruno@clisp.org>
68993
68994         * modules/allocsa (License): Change to LGPL.
68995         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68996
68997 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69000         that "UTC +1 second" continues to work.  Problem reported
69001         by Dmitry V. Levin.
69002         (relunit_snumber): New rule.
69003         (relunit): Use it.
69004
69005 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69006
69007         * lib/getdate.y (universal_time_zone_table): New constant.
69008         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69009         universal_time_zone_table.
69010         (lookup_zone): Prefer universal_time_zone_table to
69011         local_time_zone_table, so that "GMT" time stamps are allowed in
69012         London during the summer.  Problem reported by Ian Abbott.
69013
69014 2005-04-12  Jim Meyering  <jim@meyering.net>
69015
69016         * lib/human.c (humblock): Set *options even when returning due to
69017         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69018         warning from gcc-4.
69019
69020 2005-04-09  Jim Meyering  <jim@meyering.net>
69021
69022         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69023         -Wuninitialized: initialize tm0.tm_year.
69024
69025 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69028         count, since there's no maximum.  All uses changed.
69029         Add member dsts_seen.
69030         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69031         not being INT_MAX.
69032         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69033         Use pc_rels_seen to decide whther a date is absolute.
69034
69035         * lib/getdate.y (number): Don't overwrite year.
69036         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69037         check.
69038
69039 2005-04-02  Simon Josefsson  <jas@extundo.com>
69040
69041         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69042         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69043
69044 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69045
69046         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69047         where no absolute path name can be longer than PATH_MAX.
69048
69049 2005-03-27  Jim Meyering  <jim@meyering.net>
69050
69051         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69052
69053 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69056         "one's complement" -> "ones' complement" in comment, as per Knuth.
69057         "value of type" -> "type or expression" in comment.
69058         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69059
69060 2005-03-26  Jim Meyering  <jim@meyering.net>
69061
69062         Comment nits.
69063         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69064         Correct typos: s/or/of/.
69065
69066 2005-03-26  Jim Meyering  <jim@meyering.net>
69067
69068         * modules/check-include-files: Move to ../ and rename to...
69069         * check-module: ...this.
69070
69071 2005-03-25  Jim Meyering  <jim@meyering.net>
69072
69073         * modules/xvasprintf (Files): Add xalloc.h.
69074
69075 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         * modules/gettext (Files): config/config.rpath ->
69078         build-aux/config.rpath
69079         * modules/iconv (Files): Likewise.
69080         Problem reported by Oskar Liljeblad.
69081
69082 2005-03-23  Jim Meyering  <jim@meyering.net>
69083
69084         * modules/check-include-files: New script to check for
69085         missing dependencies, multiple includes, etc.
69086
69087         * modules/c-strtold (Depends-on): Add xalloc.
69088         * modules/c-strtod (Depends-on): Add xalloc.
69089         * modules/hash (Depends-on): Add xalloc.
69090         (Files): Remove lib/xalloc.h.
69091
69092         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69093         * modules/userspec (Files): Add lib/inttostr.h.
69094
69095 2005-03-23  Jim Meyering  <jim@meyering.net>
69096
69097         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69098
69099 2005-03-22  Jim Meyering  <jim@meyering.net>
69100
69101         * modules/stat-macros: New module.
69102         * modules/canonicalize, modules/euidaccess, modules/file-type,
69103         * modules/filemode, modules/lchown, modules/makepath,
69104         * modules/rmdir, modules/stat: Depend on new stat-macros module
69105         rather than listing lib/stat-macros.h manually.
69106         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69107
69108 2005-03-22  Jim Meyering  <jim@meyering.net>
69109
69110         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69111
69112 2005-03-22  Bruno Haible  <bruno@clisp.org>
69113
69114         * config/srclist.txt: Replace target directory 'config' with
69115         'build-aux'.
69116         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69117         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69118         ../build-aux/.
69119
69120 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69121
69122         * modules/chdir-long (Depends-on): Add mempcpy.
69123
69124         * modules/acl, modules/backupfile, modules/c-strtod,
69125         modules/c-strtold, modules/canon-host, modules/canonicalize,
69126         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69127         modules/exclude, modules/exitfail, modules/file-type,
69128         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69129         modules/getdate, modules/getline, modules/getpagesize,
69130         modules/getpass, modules/getugroups, modules/group-member,
69131         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69132         modules/inttostr, modules/long-options, modules/makepath,
69133         modules/md5, modules/memcasecmp, modules/memcoll,
69134         modules/modechange, modules/mountlist, modules/path-concat,
69135         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69136         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69137         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69138         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69139         modules/strftime, modules/strndup, modules/strverscmp,
69140         modules/timespec, modules/unlocked-io, modules/userspec,
69141         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69142         modules/yesno:
69143         Remove lib_SOURCES line from Makefile.am section, as this is now
69144         done automatically by the corresponding Autoconf macro.
69145
69146 2005-03-21  Jim Meyering  <jim@meyering.net>
69147
69148         Changes imported from coreutils.
69149
69150         * lib/cycle-check.c: Don't include xalloc.h.
69151
69152         * lib/path-concat.c: Don't include assert.h.
69153         (path_concat): Remove assertion that would have triggered
69154         for ABASE starting with more than one slash.
69155         Reported by Andreas Schwab.
69156
69157         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69158         properly when ABASE is an absolute file name.
69159         Correct the description of this function.
69160         Include <assert.h>.
69161         Add an assertion and a test driver.
69162         This fixes a bug introduced on 2004-07-02.
69163         Andreas Schwab reported the resulting failure of cp --parents:
69164         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69165
69166 2005-03-21  Jim Meyering  <jim@meyering.net>
69167
69168         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69169         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69170
69171 2005-03-21  Jim Meyering  <jim@meyering.net>
69172         and  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69175         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69176         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69177         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69178         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69179         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69180         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69181         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69182         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69183         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69184         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69185         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69186         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69187         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69188         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69189         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69190         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69191         for these modules.
69192
69193 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69194
69195         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69196         (which shouldn't happen), generate nothing instead of returning 0
69197         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69198
69199 2005-03-16  Bruno Haible  <bruno@clisp.org>
69200
69201         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69202         HAVE_LONGLONG_64BIT.
69203
69204 2005-03-16  Bruno Haible  <bruno@clisp.org>
69205
69206         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69207         HAVE_LONGLONG_64BIT.
69208
69209 2005-03-16  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69212         HAVE_LONGLONG_64BIT.
69213
69214 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69215
69216         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69217         reliably distinguish strftime failure from empty output on POSIX
69218         hosts.
69219
69220 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69221
69222         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69223         (iconv_string): Don't guess a size-zero buffer, as that might cause
69224         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69225         result would be 'too large', where 'too large' is (heuristically)
69226         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69227         overflow concerns.  This will prevent some unwanted malloc failures
69228         when the inputs are very large.
69229
69230 2005-03-15  Karl Berry  <karl@gnu.org>
69231
69232         * config/srclist.txt (config.rpath): from gettext.
69233         * config/config.rpath: update.
69234
69235 2005-03-15  Bruno Haible  <bruno@clisp.org>
69236
69237         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69238         to 'negate'.
69239
69240         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69241         variable.
69242
69243         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69244         results.
69245
69246 2005-03-14  Simon Josefsson  <jas@extundo.com>
69247
69248         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69249         <fx@gnu.org>.
69250
69251 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69252
69253         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69254         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69255         intprops.h.
69256         * lib/strtol.c: Likewise.
69257
69258 2005-03-14  Jim Meyering  <jim@meyering.net>
69259
69260         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69261         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69262         to be nonzero so that we (and caller) can detect the difference
69263         between a valid zero-length expansion and an error return, even
69264         when the underlying strftime fails before writing anything into
69265         that location.
69266
69267 2005-03-14  Bruno Haible  <bruno@clisp.org>
69268
69269         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69270         Update from GNU gettext 0.14.3.
69271
69272 2005-03-10  Jim Meyering  <jim@meyering.net>
69273
69274         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69275
69276 2005-03-10  Jim Meyering  <jim@meyering.net>
69277
69278         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69279         so that this module works on systems without fchdir.
69280
69281 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69282
69283         Factor int-properties macros into a single file, except for
69284         glibc-related files.
69285         * lib/intprops.h: New file.
69286         * lib/getloadavg.c: Include it instead of limits.h.
69287         (INT_STRLEN_BOUND): Remove.
69288         * lib/human.c: Include intprops.h.
69289         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69290         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69291         302/1000.
69292         * lib/inttostr.h: Include intprops.h instead of limits.h.
69293         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69294         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69295         for consistency with intprops.h.
69296         (time_t_is_integer, twos_complement_arithmetic): Use them.
69297         * lib/sig2str.h: Include <signal.h>, intprops.h.
69298         (INT_STRLEN_BOUND): Remove.
69299         * lib/strftime.c (TYPE_SIGNED): Remove.
69300         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69301         * lib/strtol.c: Adjust comments to match intprops.h.
69302         * lib/userspec.c: Include intprops.h.
69303         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69304         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69305         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69306         instead of rolling our own expressions.
69307         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69308
69309         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69310         instead of int.
69311         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69312         the right thing even if adding 1900 would overflow.  Similarly
69313         for tm_mon + 1 and tm_yday + 1.
69314         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69315         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69316         (DO_SIGNED_NUMBER): New macro.
69317         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69318
69319 2005-03-07  Bruno Haible  <bruno@clisp.org>
69320
69321         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69322
69323 2005-03-07  Bruno Haible  <bruno@clisp.org>
69324
69325         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69326
69327 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69328
69329         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69330         (func_import): Only replace files via --import when they have actually
69331         changed.
69332
69333 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69334
69335         * m4/mmap-anon.m4: New file.
69336         * m4/pagealign_alloc.m4: New file.
69337
69338 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69339             Bruno Haible  <bruno@clisp.org>
69340
69341         * modules/pagealign_alloc: New file.
69342         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69343
69344 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69345             Bruno Haible  <bruno@clisp.org>
69346
69347         * lib/pagealign_alloc.h: New file.
69348         * lib/pagealign_alloc.c: New file.
69349
69350 2005-03-03  Bruno Haible  <bruno@clisp.org>
69351
69352         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69353         Use an all-permissive copyright notice, recommended by RMS.
69354
69355 2005-03-02  Bruno Haible  <bruno@clisp.org>
69356
69357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69358         of AIX, the replacement has to be done only after <string.h> is
69359         included, therefore not in config.h. stpncpy.h does the replacement,
69360         and stpncpy.c uses it.
69361
69362 2005-03-02  Bruno Haible  <bruno@clisp.org>
69363
69364         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69365         stpncpy.c uses it.
69366
69367 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69370         The workaround isn't strictly needed for POSIX conformance, and
69371         it's too much of a pain to configure and maintain.  We'll ask
69372         people to fix their kernels instead.
69373         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69374         (NANOSLEEP_BUG_WORKAROUND): Remove.
69375         (xnanosleep): Remove the workaround.
69376
69377 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69378
69379         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69380         Reported by Derek Price.
69381         (Include): Add "timespec.h".
69382
69383         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69384
69385 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69388         to detect nanosleep bug.
69389
69390 2005-03-01  Bruno Haible  <bruno@clisp.org>
69391
69392         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69393
69394 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69395
69396         * modules/gethrxtime: New file.
69397         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69398         (Depends-on): Add gethrxtime.
69399         (configure.ac): Add gl_XNANOSLEEP.
69400         (Makefile.am): Remove lib_SOURCES line.
69401
69402 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69403
69404         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69405         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69406
69407 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69410         * lib/timespec.h (gettime): Return void, since it always
69411         succeeds now.  All uses changed.
69412         * lib/gettime.c (gettime): Likewise.
69413         [HAVE_NANOTIME]: Prefer nanotime.
69414         Assume gettimeofday succeeds, as POSIX requires.
69415         Assime time () succeeds, since other code already does.
69416         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69417         (timespec_subtract): Remove.
69418         (NANOSLEEP_BUG_WORKAROUND): New constant.
69419         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69420         things considerably.  Use it only on GNU/Linux hosts, since the
69421         workaround shouldn't be needed elsewhere.
69422
69423 2005-02-24  Bruno Haible  <bruno@clisp.org>
69424
69425         * modules/gettext (Files): Add m4/glibc2.m4.
69426
69427 2005-02-24  Bruno Haible  <bruno@clisp.org>
69428
69429         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69430         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69431         * m4/progtest.m4:
69432         Update from GNU gettext 0.14.2.
69433         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69434
69435 2005-02-24  Bruno Haible  <bruno@clisp.org>
69436
69437         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69438         * lib/config.charset: Update from GNU gettext 0.14.2.
69439
69440 2005-02-24  Bruno Haible  <bruno@clisp.org>
69441
69442         * lib/gettext.h: Update from GNU gettext 0.14.2.
69443
69444 2005-02-23  Simon Josefsson  <jas@extundo.com>
69445
69446         * m4/iconvme.m4: New file.
69447
69448 2005-02-23  Jim Meyering  <jim@meyering.net>
69449
69450         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69451         change.
69452         Thanks to Bruno Haible for catching it.
69453
69454 2005-02-22  Simon Josefsson  <jas@extundo.com>
69455
69456         * modules/iconvme: New file.
69457
69458         * MODULES.html.sh: Add iconvme.
69459
69460 2005-02-22  Simon Josefsson  <jas@extundo.com>
69461
69462         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69463
69464 2005-02-22  Simon Josefsson  <jas@extundo.com>
69465
69466         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69467
69468 2005-02-22  Jim Meyering  <jim@meyering.net>
69469
69470         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69471         s/ifndef/ifdef/.
69472
69473 2005-02-20  Neil Conway  <neilc@samurai.com>
69474
69475         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69476         returned by OSX/Darwin if the specified buffer is not large
69477         enough for the hostname.
69478
69479 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69480
69481         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69482         pass it to _help, otherwise the latter coredumps trying to
69483         dereference state.root_argp.
69484
69485 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         * modules/chdir-long (Depends-on): Add memrchr.
69488         * modules/memrchr (Files): Add lib/memrchr.h.
69489         (Include): "memrchr.h".
69490
69491 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69492
69493         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69494
69495 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69496
69497         * lib/memrchr.h: New file.
69498         * lib/chdir-long.c: Include it.
69499         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69500         Don't bother including stddef.h.
69501
69502 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69503
69504         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69505         inclusion.
69506         Include <sys/types.h>, for dev_t.
69507         (ME_DUMMY, ME_REMOTE): Move from here....
69508         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69509         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69510         Dmitry V. Levin.
69511         Include mountlist.h first, to test the interface.
69512
69513 2005-01-29  Bruno Haible  <bruno@clisp.org>
69514
69515         * lib/progname.c (program_name): Initialize.
69516         Needed when linking statically on MacOS X.
69517
69518 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69519
69520         Sync from coreutils.
69521         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69522         (Depends-on): Add c-strtod.
69523         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69524
69525 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         Sync from coreutils.
69528         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69529
69530         Remove files that are specific to coreutils.
69531         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69532
69533 2005-01-28  Bruno Haible  <bruno@clisp.org>
69534
69535         * modules/javacomp: New file.
69536         * MODULES.html.sh (Java): Add javacomp.
69537
69538 2005-01-28  Bruno Haible  <bruno@clisp.org>
69539
69540         * m4/javacomp.m4: New file, from GNU gettext.
69541
69542 2005-01-28  Bruno Haible  <bruno@clisp.org>
69543
69544         * lib/javacomp.sh.in: New file, from GNU gettext.
69545         * lib/javacomp.h: New file, from GNU gettext.
69546         * lib/javacomp.c: New file, from GNU gettext.
69547
69548 2005-01-26  Simon Josefsson  <jas@extundo.com>
69549
69550         * lib/gai_strerror.c: Use GPL in header.
69551
69552 2005-01-26  Bruno Haible  <bruno@clisp.org>
69553
69554         * modules/javaexec: New file.
69555         * MODULES.html.sh (Java): Add javaexec.
69556
69557 2005-01-26  Bruno Haible  <bruno@clisp.org>
69558
69559         * m4/javaexec.m4: New file, from GNU gettext.
69560
69561 2005-01-26  Bruno Haible  <bruno@clisp.org>
69562
69563         * lib/javaexec.sh.in: New file, from GNU gettext.
69564         * lib/javaexec.h: New file, from GNU gettext.
69565         * lib/javaexec.c: New file, from GNU gettext.
69566
69567 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69568
69569         * modules/lchown (Depends-on): Remove lchown.h
69570
69571 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69572
69573         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69574         must be defined if the header file was not found, in order
69575         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69576
69577 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69578
69579         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69580         initializers for struct pentry_state.
69581         (__argp_error): Check return value of __asprintf
69582         (__argp_failure): Translate error message
69583
69584         * lib/argp-parse.c: Removed braces around the expansion of N_()
69585
69586 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69589         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69590         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69591         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69592         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69593         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69594         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69595         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69596         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69597         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69598         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69599         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69600         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69601         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69602         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69603         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69604         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69605         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69606         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69607         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69608         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69609         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69610         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69611         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69612         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69613         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69614         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69615         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69616         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69617         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69618         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69619         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69620         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69621         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69622         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69623         Use an all-permissive copyright notice, recommended by RMS.
69624
69625 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         * modules/chdir-long (Depends-on): Remove mempcpy.
69628
69629 2005-01-21  Jim Meyering  <jim@meyering.net>
69630
69631         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69632         same value as for Solaris 9.
69633
69634         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69635         component length.  This included changing the parameter to be
69636         of type `char *' rather than `char const *'.
69637         * lib/chdir-long.h (chdir_long): Update prototype.
69638
69639         * lib/openat.c (fdopendir, fstatat): New functions.
69640         * lib/openat.h: Include headers required for use of DIR and struct
69641         stat.
69642         [AT_SYMLINK_NOFOLLOW]: Define.
69643         (fdopendir, fstatat): Add prototypes.
69644
69645 2005-01-21  Bruno Haible  <bruno@clisp.org>
69646
69647         * modules/classpath: New file.
69648         * MODULES.html.sh (Java): Add classpath.
69649
69650 2005-01-21  Bruno Haible  <bruno@clisp.org>
69651
69652         * lib/classpath.h: New file, from GNU gettext.
69653         * lib/classpath.c: New file, from GNU gettext.
69654
69655 2005-01-20  Simon Josefsson  <jas@extundo.com>
69656
69657         * modules/version-etc-fsf: New file.
69658
69659 2005-01-20  Simon Josefsson  <jas@extundo.com>
69660
69661         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69662         * lib/version-etc.c: Remove version_etc_copyright.
69663         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69664         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69665
69666 2005-01-20  Simon Josefsson  <jas@extundo.com>
69667
69668         * lib/base64.h (isbase64): Add.
69669
69670         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69671         using a unsigned prototype, don't inline.
69672         (base64_decode): Use it.
69673
69674 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69675
69676         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69677         it.
69678
69679 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69680
69681         * lib/save-cwd.c (save_cwd): Remove code to support the case
69682         where fchdir is missing or flaky.
69683
69684 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69685
69686         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69687
69688 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69689
69690         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69691         AC_LIBSOURCES now does this.
69692         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69693         with new ullong_max module.
69694
69695 2005-01-19  Bruno Haible  <bruno@clisp.org>
69696
69697         * modules/sh-quote: New file.
69698         * MODULES.html.sh (Executing programs): Add sh-quote.
69699
69700 2005-01-19  Bruno Haible  <bruno@clisp.org>
69701
69702         * lib/sh-quote.h: New file, from GNU gettext.
69703         * lib/sh-quote.c: New file, from GNU gettext.
69704
69705 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69706
69707         Merge from coreutils.
69708         * m4/ullong_max.m4: New file.
69709         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69710         (gl_MACROS): Assume localeconv exists.
69711
69712 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69713
69714         Merge changes from coreutils, as described below in several
69715         changelogs dated today.
69716
69717         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69718         (O_DIRECTORY): Remove; not needed here, since "." must be
69719         a directory.  All uses removed.
69720         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69721         universal on Suns, and we also need to test for IRIX.
69722         Revamp code to use 'if' rather than '#if'.
69723         Avoid unnecessary comparison of cwd->desc to 0.
69724
69725         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69726         for known valid error numbers rather than observed invalid ones.
69727
69728 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * modules/ullong_max: New file.
69731
69732         * modules/chdir-long, modules/openat: New files.
69733         * modules/save-cwd (Depends-on): Depend on chdir-long.
69734         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69735
69736 2005-01-18  Jim Meyering  <jim@meyering.net>
69737
69738         Merge from coreutils.
69739         * m4/chdir-long.m4, m4/openat.m4: New files.
69740         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69741         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69742         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69743         is sane and DOES follow symlinks.  Besides, testing 20 different
69744         systems found no broken chown implementations.
69745         Prompted by a change in rsync's copy of this macro.
69746         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69747
69748         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69749
69750         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69751         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69752         NULL-means-set-to-current-time semantics.
69753         Remove temporary file immediately, rather than waiting
69754         for configure's at-exit trap code to do it.
69755
69756 2005-01-18  Jim Meyering  <jim@meyering.net>
69757
69758         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69759
69760         * lib/utimens.c (futimens): Account for the fact that futimes
69761         can also fail with errno == ENOSYS or errno == ENOENT.
69762         Patch from Dmitry V. Levin.
69763
69764         Change the name of the robust chdir function from chdir to chdir_long.
69765         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69766         (restore_cwd): Use chdir_long, not chdir.
69767         * lib/chdir-long.c: Renamed from chdir.c.
69768         * lib/chdir-long.h: Renamed from chdir.h.
69769         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69770         Hurd.
69771
69772 2005-01-18  Bruno Haible  <bruno@clisp.org>
69773
69774         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69775         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69776         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69777         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69778         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69779         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69780         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69781         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69782         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69783         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69784         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69785         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69786         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69787         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69788         Use an all-permissive copyright notice, recommended by RMS.
69789
69790 2005-01-18  Bob Proulx  <bob@proulx.com>
69791
69792         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69793         simplify offsetof() macro construct to avoid compile failure with
69794         native HP-UX 11.0 ANSI C compiler.
69795
69796 2005-01-17  Bruno Haible  <bruno@clisp.org>
69797
69798         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69799         redundant because stpncpy.m4 takes care of it.
69800
69801 2005-01-17  Bruno Haible  <bruno@clisp.org>
69802
69803         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69804
69805 2005-01-17  Bruno Haible  <bruno@clisp.org>
69806
69807         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69808         used.
69809
69810 2005-01-17  Bruno Haible  <bruno@clisp.org>
69811
69812         * lib/fwriteerror.h (fwriteerror): Change specification to include
69813         fclose.
69814         * lib/fwriteerror.c: Include <stdbool.h>.
69815         (fwriteerror): At the end, close the file stream. Record whether
69816         stdout was already closed.
69817
69818 2005-01-17  Bruno Haible  <bruno@clisp.org>
69819
69820         * lib/execute.c (environ): Declare if needed.
69821         * lib/pipe.c (environ): Likewise.
69822         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69823
69824 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69825
69826         * modules/argp: Depend on vsnprintf
69827
69828 2005-01-10  Jim Meyering  <jim@meyering.net>
69829
69830         * modules/closeout (Depends-on): Add atexit.
69831
69832 2005-01-06  Bruno Haible  <bruno@clisp.org>
69833
69834         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69835
69836 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69837
69838         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69839         definitions to be after all include files, to avoid collisions.
69840         Problem reported by Bob Proulx.
69841
69842 2005-01-04  Jim Meyering  <jim@meyering.net>
69843
69844         Changes imported from coreutils.
69845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69846         as the mkstemp template, use a temporary directory and an
69847         8.3-friendly template to avoid trouble on systems like DJGPP.
69848         Reported by Juan M. Guerrero via Stepan Kasal.
69849         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69850         close. Remove the temporary directory right away, rather than waiting
69851         for configure's at-exit trap code to do it.
69852         Suggestion from Stepan Kasal.
69853
69854 2005-01-01  Simon Josefsson  <jas@extundo.com>
69855
69856         * gnulib-tool: Print #include directives when --import'ing.
69857
69858 2004-12-28  Simon Josefsson  <jas@extundo.com>
69859
69860         * tests/test-base64.c: Include required header files.  Remove
69861         unused variables.
69862
69863 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69864
69865         * modules/error (Depends-on): Remove gettext.
69866
69867 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69868
69869         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69870         not needed.  This removes a dependency on the gettext module.
69871         [defined _LIBC]: Do not include <libintl.h>; not needed.
69872
69873 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69874
69875         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69876         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69877
69878 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69881         HAVE_DECL_STRTOLD.
69882
69883 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * modules/getdate (Depends-on): Remove alloca-opt.
69886
69887 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69890
69891 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * lib/argp-parse.c: Include <stddef.h>.
69894         (alignof, alignto): New macros.
69895         (parser_init): Don't assume that void * is aligned sufficiently
69896         for struct option.
69897
69898         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69899         need to extend the stack.
69900         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69901         large.
69902
69903 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69904
69905         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69906
69907 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69908
69909         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69910         (2004-10-24) change.  Apparently this was a false alarm.
69911
69912         * modules/getdate: Depend on alloca-opt, not alloca.
69913
69914 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69915
69916         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69917         Remove now-obsolete comment about AIX.
69918         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69919         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69920         (YYMAXDEPTH): New macro.
69921
69922 2004-12-18  Simon Josefsson  <jas@extundo.com>
69923
69924         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69925
69926 2004-12-18  Bruno Haible  <bruno@clisp.org>
69927
69928         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69929
69930 2004-12-18  Bruno Haible  <bruno@clisp.org>
69931
69932         * lib/fatal-signal.c (fatal_signals): Make non-const.
69933         (init_fatal_signals): New function.
69934         (uninstall_handlers, install_handlers): Ignore signals that were set to
69935         SIG_IGN.
69936         (at_fatal_signal): Call init_fatal_signals.
69937         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69938         SIG_IGN.
69939         Reported by Paul Eggert.
69940
69941 2004-12-18  Bruno Haible  <bruno@clisp.org>
69942
69943         * doc/alloca.texi: New file.
69944         * doc/alloca-opt.texi: New file.
69945
69946 2004-12-17  Jim Meyering  <jim@meyering.net>
69947
69948         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69949         Otherwise, install-sh could exit with improper exit status when
69950         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69951
69952 2004-12-16  Simon Josefsson  <jas@extundo.com>
69953
69954         * tests/test-base64.c: Add license.
69955
69956 2004-12-15  Stepan Kasal  <address@hidden>
69957
69958         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69959
69960 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69961
69962         * modules/getcwd (Files): Add m4/d-ino.m4.
69963         Suggested by Mark D. Baushke.
69964
69965 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69966
69967         * lib/getdate.y (textint): New member "negative".
69968         (time_zone_hhmm): New function.
69969         Expect 14 shift-reduce conflicts, not 13.
69970         (o_colon_minutes): New rule.
69971         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69972         (yylex): Set the "negative" member of signed numbers.
69973
69974 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69975
69976         * doc/getdate.texi (Time of day items, Time zone items):
69977         Describe new formats +00:00, UTC+00:00.
69978
69979 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69982         spurious "-l"s.  Problem reported by Stepan Kasal.
69983
69984 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69985
69986         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69987         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69988
69989 2004-12-04  Simon Josefsson  <jas@extundo.com>
69990
69991         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69992         Vandoorselaere <yoann@prelude-ids.org>.
69993
69994 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         Changes imported from coreutils.
69997         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69998         exist.
69999         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70000
70001 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70002
70003         Changes imported from coreutils.
70004         * lib/hard-locale.c: Assume <locale.h> exists.
70005         Include "strdup.h".
70006         (GLIBC_VERSION): New macro.
70007         (hard_locale): Assume setlocale exists.
70008         Rewrite to avoid #ifdef.
70009         Use strdup rather than malloc + strcpy.
70010         * lib/human.c: Assume <locale.h> exists.
70011         (human_readable): Assume localeconv exists.
70012
70013 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         * modules/hard-locale (Depends-on): Add strdup.
70016
70017 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70018
70019         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70020         convert T2, not T.  (Imported from libc.)
70021
70022 2004-11-30  Simon Josefsson  <jas@extundo.com>
70023
70024         * modules/restrict (License): Change to LGPL.
70025
70026 2004-11-30  Simon Josefsson  <jas@extundo.com>
70027
70028         * m4/restrict.m4: Add copyright and copying conditions.
70029
70030 2004-11-30  Simon Josefsson  <jas@extundo.com>
70031
70032         * m4/base64.m4: New file.
70033
70034 2004-11-30  Simon Josefsson  <jas@extundo.com>
70035
70036         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70037         base64.
70038
70039         * tests/test-base64.c: New file.
70040
70041         * modules/base64: New file.
70042
70043 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70046         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70047
70048         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70049
70050 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70051
70052         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70053         (__getcwd.c): Don't restore errno; glibc doesn't.
70054         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70055         first, falling back to our code only if its results look suspicious.
70056         Ensure that the resulting buffer is only as large as necessary.
70057
70058         * lib/readutmp.c: Include readutmp.h first.
70059         Include <errno.h>, since readutmp.h no longer does that.
70060         * lib/readutmp.h: Don't include <errno.h>,
70061         <sys/param.h>, <time.h>; not needed to establish interface.
70062         (errno): Remove decl.
70063         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70064         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70065         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70066
70067 2004-11-28  Simon Josefsson  <jas@extundo.com>
70068
70069         * lib/base64.h, base64.c: New file.
70070
70071 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70072
70073         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70074
70075 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70078         (Depends-on): Remove pathmax, same.  Add mempcpy.
70079         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70080         (Makefile.am): Append getcwd.h to lib_SOURCES.
70081         (Include): Add getcwd.h.
70082         (Maintainer): Change from Jim Meyering to "all, glibc",
70083         since getdate now uses intended-for-glibc code.
70084         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70085         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70086
70087 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70088
70089         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70090         HP's ANSI C compiler.
70091         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70092         Declaring int functions causes warnings on some modern systems and
70093         shouldn't be needed to compile on ancient ones.
70094         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70095         defined.
70096
70097         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70098         with the following changes.
70099         (__set_errno): Parenthesize properly.
70100         Include <stdbool.h>.
70101         (MIN, MAX, MATCHING_INO): New macros.
70102         (__getcwd): Define with prototype, not K&R form.
70103         Use heuristics to allocate default buffer on stack if possible.
70104         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70105         behavior, and to avoid the PATH_MAX limit when computing
70106         ../../../../...
70107         Use MATCHING_INO to compare inode number to file.
70108         Check for arithmetic overflow in size calculations.
70109         Fix bug in reallocation of dot array that caused getcwd to fail
70110         on directories nested deeper than 75.
70111         Be more careful about saving errno on error.
70112         Do not use realloc; use only free+malloc, as this is a bit
70113         more flexible and avoids a needless copy operation.
70114         Do not inspect st_dev and st_ino for symbolic links; POSIX
70115         doesn't specify the latter.
70116         Check for closedir errors.
70117         Avoid needless casts.
70118         Use "#ifdef weak_alias" around weak_alias, to be like other
70119         glibc code.
70120         The following changes to getcwd.c have effect only when used in
70121         gnulib; they have no effect inside glibc proper.
70122         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70123         as alloca isn't used.
70124         (alloca, __alloca): Likewise.
70125         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70126         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70127         unconditionally, as gnulib assumes C89 or better.
70128         Do not include <sys/param.h>.
70129         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70130         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70131         better.
70132         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70133         Include <dirent.h> in a way that is compatible with modern Autoconf.
70134         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70135         New macros, if not already defined.
70136         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70137         Use "_LIBC", not "defined _LIBC", for consistency.
70138         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70139         a mempcpy module.
70140         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70141         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70142         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70143         credit only to Jim Meyering and adjust the copyright dates.
70144         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70145         <stdlib.h>, <unistd.h>, "pathmax.h".
70146         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70147         (INITIAL_BUFFER_SIZE): Remove.
70148         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70149
70150 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70151
70152         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70153         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70154         Use the _ONCE methods, for efficiency.
70155         Check for fcntl.h.  In test program, include <errno.h>
70156         and <fcntl.h> if available.  Remove old K&R cruft from
70157         test program.  Check for common errors in GNU/Linux,
70158         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70159         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70160         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70161         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70162         name accordingly.
70163         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70164         accommodate new getcwd.c.
70165         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70166         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70167         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70168         that's all we need now.
70169
70170 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70171
70172         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70173         argp-parse.c depends on getopt internals, that means we should
70174         always use our getopt, to be on the safe side.
70175         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70176         order not to spoil the result of an eventual previous invocation
70177         of gl_GETOPT_SUBSTITUTE.
70178
70179 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70180
70181         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70182         redefinition warnings. To avoid them, include the defines
70183         in `#if !defined __need_getopt ... #endif'. The only place
70184         where __getopt_argv_const is used is in definitions
70185         of getopt_long and getopt_long_only below, which are as well
70186         protected by `#ifndef __need_getopt'.
70187         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70188         __need_getopt after including <stdio.h> and <unistd.h> These
70189         headers might have defined it.
70190
70191 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70192
70193         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70194
70195 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70196
70197         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70198         (futimens): New function, which uses futimes if available.
70199         (futimens, utimens): Support timespec==NULL, with same semantics
70200         as utime and utimens.
70201         * lib/utimens.h (futimens): New decl.
70202
70203 2004-11-23  Jim Meyering  <jim@meyering.net>
70204
70205         * lib/getopt_.h: Remove trailing blanks.
70206
70207 2004-11-23  Jim Meyering  <jim@meyering.net>
70208
70209         * lib/__fpending.c: Add comment.
70210
70211 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70212
70213         * modules/canonicalize (Depends-on): Add xreadlink.
70214         Problem reported by James Youngman.
70215
70216 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70217
70218         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70219         New macros.
70220         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70221         optopt): Use them instead of invoking ## directly; otherwise, the
70222         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70223
70224 2004-11-19  Bruno Haible  <bruno@clisp.org>
70225
70226         * lib/strtok_r.c: Move comments from here...
70227         * lib/strtok_r.h: ... to here.
70228
70229 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70230
70231         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70232         implementations that mishandle size_t overflow.
70233
70234 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70237         might fail.  Problem reported by Yoann Vandoorselaere.
70238         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70239         implementations that mishandle size_t overflow.
70240
70241 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         * modules/canon-host (Depends-on): Add strdup.
70244
70245 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70246
70247         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70248
70249 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70250
70251         * lib/canon-host.c: Include "strdup.h".
70252         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70253         Use strdup instead of malloc/strcpy to duplicate strings.
70254
70255         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70256         (human_space_before_unit): New constant.
70257         * lib/human.c (human_readable): Support it.
70258
70259         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70260         (xgetcwd): Set errno correctly when failing.
70261         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70262         the failure is actually due to a PATH_MAX problem.
70263
70264         Further getopt changes to make it more likely that glibc will
70265         buy the changes back.
70266         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70267         (getopt): Use it, so to preserve glibc semantic
70268         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70269         when compiling for libc.
70270         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70271         (getopt_long, getopt_long_only): Use it.
70272
70273         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70274         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70275         (getopt): Argv is now char * const *, as per standard.
70276         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70277         not char *__getopt_argv_const *.
70278         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70279         _getopt_long_only_r): Likewise.
70280         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70281         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70282         _getopt_long_r, _getopt_long_only_r): Likewise.
70283         * lib/getopt_.h (__getopt_argv_const): Remove.
70284         (getopt): Argv is now char * const *, as per standard.
70285
70286         * lib/getdate.y (tORDINAL): New token.
70287         (day, relunit): Allow it for relative times.
70288         (relative_time_table): Use tORDINAL for ordinals.
70289
70290 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70291
70292         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70293         Document that "second" isn't allowed as an ordinal number.
70294
70295 2004-11-16  Jim Meyering  <jim@meyering.net>
70296
70297         * modules/closeout (Depends-on): Add fpending.
70298
70299 2004-11-15  Jim Meyering  <jim@meyering.net>
70300
70301         * lib/closeout.c: Include "__fpending.h" once again.
70302         Include <stdbool.h>.
70303         (close_stdout): Don't fail just because stdout was closed initially,
70304         since some programs don't write to stdout in the normal course of
70305         operation (other than --version and --help), and we don't want this
70306         function to make e.g. `touch file >&-' fail.
70307         But do fail if it was closed and someone has tried to write to it.
70308         E.g., `printf foo >&-' must fail.
70309
70310 2004-11-13  Jim Meyering  <jim@meyering.net>
70311
70312         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70313
70314 2004-11-12  Simon Josefsson  <jas@extundo.com>
70315
70316         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70317         small doc fix is still pending.
70318
70319 2004-11-11  Simon Josefsson  <jas@extundo.com>
70320
70321         * modules/strtok_r: New file.
70322
70323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70324         strtok_r.
70325
70326 2004-11-11  Simon Josefsson  <jas@extundo.com>
70327
70328         * m4/strtok_r.m4: New file.
70329
70330         * m4/getopt.m4: Replace opterr.
70331
70332 2004-11-11  Simon Josefsson  <jas@extundo.com>
70333
70334         * lib/strtok_r.h, strtok_r.c: New file.
70335
70336 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70337
70338         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70339         of replacing opterr, getopt, etc.  This should handle the
70340         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70341
70342 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70343
70344         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70345         we can stop lying to compilers about the constness of argv when we
70346         are compiled outside glibc.
70347         (getopt, getopt_long, getopt_long_only): Use it.
70348         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70349         _getopt_internal, getopt): Likewise.
70350         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70351         _getopt_long_only_r): Likewise.
70352         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70353         _getopt_long_r, _getopt_long_only_r): Likewise.
70354
70355         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70356         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70357         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70358         the other external symbols.
70359         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70360         declaration, since the above renaming now works around collisions.
70361
70362 2004-11-11  Jim Meyering  <jim@meyering.net>
70363
70364         * lib/linebreak.c: Remove trailing blanks.
70365         * lib/alloca_.h: Likewise.
70366         * lib/acosl.c: Likewise.
70367         * lib/euidaccess.c: Likewise.
70368         * lib/allocsa.h: Likewise.
70369
70370 2004-11-10  Simon Josefsson  <jas@extundo.com>
70371
70372         * m4/getaddrinfo.m4: New file.
70373
70374 2004-11-10  Simon Josefsson  <jas@extundo.com>
70375
70376         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70377
70378 2004-11-10  Simon Josefsson  <jas@extundo.com>
70379
70380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70381         getaddrinfo.
70382
70383         * modules/getaddrinfo: New file.
70384
70385 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70388
70389 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70390
70391         * lib/mktime.c (SHR): New macro, which is a portable
70392         substitute for >> that should work even on Crays.
70393         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70394         Problem reported by Mark D. Baushke in
70395         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70396         * lib/getdate.y (SHR): Likewise.
70397         (tm_diff): Use it.
70398         * lib/strftime.c (SHR): Likewise.
70399         (tm_diff): Use it.
70400         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70401         quote_these_too, so that right shifts are well defined.  All uses
70402         changed.
70403
70404 2004-11-10  Jim Meyering  <jim@meyering.net>
70405
70406         Ensure that no close failure goes unreported.
70407         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70408         return early when it seems there's nothing to flush.
70409         Don't include __fpending.h.
70410
70411 2004-11-10  Jim Meyering  <jim@meyering.net>
70412
70413         * modules/closeout (Depends-on): Remove fpending.
70414
70415 2004-11-10  Jim Meyering  <jim@meyering.net>
70416
70417         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70418
70419 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70420
70421         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70422         gl_FUNC_STRFTIME.
70423         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70424         and AC_REQUIRE when possible, to avoid duplicate checks.
70425         Check for <wchar.h>.
70426
70427 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70428
70429         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70430
70431 2004-11-09  Bruno Haible  <bruno@clisp.org>
70432
70433         * m4/sockpfaf.m4: New file.
70434
70435 2004-11-05  Bruno Haible  <bruno@clisp.org>
70436
70437         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70438         Reported by Mark D. Baushke <mdb@cvshome.org>.
70439
70440 2004-11-04  Bruno Haible  <bruno@clisp.org>
70441
70442         2004-09-11  Bruno Haible  <bruno@clisp.org>
70443                 * allocsa.valgrind: New file.
70444         2004-02-06  Bruno Haible  <bruno@clisp.org>
70445                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70446                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70447                 Reported by Christopher Seip <chris.seip@hp.com>.
70448
70449 2004-11-04  Bruno Haible  <bruno@clisp.org>
70450
70451         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70452         (Makefile.am): Distribute it.
70453
70454 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70455
70456         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70457         with errno == ERANGE if the buffer is too small.
70458         Problem reported by Mark D. Baushke.
70459
70460 2004-11-03  Albert Chin  <china@thewrittenword.com>
70461             Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70464         equivalent, substitute $ac_type for equivalent type rather than
70465         blindly using uint32_t *always* which won't work if uint32_t is not
70466         available.  Define _UINT32_T to work around typedef of uint32_t if
70467         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70468         2.5.1.
70469
70470 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         * m4/jm-macros.m4: Sync from coreutils.
70473         (gl_MACROS): Check for mbrlen, for pathchk.
70474         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70475
70476 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70477
70478         * lib/xreadlink.c (MAXSIZE): New macro.
70479         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70480         size does not exceed MAXSIZE.  Avoid cast.
70481         As suggested by Mark D. Baushke in
70482         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70483         if readlink fails with buffer size just under MAXSIZE, try again
70484         with MAXSIZE.
70485
70486 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70489
70490 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70491         and  Paul Eggert  <eggert@cs.ucla.edu>
70492
70493         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70494         (get_date): Overparenthesize to avoid GCC warning.
70495
70496 2004-11-02  Bruno Haible  <bruno@clisp.org>
70497
70498         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70499         returns void.
70500
70501 2004-11-02  Bruno Haible  <bruno@clisp.org>
70502
70503         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70504         function returns void.
70505
70506 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70507
70508         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70509         fflush_unlocked, flockfile, funlockfile, funlockfile,
70510         fputs_unlocked, putc_unlocked.
70511
70512 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70513
70514         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70515         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70516         already declared.
70517
70518 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70519
70520         * modules/getdate (Files): Add doc/getdate.texi.
70521         (Depends-on): Add setenv, xalloc.
70522
70523 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70524
70525         * lib/getdate.y: Add support for TZ="foo" within a date string.
70526         Fix some bugs near time_t boundaries.  Reject dates with
70527         out-of-range components, e.g., "Sept 31".
70528         Include <stdlib.h>, "setenv.h", "xalloc.h".
70529         (ISDIGIT_LOCALE): Remove; unused.
70530         Note that the TZ and time functions used here are not reentrant.
70531         (mktime_ok, get_tz): New functions.
70532         (TZBUFSIZE): New constant.
70533         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70534         This requires that we sometimes generate our own TZ="XXX..." setting.
70535
70536 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70537
70538         * doc/getdate.texi: New file, from coreutils with modifications for
70539         the new TZ parsing.
70540
70541 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70542
70543         * lib/mktime.c (not_equal_tm): Remove redundant check.
70544
70545 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * modules/regex (lib_SOURCES): Add regex.c.
70548         Reported by James Youngman in
70549         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70550
70551 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70552
70553         * lib/getdate.y: Use Bison 1.875 features, and some minor
70554         code cleanups.  This change does not affect semantics.
70555         Don't include <stdlib.h>; no longer needed.
70556         Don't include unlocked-io.h; only the "#if TEST" code uses
70557         stdio, and performance isn't crucial there.
70558         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70559         Bison 1.875 features as described below.
70560         All uses of "PC." replaced by "pc->".
70561         (YYSTYPE): Add a forward declaration.
70562         (yylex, yyerror): Use full prototypes in forward decls.
70563         Use "%pure-parser" rather than obsolescent "%pure_parser".
70564         Use %parse-param and %lex-param instead of obsolescent
70565         YYPARSE_PARAM and YYLEX_PARAM.
70566         (meridian_table, month_and_day_table, time_units_table,
70567         relative_time_table, time_zone_table, military_table,
70568         lookup_zone, lookup_word, get_date):
70569         Use NULL instead of 0 where appropriate.
70570         (to_hour): Avoid abort (), to avoid a dependency on
70571         stdlib.h.
70572         (yyerror, yylex): Now accepts parser_control * arg.
70573         (main) [TEST]: Use '\0' rather than 0 for char.
70574
70575 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70578
70579 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70582         It's now the caller's responsibility to handle the case where
70583         !HAVE_GETPAGESIZE && !defined getpagesize.
70584
70585         * lib/mktime.c (leapyear): Arg is long int, not int.
70586
70587 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70588
70589         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70590
70591 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70594         missing.  Problem reported by James Youngman.
70595
70596 2004-10-16  Simon Josefsson  <jas@extundo.com>
70597
70598         * gnulib-tool: Fix comments.  Fix parse problem.
70599         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70600
70601 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70602
70603         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70604         implementation of getopt_long.  Problem reported by Alexander Taler in:
70605         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70606
70607 2004-10-15  Bruno Haible  <bruno@clisp.org>
70608
70609         * gnulib-tool: Untabify. Initialize supplied_libname.
70610         (func_usage): More homogenous output.
70611         (func_modules_transitive_closure, func_modules_to_filelist,
70612         func_emit_lib_Makefile_am): New functions.
70613         (func_import): New function, extracted from big case statement. Use
70614         func_get_license, func_modules_transitive_closure,
70615         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70616         opt_lgpl. Don't use test -a, as it's not portable.
70617         (func_create_testdir): Use func_modules_transitive_closure,
70618         func_modules_to_filelist, func_emit_lib_Makefile_am.
70619
70620 2004-10-15  Bruno Haible  <bruno@clisp.org>
70621
70622         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70623
70624 2004-10-15  Bruno Haible  <bruno@clisp.org>
70625
70626         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70627         the portions belonging to each module.
70628         Suggested by Derek Robert Price <derek@ximbiot.com>.
70629
70630 2004-10-12  Simon Josefsson  <jas@extundo.com>
70631
70632         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70633         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70634         to real functions.
70635
70636 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70637
70638         * modules/vsnprintf: New file.
70639
70640 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70641
70642         * m4/vsnprintf.m4: New file.
70643
70644 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70645
70646         * lib/vsnprintf.h: New file.
70647         * lib/vsnprintf.c: New file.
70648
70649 2004-10-11  Bruno Haible  <bruno@clisp.org>
70650
70651         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70652         vsnprintf.
70653
70654 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70657
70658 2004-10-07  Bruno Haible  <bruno@clisp.org>
70659
70660         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70661         fits into the provided buffer.
70662
70663 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * lib/diacrit.c, diacrit.h: Add GPL notice.
70666
70667         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70668         notice.
70669         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70670         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70671         This avoids a potential constant-folding bug.
70672
70673 2004-10-05  Bruno Haible  <bruno@clisp.org>
70674
70675         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70676         for the declaration of strsep.
70677
70678 2004-10-05  Bruno Haible  <bruno@clisp.org>
70679
70680         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70681
70682 2004-10-04  Simon Josefsson  <jas@extundo.com>
70683
70684         * modules/memmem: New file.
70685         * tests/test-memmem.c: New file.
70686         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70687
70688 2004-10-04  Simon Josefsson  <jas@extundo.com>
70689
70690         * m4/memmem.m4: New file.
70691
70692 2004-10-04  Simon Josefsson  <jas@extundo.com>
70693
70694         * lib/memmem.h: New file.
70695         * lib/memmem.c: New file, taken from glibc.
70696
70697 2004-10-04  Simon Josefsson  <jas@extundo.com>
70698
70699         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70700         '#ifdef USE_UNLOCKED_IO'.
70701
70702 2004-10-04  Simon Josefsson  <jas@extundo.com>
70703
70704         * config/srclist.txt: Add memmem from glibc.
70705
70706 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70707
70708         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70709
70710         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70711         modules/exclude, modules/getdate, modules/getline,
70712         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70713         modules/getusershell, modules/linebuffer, modules/md5,
70714         modules/mountlist, modules/posixtm, modules/readtokens,
70715         modules/readutmp, modules/regex, modules/sha1,
70716         modules/version-etc, modules/yesno:
70717         Remove dependency on unlocked-io.
70718
70719 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70722
70723         * m4/unlocked-io.m4: Add copyright notice.
70724         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70725
70726 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70727
70728         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70729         * lib/xmalloc.c (xmemdup): Likewise.
70730         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70731         XFREE): Remove these long-obsolescent macros.
70732         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70733         * lib/xstrdup.c: Remove.
70734
70735         * lib/regex.c (re_comp): Cast gettext return value to char *,
70736         Problem reported by Martin Neitzel via Mark D. Baushke.
70737
70738 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70741         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70742         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70743         regex.c, sha1.c, version-etc.c, yesno.c:
70744         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70745         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70746         the includer's responsibility.
70747
70748         Sync from coreutils.
70749
70750         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70751         points to the start of a string, as the C Standard says the
70752         resulting behavior is undefined.
70753
70754         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70755         simple -> simple_backups, numbered_existing ->
70756         numbered_existing_backups, numbered -> numbered_backups
70757         to avoid shadowing problems.  All uses changed.
70758         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70759         * lib/backupfile.c (check_extension, numbered_backup):
70760         Rename locals to avoid shadowing 'basename'.
70761         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70762         once.
70763
70764         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70765         * lib/.cvsignore: Add getopt.h.
70766
70767 2004-10-04  Bruno Haible  <bruno@clisp.org>
70768
70769         * modules/README: New file.
70770         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70771         not a module.
70772
70773 2004-10-02  Jim Meyering  <jim@meyering.net>
70774
70775         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70776
70777 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70778
70779         * modules/strsep: New file.
70780
70781 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70782
70783         * m4/strsep.m4: New file.
70784
70785 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70786
70787         * lib/strsep.h: New file.
70788         * lib/strsep.c: New file.
70789
70790 2004-10-01  Simon Josefsson  <jas@extundo.com>
70791
70792         * lib/snprintf.c (snprintf): Handle size==0.
70793
70794 2004-10-01  Simon Josefsson  <jas@extundo.com>
70795             Bruno Haible  <bruno@clisp.org>
70796
70797         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70798         (snprintf): Declare 'args'.
70799
70800 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70801
70802         * lib/snprintf.c: Remove comments as to why each header is needed.
70803
70804 2004-10-01  Bruno Haible  <bruno@clisp.org>
70805
70806         * MODULES.html.sh: Add strsep.
70807
70808 2004-09-30  Simon Josefsson  <jas@extundo.com>
70809
70810         * modules/snprintf: New file.
70811
70812 2004-09-30  Simon Josefsson  <jas@extundo.com>
70813
70814         * m4/snprintf.m4: New file.
70815
70816 2004-09-30  Simon Josefsson  <jas@extundo.com>
70817
70818         * lib/snprintf.h, lib/snprintf.c: New files.
70819
70820 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70821
70822         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70823         (hol_entry_help): Never translate an empty string.
70824         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70825         * lib/argp.h (OPTION_NO_TRANS): New option.
70826
70827 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         * modules/argp (Maintainer): Replace Simon Josefsson
70830         by Sergey Poznyakoff.
70831
70832 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70833
70834         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70835         changes merged back into glibc.
70836
70837 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70840
70841 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70842
70843         * lib/xvasprintf.c: Include xalloc.h.
70844         (xvasprintf): Use xalloc_die, not xmalloc_die.
70845
70846 2004-09-29  Bruno Haible  <bruno@clisp.org>
70847
70848         * modules/alloca-opt: New file, derived from modules/alloca.
70849         * modules/allocsa: Depend on alloca-opt instead of alloca.
70850         * modules/setenv: Likewise.
70851         * modules/vasnprintf: Likewise.
70852         * MODULES.html.sh: Add alloca-opt.
70853
70854 2004-09-28  Simon Josefsson  <jas@extundo.com>
70855
70856         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70857         LGPL, and to replace license template from GPL to LGPL.
70858
70859 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         * modules/dummy: Change license to LGPL.
70862
70863 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70866
70867 2004-09-24  Simon Josefsson  <jas@extundo.com>
70868
70869         * modules/minmax (License): Change from GPL to LGPL.
70870
70871 2004-09-23  Simon Josefsson  <jas@extundo.com>
70872
70873         * gnulib-tool (--import): Typo.
70874
70875 2004-09-23  Simon Josefsson  <jas@extundo.com>
70876
70877         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70878
70879 2004-09-22  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/*: Add 'License' field.
70882         * gnulib-tool: Accept --extract-license option.
70883         (func_get_license): New function.
70884
70885 2004-09-21  Bruno Haible  <bruno@clisp.org>
70886
70887         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70888         Reported by Simon Josefsson.
70889
70890 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70891
70892         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70893         gl_AC_TYPE_LONG_LONG.
70894
70895 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70898
70899 2004-09-18  Simon Josefsson  <jas@extundo.com>
70900         and  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70903         calls with autoreconf.  Define GL_LIB.
70904
70905 2004-09-14  Karl Berry  <karl@gnu.org>
70906
70907         * config/srclist.txt: unsync setenv.c, sigh.
70908
70909 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70912         Problem reported by Bruno Haible in:
70913         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70914
70915 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70916
70917         * config/srclist.txt: Comment out argp-pvh.c.
70918
70919 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70922         in case some system header has #define'd it.  Problem reported by
70923         Soeren D. Schulze in
70924         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70925
70926 2004-09-09  Karl Berry  <karl@gnu.org>
70927
70928         * regex.[ch]: delete from the root.  These were supposed to be
70929                 synced with emacs cvs, but this has not happened for about
70930                 a year, and anyway nothing else uses emacs regex.[ch].
70931                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70932                 lib/regex[.ch] is untouched.
70933
70934 2004-09-09  Bruno Haible  <bruno@clisp.org>
70935
70936         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70937
70938 2004-09-09  Bruno Haible  <bruno@clisp.org>
70939
70940         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70941         modifications.
70942         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70943
70944 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70945
70946         * modules/xvasprintf: New file.
70947         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70948
70949 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70950
70951         * lib/xvasprintf.h: New file.
70952         * lib/xvasprintf.c: New file.
70953         * lib/xasprintf.c: New file.
70954
70955 2004-09-08  Bruno Haible  <bruno@clisp.org>
70956
70957         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70958
70959 2004-09-08  Bruno Haible  <bruno@clisp.org>
70960
70961         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70962         length is > INT_MAX.
70963         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70964         more.
70965
70966 2004-09-08  Bruno Haible  <bruno@clisp.org>
70967
70968         * lib/stdint_.h: New file, taken from GNU clisp.
70969
70970 2004-09-08  Bruno Haible  <bruno@clisp.org>
70971             Oskar Liljeblad  <oskar@osk.mine.nu>
70972
70973         * modules/stdint: New file.
70974         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70975
70976 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         Import from coreutils.
70979         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70980         strings on unbounded length.  alloca's performance benefits aren't
70981         that important here.
70982         (V_STRDUP): Remove.
70983         (parse_with_separator): New function, with most of the internals
70984         of the old parse_user_spec.  Allow user to omit both user and group,
70985         for compatibility with FreeBSD.
70986         Clone only the user name, not the entire spec.
70987         Do not set *uid, *gid unless entirely successful.
70988         Avoid memory leak in some failing cases.
70989         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70990         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70991         (parse_user_spec): Rewrite to use parse_with_separator.
70992
70993 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         * modules/userspec: Don't depend on alloca.
70996
70997 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70998
70999         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71000
71001 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71004         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71005         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71006
71007 2004-08-16  Simon Josefsson  <jas@extundo.com>
71008
71009         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71010         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71011         Add --dry-run for --import.
71012         Let user provided command line parameters override configure.ac
71013         settings.
71014
71015 2004-08-12  Simon Josefsson  <jas@extundo.com>
71016
71017         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71018         as discussed with Paul Eggert in threads rooted at
71019         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71020         and
71021         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71022         Before, the test was empty, and relied on ELIDE_CODE in source
71023         code.)
71024         (gl_PREREQ_GETOPT): New macro.
71025         (gl_GETOPT): Use them.
71026
71027 2004-08-12  Simon Josefsson  <jas@extundo.com>
71028
71029         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71030         * lib/getopt_.h: Renamed from getopt.h.
71031
71032 2004-08-12  Simon Josefsson  <jas@extundo.com>
71033
71034         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71035         Change default library name from libfoo to libgnu.
71036         Now, if you have a configure.ac that says:
71037                 gl_SOURCE_BASE(gl)
71038                 gl_M4_BASE(gl/m4)
71039                 gl_MODULES(error getopt etcetera)
71040                 gl_INIT
71041         you can import all you need by running:
71042                 ../gnulib/gnulib-tool --import
71043
71044         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71045         (Makefile.am): Rewrite, use logic from argz.
71046         (Include): Use <getopt.h> instead of "getopt.h".
71047
71048 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * modules/argp (Files): Add m4/unlocked-io.m4.
71051         (Depends-on): Add extensions.
71052
71053 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71054
71055         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71056         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71057         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71058         Check for program_invocation_name, program_invocation_short_name,
71059         flockfile, funlockfile, features.h, _getopt_long_only_r.
71060
71061 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71064         its complicated substitute.
71065         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71066         and program_invocation_name.
71067         (__argp_basename) [!_LIBC]: Remove; the only use was
71068         replaced by its body.
71069         (__argp_short_program_name): Change condition from
71070         !defined __argp_short_program_name to
71071         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71072         to match argp-namefrob.h.
71073         (__argp_failure): Don't assume strerror_r returns char *.
71074         * lib/argp-parse.c (N_): Define unconditionally.
71075         (argp_default_options): Fill out initializers with 0 to avoid
71076         gcc warnings.
71077
71078 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71079
71080         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71081         getopt1.c.
71082
71083 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71084
71085         Merge from coreutils.
71086
71087         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71088
71089         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71090         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71091
71092 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71093
71094         Merge from coreutils.
71095
71096         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71097         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71098         for Reliant Unix 5.43.
71099
71100         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71101         (union fooround): Use uintmax_t, not long int.
71102         The rest is a merge from libc:
71103         [defined _LIBC]: Include <shlib-compat.h>.
71104         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71105
71106         * lib/settime.c (settime): Recode to avoid warning with
71107         Sun Forte C 6U2.
71108
71109         * lib/strverscmp.c: Convert to UTF-8.
71110
71111 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71112
71113         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71114         m4/uintmax_t.m4.
71115
71116 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71117
71118         * modules/xalloc-die: New file.
71119         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71120
71121         * modules/md5 (Files): Add m4/uint32_t.m4.
71122         * modules/sha1: Renamed from modules/sha.
71123         (Files):
71124         Rename lib/sha.h to lib/sha1.h.
71125         Rename lib/sha.c to lib/sha1.c.
71126         Rename m4/sha.m4 to m4/sha1.m4.
71127         (lib_SOURCES): Likewise.
71128         (configure.ac): Rename gl_SHA to gl_SHA1.
71129         (Include): sha.h -> sha1.h.
71130
71131 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71134         * m4/sha1.m4: Renamed from sha.m4.
71135         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71136
71137 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * lib/obstack.h (obstack_empty_p):
71140         Don't assume that chunk->contents is suitably aligned.
71141         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71142         Likewise. Problem reported by Benno in
71143         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71144
71145         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71146         readable.  This could be improved further but it'd take some work.
71147
71148 2004-08-08  Simon Josefsson  <jas@extundo.com>
71149
71150         * modules/xgethostname (Depends-on): Remove exit and error (not
71151         used).
71152
71153         * modules/getpass-gnu: Add getpass.h.
71154         (Depends-on): Add stdbool.
71155         * modules/getpass: Add getpass.h.
71156
71157 2004-08-08  Simon Josefsson  <jas@extundo.com>
71158
71159         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71160         Check getpass declaration.
71161
71162 2004-08-08  Simon Josefsson  <jas@extundo.com>
71163
71164         * lib/xgethostname.c: Don't include error.h (not used).
71165
71166         * lib/getpass.h: Add.
71167         * lib/getpass.c: Include getpass.h first.
71168
71169 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71170
71171         * lib/xalloc-die.c: New file.
71172         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71173         All uses removed.
71174         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71175         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71176         xalloc-die.c.
71177         (_, N_, xalloc_die): Move to xalloc-die.c.
71178         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71179         so that we needn't mess with xalloc_msg_memory_exhausted.
71180
71181         * lib/sha1.h: Renamed from sha.h.
71182         (SHA1_H): Renamed from _SHA_H.
71183         (sha1_ctx): Renamed from sha_ctx.
71184         (sha1_init_ctx): Renamed from sha_init_ctx.
71185         (sha1_process_block): Renamed from sha_process_block.
71186         (sha1_process_bytes): Renamed from sha_process_bytes.
71187         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71188         (sha1_read_ctx): Renamed from sha_read_ctx.
71189         (sha1_stream): Renamed from sha_stream.
71190         (sha1_buffer): Renamed from sha_buffer.
71191         * lib/sha1.c: Likewise; renamed from sha.c.
71192         Do not include <sys/types.h>.
71193         Include <stddef.h> rather than <stdlib.h>.
71194
71195 2004-08-08  Bruno Haible  <bruno@clisp.org>
71196
71197         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71198         FILESYSTEM_PREFIX_LEN.
71199         * lib/progreloc.c: Likewise.
71200         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71201
71202 2004-08-06  Simon Josefsson  <jas@extundo.com>
71203
71204         * modules/progname (Depends-on): Don't depend on stdbool.
71205
71206 2004-08-06  Simon Josefsson  <jas@extundo.com>
71207
71208         * modules/getsubopt: New file.
71209         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71210         getsubopt.
71211
71212 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         More merge from coreutils.
71215
71216         * m4/utimens.m4, m4/utimecmp.m4: New files.
71217         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71218         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71219         prereq.m4, sha.m4: Import changes from coreutils.
71220
71221 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         More merge from coreutils.
71224         * modules/raise, modules/readtokens0, modules/utimens:
71225         * modules/utimecmp, module/xnanosleep: New files.
71226         * modules/strftime: Add lib/strftime.h.
71227         Change include from <time.h> to "strftime.h".
71228         * modules/yesno: Add lib/yesno.h.
71229         * modules/backupfile: Remove lib/addext.c.
71230         * modules/euidaccess: Add stat-macros.h.
71231         * modules/canonicalize, modules/euidaccess,
71232         modules/filemode, modules/lchown, modules/makepath,
71233         modules/rmdir, modules/stat: Likewise.
71234
71235 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         Merge from tar.
71238         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71239         SIZE_MAX is a valid preprocessor constant.
71240         (__argp_basename): Change from "#ifndef _LIBC"
71241         to "#ifndef __argp_short_program_name", so that
71242         we don't compile these functions for tar.
71243
71244         More merges from coreutils.
71245         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71246         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71247         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71248         * lib/addext.c: Remove; no longer needed.
71249         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71250         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71251         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71252         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71253         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71254         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71255         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71256         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71257         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71258         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71259         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71260         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71261         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71262         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71263         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71264         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71265         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71266         Import changes from coreutils.
71267
71268 2004-08-05  Simon Josefsson  <jas@extundo.com>
71269
71270         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71271
71272 2004-08-05  Simon Josefsson  <jas@extundo.com>
71273
71274         * m4/getsubopt.m4: New file.
71275
71276 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71277
71278         Merge from coreutils.
71279
71280         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71281         * m4/getcwd-path-max.m4: New files.
71282
71283         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71284         FILESYSTEM_PREFIX_LEN ->
71285         FILE_SYSTEM_PREFIX_LEN.
71286         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71287         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71288         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71289         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71290
71291         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71292         prerequisite modules now handle the DOS stuff.
71293         Don't check for unistd.h.
71294
71295 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         Merge from coreutils.
71298
71299         * lib/.gdb-history: Remove; this doesn't belong here.
71300
71301         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71302         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71303         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71304         * lib/getcwd.c: New files.
71305
71306         * lib/dirname.h: Include <stdbool.h>.
71307         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71308         for consistency with POSIX terminology.  All uses changed.
71309         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71310         (strip_trailing_slashes): Use bool for booleans.
71311         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71312
71313         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71314         sometimes returns a positive errno value even when it succeeds.
71315         (print_errno_message) [!LIBC]: Fall back on strerror if
71316         __strerror_r fails.
71317
71318         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71319         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71320         (longest_relative_suffix): New function.
71321         (path_concat): Use it.  Assume first argument is not NULL.
71322         Port to DOS.  Omit redundant separators.
71323         Report an error instead of returning NULL.
71324         Use mempcpy instead of memcpy.
71325         (xpath_concat): Remove: not declared or used.
71326
71327         * lib/same.h: Include <stdbool.h>
71328         (same_name): Return bool, not int.
71329         * lib/same.c (same_name): Likewise.
71330         (errno): Don't declare; we assume C89 or better now.
71331
71332         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71333         if not already defined.
71334
71335         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71336         * lib/dup-safer.c (errno): Likewise.
71337
71338 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71339
71340         Merge from coreutils.
71341         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71342         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71343         * modules/path-concat: Don't depend on strdup.
71344
71345 2004-08-03  Simon Josefsson  <jas@extundo.com>
71346
71347         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71348         * lib/progname.h: Don't include stdbool.h.
71349
71350 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71351
71352         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71353         * MODULES.html.sh (func_all_modules): Remove fatal.
71354
71355 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71356
71357         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71358
71359 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71360
71361         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71362         working.
71363
71364 2004-08-02  Simon Josefsson  <jas@extundo.com>
71365
71366         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71367         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71368         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71369
71370 2004-08-01  Simon Josefsson  <jas@extundo.com>
71371
71372         * lib/xgetdomainname.c: Include stdlib.h, for free().
71373
71374 2004-07-19  Bruno Haible  <bruno@clisp.org>
71375
71376         * MODULES.html.sh (func_all_modules): Add dummy.
71377
71378 2004-07-16  Simon Josefsson  <jas@extundo.com>
71379
71380         * modules/dummy: New file.
71381
71382 2004-07-16  Simon Josefsson  <jas@extundo.com>
71383
71384         * lib/dummy.c: New file.
71385
71386 2004-07-16  Bruno Haible  <bruno@clisp.org>
71387
71388         * lib/backupfile.h: Add extern "C" for C++.
71389         * lib/closeout.h: Likewise.
71390         * lib/copy-file.h: Likewise.
71391         * lib/findprog.h: Likewise.
71392         * lib/full-write.h: Likewise.
71393         * lib/pathname.h: Likewise.
71394         * lib/progname.h: Likewise.
71395         * lib/stpcpy.h: Likewise.
71396         * lib/stpncpy.h: Likewise.
71397         * lib/strcase.h: Likewise.
71398         * lib/strstr.h: Likewise.
71399         * lib/xalloc.h: Likewise.
71400
71401         * lib/mbswidth.h: Add extern "C" for C++.
71402         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71403
71404 2004-07-13  Robert Millan  <robertmh@gnu.org>
71405
71406         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71407
71408 2004-07-09  Simon Josefsson  <jas@extundo.com>
71409
71410         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71411         failed without this.)
71412
71413 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         * modules/chown (Files): Add lib/fchown-stub.c, since
71416         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71417
71418 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71419
71420         * lib/fchown-stub.c: New file.
71421
71422 2004-06-24  Jim Meyering  <jim@meyering.net>
71423
71424         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71425
71426 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71427
71428         * modules/argz: Omit "#include".
71429
71430         * MODULES.html.sh (func_all_modules): Add calloc, to match
71431         2004-06-01 addition of calloc module.
71432
71433 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71434
71435         * m4/argz.m4: New file, which is autoupdated from libtool.
71436
71437 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71440         libtool.
71441
71442 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71443
71444         * config/srclist-update: Don't insist on "USA." before the
71445         close-comment, as libtool omits the period and puts the */ on a
71446         separate line.
71447         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71448         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71449
71450 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71451
71452         * modules/argz: New file.
71453         * MODULES.html.sh (func_all_modules): Add argz.
71454
71455 2004-06-12  Jim Meyering  <jim@meyering.net>
71456         and  Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * modules/hash (Files): Add lib/xalloc.h.
71459         * modules/pipe (Depends-on): Add wait-process.
71460         * modules/stat (Depends-on): Add xalloc.
71461         * modules/userspec (Files): Add lib/userspec.h.
71462         * modules/xstrto
71463
71464         Upgrade from gettext-0.13.
71465         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71466         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71467         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71468
71469 2004-06-10  Jim Meyering  <jim@meyering.net>
71470
71471         * lib/calloc.c: New file.
71472
71473 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71474
71475         * lib/getdate.y (yylex): Allow space between sign and number.
71476         Problem reported by Dan Jacobson.
71477
71478 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71479
71480         Merge from coreutils CVS.
71481
71482         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71483         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71484         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71485         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71486         xstrtol.m4: Fix copyright date and/or serial number.
71487
71488         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71489         See if we need an fchown replacement.
71490         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71491         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71492         and use the replacement function if we detect either defect.
71493
71494         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71495         gl_UTIMECMP.
71496
71497 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71498         and  Jim Meyering  <jim@meyering.net>
71499
71500         Merge from coreutils CVS.
71501
71502         * lib/stat-macros.h: New file, with contents from file-type.h
71503         and coreutils' system.h.
71504         * lib/file-type.c: Include "stat-macros.h".
71505         * lib/file-type.h (file_type): Move all macro definitions to new file,
71506         stat-macros.h.
71507
71508         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71509         Wrap old code with this conditional.
71510         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71511         function that does not dereference symlinks.
71512         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71513
71514         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71515         dependency problems.
71516         (xreadlink): Accept new arg SIZE, for efficiency.
71517         All decls and uses changed.
71518         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71519
71520         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71521         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71522
71523         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71524         sysexits.h.
71525
71526 2004-06-01  Jim Meyering  <jim@meyering.net>
71527
71528         * m4/calloc.m4: New file.
71529
71530 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71533         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71534         Also, fix a typo in a diagnostic.
71535
71536 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71539         or AC_FUNC_REALLOC.
71540
71541 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71542
71543         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71544         macros to be defined.
71545         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71546         the allocator returns NULL because the requested size is zero.
71547
71548 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71551         var.  Add comment explaining why libc still defines it.  This
71552         merges the following patch from glibc:
71553         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71554
71555 2004-05-20  Andreas Schwab  <schwab@suse.de>
71556
71557         * m4/free.m4: Replace free if it not known to work, not the other
71558         way round.
71559
71560 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71561
71562         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71563         present in glibc since revision 1.1 of this file.
71564         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71565         obstack_alignment_mask, obstack_alloc, obstack_base,
71566         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71567         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71568         obstack_grow0, obstack_init, obstack_int_grow,
71569         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71570         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71571         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71572         nonexistent functions.
71573
71574 2004-05-18  Karl Berry  <karl@gnu.org>
71575
71576         * config/srclist.txt: break link for vasnprintf.c.
71577
71578 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71579
71580         Port obstack to the AS/400, where pointers are 16 bytes wide and
71581         you cannot cast an integer to a valid pointer.  This patch is
71582         currently waiting to be integrated into glibc; see
71583         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71584
71585         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71586         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71587         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71588         (struct obstack): temp member is now a union of a pointer and
71589         an integer, instead of an integer.  All integer uses changed.
71590         This does not affect the physical layout of struct obstack,
71591         except on hosts (like the AS/400) where the size or alignment of
71592         void * is greater than that of ptrdiff_t.
71593         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71594         __STDC__)]: Store temporary in pointer member of union, not
71595         integer member.
71596         * lib/obstack.c: Include <stddef.h>, for offsetof.
71597         (struct fooalign): Remove; it doesn't need a name.
71598         (union fooround): Change double to long double, and add void *.
71599         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71600         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71601         not a macro.  Hence the values are always int; so remove all
71602         casts-to-int in uses.
71603
71604 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71607         we can get this patch merged into glibc.
71608
71609 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71610             Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * m4/argp: Depend on alloca.
71613
71614 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71615             Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71618         freecoding.
71619
71620 2004-05-17  Bruno Haible  <bruno@clisp.org>
71621
71622         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71623         precision that consists of a '.' followed by an empty digit string.
71624         Patch by Tor Lillqvist <tml@iki.fi>.
71625
71626 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71629         for backward compatibility with older code.  We need our own
71630         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71631         it under some other name, and our alloca.h will define it.
71632
71633 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71634             Derek Price  <derek@ximbiot.com>
71635
71636         * lib/alloca.c: Include <alloca.h>, to get our interface.
71637         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71638         include <alloca.h> first.  Use C89 prototype for alloca; this
71639         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71640         Use #elif for simplicity, since we can assume C89 now.
71641         Don't try to source the system alloca.h since it will not be found
71642         and to prevent recursively including its replacement.
71643         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71644         * lib/regex.c: Likewise.
71645
71646 2004-05-16  Derek Price  <derek@ximbiot.com>
71647             Paul Eggert  <eggert@cs.ucla.edu>
71648
71649         getline cleanup.  This changes the getndelim2 API: both order of
71650         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71651         no delimiter).
71652
71653         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71654         interface does that.
71655         (getline): Always use getdelim, so that we don't have two
71656         copies of this code.
71657         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71658         if available.
71659         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71660         (GETNDELIM2_MAXIMUM): New macro.
71661         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71662         instead of the old practice of delim2==0.  All callers changed.
71663         Return -1 on overflow, instead of returning junk.
71664         Do not set *linesize unless allocation succeeds.
71665         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71666         that we include sys/types.h.
71667         * lib/getnline.h: Likewise.
71668         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71669         (getndelim2): Reorder arguments.
71670         * lib/getnline.c (getnline, getndelim):
71671         Don't discard the NMAX argument.
71672         (getnline): Invoke getndelim, to avoid code duplication.
71673         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71674         of (size_t) -1 by callers of the getnline family.
71675
71676 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71677
71678         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71679         Check for gettimeofday.
71680         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71681         Check for settimeofday, stime.
71682
71683 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         * lib/nanosleep.c (suspended): Change its type from int to
71686         sig_atomic_t volatile.
71687         (first_call): Make it private to rpl_nanosleep, and have it
71688         be zero initially as that's a bit faster.
71689         (my_usleep): Round up fractional times instead of truncating them,
71690         as this is the usual meaning for 'sleep'.
71691
71692         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71693         doesn't work.
71694         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71695         (ENOSYS): Define if not defined.
71696         (settime): Fall back on stime if it exists and settimeofday fails.
71697         But don't bother with fallbacks if a method fails with errno == EPERM.
71698
71699 2004-05-11  Jim Meyering  <jim@meyering.net>
71700
71701         Prior to this change, the save_cwd caller required read access to the
71702         current directory on most systems (ones with the fchdir function).
71703
71704         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71705         fails, try write-only, and finally, resort to using xgetcwd.
71706
71707 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71708
71709         * lib/obstack.c, obstack.h: Import changes from libc.
71710
71711 2004-04-28  Bruno Haible  <bruno@clisp.org>
71712
71713         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71714         also implicitly appends .exe to executables.
71715         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71716         accepts Windows pathnames.
71717         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71718         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71719         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71720         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71721         Reported by Derek Robert Price <derek@ximbiot.com>.
71722
71723 2004-04-21  Karl Berry  <karl@gnu.org>
71724
71725         * config/srclist.txt (localcharset.c): break sync.
71726
71727 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71728
71729         * m4/host-os.m4: Add a copyright notice.
71730
71731 2004-04-20  Jim Meyering  <jim@meyering.net>
71732
71733         Change UTILS_ to gl_ in AC_DEFINE'd names.
71734         Change utils_- and jm_-prefixed variables, too.
71735         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71736         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71737         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71738
71739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71740         Don't emit trailing blanks.
71741         Also rename jm_-prefixed variables to have gl_ prefix.
71742
71743         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71744         Also rename jm_-prefixed variables to have gl_ prefix.
71745
71746         * m4/jm-macros.m4: Reflect the renamings.
71747         * m4/prereq.m4: Likewise.
71748
71749 2004-04-20  Jim Meyering  <jim@meyering.net>
71750
71751         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71752         memory.
71753
71754 2004-04-20  Jim Meyering  <jim@meyering.net>
71755             Bruno Haible  <bruno@clisp.org>
71756
71757         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71758         memory when realloc fails.
71759
71760 2004-04-19  Jim Meyering  <jim@meyering.net>
71761
71762         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71763         now that readutmp.c may call `free (0)'.
71764
71765 2004-04-19  Bruno Haible  <bruno@clisp.org>
71766
71767         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71768         * m4/inttypes_h.m4: Likewise.
71769         * m4/stdint_h.m4: Likewise.
71770         * m4/intmax_t.m4: Likewise.
71771         * m4/uintmax_t.m4: Likewise.
71772
71773 2004-04-18  Jim Meyering  <jim@meyering.net>
71774
71775         * m4/prereq.m4: Don't forbid jm_ prefix.
71776
71777         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71778         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71779         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71780         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71781         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71782         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71783         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71784         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71785         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71786         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71787         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71788         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71789         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71790         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71791         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71792         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71793         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71794         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71795         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71796
71797 2004-04-18  Jim Meyering  <jim@meyering.net>
71798
71799         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71800         failure, don't leak memory and do call END_UTMP_ENT.
71801
71802 2004-04-16  Jim Meyering  <jim@meyering.net>
71803
71804         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71805         coreutils' stat program.
71806         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71807
71808 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71809
71810         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71811         C89.
71812         (CHAR_BIT): Remove, since we assume C89.
71813         Include <stdint.h> if available, as per current Autoconf CVS advice.
71814
71815 2004-03-31  Jim Meyering  <jim@meyering.net>
71816
71817         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71818         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71819         * m4/xalloc.m4: Likewise.
71820
71821 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71822
71823         Merge from coreutils.
71824
71825         * m4/inttostr.m4: New file.
71826         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71827         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71828         Require gl_CLOCK_TIME.
71829         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71830
71831 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71832
71833         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71834         not bool, to be more consistent with Unix conventions.
71835         Suggested by Bruno Haible.
71836
71837         Merge from coreutils.
71838
71839         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71840         * lib/umaxtostr.c: New files.
71841
71842         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71843         the usual <time.h> dance.
71844         (get_date): Change signature to support fractional time stamps.
71845         All callers changed.
71846         * lib/getdate.y: Include "getdate.h" first, as we can now
71847         assume C89 and don't need to worry about 'const'.
71848         Similarly, include "unlocked-io.h" near start, not in middle.
71849         Include <limits.h>.
71850         (textint.value): Use long int rather than int.
71851         (textint.digits): Use size_t rather than int.
71852         (BILLION, LOG10_BILLION): New constants.
71853         (parser_control): New member rel_ns.  Members day_ordinal,
71854         time_zone, month, day, hour, minutes, rel_year, rel_month,
71855         rel_day, rel_hour, rel_minutes, rel_seconds
71856         are now long int, not int.  Member seconds is now struct timespec,
71857         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71858         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71859         not int.
71860         (%union.intval): Now long int, not int.
71861         New member timespec.
71862         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71863         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71864         (spec): Now is a timespec or an item list.
71865         (timespec, items): New nonterminals.
71866         (time, rel, relunit, number, get_date):
71867         Add support for fractional seconds.
71868         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71869         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71870         (to_hour): First arg is now long int, not int.
71871         (to_year): Returns long int, not int.
71872         Don't treat year -70 like 70.
71873         (tm_diff): Returns long int, not int.
71874         (lookup_word): Use bool instead of int when appropriate.
71875         (yylex): Use size_t for count, not int.
71876         Detect overflow when parsing large integer constants.
71877         Add support for fractions.
71878         (get_date): Make pointers 'const' if possible.
71879         Use more-portable code to detect integer overflow.
71880         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71881         Don't use ctime; it's not reliable if the year has >4 digits.
71882
71883         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71884         This is for compatibility with BSD.
71885
71886         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71887         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71888         From coreutils' system.h.
71889
71890         * lib/userspec.c: Don't include "posixver.h".
71891         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71892         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71893         compatible extension.  Simplify code by removing a boolean int
71894         that was always nonzero if a string was nonnull.
71895
71896 2004-03-30  Jim Meyering  <jim@meyering.net>
71897
71898         Merge from coreutils.
71899
71900         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71901         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71902         on some systems one must include <grp.h> before it.
71903         Reported by Christian Krackowizer.
71904
71905 2004-03-30  Jim Meyering  <jim@meyering.net>
71906
71907         Merge from coreutils.
71908
71909         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71910
71911         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71912         an empty input stream.
71913
71914         * lib/readtokens.c: Include <stdbool.h>.
71915         (readtoken): Use `size_t' rather than int/long.
71916         All callers adjusted.
71917         Use `bool' rather than `int' where appropriate.
71918         Use memset rather than an explicit loop.
71919         Use x2nrealloc rather than xrealloc.
71920         Allow the use of `\0' as a delimiter.
71921         (readtokens): Likewise.
71922         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71923
71924 2004-03-30  Jim Meyering  <jim@meyering.net>
71925
71926         * m4/realloc.m4: Remove file, since now it does no more than
71927         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71928         the `configure.ac' section of module/realloc.
71929         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71930
71931 2004-03-30  Bruno Haible  <bruno@clisp.org>
71932
71933         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71934         nonnull.
71935
71936 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71937
71938         Merge changes to getloadavg.c from coreutils and Emacs.
71939
71940         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71941         Define to an expression, not to the empty string.
71942         Include cloexec.h and xalloc.h.
71943         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71944         Use set_cloexec_flag rather than rolling our own.
71945         * lib/cloexec.c, lib/cloexec.h: New files.
71946
71947 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71948
71949         * m4/cloexec.m4: New file.
71950
71951 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71952
71953         * lib/getopt.h: Sync with libc CVS.
71954
71955 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71956             Bruno Haible  <bruno@clisp.org>
71957
71958         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71959         mbswidth.
71960
71961 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71962             Bruno Haible  <bruno@clisp.org>
71963
71964         * lib/mbswidth.h: Include <wchar.h> only if
71965         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71966         <wchar.h>.
71967         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71968
71969 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71970
71971         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71972         Sync with libc CVS.
71973         * lib/getopt_int.h: New file, also synced from libc.
71974
71975 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71976
71977         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71978         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71979         Bring back getopt.c, getopt.h, getopt1.c.
71980
71981 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71982
71983         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71984         All uses changed.  Check for sa_sigaction member; this fixes
71985         a bug first reported by Jason Andrade in
71986         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71987
71988 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71989
71990         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71991         '#if' expressions.  Unlike the code it replaces, it does not
71992         depend on (defined _SC_PAGESIZE).  However, it does depend on
71993         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71994         first reported by Jason Andrade in
71995         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71996
71997 2004-02-25  Simon Josefsson  <jas@extundo.com>
71998
71999         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72000
72001 2004-02-25  Simon Josefsson  <jas@extundo.com>
72002
72003         * lib/strdup.h: New file.
72004         * lib/strdup.c: Include it.
72005         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72006         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72007
72008 2004-02-23  Karl Berry  <karl@gnu.org>
72009
72010         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72011         (from fencepost.gnu.org:/gd/gnuorg).
72012
72013 2004-02-23  Karl Berry  <karl@gnu.org>
72014
72015         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72016         * config/srclist.txt: add maintain/standards documents.
72017
72018 2004-02-18  Bruno Haible  <bruno@clisp.org>
72019
72020         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72021         Reported by Derek Robert Price <derek@ximbiot.com>.
72022
72023 2004-02-16  Karl Berry  <karl@gnu.org>
72024
72025         * config/mkinstalldirs, install-sh: update from automake.
72026
72027 2004-02-06  Karl Berry  <karl@gnu.org>
72028
72029         * m4/po.m4: update from gettext 0.14.1.
72030
72031 2004-02-06  Karl Berry  <karl@gnu.org>
72032
72033         * lib/config.charset: update from gettext 0.14.1.
72034
72035 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72036
72037         Add comments and code, prompted by suggestions from Bruno Haible
72038         for sh-quote.
72039         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72040         describing the enum quoting_style values.
72041         * lib/quotearg.c (quotearg_alloc): New function.
72042         (quotearg_buffer_restyled): Treat lone { and } as special.
72043         Treat = as special.  Work around bug with older shells
72044         that "see" a '\' that is really the 2nd byte of a multibyte char.
72045         Quote empty string with shell_quoting_style.
72046
72047 2004-02-03  Bruno Haible  <bruno@clisp.org>
72048
72049         * m4/pipe.m4: New file, from GNU gettext.
72050
72051 2004-02-03  Bruno Haible  <bruno@clisp.org>
72052
72053         * lib/pipe.h: New file, from GNU gettext.
72054         * lib/pipe.c: New file, from GNU gettext.
72055
72056 2004-01-27  Bruno Haible  <bruno@clisp.org>
72057
72058         * m4/execute.m4: New file, from GNU gettext.
72059
72060 2004-01-27  Bruno Haible  <bruno@clisp.org>
72061
72062         * lib/execute.h: New file, from GNU gettext.
72063         * lib/execute.c: New file, from GNU gettext.
72064         * lib/w32spawn.h: New file, from GNU gettext.
72065
72066 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72067
72068         Merge from diffutils.
72069
72070         * lib/file-type.c (file_type): Add typed memory objects.
72071         * lib/file-type.h (S_TYPEISTMO): New macro.
72072
72073         * lib/c-stack.h (c_stack_action): Remove argv argument.
72074         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72075         (die): Don't calculate message unless segv_action returns.
72076         (get_stack_location, min_address_from_argv, max_address_from_argv,
72077         volatile stack_base, volatile_stack_size): Remove.
72078         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72079         that every segmentation violation is a stack overflow.  (Ouch!)
72080         See Debian bug 136249 (still outstanding) for more info about why
72081         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72082
72083 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72084
72085         Exit-status fix from coreutils.
72086
72087         Use exit_failure consistently in place of EXIT_FAILURE,
72088         so that program exit statuses are consistent on failure.
72089
72090         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72091         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72092         * lib/argmatch.h: Comment fix to match the above.
72093         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72094         Now a macro referring to exit_failure, instead of a separate
72095         variable.  Include "exitfail.h" to get it.
72096         * lib/xstrtol.h: Include "exitfail.h".
72097         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72098
72099         * lib/long-options.c (parse_long_options): Use prototype
72100         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72101         for clarity.
72102
72103 2004-01-21  Jim Meyering  <jim@meyering.net>
72104
72105         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72106         so as not to conflict with a different-sized __mktime_internal
72107         function in GNU libc.
72108         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72109         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72110
72111 2004-01-20  Karl Berry  <karl@gnu.org>
72112
72113         * config/config.guess: update from config.
72114
72115         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72116
72117 2004-01-20  Bruno Haible  <bruno@clisp.org>
72118
72119         Safer stack allocation.
72120         * lib/setenv.c: Include allocsa.h.
72121         (alloca): Remove fallback definition.
72122         (freea): Remove macro.
72123         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72124         instead of freea.
72125
72126 2004-01-20  Bruno Haible  <bruno@clisp.org>
72127
72128         * m4/eealloc.m4: New file, from GNU gettext.
72129
72130 2004-01-20  Bruno Haible  <bruno@clisp.org>
72131
72132         * m4/allocsa.m4: New file, from GNU gettext.
72133
72134 2004-01-20  Bruno Haible  <bruno@clisp.org>
72135
72136         * lib/xallocsa.h: New file, from GNU gettext.
72137         * lib/xallocsa.c: New file, from GNU gettext.
72138
72139 2004-01-20  Bruno Haible  <bruno@clisp.org>
72140
72141         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72142
72143 2004-01-20  Bruno Haible  <bruno@clisp.org>
72144
72145         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72146         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72147         specially.
72148
72149 2004-01-20  Bruno Haible  <bruno@clisp.org>
72150
72151         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72152         patch.
72153
72154 2004-01-20  Bruno Haible  <bruno@clisp.org>
72155
72156         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72157
72158 2004-01-20  Bruno Haible  <bruno@clisp.org>
72159
72160         * lib/eealloc.h: New file.
72161
72162 2004-01-20  Bruno Haible  <bruno@clisp.org>
72163
72164         * lib/binary-io.h: Avoid warnings on Cygwin.
72165
72166 2004-01-20  Bruno Haible  <bruno@clisp.org>
72167
72168         * lib/allocsa.h: New file, from GNU gettext.
72169         * lib/allocsa.c: New file, from GNU gettext.
72170
72171 2004-01-18  Karl Berry  <karl@gnu.org>
72172
72173         * doc/gpl.texi, doc/lgpl.texi: new files.
72174
72175 2004-01-18  Karl Berry  <karl@gnu.org>
72176
72177         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72178         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72179
72180 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72181
72182         Merge from coreutils.
72183
72184         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72185         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72186         (gl_DEFAULT_POSIX2_VERSION): Move
72187         the documentation from 'configure' into 'config.hin',
72188         so that 'configure --help' isn't burdened by it and
72189         we don't have to worry about its formatting there.
72190         Reword the documentation so that it's more succinct
72191         and can be run together into a single paragraph.
72192         * m4/same.m4 (gl_SAME): Check for pathconf.
72193
72194 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72195
72196         Merge from coreutils.
72197
72198         * lib/posixver.c: Include posixver.h.
72199
72200         * lib/same.c: Include <stdbool.h>, <limits.h>.
72201         (_POSIX_NAME_MAX): Define if not defined.
72202         (MIN): New macro.
72203         (same_name): If file names are silently truncated, report
72204         that the file names are the same if they are the same after
72205         the silent truncation.
72206
72207         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72208         conversion function.
72209         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72210         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72211         longer needed.
72212
72213 2004-01-15  Jim Meyering  <jim@meyering.net>
72214
72215         Merge from coreutils.
72216
72217         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72218         if no library is required.
72219         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72220         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72221         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72222         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72223         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72224         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72225         value, $ac_cv_search_crypt, if it's "none required".
72226         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72227         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72228         not gl_FUNC_GETLOADAVG.
72229         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72230         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72231
72232 2004-01-15  Jim Meyering  <jim@meyering.net>
72233
72234         Merge from coreutils.
72235
72236         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72237         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72238         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72239
72240         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72241         optional configure-time default.
72242
72243         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72244
72245         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72246
72247 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72248
72249         Merge from coreutils.
72250
72251         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72252         value, $ac_cv_search_nanosleep, if it's "none required".
72253
72254 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72255
72256         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72257         with like-named macro in fnmatch.c.
72258         (EXT): Use an internal constant instead.
72259
72260         Merge fnmatch patches from glibc.
72261         * lib/fnmatch.c (mbsinit): Remove define.
72262         Add libc_hidden_ver (__fnmatch, fnmatch).
72263         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72264         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72265
72266 2004-01-14  Karl Berry  <karl@gnu.org>
72267
72268         * config/install-sh: update from automake.
72269
72270 2004-01-13  Karl Berry  <karl@gnu.org>
72271
72272         * config/install-sh: update from automake.
72273
72274 2004-01-09  Karl Berry  <karl@gnu.org>
72275
72276         * config/install-sh: update from automake.
72277
72278 2004-01-05  Karl Berry  <karl@gnu.org>
72279
72280         * config/config.{sub,guess}: update from config.
72281
72282 2003-12-31  Karl Berry  <karl@gnu.org>
72283
72284         * config/depcomp: update from automake.
72285
72286 2003-12-14  Karl Berry  <karl@gnu.org>
72287
72288         * lib/config.charset: update from gettext-runtime.
72289
72290 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72291
72292         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72293         Bug reported by Alfred M. Szmidt.
72294
72295 2003-12-03  Bruno Haible  <bruno@clisp.org>
72296
72297         * m4/gettext.m4: Upgrade from gettext-0.13.
72298         * m4/po.m4: Upgrade from gettext-0.13.
72299         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72300         * m4/intmax.m4: New file, from gettext-0.13.
72301         * m4/printf-posix.m4: New file, from gettext-0.13.
72302
72303 2003-11-29  Karl Berry  <karl@gnu.org>
72304
72305         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72306
72307 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72308             Bruno Haible  <bruno@clisp.org>
72309
72310         * lib/printf-parse.h: Don't include sys/types.h.
72311         (ARG_NONE): New macro.
72312         (char_directive): Change type of *arg_index fields to size_t.
72313         * lib/printf-parse.c: Don't include sys/types.h.
72314         (SSIZE_MAX): Remove macro.
72315         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72316         Remove unnecessary overflow check.
72317         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72318         fields.
72319
72320 2003-11-25  Bruno Haible  <bruno@clisp.org>
72321
72322         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72323
72324 2003-11-25  Bruno Haible  <bruno@clisp.org>
72325
72326         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72327         gt_TYPE_SSIZE_T.
72328
72329 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72330
72331         * modules/alloca: Remove dependency on xalloc.
72332
72333 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72334
72335         * lib/alloca.c: Remove dependency on xalloc module.
72336         (xalloc_die): Remove.
72337         (memory_full) [!defined emacs]: New macro.
72338         [!defined emacs]: Don't include xalloc.h.
72339         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72340         address arithmetic overflows.  Change datatypes a bit to avoid
72341         unnecessary casts.
72342
72343 2003-11-22  Jim Meyering  <jim@meyering.net>
72344
72345         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72346         s/size/size_t/.
72347
72348 2003-11-21  Karl Berry  <karl@gnu.org>
72349
72350         * config/config.{sub,guess}: update from config.
72351
72352 2003-11-18  Karl Berry  <karl@gnu.org>
72353
72354         * config/config.{sub,guess}: update from config.
72355
72356         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72357
72358 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72359
72360         * README: Mention that S+T cannot overflow if S is the size of
72361         an existing object and T is sufficiently small.
72362
72363 2003-11-17  Jim Meyering  <jim@meyering.net>
72364
72365         On systems without utime and without a utimes function capable of
72366         dealing with a NULL struct utimbuf* argument, this utime replacement
72367         could -- in unusual circumstances -- leak a file descriptor.
72368         * lib/utime.c: Include <unistd.h> and <errno.h>.
72369         (utime_null): Be sure to close `fd' and to preserve errno.
72370         Reported by Geoff Collyer via Arnold Robbins.
72371
72372 2003-11-17  Bruno Haible  <bruno@clisp.org>
72373
72374         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72375         (Depends-on): Add xsize.
72376
72377 2003-11-17  Bruno Haible  <bruno@clisp.org>
72378
72379         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72380
72381 2003-11-17  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/vasnprintf.c (alloca): Remove fallback definition.
72384         (freea): Remove definition.
72385         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72386         Reported by Paul Eggert.
72387
72388 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72389             Bruno Haible  <bruno@clisp.org>
72390
72391         Protect against address arithmetic overflow.
72392         * lib/printf-args.h: Include stddef.h.
72393         (arguments): Change type of field 'count' to size_t.
72394         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72395         'unsigned int' where appropriate.
72396         * lib/printf-parse.h: Include sys/types.h.
72397         (char_directive): Change type of *arg_index fields to ssize_t.
72398         (char_directives): Change type of fields 'count', max_*_length to
72399         size_t.
72400         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72401         (SSIZE_MAX): Define fallback value.
72402         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72403         instead of 'int' where appropriate. Check a_allocated, d_allocated
72404         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72405         * lib/vasnprintf.c: Include xsize.h.
72406         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72407         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72408         overflow. Avoid wraparound when converting a width or precision from
72409         decimal to binary.
72410
72411 2003-11-16  Bruno Haible  <bruno@clisp.org>
72412
72413         Update from GNU gettext.
72414         * lib/printf-parse.c: Generalize to it can be compiled for wide
72415         strings.
72416         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72417         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72418         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72419         SNPRINTF): New macros.
72420         Don't include <alloca.h> if the file is used inside libintl.
72421         (local_wcslen): New function, for Solaris 2.5.1.
72422         (VASNPRINTF): Use it instead of wcslen.
72423
72424 2003-11-16  Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/xsize.h (xmax): New function.
72427         (xsum, xsum3, xsum4): Declare as "pure" functions.
72428
72429 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72430
72431         * modules/xalloc (Files): Undo latest change, since xalloc.h
72432         no longer needs SIZE_MAX or PTRDIFF_MAX.
72433
72434 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72435
72436         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72437         gl_PTRDIFF_MAX.
72438
72439 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72440
72441         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72442         "return", to pacify some unknown compiler.  Problem reported
72443         by Joerg Schilling.
72444
72445 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72446
72447         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72448         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72449         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72450         heuristic is just as accurate as far as we know, and it removes a
72451         dependency on size_max.m4 and ptrdiff_max.m4.
72452
72453 2003-11-11  Bruno Haible  <bruno@clisp.org>
72454
72455         * modules/xsize (Files): Add m4/size_max.m4.
72456         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72457
72458 2003-11-11  Bruno Haible  <bruno@clisp.org>
72459
72460         * m4/size_max.m4: New file.
72461         * m4/ptrdiff_max.m4: New file.
72462         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72463         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72464         (gl_XALLOC): Invoke it.
72465
72466 2003-11-11  Bruno Haible  <bruno@clisp.org>
72467
72468         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72469         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72470         defined.
72471
72472 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72473
72474         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72475         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72476         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72477         From Bruno Haible.
72478         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72479         not (size_t) -1, since it's defined here.
72480
72481 2003-11-09  Karl Berry  <karl@gnu.org>
72482
72483         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72484
72485 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72486
72487         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72488         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72489         Reject sizes of exactly SIZE_MAX bytes.
72490         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72491         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72492
72493 2003-11-05  Bruno Haible  <bruno@clisp.org>
72494
72495         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72496         SIZE_MAX defined in <limits.h> on Solaris.
72497
72498 2003-11-04  Jim Meyering  <jim@meyering.net>
72499
72500         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72501         variable names, rather than @VAR@.
72502         * modules/poll: Likewise.
72503
72504 2003-11-04  Bruno Haible  <bruno@clisp.org>
72505
72506         * modules/xsize: New file.
72507         * modules/linebreak: Depend on xsize.
72508         * MODULES.html.sh (func_all_modules): Add xsize.
72509
72510 2003-11-04  Bruno Haible  <bruno@clisp.org>
72511
72512         * m4/xsize.m4: New file.
72513
72514 2003-11-04  Bruno Haible  <bruno@clisp.org>
72515
72516         * lib/xsize.h: New file.
72517         * lib/linebreak.c: Include xsize.h.
72518         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72519         argument for overflow.
72520         Suggested by Paul Eggert.
72521
72522 2003-11-03  Karl Berry  <karl@gnu.org>
72523
72524         * config/config.{guess,sub}: update from config.
72525
72526 2003-11-03  Jim Meyering  <jim@meyering.net>
72527
72528         * modules/userspec (lib_SOURCES): Add userspec.h.
72529         (Include): Add "userspec.h".
72530         Improve description.
72531
72532 2003-11-03  Jim Meyering  <jim@meyering.net>
72533
72534         * lib/userspec.c: Include "userspec.h".
72535         * lib/userspec.h: New file.
72536
72537 2003-11-03  Bruno Haible  <bruno@clisp.org>
72538
72539         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72540
72541 2003-11-03  Bruno Haible  <bruno@clisp.org>
72542
72543         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72544         available, to avoid (extremely rare) race condition.
72545         Suggested by Paul Eggert.
72546
72547 2003-11-02  Karl Berry  <karl@gnu.org>
72548
72549         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72550
72551 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72552
72553         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72554         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72555         (read_filesystem_list): Set and use me_type_malloced.
72556         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72557         whatever the type happens to be), for brevity and consistency.
72558         Check for size calculation overflow on Alphas running OSF/1.
72559
72560 2003-10-31  Jim Meyering  <jim@meyering.net>
72561
72562         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72563
72564         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72565
72566 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72567             Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72570         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72571
72572 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72573
72574         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72575         netbsd*-gnu*.  Suggested by Robert Millan.
72576
72577 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72578
72579         * modules/group-member: Depend on stdbool.
72580
72581 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72582
72583         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72584
72585 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72586
72587         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72588         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72589         after the 'gnu' in these cases.  This fixes some bugs in the
72590         previous change, and is based on suggestions by Robert Millan.
72591
72592 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72593
72594         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72595         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72596         no longer needed.
72597         * lib/quotearg.c (quotearg_n_options): Use it.
72598         * lib/group-member.c: Include <stdbool.h>.
72599         (free_group_info): Arg is now const *; don't free arg.
72600         (get_group_info): Now returns bool and accepts struct group_info *,
72601         rather than returning a malloc'ed struct group_info *.
72602         All uses changed.  Check for overflow in internal size calculation.
72603
72604         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72605         rather than xmalloc/xrealloc.
72606         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72607         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72608         conformance bug: the old code used a pointer after freeing the
72609         storage that it addressed.
72610         * lib/hash.c (hash_initialize): Simplify the code by using
72611         xalloc_oversized rather than doing it by hand.
72612         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72613         the buffer preserved.  Use free and xmalloc instead.
72614         * lib/quotearg.c (quotearg_n_options): Likewise.
72615         Use a simpler test for size overflow.  Don't use xalloc_oversized
72616         because unsigned int might be wider than size_t (!); this suggests
72617         that we should switch from unsigned int to size_t for slot numbers.
72618
72619 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72620
72621         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72622         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72623         NetBSD kernels.  Requested by Richard Stallman.
72624
72625 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72626
72627         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72628         to allocate the returned structure.  Do not allocate a subarray,
72629         as x2nrealloc will do that.
72630         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72631         instead of xnrealloc.
72632         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72633
72634 2003-10-27  Bruno Haible  <bruno@clisp.org>
72635
72636         * lib/stdbool_.h: Better support for BeOS.
72637
72638 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72639
72640         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72641         now uses inline.
72642
72643 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72644
72645         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72646         callers that want to do their own size-overflow checking.  Include
72647         <stdbool.h>, since xalloc_oversized returns bool.
72648         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72649         to use xalloc_oversized.
72650
72651         Add two functions x2realloc, x2nrealloc, for programs that grow
72652         arrays dynamically by doubling their sizes.
72653         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72654         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72655         New functions.
72656
72657         Port to C99 semantics for 'inline' of external functions.
72658         Bug reported by Bruno Haible.
72659         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72660         with the old contents of xnmalloc.
72661         (xnmalloc, xmalloc): Use it.
72662         (xnrealloc_inline): New static inline function,
72663         with the old contents of xnrealloc.
72664         (xnrealloc, xrealloc): Use it.
72665
72666         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72667         that.
72668
72669 2003-10-26  Karl Berry  <karl@gnu.org>
72670
72671         * config/srclist.txt (COPYING.DOC): no longer available from
72672         /gd/gnuorg; don't know where the ultimate source is.
72673
72674 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72675
72676         Fix several address-calculation bugs in the hash modules,
72677         plus some minor code cleanup.
72678
72679         * lib/hash.h: Include <stdbool.h>, for bool.
72680         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72681         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72682         hash_get_n_entries, hash_get_max_bucket_length,
72683         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72684         hash_rehash): Use size_t rather than unsigned.
72685         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72686         hash_get_n_buckets_used, hash_get_n_entries,
72687         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72688         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72689         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72690         Likewise.
72691         (SIZE_MAX): Define if not defined.
72692         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72693         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72694         hash_print):
72695         Use const * when possible.
72696         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72697         (check_tuning): Fix bug: if tuning parameters were very close to
72698         0 or 1, rounding errors could have caused subscript violations.
72699         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72700         (hash_initialize): Add 'fail:' label
72701         to free table and return NULL, and use it to simplify code.
72702         Use calloc rather than clearing the storage ourself.
72703         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72704         buffer size calculations.
72705         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72706         Include <stddef.h>, for size_t.
72707         * lib/hash-pjw.c (hash_pjw): Likewise.
72708         Switch to method described by Bruno Haible.
72709         Include <limits.h>, for CHAR_BIT.
72710         (SIZE_BITS): New macro.
72711
72712 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72713
72714         * m4/getline.m4 (AM_FUNC_GETLINE):
72715         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72716         hosts.  Problem reported by Derek Robert Price in
72717         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72718         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72719         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72720
72721 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72722
72723         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72724         ceiling the allocation at NMAX bytes rather than silently
72725         discarding input bytes before NMAX is reached.  This makes
72726         a difference only if NMAX exceeds SIZE_MAX / 2.
72727
72728         * lib/obstack.c: Merge from glibc.
72729         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72730         Add libc_hidden_def (_obstack_newchunk).
72731         (_obstack_free) [! defined _LIBC]: Remove.
72732         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72733         a clone of the function body.
72734         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72735         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72736
72737         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72738         glibc.
72739         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72740         arg to memcpy.
72741
72742         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72743         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72744         Don't use lvalue casts, as GCC plans to remove support for them
72745         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72746         was also present in the non-GCC version, indicating that this
72747         code had always been buggy and had never been widely used.
72748         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72749         Use the fast variant of each macro, rather than copying the
72750         definiens of the fast variant; that way, we'll be more likely to
72751         catch future bugs in the fast variants.
72752
72753 2003-10-20  Bruno Haible  <bruno@clisp.org>
72754
72755         * modules/wait-process: New file.
72756         * MODULES.html.sh (func_all_modules): Add wait-process.
72757
72758 2003-10-20  Bruno Haible  <bruno@clisp.org>
72759
72760         * m4/wait-process.m4: New file.
72761
72762 2003-10-20  Bruno Haible  <bruno@clisp.org>
72763
72764         * lib/wait-process.h: New file, from GNU gettext.
72765         * lib/wait-process.c: New file, from GNU gettext.
72766
72767 2003-10-19  Jim Meyering  <jim@meyering.net>
72768
72769         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72770         HPUX 10.20.
72771
72772 2003-10-18  Karl Berry  <karl@gnu.org>
72773
72774         * config/config.guess: update from config.
72775
72776 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72777
72778         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72779         (getgroups): First arg is int, not size_t.
72780         Don't let 'free' mangle errno.
72781
72782 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72783
72784         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72785
72786 2003-10-16  Karl Berry  <karl@gnu.org>
72787
72788         * config/config.{guess,sub}: update from config.
72789
72790 2003-10-16  Jim Meyering  <jim@meyering.net>
72791
72792         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72793         memcpy.
72794
72795 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72796
72797         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72798         (SIZE_MAX): Remove.
72799         (new_exclude, add_exclude_file): Initial size no longer needs to
72800         be a power of 2.
72801         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72802         our own address arithmetic overflow checking.
72803
72804         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72805         (fnmatch): Do not alloca more than 2000 wide characters;
72806         instead, use malloc for large buffers.
72807         Check for address arithmetic overflow, and return -1
72808         with errno set to ENOMEM in that case.
72809         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72810         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72811         instead, return -1.  Check for address arithmetic overflow.
72812
72813 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72814
72815         Handle invalid suffixes and overflow independently, so that
72816         callers can treat them independently as needed.  Fix some bugs in
72817         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72818         suffix for a human-readable blocksize.  The major caller-visible
72819         change is the addition of a new
72820         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72821         that both overflow and suffix chars were found.
72822
72823         * lib/human.c (humblock): Don't check separately for invalid suffix
72824         char; that is xstrtoumax's job (now that its bug is fixed).
72825         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72826         INTMAX_MAX]: New macros.
72827         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72828         TYPE_MAXIMUM): New macros.
72829         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72830         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72831         if overflow occurs, as it's what __strtol does and it's more useful
72832         in practice.
72833         (__xstrtol): If __strtol reports some error other than ERANGE,
72834         reflect it to the caller as LONGINT_INVALID.  If it reports
72835         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72836         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72837         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72838         value.
72839         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72840         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72841         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72842         [defined UINTMAX_MAX]: New macros.
72843
72844 2003-10-14  Bruno Haible  <bruno@clisp.org>
72845
72846         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72847
72848 2003-10-14  Bruno Haible  <bruno@clisp.org>
72849
72850         * m4/sig_atomic_t: New file, from GNU gettext.
72851         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72852
72853 2003-10-14  Bruno Haible  <bruno@clisp.org>
72854
72855         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72856         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72857         Also use volatile where needed.
72858
72859 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72860
72861         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72862         Change maintainer from Bruno Haible to 'all'.
72863
72864 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72865
72866         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72867
72868 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72869
72870         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72871         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72872         and define in terms of the other primitives.
72873         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72874         (SIZE_MAX): Define if not already defined.
72875         (array_size_overflow): New function.
72876         (xalloc_die): Abort instead of exiting if 'error' returns.
72877         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72878         (xmalloc, xrealloc): Use them.
72879         (xcalloc): Check for address arithmetic overflow.
72880         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72881         a bit faster than strcpy.
72882
72883 2003-10-10  Simon Josefsson  <jas@extundo.com>
72884
72885         * modules/argp (Depends-on): Add restrict and strcase.
72886
72887 2003-10-10  Simon Josefsson  <jas@extundo.com>
72888
72889         * m4/argp.m4: Add AC_C_INLINE.
72890
72891 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72892
72893         Merge getpass from libc, plus a few fixes.
72894
72895         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72896         Include <stdbool.h>.
72897         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72898         __fsetlocking to empty.
72899         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72900         do include <bits/libc-lock.h>.
72901         Do not include <fcntl.h>; not needed.
72902         [_LIBC]: Include <wchar.h>.
72903         (NOTCANCEL_MODE): New macro.
72904         (flockfile, funlockfile) [_LIBC]: New macros.
72905         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72906         [!_LIBC]: New macros.
72907         (call_fclose): New function.
72908         (getpass): Use it.  Save tty stream separately; this simplifies the
72909         code and makes it more reliable if stdin happens to equal stdout.
72910         Invoke __fsetlocking on tty.
72911         Handle thread cancellation if needed.
72912         Namespace cleanup (use __tcgetattr, __getline).
72913         Use bool for Booleans.
72914         [USE_IN_LIBIO]: Handle wide streams.
72915         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72916         stream might go where.
72917
72918         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72919         doesn't have to include <stdio.h> before us.
72920         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72921         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72922         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72923         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72924         if not declared, so that we can use getpass.c code from libc without
72925         rewriting it.
72926         (flockfile, ftrylockfile, funlockfile): New macros.
72927
72928 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72929
72930         * modules/getpass: Depend on stdbool.
72931
72932 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72933
72934         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72935
72936 2003-10-07  Karl Berry  <karl@gnu.org>
72937
72938         * config/config.{guess,sub}: update from config.
72939
72940 2003-10-06  Jim Meyering  <jim@meyering.net>
72941             Bruno Haible  <bruno@clisp.org>
72942
72943         This lets translators provide better translations for the
72944         "Written by ..." part of --version output.
72945         * lib/version-etc.h: Include stdarg.h.
72946         (version_etc_copyright): Declare as readonly.
72947         (version_etc): Make this function variadic with a NULL-terminated list
72948         of author name strings.
72949         (version_etc_va): New declaration.
72950         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72951         (version_etc_copyright): Declare as readonly.
72952         (version_etc_va): New function. Provide a different translatable string
72953         for each possible number of authors < 10. Abbreviate when there are 10
72954         authors or more.
72955         (version_etc): Make this function variadic. Call version_etc_va.
72956         Suggestion from Gary V. Vaughan.
72957
72958         * lib/long-options.h (parse_long_options): Change prototype: the
72959         authors string is moved to the end and becomes variadic.
72960         * lib/long-options.c: Include stdarg.h.
72961         (parse_long_options): Make this function variadic, too.
72962         Call version_etc_va, not version_etc.
72963
72964 2003-10-06  Bruno Haible  <bruno@clisp.org>
72965
72966         * modules/version-etc-2: Remove file.
72967         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72968
72969 2003-10-06  Bruno Haible  <bruno@clisp.org>
72970
72971         * modules/fatal-signal: New file.
72972         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72973
72974 2003-10-06  Bruno Haible  <bruno@clisp.org>
72975
72976         * m4/fatal-signal.m4: New file.
72977         * m4/signalblocking.m4: New file, from GNU gettext.
72978
72979 2003-10-06  Bruno Haible  <bruno@clisp.org>
72980
72981         * lib/version-etc-2.h: Remove file.
72982         * lib/version-etc-2.c: Remove file.
72983
72984 2003-10-06  Bruno Haible  <bruno@clisp.org>
72985
72986         * lib/fatal-signal.h: New file, from GNU gettext.
72987         * lib/fatal-signal.c: New file, from GNU gettext.
72988
72989 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72990
72991         * README: Rework advice for preventing empty .o files.
72992         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72993         not <sys/types.h>.
72994
72995 2003-10-04  Karl Berry  <karl@gnu.org>
72996
72997         * lib/argp*: update from libc.
72998
72999 2003-10-04  Karl Berry  <karl@gnu.org>
73000
73001         * config/config.{guess,sub}: update from config.
73002
73003 2003-10-02  Bruno Haible  <bruno@clisp.org>
73004
73005         * modules/lchown (Include): Add lchown.h.
73006         * modules/time_r (Include): Use "..." syntax.
73007         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73008
73009 2003-10-01  Simon Josefsson  <jas@extundo.com>
73010
73011         * MODULES.html.sh (func_all_modules): Move gethostname from section
73012         'based on' to section 'lacking' POSIX:2001.
73013
73014 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73015
73016         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73017         to output mode on the same stream.
73018
73019 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73020
73021         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73022         Fix arg typo in previous patch.
73023
73024 2003-09-28  Jim Meyering  <jim@meyering.net>
73025
73026         * lib/error.c: Correct cpp indentation.
73027
73028 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73029
73030         * modules/free: New file.
73031
73032 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73033
73034         * m4/free.m4: New file.
73035
73036 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73037
73038         * lib/minmax.h (MIN, MAX)
73039         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73040         Omit the special code that used __typeof__, since we worry that
73041         it could be more trouble than it's worth.  See:
73042         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73043         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73044
73045         * lib/free.c: New file.
73046
73047 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73048
73049         Trivial fixes to Makefile.am parts of module listings.
73050         * modules/strstr: Append strstr.h to lib_SOURCES.
73051         * modules/strcase: Likewise, for strcase.h.
73052
73053 2003-09-27  Karl Berry  <karl@gnu.org>
73054
73055         * config/mkinstalldirs: update from automake.
73056
73057 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73058
73059         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73060         (error_tail): Do not loop, reallocating temporary buffer, since
73061         the output cannot contain more wide characters than the input
73062         contains bytes, the size must be big enough already.  This avoids
73063         one potential size overflow calculation.  Check for size overflow
73064         when calculating temporary buffer size.  Free temporary buffer
73065         when done, if it was allocated with malloc; this plugs a memory
73066         leak.  Remove casts from void * to pointers, that are no longer
73067         needed now that we're assuming C89 or better.
73068
73069         Merge error changes from glibc.
73070
73071         * lib/error.c, error.h: Update copyright notice header to match glibc.
73072         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73073         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73074         Disable cancellation while printing error.
73075         * lib/error.h: Prepend __ to parameter names.
73076
73077 2003-09-26  Jim Meyering  <jim@meyering.net>
73078
73079         * lib/error.c (error_tail): Move some declarations
73080         into inner scope where the local variables are used.
73081
73082 2003-09-26  Bruno Haible  <bruno@clisp.org>
73083
73084         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73085         stpncpy().
73086         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73087
73088 2003-09-26  Bruno Haible  <bruno@clisp.org>
73089
73090         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73091         (stpncpy): Define as alias for gnu_stpncpy.
73092         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73093
73094 2003-09-25  Simon Josefsson  <jas@extundo.com>
73095
73096         * lib/xgetdomainname.h: New file.
73097         * lib/xgetdomainname.c: New file.
73098
73099 2003-09-25  Simon Josefsson  <jas@extundo.com>
73100             Bruno Haible  <bruno@clisp.org>
73101
73102         * modules/getdomainname: New file.
73103         * modules/xgetdomainname: New file.
73104         * MODULES.html.sh (func_all_modules): Add getdomainname,
73105         xgetdomainname.
73106
73107 2003-09-25  Simon Josefsson  <jas@extundo.com>
73108             Bruno Haible  <bruno@clisp.org>
73109
73110         * m4/getdomainname.m4: New file.
73111
73112 2003-09-25  Simon Josefsson  <jas@extundo.com>
73113             Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/getdomainname.h: New file.
73116         * lib/getdomainname.c: New file.
73117
73118 2003-09-25  Karl Berry  <karl@gnu.org>
73119
73120         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73121
73122 2003-09-25  Karl Berry  <karl@gnu.org>
73123
73124         * config/install-sh: update from automake.
73125
73126 2003-09-25  Bruno Haible  <bruno@clisp.org>
73127
73128         * modules/version-etc-2: New file, from modules/version-etc with
73129         modifications.
73130         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73131
73132 2003-09-25  Bruno Haible  <bruno@clisp.org>
73133
73134         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73135         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73136
73137 2003-09-24  Simon Josefsson  <jas@extundo.com>
73138
73139         * modules/xgethostname: Add xgethostname.h.
73140
73141 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73142
73143         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73144         the buffer associated with the argument.  Bug reported by
73145         Simon Josefsson.
73146
73147 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73148
73149         * README: Document assumptions that 'int' is at least 32 bits
73150         wide, that integer arithmetic is 2's complement without overflow,
73151         that there are no holes in integer values, that adding sizes of
73152         two nonoverlapping objects can't overflow, and that all-bits-zero
73153         yields scalar zero.  Fix spelling and capitalization typos.
73154
73155 2003-09-19  Karl Berry  <karl@gnu.org>
73156
73157         * lib/argp.h: update from libc.
73158
73159 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73160
73161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73162         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73163         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73164
73165 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73166
73167         * gnulib-tool: Use "test -h", not "test -L", for portability
73168         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73169         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73170         (sed_extract_prog): Issue s commands one-by-one, rather than
73171         using \| in one s command.
73172
73173 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73174
73175         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73176         input error, instead of returning NULL the next time we are called
73177         (and therefore losing track of errno).
73178
73179 2003-09-16  Bruno Haible  <bruno@clisp.org>
73180
73181         * gnulib-tool (func_create_testdir): Warn about duplicated
73182         dependencies.
73183
73184 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73185
73186         * modules/argmatch, modules/fatal, modules/obstack,
73187         modules/xalloc, modules/xgethostname: Sort dependencies by
73188         importance, not alphabetically.
73189
73190 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73191
73192         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73193         fails, so that the caller gets the proper errno.
73194
73195         * lib/readutmp.c (read_utmp): Likewise.
73196         Check for fstat error.  Close stream and free storage
73197         when failing.
73198
73199 2003-09-14  Karl Berry  <karl@gnu.org>
73200
73201         * config/srclist.txt (strdup.c): disable for c89 changes.
73202
73203 2003-09-14  Jim Meyering  <jim@meyering.net>
73204
73205         * lib/getloadavg.c: Correct cpp indentation.
73206         * lib/strdup.c: Likewise.
73207         * lib/vasnprintf.c: Likewise.
73208
73209 2003-09-14  Bruno Haible  <bruno@clisp.org>
73210
73211         * modules/fwriteerror: New file.
73212         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73213
73214 2003-09-14  Bruno Haible  <bruno@clisp.org>
73215
73216         * lib/fwriteerror.h: New file.
73217         * lib/fwriteerror.c: New file.
73218
73219 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73220
73221         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73222         modules/xgethostname, modules/xalloc: Depend on exit.
73223
73224 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73225
73226         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73227
73228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73229         and AC_MINIX, too, so that their extensions are available.
73230
73231         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73232         This macro has been superseded by gl_BACKUPFILE.
73233
73234         More patches to assume C89 or better.
73235
73236         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73237
73238         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73239         unconditionally.
73240         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73241         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73242         Include <string.h>, <stdlib.h> unconditionally.
73243         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73244         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73245         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73246         headers or for string.h.
73247         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73248         or strtoul.
73249
73250         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73251         headers.
73252         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73253         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73254         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73255         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73256         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73257         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73258         memcpy, memset.
73259         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73260         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73261         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73262         strtol.
73263         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73264         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73265         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73266         strtoul.
73267
73268 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73269
73270         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73271         * lib/obstack.c [!defined _LIBC]: Likewise.
73272         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73273         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73274         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73275
73276         More changes to assume C89 or better.
73277
73278         * lib/error.c (error_tail): Assume vprintf.
73279
73280         * lib/argmatch.c (getenv): Remove decl.
73281         * lib/progreloc.c (get_full_program_name): Define via prototype.
73282         * lib/setenv.c (clearenv): Likewise.
73283         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73284         needed.
73285         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73286         (malloc, memcpy): Remove decls.
73287         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73288         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73289         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73290         (memcpy): Remove macro.
73291         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73292         (__P): Remove.  All uses removed.
73293         (PTR): Remove.  All uses changed to void *.
73294         (CHAR_BIT, NULL): Remove.
73295         (spaces, zeros, memset_space, memset_zero)
73296         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73297         Remove.
73298         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73299         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73300         Define with prototype.
73301         Remove now-unnecessary prototype decl.
73302         (extra_args_spec): Assume ANSI C.  All uses changed.
73303         (extra_args_spec_iso): Remove.
73304         (my_strftime, emacs_strftimeu): Define via prototype.
73305         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73306         unconditionally.
73307         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73308         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73309         (strtoul, strtol): Remove decls.
73310         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73311         LONG_MAX): Remove.
73312         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73313         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73314         (LOCALE_PARAM_PROTO): New macro.
73315         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73316         (INTERNAL (strtol), strtol): Define with a prototype.
73317         (PARAMS): Remove.  All uses removed.
73318         * lib/tempname.c: Include <string.h> unconditionally.
73319         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73320         * lib/xgethostname.c (main): Define with a prototype.
73321         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73322         Include <stdlib.h> unconditionally.
73323         (calloc, malloc, realloc, free): Remove decls.
73324         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73325         Include <stdlib.h> unconditionally.  Sort include file names.
73326         (strtod): Remove.
73327         (xstrtod): Define with a prototype.
73328         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73329         (strtol, strtoul): Remove decls.
73330
73331 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73332
73333         More patches to assume C89 or better.
73334         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73335         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73336         string.h, memchr, STDC_HEADERS.
73337
73338 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73339
73340         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73341         Include <stdlib.h>, <string.h> unconditionally.
73342         Remove now-unnecessary cast to char *.
73343         * lib/strnlen.c: Include <string.h> unconditionally.
73344         * lib/yesno.c (yesno): Define with a prototype.
73345
73346 2003-09-11  Bruno Haible  <bruno@clisp.org>
73347
73348         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73349
73350 2003-09-10  Jim Meyering  <jim@meyering.net>
73351
73352         * lib/error.c: Correct indentation of cpp directives.
73353
73354 2003-09-10  Bruno Haible  <bruno@clisp.org>
73355
73356         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73357         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73358         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73359         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73360         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73361         <stdlib.h> and <string.h> checks.
73362         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73363         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73364
73365 2003-09-10  Bruno Haible  <bruno@clisp.org>
73366
73367         * lib/strcspn.c: Include <string.h> unconditionally.
73368         * lib/strpbrk.c: Include <string.h> unconditionally.
73369         * lib/strstr.c: Include <string.h> unconditionally.
73370         * lib/unicodeio.c: Include <string.h> unconditionally.
73371         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73372         * lib/unsetenv.c: Likewise.
73373         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73374         * lib/yesno.c: Include <stdlib.h> unconditionally.
73375         (rpmatch): Add prototype.
73376
73377 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73378
73379         More patches to assume C89 or better.
73380         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73381         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73382         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73383         or for string.h.
73384         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73385         stdlib.h.
73386         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73387         C headers.
73388         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73389         string.h.
73390         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73391         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73392         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73393         or for string.h.
73394         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73395         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73396         C headers.
73397         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73398         memcpy.
73399         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73400         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73401         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73402         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73403         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73404         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73405         string.h, free.
73406         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73407         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73408         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73409         C headers, or for string.h.
73410         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73411         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73412         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73413         headers, memory.h, stdlib.h, string.h, strings.h.
73414         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73415         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73416         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73417         strchr.
73418         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73419         headers, memory.h, string.h.
73420         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73421         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73422         free.
73423         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73424         headers.
73425         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73426         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73427         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73428         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73429         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73430
73431 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73432
73433         More K&R removal.
73434
73435         * lib/acosl.c (main): Use a prototype.
73436         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73437         tanl.c: Likewise.
73438
73439         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73440
73441         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73442         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73443         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73444         with a prototype.
73445         * lib/getopt.c (const): Remove macro.
73446         Include <string.h> unconditionally.
73447         (my_index): Remove; all uses changed to strchr.
73448         (strlen): Remove decl.
73449         (exchange): Remove forward decl; no longer needed.
73450         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73451         Define with prototype.
73452         * lib/getopt1.c (const): Remove macro.
73453         (getopt_long, getopt_long_only, main): Define with prototype.
73454
73455         * lib/getugroups.c: Include <string.h> unconditionally.
73456
73457         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73458         (getusershell, setusershell, endusershell, readname, main):
73459         Define with prototypes.
73460
73461         * lib/group-member.c: Include group-member.h first.
73462         Include <stdlib.h> unconditionally.
73463
73464         * lib/hard-locale.c: Include hard-locale.h first.
73465         Include <stdlib.h>, <string.h> unconditionally.
73466
73467         * lib/hash.c (free, malloc): Remove decls.
73468         Include <stdlib.h> unconditionally.
73469
73470         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73471         (getenv): Do not declare.
73472
73473         * lib/idcache.c: Include <string.h> unconditionally.
73474
73475         * lib/long-options.c: Include long-options.h first, to test interface.
73476         Include <stdlib.h> unconditionally.
73477
73478         * lib/makepath.c: Include makepath.h first, to test interface.
73479         Include <stdlib.h> and <string.h> unconditionally.
73480
73481         * lib/linebuffer.c: Include <stdlib.h>.
73482         (free): Remove decl.
73483
73484         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73485         stddef.h. rpl_malloc returns void *, not char *.
73486         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73487         prototype.
73488
73489         * lib/md5.h: Include <limits.h> unconditionally.
73490         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73491         (__P): Remove; all uses removed.
73492         * lib/md5.c: Include "md5.h" first.
73493         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73494         md5_buffer, md5_process_bytes, md5_process_block):
73495         Define with prototypes.
73496         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73497         * lib/sha.c: Include "sha.h" first.
73498         Include <stdlib.h>, <string.h> unconditionally.
73499
73500         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73501         * lib/memcmp.c (__ptr_t): Likewise.
73502         * lib/memrchr.c (__ptr_t): Likewise.
73503         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73504         Include <string.h> unconditionally.
73505         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73506         * lib/memchr.c: Include <stdlib.h> unconditionally.
73507         * lib/memchr.c (LONG_MAX): Remove.
73508         * lib/memrchr.c (LONG_MAX): Likewise.
73509         * lib/memchr.c (__memchr): Define via a prototype.
73510         * lib/memrchr.c (__memrchr): Likewise.
73511         * lib/memcmp.c (__P): Remove, and remove all uses.
73512         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73513         Remove forward decls; no longer needed.
73514         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73515         Use types required by C89 in prototype.
73516
73517         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73518         * lib/savedir.c: Likewise.
73519         * lib/mkdir.c (free): Remove decl.
73520         * lib/rmdir.c (rmdir): Define with a prototype.
73521         * lib/savedir.c: Include savedir.h first, to test interface.
73522
73523         * lib/mktime.c (STDC_HEADERS): Remove.
73524         Include <stdlib.h>, <string.h> unconditionally.
73525
73526         * lib/modechange.c: Include <stdlib.h> unconditionally.
73527         (malloc): Remove decl.
73528
73529         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73530         (free): Remove decl.
73531
73532         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73533         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73534         (This type really should be intptr_t, but that's a C99ism.)
73535         (_obstack_memcpy): Remove: all uses changed to memcpy.
73536         Include <string.h> unconditionally.
73537         (struct obstack): Assume __STDC__ for types of members
73538         chunkfun, freefun, extra_arg.
73539         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73540         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73541         obstack_begin, obstack_specify_allocation,
73542         obstack_specify_allocation_with_arg, obstack_chunkfun,
73543         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73544         Remove unprototyped decls and the macros that use them.
73545         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73546         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73547         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73548         (defined __STDC__ && __STDC__)]:
73549         Remove nonprototyped code.
73550         Include <stdlib.h> unconditionally.
73551         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73552         _obstack_allocated_p, _obstack_free, obstack_free,
73553         _obstack_memory_used, print_and_abort):
73554         Define using prototypes.
73555         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73556         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73557         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73558         obstack_next_free, obstack_object_size, obstack_room) [0]:
73559         Remove unused, unprototyped code.
73560
73561         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73562
73563         * lib/physmem.c (physmem_total, physmem_available, main): Define
73564         with prototypes.
73565
73566         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73567         (main): Define with a prototype.
73568
73569         * lib/posixver.c (getenv): Remove decl.
73570
73571         * lib/putenv.c (malloc): Returns void *, not char *.
73572         Include <string.h> unconditionally.
73573         (strchr, memcpy, NULL): Do not define.
73574
73575         * lib/readtokens.c: Include readtokens.h first, to test interface.
73576         Include <stdlib.h>, <string.h> unconditionally.
73577         (init_tokenbuffer): Define with a prototype.
73578
73579         * lib/regex.c (PARAMS): Remove.  All uses removed.
73580         All uses of _RE_ARGS removed, too.
73581         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73582         unconditionally.
73583         (bzero): Assume memset exists.
73584         (memcmp, memcpy, NULL): Remove.
73585         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73586         char, or assignments to local vars of type signed char.
73587         (init_syntax_once, PREFIX(extract_number_and_incr),
73588         PREFIX(print_partial_compiled_pattern),
73589         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73590         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73591         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73592         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73593         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73594         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73595         wcs_compile_range, byte_compile_range, truncate_wchar,
73596         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73597         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73598         count_mbs_length, wcs_re_match_2_internal,
73599         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73600         PREFIX(alt_match_null_string_p),
73601         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73602         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73603         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73604         now-unnecessary declaration, if any.
73605         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73606         regcomp, regexec):
73607         Remove now-unnecessary casts among pointer types.
73608         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73609
73610         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73611         (free): Remove decl.
73612
73613         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73614
73615         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73616         (free): Remove decl.
73617
73618         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73619         * lib/xgetcwd.c: Likewise.
73620
73621         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73622         (free): Remove decl.
73623
73624         * lib/strchrnul.c (strchrnul): Define with a prototype.
73625         Fix bug: c_in was not converted to char before searching.
73626
73627         The following changes are not K&R related:
73628
73629         * lib/group-member.h: Include <sys/types.h>, so that this file is
73630         self-contained.
73631         * lib/makepath.h: Likewise.
73632
73633         * lib/getusershell.c (readname, default_index, line_size, readname):
73634         Use size_t, not int, for sizes.
73635         (readname): If the size overflows, report an error instead of
73636         looping forever.
73637
73638 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73639
73640         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73641         libc.
73642
73643 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73644
73645         * README: New section: portability guidelines.
73646
73647 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73648
73649         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73650         C89 spec.
73651
73652 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73653
73654         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73655
73656 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73657
73658         Assume C89 or better; remove K&R cruft.
73659         A few of these changes were first proposed by Derek Robert Price
73660         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73661
73662         * lib/addext.c: Include <string.h> unconditionally.
73663         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73664         Don't declare getenv or malloc.
73665
73666         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73667         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73668         (NULL): Remove.
73669         (find_stack_direction, alloca): Use prototypes.
73670
73671         * lib/atexit.c (atexit): Define using a prototype.
73672
73673         * lib/basename.c, dirname.c, stripslash.c:
73674         Include <string.h> unconditionally.
73675
73676         * lib/bcopy.c: Include <stddef.h>.
73677         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73678
73679         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73680
73681         * lib/error.h (error, error_at_line, error_print_progname)
73682         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73683         * lib/error.c: Include error.h first, to check interface.
73684         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73685         (VA_START): Remove; all uses changeed to va_start.
73686         (exit, strerror): Remove decls.
73687         (error_print_progname): Prototype uncondionally.
73688         Don't include <errno.h>; no longer needed.
73689         (private_strerror): Remove.
73690         (error_tail): Always define.
73691         (error, error_at_line): Assume C89 or better; always use prototypes.
73692         * lib/fatal.c: Include "fatal.h" first, to test interface.
73693         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73694         (VA_START): Remove; all uses changed to va_start.
73695         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73696         this case.
73697         (exit): Remove decl.
73698         (fatal): Prototype unconditionally.  Assume va_start works.
73699         Abort at end, to pacify gcc.
73700
73701         * lib/euidaccess.c (main): Define with a prototype.
73702
73703         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73704
73705         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73706
73707         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73708         prototypes.
73709         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73710         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73711         (getenv): Remove decl.
73712         (fnmatch): Define using a prototype.
73713         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73714         (FCT): Define using a prototype.
73715
73716         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73717
73718         * lib/gethostname.c: Include <stddef.h>.
73719         (gethostname): Define with prototype.  Length is size_t, not int.
73720
73721 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73722
73723         Assume C89 or better; remove K&R cruft.
73724         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73725         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73726         string.h, getenv, malloc.
73727         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73728         headers.
73729         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73730         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73731         do not check for strerror.
73732         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73733         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73734         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73735         do not check for doprnt or vprintf.
73736         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73737         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73738
73739 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73740
73741         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73742         getversion.c should have been removed then, but was accidentally
73743         preserved.
73744
73745         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73746         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73747
73748 2003-09-08  Karl Berry  <karl@gnu.org>
73749
73750         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73751                 config, forget about prep.
73752
73753         * config/depcomp, missing: update from automake.
73754
73755 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73756
73757         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73758         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73759
73760 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73761
73762         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73763         copy_tm_result.  Bug reported by Simon Josefsson in
73764         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73765
73766 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73767
73768         * m4/time_r.m4: New file.
73769         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73770         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73771         is. Check for timegm declaration.
73772         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73773         Do not check for gmtime_r.
73774         Replace mktime if __mktime_internal does not exist and if mktime
73775         hasn't been replaced already.
73776
73777 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73778
73779         * lib/time_r.c, lib/time_r.h: New files.
73780
73781         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73782         __localtime_r.
73783         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73784         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73785
73786         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73787         __gmtime_r.
73788         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73789         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73790         Include <time_r.h>.
73791
73792         * lib/timegm.c: Switch to glibc implementation, with the following
73793         changes:
73794         [defined HAVE_CONFIG_H]: Include <config.h>.
73795         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73796         (__mktime_internal) [!defined _LIBC]: New decl.
73797         (__gmtime_r) [!defined _LIBC]: New macro and function.
73798         (timegm): Use a prototype, since gnulib assumes C89.
73799         Do not bother declaring tmp to be const, as it's not really usefu.
73800         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73801         (timegm): Declare only if HAVE_DECL_TIMEGM.
73802
73803 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73804
73805         * MODULES.html.sh (func_all_modules): Add time_r.
73806         * modules/time_r: New file.
73807         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73808         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73809
73810 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73811
73812         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73813         Bug reported by Lute Kamstra in
73814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73815
73816         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73817         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73818         course with correspondingly smaller numbers for tomorrow and
73819         yesterday.  From Tadayoshi Funaba.  Originally installed into
73820         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73821         coreutils merge?).
73822
73823 2003-08-31  Simon Josefsson  <jas@extundo.com>
73824
73825         * modules/timegm: New file.
73826         * MODULES.html.sh (func_all_modules): Add timegm.
73827
73828 2003-08-31  Simon Josefsson  <jas@extundo.com>
73829
73830         * m4/timegm.m4: New file.
73831
73832 2003-08-31  Simon Josefsson  <jas@extundo.com>
73833
73834         * lib/timegm.h: New file.
73835         * lib/timegm.c: New file.  Based on
73836         wget-1.8.2/src/http.c:mktime_from_utc.
73837
73838 2003-08-31  Karl Berry  <karl@gnu.org>
73839
73840         * lib/argp.h: update from libc.
73841
73842 2003-08-28  Bruno Haible  <bruno@clisp.org>
73843
73844         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73845         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73846         followed by '#define fnmatch fnmatch_posix' gives an error.
73847
73848 2003-08-28  Bruno Haible  <bruno@clisp.org>
73849
73850         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73851         warning on QNX, which defines O_BINARY to 000000.
73852
73853 2003-08-27  Jim Meyering  <jim@meyering.net>
73854
73855         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73856         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73857         would fail after 32.  Reported by Danny Levinson.  Details here:
73858         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73859
73860 2003-08-24  Bruno Haible  <bruno@clisp.org>
73861
73862         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73863         MSVC7 <stdio.h> is included later.
73864
73865 2003-08-22  Simon Josefsson  <jas@extundo.com>
73866
73867         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73868
73869 2003-08-20  Karl Berry  <karl@gnu.org>
73870
73871         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73872
73873 2003-08-20  Bruno Haible  <bruno@clisp.org>
73874
73875         * modules/progname: New file.
73876         * MODULES.html.sh (func_all_modules): Add progname.
73877
73878 2003-08-20  Bruno Haible  <bruno@clisp.org>
73879
73880         * lib/progname.h: New file, from GNU gettext.
73881         * lib/progname.c: New file, from GNU gettext.
73882         * lib/progreloc.c: New file, from GNU gettext.
73883
73884 2003-08-19  Jim Meyering  <jim@meyering.net>
73885
73886         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73887         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73888
73889 2003-08-19  Bruno Haible  <bruno@clisp.org>
73890
73891         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73892         more.
73893
73894 2003-08-19  Bruno Haible  <bruno@clisp.org>
73895
73896         * lib/xstrdup.c: Assume <string.h> exists.
73897
73898 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73899
73900         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73901         in makefile rules.
73902
73903 2003-08-18  Jim Meyering  <jim@meyering.net>
73904
73905         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73906         * m4/lib-ld.m4: Likewise.
73907
73908 2003-08-18  Jim Meyering  <jim@meyering.net>
73909
73910         * lib/setenv.h: Indent nested cpp directive.
73911         * lib/vasnprintf.c: Remove trailing blanks.
73912
73913 2003-08-17  Simon Josefsson  <jas@extundo.com>
73914
73915         * modules/xstrndup: New file.
73916         * MODULES.html.sh (func_all_modules): Add xstrndup.
73917
73918 2003-08-17  Simon Josefsson  <jas@extundo.com>
73919
73920         * modules/argp: Fix autoconf macro name. Add more dependencies.
73921
73922 2003-08-17  Simon Josefsson  <jas@extundo.com>
73923
73924         * m4/xstrndup.m4: New file.
73925
73926 2003-08-17  Simon Josefsson  <jas@extundo.com>
73927
73928         * m4/argp.m4: New file.
73929
73930 2003-08-17  Simon Josefsson  <jas@extundo.com>
73931             Bruno Haible  <bruno@clisp.org>
73932
73933         * lib/xstrndup.h: New file.
73934         * lib/xstrndup.c: New file.
73935
73936 2003-08-17  Bruno Haible  <bruno@clisp.org>
73937
73938         * modules/strndup (Files, Include): Add lib/strndup.h.
73939
73940 2003-08-17  Bruno Haible  <bruno@clisp.org>
73941
73942         * modules/euidaccess (Files): Add lib/euidaccess.h.
73943
73944 2003-08-17  Bruno Haible  <bruno@clisp.org>
73945
73946         * lib/strndup.h: New file.
73947
73948 2003-08-17  Bruno Haible  <bruno@clisp.org>
73949
73950         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73951         like AC_GNU_SOURCE.
73952         * modules/extensions (configure.ac): Comment out the invocation of
73953         gl_USE_SYSTEM_EXTENSIONS.
73954
73955 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73956
73957         Merges from coreutils, etc.
73958         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73959         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73960         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73961         fixing a typo.
73962         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73963         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73964
73965 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73966
73967         Document merge from coreutils.
73968         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73969         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73970         * modules/utime: Add m4/utimes-null.m4.
73971
73972 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73973
73974         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73975         space, undoing this 2003-08-12 change:
73976         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73977
73978 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73979
73980         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73981         strtoul.c from libc, undoing this 2003-08-12 change:
73982         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73983
73984 2003-08-16  Jim Meyering  <jim@meyering.net>
73985
73986         Merges from coreutils.
73987         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73988         prefix.  Adjust cache variables similarly.  Create 500 rather than
73989         just 300 files, to exercise bug on Darwin6.5, too.
73990         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73991         $missing_dir.
73992         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73993         AM_SYS_POSIX_TERMIOS.
73994         Reported by mkc@mathdogs.com.
73995         Also change use of $am_cv_sys_posix_termios
73996         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73997         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73998         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73999         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74000         in /proc/mounts until it finds one with matching device number.  This
74001         is unnecessary when the FILE argument *is* a mount point.  No stat call
74002         is necessary in that case.  So, disable the statvfs-testing code on
74003         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74004         as RedHat bug# 84846.
74005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74006         to 1MB, so as not to render systems with no stack size limit (e.g.,
74007         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74008         Include <unistd.h>.  On some systems,
74009         it is required for the definition of _SC_PAGESIZE.
74010
74011 2003-08-16  Jim Meyering  <jim@meyering.net>
74012
74013         Merge from coreutils.
74014         * lib/xstrtoimax.c: #else #if -> #elif.
74015         * lib/xstrtoumax.c: Likewise.
74016
74017 2003-08-16  Jim Meyering  <jim@meyering.net>
74018
74019         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74020         * m4/utimes.m4: Removed.
74021         * m4/utimes-null.m4: Renamed from utimes.m4.
74022
74023         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74024         to 1MB, so as not to render systems with no stack size limit (e.g.,
74025         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74026         Include <unistd.h>.  On some systems,
74027         it is required for the definition of _SC_PAGESIZE.
74028
74029 2003-08-16  Jim Meyering  <jim@meyering.net>
74030         and Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         Merges from coreutils, etc.
74033
74034         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74035         using the latest version from cvs.  This avoids problems with #line
74036         directives using a vendor (Sun) compiler.
74037         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74038         Don't set GETGROUPS_LIB here; now it's
74039         done via getgroups.m4's wrapper function.
74040         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74041         rather than just in sh-util/configure.in, so that the
74042         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74043         same.
74044         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74045         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74046         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74047         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74048         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74049         Remove code that is now done by the newly-required macros.
74050         Append $(EXEEXT) to DF_PROG.
74051         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74052         Do not invoke or require the following here,
74053         since prereq.m4 or some gnulib .m4 now does this for us:
74054         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74055         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74056         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74057         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74058         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74059         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74060         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74061         AC_FUNC_OBSTACK.
74062         Do not replace the following functions, as this is now the job
74063         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74064         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74065         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74066         atexit getpass, strdup, getpagesize.
74067         Replace 'raise'.
74068         Do not check for the following functions, as this is now the job
74069         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74070         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74071         setregid.
74072         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74073         Check for sys/sysctl.h.
74074         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74075         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74076         of checking for ssize_t ourselves.
74077
74078         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74079         Require every macro that gnulib/modules/* suggests for us.
74080         (jm_PREREQ_ADDEXT): New macro.
74081         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74082         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74083
74084         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74085         (gl_PHYSMEM): Use it.
74086         Also check for `table' function.
74087         Check for new headers and functions.
74088         Add check for sys/sysmp.h.
74089         With suggestions from Kaveh Ghazi.
74090         Ignore headers that are present but cannot be compiled.  This
74091         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74092         C 5.4.
74093
74094 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74095
74096         Document merge from coreutils.
74097         * modules/userspec: Depend on posixver.
74098         * modules/strftime: Depend on tzset.
74099
74100 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74101
74102         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74103         rather than tab, after '#' in shell-script copyright notices.
74104         Suggested by Bruno Haible.
74105
74106 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74107
74108         * config/srclist-update: Use three spaces, rather than tab, after '#'
74109         in shell-script copyright notices.  Suggested by Bruno Haible.
74110         Remove unnecessary parenthesization in regular expression.
74111
74112 2003-08-15  Jim Meyering  <jim@meyering.net>
74113
74114         Merge from coreutils.
74115         * lib/xgethostname.c: Include <stdlib.h>.
74116         (xghostname): Don't exit for anything other than memory-related
74117         failure; just return NULL.
74118         * lib/userspec.c: Include "posixver.h".
74119         (parse_user_spec): Accept `.' as a separator only
74120         in pre-POSIX-200112 mode.
74121         * lib/strtoimax.c: Use #elif rather than #else #if.
74122         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74123         Remove function, now that we can rely on a working tzset function.
74124         [!_LIBC]: Ensure that the required autoconf test has been run.
74125         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74126         Use underlying_strftime for %r.
74127         * lib/sha.c: Merge in some clean-up and optimization changes from
74128         glibc.
74129         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74130         Ensure that it is a multiple of 64.
74131         Rearrange loop exit tests so as to avoid performing an
74132         additional fread after encountering an error or EOF.
74133         * lib/realloc.c: Update copyright date.
74134
74135 2003-08-15  Jim Meyering  <jim@meyering.net>
74136         and Paul Eggert  <eggert@twinsun.com>
74137
74138         Merge from coreutils.
74139         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74140         member but strut utmpx does not.  Needed for AIX 4.3.3.
74141         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74142
74143 2003-08-15  Jim Meyering  <jim@meyering.net>
74144         and Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         Merges from coreutils, etc.
74147         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74148         Require gl_FUNC_TZSET_CLOBBER.
74149         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74150         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74151         members.
74152
74153 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74154
74155         Help the merge from coreutils.
74156         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74157         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74158         * m4/tzset.m4: Use it too.
74159
74160 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74161
74162         * modules/tzset: New file.
74163
74164 2003-08-14  Jim Meyering  <jim@meyering.net>
74165
74166         Merges from coreutils.
74167         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74168         variable names, rather than @FNMATCH_H@.
74169         * modules/alloca: Likewise for $(ALLOCA_H).
74170
74171         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74172         the three copies of the literal target, `fnmatch.h'.
74173         * modules/alloca (alloca.h): Likewise.
74174
74175 2003-08-14  Jim Meyering  <jim@meyering.net>
74176
74177         Merge from coreutils.
74178         * m4/tzset.m4: New file.
74179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74180         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74181         otherwise, AIX 5.1 systems would end up using the latter.
74182         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74183         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74184         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74185         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74186
74187 2003-08-14  Jim Meyering  <jim@meyering.net>
74188
74189         Merge from coreutils.
74190         * lib/obstack.h: Whitespace changes.
74191         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74192         and xcalloc return values.
74193         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74194         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74195         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74196         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74197         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74198         error from mntctl.
74199         Use mntctl's return value to drive the entry-processing loop, since
74200         we can't rely on the value of the vmt_length member in the last
74201         entry.  On some systems doing so could result in exhausting
74202         virtual memory.  Based in part on a patch from Mike Jetzer.
74203
74204 2003-08-14  Jim Meyering  <jim@meyering.net>
74205         and Paul Eggert  <eggert@twinsun.com>
74206
74207         Merges from coreutils, plus other fixes.
74208         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74209         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74210         for credits and details.  Thanks to Kaveh Ghazi for helping
74211         to keep these files in sync.
74212         (ARRAY_SIZE): Define it.
74213         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74214         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74215         (memcasecmp): Don't assume size_t fits in unsigned int.
74216         Remove casts and duplicate code.
74217         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74218         (memcpy): Remove definition.
74219         Merge in some clean-up and optimization changes from glibc.
74220         [BLOCKSIZE]: Move definition to top of file.
74221         Ensure that it is a multiple of 64.
74222         Rearrange loop exit tests so as to avoid performing an
74223         additional fread after encountering an error or EOF.
74224         * lib/md5.h (md5_uintptr): Define.
74225         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74226         return to the initial working directory.  Preserve errno
74227         for caller.
74228         * lib/idcache.c: Include "xalloc.h".
74229         (xmalloc, xrealloc): Remove decls.
74230         (getuser): Remove casts no longer required in C89.
74231         * lib/human.c: Include stdio.h, for sprintf.
74232         * lib/group-member.c: Include "xalloc.h".
74233         (xmalloc, xrealloc): Remove decls.
74234         (get_group_info): Remove casts no longer required in C89.
74235         * lib/getusershell.c (readname): Remove casts no longer required in
74236         C89.
74237         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74238         * lib/getline.c: Whitespace fix, from coreutils.
74239
74240 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74241
74242         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74243         Check for isascii.
74244
74245         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74246         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74247         Undo previous (whitespace-only) change.
74248
74249 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74250
74251         * lib/exclude.c: Include <ctype.h>
74252         (IN_CTYPE_DOMAIN): New macro.
74253         (is_space): New fn.
74254         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74255         and empty lines.
74256
74257         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74258         Undo previous (whitespace-only) change.
74259
74260 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74261
74262         * config/srclist-update: Change update back to the old behavior,
74263         leaving whitespace alone.  Use one 'sed' command rather than a
74264         pipeline.
74265         (fixlicense): Now a variable, not a function.
74266         (remove_trailing_blanks): Remove.
74267         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74268         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74269         Undo previous (whitespace-only) change.
74270
74271 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74272
74273         Merge from coreutils.
74274         * modules/euidaccess: Add lib_SOURCES, include for new
74275         file euidaccess.h
74276
74277 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74278
74279         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74280         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74281         Normalize leading white space and remove trailing white space.
74282
74283         Merge from coreutils
74284         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74285
74286         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74287         0.12.1.  These files are now being upgraded automatically by
74288         ../config/srclist-update.
74289
74290 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74291
74292         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74293         Normalize leading white space and remove trailing white space.
74294         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74295         notice, as per ../config/srclist-update.
74296
74297         Merge from coreutils.
74298         * lib/euidaccess.h: New file.
74299         * lib/euidaccess.c: Include it.
74300         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74301         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74302         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74303
74304 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74305
74306         * config/srclist-update: Add copyright notice.
74307         (remove_id_lines, remove_trailing_blanks): New constants.
74308         (fixfile): Use them to normalize spacing a bit in copied files.
74309         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74310         Normalize leading white space and remove trailing white space.
74311
74312         * config/texinfo.tex: Sync with texinfo.
74313
74314         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74315         strtoul.c from libc, to merge coreutils whitespace changes.
74316
74317         * config/srclist.txt: Get the following m4 files from gettext:
74318         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74319         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74320         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74321         wint_t.m4.
74322
74323 2003-08-12  Karl Berry  <karl@gnu.org>
74324
74325         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74326         been made.
74327
74328 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74329
74330         * modules/gnu-source, m4/gnu-source.m4:
74331         Remove; we're assuming Autoconf 2.54 or later now.
74332         Suggested by Bruno Haible.
74333         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74334
74335 2003-08-11  Bruno Haible  <bruno@clisp.org>
74336
74337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74338
74339 2003-08-11  Bruno Haible  <bruno@clisp.org>
74340
74341         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74342         (vasnprintf): Use it instead of wcslen.
74343
74344 2003-08-11  Bruno Haible  <bruno@clisp.org>
74345
74346         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74347         value to ensure that _Bool promotes to int. Use #define for _Bool when
74348         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74349
74350 2003-08-10  Karl Berry  <karl@gnu.org>
74351
74352         * lib/regex.h: update from libc (whitespace fix).
74353
74354 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74355
74356         Merge some files from coreutils.  These changes were
74357         originally made by Jim Meyering.
74358         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74359         many older Unixes require this.
74360         * lib/alloca.c (alloca): Remove cast to argument of free;
74361         no longer needed in C89.
74362         * lib/alloca_.h, regex.h: Fix white space to match
74363         what GNU indent does.
74364
74365 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74366
74367         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74368         apparently Emacs's Unicode mode got confused before my 2003-08-05
74369         checkin.
74370
74371 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74372
74373         * m4/extensions.m4: New file.
74374         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74375         Require gl_USE_SYSTEM_EXTENSIONS.
74376         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74377         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74378
74379 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74380
74381         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74382         * modules/extensions, modules/gnu-source: New files.
74383         * modules/timespec, modules/unlocked-io: Depend on extensions.
74384
74385 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74386
74387         * modules/restrict: New file.
74388         * MODULES.html.sh (func_all_modules): Add restrict.
74389         * modules/regex: Depend on restrict.
74390
74391 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74392
74393         * m4/restrict.m4: New file.
74394         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74395
74396 2003-08-07  Bruno Haible  <bruno@clisp.org>
74397
74398         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74399         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74400
74401 2003-08-07  Bruno Haible  <bruno@clisp.org>
74402
74403         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74404         makes the module 'getndelim2' compatible with the module 'getline'.
74405
74406 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74407
74408         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74409         byte with "\201" to avoid glitches when editing that source file
74410         with multi-gnome-terminal.
74411
74412 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74413
74414         * lib/bumpalloc.h: Remove.
74415
74416 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74417
74418         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74419         * modules/bumpalloc: Remove.
74420
74421 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74422
74423         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74424         GNU coding style.
74425
74426         Merge from coreutils.
74427         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74428         1. From glibc.
74429         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74430         from Karl Berry, implemented by Jim Meyering.
74431         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74432         from Dmitry V. Levin.
74433         Remove anachronistic cast of xrealloc.
74434         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74435         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74436         type. Otherwise, it wouldn't compile with at least /bin/cc on
74437         ymp-cray-unicos9.0.2.X.
74438         Combine two mostly-identical uses of alloca into one.
74439         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74440
74441 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74442
74443         [From Emacs.]
74444
74445         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74446         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74447         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74448         obsolete NLIST_NAME_UNION.
74449         [__GNU__]: Undef BSD and FSCALE.
74450         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74451
74452 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74453
74454         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74455         an enum type, so that it's guaranteed to promote to int.  See:
74456         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74457
74458 2003-08-03  Karl Berry  <karl@gnu.org>
74459
74460         * config/depcomp: update from automake.
74461
74462 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74463
74464         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74465         (strerror): Don't assume that a printable int fits in 14 bytes.
74466
74467 2003-07-31  Bruno Haible  <bruno@clisp.org>
74468
74469         * modules/getpass-gnu: New file.
74470         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74471
74472 2003-07-31  Bruno Haible  <bruno@clisp.org>
74473
74474         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74475
74476 2003-07-24  Karl Berry  <karl@gnu.org>
74477
74478         * config/missing: update from automake.
74479
74480 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74481             Bruno Haible  <bruno@clisp.org>
74482
74483         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74484         * lib/getline.c (getline, getdelim): Likewise.
74485         Remove _GNU_SOURCE define; now it's defined in config.h through
74486         m4/getline.m4.
74487
74488 2003-07-23  Karl Berry  <karl@gnu.org>
74489
74490         * config/config.sub: update from prep.
74491
74492 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74493
74494         * modules/xalloc (Depends-on): Add exitfail.
74495         * modules/xmemcoll: Likewise.
74496
74497 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74498
74499         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74500         over-parenthesization in macros.
74501
74502         Sync with coreutils.
74503
74504         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74505         required by C99.
74506
74507         Use `exit_failure' for xalloc and xmemcoll instead of their own
74508         private exit-failure variables.
74509         * lib/xalloc.h (xalloc_exit_failure): Remove.
74510         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74511         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74512         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74513         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74514         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74515
74516 2003-07-20  Jim Meyering  <jim@meyering.net>
74517
74518         * modules/closeout (Depends-on): Add exitfail.
74519         Suggestion from Bruno Haible.
74520
74521 2003-07-19  Karl Berry  <karl@gnu.org>
74522
74523         * config/config.sub: update from prep.
74524
74525 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74526
74527         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74528         Remove.
74529         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74530         to test that it can stand by itself.  Include "exitfail.h".
74531         Clients should set exit_failure instead.
74532         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74533
74534 2003-07-18  Bruno Haible  <bruno@clisp.org>
74535
74536         * modules/getndelim2: New file.
74537         * modules/getline: Share files with module getndelim2.
74538         * modules/getnline: Depend on getndelim2 instead of sharing files with
74539         it. Add getnline.c to lib_SOURCES.
74540         * MODULES.html.sh (func_all_modules): Add getndelim2.
74541
74542 2003-07-18  Bruno Haible  <bruno@clisp.org>
74543
74544         * m4/getndelim2.m4: New file.
74545         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74546         invoke gl_PREREQ_GETNDELIM2.
74547         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74548         gl_PREREQ_GETNDELIM2.
74549         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74550         gl_GETNDELIM2.
74551
74552 2003-07-18  Bruno Haible  <bruno@clisp.org>
74553
74554         * lib/getndelim2.h: New file.
74555         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74556         getndelim2.h.
74557         (getndelim2): Make non-static. Change return type to ssize_t.
74558         * lib/getline.h: Change argument names.
74559         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74560         * lib/getnline.c: Include getndelim2.h.
74561
74562 2003-07-18  Andreas Schwab  <schwab@suse.de>
74563
74564         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74565
74566 2003-07-17  Karl Berry  <karl@gnu.org>
74567
74568         * config/config.sub: update from prep.
74569
74570 2003-07-17  Bruno Haible  <bruno@clisp.org>
74571
74572         * modules/getnline: New file.
74573         * modules/getline: Add lib/getndelim2.c to source file list.
74574         * MODULES.html.sh (func_all_modules): Add getnline.
74575
74576 2003-07-17  Bruno Haible  <bruno@clisp.org>
74577
74578         * m4/getnline.m4: New file.
74579
74580 2003-07-17  Bruno Haible  <bruno@clisp.org>
74581
74582         * m4/Makefile.am.in: Remove file.
74583         * m4/Makefile.am: Remove file.
74584         * m4/Makefile.in: Remove file.
74585
74586 2003-07-17  Bruno Haible  <bruno@clisp.org>
74587
74588         * lib/getnline.h: New file.
74589         * lib/getnline.c: New file.
74590         * lib/getndelim2.c: New file, extracted from getline.c.
74591         (getndelim2): Renamed from getdelim2, with added nmax argument.
74592         * lib/getline.c: Include getndelim2.c.
74593         (getdelim2): Moved out to getndelim2.c.
74594         (getline, getdelim): Update.
74595
74596 2003-07-17  Bruno Haible  <bruno@clisp.org>
74597
74598         * lib/Makefile.am: Remove file.
74599         * lib/Makefile.in: Remove file.
74600
74601 2003-07-17  Bruno Haible  <bruno@clisp.org>
74602
74603         * configure.in: Remove file.
74604         * Makefile.in: Remove file.
74605
74606 2003-07-17  Bruno Haible  <bruno@clisp.org>
74607
74608         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74609
74610 2003-07-16  Karl Berry  <karl@gnu.org>
74611
74612         * config/srclist-update: was running fixlicense twice, which caused
74613                 texinfo.tex to be nullified for some reason.  Simplify,
74614                 $gplsrc is no longer needed as far as I can see?
74615
74616 2003-07-16  Jim Meyering  <jim@meyering.net>
74617
74618         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74619
74620 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74621
74622         * config/srclist.txt: Get the following files from gettext-runtime/intl
74623         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74624         ref-del.sin.  From Bruno Haible.
74625         * config/srclist-update (fixfile): Change grep pattern again, since the
74626         previous fix didn't work (there was another trailing $).  Use
74627         '[$]' to escape the $s.
74628
74629 2003-07-15  Karl Berry  <karl@gnu.org>
74630
74631         * lib/vasnprintf.c: update from gettext.
74632
74633 2003-07-15  Karl Berry  <karl@gnu.org>
74634
74635         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74636         gets expanded when surrounded by '$'.
74637
74638 2003-07-15  Jim Meyering  <jim@meyering.net>
74639
74640         * modules/save-cwd: Don't depend on error.  From Derek Price.
74641
74642 2003-07-15  Jim Meyering  <jim@meyering.net>
74643
74644         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74645
74646 2003-07-14  Simon Josefsson  <jas@extundo.com>
74647
74648         * modules/mempcpy: New file.
74649         * MODULES.html.sh (func_all_modules): Add mempcpy.
74650
74651 2003-07-14  Simon Josefsson  <jas@extundo.com>
74652
74653         * m4/mempcpy.m4: New file.
74654
74655 2003-07-14  Simon Josefsson  <jas@extundo.com>
74656
74657         * lib/mempcpy.h: New file.
74658         * lib/mempcpy.c: New file.
74659
74660 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74661
74662         * modules/getdate, modules/posixtm: Depend on mktime.
74663
74664 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74665
74666         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74667         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74668         unicodeio.c, unicodeio.h, unlocked-io.h:
74669         Switch from LGPL to GPL.
74670
74671 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74672
74673         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74674         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74675         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74676         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74677         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74678         updated automatically by ../config/srclist-update.  This changes
74679         their license from LPGL to GPL.
74680
74681 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74682
74683         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74684         assumed to refer to the root of the most recent stable gettext version.
74685         * config/srclistvars.sh: Add defaults for eggert.
74686         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74687         Match "This program" as well as "The program".  This is needed
74688         for gettext.
74689
74690 2003-07-14  Jim Meyering  <jim@meyering.net>
74691
74692         Don't emit diagnostics.  Let callers do that.
74693         * lib/save-cwd.c: Don't include "error.h".
74694         (save_cwd): Don't call error.  Ensure that errno is valid
74695         when returning nonzero.
74696
74697         * lib/save-cwd.h (restore_cwd): Update prototype.
74698         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74699         Simplify.  Don't call error upon failure.  Let callers do that.
74700         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74701         when auditing is enabled.  But don't bother updating the #if.
74702
74703 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74704
74705         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74706         it breaks C++ compilation.
74707         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74708
74709 2003-07-10  Simon Josefsson  <jas@extundo.com>
74710
74711         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74712
74713 2003-07-10  Jim Meyering  <jim@meyering.net>
74714
74715         * m4/clock_time.m4: Remove trailing blank.
74716         * m4/intmax_t.m4: Likewise.
74717
74718 2003-07-10  Jim Meyering  <jim@meyering.net>
74719
74720         * lib/vasnprintf.c: Remove trailing blanks.
74721         Make cpp indentation consistent.
74722
74723 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74724
74725         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74726         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74727         Switch from LGPL to GPL.
74728
74729 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74730
74731         * config/srclist.txt: Sort sublists.  Add
74732         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74733         that differ from gnulib for one reason or another; we'd like this list
74734         to be smaller but for now let's document what we have.
74735
74736 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74737
74738         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74739         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74740         and sweeter "eval x=$x".
74741         * config/srclist.txt: Get lib/argp* from glibc.
74742
74743 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74744
74745         * lib/mktime.c: Fix some boundary cases and remove need for floating
74746         point.
74747
74748         Issue a compile-time diagnostic if time_t is floating point, or if
74749         two's complement arithmetic is not in effect, or if arithmetic
74750         right shift does not propagate the sign.  These assumptions were
74751         all in the original code but they weren't checked.
74752
74753         (TIME_T_MIDPOINT, verify): New macros.
74754         (__isleap): Remove; it has integer overflow problems.
74755         (leapyear): New function, without those problems.
74756         (ydhms_tm_diff): Remove; splitting into two parts.
74757         (ydhms_diff): New function, containing the arithmetic part of
74758         the old ydhms_tm_diff function.  Issue a compile-time
74759         diagnostic if we are not using C99 integer division.
74760         Avoid casts when possible.
74761         (guess_time_tm): New function, containing the checking part of
74762         the old ydhms_tm_diff function.  Return the new value, rather than
74763         the difference between it and the old.  Accept a new argument T
74764         so that *T specifies the old value.  Check for overflow in the result.
74765
74766         (__mktime_internal): Use a time_t offset, not a long int offset.
74767         This undoes the 2003-06-04 change, which is no longer needed now
74768         that we have better overflow checking.
74769         (localtime_offset): Likewise.
74770
74771         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74772         and long are 64-bit but int is only 32-bit.
74773         (ydhms_diff): Use long int to store year1 and yday1.
74774         Issue a compile-time diagnostic if long int is not wide enough.
74775
74776         (__mktime_internal): Use long int to store adjusted year and yday.
74777         Use plain C rather than preprocessor commands, if that doesn't
74778         affect efficiency.
74779         Check for overflow (and try to repair) after each probe
74780         rather than checking only at the very end.  This avoids some bugs
74781         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74782         does not equal GMT offset at maximum time).
74783         Use integer to check for overflow rather than floating point; this
74784         is more portable to non-IEEE hosts, and is a tad faster.
74785         When we detect that we are oscillating between two values,
74786         don't check whether tm_isdst has the requested value, since
74787         we already know the answer.  When tm_isdst has the wrong value,
74788         use a different heuristic to find the right one, based on the
74789         extreme values actually observed in practice in tz2003a,
74790         rather than the (overly optimistic) "previous 3 calendar quarters".
74791
74792         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74793         "T const" to accommodate glibc style.
74794         (check_result): Use less-confusing report format.  "long" -> "long int.
74795         (main): Likewise.
74796         Don't loop if the iteration overflows time_t.
74797         Allow a negative step in the iteration.
74798
74799 2003-07-06  Karl Berry  <karl@gnu.org>
74800
74801         * config/depcomp: update from automake.
74802         * config/config.sub: update from prep.
74803
74804 2003-07-03  Karl Berry  <karl@gnu.org>
74805
74806         * config/config.guess: update from prep.
74807
74808 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74809
74810         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74811         xreadlink.c now includes it unconditionally.
74812
74813 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74814
74815         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74816         having it depend on HAVE_SYS_TYPES_H.
74817
74818 2003-07-01  Bruno Haible  <bruno@clisp.org>
74819
74820         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74821         <sys/types.h> should be sufficient.
74822         Reported by Paul Eggert.
74823
74824 2003-06-26  Karl Berry  <karl@gnu.org>
74825
74826         * config/depcomp: update from automake.
74827
74828 2003-06-26  Bruno Haible  <bruno@clisp.org>
74829
74830         * modules/human: Depend on module stdbool.
74831
74832 2003-06-25  Bruno Haible  <bruno@clisp.org>
74833
74834         * modules/readlink: New file.
74835         * modules/xreadlink: Depend on it.
74836         * MODULES.html.sh (func_all_modules): Add readlink.
74837
74838 2003-06-25  Bruno Haible  <bruno@clisp.org>
74839
74840         * m4/readlink.m4: New file.
74841
74842 2003-06-25  Bruno Haible  <bruno@clisp.org>
74843
74844         * lib/readlink.c: New file.
74845
74846 2003-06-22  Karl Berry  <karl@gnu.org>
74847
74848         * config/srclist.txt: update mkinstalldirs from automake.
74849         * config/mkinstalldirs: update.
74850
74851 2003-06-22  Bruno Haible  <bruno@clisp.org>
74852
74853         Portability to mingw32.
74854         * m4/ssize_t.m4: New file, from GNU gettext.
74855         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74856         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74857
74858 2003-06-22  Bruno Haible  <bruno@clisp.org>
74859
74860         * modules/safe-read: Add m4/ssize_t.m4.
74861         * modules/xreadlink: Add m4/ssize_t.m4.
74862
74863 2003-06-20  Bruno Haible  <bruno@clisp.org>
74864
74865         Assume C89, so PARAMS isn't needed.
74866         * lib/unicodeio.h (PARAMS): Remove.
74867         * lib/unicodeio.c: Don't use PARAMS.
74868
74869 2003-06-18  Karl Berry  <karl@gnu.org>
74870
74871         * config/config.{guess,sub}: update from prep.
74872
74873 2003-06-18  Jim Meyering  <jim@meyering.net>
74874
74875         Merge changes from coreutils.
74876         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74877         Remove explicit declarations of xmalloc and realloc.
74878         Include xalloc.h.
74879         (read_utmp): Remove anachronistic cast of xmalloc.
74880
74881 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74882
74883         Assume C89, so PARAMS isn't needed.
74884         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74885         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74886         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74887         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74888         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74889         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74890         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74891         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74892         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74893         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74894         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74895         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74896         no longer needed. Anyway, config.h should always be included before any
74897         other file.
74898
74899 2003-06-11  Simon Josefsson  <jas@extundo.com>
74900
74901         * modules/sysexits: New file.
74902         * MODULES.html.sh (func_all_modules): Add sysexits.
74903
74904 2003-06-11  Simon Josefsson  <jas@extundo.com>
74905
74906         * lib/sysexit_.h: New file.
74907
74908 2003-06-11  Derek Price  <derek@ximbiot.com>
74909
74910         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74911         necessary.
74912
74913 2003-06-11  Bruno Haible  <bruno@clisp.org>
74914
74915         * m4/sysexits.m4: New file.
74916
74917 2003-06-10  Simon Josefsson  <jas@extundo.com>
74918
74919         * lib/argp.h: New file, from glibc.
74920         * lib/argp-ba.c: New file, from glibc.
74921         * lib/argp-eexst.c: New file, from glibc.
74922         * lib/argp-fmtstream.c: New file, from glibc.
74923         * lib/argp-fmtstream.h: New file, from glibc.
74924         * lib/argp-fs-xinl.c: New file, from glibc.
74925         * lib/argp-help.c: New file, from glibc.
74926         * lib/argp-namefrob.h: New file, from glibc.
74927         * lib/argp-parse.c: New file, from glibc.
74928         * lib/argp-pv.c: New file, from glibc.
74929         * lib/argp-pvh.c: New file, from glibc.
74930         * lib/argp-xinl.c: New file, from glibc.
74931
74932 2003-06-10  Simon Josefsson  <jas@extundo.com>
74933
74934         * modules/strchrnul: New file.
74935
74936 2003-06-10  Simon Josefsson  <jas@extundo.com>
74937
74938         * modules/argp: New file.
74939
74940 2003-06-10  Simon Josefsson  <jas@extundo.com>
74941
74942         * m4/strchrnul.m4: New file.
74943
74944 2003-06-10  Simon Josefsson  <jas@extundo.com>
74945
74946         * lib/strchrnul.h: New file.
74947         * lib/strchrnul.c: New file.
74948
74949 2003-06-10  Bruno Haible  <bruno@clisp.org>
74950
74951         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74952
74953 2003-06-07  Karl Berry  <karl@gnu.org>
74954
74955         * config/config.{guess,sub}: update from prep.
74956
74957 2003-06-07  Jim Meyering  <jim@meyering.net>
74958
74959         * modules/strtod: Use $(...) notation, not @...@ for
74960         AC_REPLACE'd variables.
74961         * modules/localcharset: Likewise.
74962
74963 2003-06-07  Jim Meyering  <jim@meyering.net>
74964
74965         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74966         in place of my name in the copyright comment.
74967         Remove definition and uses of __P.
74968
74969         From coreutils.
74970         * lib/stat.c: Don't declare xmalloc explicitly.
74971         Instead, include "xalloc.h".
74972         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74973         xrealloc, and xcalloc return values.
74974         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74975         Improve comment.
74976         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74977
74978 2003-06-07  Bruno Haible  <bruno@clisp.org>
74979
74980         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74981         avoid AC_CONFIG_LINKS.
74982         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74983         fnmatch.h, to avoid AC_CONFIG_LINKS.
74984         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74985
74986 2003-06-07  Bruno Haible  <bruno@clisp.org>
74987
74988         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74989         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74990         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74991         directory.
74992         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74993         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74994         directory.
74995
74996 2003-06-06  Jim Meyering  <jim@meyering.net>
74997
74998         Merge from coreutils.
74999         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75000         Consolidate declarations and initializations of *_base* locals.
75001
75002         Merge from coreutils.
75003         This avoids a core dump on systems without GNU putenv,
75004         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75005         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75006         (unsetenv): New static function, from GNU libc.
75007         (rpl_putenv): Use it.
75008
75009         * lib/modechange.c: Remove trailing blanks.
75010
75011         Merge from coreutils.
75012         * lib/fsusage.c: Remove declaration of statfs.
75013         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75014
75015         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75016
75017 2003-06-06  Jim Meyering  <jim@meyering.net>
75018
75019         * lib/stdbool_.h: Renamed from stdbool.h.in.
75020
75021 2003-06-06  Jim Meyering  <jim@meyering.net>
75022             Bruno Haible  <bruno@clisp.org>
75023
75024         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75025         Adjust Makefile.am snippet not to redirect directly to target.
75026         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75027
75028 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75029
75030         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75031         mismatch, look in future quarters as well as past.  This fixes a
75032         bug when processing fall-backwards gaps immediately after a long
75033         period of daylight-saving time.
75034
75035         * lib/mktime.c: Assume freestanding C89 or better.
75036         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75037         (__P): Remove; not used.
75038         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75039         (mktime, not_equal_tm, print_tm, check_result,
75040         main): Use prototypes.  Use const * where appropriate.
75041         (main): Fix typo in testing code that uncovered by above changes.
75042         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75043
75044 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75045
75046         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75047         locale.h, localeconv.  This merges changes from coreutils.
75048
75049         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75050         It can be removed after the next Autoconf is released.
75051         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75052         needed.
75053
75054 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75055
75056         * lib/mktime.c: Fix Debian bug 177940
75057         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75058         (localtime_offset): Now long int, not time_t, because we want it
75059         to be guaranteed to be signed.  All uses changed.
75060         (__mktime_internal): If overflow would occur when adding offset,
75061         don't add it.
75062
75063         Merge 'human' changes from coreutils.  Rewrite to support
75064         locale-specific notations like thousands separators.
75065         * lib/human.c: Simplify authorship notice.
75066         Include human.h immediately after config.h.
75067         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75068         <limits.h>: Do not include, since human.h does.
75069         (SIZE_MAX, UINTMAX_MAX): New macros.
75070         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75071         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75072         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75073         (power_letter): Renamed from suffixes.
75074         (generate_suffix_backwards): Remove.
75075         (adjust_value): Now takes int style (because of human.h changes)
75076         and long double value (for greater precision on some platforms).
75077         (group_number): New function.
75078         (human_readable): Use it.  Use integer options, not enum.
75079         Put the options before the sizes in the arg list.
75080         Support all the new options.
75081         The old human_readable function has been removed;
75082         use inttostr.h instead.
75083         (human_readable, default_block_size, humblock):
75084         Use uintmax_t, not int, for block sizes.
75085         (human_readable_inexact, block_size_types): Remove.
75086         (block_size_opts): New constant.
75087         (human_options): Renamed from human_block_size, with new signature
75088         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75089         * lib/human.h: Add copyright and authorship notice.
75090         Include <limits.h> and <stdbool.h> unconditionally.
75091         (PARAMS): Remove.  All uses removed.
75092         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75093         (enum human_inexact_style): Remove tag; now a nameless enum.
75094         (human_floor, human_ceiling, human_round_to_even): Now have
75095         values 2, 0, 1 rather than -1, 1, 0.
75096         (human_group_digits, human_suppress_point_zero, human_autoscale,
75097         human_base_1024, human_SI, human_B): New constants.
75098         (human_readable_inexact, human_block_size): Remove.
75099         (human_readable): Size args are now uintmax_t, not int.
75100         (human_options): New decl.
75101
75102         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75103         unnecessary now that we assume C89 or better.  This change
75104         imported from coreutils.
75105
75106         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75107         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75108         in the 2003-05-30 sync from glibc.
75109
75110         .h files should stand alone, but we shouldn't include <sys/types.h>
75111         if we can get away with just <stddef.h>.
75112
75113         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75114         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75115         rather than <sys/types.h>, as we merely need size_t.
75116         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75117         to get size_t.
75118         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75119         Include <stdio.h>, to get FILE.
75120         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75121         memcasecmp.h has included <stddef.h> and all we need is size_t.
75122         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75123         our interface, instead of including <sys/types.h>
75124
75125 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75126
75127         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75128         now, as glibc mktime is buggy on non-glibc systems.
75129
75130 2003-06-03  Karl Berry  <karl@gnu.org>
75131
75132         * config/config.sub: update from prep.
75133
75134 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75135
75136         [from coreutils]
75137         Fix some minor time-related bugs with POSIX time arguments.
75138         Some valid time stamps were being rejected (notably -1, and
75139         time stamps before 1900 on 64-bit hosts).  And some invalid
75140         time stamps were being accepted, e.g. September 31.
75141
75142         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75143         that we can return (time_t) -1 successfully.
75144         * lib/posixtm.c: Likewise.
75145         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75146         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75147         (t): Remove static var.
75148         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75149         of static var.  All uses changed.
75150         (year): Do not reject years before 1900; they can occur with
75151         64-bit time_t.
75152         (posix_time_parse): Do not check for out-of-range components;
75153         that is now the caller's responsibility, since our checks were
75154         only approximations.
75155         (posixtime): Use mktime to check for out-of-range components,
75156         since it knows them exactly.
75157         If mktime returns (time_t) -1, check whether an error actually occurred
75158         by invoking localtime on -1.
75159         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75160         posixtime failures better.
75161         Improve the test data (in comments only).
75162
75163 2003-06-02  Karl Berry  <karl@gnu.org>
75164
75165         * config/mkinstalldirs (version): new variable.
75166         (--version): new option.
75167         (usage): improve message.
75168
75169 2003-05-30  Karl Berry  <karl@gnu.org>
75170
75171         * lib/mktime.c: update from libc.
75172
75173 2003-05-30  Bruno Haible  <bruno@clisp.org>
75174
75175         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75176         * config/config.rpath: Upgrade to gettext-0.12.1.
75177
75178 2003-05-30  Bruno Haible  <bruno@clisp.org>
75179
75180         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75181         * m4/nls.m4: New file, from gettext-0.12.1.
75182         * m4/po.m4: New file, from gettext-0.12.1.
75183         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75184
75185 2003-05-30  Bruno Haible  <bruno@clisp.org>
75186
75187         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75188         * lib/localcharset.h: Likewise.
75189         * lib/localcharset.c: Likewise.
75190
75191 2003-05-29  Karl Berry  <karl@gnu.org>
75192
75193         * config/config.rpath: update from gettext.
75194
75195 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75196
75197         Assume the headers required for C89 freestanding compilers.
75198         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75199         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75200         * m4/human.m4 (gl_HUMAN): Likewise.
75201         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75202         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75203         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75204         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75205         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75206         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75207
75208 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75209
75210         Assume the headers required for C89 freestanding compilers.
75211         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75212         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75213         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75214         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75215         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75216         define, since <limits.h> is guaranteed to do that.
75217         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75218         * lib/exclude.c: Include <stdbool.h> unconditionally.
75219         * lib/tempname.c: Include <stddef.h> unconditionally.
75220         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75221         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75222         <stddef.h> does that.
75223         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75224         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75225         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75226         needed.
75227         * lib/xstrtol.c: Likewise.
75228         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75229         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75230
75231         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75232         warnings on some platforms.
75233
75234         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75235         arbitrarily.
75236
75237 2003-05-26  Jim Meyering  <jim@meyering.net>
75238
75239         Merge in a change from coreutils:
75240         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75241         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75242         that condition, rather than `-1' which is slightly misleading.
75243         Change the name of the cache variable to have the gl_ prefix.
75244         Prompted by a patch from Richard Dawe for DJGPP.
75245
75246 2003-05-24  Karl Berry  <karl@gnu.org>
75247
75248         * config/config.guess: update from prep.
75249
75250 2003-05-22  Karl Berry  <karl@gnu.org>
75251
75252         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75253
75254 2003-05-20  Karl Berry  <karl@gnu.org>
75255
75256         * config/config.guess: update from prep.
75257
75258 2003-05-18  Karl Berry  <karl@gnu.org>
75259
75260         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75261         might actually be set by the user.
75262
75263         * config/depcomp, install-sh, mdate-sh: update from automake.
75264
75265 2003-05-17  Bruno Haible  <bruno@clisp.org>
75266
75267         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75268         invalid expansion for AC_EGREP_CPP.
75269         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75270         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75271         Suggested by Akim Demaille <akim@epita.fr> in
75272         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75273
75274 2003-05-12  Jim Meyering  <jim@meyering.net>
75275
75276         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75277         the space-padded-by-default conversion specifiers, %e, %k, %l.
75278
75279 2003-05-12  Bruno Haible  <bruno@clisp.org>
75280
75281         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75282         the string is longer than 4 KB.
75283
75284 2003-05-11  Karl Berry  <karl@gnu.org>
75285
75286         * config/config.{guess,sub}: update from prep.
75287
75288 2003-05-09  Bruno Haible  <bruno@clisp.org>
75289
75290         * modules/error: Add m4/strerror_r.m4 to file list.
75291
75292 2003-05-03  Bruno Haible  <bruno@clisp.org>
75293
75294         Upgrade to Unicode-4.0.
75295         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75296         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75297         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75298         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75299         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75300         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75301         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75302         Change width of U+E0100..U+E01EF from 1 to 0.
75303
75304 2003-04-25  Jim Meyering  <jim@meyering.net>
75305
75306         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75307         of type size_t, not int.
75308
75309 2003-04-25  Bruno Haible  <bruno@clisp.org>
75310
75311         * lib/copy-file.c: Include <stddef.h>, for size_t.
75312
75313 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75314
75315         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75316         code which expansion is under static control.  Patch imported from
75317         Akim Demaille's patch to Bison; see
75318         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75319
75320 2003-04-14  Bruno Haible  <bruno@clisp.org>
75321
75322         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75323
75324 2003-04-11  Jim Meyering  <jim@meyering.net>
75325
75326         Merge changes from Coreutils.
75327
75328         2003-03-22  Jim Meyering  <jim@meyering.net>
75329
75330         * lib/strftime.c (widen): Cast alloca return value to proper type.
75331
75332         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75333
75334         From GNU libc.
75335         * lib/strftime.c (my_strftime): Handle very large width
75336         specifications for numeric values correctly.  Improve checks for
75337         overflow.
75338
75339         2003-01-19  Jim Meyering  <jim@meyering.net>
75340
75341         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75342         definitions.
75343         (nl_get_alt_digit) [! defined my_strftime]: Define.
75344         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75345         _nl_get_alt_digit and _nl_get_walt_digit.
75346
75347         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75348         libc. These changes have no effect outside of _LIBC.
75349
75350 2003-04-10  Bruno Haible  <bruno@clisp.org>
75351
75352         * modules/findprog: New file.
75353         * MODULES.html.sh (func_all_modules): Add it.
75354
75355 2003-04-10  Bruno Haible  <bruno@clisp.org>
75356
75357         * m4/findprog.m4: New file.
75358         * m4/eaccess.m4: New file.
75359
75360 2003-04-10  Bruno Haible  <bruno@clisp.org>
75361
75362         * lib/findprog.h: New file, from GNU gettext.
75363         * lib/findprog.c: New file, from GNU gettext.
75364
75365 2003-04-05  Jim Meyering  <jim@meyering.net>
75366
75367         Merge changes from Coreutils.
75368
75369         * lib/exclude.h (PARAMS): Remove definition and uses.
75370         * lib/exclude.c: Remove uses of `PARAMS'.
75371
75372         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75373         Add test-cases for DOS filenames. Declare program_name.
75374         (main): Set up program_name.  Patch by Rich Dawe.
75375
75376         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75377         error from mntctl.
75378         Use mntctl's return value to drive the entry-processing loop, since
75379         we can't rely on the value of the vmt_length member in the last
75380         entry.  On some systems doing so could result in exhausting
75381         virtual memory.  Based in part on a patch from Mike Jetzer.
75382
75383 2003-04-04  Bruno Haible  <bruno@clisp.org>
75384
75385         * modules/linebreak: New file.
75386         * MODULES.html.sh (func_all_modules): Add it.
75387
75388 2003-04-04  Bruno Haible  <bruno@clisp.org>
75389
75390         * m4/linebreak.m4: New file.
75391
75392 2003-04-04  Bruno Haible  <bruno@clisp.org>
75393
75394         * lib/linebreak.h: New file, from GNU gettext.
75395         * lib/linebreak.c: New file, from GNU gettext with slight
75396         modifications.
75397         * lib/lbrkprop.h: New file, from GNU gettext.
75398
75399 2003-04-03  Bruno Haible  <bruno@clisp.org>
75400
75401         * modules/utf8-ucs4: New file.
75402         * modules/utf16-ucs4: New file.
75403         * modules/ucs4-utf8: New file.
75404         * modules/ucs4-utf16: New file.
75405         * MODULES.html.sh (func_all_modules): Add them.
75406
75407 2003-04-03  Bruno Haible  <bruno@clisp.org>
75408
75409         * m4/utf-ucs4.m4: New file.
75410         * m4/ucs4-utf.m4: New file.
75411
75412 2003-04-03  Bruno Haible  <bruno@clisp.org>
75413
75414         * lib/utf8-ucs4.h: New file, from GNU gettext.
75415         * lib/utf16-ucs4.h: New file, from GNU gettext.
75416         * lib/ucs4-utf8.h: New file, from GNU gettext.
75417         * lib/ucs4-utf16.h: New file, from GNU gettext.
75418
75419 2003-04-02  Bruno Haible  <bruno@clisp.org>
75420
75421         * modules/binary-io: New file.
75422         * MODULES.html.sh (func_all_modules): Add it.
75423
75424 2003-04-02  Bruno Haible  <bruno@clisp.org>
75425
75426         * lib/binary-io.h: New file, from GNU gettext.
75427
75428 2003-04-01  Bruno Haible  <bruno@clisp.org>
75429
75430         * modules/pathname: New file.
75431         * MODULES.html.sh (func_all_modules): Add it.
75432
75433 2003-04-01  Bruno Haible  <bruno@clisp.org>
75434
75435         * lib/pathname.h: New file, from GNU gettext.
75436         * lib/concatpath.c: New file, from GNU gettext.
75437
75438 2003-03-30  Bruno Haible  <bruno@clisp.org>
75439
75440         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75441
75442 2003-03-30  Bruno Haible  <bruno@clisp.org>
75443
75444         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75445         function chown() doesn't exist.
75446
75447 2003-03-28  Bruno Haible  <bruno@clisp.org>
75448
75449         * modules/copy-file: New file.
75450         * MODULES.html.sh (func_all_modules): Add it.
75451
75452 2003-03-28  Bruno Haible  <bruno@clisp.org>
75453
75454         * m4/copy-file.m4: New file.
75455
75456 2003-03-28  Bruno Haible  <bruno@clisp.org>
75457
75458         * lib/copy-file.h: New file, from GNU gettext.
75459         * lib/copy-file.c: New file, from GNU gettext.
75460
75461 2003-03-18  Jim Meyering  <jim@meyering.net>
75462
75463         * lib/quote.c (quote_n): Fix typo in comment.
75464
75465 2003-03-18  Bruno Haible  <bruno@clisp.org>
75466
75467         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75468         checking.
75469         * m4/onceonly_2_57.m4: Likewise.
75470
75471 2003-03-17  Bruno Haible  <bruno@clisp.org>
75472
75473         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75474         (m4_quote): Remove macro.
75475         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75476
75477 2003-03-14  Jim Meyering  <jim@meyering.net>
75478
75479         Merge changes from Coreutils.
75480         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75481         to be const, in order to avoid warnings.
75482         (obstack_room): Likewise.
75483         (obstack_empty_p): Likewise.
75484
75485 2003-03-14  Bruno Haible  <bruno@clisp.org>
75486
75487         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75488         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75489
75490 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75491
75492         Merge changes from Bison.
75493         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75494         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75495         when compiling Bison 1.875's `bitset bset = obstack_alloc
75496         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75497         * lib/hash.c: Include <stdbool.h> unconditionally.
75498
75499 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75500
75501         * m4/onceonly.m4 (m4_quote): New macro.
75502         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75503         Quote AC_FOREACH variable-expansions properly.
75504
75505 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75506
75507         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75508
75509 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75510
75511         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75512         Reported by Bruce Becker; see:
75513         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75514
75515 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75516             Bruno Haible  <bruno@clisp.org>
75517
75518         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75519         Reported by John Hughes, see
75520         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75521
75522 2003-02-20  Bruno Haible  <bruno@clisp.org>
75523
75524         * MODULES.html.sh (func_all_modules): Add poll.
75525
75526 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75527
75528         * modules/poll: New file.
75529
75530 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75531
75532         * lib/poll_.h: New file.
75533         * lib/poll.c: New file.
75534
75535 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75536
75537         * m4/poll.m4: New file.
75538
75539 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75540
75541         * modules/mathl: New file.
75542
75543 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75544
75545         * lib/mathl.h: New file.
75546         * lib/acosl.c: New file.
75547         * lib/asinl.c: New file.
75548         * lib/atanl.c: New file.
75549         * lib/ceill.c: New file.
75550         * lib/cosl.c: New file.
75551         * lib/expl.c: New file.
75552         * lib/floorl.c: New file.
75553         * lib/frexpl.c: New file.
75554         * lib/ldexpl.c: New file.
75555         * lib/logl.c: New file.
75556         * lib/sincosl.c: New file.
75557         * lib/sinl.c: New file.
75558         * lib/sqrtl.c: New file.
75559         * lib/tanl.c: New file.
75560         * lib/trigl.c: New file.
75561         * lib/trigl.h: New file.
75562
75563 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75564
75565         * m4/mathl.m4: New file.
75566
75567 2003-02-18  Bruno Haible  <bruno@clisp.org>
75568
75569         * MODULES.html.sh (func_all_modules): Add mathl.
75570
75571 2003-02-17  Bruno Haible  <bruno@clisp.org>
75572
75573         * modules/mkdtemp: New module.
75574         * MODULES.html.sh (func_all_modules): Add it.
75575
75576 2003-02-17  Bruno Haible  <bruno@clisp.org>
75577
75578         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75579
75580 2003-02-17  Bruno Haible  <bruno@clisp.org>
75581
75582         * lib/mkdtemp.h: New file, from GNU gettext.
75583         * lib/mkdtemp.c: New file, from GNU gettext.
75584
75585 2003-02-02  Jim Meyering  <jim@meyering.net>
75586
75587         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75588         e.g. glibc-2.2.93.
75589
75590 2003-01-31  Bruno Haible  <bruno@clisp.org>
75591
75592         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75593         'rpl_rename'.
75594         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75595         'rpl_strnlen'.
75596         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75597         'rpl_strtod'.
75598         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75599         'rpl_utime'.
75600
75601 2003-01-31  Bruno Haible  <bruno@clisp.org>
75602
75603         * lib/rename.c: #undef rename before defining rpl_rename.
75604         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75605
75606 2003-01-30  Bruno Haible  <bruno@clisp.org>
75607
75608         * modules/vasnprintf, modules/vasprintf: New modules.
75609         * MODULES.html.sh (func_all_modules): Add them.
75610
75611 2003-01-30  Bruno Haible  <bruno@clisp.org>
75612
75613         * m4/signed.m4: New file, from GNU gettext.
75614         * m4/longdouble.m4: New file, from GNU gettext.
75615         * m4/wchar_t.m4: New file, from GNU gettext.
75616         * m4/wint_t.m4: New file, from GNU gettext.
75617         * m4/vasnprintf.m4: New file.
75618         * m4/vasprintf.m4: New file.
75619
75620 2003-01-30  Bruno Haible  <bruno@clisp.org>
75621
75622         * lib/printf-args.h: New file, from GNU gettext.
75623         * lib/printf-args.c: New file, from GNU gettext.
75624         * lib/printf-parse.h: New file, from GNU gettext.
75625         * lib/printf-parse.c: New file, from GNU gettext.
75626         * lib/vasnprintf.h: New file, from GNU gettext.
75627         * lib/vasnprintf.c: New file, from GNU gettext.
75628         * lib/asnprintf.c: New file, from GNU gettext.
75629         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75630         * lib/vasprintf.c: New file, from GNU gettext.
75631         * lib/asprintf.c: New file, from GNU gettext.
75632
75633 2003-01-29  Bruno Haible  <bruno@clisp.org>
75634
75635         * modules/stpncpy: New module.
75636         * MODULES.html.sh (func_all_modules): Add it.
75637
75638 2003-01-29  Bruno Haible  <bruno@clisp.org>
75639
75640         * m4/stpncpy.m4: New file.
75641
75642 2003-01-29  Bruno Haible  <bruno@clisp.org>
75643
75644         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75645         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75646
75647 2003-01-28  Bruno Haible  <bruno@clisp.org>
75648
75649         * modules/c-ctype: New module.
75650         * MODULES.html.sh (func_all_modules): Add it.
75651
75652 2003-01-28  Bruno Haible  <bruno@clisp.org>
75653
75654         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75655         Paul Eggert.
75656         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75657         Paul Eggert.
75658
75659 2003-01-27  Bruno Haible  <bruno@clisp.org>
75660
75661         * modules/xsetenv: New module.
75662         * MODULES.html.sh (func_all_modules): Add it.
75663
75664 2003-01-27  Bruno Haible  <bruno@clisp.org>
75665
75666         * lib/xsetenv.h: New file, from GNU gettext.
75667         * lib/xsetenv.c: New file, from GNU gettext.
75668
75669 2003-01-23  Jim Meyering  <jim@meyering.net>
75670
75671         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75672         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75673
75674 2003-01-23  Bruno Haible  <bruno@clisp.org>
75675
75676         * modules/minmax: New module.
75677         * MODULES.html.sh (func_all_modules): Add it.
75678
75679 2003-01-23  Bruno Haible  <bruno@clisp.org>
75680
75681         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75682         Eggert.
75683
75684 2003-01-22  Bruno Haible  <bruno@clisp.org>
75685
75686         * modules/exit: New module.
75687         * MODULES.html.sh (func_all_modules): Add it.
75688
75689 2003-01-22  Bruno Haible  <bruno@clisp.org>
75690
75691         * lib/exit.h: New file, from GNU gettext.
75692
75693 2003-01-19  Bruno Haible  <bruno@clisp.org>
75694
75695         * gnulib-tool: Recognize option --extract-maintainer.
75696         (func_get_maintainer): New function.
75697         * modules/*: Add Maintainer entry.
75698
75699 2003-01-16  Jim Meyering  <jim@meyering.net>
75700
75701         * m4/regex.m4: The `regex' struct is both input and output.
75702         Initialize it before each use.  Patch by Tim Waugh.
75703
75704 2003-01-16  Bruno Haible  <bruno@clisp.org>
75705
75706         * MODULES.html.sh: Add a table of contents. Add the module name as
75707         leftmost column. Add hyperlinks.
75708
75709 2003-01-15  Bruno Haible  <bruno@clisp.org>
75710
75711         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75712
75713 2003-01-15  Bruno Haible  <bruno@clisp.org>
75714
75715         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75716         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75717         suffix.
75718
75719 2003-01-15  Bruno Haible  <bruno@clisp.org>
75720
75721         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75722
75723 2003-01-15  Bruno Haible  <bruno@clisp.org>
75724
75725         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75726         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75727
75728 2003-01-14  Jim Meyering  <jim@meyering.net>
75729
75730         * lib/same.c (same_name): Tweak a comment.
75731
75732 2003-01-14  Bruno Haible  <bruno@clisp.org>
75733
75734         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75735         when a string comparison is sufficient.
75736
75737 2003-01-14  Bruno Haible  <bruno@clisp.org>
75738
75739         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75740         'unsigned int'.
75741
75742 2003-01-14  Bruno Haible  <bruno@clisp.org>
75743
75744         * lib/hash-pjw.c: Add comment about low quality of this function.
75745
75746 2003-01-13  Bruno Haible  <bruno@clisp.org>
75747
75748         * modules/stpcpy: Distribute lib/stpcpy.h.
75749         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75750
75751 2003-01-13  Bruno Haible  <bruno@clisp.org>
75752
75753         * modules/*: Add a description.
75754         * modules/strpbrk: Fix Makefile.am snippet.
75755         * modules/strtoimax: Fix dependencies.
75756         * modules/strtoumax: Likewise.
75757
75758 2003-01-13  Bruno Haible  <bruno@clisp.org>
75759
75760         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75761         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75762         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75763
75764 2003-01-13  Bruno Haible  <bruno@clisp.org>
75765
75766         * gnulib-tool (func_create_testdir): Store config/* files in the main
75767         directory.
75768         * config.rpath: Move to ...
75769         * config/config.rpath: ... here.
75770         * modules/gettext: Contains config/config.rpath, not config.rpath.
75771         * modules/iconv: Likewise.
75772
75773 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75774
75775         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75776         to avoid collisions with libcurses and libreadline.
75777
75778         * m4/getstr.m4: Remove.
75779         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75780
75781 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75782
75783         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75784         to avoid collisions with libcurses and libreadline.
75785
75786         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75787         * lib/getstr.h, getstr.c: Remove.
75788         * lib/getline.c: Include "getline.h", to check interface.
75789         Move body of old getstr.c here: this defines MIN_CHUNK and
75790         declares getdelim2, which is renamed from getstr.
75791         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75792
75793         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75794         All uses changed.
75795         * lib/linebuffer.h: Likewise.
75796         (readline): Remove backward-compatibility macro.
75797
75798 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75799
75800         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75801         to avoid collisions with libcurses and libreadline.
75802         * getstr: Remove.
75803         * MODULES.html.sh: Remove getstr.
75804         * modules/getline: Depend on unlocked-io, not getstr.
75805
75806 2003-01-12  Jim Meyering  <jim@meyering.net>
75807
75808         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75809
75810 2003-01-10  Bruno Haible  <bruno@clisp.org>
75811
75812         * modules/alloca: Change Makefile.am requirements. Simplify Include
75813         requirements. Add lib/alloca_.h to file list.
75814
75815 2003-01-10  Bruno Haible  <bruno@clisp.org>
75816
75817         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75818
75819 2003-01-10  Bruno Haible  <bruno@clisp.org>
75820
75821         * lib/alloca_.h: New file.
75822         * lib/getdate.y: Unconditionally include alloca.h.
75823         * lib/makepath.c: Likewise.
75824         * lib/setenv.c: Likewise.
75825         * lib/userspec.c: Likewise.
75826
75827 2003-01-09  Karl Berry  <karl@gnu.org>
75828
75829         * MODULES.html.sh: include `dirname $0` in PATH, to find
75830         gnulib-tool.
75831
75832 2003-01-09  Bruno Haible  <bruno@clisp.org>
75833
75834         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75835         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75836
75837 2003-01-09  Bruno Haible  <bruno@clisp.org>
75838
75839         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75840
75841 2003-01-09  Bruno Haible  <bruno@clisp.org>
75842
75843         * lib/stdbool.h.in: New file.
75844
75845 2003-01-09  Bruno Haible  <bruno@clisp.org>
75846
75847         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75848         * MODULES.html.sh: Likewise.
75849
75850 2003-01-08  Jim Meyering  <jim@meyering.net>
75851
75852         * lib/full-write.c: Undefine and define-away `const' after inclusion
75853         of errno.h, not before.  Suggestion from Bruno Haible.
75854
75855 2003-01-08  Bruno Haible  <bruno@clisp.org>
75856
75857         * modules/full-read: Depend on full-write.
75858
75859 2003-01-08  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/safe-read.c: Include specification header first, to ensure its
75862         selfcontainedness.
75863         * lib/full-write.c: Likewise.
75864
75865 2003-01-07  Jim Meyering  <jim@meyering.net>
75866
75867         * lib/full-write.c: Rework so that it may serve to define full_read,
75868         too.
75869         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75870
75871 2003-01-07  Bruno Haible  <bruno@clisp.org>
75872
75873         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75874         <inttypes.h>.
75875         * lib/xstrtol.h: Likewise.
75876         * lib/xstrtoimax.c: Likewise.
75877         * lib/xstrtoumax.c: Likewise.
75878         * lib/human.h: Likewise.
75879
75880         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75881         on systems that have <inttypes.h> but not <stdint.h>.
75882
75883 2003-01-07  Bruno Haible  <bruno@clisp.org>
75884
75885         * MODULES.html.sh: Add copyright notice.
75886         (missed_files): Omit CVS directory entries.
75887         (func_module): Make it work with sed-3.02.
75888         * MODULES.txt: Remove file.
75889
75890 2003-01-06  Jim Meyering  <jim@meyering.net>
75891
75892         * lib/version-etc.c: Update year in translatable copyright string.
75893
75894 2003-01-03  Karl Berry  <karl@gnu.org>
75895
75896         * config/config.{guess,sub}: update from prep.
75897
75898 2003-01-02  Karl Berry  <karl@gnu.org>
75899
75900         * doc/COPYING.DOC: belatedly updated to 1.2.
75901
75902 2003-01-01  Karl Berry  <karl@gnu.org>
75903
75904         * gnulib-tool (func_verify_module): report module name $module in
75905         error message, not $1.
75906         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75907         be created, only if it doesn't exist.
75908         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75909
75910 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75911
75912         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75913
75914 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75915
75916         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75917         memcmp if strcoll doesn't work.
75918
75919 2002-12-31  Bruno Haible  <bruno@clisp.org>
75920
75921         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75922         nonempty.
75923
75924 2002-12-31  Bruno Haible  <bruno@clisp.org>
75925
75926         * lib/memcoll.c (STRCOLL): New macro.
75927         (memcoll): Use it.
75928
75929 2002-12-31  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/localcharset.h: New file.
75932         * lib/localcharset.c: Include it.
75933         * lib/unicodeio.c: Likewise.
75934
75935 2002-12-31  Bruno Haible  <bruno@clisp.org>
75936
75937         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75938         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75939
75940 2002-12-31  Bruno Haible  <bruno@clisp.org>
75941
75942         * lib/getline.h: Include <stddef.h>, for size_t.
75943
75944         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75945         * lib/unicodeio.c: Don't include <stddef.h>.
75946
75947 2002-12-31  Bruno Haible  <bruno@clisp.org>
75948
75949         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75950         HAVE_TM_ZONE.
75951
75952 2002-12-24  Karl Berry  <karl@gnu.org>
75953
75954         * config/config.guess: update from prep.
75955
75956 2002-12-24  Bruno Haible  <bruno@clisp.org>
75957
75958         General infrasructure.
75959         * m4/README: Rewritten.
75960         * m4/onceonly.m4: New file.
75961         * m4/onceonly_2_57.m4: New file.
75962
75963         Module atexit.
75964         * m4/atexit.m4: New file.
75965
75966         Module strtod.
75967         * m4/strtod.m4: New file.
75968
75969         Module strtol.
75970         * m4/strtol.m4: New file.
75971
75972         Module strtoul.
75973         * m4/strtoul.m4: New file.
75974
75975         Module memchr.
75976         * m4/memchr.m4: New file.
75977
75978         Module memcmp.
75979         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75980         (jm_FUNC_MEMCMP): Invoke it.
75981
75982         Module memcpy.
75983         * m4/memcpy.m4: New file.
75984
75985         Module memmove.
75986         * m4/memmove.m4: New file.
75987
75988         Module memset.
75989         * m4/memset.m4: New file.
75990
75991         Module strcspn.
75992         * m4/strcspn.m4: New file.
75993
75994         Module strpbrk.
75995         * m4/strpbrk.m4: New file.
75996
75997         Module strstr.
75998         * m4/strstr.m4: New file.
75999
76000         Module strerror.
76001         * m4/strerror.m4: New file.
76002
76003         Module mktime.
76004         * m4/mktime.m4: Renamed from jm-mktime.m4.
76005         (gl_PREREQ_MKTIME): New macro.
76006         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76007
76008         Module malloc.
76009         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76010         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76011         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76012
76013         Module realloc.
76014         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76015         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76016         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76017
76018         Module strftime.
76019         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76020         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76021         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76022         gl_TM_GMTOFF.
76023         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76024
76025         Module xalloc.
76026         * m4/xalloc.m4: New file.
76027
76028         Module alloca.
76029         * m4/alloca.m4: New file.
76030
76031         Module putenv.
76032         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76033         (jm_FUNC_PUTENV): Invoke it.
76034
76035         Module setenv.
76036         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76037         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76038         when invoked twice.
76039         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76040         gt_FUNC_SETENV.
76041
76042         Module memrchr.
76043         * m4/memrchr.m4: New file.
76044
76045         Module stpcpy.
76046         * m4/stpcpy.m4: New file.
76047
76048         Module strcase.
76049         * m4/strcase.m4: New file.
76050
76051         Module strdup.
76052         * m4/strdup.m4: New file.
76053
76054         Module strnlen.
76055         * m4/strnlen.m4: New file.
76056
76057         Module strndup.
76058         * m4/strndup.m4: New file.
76059
76060         Module xstrtod.
76061         * m4/xstrtod.m4: New file.
76062
76063         Module xstrtol.
76064         * m4/xstrtol.m4: New file.
76065
76066         Module getdate.
76067         * m4/getdate.m4: New file.
76068
76069         Module unlocked-io.
76070         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76071         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76072         * m4/jm-glibc-io.m4n: Remove file.
76073
76074         Module long-options.
76075         * m4/long-options.m4: New file.
76076
76077         Module md5.
76078         * m4/md5.m4: New file.
76079
76080         Module sha.
76081         * m4/sha.m4: New file.
76082
76083         Module getstr.
76084         * m4/getstr.m4: New file.
76085
76086         Module getline.
76087         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76088         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76089         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76090         simply getline. Infoke gl_PREREQ_GETLINE.
76091
76092         Module obstack.
76093         * m4/obstack.m4: New file.
76094
76095         Module hash.
76096         * m4/hash.m4: New file.
76097
76098         Module readtokens.
76099         * m4/readtokens.m4: New file.
76100
76101         Module strverscmp.
76102         * m4/strverscmp.m4: New file.
76103
76104         Module stdbool.
76105         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76106         OSF/1.
76107
76108         Module strtoll.
76109         * m4/strtoll.m4: New file.
76110
76111         Module strtoull.
76112         * m4/strtoull.m4: New file.
76113
76114         Module strtoimax.
76115         * m4/strtoimax.m4: New file.
76116
76117         Module strtoumax.
76118         * m4/strtoumax.m4: New file.
76119
76120         Module xstrtoimax.
76121         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76122         jm_AC_PREREQ_XSTRTOIMAX.
76123         Moved the strtol prerequisites to strtol.m4.
76124         Moved the strtoll prerequisites to strtoll.m4.
76125         Moved the strtoimax prerequisites to strtoimax.m4.
76126
76127         Module xstrtoumax.
76128         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76129         jm_AC_PREREQ_XSTRTOUMAX.
76130         Moved the strtoul prerequisites to strtoul.m4.
76131         Moved the strtoull prerequisites to strtoull.m4.
76132         Moved the strtoumax prerequisites to strtoumax.m4.
76133
76134         Module chown.
76135         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76136         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76137
76138         Module dup2.
76139         * m4/dup2.m4: New file.
76140
76141         Module ftruncate.
76142         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76143         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76144
76145         Module getgroups.
76146         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76147         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76148
76149         Module gettimeofday.
76150         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76151         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76152         gl_PREREQ_GETTIMEOFDAY.
76153
76154         Module mkdir.
76155         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76156         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76157
76158         Module mkstemp.
76159         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76160         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76161         jm_AC_TYPE_UINTMAX_T.
76162         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76163
76164         Module stat.
76165         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76166         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76167
76168         Module lstat.
76169         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76170         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76171
76172         Module timespec.
76173         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76174         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76175         * m4/st_mtim.m4: Indentation.
76176
76177         Module nanosleep.
76178         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76179         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76180         gl_PREREQ_NANOSLEEP.
76181
76182         Module regex.
76183         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76184         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76185         (gl_REGEX): New macro.
76186
76187         Module rename.
76188         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76189         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76190
76191         Module rmdir.
76192         * m4/rmdir.m4: New file.
76193
76194         Module utime.
76195         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76196         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76197         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76198
76199         Module dirname.
76200         * m4/dirname.m4: New file.
76201
76202         Module getopt.
76203         * m4/getopt.m4: New file.
76204
76205         Module unistd-safer.
76206         * m4/unistd-safer.m4: New file.
76207
76208         Module fnmatch.
76209         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76210         declaration.
76211         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76212         (gl_FUNC_FNMATCH_POSIX): New macro.
76213         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76214         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76215         simply fnmatch.
76216
76217         Module exclude.
76218         * m4/exclude.m4: New file.
76219
76220         Module human.
76221         * m4/human.m4: New file.
76222
76223         Module acl.
76224         * m4/acl.m4: Nop.
76225
76226         Module backupfile.
76227         * m4/backupfile.m4: New file.
76228         * m4/d-ino.m4: Indentation.
76229
76230         Module fsusage.
76231         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76232         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76233         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76234
76235         Module dirfd.
76236         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76237         requirements.
76238
76239         Module euidaccess.
76240         * m4/euidaccess.m4: New file.
76241
76242         Module file-type.
76243         * m4/file-type.m4: New file.
76244
76245         Module fileblocks.
76246         * m4/fileblocks.m4: New file.
76247
76248         Module filemode.
76249         * m4/filemode.m4: New file.
76250
76251         Module isdir.
76252         * m4/isdir.m4: New file.
76253
76254         Module lchown.
76255         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76256         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76257
76258         Module makepath.
76259         * m4/makepath.m4: New file.
76260
76261         Module modechange.
76262         * m4/modechange.m4: New file.
76263
76264         Module mountlist.
76265         * m4/mountlist.m4: New file.
76266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76267         Indentation.
76268
76269         Module path-concat.
76270         * m4/path-concat.m4: New file.
76271
76272         Module pathmax.
76273         * m4/pathmax.m4: New file.
76274
76275         Module same.
76276         * m4/same.m4: New file.
76277
76278         Module save-cwd.
76279         * m4/save-cwd.m4: New file.
76280
76281         Module savedir.
76282         * m4/savedir.m4: New file.
76283
76284         Module xgetcwd.
76285         * m4/xgetcwd.m4: New file.
76286         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76287
76288         Module xreadlink.
76289         * m4/xreadlink.m4: New file.
76290
76291         Module safe-read.
76292         * m4/safe-read.m4: New file.
76293
76294         Module safe-write.
76295         * m4/safe-write.m4: New file.
76296
76297         Module closeout.
76298         * m4/closeout.m4: New file.
76299
76300         Module stdio-safer.
76301         * m4/stdio-safer.m4: New file.
76302
76303         Module getpass.
76304         * m4/getpass.m4: New file.
76305
76306         Module getugroups.
76307         * m4/getugroups.m4: New file.
76308
76309         Module group-member.
76310         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76311         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76312
76313         Module idcache.
76314         * m4/idcache.m4: New file.
76315
76316         Module userspec.
76317         * m4/userspec.m4: New file.
76318
76319         Module gettime.
76320         * m4/clock_time.m4: New file.
76321         * m4/gettime.m4: New file.
76322
76323         Module settime.
76324         * m4/settime.m4: New file.
76325
76326         Module posixtm.
76327         * m4/posixtm.m4: New file.
76328
76329         Module gethostname.
76330         * m4/gethostname.m4: New file.
76331
76332         Module canon-host.
76333         * m4/canon-host.m4: New file.
76334
76335         Module gettext.
76336         * m4/codeset.m4: New file, from gettext-0.11.5.
76337         * m4/gettext.m4: New file, from gettext-0.11.5.
76338         * m4/glibc21.m4: New file, from gettext-0.11.5.
76339         * m4/iconv.m4: New file, from gettext-0.11.5.
76340         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76341         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76342         * m4/inttypes.m4: New file, from gettext-0.11.5.
76343         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76344         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76345         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76346         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76347         * m4/lib-link.m4: New file, from gettext-0.11.5.
76348         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76349         * m4/progtest.m4: New file, from gettext-0.11.5.
76350         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76351         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76352         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76353
76354         Module localcharset.
76355         * m4/localcharset.m4: New file.
76356
76357         Module hard-locale.
76358         * m4/hard-locale.m4: New file.
76359
76360         Module mbswidth.
76361         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76362         onceonly macros.
76363         * m4/mbrtowc.m4: Add comment.
76364
76365         Module memcasecmp.
76366         * m4/memcasecmp.m4: New file.
76367
76368         Module memcoll.
76369         * m4/memcoll.m4: New file.
76370
76371         Module unicodeio.
76372         * m4/unicodeio.m4: New file.
76373
76374         Module rpmatch.
76375         * m4/rpmatch.m4: New file.
76376
76377         Module yesno.
76378         * m4/yesno.m4: New file.
76379
76380         Module exitfail.
76381         * m4/exitfail.m4: New file.
76382
76383         Module c-stack.
76384         * m4/c-stack.m4 (gl_C_STACK): New macro.
76385         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76386
76387         Module error.
76388         * m4/error.m4 (gl_ERROR): New macro.
76389         (jm_PREREQ_ERROR): Use onceonly macros.
76390
76391         Module fatal.
76392         * m4/fatal.m4: New file.
76393
76394         Module getloadavg.
76395         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76396         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76397
76398         Module getpagesize.
76399         * m4/getpagesize.m4: New file.
76400
76401         Module getusershell.
76402         * m4/getusershell.m4: New file.
76403
76404         Module physmem.
76405         * m4/physmem.m4: New file.
76406
76407         Module posixver.
76408         * m4/posixver.m4: New file.
76409
76410         Module quotearg.
76411         * m4/quotearg.m4: New file.
76412
76413         Module quote.
76414         * m4/quote.m4: New file.
76415
76416         Module readutmp.
76417         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76418
76419         Module sig2str.
76420         * m4/sig2str.m4: New file.
76421
76422         Other.
76423         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76424         ulonglong.m4.
76425         * m4/intmax_t.m4: New file.
76426         * m4/d-type.m4: Indentation.
76427         * m4/jm-macros.m4: Update.
76428         * m4/prereq.m4 (jm_PREREQ): Update.
76429         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76430         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76431         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76432         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76433         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76434         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76435         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76436         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76437         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76438         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76439         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76440         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76441         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76442         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76443         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76444         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76445         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76446         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76447         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76448
76449 2002-12-24  Bruno Haible  <bruno@clisp.org>
76450
76451         * MODULES.txt: Update according to m4/ changes.
76452
76453         Module gettext.
76454         * config.rpath: New file, from gettext-0.11.5.
76455
76456         * modules/*: New module descriptions.
76457         * gnulib-tool: New file.
76458         * MODULES.html.sh: New file.
76459
76460 2002-12-21  Karl Berry  <karl@gnu.org>
76461
76462         * doc/fdl.texi: update to version 1.2.
76463
76464 2002-12-19  Karl Berry  <karl@gnu.org>
76465
76466         * config/config.guess: update from prep.
76467
76468 2002-12-18  Bruno Haible  <bruno@clisp.org>
76469
76470         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76471         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76472
76473 2002-12-17  Bruno Haible  <bruno@clisp.org>
76474
76475         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76476         stdlib.h, string.h.
76477
76478 2002-12-17  Bruno Haible  <bruno@clisp.org>
76479
76480         * lib/canon-host.c (strdup): Remove unused declaration.
76481
76482         * lib/fsusage.c: Include full_read.h.
76483         (get_fs_usage): Use full_read instead of safe_read.
76484
76485         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76486
76487 2002-12-12  Karl Berry  <karl@gnu.org>
76488
76489         * config/config.guess: update from prep.
76490
76491 2002-12-11  Bruno Haible  <bruno@clisp.org>
76492
76493         * m4/setenv.m4: New file, from gettext-0.11.5.
76494
76495 2002-12-11  Bruno Haible  <bruno@clisp.org>
76496
76497         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76498         not unsetenv().
76499         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76500         modifications:
76501
76502         2002-12-11  Bruno Haible  <bruno@clisp.org>
76503
76504                 * setenv.c (alloca): Fall back to malloc.
76505                 (freea): New macro.
76506                 (setenv): Use freea() to free memory allocated with alloca().
76507
76508         2002-11-13  Bruno Haible  <bruno@clisp.org>
76509
76510                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76511                 function declarations.
76512                 * unsetenv.c (unsetenv): Likewise.
76513
76514         2002-03-04  Bruno Haible  <bruno@clisp.org>
76515
76516                 Portability to AIX 4.3.3.
76517                 * unsetenv.c: New file, extracted from setenv.c.
76518                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76519
76520         2001-12-20  Bruno Haible  <bruno@clisp.org>
76521
76522                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76523                 use malloc instead. For SunOS 4.
76524
76525         2001-12-11  Bruno Haible  <bruno@clisp.org>
76526
76527                 * setenv.c: Declare alloca.
76528                 (compar_fn_t): New typedef.
76529                 (KNOWN_VALUE, STORE_VALUE): Use it.
76530
76531         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76532         setenv.h.
76533
76534 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76535
76536         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76537         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76538         Choose values that are less likely to collide with system fnmatch
76539         options.
76540         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76541         defined (e.g., a pure POSIX system).
76542         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76543         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76544
76545 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76546
76547         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76548         a pain in practice to deal with generated m4 files.  This change
76549         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76550
76551         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76552         and jm-glibc-io.m4, as they are no longer a special case.
76553         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76554         kludge and the auto-generation stuff.  Check only whether the
76555         functions are declared, not whether they exist, since older hosts
76556         that don't declare the functions can't use the optimization anyway.
76557
76558 2002-12-06  Jim Meyering  <jim@meyering.net>
76559
76560         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76561
76562         Merge in changes from libc's misc/error.c, in preparation
76563         for the merge of gnulib's changes back into libc.
76564
76565         * lib/error.c (_): Define only if not already defined.
76566         Move definition to follow all #include directives.
76567         Include unlocked-io.h only if !_LIBC.
76568         [_LIBC]: Include <libio/libioP.h>.
76569         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76570         (fflush): Tweak definition to use INTUSE.
76571         (putc): Define.
76572
76573 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76574
76575         * lib/alloca.c [defined emacs]: Include "lisp.h".
76576         (xalloc_die) [defined emacs]: New macro.
76577         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76578         [! defined emacs]: Include <xalloc.h>.
76579         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76580         (pointer): Typedef to POINTER_TYPE *.
76581         (malloc): Remove decl; we now always use xmalloc.
76582         (alloca): Use old-style definition, since Emacs needs this.
76583         Check for arithmetic overflow when computing combined size.
76584
76585 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76586
76587         Do not generate unlocked-io.h automatically, since it's easier to
76588         maintain it by hand.
76589
76590         * lib/unlocked-io.h: New file, from GNU diffutils,
76591         but with proper copyright notice and attribution.
76592         * lib/gen-uio: Remove.
76593         * lib/Makefile.am: Add copyright notice.
76594         (libfetish_a_SOURCES): Add unlocked-io.h.
76595         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76596         (DISTCLEANFILES, io_functions): Remove macros.
76597         (EXTRA_DIST): Remove gen_uio.
76598         (unlocked-io.h): Remove rule.
76599
76600 2002-12-04  Jim Meyering  <jim@meyering.net>
76601
76602         Reflect the fact that stat.c and lstat.c are no longer generated.
76603         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76604         (DISTCLEANFILES): Likewise.
76605         (EXTRA_DIST): Likewise.
76606         (all_local): Don't depend on stat.c or lstat.c.
76607         (stat.c, lstat.c): Remove rules.
76608         (EXTRA_DIST): Remove xstat.in.
76609
76610         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76611         * lib/stat.c: New file.  Contents mostly from xstat.in.
76612         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76613         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76614
76615         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76616         too.
76617         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76618
76619 2002-12-03  Jim Meyering  <jim@meyering.net>
76620
76621         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76622         but not semantics, to minimize the differences between these two files.
76623         (safe_read): Change comment to mention SAFE_READ_ERROR.
76624
76625         * lib/safe-read.c (IS_EINTR): Define.
76626         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76627
76628 2002-12-02  Jim Meyering  <jim@meyering.net>
76629
76630         * lib/safe-read.c (EINTR): Define.
76631         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76632         (INT_MAX): Provide fallback.
76633         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76634
76635         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76636
76637 2002-12-02  Bruno Haible  <bruno@clisp.org>
76638
76639         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76640         Define, taken from safe-read.c.
76641         (INT_MAX): Provide fallback.
76642         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76643         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76644
76645         * lib/safe-read.c (EINTR): Remove definition.
76646         (safe_read): Don't use EINTR if it is absent.
76647
76648 2002-12-01  Jim Meyering  <jim@meyering.net>
76649
76650         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76651         zero.
76652         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76653
76654 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76655
76656         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76657         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76658         with `if (! (value < limit)) abort ();', for readability.
76659
76660 2002-11-26  Karl Berry  <karl@gnu.org>
76661
76662         * lib/strdup.c: copy from libc again, with jim's ok.
76663         * lib/.cppi-disable: re-add strdup.c
76664
76665 2002-11-25  Karl Berry  <karl@gnu.org>
76666
76667         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76668         instead of "strtol.c".
76669
76670 2002-11-25  Karl Berry  <karl@gnu.org>
76671
76672         * config/install-sh: update from automake for variable quoting, $0 in
76673         error msgs, etc.
76674
76675         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76676         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76677         entry.
76678
76679 2002-11-25  Jim Meyering  <jim@meyering.net>
76680
76681         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76682
76683 2002-11-24  Karl Berry  <karl@gnu.org>
76684
76685         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76686         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76687
76688 2002-11-24  Jim Meyering  <jim@meyering.net>
76689
76690         Update from coreutils:
76691
76692         * lib/mktime.c: Merge in changes from libc.
76693
76694         Avoid a link-time failure on some Linux systems.
76695         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76696         (otherwise).
76697         (__mon_yday): Declare with the STATIC attribute.
76698         (__mktime_internal): Likewise.
76699         Based on a report from Greg Schafer.
76700
76701 2002-11-23  Jim Meyering  <jim@meyering.net>
76702
76703         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76704         Use `unsigned', not `int', as type of index.
76705
76706         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76707
76708         * lib/fsusage.c: Remove unneeded parentheses around operands of
76709         `defined'.
76710
76711 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76712
76713         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76714         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76715         so that we can be included first.
76716         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76717         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76718         No need to include stddef.h or sys/types.h any more.
76719         Surround local include files with "", not "<>".
76720         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76721         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76722         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76723         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76724         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76725         (ISPRINT): Remove; no longer needed now that we assume C89.
76726
76727         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76728         Preserve errno.
76729
76730         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76731         quotearg_char): Use SIZE_MAX rather than
76732         (size_t) -1 when we are talking about "infinity".
76733
76734         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76735
76736 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76737
76738         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76739         hint that one should use `if (! x) abort ();' rather than `assert
76740         (x);', and anyway it's one less thing to worry about configuring.
76741         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76742         hash_rehash, hash_insert): Use abort rather than assert.
76743
76744 2002-11-22  Bruno Haible  <bruno@clisp.org>
76745
76746         * lib/safe-read.h: Assume C89. Add comments.
76747         (safe_read): Change return type to size_t.
76748         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76749         byte counts > SSIZE_MAX correctly.
76750         * lib/safe-write.h: New file.
76751         * lib/safe-write.c: New file.
76752         * lib/full-read.h: New file.
76753         * lib/full-read.c: New file.
76754         * lib/full-write.h: Assume C89. Add comments.
76755         * lib/full-write.c: Include safe-write.h.
76756         (full_write): Rewritten to use safe_write.
76757         Suggested by Jim Meyering and Paul Eggert.
76758
76759 2002-11-21  Jim Meyering  <jim@meyering.net>
76760
76761         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76762
76763         Merge in changes from the coreutils.
76764
76765         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76766         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76767         <stdint.h>.
76768         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76769         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76770         int.  Work more efficiently if X is the same width as uintmax_t.
76771         Do not compare X to -1, to avoid bogus compiler warning.
76772         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76773         Don't assume that f_frsize and f_bsize are the same type.
76774
76775         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76776         warning on FreeBSD.
76777
76778         * lib/makepath.c (make_path): Restore umask *before* creating the final
76779         component.
76780         (make_path): Minor reformatting.
76781
76782         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76783         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76784         HAVE_MALLOC/HAVE_REALLOC.
76785
76786         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76787         dummy ones.  At least on GNU/Linux systems, `auto' means something
76788         else.
76789         From Michael Stone.
76790
76791 2002-11-21  Bruno Haible  <bruno@clisp.org>
76792
76793         Remove case insensitive option matching.
76794         * lib/argmatch.h (argcasematch): Remove declaration.
76795         (ARGCASEMATCH): Remove macro.
76796         (__xargmatch_internal): Remove case_sensitive argument.
76797         (XARGMATCH): Update.
76798         (XARGCASEMATCH): Remove macro.
76799         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76800         case_sensitive argument.
76801         (argcasematch): Remove function.
76802         (__xargmatch_internal): Remove case_sensitive argument.
76803         (main): Use XARGMATCH instead of XARGCASEMATCH.
76804
76805         * lib/xmalloc.c: Change compile-time error message. Add comment about
76806         required autoconf version.
76807
76808 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76809
76810         Merge argmatch cleanups from Bison.  Assume C89.
76811
76812         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76813         Include stdlib.h, for EXIT_FAILURE.
76814         Always include <string.h>, since we assume C89.
76815         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76816         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76817         Include <stddef.h> instead, since it's all we need for size_t.
76818         (PARAMS): Remove.  All uses removed.
76819         (ARRAY_CARDINALITY): Do not bother to #undef.
76820         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76821         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76822         Remove unnecessary parentheses.
76823         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76824         Insert necessary parentheses.
76825         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76826         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76827
76828 2002-11-19  Bruno Haible  <bruno@clisp.org>
76829
76830         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76831         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76832
76833         * lib/mbswidth.h (PARAMS): Remove macro.
76834         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76835         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76836
76837         * lib/gcd.h (PARAMS): Remove macro.
76838         (gcd): Use ANSI C function declarations.
76839         * lib/gcd.c (gcd): Likewise.
76840
76841 2002-11-15  Bruno Haible  <bruno@clisp.org>
76842
76843         * lib/strcspn.c: Include <stddef.h>.
76844         (strcspn): Use ANSI C function declaration. Change return type to
76845         size_t. Use NULL.
76846         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76847         (strpbrk): Use NULL.
76848         * lib/strpbrk.h (PARAMS): Remove macro.
76849         (strpbrk): Use ANSI C function declaration.
76850         * lib/strstr.c: Don't include <sys/types.h>.
76851         * lib/strstr.h (PARAMS): Remove macro.
76852         (strstr): Use ANSI C function declarations.
76853
76854 2002-11-14  Karl Berry  <karl@gnu.org>
76855
76856         * config/mkinstalldirs: `do' on separate line, instead of
76857         `for var; do'.
76858
76859 2002-11-06  Bruno Haible  <bruno@clisp.org>
76860
76861         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76862         * lib/gcd.c (gcd): Likewise.
76863
76864 2002-11-05  Bruno Haible  <bruno@clisp.org>
76865
76866         * lib/gcd.h: New file, from gettext-0.11.5.
76867         * lib/gcd.c: New file, from gettext-0.11.5.
76868
76869 2002-11-05  Bruno Haible  <bruno@clisp.org>
76870
76871         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76872         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76873         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76874         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76875
76876         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76877         <libintl.h>.
76878         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76879         <libintl.h>.
76880
76881         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76882         * lib/human.c: Include gettext.h instead of <libintl.h>.
76883         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76884         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76885         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76886         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76887         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76888         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76889         (textdomain): Remove definition.
76890         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76891
76892         * lib/long-options.c: Remove include of <libintl.h> and definition of
76893         _.
76894         * lib/same.c: Remove include of <libintl.h> and definition of _.
76895
76896 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76897
76898         * lib/config.charset: A few additions for Solaris.
76899
76900 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76901
76902         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76903         * lib/localcharset.c (locale_charset): Declare as extern "C".
76904
76905 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76906
76907         * lib/config.charset: msdos in uk_UA uses CP1125.
76908
76909 2002-11-04  Bruno Haible  <bruno@clisp.org>
76910
76911         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76912         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76913         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76914         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76915         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76916
76917 2002-11-04  Bruno Haible  <bruno@clisp.org>
76918
76919         * lib/localcharset.c (locale_charset): Don't return an empty string.
76920
76921 2002-11-04  Bruno Haible  <bruno@clisp.org>
76922
76923         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76924         aliases.
76925
76926 2002-11-04  Bruno Haible  <bruno@clisp.org>
76927
76928         * lib/config.charset: Update for newest glibc. Add canonical names
76929         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76930
76931 2002-11-04  Bruno Haible  <bruno@clisp.org>
76932
76933         * lib/config.charset: Add support for NetBSD.
76934
76935 2002-11-04  Bruno Haible  <bruno@clisp.org>
76936
76937         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76938
76939 2002-11-01  Bruno Haible  <bruno@clisp.org>
76940
76941         * configure.in: Add AC_CONFIG_AUX_DIR call.
76942         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76943         test/Makefile.
76944         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76945
76946 2002-09-28  Karl Berry  <karl@gnu.org>
76947
76948         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76949         installed automake until the next release, since changes have been
76950         made.
76951
76952 2002-09-25  Karl Berry  <karl@gnu.org>
76953
76954         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76955         * lib/getopt*: copy from libc/posix.
76956         * lib/gettext.h: copy from gettext.
76957         * lib/.cppi-disable: add strdup.c, gettext.h.
76958
76959 2002-09-25  Karl Berry  <karl@gnu.org>
76960
76961         * config/srclist.txt: enable gettext.h check.
76962         * config/config.{guess,sub}: update from prep.
76963         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76964                 from automake 1.6.3.
76965         See srclist*.
76966
76967 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76968
76969         * regex.c (PATFETCH): Remove the translating fetch.
76970         (PATFETCH_RAW): Rename to PATFETCH.
76971         (set_image_of_range): New fun.
76972         (SET_RANGE_TABLE_WORK_AREA): Use it.
76973         (regex_compile): Don't translate the pattern chars so eagerly.
76974         Only do it when inserting an `exactn' bytecode or when handling
76975         a char-range.
76976         (mutually_exclusive_p): Avoid empty statement.
76977
76978 2002-07-06  Jim Meyering  <meyering@lucent.com>
76979
76980         * m4/README: Don't mention Makefile.am.in.
76981         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76982
76983 2002-07-01  Jim Meyering  <meyering@lucent.com>
76984
76985         * lib/c-stack.c: Include sys/time.h.
76986         From Volker Borchert.
76987
76988 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76989
76990         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76991
76992 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76993
76994         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76995         New macro.  Use it uniformly instead of
76996         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76997         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76998         reported by Vin Shelton.
76999
77000 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77001
77002         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77003         Do not assume SA_SIGINFO behavior.
77004         Bug reported by Jim Meyering on NetBSD 1.5.2.
77005
77006 2002-06-22  Jim Meyering  <meyering@lucent.com>
77007
77008         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77009         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77010
77011         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77012         now that configure.ac uses AC_GNU_SOURCE.
77013         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77014         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77015
77016         Update to latest tools.  Suggestions from Paul Eggert.
77017         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77018         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77019         * m4/fnmatch.m4: Likewise.
77020         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77021         to AC_HEADER_STDBOOL
77022
77023 2002-06-22  Jim Meyering  <meyering@lucent.com>
77024
77025         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77026         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77027
77028 2002-06-22  Jim Meyering  <meyering@lucent.com>
77029
77030         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77031
77032         * lib/exitfail.c, exitfail.h: Likewise.
77033         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77034
77035         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77036         of fnmatch.h.
77037         (EXTRA_DIST): Add fnmatch_loop.c.
77038         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77039
77040         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77041         * lib/fnmatch.c: Update from diffutils-2.8.2.
77042         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77043         * lib/fnmatch.h: Remove file.
77044
77045 2002-06-21  Jim Meyering  <meyering@lucent.com>
77046
77047         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77048         * m4/mbrtowc.m4: Likewise.
77049
77050         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77051         * m4/mbswidth.m4: Reflect name change:
77052         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77053         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77054
77055         * m4/lib-link.m4: Update from gettext-0.11.2.
77056         * m4/gettext.m4: Likewise.
77057
77058         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77059         From Alfred M. Szmidt.
77060
77061 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77062
77063         * lib/file-type.h: Report an error if neither S_ISREG nor
77064         S_IFREG is defined, instead of using a test specific to glibc
77065         2.2.  This should be safe, since POSIX requires S_ISREG and
77066         Unix Version 7 had S_IFREG.  We don't need to check for
77067         <sys/types.h> since we don't use any symbols that it defines.
77068
77069 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77070
77071         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77072         $@-t, so that each temporary file name is unique and valid in the first
77073         8 characters, for operation under DOS.
77074
77075 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77076
77077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77078
77079 2002-06-15  Jim Meyering  <meyering@lucent.com>
77080
77081         Work even with DJGPP 2.03, which lacks support for symlinks.
77082         From Richard Dawe.
77083         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77084         is defined.
77085         * lib/lchown.c (S_ISLNK): Likewise.
77086
77087 2002-06-15  Jim Meyering  <meyering@lucent.com>
77088
77089         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77090         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77091         have been included before this file.
77092
77093 2002-06-14  Jim Meyering  <meyering@lucent.com>
77094
77095         * lib/file-type.h: Use the version from diffutils-2.8.2.
77096         * lib/file-type.c: Likewise.
77097
77098 2002-06-07  Jim Meyering  <meyering@lucent.com>
77099
77100         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77101         They're needed at least for NetBSD 1.5.2.
77102         ($statxfs_includes): Include those same headers.
77103         ($statxfs_includes): Include sys/vfs.h if available.
77104         ($statxfs_includes): Likewise for sys/statvfs.h.
77105         Check for the following members in both structs statfs and statvfs:
77106         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77107
77108 2002-06-01  Jim Meyering  <meyering@lucent.com>
77109
77110         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77111         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77112
77113 2002-05-28  Jim Meyering  <meyering@lucent.com>
77114
77115         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77116         Reported by Volker Borchert.
77117
77118 2002-05-27  Jim Meyering  <meyering@lucent.com>
77119
77120         Fix a problem seen only on nonconforming systems whereby ls.c's
77121         use of localtime, and then of gettimeofday would cause trouble:
77122         the localtime call used to initialize rpl_gettimeofday's save
77123         mechanism would clobber ls's current local time information so
77124         that in any long listing the first file would always be listed
77125         with date 1970-01-01.  Analysis by Volker Borchert.
77126
77127         * lib/gettimeofday.c (localtime): Undefine.
77128         (rpl_localtime): New function.
77129
77130 2002-05-27  Jim Meyering  <meyering@lucent.com>
77131
77132         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77133         localtime.
77134
77135         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77136         use the replacement function; it wouldn't resolve at link time.
77137         Reported by Volker Borchert.
77138
77139 2002-05-22  Jim Meyering  <meyering@lucent.com>
77140
77141         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77142         file-type.h.
77143         * lib/file-type.h: New file.
77144         * lib/file-type.c (file_type): New file/function.  Extracted from
77145         diffutils.
77146
77147 2002-04-30  Jim Meyering  <meyering@lucent.com>
77148
77149         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77150
77151 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77152
77153         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77154
77155 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77156
77157         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77158         Do not check for alloca.h (no longer used) or stdbool.h (was never
77159         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77160
77161 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77162
77163         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77164
77165 2002-04-29  Jim Meyering  <meyering@lucent.com>
77166
77167         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77168         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77169         Use AC_FUNC_STRNLEN here instead.
77170
77171         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77172         With autoconf-2.53a, it's part of AC_PROG_CC.
77173
77174 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77175
77176         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77177         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77178
77179 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77180
77181         * lib/sig2str.h, lib/sig2str.c: New files.
77182         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77183
77184 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77185
77186         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77187         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77188         of 127, since 64 is the largest conceivable number for ancient
77189         nonstandard hosts.
77190         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77191
77192 2002-04-28  Jim Meyering  <meyering@lucent.com>
77193
77194         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77195
77196 2002-04-24  Jim Meyering  <meyering@lucent.com>
77197
77198         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77199         (jm_PREREQ): Use it.
77200
77201         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77202         mach/mach.h fcntl.h.
77203         Check for this function: setlocale.
77204
77205 2002-04-24  Jim Meyering  <meyering@lucent.com>
77206
77207         * lib/gettext.h: New file, from Gettext.
77208         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77209         (libfetish_a_SOURCES): Add gettext.h.
77210
77211 2002-04-16  Jim Meyering  <meyering@lucent.com>
77212
77213         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77214         ut_pid, ut_id, ut_exit.
77215
77216 2002-04-16  Jim Meyering  <meyering@lucent.com>
77217
77218         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77219         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77220         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77221
77222 2002-04-12  Jim Meyering  <meyering@lucent.com>
77223
77224         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77225         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77226         existence of the getmntinfo function.  Needed for Darwin 5.3.
77227
77228         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77229         This is necessary at least on Darwin 5.3.
77230
77231         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77232         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77233         strnlen.o in the library, and that makes some versions of ranlib
77234         object.
77235
77236 2002-04-12  Jim Meyering  <meyering@lucent.com>
77237
77238         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77239
77240 2002-04-09  Jim Meyering  <meyering@lucent.com>
77241
77242         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77243         to be more precise.  Rather than saying we're checking whether the
77244         function `works', say what we're testing.
77245         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77246         Reported by Bruno Haible.
77247
77248 2002-03-10  Jim Meyering  <meyering@lucent.com>
77249
77250         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77251         Suggestion from Santiago Vila.
77252
77253 2002-03-08  Jim Meyering  <meyering@lucent.com>
77254
77255         * lib/rename.c: Mention that this wrapper is needed also on
77256         mips-dec-ultrix4.4 systems.
77257
77258 2002-03-02  Jim Meyering  <meyering@lucent.com>
77259
77260         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77261         not HAVE_CLOCK_SETTIME.
77262
77263 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77264
77265         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77266         Check for clock_settime.
77267
77268 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77269
77270         * lib/nanosleep.h: Rename to....
77271         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77272
77273         * lib/gettime.c: New file.
77274         * lib/settime.c: New file.
77275         * lib/stime.c: Remove.
77276
77277         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77278         timespec.h.  Remove nanosleep.h.
77279
77280 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77281
77282         * m4/acl.m4: New file.
77283         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77284         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77285
77286 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77287
77288         * lib/acl.c, lib/acl.h: New files.
77289         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77290
77291 2002-02-24  Jim Meyering  <meyering@lucent.com>
77292
77293         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77294         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77295         cause trouble.  Reported by Nelson Beebe.
77296
77297 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77298
77299         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77300         compilers that don't know that xalloc_die never returns.
77301
77302 2002-02-20  Jim Meyering  <meyering@lucent.com>
77303
77304         * lib/getdate.c: Regenerate using bison-1.33.
77305
77306 2002-02-17  Jim Meyering  <meyering@lucent.com>
77307
77308         * config/config.guess (main): Don't use `head -1'; it's no longer
77309         portable. Use `sed 1q' instead.
77310
77311 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77312
77313         * m4/codeset.m4: Upgrade to gettext-0.11.
77314         * m4/gettext.m4: Upgrade to gettext-0.11.
77315         * m4/glibc21.m4: Upgrade to gettext-0.11.
77316         * m4/iconv.m4: Upgrade to gettext-0.11.
77317         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77318         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77319         * m4/lib-ld.m4: New file, from gettext-0.11.
77320         * m4/lib-link.m4: New file, from gettext-0.11.
77321         * m4/lib-prefix.m4: New file, from gettext-0.11.
77322         * m4/progtest.m4: Upgrade to gettext-0.11.
77323
77324 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77325
77326         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77327         (jm_PREREQ): Use it.
77328
77329 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77330
77331         * lib/posixver.c, lib/posixver.h: New files.
77332         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77333
77334 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77335             Bruno Haible  <bruno@clisp.org>
77336
77337         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77338         (fwrite_success_callback): New declaration.
77339         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77340         print_unicode_char. Call failure callback instead of error.
77341         (fwrite_success_callback): New function.
77342         (exit_failure_callback): New function.
77343         (fallback_failure_callback): New function.
77344         (print_unicode_char): Call unicode_to_mb.
77345
77346 2002-01-26  Jim Meyering  <meyering@lucent.com>
77347
77348         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77349         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77350
77351 2002-01-26  Jim Meyering  <meyering@lucent.com>
77352
77353         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77354
77355 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77356
77357         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77358
77359 2002-01-22  Jim Meyering  <meyering@lucent.com>
77360
77361         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77362         Otherwise, some versions of automake would omit the rule that makes
77363         Makefile from Makefile.in.
77364
77365 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77366
77367         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77368         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77369         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77370         (memcoll): Set errno to zero if there is no error.
77371
77372         * lib/quotearg.c (quotearg_buffer_restyled):
77373         Fix bug with quoting buffers containing NUL when backslashing escapes.
77374         This bug was exposed by the other changes in this patch.
77375         (quotearg_n_options): New arg ARGSIZE.
77376         All callers changed.
77377         (quoting_options_from_style): New function.
77378         (quotearg_n_style): Use it.
77379         (quotearg_n_style_mem): New function.
77380
77381         * lib/quotearg.h (quotearg_n_style_mem): New function.
77382
77383 2002-01-19  Jim Meyering  <meyering@lucent.com>
77384
77385         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77386         Remove useless quotes: DF_PROG="df".
77387         * m4/strnlen.m4: New file.
77388
77389 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77390
77391         * lib/backupfile.c (ISDIGIT): Comment fix.
77392         * lib/getdate.y (ISDIGIT): Likewise.
77393         * lib/posixtm.c (ISDIGIT, year): Likewise.
77394         * lib/strverscmp.c (ISDIGIT): Likewise.
77395         * lib/userspec.c (ISDIGIT): Likewise.
77396
77397 2002-01-16  Jim Meyering  <meyering@lucent.com>
77398
77399         * lib/getdate.y: Add three semicolons, each just before a closing
77400         brace. Bison (as of version 1.31) no longer papers over that mistake.
77401
77402 2002-01-05  Jim Meyering  <meyering@lucent.com>
77403
77404         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77405
77406 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77407
77408         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77409         not silently exit merely because the output buffer happens to
77410         have nothing pending.
77411
77412 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77413
77414         See the big note in ../ChangeLog.
77415         * lib/human.c (suffixes): Prefer K to k for 1024.
77416         (generate_suffix_backwards): New function.
77417         (human_readable_inexact): Use it.
77418         * lib/xstrtol.c (__xstrtol): If there is no number but there
77419         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77420         Accept 'K' as well as 'k'.
77421
77422 2001-12-15  Jim Meyering  <meyering@lucent.com>
77423
77424         * lib/regex.h (__restrict_arr): Update from libc.
77425
77426         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77427         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77428         (STREQ): Define.
77429
77430 2001-12-14  Jim Meyering  <meyering@lucent.com>
77431
77432         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77433         Suggestion from Bruno Haible.
77434
77435 2001-12-10  Jim Meyering  <meyering@lucent.com>
77436
77437         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77438         xrealloc, Instead, include "xalloc.h".
77439         (initbuffer): Don't cast xmalloc return value to char*.
77440         (readline): Reword comment.
77441         Don't cast xrealloc return value to char*
77442         Return NULL, not 0.
77443
77444 2001-12-09  Jim Meyering  <meyering@lucent.com>
77445
77446         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77447         about `signed and unsigned type in conditional expression'.
77448         * lib/posixtm.c (posix_time_parse): Likewise.
77449
77450         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77451
77452         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77453         to avoid a pedantic warning.
77454
77455         * lib/getstr.c: Don't include assert.h.
77456         (getstr): Remove warning-evoking assertions.
77457         Return -1 if offset parameter is out of bounds.
77458         Change the type of a local from int to size_t.
77459
77460         * lib/strftime.c (my_strftime_localtime_r): Include this function
77461         definition in the `#if ! HAVE_TM_GMTOFF' block.
77462
77463         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77464         Include xalloc.h instead.
77465
77466 2001-12-02  Jim Meyering  <meyering@lucent.com>
77467
77468         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77469         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77470         included.
77471
77472         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77473         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77474
77475 2001-11-30  Akim Demaille  <akim@epita.fr>
77476
77477         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77478         before being defined.
77479
77480 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77481
77482         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77483         First arg is int, not unsigned.
77484         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77485         (SIZE_MAX, UINT_MAX): New macros.
77486         (quotearg_n_options): Abort if N is negative.
77487         Avoid overflow check on hosts where size_t is 64 bits and int
77488         is 32 bits, as overflow is impossible there.
77489         Fix off-by-one typo that caused unnecessary reallocation.
77490
77491 2001-11-27  Jim Meyering  <meyering@lucent.com>
77492
77493         * lib/tempname.c: Merge with version from libc.
77494         * lib/regex.c: Likewise.
77495
77496         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77497         systems for which STDC_HEADERS is 0, it was not included, resulting in
77498         a warning about an integer-to-pointer conversion problem with getenv.
77499         Reported by Volker Borchert.
77500
77501 2001-11-26  Jim Meyering  <meyering@lucent.com>
77502
77503         * lib/gtod.h: Remove file.
77504         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77505         * lib/gettimeofday.c: Don't include gtod.h.
77506         (GTOD_init): Remove function.
77507         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77508         Suggestion from Volker Borchert.
77509
77510 2001-11-23  Jim Meyering  <meyering@lucent.com>
77511
77512         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77513         it.
77514         * lib/hash.c (struct hash_table): Define it here instead.
77515
77516 2001-11-22  Jim Meyering  <meyering@lucent.com>
77517
77518         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77519
77520 2001-11-20  Jim Meyering  <meyering@lucent.com>
77521
77522         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77523         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77524
77525 2001-11-19  Jim Meyering  <meyering@lucent.com>
77526
77527         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77528         directory.  Use "conftestXXXXXX" as the template.
77529         Suggestion from Paul Eggert.
77530
77531         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77532         immediately, so the test doesn't mistakenly hit the max-open-files
77533         limit.
77534
77535 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77536
77537         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77538         (TEMPORARIES): New macro.
77539         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77540         removes an artificial limitation (e.g. HP-UX 10.20, where
77541         TMP_MAX is 17576).
77542
77543 2001-11-18  Jim Meyering  <meyering@lucent.com>
77544
77545         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77546
77547 2001-11-18  Jim Meyering  <meyering@lucent.com>
77548
77549         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77550         on SunOS 4.
77551
77552         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77553         files will be created before anything else.
77554
77555 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77556
77557         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77558         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77559
77560 2001-11-17  Jim Meyering  <meyering@lucent.com>
77561
77562         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77563         Prompted by a report from Bob Proulx.
77564
77565         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77566         Instead, require UTILS_FUNC_MKSTEMP.
77567
77568 2001-11-17  Jim Meyering  <meyering@lucent.com>
77569
77570         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77571         Now, that's done as part of AC_FUNC_STRTOD.
77572
77573 2001-11-17  Jim Meyering  <meyering@lucent.com>
77574
77575         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77576         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77577         rather than group writable.  Patch by Juan F. Codagnone.
77578
77579         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77580         xrealloc, Instead, include "xalloc.h".
77581
77582         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77583         Remove explicit declarations of xmalloc, xrealloc,
77584         and xstrdup.  Instead, include "xalloc.h".
77585
77586         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77587         unlocked-io.h.
77588         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77589         Likewise.
77590         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77591
77592         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77593         Reported by Padraig Brady.
77594
77595         * lib/mkstemp.c: #undef mkstemp.
77596         Include config.h.
77597         (rpl_mkstemp): Rename from mkstemp.
77598         Protoize.
77599
77600 2001-11-16  Jim Meyering  <meyering@lucent.com>
77601
77602         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77603         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77604         determine the amount of total physical memory, use pstat_getstatic.
77605         HPUX-11 doesn't define _SC_PHYS_PAGES.
77606         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77607         If sysconf couldn't be used to determine the amount of available
77608         physical memory, use both pstat_getstatic and pstat_getdynamic.
77609         Based on a patch from Bob Proulx.
77610
77611 2001-11-10  Jim Meyering  <meyering@lucent.com>
77612
77613         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77614         (jm_PREREQ): Use it.
77615
77616 2001-11-09  Jim Meyering  <meyering@lucent.com>
77617
77618         * m4/jm-macros.m4: Require autoconf-2.52f.
77619         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77620         Use these AC_-prefixed names, not the AM_-prefixed ones.
77621
77622         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77623
77624 2001-11-05  Jim Meyering  <meyering@lucent.com>
77625
77626         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77627
77628 2001-11-04  Jim Meyering  <meyering@lucent.com>
77629
77630         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77631         $DEFS.
77632
77633 2001-11-03  Jim Meyering  <meyering@lucent.com>
77634
77635         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77636         of AC_DEFUN.
77637
77638         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77639         know the name of the variable in the macro definition.
77640
77641 2001-11-03  Jim Meyering  <meyering@lucent.com>
77642
77643         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77644         in argmatch_to_argument call.
77645
77646         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77647         argument.
77648
77649         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77650         e.g., a fault due to an attempt to free a NULL pointer.
77651
77652 2001-11-01  Jim Meyering  <meyering@lucent.com>
77653
77654         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77655         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77656
77657 2001-11-01  Jim Meyering  <meyering@lucent.com>
77658
77659         * lib/dirfd.c, lib/dirfd.h: New files.
77660         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77661
77662         * lib/hash.c (hash_print) [TESTING]: Clean up.
77663
77664 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77665
77666         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77667         to avoid a warning if -Wall.
77668
77669 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77670
77671         * README: New file
77672         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77673         (per RMS's instructions, this is now the canonical source)
77674         * lgpl/, gpl/: New directories.
77675
77676 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77677
77678         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77679
77680 2001-10-21  Jim Meyering  <meyering@lucent.com>
77681
77682         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77683         this code would end up calling gettext even in packages built
77684         with --disable-nls.
77685         * lib/getopt.c (_): Likewise.
77686         * lib/regex.c (_): Likewise.
77687
77688 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77689
77690         * m4/error.m4 (jm_PREREQ_ERROR):
77691         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77692         AC_FUNC_STRERROR_R does that.
77693         Check for strerror declaration.
77694
77695         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77696         are supposed to have them these days.
77697         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77698         Merge changes from latest Autoconf CVS.
77699         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77700         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77701         POSIX decided to standardize on the int flavor of strerror_r.
77702
77703 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77704
77705         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77706         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77707         Use strerror_r that is only a macro, even if it is not a function.
77708         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77709         (private_strerror): Use prototypes, not old-style function definition.
77710         (print_errno_message): New function.
77711         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77712         char*-flavored one.
77713         (error_tail, error, error_at_line): Use it.
77714
77715 2001-10-11  Jim Meyering  <meyering@lucent.com>
77716
77717         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77718         and quote_n (1, ... to avoid clobbering a buffer.
77719
77720 2001-10-05  Jim Meyering  <meyering@lucent.com>
77721
77722         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77723         hash-pjw.h.
77724         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77725         * lib/hash-pjw.h: New file.
77726
77727 2001-09-30  Jim Meyering  <meyering@lucent.com>
77728
77729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77730         `struct fsstat' has the `f_fstypename' member.
77731         Use that to define FS_TYPE, which is now used to make
77732         the getfsstat link test tighter.
77733
77734 2001-09-30  Jim Meyering  <meyering@lucent.com>
77735
77736         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77737         Include <sys/ucred.h>, for Apple Darwin.
77738         Include sys/mount.h and sys/fs_types.h only if available.
77739         (FS_TYPE): Define.
77740         (read_filesystem_list): Use FS_TYPE.
77741
77742 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77743
77744         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77745         a boolean context.
77746
77747 2001-09-29  Jim Meyering  <meyering@lucent.com>
77748
77749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77750         [one-argument getmntent function]): Include stdio.h before mntent.h.
77751         SunOS 4.1.x needs it for the declaration of `FILE'.
77752         Patch by Volker Borchert.
77753
77754         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77755         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77756         sys/fs_types.h, and make the link-test for getfsstat guard #include
77757         directives with appropriate #if HAVE_*_H tests so that we can
77758         detect getfsstat on Apple Darwin1.3.7 systems.
77759         Reported by Nelson Beebe.
77760         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77761
77762 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77763
77764         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77765         #defines strtoimax.  Also treat the other strto* functions
77766         like strtoimax.
77767
77768         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77769         Check for strtoul and strtoumax,
77770         as those declarations are made even in the signed case.
77771         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77772         Likewise, for strtol and strtoimax.
77773
77774 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77775
77776         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77777         #defines strtoimax.  Also treat the other strto* functions
77778         like strtoimax.
77779
77780         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77781         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77782         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77783
77784 2001-09-26  Jim Meyering  <meyering@lucent.com>
77785
77786         Most macros in unlocked-io.h had the wrong number of arguments.
77787         * lib/gen-uio: New script.
77788         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77789         * lib/unlocked-io.hin: Remove file.
77790         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77791         rather than trying to embed it here.
77792         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77793         Reported by Padraig Brady.
77794
77795 2001-09-25  Volker Borchert  <bt@teknon.de>
77796
77797         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77798         `result'.
77799
77800 2001-09-24  Jim Meyering  <meyering@lucent.com>
77801
77802         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77803
77804 2001-09-23  Jim Meyering  <meyering@lucent.com>
77805
77806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77807         instead of the mere test for existence of mntent.h.  The latter
77808         would get a false-positive on AIX 3.4 systems.
77809         In the outer getmntent if-block, don't die if neither of the getmntent
77810         tests succeeds.  Instead, just fall through and continue with the
77811         remaining tests.
77812
77813 2001-09-23  Jim Meyering  <meyering@lucent.com>
77814
77815         * lib/mountlist.c: Remove useless parentheses in #if directives.
77816         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77817         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77818
77819 2001-09-22  Jim Meyering  <meyering@lucent.com>
77820
77821         * m4/gettext.m4: New file.  From gettext.
77822         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77823         * m4/progtest.m4: Likewise
77824         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77825         * m4/glibc21.m4: Likewise.
77826
77827         * m4/libintl.m4: Remove.  No longer used.
77828
77829 2001-09-22  Jim Meyering  <meyering@lucent.com>
77830
77831         * lib/localcharset.c: Update from latest gettext.
77832         * lib/config.charset: Likewise.
77833
77834 2001-09-20  Jim Meyering  <meyering@lucent.com>
77835
77836         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77837         strtoimax.
77838         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77839         strtoumax.
77840
77841 2001-09-20  Jim Meyering  <meyering@lucent.com>
77842
77843         * lib/xstrtol.c (strtoimax): Guard declaration with
77844         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77845         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77846         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77847         (strtoumax): Likewise, for completeness (it wasn't necessary).
77848
77849 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77850
77851         * lib/strtoimax.c (HAVE_LONG_LONG):
77852         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77853         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77854         to work around bug in IBM C compiler.
77855
77856 2001-09-17  Jim Meyering  <meyering@lucent.com>
77857
77858         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77859         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77860         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77861         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77862         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77863         whenever the right hand side need not be expanded by the shell.
77864
77865 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77866
77867         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77868         library.  It's not correct, as some older glibcs are buggy.
77869         fnmatch wasn't fixed until glibc 2.2.
77870
77871         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77872         special shell magic here.
77873
77874 2001-09-16  Jim Meyering  <meyering@lucent.com>
77875
77876         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77877         * m4/jm-macros.m4: Require it.
77878
77879 2001-09-16  Jim Meyering  <meyering@lucent.com>
77880
77881         * lib/mkdir.c: New file.
77882
77883 2001-09-15  Jim Meyering  <meyering@lucent.com>
77884
77885         * m4/jm-macros.m4: Check for help2man.
77886
77887 2001-09-11  Jim Meyering  <meyering@lucent.com>
77888
77889         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77890         The body, by Paul Eggert, was moved here from configure.in.
77891         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77892
77893 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77894
77895         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77896         (jm_PREREQ): Use it.
77897
77898 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77899
77900         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77901         Use ssize_t, not int, to store result of readlink.
77902         Check for ssize_t overflow as well as size_t overflow,
77903         as POSIX says the result of readlink is implementation-defined
77904         when ssize_t overflows.
77905         Remove unnecessary cast to char*.
77906         Use free+malloc instead of realloc, as the storage doesn't need
77907         to be preserved and it's clearer and can be more efficient that way.
77908         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77909         * lib/xreadlink.h (xreadlink): Update prototype.
77910
77911 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77912
77913         * lib/xgetcwd.c: Revert some of the previous change; intead,
77914         fix the HAVE_GETCWD_NULL code to behave more like the
77915         !HAVE_GETCWD_NULL code used to.
77916
77917         Include "xalloc.h".
77918         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77919         invoke xalloc_die.
77920
77921 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77922
77923         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77924         sys/param.h, as pathmax.h includes them.
77925
77926 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77927
77928         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77929         (jm_PREREQ_XGETCWD): New macro.
77930
77931         * m4/getcwd.m4: New file.
77932
77933 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77934
77935         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77936         like the HAVE_GETCWD_NULL code.
77937         Include pathmax.h if not HAVE_GETCWD.
77938         Do not include xalloc.h.
77939         (INITIAL_BUFFER_SIZE): New symbol.
77940         Do not use xmalloc / xrealloc, since the caller is responsible for
77941         handling errors.  Preserve errno around `free' during failure.
77942         Do not overrun buffer when using getwd.
77943
77944 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77945
77946         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77947         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77948         getcwd (NULL, 0).
77949
77950 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77951
77952         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77953         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77954         spotted by Jim Meyering.
77955
77956 2001-09-03  Jim Meyering  <meyering@lucent.com>
77957
77958         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77959         failure.
77960
77961 2001-09-02  Jim Meyering  <meyering@lucent.com>
77962
77963         * lib/error.c: Update from GNU libc.
77964
77965 2001-09-01  Jim Meyering  <meyering@lucent.com>
77966
77967         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77968         Used by df.
77969
77970 2001-09-01  Jim Meyering  <meyering@lucent.com>
77971
77972         * lib/xreadlink.c: New file.
77973         * lib/xreadlink.h: New file.
77974         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77975         xreadlink.h.
77976
77977         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77978         doesn't conflict with sparc Solaris 7's definition in
77979         /usr/include/sys/int_types.h.
77980
77981         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77982         files.
77983         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77984         and strncasecmp as r-values.  Unixware didn't have declarations.
77985
77986 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77987
77988         * lib/xstrtol.h: Add copyright notice.
77989         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77990         LONGINT_INVALID_SUFFIX_CHAR.
77991
77992 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77993
77994         * lib/xstrtol.c (strtoimax): New decl.
77995
77996 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77997
77998         * lib/xgetcwd.c: Don't include pathmax.h.
77999         Include stdlib.h and unistd.h if available.
78000         Include xalloc.h.
78001         (xmalloc, xstrdup, free): Remove decls.
78002         (xgetcwd): Don't assume sizes fit in unsigned.
78003         Check for overflow when computing sizes.
78004         Simplify reallocation code.
78005
78006 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78007
78008         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78009         a directory's st_size can have an arbitrary value, so the old
78010         usage could waste an arbitrary amount of memory.  All uses
78011         changed.
78012         * lib/savedir.h: Update prototype.
78013
78014 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78015
78016         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78017
78018         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78019         old strtoimax.c.
78020
78021         Also, make the following further changes to make this file's
78022         configuration more similar to that of strtol.c:
78023         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78024         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78025         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78026         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78027         changed to signed values.
78028
78029         And make the following changes as well:
78030         Fix copyright notice, as 1999 was missing.
78031         (verify): New macro.
78032         (strtoimax): Check sizes at compile-time, not run-time.
78033         Prefer strtol to strtoll if both work.
78034         (main): Remove; it was not that useful and was a pain to maintain.
78035
78036         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78037
78038 2001-08-31  Jim Meyering  <meyering@lucent.com>
78039
78040         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78041         Use an initial, malloc'd, buffer of length 128 rather than
78042         a statically allocated one of length 1024.
78043
78044 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78045
78046         Simplify code, partly by assuming autoconf 2.52 semantics.
78047
78048         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78049
78050         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78051         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78052         All uses removed.
78053         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78054         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78055         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78056         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78057         jm_AC_HEADER_INTTYPES_H.
78058         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78059
78060         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78061
78062         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78063         Quote first arg of AC_DEFUN.
78064         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78065         since they are needed to parse the include file even if we need
78066         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78067         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78068         but with opposite signedness.
78069
78070 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78071
78072         Merge 'exclude' changes from tar 1.13.22.
78073         This fixes one or two unlikely storage allocation overflow bugs,
78074         but doesn't change user-visible behavior otherwise.
78075
78076 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78077
78078         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78079         (jm_PREREQ_EXCLUDE): New macro.
78080
78081 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78082
78083         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78084         tm to be declared.
78085
78086 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78087
78088         * lib/hash.c: Remove '2001' from copyright notice.
78089
78090 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78091
78092         * lib/full-write.h: New file.
78093         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78094         * lib/full-write.c: Correct credits, as cccp.c no longer
78095         exists and anyway it was so heavily changed from the old cccp
78096         code as to be unrecognizable.  Include full-write.h.
78097         (full_write): Return size_t, with short writes meaning failure.
78098         All callers changed.  This fixes a bug with large buffers
78099         on 64-bit hosts.
78100         * lib/utime.c: Include full-write.h.
78101
78102 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78103
78104         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78105         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78106         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78107         Include if available.
78108         (<xalloc.h>): Include
78109         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78110         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78111         collide with FNM macros.
78112         (struct patopts): New struct.
78113         (struct exclude): Use it, as exclude patterns now come with options.
78114         (new_exclude): Support above changes.
78115         (new_exclude, add_exclude_file):
78116         Initial size must now be a power of two to simplify overflow checking.
78117         (free_exclude, fnmatch_no_wildcards): New function.
78118         (excluded_filename): No longer requires options arg, as the options
78119         are determined by add_exclude.  Now returns bool, not int.
78120         (excluded_filename, add_exclude):
78121         Add support for the fancy new exclusion options.
78122         (add_exclude, add_exclude_file): Now takes int options arg.
78123         Check for arithmetic overflow when computing sizes.
78124         (add_exclude_file): xrealloc might modify errno, so don't
78125         realloc until after errno might be used.
78126
78127         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78128         New macros.
78129         (free_exclude): New decl.
78130         (add_exclude, add_exclude_file): Now takes int options arg.
78131         (excluded_filename): No longer requires options arg, as the options
78132         are determined by add_exclude.  Now returns bool, not int.
78133
78134 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78135
78136         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78137
78138 2001-08-27  Jim Meyering  <meyering@lucent.com>
78139
78140         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78141
78142         * lib/version-etc.c (N_): Remove definition.
78143         Revert most of last change.
78144         Instead, simply don't mark the `Copyright...' string for translation.
78145         Based on advice from Paul Eggert.
78146
78147         * lib/strtoxmax.c: Tweak comment.
78148
78149 2001-08-26  Jim Meyering  <meyering@lucent.com>
78150
78151         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78152
78153         * m4/xstrtoimax.m4: New file.
78154         * m4/xstrtoumax.m4: Add comments explaining why we
78155         AC_REPLACE_FUNCS(strtol).
78156
78157 2001-08-26  Jim Meyering  <meyering@lucent.com>
78158
78159         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78160         of copyright with `%s' so translators don't get an untranslated
78161         message in 2002.
78162         (COPYRIGHT_YEAR): Define.
78163         (version_etc): Use fprintf rather than fputs.
78164         Suggestion from Ulrich Drepper.
78165
78166         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78167
78168         * lib/strtoll.c: New file, from GNU libc.
78169         * lib/xstrtoimax.c: New file.
78170
78171         * lib/xstrtol.h: Add xstrtoimax.
78172         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78173         * lib/strtoimax.c: New file.  Likewise, but first define
78174         STRTOUXMAX_SIGNED.
78175
78176         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78177         ...
78178         * lib/strtoxmax.c: ... then renamed to this.
78179
78180 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78181
78182         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78183         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78184         (jm_AC_TYPE_INTMAX_T): New macro.
78185         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78186
78187         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78188
78189         * m4/longlong.m4: Renamed from ulonglong.m4.
78190         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78191         * m4/uintmax_t.m4: Removed.
78192
78193 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78194
78195         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78196         Port to Solaris 8, where 'sed' requires a space after the 'r'
78197         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78198         Redirect output to $tmp just once.
78199
78200 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78201
78202         * lib/addext.c (<errno.h>): Include.
78203         (errno): Declare if not defined.
78204         (addext): Work correctly when pathconf returns -1 and leaves
78205         errno alone because there is no limit.  Also, work even if
78206         pathconf returns a value greater than SIZE_MAX.
78207
78208 2001-08-12  Jim Meyering  <meyering@lucent.com>
78209
78210         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78211         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78212         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78213         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78214         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78215         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78216         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78217         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78218         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78219         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78220         utime.m4, utimes.m4, xstrtoumax.m4:
78221         Quote the first argument in each use of AC_DEFUN.
78222
78223 2001-08-12  Jim Meyering  <meyering@lucent.com>
78224
78225         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78226         Simply `return getcwd (NULL, 0);'.
78227         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78228         Use 1300 as initial value for length, not PATH_MAX.
78229
78230         * lib/pathmax.h: Clean up cpp syntax.
78231
78232 2001-08-12  Jim Meyering  <meyering@lucent.com>
78233
78234         * lib/gettimeofday.c: New file.
78235         * lib/gtod.h: New file.
78236         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78237
78238 2001-08-05  Jim Meyering  <meyering@lucent.com>
78239
78240         * m4/jm-macros.m4: Require autoconf-2.52.
78241
78242 2001-08-04  Jim Meyering  <meyering@lucent.com>
78243
78244         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78245         stmt, to get in sync with glibc.
78246
78247 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78248
78249         The following changes are from gettext 0.10.39 as maintained by
78250         Bruno Haible.
78251
78252         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78253         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78254         with inverted sense.  All uses changed.
78255
78256         * lib/mbswidth.c: Don't include <limits.h>.
78257         Include <stdlib.h> and <string.h> unconditionally.
78258         (iswcntrl, mbsinit, ISCNTRL): New macros.
78259         (mbsnwidth): Use K&R style function declarations.
78260         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78261         can optimize it when MB_CUR_MAX == 1.
78262         The width of control characters is zero, not 1.
78263
78264 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78265
78266         The following changes are from gettext 0.10.39 as maintained by
78267         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78268
78269         * m4/codeset.m4: Upgrade to serial AM1.
78270         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78271         all uses changed.  Quote first arg of AC_DEFUN.
78272         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78273
78274         * m4/iconv.m4: Upgrade to serial AM2.
78275         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78276         Add --with-libconv-prefix.
78277         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78278         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78279         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78280         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78281         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78282
78283         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78284         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78285         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78286         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78287         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78288         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78289         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78290         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78291         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78292
78293         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78294         string.h any more.
78295
78296         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78297         not the default value.
78298
78299         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78300         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78301         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78302         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78303         Also check for iswcntrl, used for wcwidth fallback.
78304         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78305         to Autoconf 2.13.
78306
78307 2001-08-03  Jim Meyering  <meyering@lucent.com>
78308
78309         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78310         as it was in the original.  Reported by Paul Eggert.
78311
78312 2001-07-16  Jim Meyering  <meyering@lucent.com>
78313
78314         * m4/gettimeofday.m4: New file.
78315         Prompted by a report from Bernhard Baehr.
78316
78317 2001-07-15  Jim Meyering  <meyering@lucent.com>
78318
78319         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78320         stuff. Now it's in ../Makefile.cfg.
78321
78322 2001-07-15  Jim Meyering  <meyering@lucent.com>
78323
78324         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78325         (BUILT_SOURCES): Add unlocked-io.h.
78326         (io_functions): Define.
78327         (unlocked-io.h): New rule.
78328         (DISTCLEANFILES): Add unlocked-io.h.
78329         (all-local): Depend on unlocked-io.h, to ensure it is created.
78330
78331         * lib/unlocked-io.hin: New file
78332
78333         * lib/regex.c: Update from glibc.
78334
78335 2001-07-05  Jim Meyering  <meyering@lucent.com>
78336
78337         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78338         recommendation.
78339         (libfetish_a_SOURCES): Put all .h files here instead.
78340         Remove a thus-exposed (better checks in automake) duplicate and
78341         two unnecessary .h files.
78342
78343 2001-07-04  Jim Meyering  <meyering@lucent.com>
78344
78345         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78346         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78347         distcheck failure.
78348
78349 2001-07-02  Jim Meyering  <meyering@lucent.com>
78350
78351         The following changes were prompted by suggestions from Bruno Haible.
78352
78353         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78354         is now generated.
78355         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78356         definition of EXTRA_DIST.
78357         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78358         ensure that the generated file is created/updated whenever the list
78359         of $(unlocked_functions) is changed.
78360         (jm-glibc-io.m4): New rule.
78361         (unlocked-io.h): New rule -- currently unused.
78362
78363 2001-06-24  Jim Meyering  <meyering@lucent.com>
78364
78365         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78366         unmatched right bracket, rather than kludging it with an extra,
78367         falsely-matching quote in a comment.  Patch by Akim Demaille.
78368
78369 2001-06-11  Jim Meyering  <meyering@lucent.com>
78370
78371         * lib/regex.c: Update from GNU libc.
78372
78373 2001-05-27  Jim Meyering  <meyering@lucent.com>
78374
78375         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78376         Check for ut_type in struct utmp.
78377
78378 2001-05-27  Jim Meyering  <meyering@lucent.com>
78379
78380         * lib/readutmp.h (UT_TYPE): Define.
78381
78382 2001-05-24  Jim Meyering  <meyering@lucent.com>
78383
78384         * lib/argmatch.c: Include "quote.h".
78385         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78386         quote function.  Reported by Göran Uddeborg.
78387
78388 2001-05-22  Jim Meyering  <meyering@lucent.com>
78389
78390         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78391         now that we use the package-supplied version unconditionally.
78392         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78393
78394 2001-05-21  Jim Meyering  <meyering@lucent.com>
78395
78396         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78397         shell syntax errors.
78398
78399 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78400
78401         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78402
78403 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78404
78405         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78406         Don't bother to check library strftime, since
78407         we'll be using our own my_strftime function anyway.
78408         Define my_strftime instead of strftime.
78409
78410 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78411
78412         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78413         which is not yet declared.
78414
78415 2001-05-15  Jim Meyering  <meyering@lucent.com>
78416
78417         * m4/regex.m4: Use proper quoting so brackets appear in the test
78418         program.
78419         Reported by, and with help from, Bruno Haible.
78420
78421 2001-05-13  Jim Meyering  <meyering@lucent.com>
78422
78423         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78424         undefined.
78425
78426 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78427
78428         dirname code cleanup.  base_name now behaves more compatibly
78429         with POSIX basename when given file names that have trailing
78430         slashes, and similarly for dir_name.  Add new primitives
78431         base_len and dir_len.  Put the directory-name-related decls
78432         into dirname.h.
78433
78434         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78435         * lib/backupfile.c (base_name): Likewise.
78436         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78437         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78438         * lib/makepath.c (strip_trailing_slashes): Likewise.
78439         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78440         ISSLASH): Likewise.
78441         * lib/rename.c (strip_trailing_slashes): Likewise.
78442         * lib/same.c (base_name): Likewise.
78443         * lib/stripslash.c (ISSLASH): Likewise.
78444
78445         * lib/addext.c: Include <dirname.h> after size_t is defined.
78446         * lib/backupfile.c: Likewise.
78447
78448         * lib/addext.c (addext): Use base_len to trim redundant
78449         trailing slashes instead of doing it ourselves.
78450         But do not trim the last slash if it is not redundant.
78451
78452         * lib/backupfile.c (find_backup_file_name,
78453         max_backup_version): Use base_len instead of rolling it ourselves.
78454         Handle the case of "" and (on DOS) "C:" correctly.
78455
78456         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78457         needed. Include <string.h>, <dirname.h>.
78458         (base_name): Allow file names ending in slashes, other than names
78459         that are all slashes.  In this case, return the basename followed
78460         by the slashes.  This is more general, and can be used in places
78461         where the original base_name purposely had an assertion failure.
78462         (base_len): New function.
78463
78464         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78465         Do not include <assert.h>; no longer needed.
78466         Include xalloc.h.
78467         (memrchr): Remove decl.
78468         (dir_name_r): Remove.
78469         (dir_len): Renamed from dirlen.  All callers changed.
78470         Rewrite in terms of base_name, for simplicity and consistency.
78471         (dir_name): Never return NULL.  All callers changed.
78472         Do not include <stdlib.h> in test program; no longer needed.
78473         return 0; is fine for test program.
78474
78475         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78476         New macros.
78477         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78478
78479         * lib/path-concat.c (path_concat): Use base_len to compute
78480         base length, not strlen; this means we cannot rely on memcpy
78481         to null-terminate.
78482
78483         * lib/same.c (STREQ): Remove.
78484         (same_name): Handle the case where the basename ends in trailing '/'.
78485
78486         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78487         a slash was stripped.  Do not strip the last slash after a
78488         file system prefix.
78489
78490 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78491
78492         * lib/Makefile.am (libfetish_a_SOURCES):
78493         Add strftime.c, since we now compile it on all hosts.
78494
78495         * lib/strftime.c (my_strftime):
78496         Define to nstrftime if emacs, but only if my_strftime is not defined.
78497         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78498         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78499         Add one more extra argument: a nanoseconds value.
78500         All uses changed.
78501         (ns): New macro.
78502         (my_strftime function): Add %N format.
78503         (emacs_strftimeu): Renamed from emacs_strftime,
78504         with extra ut argument.
78505
78506 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78507
78508         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78509
78510 2001-04-21  Jim Meyering  <meyering@lucent.com>
78511
78512         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78513         doesn't interfere.
78514
78515 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78516
78517         * m4/ftruncate.m4: Check for chsize.
78518         Link with ftruncate.o unconditionally if ftruncate is missing.
78519         This was required when cross-compiling to i586-mingw32msvc.
78520
78521 2001-04-08  Jim Meyering  <meyering@lucent.com>
78522
78523         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78524         recomputed; that's necessary when the offset spans a DST transition.
78525         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78526
78527 2001-04-02  Jim Meyering  <meyering@lucent.com>
78528
78529         * lib/regex.h, regex.c: Update from GNU libc.
78530
78531 2001-03-24  Jim Meyering  <meyering@lucent.com>
78532
78533         * m4/jm-macros.m4: Require autoconf-2.49d.
78534
78535 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78536
78537         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78538
78539 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78540
78541         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78542
78543 2001-03-17  Jim Meyering  <meyering@lucent.com>
78544
78545         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78546         now that the version in autoconf is equivalent.
78547         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78548
78549         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78550         Suggestion from Akim Demaille.
78551
78552         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78553         (jm_PREREQ_TEMPNAME): New function.
78554
78555 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78556
78557         * lib/tempname.c (uint64_t): Define to uintmax_t if
78558         not defined, and if UINT64_MAX is not defined.
78559         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78560         Reported by John David Anglin.
78561
78562 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78563
78564         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78565         resolve alias if codeset is empty.
78566         * lib/config.charset (BeOS): Use wildcard syntax.
78567
78568 2001-03-13  Jim Meyering  <meyering@lucent.com>
78569
78570         * lib/path-concat.c (path_concat)
78571         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78572         concatenating e.g., `C:' and `foo'.
78573         From Bruno Haible.
78574
78575 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78576
78577         * lib/localcharset.c (locale_charset): Don't use
78578         setlocale(LC_CTYPE,NULL). Don't return NULL.
78579         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78580
78581 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78582
78583         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78584         support for DOS/DJGPP.
78585
78586 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78587
78588         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78589         lacks mkstemp.  Compile our own tempname.c if we compile our own
78590         mkstemp.c, as mkstemp relies on tempname.
78591
78592 2001-03-01  Jim Meyering  <meyering@lucent.com>
78593
78594         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78595         AH_VERBATIM really does output its argument verbatim.
78596
78597 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78598
78599         * lib/Makefile.am (libfetish_a_SOURCES):
78600         Add dup-safer.c, fopen-safer.c.
78601         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78602
78603         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78604         * lib/unistd-safer.h: New files.
78605
78606 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78607
78608         The mkstemp replacement is taken from glibc 2.2.2, with some
78609         portability fixes for use outside glibc, as follows:
78610
78611         * lib/tempname.c (struct_stat64): New macro.
78612         (direxists, __gen_tempname): Use it.
78613         This avoids a portability problem with Solaris 8.
78614
78615         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78616         (<stddef.h>, <stdint.h>, <string.h>):
78617         Include only if STDC_HEADERS || _LIBC.
78618         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78619         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78620         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78621         (__set_errno): Define this macro if <errno.h> doesn't.
78622         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78623         Define these macros if <stdio.h> doesn't.
78624         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78625         Define these macros if <sys/stat.h>
78626         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78627         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78628         __xstat64): Define if not _LIBC.
78629         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78630         (__gen_tempname): Invoke gettimeofday only if
78631         HAVE_GETTIMEOFDAY || _LIBC;
78632         otherwise, fall back on plain "time".
78633         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78634
78635         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78636
78637         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78638
78639 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78640
78641         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78642
78643 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78644
78645         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78646         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78647         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78648         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78649
78650 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78651
78652         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78653         Remove workaround macros for hosts that have mbrtowc but not
78654         mbstate_t, as we now insist on proper declarations for both
78655         before using mbrtowc.
78656
78657 2001-02-17  Jim Meyering  <meyering@lucent.com>
78658
78659         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78660         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78661         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78662         UnixWare 7.1.1.
78663
78664         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78665         rather than AC_CACHE_VAL.
78666
78667 2001-02-17  Jim Meyering  <meyering@lucent.com>
78668
78669         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78670         around included file name.
78671
78672         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78673
78674         * lib/strftime.c: Update from GNU libc (the only changes were to
78675         comments).
78676
78677 2001-02-17  Jim Meyering  <meyering@lucent.com>
78678
78679         * lib/regex.c: Update from libc.
78680
78681 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78682
78683         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78684         clash.
78685
78686 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78687
78688         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78689         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78690         Reported by Mark Hounschell via Paul Eggert.
78691
78692 2001-02-07  Jim Meyering  <meyering@lucent.com>
78693
78694         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78695
78696 2001-02-05  Jim Meyering  <meyering@lucent.com>
78697
78698         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78699         it includes the patch required for `large file' support with at least
78700         HP-UX's 10.20 /bin/cc.
78701
78702 2001-02-03  Jim Meyering  <meyering@lucent.com>
78703
78704         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78705         AS_IF, now that it works once again (mysteriously).
78706         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78707
78708 2001-01-30  Jim Meyering  <meyering@lucent.com>
78709
78710         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78711         * m4/chown.m4: Rename conftestchown to conftest.chown.
78712         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78713         s/conftestdir2/conftest.d2/.
78714         * m4/utimes.m4: s/conftestdata/conftest.data/
78715         Inspired by Pavel Roskin's change in autoconf.
78716
78717 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78718
78719         * lib/config.charset: Update for FreeBSD 4.2.
78720
78721 2001-01-27  Jim Meyering  <meyering@lucent.com>
78722
78723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78724         a use of AS_IF.
78725         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78726
78727 2001-01-26  Jim Meyering  <meyering@lucent.com>
78728
78729         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78730         quotearg.c includes it.
78731
78732 2001-01-26  Jim Meyering  <meyering@lucent.com>
78733
78734         * lib/quotearg.c: Include stddef.h.
78735         * lib/quote.c: Include stddef.h.
78736         Reported by Axel Kittenberger.
78737
78738         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78739         line in double quotes so that it evokes a better diagnostic.
78740         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78741         Reported by Axel Kittenberger.
78742
78743 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78744
78745         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78746         as if it was a `charset'.
78747
78748 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78749
78750         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78751         has const.
78752
78753 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78754
78755         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78756         to avoid a warning.  Add back 'const' to inptr.
78757
78758 2001-01-20  Jim Meyering  <meyering@lucent.com>
78759
78760         Be sure that headers are checked before used in code compiled
78761         for the type checks.
78762         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78763         In place of that, invoke jm_CHECK_ALL_TYPES.
78764         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78765         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78766         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78767         The check for ssize_t was mistakenly run before the test for unistd.h.
78768
78769         The configure-time check for stdbool.h was missing.
78770         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78771         (jm_PREREQ_HASH): New function.
78772
78773 2001-01-17  Jim Meyering  <meyering@lucent.com>
78774
78775         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78776         for autoconf-2.49c.
78777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78778
78779 2001-01-16  Jim Meyering  <meyering@lucent.com>
78780
78781         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78782         From Bruno Haible.
78783
78784 2001-01-14  Jim Meyering  <meyering@lucent.com>
78785
78786         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78787         foo and bar.  Create conftestdir/ in the script, not in the C code.
78788         Remove directories in the script, not in the C code.
78789         Remove conftestdir{,2} before trying to create the directory.
78790         Make the entire configure script fail if the mkdir fails.
78791
78792 2001-01-14  Jim Meyering  <meyering@lucent.com>
78793
78794         * lib/rename.c: New file.  From Volker Borchert.
78795         Include stdlib.h, string.h or strings.h, and xalloc.h.
78796         Use strip_trailing_slashes rather than open-coding it.
78797
78798 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78799
78800         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78801
78802 2001-01-03  Jim Meyering  <meyering@lucent.com>
78803
78804         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78805         of local `inptr' to avoid warning with some system declarations of
78806         iconv.
78807
78808 2001-01-02  Volker Borchert  <bt@teknon.de>
78809
78810         * m4/rename.m4: New file.
78811         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78812
78813 2001-01-01  Jim Meyering  <meyering@lucent.com>
78814
78815         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78816         even on systems with utmpx.h.  It's necessary for the declaration of
78817         utmp's ut_user member.  Reported by Andreas Jaeger.
78818
78819         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78820         available. They are required for the declarations of getgrgid and
78821         getpwuid resp.
78822         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78823         Reported by Andreas Jaeger.
78824
78825 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78826
78827         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78828         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78829         so `make install' also works in VPATH builds.
78830
78831 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78832
78833         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78834         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78835         can be used in subdirectories.
78836
78837 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78838
78839         * lib/modechange.c: Do not assume that mode_t uses the
78840         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78841         the other-execute bit of FOO even if S_IXOTH != 1.
78842
78843         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78844         WOTH, XOTH, ALLM): New macros.
78845         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78846          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78847         Use them.
78848         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78849         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78850         (mode_compile):
78851         No need to use uintmax_t; unsigned long is long enough.
78852         Don't bother to get suffix since we don't use it.
78853
78854 2000-12-26  Jim Meyering  <meyering@lucent.com>
78855
78856         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78857         better with autoheader.
78858
78859 2000-12-24  Jim Meyering  <meyering@lucent.com>
78860
78861         * lib/hash.c (is_prime): Return explicit boolean values.
78862         (hash_get_first): Return NULL to appease Irix5.6's 89.
78863         Reported by Nelson Beebe.
78864
78865 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78866
78867         * lib/localcharset.c (locale_charset): Add support for Win32.
78868
78869 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78870
78871         * lib/physmem.h, lib/physmem.c: New files.
78872
78873         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78874         (noinst_HEADERS): Add physmem.h.
78875
78876         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78877         't' for compatibility with Solaris 8 sort.
78878
78879 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78880
78881         * lib/config.charset: Add support for BeOS.
78882
78883 2000-12-17  Jim Meyering  <meyering@lucent.com>
78884
78885         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78886         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78887
78888 2000-12-16  Jim Meyering  <meyering@lucent.com>
78889
78890         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78891         N and M) would have treated it like `chown N:N FILE'.
78892
78893         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78894
78895 2000-12-16  Jim Meyering  <meyering@lucent.com>
78896
78897         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78898         SHELLS_FILE to a file name that's useful on djgpp systems.
78899         Include stdlib.h.
78900         (ADDITIONAL_DEFAULT_SHELLS): Define.
78901         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78902         Based mostly on a patch from Prashant TR.
78903
78904 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78905
78906         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78907         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78908         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78909
78910 2000-12-08  Andreas Schwab  <schwab@suse.de>
78911
78912         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78913         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78914
78915 2000-12-07  Jim Meyering  <meyering@lucent.com>
78916
78917         * lib/stripslash.c (ISSLASH): Define.
78918         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78919         `/'.
78920         From Prashant TR.
78921
78922         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78923         (dir_name_r): Declare this function as static.
78924         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78925         manifest itself on a name containing a mix of slashes and
78926         backslashes.
78927         Make this function work with names starting with a DOS-style
78928         drive letter and colon prefix.
78929         (dir_name): Append `.' if necessary.
78930         Based mostly on patches from Prashant TR and Eli Zaretskii.
78931
78932         * lib/dirname.h (dir_name_r): Remove prototype.
78933
78934 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78935
78936         * m4/off_t-format.m4: Remove this file.
78937         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78938
78939 2000-12-06  Jim Meyering  <meyering@lucent.com>
78940
78941         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78942         replacement strtoull, we may well need the replacement strtoul, too.
78943         Check for declarations of strtoul and strtoull.
78944         Check for strtol.  Mainly as a cue to cause automake to include
78945         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78946         Check for limits.h -- strtol.c needs it.
78947
78948 2000-12-05  Jim Meyering  <meyering@lucent.com>
78949
78950         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78951
78952 2000-12-04  Jim Meyering  <meyering@lucent.com>
78953
78954         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78955         Also include memory.h, stdlib.h, unistd.h if appropriate.
78956         Reported by Andreas Jaeger (conflicting declaration of malloc).
78957
78958 2000-12-02  Jim Meyering  <meyering@lucent.com>
78959
78960         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78961         * m4/jm-macros.m4 (jm_MACROS): require it.
78962
78963 2000-12-02  Jim Meyering  <meyering@lucent.com>
78964
78965         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78966
78967 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78968
78969         * lib/memrchr.c: Include <config.h> before any system include file.
78970
78971 2000-11-30  Jim Meyering  <meyering@lucent.com>
78972
78973         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78974
78975 2000-11-30  Jim Meyering  <meyering@lucent.com>
78976
78977         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78978
78979 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78980
78981         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78982
78983 2000-11-26  Jim Meyering  <meyering@lucent.com>
78984
78985         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78986
78987 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78988
78989         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78990         size of (size_t) -1; it's not portable.
78991
78992 2000-11-17  Jim Meyering  <meyering@lucent.com>
78993
78994         * lib/strstr.c: Update from GNU libc.
78995
78996 2000-11-17  Akim Demaille  <akim@epita.fr>
78997
78998         * lib/obstack.h: Formatting changes.
78999         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79000         prevent type checking.
79001         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79002         cast the value to (void *): assigning a `foo *' to a `void *'
79003         variable is valid.
79004         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79005
79006 2000-11-16  Jim Meyering  <meyering@lucent.com>
79007
79008         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79009
79010 2000-11-11  Jim Meyering  <meyering@lucent.com>
79011
79012         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79013
79014 2000-11-10  Jim Meyering  <meyering@lucent.com>
79015
79016         * lib/obstack.h: Update from GNU libc.
79017         * lib/obstack.c: Likewise.
79018
79019 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79020
79021         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79022
79023 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79024
79025         * lib/getusershell.c (setusershell): Use rewind rather than
79026         fseek/fseeko, to avoid configuration hassles with fseeko.
79027         Don't bother opening SHELLS_FILE if shellstream is NULL;
79028         it's not necessary.
79029
79030 2000-11-05  Jim Meyering  <meyering@lucent.com>
79031
79032         * lib/makepath.h (make_dir): Declare.
79033         * lib/makepath.c (make_dir): Remove `static' attribute.
79034         Tweak a comment.
79035
79036 2000-11-04  Jim Meyering  <meyering@lucent.com>
79037
79038         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79039
79040 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79041
79042         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79043         last one in a bucket, advance to the next bucket.
79044
79045 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79046
79047         * lib/fnmatch.c: Do not comment out all the code if we are using
79048         the GNU C library, because in some cases we are replacing buggy
79049         code in the GNU C library itself.
79050
79051 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79052
79053         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79054         (regex_compile): Catch bogus \(\1\).
79055
79056 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79057
79058         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79059         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79060         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79061
79062 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79063
79064         * lib/error.h, getline.h, modechange.h:
79065         Remove "2000" from Copyright line, as the file hasn't been
79066         changed this year other than in the copyright notice.
79067
79068         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79069         was changed this year.
79070
79071 2000-10-29  Jim Meyering  <meyering@lucent.com>
79072
79073         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79074         renaming.
79075         * m4/ls-mntd-fs.m4: Likewise
79076
79077 2000-10-29  Jim Meyering  <meyering@lucent.com>
79078
79079         * lib/xstat.in: Fix grammar in comment.
79080
79081 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79082
79083         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79084         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79085         doesn't define __restrict_arr.
79086
79087 2000-10-28  Jim Meyering  <meyering@lucent.com>
79088
79089         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79090         (jm_PREREQ_MEMCHR): New function.
79091
79092 2000-10-28  Jim Meyering  <meyering@lucent.com>
79093
79094         * lib/memchr.c: Update from libc.
79095         Adjust for portability:
79096         [HAVE_STDLIB_H]: Include stdlib.h.
79097         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79098         Undef __memchr, too.
79099         [!weak_alias]: Define __memchr to memchr.
79100
79101         * lib/regex.c: Update from libc.
79102         * lib/regex.h: Likewise.
79103         * lib/getopt1.c: Likewise.
79104         * lib/memcmp.c: Likewise.
79105
79106         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79107         Avoid using fseek, when possible -- it's broken by design.
79108         Patch by Ulrich Drepper.
79109
79110 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79111
79112         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79113         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79114         Giving in to popular pressure to shut up the compiler with casts.
79115
79116 2000-10-26  Jim Meyering  <meyering@lucent.com>
79117
79118         * lib/strftime.c: Update from libc.
79119
79120 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79121
79122         * regex.c: More `unsigned char' -> `re_char' changes.
79123         Also change several `int' into `re_wchar_t'.
79124         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79125         (PUSH_FAILURE_POINTER): Don't cast any more.
79126         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79127         We want GCC to complain, since this piece of code makes
79128         re_match non-reentrant, which *should* be fixed.
79129         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79130         (EXTEND_BUFFER): Use RETALLOC.
79131         (SET_LIST_BIT): Don't cast.
79132         (re_wchar_t): New type.
79133         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79134         that those two functions will always properly return.
79135         (IMMEDIATE_QUIT_CHECK): Cast to void.
79136         (analyse_first): Use recursion rather than an explicit stack.
79137         (re_compile_fastmap): Can't fail anymore.
79138         (re_search_2): Don't check re_compile_fastmap for failure.
79139         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79140         Now also sets the new value (passed in a new argument).
79141         (re_match_2_internal): Use it.
79142         Also, use a new var `reg' of type size_t when looping through regs
79143         rather than reuse the inappropriate `mcnt'.
79144
79145 2000-10-25  Jim Meyering  <meyering@lucent.com>
79146
79147         * lib/obstack.c: Update from libc.
79148
79149 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79150
79151         * regex.c (regex_compile): Change the way of handling a range from
79152         a char less than 256 to a char not less than 256.
79153
79154 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79155
79156         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79157         NT-Emacs only.
79158         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79159         so that re_search functions only quit when callers expect them to.
79160
79161 2000-10-23  Jim Meyering  <meyering@lucent.com>
79162
79163         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79164         wrong.  That set_locale call must not have any side effects.
79165         From Paul Eggert.
79166
79167 2000-10-22  Jim Meyering  <meyering@lucent.com>
79168
79169         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79170         [CYCLIC]: Remove now-unused definition.
79171
79172         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79173         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79174         Suggestion from Ulrich Drepper.
79175
79176 2000-10-21  Jim Meyering  <meyering@lucent.com>
79177
79178         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79179         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79180         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79181
79182 2000-10-21  Jim Meyering  <meyering@lucent.com>
79183
79184         * lib/dirname.c (memrchr): Declare if necessary.
79185         (dir_name): Remove the restriction that there be no
79186         trailing slashes.  Now, this code skips past them, effectively
79187         ignoring them.
79188         [TEST_DIRNAME] (main): New unit tests.
79189
79190         * lib/memrchr.c: New file from GNU libc.
79191         Undef __memrchr, too.
79192         [!weak_alias]: Define __memrchr to memrchr.
79193         Guard weak_alias use with `#ifdef weak_alias'.
79194
79195 2000-10-21  Jim Meyering  <meyering@lucent.com>
79196
79197         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79198         (dir_name): Use dir_name_r.
79199         * lib/dirname.h (dir_name_r): Declare it.
79200
79201 2000-10-17  Jim Meyering  <meyering@lucent.com>
79202
79203         * lib/quote.h (PARAMS): Define and use.
79204         Reported by Akim Demaille.
79205
79206         * lib/getopt.c: Update from libc.
79207
79208 2000-10-16  Jim Meyering  <meyering@lucent.com>
79209
79210         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79211         setlocale.
79212         From Jan Fedak.
79213
79214 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79215
79216         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79217
79218 2000-09-25  Jim Meyering  <meyering@lucent.com>
79219
79220         * lib/md5.h (rol): Define (from GnuPG).
79221
79222         * lib/sha.c: Give credit (GnuPG) where due.
79223         (M): Use rol rather than open-coding it.
79224         Add a FIXME comment.
79225
79226 2000-09-21  Jim Meyering  <meyering@lucent.com>
79227
79228         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79229         Reported by Michael Stone.
79230
79231 2000-09-20  Jim Meyering  <meyering@lucent.com>
79232
79233         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79234         (noinst_HEADERS): Add sha.h.
79235         Based on code from Scott G. Miller and from GnuPG.
79236
79237 2000-09-18  Jim Meyering  <meyering@lucent.com>
79238
79239         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79240         LIBS. Otherwise, everyone ends up linking with -lelf for some
79241         configurations.
79242         Reported by Mike Stone.
79243
79244 2000-09-15  Jim Meyering  <meyering@lucent.com>
79245
79246         * lib/regex.c: Update from libc.
79247
79248 2000-09-10  Jim Meyering  <meyering@lucent.com>
79249
79250         * lib/getopt.c (_getopt_internal): Update from glibc.
79251
79252 2000-09-09  Jim Meyering  <meyering@lucent.com>
79253
79254         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79255         think it should be used as a general replacement for isascii.
79256         * lib/fnmatch.c: Likewise.
79257         * lib/mbswidth.c: Likewise
79258         * lib/regex.c: Likewise.
79259
79260         Don't use atoi.
79261         * lib/userspec.c: Include sys/param.h and limits.h.
79262         Include xstrtol.h.
79263         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79264         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79265         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79266         UID, GID.  Check range.
79267
79268 2000-09-06  Jim Meyering  <meyering@lucent.com>
79269
79270         * lib/getopt.c (_getopt_internal): Update from glibc.
79271
79272 2000-08-30  Jim Meyering  <meyering@lucent.com>
79273
79274         * lib/strftime.c: Merge in changes from GNU libc.
79275
79276 2000-08-26  Jim Meyering  <meyering@lucent.com>
79277
79278         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79279         * m4/fpending.m4: New file.
79280
79281 2000-08-26  Jim Meyering  <meyering@lucent.com>
79282
79283         * lib/closeout.c: Include "__fpending.h".
79284         (close_stdout_status): Return right away if there's nothing to flush.
79285
79286         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79287         * lib/__fpending.c: New file.
79288         * lib/__fpending.h: New file.
79289
79290 2000-08-20  Jim Meyering  <meyering@lucent.com>
79291
79292         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79293         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79294         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79295
79296 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79297
79298         Improve fileutils installation on systems where running
79299         programs (like install) can't be unlinked.
79300         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79301         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79302
79303 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79304
79305         Standardize on "memory exhausted" instead of "Memory exhausted"
79306         or "virtual memory exhausted".
79307         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79308         "virtual memory exhausted".
79309         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79310         our own message.
79311         * lib/userspec.c (parse_user_spec): Likewise.
79312         * lib/bumpalloc.h: comment fix
79313         * lib/same.c, userspec.c: Include xalloc.h.
79314
79315         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79316         not char *const and pointing to a constant array.
79317         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79318         (xrealloc): Comment fix.
79319
79320         * lib/userspec.c (parse_user_spec):
79321         Don't translate a message until just before returning,
79322         to avoid unnecessary translation.
79323
79324 2000-08-07  Jim Meyering  <meyering@lucent.com>
79325
79326         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79327         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79328         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79329         getgroups.c, gethostname.c, getopt.h, group-member.c,
79330         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79331         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79332         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79333         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79334         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79335         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79336         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79337         yesno.c: Back out Copyright date changes for each file with no change
79338         this year.  This eases coordination with other programs using the same
79339         source code modules.  From Paul Eggert.
79340
79341 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79342
79343         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79344         not char, for compatibility with glibc 2.1.3 strftime.c.
79345
79346 2000-08-03  Greg McGary  <greg@mcgary.org>
79347
79348         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79349         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79350         (EXTEND_BUFFER): Use them.
79351
79352 2000-08-01  Jim Meyering  <meyering@lucent.com>
79353
79354         * lib/dirname.c (ISSLASH): Define.
79355         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79356         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79357         both `\' and `/' may be use as path separators.
79358         Based on a patch from Prashant TR.
79359
79360 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79361
79362         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79363         slot vector a constant, since it might get modified.
79364
79365 2000-07-31  Jim Meyering  <meyering@lucent.com>
79366
79367         * lib/xmalloc.c: Use `virtual memory exhausted', not
79368         `Memory exhausted'.
79369         * lib/obstack.c (print_and_abort): Likewise.
79370
79371 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79372
79373         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79374         buffer, so that the caller can always quote one small
79375         component of a "memory exhausted" message in slot 0.
79376         From a suggestion by Jim Meyering.
79377
79378 2000-07-30  Jim Meyering  <meyering@lucent.com>
79379
79380         * lib/makepath.c (make_path): Quote the other instance, too.
79381
79382         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79383         (STATIC_BUF_SIZE): Define.
79384         (quotearg_n_options): Use only statically allocated storage when
79385         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79386         than STATIC_BUF_SIZE.
79387
79388 2000-07-29  Jim Meyering  <meyering@lucent.com>
79389
79390         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79391         * lib/dirname.c (dir_name): Likewise.
79392
79393         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79394         `/'.
79395
79396         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79397         (dir_name): Assert that there are no trailing slashes.
79398
79399 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79400
79401         * lib/mbswidth.h (mbswidth): Add a flags argument.
79402         (mbswidth): New declaration.
79403         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79404         * lib/mbswidth.c (mbswidth): Add a flags argument.
79405         (mbsnwidth): New function.
79406
79407 2000-07-24  Jim Meyering  <meyering@lucent.com>
79408
79409         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79410
79411 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79412
79413         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79414
79415 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79416
79417         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79418         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79419         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79420         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79421         invoke multibyte primitives.
79422
79423 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79424
79425         * lib/quotearg.c:
79426         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79427         so that mbstate_t is always defined.
79428
79429         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79430         be 1 in at least one GCC installation, and this configuration
79431         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79432         performance on hosts that have mbrtowc but have only unibyte
79433         locales, but I assume these hosts are rare.
79434
79435 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79436
79437         * lib/mbswidth.c (_XOPEN_SOURCE):
79438         Don't define; this causes problems on Solaris 7.
79439         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79440
79441 2000-07-23  Jim Meyering  <meyering@lucent.com>
79442
79443         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79444         too: getgrgid, getpwuid, getuid.
79445
79446 2000-07-23  Jim Meyering  <meyering@lucent.com>
79447
79448         * lib/basename.c (base_name): Add an assertion.
79449
79450 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79451
79452         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79453         shadow its mbsinit function.
79454
79455 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79456
79457         * lib/mbswidth.h: New file.
79458         * lib/mbswidth.c: New file.
79459         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79460         (noinst_HEADERS): Add mbswidth.h.
79461
79462 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79463
79464         * lib/config.charset: Add support for FreeBSD. Improve support for
79465         HP-UX and IRIX 6.
79466
79467 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79468
79469         * m4/mbswidth.m4: New file.
79470         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79471
79472 2000-07-15  Jim Meyering  <meyering@lucent.com>
79473
79474         * lib/makepath.c: Include quote.h.
79475         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79476         corresponding argument in a `quote (...)' call.
79477         Give better diagnostics.
79478
79479         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79480         (noinst_HEADERS): Add quote.h.
79481
79482         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79483         from tar's src/misc.c.
79484         * lib/quote.h: New file.  Prototypes for same.
79485
79486 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79487
79488         From a suggestion by Bruno Haible.
79489         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79490         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79491         to decide whether to define the BeOS workaround macro;
79492         this adjusts to the change to AC_MBSTATE_T.
79493
79494 2000-07-14  Jim Meyering  <meyering@lucent.com>
79495
79496         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79497         jm_AC_TYPE_UINTMAX_T.
79498
79499 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79500
79501         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79502
79503         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79504         quotearg_buffer_restyled): Add support for
79505         clocale_quoting_style.  Undo previous change to
79506         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79507         and "{RIGHT QUOTATION MARK}" msgids.
79508
79509 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79510
79511         From a suggestion by Bruno Haible.
79512         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79513         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79514         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79515         and mbstate_t, to a single-part test that simply defines mbstate_t.
79516         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79517         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79518
79519 2000-07-10  Jim Meyering  <meyering@lucent.com>
79520
79521         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79522
79523         * m4/gnu-source.m4: Output to confdefs.h directly.
79524         Suggestion from Akim Demaille.
79525
79526 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79527
79528         The old behavior of quoting `like this' doesn't look good with
79529         newer, ISO-style fonts.  See:
79530         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79531
79532         Instead, quote "like this" by default.  Let the translator
79533         tailor the locale-specific quoting behavior by providing
79534         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79535
79536         * lib/quotearg.c (N_): New macro.
79537         (gettext_default): New function.
79538         (quotearg_buffer_restyled): Use
79539         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79540         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79541
79542 2000-07-09  Jim Meyering  <meyering@lucent.com>
79543
79544         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79545         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79546
79547         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79548         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79549
79550 2000-07-09  Jim Meyering  <meyering@lucent.com>
79551
79552         * lib/Most files: Update copyright dates to include 2000.
79553
79554 2000-07-08  Jim Meyering  <meyering@lucent.com>
79555
79556         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79557         if not defined.
79558         (xgethostname): Remove now-unnecessary #ifdef.
79559         Move declaration of `err' into loop where it's used.
79560
79561 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79562         and Bruno Haible  <haible@clisp.cons.org>
79563
79564         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79565         only if the test for an object-type mbstate_t fails.  This
79566         prevents us from mistakenly reporting that mbstate_t is a
79567         system object type after we "#define mbstate_t int" to work
79568         around its lack.
79569
79570 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79571         and Bruno Haible  <haible@clisp.cons.org>
79572
79573         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79574
79575 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79576
79577         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79578         to strerror_r.
79579         Include <ctype.h> for use of isalpha.
79580
79581 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79582
79583         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79584         by allocating a larger buffer. Test the gethostname return value for
79585         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79586         returns an error and ENAMETOOLONG isn't defined.
79587
79588 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79589
79590         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79591         dimension.
79592
79593 2000-07-04  Jim Meyering  <meyering@lucent.com>
79594
79595         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79596         of the deprecated AC_CHECKING.
79597
79598 2000-07-04  Jim Meyering  <meyering@lucent.com>
79599
79600         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79601         Reported by Bruno Haible.
79602
79603 2000-07-04  Jim Meyering  <meyering@lucent.com>
79604
79605         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79606         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79607         lacks mbrtowc.
79608
79609 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79610
79611         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79612         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79613
79614 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79615         and Bruno Haible  <haible@clisp.cons.org>
79616
79617         * lib/quotearg.c (mbrtowc):
79618         Assign to *pwc, and return 1 only if result is nonzero.
79619         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79620
79621 2000-07-03  Jim Meyering  <meyering@lucent.com>
79622
79623         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79624
79625 2000-07-03  Jim Meyering  <meyering@lucent.com>
79626
79627         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79628         This is necessary to get a definition of e.g., UTMP_FILE on
79629         HP-UX 10.20.
79630         From Bob Proulx.
79631
79632 2000-07-02  Jim Meyering  <meyering@lucent.com>
79633
79634         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79635
79636         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79637         AC_LIBOBJ(function_name).
79638         * m4/chown.m4: Likewise.
79639         * m4/fnmatch.m4: Likewise.
79640         * m4/ftruncate.m4: Likewise.
79641         * m4/getgroups.m4: Likewise.
79642         * m4/getline.m4: Likewise.
79643         * m4/group-member.m4: Likewise.
79644         * m4/jm-macros.m4: Likewise.
79645         * m4/lstat.m4: Likewise.
79646         * m4/malloc.m4: Likewise.
79647         * m4/memcmp.m4: Likewise.
79648         * m4/nanosleep.m4: Likewise.
79649         * m4/putenv.m4: Likewise.
79650         * m4/realloc.m4: Likewise.
79651         * m4/regex.m4: Likewise.
79652         * m4/stat.m4: Likewise.
79653         * m4/strftime.m4: Likewise.
79654
79655 2000-07-02  Jim Meyering  <meyering@lucent.com>
79656
79657         * lib/quotearg.c (mbstate_t): Don't define here.
79658
79659 2000-07-02  Jim Meyering  <meyering@lucent.com>
79660
79661         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79662
79663 2000-07-01  Jim Meyering  <meyering@lucent.com>
79664
79665         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79666
79667 2000-07-01  Jim Meyering  <meyering@lucent.com>
79668
79669         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79670         problem.
79671
79672 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79673
79674         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79675         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79676
79677 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79678
79679         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79680         per change in ../m4/ls-mntd-fs.m4.
79681         (read_filesystem_list): Ignore symbolic links.
79682
79683 2000-06-29  Jim Meyering  <meyering@lucent.com>
79684
79685         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79686         for declaration of strcmp.
79687
79688         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79689
79690         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79691         Avoid warning by casting result to `char *' to remove `const'.
79692
79693 2000-06-28  Jim Meyering  <meyering@lucent.com>
79694
79695         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79696         included by quotearg.c, for which we perform this test.  From
79697         Bruno Haible.
79698
79699 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79700
79701         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79702         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79703         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79704
79705 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79706
79707         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79708
79709 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79710
79711         savedir now sets errno on failure and invokes xmalloc to get memory.
79712         Fix a couple of other minor bugs while we're at it.
79713
79714         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79715         (NAMLEN): Remove macro.
79716         (malloc, realloc): Remove decls.
79717         (stpcpy): Likewise.
79718         ("xalloc.h"): Include.
79719         (NAME_SIZE_DEFAULT): New macro.
79720         (savedir): Use xmalloc / xrealloc to allocate memory.
79721         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79722         Skip "" directory entries.
79723         Use strlen to calculate directory entry length, since the old method
79724         is rarely used these days and isn't worth supporting.
79725         Don't use a pointer after freeing it.
79726         Check for integer overflow when calculating allocation size.
79727         Use memcpy to copy entries, instead of stpcpy.
79728         Set errno properly when returning NULL.
79729         Check for readdir error.
79730
79731 2000-06-26  Jim Meyering  <meyering@lucent.com>
79732
79733         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79734
79735 2000-06-25  Jim Meyering  <meyering@lucent.com>
79736
79737         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79738         Linux header bug when _XOPEN_SOURCE is defined to 500.
79739
79740 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79741
79742         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79743         deficiency.
79744
79745 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79746
79747         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79748         Include xalloc.h.
79749         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79750
79751 2000-06-24  Jim Meyering  <meyering@lucent.com>
79752
79753         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79754         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79755         for which strerror does return char*, but which lacks a conveniently
79756         accessible declaration of the function.  If the compile-test says
79757         strerror_r doesn't work, then resort to a `run'-test that works on
79758         BeOS and segfaults on DEC Unix.
79759
79760 2000-06-24  Jim Meyering  <meyering@lucent.com>
79761
79762         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79763
79764 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79765
79766         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79767         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79768
79769 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79770
79771         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79772         (mbrtowc, mbstate_t): Define substitutes if
79773         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79774         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79775         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79776
79777 2000-06-23  Jim Meyering  <meyering@lucent.com>
79778
79779         * m4/afs.m4: Add missing AC_MSG_RESULT.
79780         Reported by Bruno Haible.
79781
79782         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79783         Suggestion from Bruno Haible.
79784
79785 2000-06-23  Jim Meyering  <meyering@lucent.com>
79786
79787         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79788
79789 2000-06-21  Jim Meyering  <meyering@lucent.com>
79790
79791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79792
79793 2000-06-21  Jim Meyering  <meyering@lucent.com>
79794
79795         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79796         (noinst_HEADERS): Add getstr.h.
79797
79798         * lib/getline.c (getstr): Move into a separate file.
79799         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79800         the following changes: new parameter, delim2; both delim[12]
79801         parameters have type `int', not `char'.  The latter would lose
79802         with 8-bit delimiters.
79803         * lib/getstr.h: New file.
79804
79805 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79806
79807         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79808         than 1024, return a memory chunk of least possible size, instead
79809         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79810         Use free/xmalloc instead of xrealloc to avoid copying for very long
79811         paths.
79812
79813 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79814
79815         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79816         the empty string.
79817
79818 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79819
79820         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79821         address, not strdup.  Include <stdlib.h> and don't declare free().
79822
79823 2000-06-19  Jim Meyering  <meyering@lucent.com>
79824
79825         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79826
79827 2000-06-18  Jim Meyering  <meyering@lucent.com>
79828
79829         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79830
79831         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79832         `checking whether...' message to be consistent with that of the
79833         lstat test.
79834
79835 2000-06-18  Jim Meyering  <meyering@lucent.com>
79836
79837         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79838         Besides, these days every porting target provides a mkdir function.
79839
79840         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79841         needed. (this snippet comes from src/system.h).
79842
79843 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79844
79845         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79846
79847 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79848
79849         * lib/human.c (adjust_value): New function.
79850         (human_readable_inexact): Apply rounding style even when
79851         printing approximate values.
79852
79853 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79854
79855         * lib/human.c (human_readable_inexact): Allow an input block
79856         size that is not a multiple of the output block size, and vice versa.
79857         Reported by Piergiorgio Sartor.
79858
79859 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79860
79861         * lib/getdate.y (get_date): Apply relative times after time
79862         zone indicator, not before.  Reported by Todd A. Jacobs.
79863
79864 2000-06-13  Jim Meyering  <meyering@lucent.com>
79865
79866         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79867
79868         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79869
79870 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79871
79872         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79873
79874 2000-06-12  Jim Meyering  <meyering@lucent.com>
79875
79876         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79877         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79878         optional argument.
79879         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79880         the optional argument, `lib'.
79881
79882 2000-06-08  Jim Meyering  <meyering@lucent.com>
79883
79884         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79885
79886 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79887
79888         Rewrite largefile configuration so that we don't need to run
79889         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79890         AC_CANONICAL_HOST in configure.in -- jmm]
79891
79892         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79893         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79894         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79895         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79896         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79897         All uses changed.
79898         Instead of inspecting the output of getconf, try to compile the
79899         test program without and with the macro definition.
79900         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79901         for getconf.  Instead, check for the needed flags by compiling
79902         test programs.
79903
79904 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79905
79906         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79907
79908 2000-06-04  Jim Meyering  <meyering@lucent.com>
79909
79910         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79911         SunOS 4.1.4 for which gid_t is an unsigned type.
79912
79913 2000-06-03  Jim Meyering  <meyering@lucent.com>
79914
79915         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79916         now that autoconf requires that.
79917
79918         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79919         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79920         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79921
79922 2000-06-03  Jim Meyering  <meyering@lucent.com>
79923
79924         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79925
79926 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79927
79928         * m4/glibc21.m4: New file.
79929         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79930
79931 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79932
79933         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79934         newer, don't install charset.alias.
79935         * lib/config.charset: Change the Linux/glibc rules so they become empty
79936         on glibc-2.1 or newer.
79937
79938 2000-06-02  Jim Meyering  <meyering@lucent.com>
79939
79940         * lib/mountlist.c: Back out last change.  Instead, do this...
79941         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79942         me_dummy member using the same `ignore'-testing code.
79943         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79944         fs_type strings.
79945         From Mark D. Roth.
79946
79947 2000-05-29  Jim Meyering  <meyering@lucent.com>
79948
79949         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79950         mounts with the `ignore' attribute.  Based on a patch from
79951         Mark D. Roth.
79952
79953 2000-05-28  Jim Meyering  <meyering@lucent.com>
79954
79955         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79956         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79957         * m4/stat.m4: Likewise.
79958         * m4/lstat.m4: Likewise.
79959         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79960
79961         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79962         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79963
79964 2000-05-26  Jim Meyering  <meyering@lucent.com>
79965
79966         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79967
79968 2000-05-24  Jim Meyering  <meyering@lucent.com>
79969
79970         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79971         autoconf requires that.
79972         * m4/lib-check.m4: Likewise.
79973         * m4/jm-macros.m4: Likewise.
79974         * m4/strftime.m4: Likewise.
79975
79976         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79977         AC_CHECK_DECLS, now that autoconf requires that.
79978
79979 2000-05-22  Jim Meyering  <meyering@lucent.com>
79980
79981         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79982         * m4/lstat.m4: Likewise.
79983
79984 2000-05-22  Jim Meyering  <meyering@lucent.com>
79985
79986         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79987
79988 2000-05-20  Jim Meyering  <meyering@lucent.com>
79989
79990         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79991         (jm_PREREQ): Use it.
79992
79993 2000-05-18  Jim Meyering  <meyering@lucent.com>
79994
79995         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79996         back, too, since it may have been modified by allocate_entry.
79997         (hash_delete): Rewrite to use neither the assignment operator
79998         nor the comma operator in an if-expression.
79999
80000 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80001
80002         * lib/closeout.c:
80003         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80004         Remove; no longer needed.
80005         "quotearg.h": Add include.
80006         (file_name): Do not bother to explicitly initialize to NULL; it's less
80007         efficient on some hosts.
80008         (close_stdout_status): Remove test as to whether stdout was already
80009         closed; it breaks for the case "echo x | sort >&-".
80010         Quote file name colons.
80011         Do not assume that _("write error") lacks format strings.
80012
80013 2000-05-15  Jim Meyering  <meyering@lucent.com>
80014
80015         * lib/version-etc.c (version_etc_copyright): Update the copyright
80016         string used in all --version output.
80017
80018 2000-05-14  Jim Meyering  <meyering@lucent.com>
80019
80020         * lib/closeout.c (close_stdout_set_file_name): New function.
80021         (close_stdout_status): Use new file-scoped global.
80022         Return right away if fstat says the stdout file descriptor is invalid.
80023         * lib/closeout.h (close_stdout_set_file_name): Declare.
80024
80025 2000-05-10  Jim Meyering  <meyering@lucent.com>
80026
80027         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80028         (close_stdout_set_status): New function.
80029         * lib/closeout.h (close_stdout_set_status): Declare.
80030
80031 2000-05-09  Jim Meyering  <meyering@lucent.com>
80032
80033         * m4/gettext.m4: Rename this...
80034         * m4/libintl.m4: ...to this.
80035
80036 2000-05-08  Jim Meyering  <meyering@lucent.com>
80037
80038         * lib/long-options.c: Don't include closeout.h.
80039         (parse_long_options): Don't call close_stdout for --version.
80040
80041 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80042
80043         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80044         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80045         2.1.3 bug.  This avoids a clash when files like regex.c define
80046         _GNU_SOURCE.
80047
80048 2000-05-06  Jim Meyering  <meyering@lucent.com>
80049
80050         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80051         (AC_REPLACE_FUNCS): Add strnlen.
80052
80053         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80054         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80055
80056         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80057         AC_SEARCH_LIBS call for nanosleep.
80058         (LIB_NANOSLEEP): Set and AC_SUBST.
80059
80060 2000-05-06  Jim Meyering  <meyering@lucent.com>
80061
80062         * lib/strnlen.c: Undefine __strnlen and strnlen.
80063         [!weak_alias]: Define __strnlen to strnlen.
80064
80065         * lib/atexit.c: New file, from libiberty.
80066
80067 2000-05-06  Jim Meyering  <meyering@lucent.com>
80068
80069         * lib/closeout.c (close_stdout_status): Also check for errors on the
80070         stderr stream.
80071
80072 2000-05-05  Jim Meyering  <meyering@lucent.com>
80073
80074         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80075         AC_SEARCH_LIBS call for clock_gettime.
80076         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80077
80078         * m4/search-libs.m4: Update from autoconf.
80079
80080         su doesn't work on Solaris 2.6.
80081         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80082         <shadow.h>.  Reported by Dragos Harabor.
80083
80084 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80085
80086         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80087         memcpy instead of xmalloc, xrealloc, path_concat.
80088         (locale_charset): Treat empty environment variables as absent.
80089         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80090
80091 2000-05-04  Jim Meyering  <meyering@lucent.com>
80092
80093         * lib/getopt.c: Update from glibc.
80094         * lib/obstack.c: Likewise.
80095         * lib/obstack.h: Likewise.
80096         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80097         file
80098
80099         * lib/regex.h: Likewise.
80100         * lib/strndup.c: Likewise.
80101         * lib/strnlen.c: New file, from glibc.
80102
80103 2000-05-03  Jim Meyering  <meyering@lucent.com>
80104
80105         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80106
80107 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80108
80109         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80110         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80111         compile-time test, rather than inspecting host and OS, to
80112         decide whether to define _LARGEFILE_SOURCE.
80113
80114 2000-05-01  Jim Meyering  <meyering@lucent.com>
80115
80116         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80117
80118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80119         Based on a patch from Bruno Haible.
80120
80121 2000-05-01  Jim Meyering  <meyering@lucent.com>
80122
80123         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80124
80125 2000-04-29  Jim Meyering  <meyering@lucent.com>
80126
80127         * lib/path-concat.c: Declare strdup only if it's not defined.
80128         * lib/canon-host.c: Likewise.
80129
80130 2000-04-28  Jim Meyering  <meyering@lucent.com>
80131
80132         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80133         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80134         is included first, then limits.h is included by locale.h by libintl.h.
80135         From John David Anglin.
80136
80137 2000-04-25  Jim Meyering  <meyering@lucent.com>
80138
80139         * lib/makepath.c (S_IRWXUGO): Define.
80140         (make_path): Always perform explicit chmod if MODE specifies any
80141         of the `special' permission bits.  Prompted by a bug report against
80142         install from Mate Wierdl and Joost van Baal.
80143
80144 2000-04-18  Jim Meyering  <meyering@lucent.com>
80145
80146         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80147         (jm_PREREQ): Use it.
80148
80149 2000-04-18  Jim Meyering  <meyering@lucent.com>
80150
80151         * lib/README: New file.
80152
80153         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80154         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80155
80156 2000-04-17  Jim Meyering  <meyering@lucent.com>
80157
80158         Get it right :-)
80159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80160         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80161         Suggestion from Akim Demaille.
80162
80163 2000-04-17  Jim Meyering  <meyering@lucent.com>
80164
80165         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80166         the definition of it to rpl_strftime also defined-away the system's
80167         declaration.
80168
80169 2000-04-15  Jim Meyering  <meyering@lucent.com>
80170
80171         Use `C' to denote so-called `contiguous' files, the same way
80172         that tar does.
80173         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80174         (ftypelet): Use S_ISCTG.
80175         From Michael Deutschmann.
80176
80177 2000-04-14  Jim Meyering  <meyering@lucent.com>
80178
80179         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80180         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80181         clobbered.
80182
80183 2000-04-14  Jim Meyering  <meyering@lucent.com>
80184
80185         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80186
80187 2000-04-13  Jim Meyering  <meyering@lucent.com>
80188
80189         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80190         AH_VERBATIM to insert required #ifndef into config.h.in.
80191         Suggestion from Akim Demaille.
80192
80193 2000-04-12  Jim Meyering  <meyering@lucent.com>
80194
80195         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80196         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80197         Christian Krackowizer.
80198
80199         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80200         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80201         (AC_SYS_LARGEFILE): Require.
80202         (AM_C_PROTOTYPES): Require.
80203
80204 2000-04-08  Jim Meyering  <meyering@lucent.com>
80205
80206         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80207         names don't conflict.  Reported by Eli Zaretskii.
80208
80209 2000-04-07  Jim Meyering  <meyering@lucent.com>
80210
80211         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80212         sys/types.h, to work around system header problems on AIX 3.2.5.
80213         From Bruno Haible.
80214
80215 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80216
80217         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80218         bug.  Deal with the different error behavior of Irix iconv.
80219
80220 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80221
80222         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80223         IRIX if the installer said otherwise.
80224
80225 2000-04-05  Jim Meyering  <meyering@lucent.com>
80226
80227         Portability tweaks required for ultrix4.3.
80228         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80229         (jm_CHECK_DECLS): Add getutent to the list of functions.
80230         (_jm_DECL_HEADERS): Add utmpx.h.
80231         From John David Anglin.
80232
80233         * m4/strftime.m4: Back out the 2000-04-02 change.
80234         Instead of that change, simply undefine putenv in the test program.
80235
80236 2000-04-05  Jim Meyering  <meyering@lucent.com>
80237
80238         Portability tweaks required for ultrix4.3.
80239         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80240         getutent.
80241         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80242         * lib/canon-host.c: Declare strdup.
80243         * lib/path-concat.c: Likewise.
80244         From John David Anglin.
80245
80246 2000-04-04  Jim Meyering  <meyering@lucent.com>
80247
80248         Be more DOS 8.3-friendly.
80249         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80250         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80251         * lib/Makefile.am: Reflect renaming.
80252         Reported by Eli Zaretskii.
80253
80254         Use a temporary file name that won't clash with `charset.alias'
80255         in the DOS 8.3 name space.
80256         * lib/Makefile.am (charset_tmp): Define.
80257         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80258         (uninstall-local): Likewise.
80259         Reported by Eli Zaretskii.
80260
80261 2000-04-03  Jim Meyering  <meyering@lucent.com>
80262
80263         * m4/gettext.m4: Fix typo in comment.
80264
80265         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80266         textutils/configure.in).  Suggestion from Paul Eggert.
80267         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80268
80269 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80270
80271         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80272         variable in the shell rather than using putenv, which isn't
80273         portable.  This avoids the configure-time inter-test dependency
80274         on the potentially-renamed putenv function.
80275
80276 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80277
80278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80279         before checking struct stat.st_blksize, so that
80280         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80281
80282 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80283
80284         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80285         since strftime.c uses HAVE_STRFTIME to decide whether to use
80286         the underlying strftime.
80287
80288 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80289
80290         * lib/time/strftime.c (my_strftime): Make sure we call the system
80291         strftime, not ourselves, when invoking the underlying strftime.
80292
80293 2000-03-24  Jim Meyering  <meyering@lucent.com>
80294
80295         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80296         (charset_alias): Define.
80297         (install-exec-local): Factor out common code.
80298         (uninstall-local): Split lines longer than 80.
80299         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80300         (SUFFIXES): Define.
80301         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80302         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80303
80304 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80305
80306         * lib/config.charset: Output a line containing "Packages using this
80307         file".
80308         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80309         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80310         ref-del.sed): New rules.
80311
80312 2000-03-17  Jim Meyering  <meyering@lucent.com>
80313
80314         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80315         Otherwise, include <strings.h>
80316
80317 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80318
80319         * lib/unicodeio.c (utf8_wctomb): New function.
80320         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80321         format instead of in UCS-4 with platform dependent endianness.
80322
80323 2000-03-10  Jim Meyering  <meyering@lucent.com>
80324
80325         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80326         From Marco Franzen.
80327
80328 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80329
80330         * lib/savedir.c (savedir): Work even if directory size is
80331         negative; this can happen with some screwy NFS configurations.
80332
80333 2000-03-06  Jim Meyering  <meyering@lucent.com>
80334
80335         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80336         if it's NULL (because we ran out of memory).  From Bruno Haible.
80337
80338 2000-03-05  Jim Meyering  <meyering@lucent.com>
80339
80340         * lib/localcharset.c ("path-concat.h"): Include.
80341         (get_charset_aliases): Use path_concat instead of ANSI string
80342         concatenation.
80343
80344         * lib/unicodeio.h (PARAMS): Define.
80345         Use it to guard prototype.
80346
80347 2000-03-04  Jim Meyering  <meyering@lucent.com>
80348
80349         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80350         for lib/localcharset.c.
80351
80352 2000-03-04  Jim Meyering  <meyering@lucent.com>
80353
80354         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80355         installing into it.
80356         (uninstall-local): Uncomment this rule so `make distcheck' works
80357         once again.
80358
80359         * lib/unicodeio.c (<errno.h>): Include it.
80360         (errno): Declare if not defined.
80361
80362         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80363
80364         * lib/config.charset: New version, incorporating remarks from a linux
80365         i18n mailing list.  From Bruno Haible.
80366
80367 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80368
80369         * m4/codeset.m4: New file.
80370         * m4/iconv.m4: New file.
80371         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80372
80373 2000-03-03  Jim Meyering  <meyering@lucent.com>
80374
80375         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80376
80377 2000-03-02  Jim Meyering  <meyering@lucent.com>
80378
80379         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80380         the messages come out on separate lines.
80381
80382         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80383         rather than jm_CHECK_DECLARATIONS.
80384         * m4/decl.m4: Remove now-unused file.
80385
80386         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80387         geteuid.
80388
80389 2000-03-02  Jim Meyering  <meyering@lucent.com>
80390
80391         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80392
80393 2000-03-01  Jim Meyering  <meyering@lucent.com>
80394
80395         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80396         * lib/unicodeio.c: Likewise.
80397
80398 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80399
80400         * lib/config.charset: New file.
80401         * lib/localcharset.c: New file.
80402         * lib/unicodeio.h, lib/unicodeio.c: New files.
80403         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80404         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80405         (noinst_HEADERS): Add unicodeio.h.
80406         (all-local, install-exec-local, charset.alias): New targets.
80407
80408 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80409
80410         * lib/quotearg.c (ALERT_CHAR): New macro.
80411         (quotearg_buffer_restyled): Use it.
80412
80413 2000-02-27  Jim Meyering  <meyering@lucent.com>
80414
80415         * m4/check-decl.m4: Add getenv to the list.
80416
80417 2000-02-27  Jim Meyering  <meyering@lucent.com>
80418
80419         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80420         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80421
80422         * lib/backupfile.c: Guard inclusion of stdlib.h with
80423         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80424         Declare malloc if needed.
80425
80426         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80427         `#ifndef HAVE_DECL..'
80428         now that autoconf always defines the HAVE_DECL_ symbols.
80429         * lib/human.c: Likewise.
80430         * lib/same.c: Likewise.
80431         * lib/strtoumax.c: Likewise.
80432
80433         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80434         declaration check was not run.
80435         * lib/hash.c: Likewise.
80436         * lib/human.c: Likewise.
80437         * lib/same.c: Likewise.
80438         * lib/strtoumax.c: Likewise.
80439
80440         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80441         `.', then first look up the entire `.'-containing string as a login
80442         name.
80443
80444 2000-02-23  Jim Meyering  <meyering@lucent.com>
80445
80446         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80447         in place of my hack.
80448
80449 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80450
80451         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80452         (textint): New typedef.
80453         (parser_control): Member year changed from int to textint.
80454         All uses changed.
80455         (YYSTYPE): Removed; replaced by %union with int and textint members.
80456         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80457         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80458         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80459         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80460         (date, number, to_year): Use width of number in digits, not its value,
80461         to determine whether it's a 2-digit year, or a 2-digit time.
80462         (yylex): Store number of digits of numeric tokens.
80463         Reported by John Kendall.
80464
80465         (parser_control): Changed from struct parser_control to typedef (for
80466         consistency).  All uses changed.
80467
80468         (tID): Removed; not used.
80469         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80470
80471 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80472
80473         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80474         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80475
80476 2000-02-12  Jim Meyering  <meyering@lucent.com>
80477
80478         * lib/userspec.c (ISDIGIT): Define it.
80479         (isdigit): Remove definition.
80480         (is_number): Use ISDIGIT, not isdigit.
80481         <libintl.h>: Include.
80482         (_ and N_): Define.
80483         (parse_user_spec): Mark translatable strings.
80484
80485 2000-02-10  Jim Meyering  <meyering@lucent.com>
80486
80487         With these changes, nanosleep.[ch] are finally enough like the other
80488         lib/* replacement files to compile on a few more losing systems.
80489
80490         * lib/nanosleep.h: Don't include config.h.
80491         Remove prototype from declaration of nanosleep.
80492         (PARAMS): Remove now-unneeded definition.
80493         * lib/nanosleep.c: #undef nanosleep.
80494         (rpl_nanosleep): Rename from nanosleep.
80495
80496 2000-02-10  Jim Meyering  <meyering@lucent.com>
80497
80498         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80499         gnu_nanosleep to rpl_nanosleep.
80500
80501 2000-02-09  Jim Meyering  <meyering@lucent.com>
80502
80503         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80504         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80505
80506 2000-02-08  Akim Demaille  <akim@epita.fr>
80507
80508         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80509         `[' and `]' and remove uses of `changequote'.
80510         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80511         (AC_SYS_LARGEFILE): Likewise.
80512         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80513         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80514         of changequote.
80515         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80516         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80517         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80518         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80519
80520 2000-02-05  Jim Meyering  <meyering@lucent.com>
80521
80522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80523         Remove explicit use of AC_HEADER_TIME.  It is required by
80524         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80525         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80526         in autoconf whereby the expansion of the latter ended up preceding
80527         the expansion of its prerequisite, AC_HEADER_TIME.
80528         Reported by Volker Borchert.
80529
80530 2000-02-03  Jim Meyering  <meyering@lucent.com>
80531
80532         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80533
80534 2000-02-03  Jim Meyering  <meyering@lucent.com>
80535
80536         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80537         rather than with `#if HAVE_UTMPNAME'.
80538
80539 2000-02-02  Jim Meyering  <meyering@lucent.com>
80540
80541         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80542         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80543         Reported by Eli Zaretskii.
80544
80545 2000-02-01  Jim Meyering  <meyering@lucent.com>
80546
80547         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80548
80549 2000-01-31  Jim Meyering  <meyering@lucent.com>
80550
80551         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80552         functions.  Add the time.h and sys/time.h headers along with the
80553         AC_REQUIRE'ment of AC_HEADER_TIME.
80554
80555 2000-01-31  Jim Meyering  <meyering@lucent.com>
80556
80557         * lib/nanosleep.h (nanosleep): Guard declaration with
80558         `#if ! HAVE_DECL_NANOSLEEP'.
80559         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80560         the declaration in that vendor's sys/timers.h.
80561         Reported by Christian Krackowizer.
80562
80563         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80564         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80565         (ISPRINT): Likewise.
80566         Reported by Tom Tromey.
80567
80568 2000-01-30  Jim Meyering  <meyering@lucent.com>
80569
80570         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80571
80572         * m4/prereq.m4 (utmp_includes): Define.
80573         Check for ut_user and ut_name members in both struct utmpx
80574         and struct utmp.
80575
80576 2000-01-30  Jim Meyering  <meyering@lucent.com>
80577
80578         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80579         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80580         header files where only utmpx.ut_user is declared.
80581
80582         * lib/readutmp.h (UT_USER): Define.
80583
80584 2000-01-29  Jim Meyering  <meyering@lucent.com>
80585
80586         * m4/lib-check.m4: New file containing library-related checks from
80587         fileutils and sh-utils (textutils had none).
80588
80589 2000-01-28  Jim Meyering  <meyering@lucent.com>
80590
80591         * m4/perl.m4: Change format of warning message to look more like that
80592         from the missing script.  Suggestion from François Pinard.
80593
80594 2000-01-25  Jim Meyering  <meyering@lucent.com>
80595
80596         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80597         well as time.h in the compile check.
80598         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80599         Fix typo in cross-compiling case: s/yes/no/.
80600
80601 2000-01-23  Jim Meyering  <meyering@lucent.com>
80602
80603         * m4/jm-macros.m4: Move df-related tests here from
80604         fileutils/configure.in
80605
80606         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80607         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80608
80609         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80610         s/space/ac_fsusage_space/.
80611         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80612
80613         * m4/ftruncate.m4: New file (derived from part of
80614         fileutils/configure.in).
80615         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80616         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80617
80618         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80619         AC_SUBST these here, rather than just in sh-util/configure.in, so
80620         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80621         all the same.
80622         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80623         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80624         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80625         (AC_SUBST(POW_LIBM)): Likewise.
80626         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80627
80628 2000-01-23  Jim Meyering  <meyering@lucent.com>
80629
80630         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80631         obstack.c.
80632
80633 2000-01-22  Jim Meyering  <meyering@lucent.com>
80634
80635         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80636
80637         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80638
80639         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80640         configure.in
80641         (AC_CHECK_HEADERS): Likewise for sh-utils.
80642         (AC_CHECK_HEADERS): Likewise for textutils.
80643         Merge the three lists of headers.
80644
80645         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80646         from fileutils' configure.in.
80647
80648         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80649         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80650         check-decl.m4.
80651
80652         * m4/check-decl.m4: Use #if rather than #ifdef.
80653         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80654         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80655         (_jm_DECL_HEADERS): Define new function.
80656         (jm_CHECK_DECLARATIONS): Require it.
80657
80658 2000-01-22  Jim Meyering  <meyering@lucent.com>
80659
80660         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80661         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80662         Required for some AIX systems.  Reported by Christian Krackowizer.
80663         [TESTING] (main): New function.
80664
80665         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80666         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80667         letters.
80668
80669         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80670         iswprint.
80671
80672         * lib/strverscmp.c (ISDIGIT): Define.
80673         (strverscmp): Use ISDIGIT, not isdigit.
80674
80675 2000-01-19  Jim Meyering  <meyering@lucent.com>
80676
80677         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80678         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80679         defines `struct timespec' in <sys/time.h>
80680
80681         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80682         Thanks to Akim for explaining.
80683
80684 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80685
80686         * lib/nanosleep.c (nanosleep):
80687         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80688         POSIX.1 doesn't require SA_INTERRUPT and some systems
80689         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80690         it's been part of POSIX.1 since day 1 (in 1988).
80691
80692 2000-01-17  Jim Meyering  <meyering@lucent.com>
80693
80694         * lib/interlock: Remove unused file.  Reported by François Pinard.
80695
80696 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80697
80698         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80699         alert, backslash, formfeed, and vertical tab unnecessarily in
80700         shell quoting style.
80701
80702 2000-01-16  Jim Meyering  <meyering@lucent.com>
80703
80704         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80705         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80706         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80707         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80708
80709 2000-01-16  Jim Meyering  <meyering@lucent.com>
80710
80711         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80712         because the latter didn't work.
80713
80714 2000-01-15  Jim Meyering  <meyering@lucent.com>
80715
80716         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80717         (AC_REPLACE_FUNCS): Add memcpy and memset.
80718         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80719         Add strpbrk.
80720         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80721
80722 2000-01-12  Jim Meyering  <meyering@lucent.com>
80723
80724         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80725         (jm_PREREQ): Use it.
80726         (jm_PREREQ_READUTMP): New macro.
80727         (jm_PREREQ): Use it.
80728
80729 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80730
80731         Quote multibyte characters correctly.
80732         * m4/c-bs-a.m4: New file.
80733         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80734         (jm_PREREQ): Use it.
80735
80736 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80737
80738         * m4/uintmax_t.m4: Port to autoconf 2.13.
80739
80740 2000-01-08  Jim Meyering  <meyering@ascend.com>
80741
80742         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80743         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80744
80745 2000-01-04  Jim Meyering  <meyering@ascend.com>
80746
80747         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80748         jm_STRUCT_DIRENT_D_TYPE.
80749         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80750         jm_STRUCT_DIRENT_D_INO.
80751         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80752         jm_STRUCT_UTIMBUF.
80753         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80754         renamings.
80755         * m4/utime.m4: Likewise.
80756
80757         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80758         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80759
80760 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80761
80762         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80763         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80764
80765 2000-01-02  Jim Meyering  <meyering@ascend.com>
80766
80767         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80768         remember if this is necessary.
80769
80770 1999-12-26  Jim Meyering  <meyering@ascend.com>
80771
80772         * m4/jm-macros.m4: Use it here.
80773         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80774
80775 1999-12-23  Jim Meyering  <meyering@ascend.com>
80776
80777         * m4/jm-macros.m4: Check for clock_gettime (moved from
80778         fileutils/configure.in)
80779         Check for gettimeofday.
80780
80781 1999-12-20  Jim Meyering  <meyering@ascend.com>
80782
80783         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80784         autoconf-2.14a-1999-12-20.
80785
80786 1999-12-19  Jim Meyering  <meyering@ascend.com>
80787
80788         * m4/lstat-slash.m4: New file.
80789         * m4/jm-macros.m4: Use the new macro:
80790         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80791
80792 1999-12-07  Jim Meyering  <meyering@ascend.com>
80793
80794         * m4/perl.m4: Require that File::Compare be available, too.
80795         Too many systems seem to lack it.
80796
80797         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80798         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80799
80800 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80801
80802         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80803         problem with the QNX 4.25 shell, which doesn't propagate exit
80804         status of failed commands inside shell assignments.
80805
80806 1999-11-17  Jim Meyering  <meyering@ascend.com>
80807
80808         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80809
80810 1999-11-07  Jim Meyering  <meyering@ascend.com>
80811
80812         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80813
80814 1999-11-06  Jim Meyering  <meyering@ascend.com>
80815
80816         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80817         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80818
80819 1999-11-05  Jim Meyering  <meyering@ascend.com>
80820
80821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80822         configure.in of textutils, fileutils, and sh-utils into this one
80823         (shared between those packages) file.
80824         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80825         AC_STRUCT_ST_BLKSIZE.
80826
80827 1999-11-03  Jim Meyering  <meyering@ascend.com>
80828
80829         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80830         of AC_CHECK_TYPE checks includes unistd.h.
80831         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80832         Suggestion from Akim Demaille.
80833
80834 1999-10-30  Jim Meyering  <meyering@ascend.com>
80835
80836         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80837         m4-quoted string.
80838         * m4/ls-mntd-fs.m4: Likewise.
80839         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80840         * m4/jm-winsz1.m4: Likewise.
80841
80842         * m4/const.m4: Remove file, since the fix made it into the experimental
80843         version of autoconf.
80844         * m4/mktime.m4: Likewise.
80845
80846         * m4/check-type.m4: Remove file, now that the latest version of
80847         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80848
80849         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80850         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80851         AC_CHECK_TYPE.
80852
80853 1999-10-04  Jim Meyering  <meyering@ascend.com>
80854
80855         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80856
80857 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80858
80859         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80860         2.95.1 bug with HP-UX 10.20.
80861
80862 1999-09-17  Jim Meyering  <meyering@ascend.com>
80863
80864         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80865         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80866         due to missing strdup (against sh-utils-2.0).
80867
80868 1999-08-29  Jim Meyering  <meyering@ascend.com>
80869
80870         * m4/jm-macros.m4: Require jm_BISON.
80871         * m4/bison.m4: New file.
80872
80873 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80874
80875         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80876         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80877
80878 1999-08-05  Jim Meyering  <meyering@ascend.com>
80879
80880         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80881         to avoid conflicts with `conftest' on 8+3 filesystems.
80882         Suggestion from Eli Zaretskii.
80883
80884 1999-08-04  Jim Meyering  <meyering@ascend.com>
80885
80886         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80887         fileutils and sh-utils (textutils's getline test was inadequate).
80888         (AM_FUNC_GETLINE): Run this test.
80889         (AC_CHECK_FUNCS): Check for getdelim.
80890         Reported by Bob Proulx.
80891
80892 1999-08-02  Jim Meyering  <meyering@ascend.com>
80893
80894         * m4/jm-macros.m4: Add a comment.
80895
80896 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80897
80898         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80899         <inttypes.h> defines strtoumax as a macro (and not as a
80900         function).
80901
80902 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80903
80904         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80905         that we can shift, multiply and divide unsigned long long
80906         values; Ultrix cc can't do it.
80907
80908 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80909
80910         * m4/mktime.m4: New file, which is a preview of what should appear
80911         in the next public autoconf release.
80912
80913 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80914
80915         * m4/lfs.m4: Remove this file.
80916         * m4/largefile.m4: New file.  It contains the old contents of
80917         lfs.m4, except that all names with prefix AC_LFS have been
80918         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80919         compatible with future autoconf versions.  Also, some minor m4
80920         quoting problems have been fixed.
80921
80922 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80923
80924         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80925         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80926         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80927         and simplify the shell code.
80928
80929 1999-08-01  Jim Meyering  <meyering@ascend.com>
80930
80931         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80932         m4.
80933
80934 1999-07-20  Jim Meyering  <meyering@ascend.com>
80935
80936         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80937
80938 1999-07-15  Jim Meyering  <meyering@ascend.com>
80939
80940         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80941
80942 1999-05-22  Jim Meyering  <meyering@ascend.com>
80943
80944         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80945
80946 1999-05-20  Jim Meyering  <meyering@ascend.com>
80947
80948         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80949         Add a colon after each `then' in case $4 is empty.
80950
80951 1999-05-16  Jim Meyering  <meyering@ascend.com>
80952
80953         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80954
80955 1999-05-10  Jim Meyering  <meyering@ascend.com>
80956
80957         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80958
80959         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80960         AC_FUNC_MKTIME.
80961
80962 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80963
80964         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80965
80966 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80967
80968         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80969         not CPPFLAGS, so that linking works correctly in IRIX.
80970
80971 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80972
80973         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80974
80975 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80976
80977         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80978         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80979         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80980         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80981         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80982
80983         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80984
80985 1999-04-20  Jim Meyering  <meyering@ascend.com>
80986
80987         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80988         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80989         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80990
80991 1999-04-18  Jim Meyering  <meyering@ascend.com>
80992
80993         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80994         * m4/jm-macros.m4: Use it.
80995
80996 1999-04-06  Jim Meyering  <meyering@ascend.com>
80997
80998         * m4/strftime.m4: Remove test for %f.
80999
81000 1999-03-29  Jim Meyering  <meyering@ascend.com>
81001
81002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81003         superset of the AC_TYPE_* checks in the textutils, fileutils,
81004         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81005         AC_TYPE_PID_T.
81006
81007 1999-03-28  Jim Meyering  <meyering@ascend.com>
81008
81009         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81010         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81011         replaced e.g., in the *.sh files of the sh-utils.
81012
81013 1999-03-20  Jim Meyering  <meyering@ascend.com>
81014
81015         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81016         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81017         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81018
81019 1999-03-19  Jim Meyering  <meyering@ascend.com>
81020
81021         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81022
81023 1999-03-12  Jim Meyering  <meyering@ascend.com>
81024
81025         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81026
81027 1999-03-07  Jim Meyering  <meyering@ascend.com>
81028
81029         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81030         declared.
81031
81032 1999-02-17  Jim Meyering  <meyering@ascend.com>
81033
81034         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81035         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81036
81037 1999-02-07  Jim Meyering  <meyering@ascend.com>
81038
81039         * m4/group-member.m4: New file -- extracted from sh-utils'
81040         configure.in.
81041
81042         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81043         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81044
81045 1999-02-06  Jim Meyering  <meyering@ascend.com>
81046
81047         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81048         * m4/fnmatch.m4: Likewise.
81049         * m4/getgroups.m4: Likewise.
81050         * m4/lstat.m4: Likewise.
81051         * m4/malloc.m4: Likewise.
81052         * m4/putenv.m4: Likewise.
81053         * m4/realloc.m4: Likewise.
81054         * m4/regex.m4: Likewise.
81055         * m4/stat.m4: Likewise.
81056         * m4/strftime.m4: Likewise.
81057         Suggestion from Alain Magloire.
81058
81059         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81060         * m4/fnmatch.m4: Likewise.
81061         * m4/getgroups.m4: Likewise.
81062         * m4/getline.m4: Likewise.
81063         * m4/lstat.m4: Likewise.
81064         * m4/malloc.m4: Likewise.
81065         * m4/memcmp.m4: Likewise.
81066         * m4/putenv.m4: Likewise.
81067         * m4/realloc.m4: Likewise.
81068         * m4/regex.m4: Likewise.
81069         * m4/stat.m4: Likewise.
81070         * m4/strftime.m4: Likewise.
81071         Suggestion from Alain Magloire.
81072
81073         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81074         an argument.
81075
81076         * m4/regex.m4: Add a run-time Test for proper operation of
81077         re_compile_pattern.
81078
81079 1999-01-31  Jim Meyering  <meyering@ascend.com>
81080
81081         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81082
81083 1999-01-30  Jim Meyering  <meyering@ascend.com>
81084
81085         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81086
81087         * m4/jm-mktime.m4: Make this a wrapper around the official
81088         AM_FUNC_MKTIME rather than my private copy, now that the official one
81089         is up to date.
81090         * m4/mktime.m4: Remove file.
81091
81092         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81093         * m4/uptime.m4: Likewise.
81094         * m4/uintmax_t.m4: Likewise.
81095
81096 1999-01-28  Jim Meyering  <meyering@ascend.com>
81097
81098         * m4/jm-macros.m4: Use jm_AFS.
81099         * m4/afs.m4: New file (from fileutils' configure.in).
81100
81101         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81102         * m4/chown.m4: Likewise.
81103         * m4/d-ino.m4: Likewise.
81104         * m4/d-type.m4: Likewise.
81105         * m4/fnmatch.m4: Likewise.
81106         * m4/getgroups.m4: Likewise.
81107         * m4/gettext.m4: Likewise.
81108         * m4/jm-mktime.m4: Likewise.
81109         * m4/jm-winsz2.m4: Likewise.
81110         * m4/lcmessage.m4: Likewise.
81111         * m4/ls-mntd-fs.m4: Likewise.
81112         * m4/malloc.m4: Likewise.
81113         * m4/memcmp.m4: Likewise.
81114         * m4/putenv.m4: Likewise.
81115         * m4/realloc.m4: Likewise.
81116         * m4/st_mtim.m4: Likewise.
81117         * m4/strftime.m4: Likewise.
81118
81119 1999-01-16  Jim Meyering  <meyering@ascend.com>
81120
81121         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81122         (ARGMATCH_DIE_DECL): Define.
81123
81124 1999-01-12  Jim Meyering  <meyering@ascend.com>
81125
81126         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81127         Reported by Lars Hecking.
81128
81129 1999-01-10  Jim Meyering  <meyering@ascend.com>
81130
81131         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81132         gross kludge.
81133         * m4/inttypes_h.m4: Likewise.
81134         * m4/lstat.m4: Likewise.
81135         * m4/malloc.m4: Likewise.
81136         * m4/readdir.m4: Likewise.
81137         * m4/realloc.m4: Likewise.
81138         * m4/st_dm_mode.m4: Likewise.
81139         * m4/stat.m4: Likewise.
81140         * m4/utimbuf.m4: Likewise.
81141         * m4/utimes.m4: Likewise.
81142
81143         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81144         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81145         comments in config.h.in are meaningful.
81146
81147         * m4/jm-macros.m4: Require autoconf-2.13 here.
81148
81149         * m4/regex.m4: By default, don't use the included regex.c on systems
81150         with glibc 2.  Suggestion from Uli Drepper.
81151
81152 1999-01-02  Jim Meyering  <meyering@ascend.com>
81153
81154         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81155
81156 1998-12-18  Jim Meyering  <meyering@ascend.com>
81157
81158         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81159         Based on a suggestion from Lars Hecking.
81160
81161 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81162
81163         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81164
81165 1998-11-16  Jim Meyering  <meyering@ascend.com>
81166
81167         * m4/lfs.m4: Double-quote the `uname...` expression.
81168
81169 1998-11-14  Jim Meyering  <meyering@ascend.com>
81170
81171         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81172         * m4/stat.m4: Likewise.
81173
81174 1998-11-03  Jim Meyering  <meyering@ascend.com>
81175
81176         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81177         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81178
81179 1998-10-18  Jim Meyering  <meyering@ascend.com>
81180
81181         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81182
81183 1998-10-17  Jim Meyering  <meyering@ascend.com>
81184
81185         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81186         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81187         calls for those previously hard-coded headers.  Instead, take a new
81188         parameter.
81189         (jm_CHECK_DECLARATIONS): Reflect interface change.
81190         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81191         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81192
81193         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81194
81195 1998-10-14  Jim Meyering  <meyering@ascend.com>
81196
81197         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81198         instead of "TZ=America/Vancouver".  From Paul Eggert.
81199
81200 1998-10-11  Jim Meyering  <meyering@ascend.com>
81201
81202         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81203         This adds a test for a recently added compatibility fix for mktime.c.
81204         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81205
81206 1998-09-27  Jim Meyering  <meyering@ascend.com>
81207
81208         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81209
81210         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81211         ../configure.in, including a change from Gordon Matzigkeit to allow
81212         cross-compiling for the Hurd.
81213
81214         * m4/glibc.m4: New file/macro to test for the GNU C Library
81215         versions 1 and 2.  From Gordon Matzigkeit.
81216         Indent.
81217
81218 1998-09-21  Jim Meyering  <meyering@ascend.com>
81219
81220         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81221
81222 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81223
81224         Port nanosecond-resolution times to UnixWare 2.1.2 and
81225         pedantic Solaris 2.6.
81226
81227         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81228         AC_STRUCT_ST_MTIM.
81229         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81230         Generate name of ns member, instead of just 1 or undef.
81231         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81232
81233 1998-08-15  Jim Meyering  <meyering@ascend.com>
81234
81235         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81236         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81237         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81238         instead of jm_TYPE_SSIZE_T.
81239
81240 1998-08-12  Jim Meyering  <meyering@ascend.com>
81241
81242         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81243
81244 1998-08-02  Jim Meyering  <meyering@ascend.com>
81245
81246         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81247         in acconfig.h manually.
81248
81249 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81250
81251         * m4/st_mtim.m4: New file.
81252
81253 1998-07-28  Jim Meyering  <meyering@ascend.com>
81254
81255         * m4/utimes.m4: Undef stat.
81256
81257 1998-07-25  Jim Meyering  <meyering@ascend.com>
81258
81259         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81260         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81261
81262 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81263
81264         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81265         uid and gid actually remain unchanged.
81266
81267 1998-07-07  Jim Meyering  <meyering@ascend.com>
81268
81269         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81270
81271 1998-07-04  Jim Meyering  <meyering@ascend.com>
81272
81273         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81274         to prove that this macro can be used in packages without regex.c.
81275
81276 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81277
81278         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81279         is to be used.
81280
81281 1998-07-03  Jim Meyering  <meyering@ascend.com>
81282
81283         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81284
81285         * m4/gettext.m4: New file -- from gettext-0.10.35.
81286         * m4/lcmessage.m4: Likewise.
81287         * m4/progtest.m4: Likewise.
81288
81289         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81290         * m4/jm-macros.m4: Require the new macro.
81291
81292 1998-06-29  Jim Meyering  <meyering@ascend.com>
81293
81294         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81295         for the definition of NGROUPS (used in a system header included
81296         by sys/mount.h).
81297
81298 1998-06-28  Jim Meyering  <meyering@ascend.com>
81299
81300         * m4/ls-mntd-fs.m4: New file.
81301         * m4/fstypename.m4: New file.
81302
81303         * m4/jm-macros.m4: Require the new macro.
81304         * m4/jm-glibc-io.m4: New file.
81305
81306 1998-05-19  Jim Meyering  <meyering@ascend.com>
81307
81308         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81309         * m4/lchown.m4: New file.
81310
81311         * m4/Makefile.am.in: New file.
81312         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81313
81314 1998-05-14  Jim Meyering  <meyering@ascend.com>
81315
81316         * m4/Makefile.am (EXTRA_DIST): Add them.
81317         * m4/jm-macros.m4: New file.
81318         * m4/utimbuf.m4: New file.
81319
81320 1998-05-12  Jim Meyering  <meyering@ascend.com>
81321
81322         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81323
81324 1998-05-11  Jim Meyering  <meyering@ascend.com>
81325
81326         * m4/isc-posix.m4: New file.
81327
81328 1998-05-10  Jim Meyering  <meyering@ascend.com>
81329
81330         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81331
81332 1998-05-09  Jim Meyering  <meyering@ascend.com>
81333
81334         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81335         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81336         with automake.
81337
81338         * m4/ssize_t.m4: New file.
81339         * m4/mktime.m4: Remove file -- the new automake has this now.
81340
81341 1998-04-26  Jim Meyering  <meyering@ascend.com>
81342
81343         * m4/assert.m4: New file.
81344         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81345
81346 1998-04-05  Jim Meyering  <meyering@ascend.com>
81347
81348         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81349         (jm_PREREQ): Use it here.
81350
81351 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81352
81353         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81354         in acconfig.h.
81355
81356 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81357
81358         * m4/prereq.m4: New file.
81359         * m4/error.m4: New file.
81360         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81361
81362 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81363
81364         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81365         cache-check for the same variable -- that defeated the purpose of
81366         the test; the test program was never run.  This was a problem only
81367         on systems with losing getline functions -- HP-UX 10.20 is one.
81368         Reported by Bjorn Helgaas.
81369
81370 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81371
81372         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81373
81374 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81375
81376         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81377
81378         * m4/const.m4: New file.  Use an initializer in this declaration
81379         typedef int charset[2]; const charset x;
81380         Reported by Bob Glickstein.
81381
81382 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81383
81384         * m4/chown.m4: Fix reversed types on -1 args to chown.
81385         From Kaveh Ghazi.
81386
81387 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81388
81389         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81390         Add lseek and memchr.
81391
81392         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81393         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81394         have a 20-character limit on names.
81395
81396 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81397
81398         * m4/inttypes_h.m4: New file.
81399         * m4/uintmax_t.m4: New file.
81400         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81401
81402
81403         -----
81404
81405         Local Variables:
81406         coding: utf-8
81407         End:
81408
81409         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81410
81411         Copying and distribution of this file, with or without
81412         modification, are permitted provided the copyright notice
81413         and this notice are preserved.